/* ==========================================================================
   Clear Horizons — clearhorizones.com
   Design system: "itinerary sheet". Single stylesheet, no dependencies.

   Fonts: self-hosted .woff2 files belong in /assets/fonts/.
   When the files are added, uncomment the @font-face blocks below and the
   font stacks will pick them up automatically (they are listed first in the
   --ch-font-* variables). Until then the system stack is used.

   @font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; font-style: normal; }
   @font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; font-style: normal; }
   @font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; font-style: normal; }
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  --ch-ink: #14201f;
  --ch-paper: #f7f4ed;
  --ch-surface: #ffffff;
  --ch-accent: #0f5f56;
  --ch-accent-soft: #d9e8e4;
  --ch-sand: #c9713a;
  --ch-line: #d8d2c4;
  --ch-muted: #5d6b68;

  /* Derived roles */
  --ch-accent-ink: #0b463f;        /* accent text on paper, AA at small sizes */
  --ch-sand-ink: #8f4519;          /* sand used as text */
  --ch-sand-soft: #f6e5da;
  --ch-shadow: 0 1px 2px rgba(20, 32, 31, 0.06), 0 8px 24px rgba(20, 32, 31, 0.05);
  --ch-focus: #0f5f56;

  --ch-font-display: "Archivo", "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ch-font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ch-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 8px rhythm */
  --ch-s1: 8px;
  --ch-s2: 16px;
  --ch-s3: 24px;
  --ch-s4: 32px;
  --ch-s5: 48px;
  --ch-s6: 64px;
  --ch-s7: 96px;

  --ch-wide: 1180px;
  --ch-text: 72ch;
  --ch-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ch-ink: #eef1ef;
    --ch-paper: #101817;
    --ch-surface: #17211f;
    --ch-accent: #6fc9bb;
    --ch-accent-soft: #1e3b37;
    --ch-sand: #e8a071;
    --ch-line: #2c3a37;
    --ch-muted: #a8b6b2;

    --ch-accent-ink: #8fdccf;
    --ch-sand-ink: #f0b78e;
    --ch-sand-soft: #33231a;
    --ch-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --ch-focus: #8fdccf;
  }
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ch-paper);
  color: var(--ch-ink);
  font-family: var(--ch-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--ch-font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--ch-s2);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.05rem); margin-top: var(--ch-s5); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); margin-top: var(--ch-s4); }
h4 { font-size: 1.05rem; margin-top: var(--ch-s3); }

p, ul, ol, dl, table, figure, blockquote { margin: 0 0 var(--ch-s3); }

a {
  color: var(--ch-accent-ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ch-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

img, svg { max-width: 100%; height: auto; }

hr {
  border: 0;
  border-top: 1px solid var(--ch-line);
  margin: var(--ch-s5) 0;
}

code, kbd { font-family: var(--ch-font-mono); font-size: 0.92em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */

.ch-shell { width: 100%; max-width: var(--ch-wide); margin-inline: auto; padding-inline: var(--ch-s3); }
@media (max-width: 480px) { .ch-shell { padding-inline: var(--ch-s2); } }

.ch-prose { max-width: var(--ch-text); }
.ch-prose h2 + p, .ch-prose h3 + p { margin-top: 0; }

.ch-section { padding-block: var(--ch-s6); }
.ch-section--tight { padding-block: var(--ch-s5); }
.ch-section + .ch-section { border-top: 1px solid var(--ch-line); }

.ch-lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ch-muted);
  max-width: 60ch;
}

.ch-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.ch-skip-link {
  position: absolute;
  left: var(--ch-s2);
  top: -100px;
  z-index: 100;
  background: var(--ch-accent);
  color: var(--ch-paper);
  padding: var(--ch-s1) var(--ch-s2);
  border-radius: var(--ch-radius);
  font-weight: 600;
  text-decoration: none;
}
.ch-skip-link:focus { top: var(--ch-s2); }

/* --------------------------------------------------------------------------
   4. Meta / mono type
   -------------------------------------------------------------------------- */

.ch-meta {
  font-family: var(--ch-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ch-muted);
  font-weight: 500;
}

.ch-eyebrow {
  font-family: var(--ch-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ch-accent-ink);
  display: block;
  margin-bottom: var(--ch-s2);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. Header and navigation
   -------------------------------------------------------------------------- */

.ch-header {
  border-bottom: 1px solid var(--ch-line);
  background: var(--ch-surface);
  position: relative;
  z-index: 40;
}

.ch-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ch-s3);
  min-height: 72px;
}

