:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #596273;
  --line: #d9dfe7;
  --soft: #f4f6f8;
  --orange: #c2410c;
  --orange-dark: #9a3412;
  --green: #1f6b3a;
  --blue: #24435c;
  --gold: #8a5a00;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.62;
}

img {
  max-width: 100%;
}

a {
  color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--orange-dark);
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 21px;
  text-decoration: none;
}

.brand img {
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
  font-weight: 750;
}

.site-nav a {
  color: #354052;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--orange);
}

.page-shell {
  padding: 0 22px 72px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  padding: 24px 0 0;
  color: #6c7482;
  font-size: 13px;
  white-space: nowrap;
}

.breadcrumbs a {
  flex: 0 0 auto;
}

.breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero {
  padding: 54px 0 46px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin: 11px 0 18px;
  font-size: 48px;
  line-height: 1.05;
}

.lede {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.52;
}

.review-note {
  margin: 18px 0 0;
  color: #667080;
  font-size: 13px;
}

.lookup-form {
  max-width: 720px;
  margin-top: 30px;
}

.lookup-form label {
  display: block;
  margin-bottom: 7px;
  color: #394457;
  font-size: 14px;
  font-weight: 800;
}

.lookup-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.lookup-control input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #aeb7c4;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}

.lookup-control button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--orange);
  border-radius: 6px;
  color: var(--white);
  background: var(--orange);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.lookup-control button:hover,
.secondary-button:hover {
  border-color: var(--orange-dark);
  color: var(--white);
  background: var(--orange-dark);
}

.lookup-hint {
  margin: 9px 0 0;
  color: #667080;
  font-size: 13px;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(180px, 270px) minmax(0, 1fr);
  gap: 52px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}

/* Sections carrying data tables span the full width instead of the split layout. */
.content-section.has-table,
.content-section:has(.data-table-wrap) {
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}

.section-heading h2,
.related-section h2,
.takeaway-band h2 {
  margin: 7px 0 0;
  font-size: 28px;
  line-height: 1.18;
}

.section-body > p:first-child {
  margin-top: 0;
}

.section-heading,
.section-body {
  min-width: 0;
}

.section-body > p:last-child {
  margin-bottom: 0;
}

.section-body p {
  color: #303a49;
}

.signal-grid,
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.signal-grid article,
.check-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.signal-grid strong {
  display: block;
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.signal-grid span,
.check-grid span {
  display: block;
  margin-top: 7px;
  color: #576172;
  font-size: 14px;
}

.check-grid strong {
  color: var(--green);
}

.data-note {
  color: #677181 !important;
  font-size: 13px;
}

.dataset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 12px;
}

.dataset-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: end;
  margin-top: 20px;
}

.dataset-filter label {
  grid-column: 1 / -1;
  color: #394457;
  font-size: 14px;
  font-weight: 800;
}

.dataset-filter input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #aeb7c4;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}

.dataset-filter output {
  min-width: 88px;
  padding-bottom: 12px;
  color: #667080;
  font-size: 13px;
  text-align: right;
}

.secondary-button {
  min-height: 42px;
  color: var(--orange);
  background: var(--white);
}

.secondary-button:hover {
  color: var(--white);
}

.data-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 22px;
  overflow: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid #cbd3dd;
  border-radius: 6px;
  background: var(--white);
  outline-offset: 3px;
  scrollbar-color: #8b96a6 #edf1f5;
  scrollbar-width: thin;
}

.data-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.data-table-wrap::-webkit-scrollbar-track {
  background: #edf1f5;
}

.data-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #edf1f5;
  border-radius: 4px;
  background: #8b96a6;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

caption {
  padding: 14px 16px;
  color: #394457;
  background: #edf1f5;
  font-weight: 850;
  text-align: left;
}

th,
td {
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #465164;
  background: #f8f9fb;
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: #2f3948;
}

tbody tr:hover {
  background: #fbfcfd;
}

code {
  color: #273549;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
}

.cell-detail {
  display: block;
  margin-top: 3px;
  color: #687283;
  font-size: 12px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  padding: 17px 4px;
  color: #263347;
  font-weight: 800;
  cursor: pointer;
}

.faq-list details p {
  margin: 0 4px 18px;
}

.source-list,
.numbered-list {
  padding-left: 22px;
}

.source-list li + li,
.numbered-list li + li {
  margin-top: 8px;
}

