body.category-page {
  --ink: #30253b;
  --muted: #63566b;
  --line: #e1d6db;
  --mint: #f0e7f2;
  --mint-strong: #67446e;
  --mint-deep: #56375d;
  --paper: #fffcf7;
  --shadow: 0 12px 32px rgba(66, 41, 61, .08);
  background: #fbf5ed;
}

body.category-page .site-header {
  grid-template-columns: auto minmax(0, 1fr);
  padding-inline: max(20px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

body.category-page .brand {
  gap: 12px;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: .025em;
}

body.category-page .header-nav { justify-content: end; gap: clamp(16px, 3vw, 34px); font-size: 15px; }
body.category-page .header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-block: 10px;
}

body.category-page .site-footer {
  padding: 26px 20px;
  border-top: 1px solid var(--line);
  background: #f2e9ed;
  color: var(--muted);
}

body.category-page :is(.policy-panel, .test-intro, .test-panel, .result-panel, .faq-list details) {
  border: 1px solid var(--line);
  background: var(--paper);
}

body.category-page :is(.primary-button, .secondary-button, .ghost-button) {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}

body.category-page .primary-button {
  border-color: var(--mint-deep);
  background: var(--mint-deep);
  color: #fff;
}

body.category-page :is(.secondary-button, .ghost-button) {
  background: var(--paper);
  color: var(--mint-deep);
}

body.category-page :is(.primary-button, .secondary-button, .ghost-button):hover:not(:disabled) {
  border-color: var(--mint-deep);
  box-shadow: 0 3px 10px rgba(66, 41, 61, .12);
}

body.category-page :is(a, button, input, textarea, select, summary):focus-visible { outline-color: var(--mint-deep); }
body.category-page :is(.column-text-link, .breadcrumb a, .back-link) { color: var(--mint-deep); }

body.category-page .pill {
  min-height: 0;
  padding: 5px 13px;
  border: 1px solid #ecd6be;
  background: #f8e8d5;
  color: #683e2c;
  font-size: 14px;
}

.senior-page .senior-section, .senior-page [id^="puzzle-"],
.senior-page #three, .senior-page #three-mono, .senior-page #five {
  scroll-margin-top: 96px;
}

.senior-page #problems :is(h3[id], h4[id]) { margin: 30px 0 0; }
.senior-page #problems h3[id] + h4[id] { margin-top: 10px; }
.senior-page #problems article .senior-preview { margin-top: 16px; }
.senior-page #problems article .senior-links a { flex-wrap: wrap; }

.feature-landing .test-shell {
  max-width: 1200px;
  padding: clamp(20px, 4vw, 52px) 20px 64px;
}

body.feature-landing .home-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(24px, 4vw, 52px);
  background: linear-gradient(125deg, #fffaf2 20%, #f6e8e5 100%);
}

.home-hero h1 {
  margin-top: 12px;
  font-size: clamp(36px, 5.5vw, 66px);
  letter-spacing: .02em;
}

.print-home .home-hero h1 {
  font-size: clamp(26px, 3.8vw, 40px);
  letter-spacing: normal;
  word-break: keep-all;
}

.home-hero .lead { margin-top: 16px; color: var(--muted); font-size: 17px; font-weight: 600; }
.home-hero .senior-links { margin-bottom: 0; }
.home-hero .senior-figure { margin: 0; }
.home-hero .senior-figure a { display: block; }
.home-hero .senior-preview { border: 6px solid var(--paper); box-shadow: var(--shadow); }
.home-hero .senior-figure figcaption { margin-top: 8px; font-size: 14px; text-align: center; }

.print-home #genres .senior-grid .policy-panel { padding: clamp(16px, 3vw, 30px); }
.print-home #genres .senior-preview { aspect-ratio: 2 / 1; object-fit: contain; margin-bottom: 14px; }
.print-home #genres .column-text-link { display: inline-block; margin-top: 12px; }
.home-old-anchor { display: block; scroll-margin-top: 112px; }
.feature-landing #types .senior-grid .policy-panel { padding: clamp(18px, 3vw, 30px); }
.print-home #print-menu .senior-preview { margin-bottom: 16px; }

@media (max-width: 1080px) {
  body.category-page .site-header { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  body.feature-landing .home-hero { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .feature-landing .test-shell { padding-inline: 16px; }
  .home-hero .lead { font-size: 16px; }
}

@media print {
  body.feature-landing .home-hero { display: block; }
}