.ch-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--ch-s1);
  text-decoration: none;
  color: var(--ch-ink);
  font-family: var(--ch-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.ch-brand__mark { width: 34px; height: 34px; display: block; }
.ch-brand__name { white-space: nowrap; }

.ch-nav__list {
  display: flex;
  align-items: center;
  gap: var(--ch-s3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ch-nav__link {
  text-decoration: none;
  color: var(--ch-ink);
  font-size: 0.95rem;
  font-weight: 600;
  padding-block: var(--ch-s1);
  border-bottom: 2px solid transparent;
  display: inline-block;
}
.ch-nav__link:hover { border-bottom-color: var(--ch-accent); }
.ch-nav__link[aria-current="page"] { border-bottom-color: var(--ch-accent); color: var(--ch-accent-ink); }

.ch-nav__toggle {
  display: none;
  align-items: center;
  gap: var(--ch-s1);
  background: transparent;
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  color: var(--ch-ink);
  font-family: var(--ch-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px var(--ch-s2);
  cursor: pointer;
  min-height: 44px;
}

.ch-nav__close { display: none; }

@media (max-width: 900px) {
  .ch-nav__toggle { display: inline-flex; }
  .ch-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 88vw);
    background: var(--ch-surface);
    border-left: 1px solid var(--ch-line);
    transform: translateX(100%);
    transition: transform 180ms ease;
    padding: var(--ch-s3);
    overflow-y: auto;
    z-index: 60;
    visibility: hidden;
  }
  .ch-nav[data-open="true"] { transform: translateX(0); visibility: visible; }
  .ch-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .ch-nav__list li { border-bottom: 1px dashed var(--ch-line); }
  .ch-nav__link { display: block; padding: 14px 0; border-bottom: 0; font-size: 1.05rem; }
  .ch-nav__close {
    display: inline-flex;
    margin-left: auto;
    margin-bottom: var(--ch-s2);
    background: transparent;
    border: 1px solid var(--ch-line);
    border-radius: var(--ch-radius);
    color: var(--ch-ink);
    font-family: var(--ch-font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px var(--ch-s2);
    cursor: pointer;
    min-height: 44px;
  }
  .ch-nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(20, 32, 31, 0.45);
    z-index: 55;
  }
  .ch-nav-scrim[hidden] { display: none; }
}

/* --------------------------------------------------------------------------
   6. Breadcrumbs
   -------------------------------------------------------------------------- */

.ch-crumbs { padding-block: var(--ch-s2); border-bottom: 1px solid var(--ch-line); }
.ch-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ch-s1);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--ch-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ch-muted);
}
.ch-crumbs li + li::before { content: "/"; margin-right: var(--ch-s1); color: var(--ch-line); }
.ch-crumbs a { color: var(--ch-accent-ink); }

/* --------------------------------------------------------------------------
   7. Route strip — the signature component
   -------------------------------------------------------------------------- */

.ch-route-list { list-style: none; margin: 0; padding: 0; }

.ch-route-strip {
  display: grid;
  grid-template-columns: 210px 1fr auto;
  gap: var(--ch-s3);
  align-items: start;
  padding-block: var(--ch-s3);
  border-bottom: 1px dashed var(--ch-line);
  position: relative;
}
.ch-route-strip:first-child { border-top: 1px dashed var(--ch-line); }

.ch-route-strip__code {
  font-family: var(--ch-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ch-muted);
  padding-top: 4px;
  white-space: normal;
}
.ch-route-strip__code strong {
  color: var(--ch-accent-ink);
  font-weight: 500;
}

.ch-route-strip__body h3,
.ch-route-strip__body h2 { margin: 0 0 6px; font-size: 1.2rem; }
.ch-route-strip__body a { color: var(--ch-ink); text-decoration-color: var(--ch-line); }
.ch-route-strip__body a:hover { color: var(--ch-accent-ink); }
.ch-route-strip__body p { margin: 0; color: var(--ch-muted); font-size: 0.98rem; }

.ch-route-strip__action { padding-top: 2px; }

