/* Layout: one calm, left-aligned reading column in the lidoedu.com palette.
   The home page's two "doors" (国际学校 / UI 1+4) are the only large objects;
   fact pages are plain label/value rows, each section closed by a source note. */
:root {
  --bg: #F5F7F6;
  --surface: #FFFFFF;
  --ink: #0F1B1E;
  --muted: #586A6E;
  --line: #DCE3E1;
  --accent: #0D6B66;
  --on-accent: #FFFFFF;
  --accent-soft: #E1F0EE;
  --glow: rgba(13, 107, 102, 0.14);
  --panel: #0F1B1E;
  --panel-ink: #EEF4F2;
  --panel-muted: #9FB3B0;
  --warn: #8A5A1F;
  --warn-soft: #F6EEDF;

  --font-zh: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-latin: "Sora", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.15rem;
  --step-2: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.2rem + 2.4vw, 2.5rem);
  --step-hero: clamp(2rem, 1.2rem + 4vw, 3.4rem);
  --measure: 38em;
  --radius: 16px;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1517; --surface: #121E21; --ink: #E8F0EE; --muted: #93A7A4; --line: #22343A;
    --accent: #4FC2B6; --on-accent: #0C1517; --accent-soft: #133331; --glow: rgba(79, 194, 182, 0.12);
    --panel: #E8F0EE; --panel-ink: #0F1B1E; --panel-muted: #4E6266;
    --warn: #E0B070; --warn-soft: #2A2216;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1517; --surface: #121E21; --ink: #E8F0EE; --muted: #93A7A4; --line: #22343A;
  --accent: #4FC2B6; --on-accent: #0C1517; --accent-soft: #133331; --glow: rgba(79, 194, 182, 0.12);
  --panel: #E8F0EE; --panel-ink: #0F1B1E; --panel-muted: #4E6266;
  --warn: #E0B070; --warn-soft: #2A2216;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-zh);
  font-size: var(--step-0);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
h1 { font-size: var(--step-3); font-weight: 900; letter-spacing: 0.01em; }
h2 { font-size: var(--step-2); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; margin-top: 2rem; }
p { margin: 0; }
.latin { font-family: var(--font-latin); }
.muted { color: var(--muted); }
.selectable { user-select: all; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact { font-variant-numeric: tabular-nums; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header: brand, nav, the one pill */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; padding-block: 10px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); margin: 0; min-width: 0; }
.brand b { font-weight: 900; font-size: 1.05rem; letter-spacing: 0.04em; white-space: nowrap; }
.brand span { font-weight: 400; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 18px; margin-left: auto; font-size: 0.94rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: 8px; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 700; }
.pill {
  font-weight: 500; font-size: 0.9rem; text-decoration: none; color: var(--bg); background: var(--ink);
  padding: 7px 16px; border-radius: 999px; white-space: nowrap;
}
.pill[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
@media (max-width: 720px) {
  .header-row { justify-content: space-between; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 0 16px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-light { background: var(--panel-ink); color: var(--panel); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Home: hero and the two doors */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 80vw; height: 80vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, var(--glow), transparent 72%); pointer-events: none;
}
.hero .wrap { position: relative; padding-block: clamp(40px, 8vw, 96px) clamp(28px, 5vw, 56px); }
.hero h1 { font-size: var(--step-hero); line-height: 1.2; max-width: 15em; }
.hero h1 .ln { display: inline-block; }
.lead { margin-top: 18px; font-size: var(--step-1); color: var(--muted); max-width: var(--measure); }
.for-who { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; max-width: var(--measure); }
.for-who li { display: grid; grid-template-columns: 1.1em minmax(0, 1fr); gap: 8px; }
.for-who li::before { content: ""; width: 8px; height: 8px; margin-top: 0.7em; border-radius: 50%; background: var(--accent); }

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 5vw, 48px); }
.door {
  display: grid; gap: 14px; align-content: start; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 28px);
  transition: border-color .2s;
}
.door:hover { border-color: var(--accent); }
.door-kind { font-size: 0.82rem; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 12px; width: fit-content; }
.door h2 { font-size: var(--step-2); }
.door p { color: var(--muted); }
.door .go { font-weight: 700; color: var(--accent); }
.path { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.95rem; }
.path b { font-weight: 700; }
.path i { position: relative; flex: 0 0 40px; height: 1px; background: var(--muted); }
.path i::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); }
.door-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.door-list li { font-size: 0.82rem; border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; color: var(--muted); }
@media (max-width: 720px) { .doors { grid-template-columns: minmax(0, 1fr); } }

/* Sections */
main > section, .content > section { padding-block: clamp(36px, 6vw, 64px) 0; }
main > section:last-child { padding-bottom: clamp(48px, 8vw, 88px); }
.section-lede { color: var(--muted); margin-top: 8px; max-width: var(--measure); }

