:root {
  color-scheme: light;
  --navy: #071e3d;
  --navy-2: #0c315c;
  --gold: #f5c242;
  --gold-soft: #ffe7a0;
  --ivory: #fffaf0;
  --paper: #f6f1e5;
  --ink: #132238;
  --muted: #566276;
  --line: rgba(7, 30, 61, 0.16);
  --white: #fff;
  --max: 1120px;
  --shadow: 0 18px 50px rgba(7, 30, 61, 0.11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

button, select, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.65rem 0.9rem;
  color: var(--navy);
  background: var(--gold);
  border-radius: 0.4rem;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #1f75cb;
  outline-offset: 3px;
}

.proposal-ribbon {
  padding: 0.45rem 1rem;
  color: var(--navy);
  background: var(--gold);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--ivory);
  background: rgba(7, 30, 61, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 11px;
}
.brand small {
  display: block;
  margin-top: 0.22rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.15rem;
}
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.68rem;
  border-radius: 0.45rem;
  color: #e8eef6;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--gold); }

.language-control { min-width: 0; }
.language-control select {
  min-height: 44px;
  min-width: 8.5rem;
  max-width: 9.5rem;
  padding: 0 2rem 0 0.7rem;
  color: var(--ivory);
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.45rem;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  color: var(--ivory);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.45rem;
}

main { min-height: 62vh; }

.page-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6.5rem) 0;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  background: var(--navy);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10vw -8rem 42%;
  height: 16rem;
  opacity: 0.12;
  background: repeating-linear-gradient(90deg, transparent 0 36px, var(--ivory) 36px 42px);
  transform: rotate(-4deg);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7.5rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.hero-copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: Georgia, "Noto Serif CJK SC", "Songti SC", serif;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
