:root {
  color-scheme: light;
  --nav: #0a1a2a;
  --nav-2: #10273b;
  --canvas: #f7f9fa;
  --paper: #ffffff;
  --ink: #14263a;
  --muted: #657388;
  --line: #e2e8ec;
  --accent: #c7f76d;
  --accent-ink: #19370b;
  --orange: #ff9f43;
  --mint: #e3f5e8;
  --warning: #fff4d8;
  --warning-ink: #6b4e00;
  font-family: Inter, "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: #155f77; text-underline-offset: .18em; }
a:hover { color: #0d4355; }
button { font: inherit; }
button:focus-visible,
a:focus-visible { outline: 3px solid #377fd1; outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  background: var(--nav);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}
.header-inner,
.page-shell,
.site-footer-inner {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.035em;
  font-size: 1.35rem;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.45rem;
}
.top-nav { display: flex; flex-wrap: wrap; gap: 9px; }
.top-nav a {
  color: #cfdae3;
  text-decoration: none;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: .9rem;
  font-weight: 750;
}
.top-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }

.page-shell { padding: 26px 0 72px; }
.breadcrumbs { margin: 0 0 22px; }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: .86rem;
}
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 7px; color: #9aa6b2; }
.breadcrumbs a { color: inherit; }

.hero,
.content-card,
.side-card,
.listing-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(24, 45, 65, .06);
}
.hero {
  border-radius: 26px;
  padding: clamp(26px, 5vw, 58px);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "✦";
  position: absolute;
  right: 4%;
  top: -58px;
  color: #edf3f5;
  font-size: 12rem;
  line-height: 1;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
  color: #4d7187;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
}
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.18; }
h1 { max-width: 900px; margin: 12px 0; font-size: clamp(2rem, 5vw, 3.65rem); }
h2 { margin: 0 0 15px; font-size: clamp(1.45rem, 3vw, 2.15rem); }
h3 { margin: 28px 0 10px; font-size: 1.22rem; }
p, li { line-height: 1.72; }
.lede { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.status-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: #eef3f5;
  color: #466174;
  font-size: .76rem;
  font-weight: 850;
}
.tag.warning { background: var(--warning); color: var(--warning-ink); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  margin-top: 22px;
}
.content-card,
.side-card,
.listing-card { border-radius: 21px; }
.content-card { padding: clamp(22px, 4vw, 44px); }
.side-card { padding: 22px; align-self: start; position: sticky; top: 18px; }
.side-card h2 { font-size: 1.1rem; }
.side-card ul { margin: 0; padding-left: 20px; }
.side-card li { margin: 8px 0; font-size: .92rem; }
.side-card .button { width: 100%; justify-content: center; margin-top: 10px; }

.normative-block {
  background: #f8fafb;
  border: 1px solid #dce4e9;
  border-left: 5px solid var(--orange);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 28px);
  margin: 18px 0 28px;
}
.normative-block p { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; }
.source-note,
.notice {
  border-radius: 13px;
  padding: 16px 18px;
  margin: 18px 0;
}
.source-note { background: #eef7f1; border: 1px solid #cfe7d7; }
.notice { background: var(--warning); border: 1px solid #ead9a5; color: var(--warning-ink); }
.source-note p,
.notice p { margin: 5px 0; font-size: .91rem; }
.education-block { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 32px; }
.education-label { color: #38705a; }
.key-list { padding-left: 22px; }
.key-list li { margin-bottom: 8px; }
.example-grid,
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.example-card {
  background: #f7faf8;
  border: 1px solid #dce9df;
  border-radius: 15px;
  padding: 18px;
}
.example-card h3 { margin-top: 0; }
.example-card p { font-size: .93rem; }
.example-card strong { color: #315c4c; }

.listing-grid { margin-top: 22px; }
.listing-card { padding: 22px; display: flex; flex-direction: column; }
.listing-card h2 { font-size: 1.4rem; }
.listing-card p { color: var(--muted); flex: 1; }
.listing-card .button { align-self: flex-start; }
.listing-section { margin-top: 42px; }
.listing-section > p { color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 11px;
  background: var(--nav);
  color: #fff;
  padding: 11px 15px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}
.button:hover { color: #fff; background: var(--nav-2); }
.button.secondary { background: #eef3f5; color: var(--ink); }
.article-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.copy-status { min-height: 1.4em; margin: 8px 0; color: #30664f; font-weight: 750; }

.lesson-content h2 { margin-top: 34px; }
.lesson-content blockquote { margin: 20px 0; padding: 4px 20px; border-left: 4px solid var(--orange); color: #485c6b; }
.lesson-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.lesson-content th,
.lesson-content td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.lesson-content img { max-width: 100%; height: auto; }
.lesson-content a { overflow-wrap: anywhere; }

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}
.pager a { background: #eef3f5; border-radius: 12px; padding: 14px; text-decoration: none; font-weight: 750; }
.pager .next { text-align: right; }

.site-footer { background: var(--nav); color: #b8c8d3; }
.site-footer-inner { padding: 32px 0; display: flex; justify-content: space-between; gap: 20px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; font-size: .9rem; }

html[data-text-scale="large"] .reading-content { font-size: 1.12rem; }
html[data-text-scale="larger"] .reading-content { font-size: 1.24rem; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .example-grid,
  .listing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 15px 0; }
  .top-nav { width: 100%; }
  .top-nav a { padding-left: 0; padding-right: 15px; }
  .page-shell { padding-top: 18px; }
  .hero { border-radius: 19px; }
  .hero::after { font-size: 7rem; }
  .example-grid,
  .listing-grid,
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .site-footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
