.stage-page, .guide-library {
  --stage-tint: #eee5ed;
  --stage-highlight: #643f62;
}
.stage-out { --stage-tint: #f2e2dc; --stage-highlight: #8a473d; }
.stage-in { --stage-tint: #e9eadd; --stage-highlight: #495737; }
.stage-transit { --stage-tint: #e6dfed; --stage-highlight: #5b4470; }
.stage-banner { background: var(--stage-tint); border-bottom: 1px solid #34233424; }
.stage-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; padding-top: 1.2rem; }
.stage-nav a { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0.4rem 0.85rem; border: 1px solid #34233455; border-radius: 100vmax; text-decoration: none; font-size: 0.91rem; font-weight: 700; }
.stage-nav a:hover { background: #fff9; }
.stage-nav a[aria-current="page"] { color: #fff; border-color: var(--stage-highlight); background: var(--stage-highlight); }
.stage-lead { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(1.25rem, 5vw, 4.2rem); align-items: center; padding-block: clamp(1.6rem, 5vw, 4.5rem); }
.stage-lead .eyebrow, .library-lead .eyebrow { color: var(--stage-highlight); }
.stage-lead h1, .library-lead h1 { margin-top: 0.56rem; font: 400 clamp(3.1rem, 7.2vw, 6.7rem)/0.94 var(--display); letter-spacing: -0.069em; text-wrap: balance; }
.stage-summary { margin-block: 0.98rem 1.15rem; color: var(--muted); max-width: 53ch; font-size: clamp(1rem, 1.6vw, 1.19rem); }
.stage-lead img { width: 100%; aspect-ratio: 1.52; object-fit: cover; object-position: 52% 48%; border-radius: 0.22rem 3.6rem 0.22rem 0.22rem; background: #664437; }
.stage-edition { padding-block: clamp(2rem, 5vw, 4rem); }
.stage-first { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,0.92fr); gap: clamp(1rem, 5vw, 3.4rem); align-items: start; }
.stage-first h2, .stage-guides > h2 { font: 400 clamp(1.9rem, 4.1vw, 3.25rem)/1.02 var(--display); letter-spacing: -0.055em; }
.stage-checklist { list-style: none; padding: 0; margin: 0.9rem 0 0; }
.stage-checklist li { border-top: 1px solid var(--line); padding: 0.7rem 0.2rem 0.75rem 0; }
.stage-checklist li strong { display: block; color: var(--stage-highlight); margin-bottom: 0.16rem; }
.stage-checklist li p, .stage-entries article > p:not(.eyebrow) { color: var(--muted); }
.stage-example { margin-top: 0.4rem; border-left: 3px solid var(--stage-highlight); border-radius: 0.2rem 1.8rem 0.2rem 0.2rem; padding: clamp(1rem, 3.3vw, 2rem); background: var(--stage-tint); }
.stage-example .eyebrow { color: var(--stage-highlight); margin-bottom: 0.62rem; }
.stage-example h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.stage-example p + p, .stage-example h2 + p { margin-top: 0.7rem; }
.stage-example a { font-weight: 650; }
.stage-guides { margin-top: clamp(2.1rem, 4.8vw, 4rem); }
.stage-entries { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(16.6rem,100%),1fr)); gap: 0.74rem; margin-top: 0.98rem; }
.stage-entries article { padding: 1rem 1.15rem 1.15rem; border: 1px solid var(--line); background: #fffaf4; border-radius: 0.4rem; min-width: 0; }
.stage-entries h2, .stage-entries h3 { font: 400 clamp(1.35rem, 2.05vw, 1.85rem)/1.13 var(--display); letter-spacing: -0.042em; margin-block: 0.1rem 0.35rem; }
.stage-entries a { text-decoration-thickness: 0.06em; }
.stage-entries a:hover { color: var(--stage-highlight); }
.stage-more { margin-top: 0.92rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem 1.15rem; }
.library-banner { background: #f0e5dd; }
.library-lead { padding-block: clamp(1.7rem, 4vw, 3.6rem); }
.library-lead h1 { max-width: 13ch; }
.library-results { padding-block: 1.5rem clamp(2.5rem, 5vw, 4rem); }
.library-controls { display: grid; grid-template-columns: minmax(14rem,0.68fr) minmax(0,1fr); align-items: end; gap: 0.85rem 1.4rem; }
.library-controls label { display: block; font-size: 0.94rem; font-weight: 700; }
.library-controls input { margin-top: 0.28rem; display: block; width: 100%; min-width: 0; padding: 0.65rem 0.75rem; border-radius: 0.36rem; border: 1px solid #948391; background: #fffaf4; color: var(--ink); }
.library-segmented { justify-self: start; flex-wrap: wrap; border-radius: 0.9rem; }
.library-segmented button { min-height: 2.55rem; padding-inline: 0.68rem; }
.library-status { margin-top: 1rem; color: var(--muted); font-size: 0.91rem; }
.library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.library-grid .eyebrow { color: var(--stage-highlight); margin-bottom: 0.52rem; font-size: 0.79rem; }
.library-empty { padding: 1rem 0; }
.library-empty .button { margin-top: 0.6rem; }
@media (max-width: 970px) { .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) {
  .stage-lead, .stage-first, .library-controls { grid-template-columns: minmax(0,1fr); }
  .stage-lead { gap: 1.15rem; }
  .stage-lead h1, .library-lead h1 { font-size: clamp(3rem, 10vw, 4.85rem); }
  .stage-first { gap: 0.8rem; }
  .stage-lead img { border-top-right-radius: 2.3rem; }
  .library-segmented { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); width: 100%; }
  .library-segmented button { white-space: normal; padding-inline: 0.14rem; font-size: 0.875rem; }
}
@media (max-width: 470px) { .library-grid { grid-template-columns: minmax(0,1fr); } }
@media print {
  .stage-nav, .site-header, .site-footer, .stage-more, .library-controls, .stage-lead .button { display: none; }
  .stage-example, .stage-entries article { break-inside: avoid; }
  .stage-banner, .stage-example { background: white; }
}

.stage-tool-callout { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.3rem; margin-top: 1.4rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 0.43rem; background: #fffbf6; }
.stage-tool-callout h2 { font: 400 clamp(1.6rem,3.3vw,2.1rem)/1.08 var(--display); letter-spacing: -0.05em; }
.stage-tool-callout p { margin-top: 0.25rem; color: var(--muted); }
.stage-tool-callout .button { flex: 0 0 auto; }
@media (max-width: 610px) { .stage-tool-callout { flex-direction: column; align-items: flex-start; } }
@media print { .stage-tool-callout .button { display: none; } }