@media (max-width: 760px) {
  .ch-route-strip { grid-template-columns: 1fr; gap: var(--ch-s1); }
  .ch-route-strip__code { padding-top: 0; }
  .ch-route-strip__action { padding-top: var(--ch-s1); }
}

/* --------------------------------------------------------------------------
   8. Cards, grids, panels
   -------------------------------------------------------------------------- */

.ch-grid { display: grid; gap: var(--ch-s3); }
.ch-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ch-grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.ch-card {
  background: var(--ch-surface);
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  padding: var(--ch-s3);
}
.ch-card h3 { margin-top: 0; }
.ch-card p:last-child { margin-bottom: 0; }

.ch-panel {
  background: var(--ch-accent-soft);
  border-left: 4px solid var(--ch-accent);
  border-radius: 0 var(--ch-radius) var(--ch-radius) 0;
  padding: var(--ch-s3);
}
.ch-panel h3 { margin-top: 0; }
.ch-panel p:last-child, .ch-panel ul:last-child { margin-bottom: 0; }

.ch-note {
  background: var(--ch-sand-soft);
  border-left: 4px solid var(--ch-sand);
  border-radius: 0 var(--ch-radius) var(--ch-radius) 0;
  padding: var(--ch-s3);
}
.ch-note h3 { margin-top: 0; }
.ch-note p:last-child { margin-bottom: 0; }
.ch-note strong { color: var(--ch-sand-ink); }

/* --------------------------------------------------------------------------
   9. Fact lists and tables
   -------------------------------------------------------------------------- */

.ch-fact-list {
  margin: 0 0 var(--ch-s3);
  padding: 0;
  border-top: 1px solid var(--ch-line);
}
.ch-fact-list div {
  display: grid;
  grid-template-columns: minmax(140px, 34%) 1fr;
  gap: var(--ch-s2);
  padding: 10px 0;
  border-bottom: 1px solid var(--ch-line);
}
.ch-fact-list dt {
  font-family: var(--ch-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ch-muted);
  padding-top: 3px;
}
.ch-fact-list dd { margin: 0; }
@media (max-width: 520px) {
  .ch-fact-list div { grid-template-columns: 1fr; gap: 2px; }
}

.ch-table-wrap { overflow-x: auto; margin-bottom: var(--ch-s3); }
.ch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}
.ch-table caption {
  text-align: left;
  font-family: var(--ch-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ch-muted);
  padding-bottom: var(--ch-s1);
}
.ch-table th, .ch-table td {
  text-align: left;
  padding: 10px var(--ch-s2) 10px 0;
  border-bottom: 1px solid var(--ch-line);
  vertical-align: top;
}
.ch-table thead th {
  font-family: var(--ch-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ch-muted);
  border-bottom: 2px solid var(--ch-line);
}

/* --------------------------------------------------------------------------
   10. Season band
   -------------------------------------------------------------------------- */

.ch-season-band {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  margin: 0 0 var(--ch-s2);
  padding: 0;
  list-style: none;
}
.ch-season-band li {
  font-family: var(--ch-font-mono);
  font-size: 0.68rem;
  text-align: center;
  padding: 8px 2px;
  border: 1px solid var(--ch-line);
  border-radius: 2px;
  color: var(--ch-muted);
  background: var(--ch-surface);
}
.ch-season-band li[data-rating="best"] {
  background: var(--ch-accent-soft);
  border-color: var(--ch-accent);
  color: var(--ch-accent-ink);
  font-weight: 600;
}
.ch-season-band li[data-rating="mixed"] {
  background: var(--ch-sand-soft);
  border-color: var(--ch-sand);
  color: var(--ch-sand-ink);
}
.ch-season-key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ch-s2);
  list-style: none;
  margin: 0 0 var(--ch-s3);
  padding: 0;
  font-family: var(--ch-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ch-muted);
}
.ch-season-key span {
  display: inline-block;
  width: 12px; height: 12px;
  border: 1px solid var(--ch-line);
  margin-right: 6px;
  vertical-align: -1px;
  border-radius: 2px;
}
.ch-season-key .is-best { background: var(--ch-accent-soft); border-color: var(--ch-accent); }
.ch-season-key .is-mixed { background: var(--ch-sand-soft); border-color: var(--ch-sand); }
.ch-season-key .is-off { background: var(--ch-surface); }

@media (max-width: 620px) {
  .ch-season-band { grid-template-columns: repeat(6, 1fr); }
}