.related-section {
  padding: 50px 0 8px;
}

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

.related-grid a {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
}

.related-grid a:hover {
  border-color: #aab5c3;
  background: var(--soft);
}

.related-grid strong,
.related-grid span {
  display: block;
}

.related-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.primary-action {
  color: var(--white);
  background: var(--orange);
}

.affiliate-note {
  max-width: 620px;
  margin: 12px 0 0;
  color: #677181;
  font-size: 12px;
}

.record-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.record-hero h1 {
  font-size: 43px;
}

.record-figure {
  margin: 0;
}

.record-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  object-fit: contain;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.fact-grid div {
  min-width: 0;
  padding: 16px;
  background: var(--white);
}

.fact-grid dt,
.compact-facts dt {
  color: #677181;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-grid dd,
.compact-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.record-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.record-card h3 {
  margin: 5px 0 9px;
  font-size: 20px;
  line-height: 1.24;
}

.record-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.record-card h3 a:hover {
  color: var(--orange);
}

.record-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.record-card > span,
.record-card div > span {
  display: block;
  margin-top: 9px;
  color: #677181;
  font-size: 12px;
}

.batch-record-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
}

.batch-record-card img {
  width: 92px;
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--soft);
  object-fit: contain;
}

.compact-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.compact-facts div {
  min-width: 0;
  padding: 10px;
  background: var(--soft);
}

.empty-record {
  padding: 20px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
}

.empty-record p {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid #cdd5df;
  color: #dce4ed;
  background: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(150px, 0.8fr) minmax(170px, 0.95fr) minmax(210px, 1.15fr);
  gap: 32px;
  padding: 34px 22px 44px;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  max-width: 500px;
  margin: 9px 0 0;
  color: #c9d1dc;
  font-size: 13px;
}

.site-footer p strong {
  color: var(--white);
}

.footer-links {
  align-content: start;
  display: grid;
  gap: 8px;
}

.footer-links strong,
.footer-disclosure strong {
  color: var(--white);
  font-size: 12px;
}

.footer-links a {
  color: #c9d1dc;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.article-shell {
  padding-bottom: 72px;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 42px;
  align-items: center;
  padding: 52px 0 46px;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  font-size: 43px;
}

.article-hero figure,
.article-image {
  margin: 0;
}

.article-hero figure img,
.article-image img {
  display: block;
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.article-hero figure img {
  aspect-ratio: 16 / 9;
}

.article-image img {
  aspect-ratio: 3 / 2;
}

figcaption {
  margin-top: 6px;
  color: #6b7482;
  font-size: 11px;
}

.takeaway-band {
  margin: 34px 0 0;
  padding: 24px 28px;
  border-left: 5px solid var(--green);
  background: #edf6f0;
}

.takeaway-band h2 {
  color: var(--green);
}

.takeaway-band ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.takeaway-band li + li {
  margin-top: 8px;
}

.article-image {
  margin-top: 24px;
}

.guide-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.guide-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.guide-card img {
  width: 180px;
  height: 128px;
  border-radius: 4px;
  object-fit: cover;
}

.guide-card h2 {
  margin: 4px 0 7px;
  font-size: 21px;
  line-height: 1.25;
}

.guide-card p {
  margin: 0;
  font-size: 14px;
}

.guide-card span {
  display: block;
  margin-top: 8px;
  color: #677181;
  font-size: 12px;
}

@media (max-width: 820px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 17px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .content-section,
  .article-hero,
  .record-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-hero figure {
    order: -1;
  }

  .record-figure {
    order: -1;
    max-width: 420px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 8px 14px;
    overflow-x: visible;
    font-size: 13px;
    white-space: normal;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero,
  .article-hero {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  h1,
  .article-hero h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .lede {
    font-size: 18px;
  }

  .lookup-control {
    grid-template-columns: 1fr;
  }

  .lookup-control button {
    width: 100%;
  }

  .dataset-filter {
    grid-template-columns: 1fr;
  }

  .dataset-filter label {
    grid-column: auto;
  }

  .dataset-filter output {
    min-width: 0;
    padding-bottom: 0;
    text-align: left;
  }

  .content-section {
    padding: 38px 0;
  }

  .signal-grid,
  .check-grid,
  .related-grid,
  .record-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .record-hero h1 {
    font-size: 36px;
  }

  .guide-card {
    grid-template-columns: 1fr;
  }

  .guide-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
