:root {
  color-scheme: light;
  --ink: #17243b;
  --ink-soft: #445269;
  --paper: #f4f0e7;
  --paper-light: #fbfaf6;
  --line: #d4cbb9;
  --accent: #a03e2e;
  --accent-soft: #f2dfd6;
  --gold: #b58b4b;
  --shadow: 0 18px 50px rgba(23, 36, 59, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(181, 139, 75, 0.12), transparent 32rem),
    var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5vw;
  color: white;
  background: rgba(23, 36, 59, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.brand span {
  margin-left: 8px;
  color: #d8c39c;
  font-weight: 500;
  font-size: 13px;
}

.topbar nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.topbar nav a {
  color: #edf1f7;
  text-decoration: none;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: #ffe5c0;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 64px;
  align-items: center;
  padding: 76px 0 64px;
}

.eyebrow,
.section-head > p,
.verification-note > p {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.dek {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions a,
.file-card nav a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 18px;
  font-weight: 750;
  text-decoration: none;
}

.hero-actions .primary {
  color: white;
  background: var(--accent);
}

.hero-actions .secondary {
  border: 1px solid var(--ink);
}

.docket {
  padding: 30px;
  color: white;
  background: var(--ink);
  border-top: 5px solid var(--gold);
  box-shadow: var(--shadow);
}

.docket > p {
  margin: 0 0 18px;
  color: #d8c39c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.docket dl {
  margin: 0;
}

.docket dl div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.docket dt {
  color: #aeb9c9;
  font-size: 13px;
}

.docket dd {
  margin: 0;
  line-height: 1.55;
}

.status {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  line-height: 1.55;
}

.status i {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #68c78d;
  box-shadow: 0 0 0 5px rgba(104, 199, 141, 0.12);
}

.status small {
  color: #b8c2d0;
}

.verification-note {
  margin: 0 0 72px;
  padding: 32px 36px;
  background: var(--accent-soft);
  border-left: 6px solid var(--accent);
}

.verification-note h2 {
  margin: 0 0 14px;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.45;
}

.verification-note span {
  color: #65473f;
  font-size: 17px;
  line-height: 1.75;
}

.downloads,
.core-map,
.sources {
  margin: 0 0 86px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.28;
}

.section-head > span {
  display: block;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.file-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.file-card > div > span {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 800;
  font-size: 13px;
}

.file-card h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 26px;
  line-height: 1.45;
}

.file-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.file-card nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.file-card nav a {
  min-height: 42px;
  color: white;
  background: var(--ink);
  font-size: 14px;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.core-grid article {
  padding: 28px;
  background: var(--paper-light);
}

.core-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.core-grid h3 {
  margin: 14px 0 10px;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 26px;
}

.core-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.source-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.source-links a {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}

.source-links a:hover,
.source-links a:focus-visible {
  background: var(--accent);
}

.source-links span {
  color: #c4ccd8;
  font-size: 13px;
  line-height: 1.55;
}

.source-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.documents {
  margin-bottom: 90px;
}

.legal-document {
  max-width: 930px;
  margin: 0 auto 56px;
  padding: clamp(34px, 6vw, 72px);
  background: #fffefa;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.document-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
  padding-bottom: 14px;
  color: var(--accent);
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.legal-document > h1 {
  margin: 0 0 46px;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 38px;
  line-height: 1.45;
  text-align: center;
}

.legal-document > h2 {
  margin: 52px 0 18px;
  padding-top: 22px;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 27px;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}

.legal-document > p {
  margin: 0 0 21px;
  font-family: FangSong, STFangsong, "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 22px;
  line-height: 1.9;
  text-align: justify;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 5vw;
  color: #cbd2dc;
  background: var(--ink);
  font-size: 13px;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .file-grid,
  .core-grid {
    grid-template-columns: 1fr;
  }

  .source-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 64px;
  }

  .topbar {
    min-height: 58px;
    padding: 0 16px;
  }

  .brand span,
  .topbar nav a:not(:first-child) {
    display: none;
  }

  main {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 46px 0 48px;
  }

  .hero h1 {
    font-size: clamp(39px, 12.5vw, 54px);
  }

  .dek {
    font-size: 18px;
  }

  .docket,
  .file-card,
  .core-grid article {
    padding: 22px;
  }

  .verification-note {
    margin-bottom: 58px;
    padding: 24px 20px;
  }

  .downloads,
  .core-map,
  .sources {
    margin-bottom: 64px;
  }

  .source-links {
    grid-template-columns: 1fr;
  }

  .source-links a {
    min-height: 100px;
  }

  .legal-document {
    width: 100%;
    padding: 28px 18px 34px;
  }

  .legal-document > h1 {
    margin-bottom: 36px;
    font-size: 31px;
    text-align: left;
  }

  .legal-document > h2 {
    font-size: 26px;
  }

  .legal-document > p {
    font-size: 22px;
    line-height: 1.84;
    text-align: left;
  }

  .document-label,
  footer {
    flex-direction: column;
  }
}

@media print {
  .topbar,
  .hero,
  .verification-note,
  .downloads,
  .core-map,
  .sources,
  footer,
  .document-label {
    display: none !important;
  }

  body,
  .legal-document {
    background: white;
    box-shadow: none;
  }

  main,
  .legal-document {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .legal-document + .legal-document {
    break-before: page;
  }
}