/* --------------------------------------------------------------------------
   11. Buttons and forms
   -------------------------------------------------------------------------- */

.ch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ch-s1);
  min-height: 44px;
  padding: 10px var(--ch-s3);
  border-radius: var(--ch-radius);
  border: 1px solid var(--ch-accent);
  background: var(--ch-accent);
  color: #ffffff;
  font-family: var(--ch-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease;
}
.ch-btn:hover { background: var(--ch-accent-ink); border-color: var(--ch-accent-ink); }

.ch-btn--ghost {
  background: transparent;
  color: var(--ch-accent-ink);
  border-color: var(--ch-line);
}
.ch-btn--ghost:hover { background: var(--ch-accent-soft); border-color: var(--ch-accent); color: var(--ch-accent-ink); }

.ch-btn--small { min-height: 38px; padding: 6px var(--ch-s2); font-size: 0.85rem; }

@media (prefers-color-scheme: dark) {
  .ch-btn { color: #0b1615; }
  .ch-btn:hover { background: var(--ch-accent-ink); }
  .ch-btn--ghost { color: var(--ch-accent-ink); background: transparent; }
}

.ch-field { margin-bottom: var(--ch-s3); max-width: 42rem; }
.ch-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.ch-field .ch-hint { display: block; color: var(--ch-muted); font-size: 0.87rem; margin-bottom: 6px; }
.ch-field input[type="text"],
.ch-field input[type="email"],
.ch-field select,
.ch-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px var(--ch-s2);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ch-ink);
  background: var(--ch-surface);
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
}
.ch-field textarea { min-height: 150px; resize: vertical; }
.ch-field input:focus-visible, .ch-field select:focus-visible, .ch-field textarea:focus-visible { border-color: var(--ch-accent); }
.ch-error {
  display: block;
  color: var(--ch-sand-ink);
  font-size: 0.88rem;
  margin-top: 6px;
  font-weight: 600;
}
.ch-error:empty { display: none; }

.ch-form-status {
  border: 1px solid var(--ch-line);
  border-left: 4px solid var(--ch-accent);
  background: var(--ch-accent-soft);
  padding: var(--ch-s2) var(--ch-s3);
  border-radius: 0 var(--ch-radius) var(--ch-radius) 0;
  max-width: 42rem;
}
.ch-form-status:empty { display: none; }

fieldset {
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  padding: var(--ch-s2) var(--ch-s3) var(--ch-s3);
  margin: 0 0 var(--ch-s3);
}
legend {
  font-family: var(--ch-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ch-muted);
  padding-inline: 6px;
}

.ch-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px var(--ch-s2);
}
.ch-check {
  display: flex;
  align-items: center;
  gap: var(--ch-s1);
  font-size: 0.95rem;
  min-height: 36px;
  cursor: pointer;
}
.ch-check input { width: 18px; height: 18px; accent-color: var(--ch-accent); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   12. Trip planner
   -------------------------------------------------------------------------- */

.ch-planner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--ch-s5);
  align-items: start;
}
@media (max-width: 940px) {
  .ch-planner { grid-template-columns: 1fr; gap: var(--ch-s4); }
}

.ch-planner__filters { position: sticky; top: var(--ch-s2); }
@media (max-width: 940px) { .ch-planner__filters { position: static; } }

.ch-result-count {
  font-family: var(--ch-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ch-muted);
  margin-bottom: var(--ch-s2);
  display: block;
}

.ch-empty {
  border: 1px dashed var(--ch-line);
  border-radius: var(--ch-radius);
  padding: var(--ch-s4);
  text-align: center;
  color: var(--ch-muted);
}

.ch-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--ch-s2);
  margin-bottom: var(--ch-s3);
  padding: 0;
  list-style: none;
}
.ch-summary li {
  background: var(--ch-surface);
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  padding: var(--ch-s2);
}
.ch-summary .ch-summary__value {
  display: block;
  font-family: var(--ch-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}
.ch-summary .ch-summary__label {
  display: block;
  font-family: var(--ch-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ch-muted);
  margin-top: 4px;
}

.ch-actions { display: flex; flex-wrap: wrap; gap: var(--ch-s2); margin-bottom: var(--ch-s3); }

/* --------------------------------------------------------------------------
   13. Editorial notes and figures
   -------------------------------------------------------------------------- */

.ch-editor-note {
  border-top: 2px solid var(--ch-line);
  border-bottom: 1px solid var(--ch-line);
  padding: var(--ch-s3) 0;
  margin-bottom: var(--ch-s3);
}
.ch-editor-note p:last-child { margin-bottom: 0; }
.ch-editor-note__by {
  font-family: var(--ch-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ch-muted);
  display: block;
  margin-bottom: var(--ch-s1);
}

.ch-figure { margin: 0 0 var(--ch-s3); }
.ch-figure svg, .ch-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  background: var(--ch-surface);
}
.ch-figure figcaption {
  font-size: 0.87rem;
  color: var(--ch-muted);
  margin-top: var(--ch-s1);
}

