:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-strong: #eef1f4;
  --ink: #17202a;
  --muted: #5f6b76;
  --faint: #87929d;
  --border: #dce2e8;
  --accent: #e95d0c;
  --accent-dark: #b94405;
  --accent-soft: #fff1e8;
  --success: #176b4d;
  --warning: #8a4b00;
  --danger: #a62929;
  --radius: 14px;
  --radius-small: 8px;
  --shadow: 0 10px 30px rgba(23, 32, 42, 0.07);
  --shadow-soft: 0 4px 14px rgba(23, 32, 42, 0.05);
  --max-width: 1160px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Nimbus Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ink-dark: #10161d;
  --ink-dark-soft: #1a2330;
  --dark-border: #2a3542;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(233, 93, 12, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(23, 32, 42, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(233, 93, 12, 0.28);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), #ff9a45);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 12px rgba(233, 93, 12, 0.2);
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-text strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-text strong span {
  color: var(--accent);
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav,
.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.main-nav a,
.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.top-nav a:hover {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--ink);
}

.main-nav a.active,
.top-nav a.active {
  border-color: #f3cdb6;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* No-JS burger (checkbox hack). Hidden checkbox toggles nav on mobile. */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  user-select: none;
}

.nav-toggle-label:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.header-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(23, 107, 77, 0.09);
  content: "";
}

.hero {
  padding: 72px 0 42px;
  text-align: center;
}

.hero-badge,
.meta-badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 7px 12px;
  border: 1px solid #f3cdb6;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 850px;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.15rem, 5.2vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--accent);
}

.hero-sub,
.page-hero > p {
  max-width: 730px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.7;
}

.hero-meta,
.article-meta,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--faint);
  font-size: 0.78rem;
}