h1 { margin-bottom: 1.2rem; font-size: clamp(2.55rem, 7vw, 5.5rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { margin-bottom: 0.55rem; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; }
.lead { max-width: 680px; color: #dfe8f3; font-size: clamp(1.05rem, 2vw, 1.23rem); }
.hero-mark {
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 2rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.button-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 0.45rem;
  color: var(--navy);
  background: var(--gold);
  text-decoration: none;
  font-weight: 800;
}
.button-link.secondary { color: var(--ivory); background: transparent; }
.button-link:hover { transform: translateY(-1px); }

.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-rule { border-top: 1px solid var(--line); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 8px 28px rgba(7, 30, 61, 0.06);
}
.card p { margin-bottom: 0; color: var(--muted); }
.card.featured { border-top: 5px solid var(--gold); }
.card.dark { color: var(--ivory); background: var(--navy); }
.card.dark p { color: #d7e1ed; }
.card-number { display: block; margin-bottom: 1.2rem; color: var(--gold); font-weight: 900; }
.entry-card { display: flex; flex-direction: column; }
.entry-card .text-link { margin-top: 1rem; align-self: flex-start; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 1rem;
  padding: 0.15rem 0.65rem;
  color: var(--navy);
  background: var(--gold-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-panel {
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  color: var(--ivory);
  background: var(--navy);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.status-panel p { color: #d7e1ed; }
.status-summary { align-items: center; }
.status-summary .inline-action { margin-top: 0; justify-self: end; }
.status-list { margin: 0; padding: 0; list-style: none; }
.status-list li { padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.status-list strong { color: var(--gold); }

.page-intro {
  color: var(--ivory);
  background: var(--navy);
}
.page-intro .page-shell { padding-block: clamp(3rem, 7vw, 5rem); }
.page-intro p { max-width: 720px; color: #dfe8f3; font-size: 1.08rem; }

.program-list { display: grid; gap: 1rem; }
.program-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(160px, 0.28fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1.45rem 0;
  border-top: 1px solid var(--line);
}
.program-row:first-child { border-top: 0; }
.program-row { scroll-margin-top: 8.5rem; }
.program-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 900;
}
.program-row p { margin: 0; color: var(--muted); }
.program-row .status-pill { justify-self: start; margin-top: 0.2rem; }

.practice-visual {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.2rem;
}
.practice-mark {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--ivory);
  background: var(--navy);
  border-radius: 1rem;
}
.practice-mark img { width: min(100%, 230px); border-radius: 1.4rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.fact { padding: 1.2rem; background: var(--paper); border-radius: 0.7rem; }
.fact span { display: block; color: var(--muted); font-size: 0.88rem; }
.fact strong { display: block; margin-top: 0.25rem; font-size: 1.05rem; }

.empty-state {
  padding: clamp(2rem, 7vw, 5rem);
  text-align: center;
  background: var(--paper);
  border: 1px dashed rgba(7, 30, 61, 0.35);
  border-radius: 1rem;
}
.empty-state .rest { display: block; margin: 0 auto 1rem; color: var(--gold); font-size: 3.3rem; line-height: 1; }
.empty-state p { max-width: 640px; margin-inline: auto; color: var(--muted); }

.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-block {
  margin-top: 2rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  color: var(--ivory);
  background: var(--navy);
  border-radius: 1rem;
}
.contact-block img { width: 96px; border-radius: 1rem; }
.contact-block p { margin-bottom: 0; color: #dfe8f3; }
.inline-action { margin-top: 1.2rem; }
.inline-action .button-link { width: auto; }
.card .button-link.secondary,
.empty-state .button-link.secondary {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(7, 30, 61, 0.12);
}
.text-link { color: var(--navy-2); font-weight: 800; text-underline-offset: 0.2em; }
.text-link:hover { color: var(--navy); }

.contact-email {
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--ivory);
  background: var(--navy);
  border-radius: 1rem;
}
.contact-email h2 { margin-bottom: 0.75rem; }
.contact-email h2 a { color: var(--gold); overflow-wrap: anywhere; }
.contact-email p:last-child { max-width: 720px; margin-bottom: 0; color: #dfe8f3; }
.subactivity-note {
  margin-bottom: 2rem;
  padding: 1.15rem 1.3rem;
  background: var(--paper);
  border-left: 5px solid var(--gold);
  border-radius: 0.65rem;
}
.subactivity-note .eyebrow { margin-bottom: 0.35rem; }
.subactivity-note p:last-child { margin-bottom: 0; color: var(--muted); }

.faq { margin-top: 2.75rem; }
.faq details { padding: 1rem 0; border-top: 1px solid var(--line); }
.faq summary { min-height: 44px; cursor: pointer; font-weight: 800; }
.faq p { margin: 0.5rem 0 0; color: var(--muted); }
.related-section { margin-top: 2.75rem; }
.related-section > h2 { margin-bottom: 1.25rem; }

.site-footer { color: #dfe8f3; background: #04152b; }
.footer-inner { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 2.5rem 0; }
.footer-brand { margin-bottom: 0.7rem; color: var(--white); font-weight: 850; }
.footer-brand span { color: var(--gold); }
.footer-inner p { max-width: 800px; margin-bottom: 1rem; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; color: #aebdd0; font-size: 0.9rem; }
.footer-meta a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1099.98px) {
  .header-inner { grid-template-columns: 1fr auto auto; gap: 0.65rem; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 0.75rem 20px 1rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { justify-content: center; white-space: normal; text-align: center; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .hero-inner, .status-panel, .practice-visual { grid-template-columns: 1fr; }
  .hero-mark { width: min(70vw, 280px); order: -1; }
  .hero-copy { text-align: center; }
  .actions { justify-content: center; }
  .program-row { grid-template-columns: 52px minmax(0, 1fr); }
  .program-row .status-pill { grid-column: 2; }
  .facts, .role-grid { grid-template-columns: 1fr; }
  .status-summary .inline-action { justify-self: start; }
}

@media (max-width: 639.98px) {
  .header-inner, .page-shell, .hero-inner, .footer-inner { width: min(calc(100% - 32px), var(--max)); }
  .header-inner {
    min-height: 68px;
    padding: 0.75rem 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand menu"
      "language language";
    gap: 0.75rem;
  }
  .brand { grid-area: brand; }
  .menu-toggle { grid-area: menu; }
  .language-control { grid-area: language; width: 100%; }
  .brand img { width: 42px; height: 42px; }
  .brand { font-size: 0.9rem; }
  .brand small { font-size: 0.63rem; }
  #menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .language-control select { width: 100%; min-width: 0; max-width: none; }
  h1 { font-size: clamp(2.3rem, 13vw, 3.5rem); }
  .actions { flex-direction: column; }
  .button-link { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .program-row { grid-template-columns: 1fr; }
  .program-row .status-pill { grid-column: 1; }
  .contact-block { grid-template-columns: 1fr; text-align: center; }
  .contact-block img { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