.ch-hero {
  padding-block: var(--ch-s6) var(--ch-s5);
  border-bottom: 1px solid var(--ch-line);
}
.ch-hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--ch-s5);
  align-items: center;
}
@media (max-width: 860px) {
  .ch-hero__grid { grid-template-columns: 1fr; gap: var(--ch-s3); }
}

.ch-inline-list { list-style: none; margin: 0 0 var(--ch-s3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--ch-s1) var(--ch-s2); }
.ch-inline-list li {
  font-family: var(--ch-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--ch-line);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--ch-muted);
}

.ch-checklist { list-style: none; margin: 0 0 var(--ch-s3); padding: 0; }
.ch-checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: var(--ch-s1);
}
.ch-checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 12px;
  border: 1.5px solid var(--ch-accent);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.ch-footer {
  border-top: 1px solid var(--ch-line);
  background: var(--ch-surface);
  padding-block: var(--ch-s5);
  margin-top: var(--ch-s6);
}
.ch-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--ch-s4);
}
@media (max-width: 760px) { .ch-footer__grid { grid-template-columns: 1fr; gap: var(--ch-s3); } }

.ch-footer h2 {
  font-family: var(--ch-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ch-muted);
  margin: 0 0 var(--ch-s2);
  font-weight: 500;
}
.ch-footer ul { list-style: none; margin: 0; padding: 0; }
.ch-footer li { margin-bottom: 6px; }
.ch-footer a { color: var(--ch-ink); font-size: 0.95rem; }
.ch-footer a:hover { color: var(--ch-accent-ink); }
.ch-footer__note {
  margin-top: var(--ch-s4);
  padding-top: var(--ch-s3);
  border-top: 1px dashed var(--ch-line);
  color: var(--ch-muted);
  font-size: 0.88rem;
}
.ch-footer__note p { margin: 0 0 6px; }

/* --------------------------------------------------------------------------
   15. Print
   -------------------------------------------------------------------------- */

@media print {
  :root {
    --ch-paper: #ffffff;
    --ch-surface: #ffffff;
    --ch-ink: #000000;
    --ch-muted: #333333;
    --ch-line: #999999;
    --ch-accent-soft: #ffffff;
  }
  .ch-header, .ch-footer, .ch-nav, .ch-nav-scrim, .ch-crumbs,
  .ch-planner__filters, .ch-actions, .ch-skip-link,
  .ch-route-strip__action, .ch-no-print { display: none !important; }
  .ch-planner { grid-template-columns: 1fr; }
  body { font-size: 11pt; background: #fff; }
  a { text-decoration: none; color: #000; }
  .ch-section { padding-block: 0; border: 0; }
  .ch-summary li { border: 1px solid #999; }
  h2, h3 { break-after: avoid; }
  .ch-route-strip { break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   16. Spacing roles (replaces inline styles)
   -------------------------------------------------------------------------- */

h2:first-child, h3:first-child { margin-top: 0; }
.ch-section--flush { padding-top: 0; }
.ch-cta-row { margin-top: var(--ch-s4); }
.ch-note--spaced, .ch-grid--spaced { margin-top: var(--ch-s5); }
.ch-editor-note--spaced { margin-top: var(--ch-s5); }
.ch-note--narrow { max-width: 42rem; margin-bottom: var(--ch-s4); }
.ch-lede--spaced { margin-bottom: var(--ch-s4); }
.ch-meta--spaced { margin-top: var(--ch-s1); }
.ch-summary__value--text { font-size: 1.05rem; }
.ch-footer__blurb { margin: var(--ch-s2) 0 0; color: var(--ch-muted); font-size: 0.88rem; }