/* Dated items (近期时间) */
.dates { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; max-width: 46rem; }
.date-item { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.date-chip { display: grid; justify-items: center; align-content: start; background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 8px 4px; line-height: 1.1; font-family: var(--font-latin); }
.date-chip .dd { font-size: 1.6rem; font-weight: 600; }
.date-chip .mm { font-size: 0.78rem; margin-top: 4px; font-family: var(--font-zh); }
.date-body { min-width: 0; display: grid; gap: 4px; }
.date-who { font-size: 0.82rem; color: var(--muted); }
.date-what { font-weight: 700; }
.date-body a { font-size: var(--step--1); font-weight: 600; }

/* Page heads */
.page-head { padding-block: clamp(28px, 5vw, 56px) 8px; }
.crumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.page-head .lead { margin-top: 14px; }
.on-page { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.on-page a { display: inline-block; font-size: 0.88rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; }
.on-page a:hover { border-color: var(--accent); }
.official { margin-top: 14px; font-size: var(--step--1); color: var(--muted); }

/* Reading column */
.content { max-width: 46rem; padding-bottom: clamp(48px, 8vw, 88px); }
.content > section > p { margin-top: 12px; max-width: var(--measure); }
.content > section > h3 + p, .content > section > h3 + .facts { margin-top: 10px; }
.part { margin-top: clamp(40px, 6vw, 64px); padding-top: 18px; border-top: 2px solid var(--ink); }
.part-kind { font-size: 0.82rem; color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }
.part h2 { margin-top: 4px; }

/* Facts: label / value rows */
.facts { margin: 16px 0 0; display: grid; }
.fact-row { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 4px 24px; padding-block: 12px; border-top: 1px solid var(--line); }
.fact-row:last-child { border-bottom: 1px solid var(--line); }
.fact-row dt { font-weight: 700; }
.fact-row dd { margin: 0; min-width: 0; }
.applies { display: block; margin-top: 4px; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 600px) { .fact-row { grid-template-columns: minmax(0, 1fr); } }

/* Tables: scroll inside their box on wide tables; stack into cards on phones */
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
caption { text-align: left; padding: 12px 16px 0; font-weight: 700; }
.cap-unit { display: block; font-weight: 400; font-size: var(--step--1); color: var(--muted); }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead th { font-weight: 500; font-size: var(--step--1); color: var(--muted); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; }
tbody th a { font-weight: 700; }
.unconfirmed { color: var(--muted); }
.cell { min-width: 0; }
.cell-line { display: block; }
.cell-line + .cell-line { margin-top: 2px; }
.wide table { min-width: 56rem; }
@media (max-width: 640px) {
  .stack { overflow: visible; }
  .stack table, .stack tbody, .stack tr, .stack th, .stack td { display: block; width: 100%; min-width: 0; }
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .stack tbody tr:last-child { border-bottom: 0; }
  .stack th, .stack td { padding: 0; border: 0; }
  .stack th { font-size: var(--step-1); margin-bottom: 6px; }
  .stack td { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 10px; padding-block: 5px; }
  .stack td::before { content: attr(data-label); color: var(--muted); font-size: var(--step--1); padding-top: 1px; }
  .stack caption { display: block; padding: 14px 16px 0; }
}

/* Source note */
.source { margin-top: 18px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; font-size: var(--step--1); }
.source-head { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tick { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); position: relative; }
.tick::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.source ul { margin: 6px 0 0; padding: 0 0 0 24px; list-style: none; display: grid; gap: 6px; }
.source li { color: var(--ink); }
.issuer { display: block; color: var(--muted); }

/* Still checking */
.checking { }
.content > .checking, main > .checking { }
.checking-box { margin-top: 14px; background: var(--warn-soft); border-radius: var(--radius); padding: 16px 18px; }
.checking ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; max-width: var(--measure); }
.checking li::marker { color: var(--warn); }
.checking h2::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border: 2px solid var(--warn); border-radius: 50%; vertical-align: 0.1em; }

/* School cards on the K-12 page */
.school-cards { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.school-cards a { display: grid; gap: 4px; height: 100%; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.school-cards a:hover { border-color: var(--accent); }
.school-cards b { font-size: 1.05rem; }
.school-cards span { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 640px) { .school-cards { grid-template-columns: minmax(0, 1fr); } }

/* Contact panel: the one dark slab */
.panel {
  background: var(--panel); color: var(--panel-ink); border-radius: 28px; padding: clamp(24px, 5vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px 48px;
}
.panel h2 { font-size: var(--step-2); }
.panel .note { margin-top: 10px; color: var(--panel-muted); }
.panel a { color: inherit; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 6em minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-block: 14px; border-bottom: 1px solid color-mix(in srgb, var(--panel-muted) 35%, transparent); }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--panel-muted); font-size: 0.9rem; }
.row .v { font-size: 1.02rem; overflow-wrap: anywhere; min-width: 0; }
.row .v.latin { user-select: all; }
.copy, .row .open {
  font: 500 0.82rem var(--font-zh); color: var(--panel-ink); background: transparent; cursor: pointer; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--panel-muted) 55%, transparent); border-radius: 999px; padding: 6px 14px; white-space: nowrap;
}
.copy.done { border-color: var(--panel-ink); }
.panel-cta { margin-top: 24px; }
.panel .btn-light { color: var(--panel); }
@media (max-width: 760px) { .panel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row .k { grid-column: 1 / -1; }
}

.steps { margin: 14px 0 0; padding-left: 1.4em; display: grid; gap: 10px; max-width: var(--measure); }
.steps li::marker { font-family: var(--font-latin); font-weight: 600; color: var(--accent); }

.cta-band { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; background: var(--accent-soft); border-radius: 24px; padding: 24px; }
.cta-band p { max-width: 30em; }
.cta-band b { display: block; font-size: 1.1rem; }

/* Sources page */
.src-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.src-item { padding-block: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.src-item:last-child { border-bottom: 1px solid var(--line); }
.src-meta { font-size: var(--step--1); color: var(--muted); }

/* Articles (empty for now) */
.article-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.article-list a { display: grid; gap: 2px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.article-meta { font-size: var(--step--1); color: var(--muted); }
.article-title { font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 24px 32px; padding-block: 36px 44px; font-size: 0.9rem; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.footer-grid a { color: var(--ink); }
.footer-head { font-weight: 700; color: var(--ink); }
.footer-about p + p { margin-top: 10px; }
.footer-about .brand { margin-bottom: 4px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
