:root {
  --ink: #111b18;
  --muted: #58635e;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #d8ded8;
  --green: #176b4d;
  --green-dark: #0f4635;
  --ball: #d8ed43;
  --red: #c5443f;
  --blue: #227a9c;
  --shadow: 0 14px 40px rgba(17, 27, 24, 0.1);
  --content: 1180px;
}

/* Homepage variant: courtside data board, intentionally distinct from photo-hero sites. */
.court-board { padding: 54px 0; background: #eef2ec; border-bottom: 1px solid var(--line); }
.court-board-grid { display: grid; grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr); gap: 54px; align-items: stretch; }
.court-photo { position: relative; min-height: 590px; margin: 0; overflow: hidden; background: var(--ink); }
.court-photo::after { content: ""; position: absolute; inset: 0; border: 12px solid rgba(216,237,67,.72); pointer-events: none; }
.court-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.court-photo figcaption { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 2; padding: 12px 14px; color: #fff; background: rgba(17,27,24,.88); font-size: 13px; }
.court-copy { display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.court-label { align-self: flex-start; padding: 7px 10px; color: var(--ink); background: var(--ball); font-size: 12px; font-weight: 900; }
.court-copy h1 { max-width: 720px; margin: 22px 0 0; font-size: 52px; line-height: 1.16; letter-spacing: 0; }
.court-copy > p { max-width: 680px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.court-readout { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.court-readout div { display: grid; gap: 3px; padding: 16px 12px; border-right: 1px solid #aeb8b2; }
.court-readout div:last-child { border-right: 0; }
.court-readout small { color: var(--green); font-weight: 900; }
.court-readout strong { font-size: 16px; }
.court-readout span { color: var(--muted); font-size: 12px; }
.court-secondary { color: var(--green-dark); background: transparent; border-color: var(--green-dark); }
@media (max-width: 900px) {
  .court-board-grid { grid-template-columns: 1fr; }
  .court-photo { min-height: 430px; }
  .court-copy { padding-top: 0; }
}
@media (max-width: 680px) {
  .court-board { padding: 24px 0 42px; }
  .court-board-grid { gap: 30px; }
  .court-photo { min-height: 360px; }
  .court-photo::after { border-width: 7px; }
  .court-photo figcaption { left: 18px; right: 18px; bottom: 18px; }
  .court-copy h1 { font-size: 37px; }
  .court-copy > p { font-size: 16px; }
  .court-readout { grid-template-columns: 1fr; }
  .court-readout div { border-right: 0; border-bottom: 1px solid #aeb8b2; }
  .court-readout div:last-child { border-bottom: 0; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.22; letter-spacing: 0; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }

.data-strip {
  color: #dfe9e4;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.data-strip .wrap {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
}
.data-strip strong { color: var(--ball); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
}
.header-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 238px; }
.brand img { width: 46px; height: 46px; }
.brand strong { display: block; font-size: 17px; line-height: 1.05; }
.brand span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 6px; }
.main-nav a {
  padding: 9px 11px;
  color: #28342f;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 700;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); border-color: var(--green); }
.header-action {
  padding: 10px 14px;
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 560px;
  max-height: 620px;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(8, 23, 18, 0.66); }
.hero .wrap { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; }
.hero-copy { max-width: 720px; padding: 66px 0 72px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--ball);
  font-size: 13px;
  font-weight: 800;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--ball); }
.hero h1 { max-width: 700px; margin: 0; font-size: 54px; }
.hero p { max-width: 650px; margin: 22px 0 0; color: #e6eeea; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
}
.btn-primary { color: var(--ink); background: var(--ball); border-color: var(--ball); }
.btn-secondary { color: var(--white); background: transparent; border-color: rgba(255,255,255,0.65); }

.quick-answer {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.quick-answer .wrap {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 106px;
}
.quick-answer strong { color: var(--green); font-size: 14px; }
.quick-answer p { margin: 0; }
.text-link { color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.section { padding: 72px 0; }
.section-white { background: var(--white); }
.section-dark { color: var(--white); background: var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 28px; }
.section-head > div { max-width: 730px; }
.kicker { margin: 0 0 8px; color: var(--red); font-size: 13px; font-weight: 900; }
.section h2 { margin: 0; font-size: 34px; }
.section-head p { margin: 10px 0 0; color: var(--muted); }
.section-dark .section-head p { color: #cbd7d1; }

.status-board { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid #42504a; }
.status-item { min-height: 164px; padding: 22px; border-right: 1px solid #42504a; }
.status-item:last-child { border-right: 0; }
.status-item span { display: block; color: #98aaa1; font-size: 12px; }
.status-item strong { display: block; margin: 9px 0 8px; color: var(--ball); font-size: 19px; }
.status-item p { margin: 0; color: #d6dfda; font-size: 14px; }
.status-item.warn strong { color: #ff8f86; }

.feature-lead { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.75fr); gap: 24px; }
.lead-story { position: relative; min-height: 430px; overflow: hidden; border-radius: 6px; background: var(--ink); }
.lead-story img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.lead-story .story-copy { position: absolute; inset: auto 0 0; padding: 34px; color: var(--white); background: rgba(9,20,16,0.78); }
.story-meta { color: var(--ball); font-size: 13px; font-weight: 800; }
.lead-story h3 { margin: 9px 0; font-size: 29px; }
.lead-story p { margin: 0; color: #e1ebe6; }
.side-stories { display: grid; gap: 14px; }
.side-story { padding: 19px 0; border-top: 3px solid var(--green); border-bottom: 1px solid var(--line); }
.side-story:nth-child(2) { border-top-color: var(--red); }
.side-story:nth-child(3) { border-top-color: var(--blue); }
.side-story span { color: var(--muted); font-size: 12px; }
.side-story h3 { margin: 8px 0; font-size: 20px; }
.side-story p { margin: 0; color: var(--muted); font-size: 14px; }

.cluster-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cluster { min-height: 190px; padding: 25px; background: var(--white); }
.cluster .number { color: var(--red); font-size: 13px; font-weight: 900; }
.cluster h3 { margin: 12px 0 9px; font-size: 21px; }
.cluster p { margin: 0; color: var(--muted); font-size: 14px; }
.cluster a { display: inline-block; margin-top: 16px; color: var(--green); font-weight: 800; }

.method-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.method-layout figure { margin: 0; border-radius: 6px; overflow: hidden; }
.method-layout img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.method-list { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; }
.method-list li { position: relative; padding: 14px 0 14px 56px; border-top: 1px solid var(--line); counter-increment: step; }
.method-list li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 14px; color: var(--red); font-weight: 900; }

.source-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.source-block { padding: 20px; border-left: 4px solid var(--green); background: var(--white); box-shadow: var(--shadow); }
.source-block:nth-child(2) { border-left-color: var(--blue); }
.source-block:nth-child(3) { border-left-color: var(--red); }
.source-block h3 { margin: 0 0 8px; font-size: 18px; }
.source-block p { margin: 0; color: var(--muted); font-size: 14px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 18px 4px; font-weight: 800; }
.faq-list p { margin: 0; padding: 0 4px 20px; color: var(--muted); }

.page-hero { padding: 56px 0 50px; color: var(--white); background: var(--green-dark); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; color: #bfd0c7; font-size: 13px; }
.page-hero h1 { max-width: 920px; margin: 0; font-size: 40px; }
.page-hero p { max-width: 760px; margin: 14px 0 0; color: #d8e5df; }
.library-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.library-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.library-filter button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}
.library-filter button.active { color: var(--white); background: var(--green); border-color: var(--green); }
.search-box { min-width: 260px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.list-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.article-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.article-card .thumb, .article-card .card-media, .article-card > a:first-child { display: block; aspect-ratio: 16/9; overflow: hidden; background: #d9e2dc; }
.article-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.article-card:hover img { transform: scale(1.02); }
.article-card .body, .article-card .card-body, .article-card .article-body { padding: 18px; }
.article-card .meta { color: var(--green); font-size: 12px; font-weight: 800; }
.article-card h2, .article-card h3 { margin: 9px 0; font-size: 20px; }
.article-card p { margin: 0 0 13px; color: var(--muted); font-size: 14px; }
.article-card .readmore, .article-card .read-link, .article-card .text-link, .article-card .read-more { color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.pager { display: flex; gap: 8px; margin-top: 30px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.pager .current { color: var(--white); background: var(--green); border-color: var(--green); }

.article-layout { display: grid; grid-template-columns: minmax(0,760px) minmax(240px,320px); gap: 44px; align-items: start; }
.article-main { min-width: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.article-cover { width: 100%; aspect-ratio: 16/8.6; object-fit: cover; margin-bottom: 28px; border-radius: 6px; }
.direct-answer { margin: 0 0 28px; padding: 18px 20px; border-left: 4px solid var(--ball); background: #eef2e7; }
.article-body { font-size: 17px; }
.article-body h2 { margin: 38px 0 13px; font-size: 27px; }
.article-body h3 { margin: 25px 0 10px; font-size: 20px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.metric-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.metric-table th, .metric-table td { padding: 12px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.metric-table th { width: 29%; background: #eef3ef; }
.example-box { margin: 22px 0; padding: 18px 20px; border: 1px solid #d3dbd5; border-left: 4px solid var(--blue); background: var(--white); }
.risk-note { margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--red); background: #fff0ef; }
.article-faq { margin-top: 40px; }
.article-faq details { border-top: 1px solid var(--line); }
.article-faq details:last-child { border-bottom: 1px solid var(--line); }
.article-faq summary { padding: 15px 0; cursor: pointer; font-weight: 800; }
.article-faq p { margin: 0; padding: 0 0 18px; color: var(--muted); }
.article-aside { position: sticky; top: 124px; }
.aside-block { margin-bottom: 16px; padding: 20px; border: 1px solid var(--line); background: var(--white); }
.aside-block h2 { margin: 0 0 12px; font-size: 18px; }
.aside-block a { display: block; padding: 10px 0; border-top: 1px solid var(--line); color: var(--green); font-size: 14px; font-weight: 700; }
.aside-block p { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer { color: #dbe5e0; background: #0c1713; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3,1fr); gap: 34px; padding: 48px 0 38px; }
.site-footer h2 { margin: 0 0 12px; color: var(--white); font-size: 18px; }
.site-footer p { margin: 0; color: #aebdb5; font-size: 14px; }
.site-footer a { display: block; padding: 5px 0; color: #dbe5e0; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 17px 0; border-top: 1px solid #2b3a33; color: #98aaa1; font-size: 12px; }
.contact-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--white);
  background: #1685bd;
  border-radius: 4px;
  box-shadow: var(--shadow);
  font-weight: 800;
}
.empty-state { display: none; padding: 28px; border: 1px solid var(--line); background: var(--white); text-align: center; }

@media (max-width: 980px) {
  .header-action { display: none; }
  .header-row { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; grid-column: 1 / -1; justify-content: stretch; padding-bottom: 14px; }
  .main-nav.open { display: grid; grid-template-columns: repeat(3,1fr); }
  .main-nav a { text-align: center; border: 1px solid var(--line); }
  .status-board { grid-template-columns: repeat(2,1fr); }
  .status-item:nth-child(2) { border-right: 0; }
  .status-item:nth-child(-n+2) { border-bottom: 1px solid #42504a; }
  .cluster-grid { grid-template-columns: repeat(2,1fr); }
  .list-grid { grid-template-columns: repeat(2,1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, var(--content)); }
  .data-strip .wrap { min-height: 40px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 0; }
  .data-strip span:last-child { display: none; }
  .header-row { min-height: 66px; gap: 10px; }
  .brand { min-width: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 15px; }
  .brand > span { display: block; }
  .brand > span > span { display: none; }
  .main-nav.open { grid-template-columns: repeat(2,1fr); }
  .hero { min-height: 590px; max-height: none; }
  .hero-bg { object-position: 61% center; }
  .hero::before { background: rgba(7,22,17,0.72); }
  .hero-copy { padding: 54px 0 60px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .quick-answer .wrap { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .quick-answer a { justify-self: start; }
  .section { padding: 50px 0; }
  .section h2 { font-size: 28px; }
  .section-head { align-items: start; flex-direction: column; }
  .status-board, .feature-lead, .cluster-grid, .method-layout, .source-row, .list-grid, .article-aside, .footer-grid { grid-template-columns: 1fr; }
  .status-item { min-height: 0; border-right: 0; border-bottom: 1px solid #42504a; }
  .status-item:last-child { border-bottom: 0; }
  .lead-story { min-height: 410px; }
  .lead-story .story-copy { padding: 22px; }
  .lead-story h3 { font-size: 24px; }
  .page-hero { padding: 42px 0; }
  .page-hero h1 { font-size: 31px; }
  .library-tools { align-items: stretch; }
  .search-box { width: 100%; min-width: 0; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 24px; }
  .metric-table th, .metric-table td { display: block; width: 100%; }
  .metric-table th { border-bottom: 0; }
  .footer-bottom { flex-direction: column; }
  .contact-float { right: 12px; bottom: 12px; width: 48px; min-height: 48px; padding: 0; justify-content: center; }
  .contact-float span:last-child { display: none; }
}