.meta-badge {
  margin: 0;
  border-color: var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(233, 93, 12, 0.18);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.section {
  padding: 58px 0;
}

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

.section-header {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-header h2,
.section-header h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  border-color: #f0b48f;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card h2 {
  font-size: 1.28rem;
}

.card h3 {
  font-size: 1.05rem;
}

.card p,
.card li {
  color: var(--muted);
}

.card p {
  margin: 0 0 14px;
}

.card ul,
.card ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.card li + li {
  margin-top: 7px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 750;
}

.card-link::after {
  margin-left: 6px;
  content: "→";
}

.tag-row,
.topic-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tag-row li,
.topic-list li,
.tag-list li,
.tag,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.tag-row a,
.topic-list a,
.tag-list a {
  color: inherit;
  text-decoration: none;
}

.tag-row a:hover,
.topic-list a:hover,
.tag-list a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tag {
  margin: 0 0 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  margin: 34px 0 52px;
}

.main-col {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
}

.sidebar .card {
  padding: 17px;
}

.sidebar h3 {
  margin: 0 0 11px;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.sidebar ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.sidebar li a:hover {
  background: var(--surface-strong);
  color: var(--accent-dark);
}

.sidebar .count {
  flex: 0 0 auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.page-hero {
  padding: 52px 0 10px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.7vw, 3.35rem);
}

.page-hero > p {
  max-width: 760px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.article {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.article-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-header h2,
.article-header h1 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.article-meta {
  justify-content: flex-start;
  margin: 0;
  font-size: 0.76rem;
}

.article-content {
  padding-top: 22px;
}

.article-content h2 {
  margin: 34px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.article-content h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.article-content p {
  margin: 0 0 14px;
  color: var(--muted);
}

.article-content p strong,
.article-content li strong,
.card strong {
  color: var(--ink);
}

.article-content ul,
.article-content ol {
  margin: 12px 0 18px;
  padding-left: 23px;
  color: var(--muted);
}

.article-content li {
  margin-bottom: 7px;
}

.article-content a {
  font-weight: 650;
}

.article-content blockquote {
  margin: 20px 0;
  padding: 15px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 9px 9px 0;
  background: var(--accent-soft);
  color: var(--ink);
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.article-content th,
.article-content td {
  padding: 11px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 750;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
}

.table-wrap table {
  margin: 0;
  border: 0;
}

.callout {
  margin: 20px 0;
  padding: 15px 17px;
  border-left: 3px solid var(--accent);
  border-radius: 0 9px 9px 0;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.92rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout.warn {
  border-color: #c77a13;
  background: #fff7e8;
}

.callout.danger {
  border-color: var(--danger);
  background: #fff0f0;
}

.callout.success {
  border-color: var(--success);
  background: #edf8f3;
}

.notice {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid #f0c5a8;
  border-radius: var(--radius-small);
  background: var(--accent-soft);
  color: var(--ink);
}

.notice-title {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-weight: 800;
}

.notice p:last-child {
  margin-bottom: 0;
}

.source-list {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}

.source-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.source-list a:hover {
  border-color: #f0b48f;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.source-list small {
  flex: 0 0 auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.faq details {
  margin-bottom: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.faq summary {
  padding: 13px 15px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  list-style-position: outside;
}

.faq details p {
  margin: 0;
  padding: 0 15px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.spoke-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spoke-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.spoke-list a:hover {
  border-color: #f0b48f;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.spoke-list span {
  display: grid;
  min-width: 0;
}

.spoke-list strong {
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}

.spoke-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.spoke-list > small {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.resource-card:hover {
  border-color: #f0b48f;
  background: var(--accent-soft);
  color: var(--ink);
}

.resource-card strong {
  font-size: 0.98rem;
}

.resource-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.resource-card small {
  margin-top: auto;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.divider {
  height: 1px;
  margin: 38px 0;
  border: 0;
  background: var(--border);
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: #f8fafb;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 38px 0 28px;
}

.footer-inner h4 {
  margin: 0 0 11px;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-inner p,
.footer-inner li,
.footer-inner a {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.footer-bottom a {
  color: var(--muted);
}

.noscript-note {
  margin: 18px 0;
  padding: 13px 16px;
  border: 1px solid #f0c5a8;
  border-radius: var(--radius-small);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.86rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Hybrid dark blocks: static status bar + checklist magnet. Pure CSS, no JS. */
.dark-block {
  background: var(--ink-dark);
  color: #e8edf2;
}

.status-bar {
  padding: 14px 0;
  border-bottom: 1px solid var(--dark-border);
  background: var(--ink-dark);
  color: #c6d0da;
  font-size: 0.8rem;
}

.status-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35c37d;
  box-shadow: 0 0 0 4px rgba(53, 195, 125, 0.15);
}

.status-bar a {
  color: #ffb37e;
}

.magnet-dark {
  padding: 34px 0;
  background: linear-gradient(180deg, var(--ink-dark) 0%, var(--ink-dark-soft) 100%);
  color: #e8edf2;
}

.magnet-dark .card {
  border-color: var(--dark-border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  color: #e8edf2;
}

.magnet-dark .card h3 {
  color: #fff;
  font-family: var(--font-serif);
}

.magnet-dark .card p {
  color: #b9c4cf;
}

.magnet-dark .tag {
  background: rgba(233, 93, 12, 0.18);
  color: #ffb37e;
}

.magnet-dark .card-link {
  color: #ffb37e;
}

/* Hero search: works without JS (GET to Bing site-search). JS only enhances. */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 24px auto 0;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.search-form button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--accent-dark);
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.search-tags a {
  display: inline-flex;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: none;
}

.search-tags a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.search-hint {
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 980px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    min-height: 64px;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .nav-toggle-label {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .header-status {
    display: none;
  }

  .main-nav,
  .top-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 14px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.99);
  }

  /* Only apply burger-hiding when the checkbox exists (index).
     Other pages without .nav-toggle keep the old scrollable nav. */
  .header-inner:not(:has(.nav-toggle)) .main-nav,
  .header-inner:not(:has(.nav-toggle)) .top-nav {
    display: flex;
    position: static;
    flex-direction: row;
    width: 100%;
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .site-header {
    position: sticky;
  }

  /* Pure CSS toggle: checkbox checked shows nav. Works with JS disabled. */
  .nav-toggle:checked ~ .main-nav,
  .nav-toggle:checked ~ .top-nav {
    display: flex;
  }

  .main-nav a,
  .top-nav a {
    width: 100%;
    min-height: 44px;
  }

  .search-form {
    flex-direction: column;
  }

  .status-bar-inner {
    gap: 6px 12px;
  }

  .hero {
    padding: 52px 0 30px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .resource-grid,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 42px 0;
  }

  .page-hero {
    padding-top: 38px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
