/* Selected Stitch Bold Local design, adapted to the working Django pages.
   Reference: docs/designs/2026-09-14-stitch/01-bold-local.html. */
:root {
  color-scheme: dark;
  --night: #101415;
  --panel: #1c2021;
  --paper: #181c1d;
  --light: #e0e3e4;
  --muted: #bac9cb;
  --line: #3b494b;
  --gold: #f1e80f;
  --teal: #00d9e8;
  --ink: #101415;
  --softink: #bac9cb;
  --lightline: #3b494b;
  --surface-lowest: #0b0f10;
  --surface-low: #181c1d;
  --surface-high: #262b2c;
  --surface-bright: #363a3b;
  --primary-text: #75f2ff;
  --shadow: 0 12px 32px #00000024;
}
body { font-family: Manrope, ui-sans-serif, system-ui, sans-serif; font-size: 15px; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, .wordmark, .button, .route-ref, .path-number { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; font-weight: 700; }
h1 { text-transform: none; font-size: clamp(36px, 4.5vw, 60px); line-height: 1.12; letter-spacing: -.045em; }
h2, h3 { letter-spacing: -.03em; }
p { text-wrap: pretty; }
.shell { padding-inline: max(20px, calc((100% - 1216px) / 2)); }
.kicker, .status-chip, .stitch-card-label, .field label, .header-contribute, .stitch-step { font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif; }
.kicker { font-size: 11px; letter-spacing: .14em; font-weight: 700; }
.kicker span { width: 6px; height: 6px; border-radius: 50%; }
.site-header { position: sticky; z-index: 1000; top: 0; min-height: 72px; gap: 28px; background: var(--surface-lowest); border-bottom: 1px solid #3b494b55; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--teal); font-size: 18px; letter-spacing: -.04em; white-space: nowrap; }
.wordmark:hover { text-decoration: none; color: var(--primary-text); }
.wordmark .brand-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--gold); }
.main-nav { display: flex; gap: 28px; font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; margin-right: auto; }
.main-nav a { padding-block: 9px; border-bottom: 2px solid transparent; color: var(--muted); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary-text); border-color: var(--teal); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-browse { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 44px; color: var(--muted); }
.header-browse svg { width: 21px; height: 21px; }
.button { min-height: 46px; border-radius: 8px; padding: 12px 19px; font-size: 14px; line-height: 1.4; cursor: pointer; transition: background 150ms, border-color 150ms; }
.button:hover { transform: none; }
.button-gold:hover { background: #ebe200; }
.button-teal:hover { background: var(--primary-text); }
.header-contribute { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; min-height: 40px; padding: 10px 15px; }
.button-outline { color: var(--teal); border: 2px solid var(--teal); background: transparent; }
.button-outline:hover { background: var(--teal); color: var(--ink); }
.button-surface { background: var(--surface-bright); color: var(--light); }
.button-surface:hover { background: #454d4f; }
:is(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid var(--primary-text); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 2000; border-radius: 6px; }
.skip-link:focus { top: 10px; }
[id] { scroll-margin-top: 96px; }
.status-chip { display: inline-flex; align-items: center; font-size: 11px; border-radius: 8px; color: var(--muted); background: var(--panel); padding: 6px 10px; font-weight: 500; }
.status-chip i { font-size: 10px; }

/* Homepage: the approved logo and two-column composition from Stitch. */
.stitch-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0; background: #000; padding-block: 48px; }
.stitch-hero-copy { position: relative; z-index: 1; max-width: 610px; }
.hero-kicker { margin-bottom: 22px; font-size: 10px; color: var(--muted); }
.stitch-hero h1 { font-size: clamp(38px, 4vw, 52px); max-width: 640px; margin: 0 0 24px; line-height: 1.08; }
.stitch-hero-intro { max-width: 555px; font-size: 17px; color: var(--muted); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-block: 30px; }
.hero-actions .button { padding: 13px 24px; font-size: 15px; }
.hero-notice { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #3b494b99; border-radius: 8px; background: var(--surface-low); max-width: 555px; }
.hero-notice svg, .stitch-review-notice>svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--teal); }
.hero-notice p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.stitch-hero-logo { display: flex; align-items: center; justify-content: center; min-width: 0; margin-left: -24px; }
.stitch-hero-logo img { display: block; width: 100%; height: auto; object-fit: contain; }
.stitch-section { padding-block: 80px; }
.stitch-directory, .stitch-community { background: var(--surface-low); border-top: 1px solid #3b494b55; }
.stitch-process { background: var(--surface-lowest); }
.stitch-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 36px; }
.stitch-section-heading h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; text-transform: uppercase; max-width: 850px; }
.stitch-section-heading .kicker { margin-bottom: 8px; }
.stitch-section-heading p:not(.kicker) { color: var(--muted); max-width: 760px; font-size: 15px; margin-top: 10px; }
.stitch-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stitch-card { min-width: 0; background: var(--panel); border: 1px solid #3b494b99; border-radius: 12px; padding: 26px; }
.stitch-card h3 { margin: 18px 0 10px; font-size: 20px; line-height: 1.3; }
.stitch-card p:not(.stitch-card-label) { color: var(--muted); font-size: 13px; line-height: 1.8; }
.stitch-route-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 3px 10px; border-radius: 8px; background: var(--teal); color: #00363b; font-family: "Space Grotesk", sans-serif; font-size: 23px; font-weight: 700; }
.stitch-card-label { color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; margin-top: 24px; }
.stitch-card-label+h3 { margin-top: 10px; }
.stitch-card-link { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font-size: 13px; font-weight: 700; margin-top: 22px; }
.stitch-steps { list-style: none; padding: 0; margin: 0; }
.stitch-steps .stitch-card { background: var(--surface-low); }
.stitch-step { color: var(--teal); font-size: 12px; font-weight: 700; }
.stitch-action-card { display: flex; flex-direction: column; }
.stitch-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--surface-lowest); color: var(--teal); border-radius: 8px; }
.stitch-icon svg { width: 25px; height: 25px; }
.stitch-icon-yellow { color: var(--gold); }
.stitch-action-card .button { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.stitch-action-card p { margin-bottom: 28px; }
.stitch-review-notice { display: flex; align-items: center; gap: 15px; margin-top: 40px; padding: 20px; background: var(--surface-lowest); border: 1px solid #3b494b99; border-radius: 12px; }
.stitch-review-notice p { color: var(--muted); font-size: 13px; flex: 1; }
.stitch-review-notice a { color: var(--primary-text); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* Shared functional pages: retain established form/map layouts and states. */
.page-intro, .detail-hero { padding-block: 58px 32px; }
.page-intro h1, .detail-hero h1 { font-size: clamp(34px, 4.5vw, 56px); margin-top: 14px; line-height: 1.15; }
.page-intro>p:not(.kicker) { font-size: 15px; }
.section-heading h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.2; }
.section-heading>p { font-size: 13px; }
.route-search input, .field input, .field select, .field textarea, .message-card textarea { background: var(--surface-lowest); border-color: #607174; border-radius: 8px; font-size: 14px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.field small, .map-note, .aside-note, .message-note { font-size: 12px; }
.field input::placeholder, .field textarea::placeholder, .route-search input::placeholder { color: #93a4a6; }
.field input[type="checkbox"], .path-editor input[type="range"] { accent-color: var(--teal); }
.route-workspace { display: block; }
.route-map { height: clamp(480px, 62vh, 680px); }
.route-list-panel { margin-top: 36px; padding: 0; }
.route-list-panel h2 { margin-bottom: 18px; }
.route-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 0; }
.route-list li { display: flex; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); flex-direction: column; }
.route-map, .detail-map, .survey-point-map { border-radius: 12px; isolation: isolate; }
.route-list.route-confidence-list li>a { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px 14px; }
.route-confidence-list .route-ref { grid-column: 1; grid-row: 1; }
.route-confidence-list li>a>span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.route-confidence-list .confidence-badge { grid-column: 2; grid-row: 1; }
.route-ref { font-size: 20px; color: var(--teal); }
.route-confidence-list .route-status { margin: auto 0 0; padding-top: 11px; border-top: 1px solid #3b494b99; color: var(--muted); }
.route-list strong { font-size: 14px; }
.route-list small, .route-status { font-size: 12px; }
.empty-state { font-size: 14px; }
.status-badge { border-radius: 8px; color: var(--primary-text); background: #004f5526; }
.detail-facts { border: 1px solid var(--line); padding: 10px 24px 24px; background: var(--panel); border-radius: 12px; }
.places, .source-block, .contribution-process { background: var(--surface-lowest); color: var(--light); }
.place-list article, .process-list li { border-color: var(--line); }
.source-list a { color: var(--primary-text); }
.source-list, .source-note { color: var(--muted); }
.additional-evidence, .route-leads { padding-block: 52px; border-top: 1px solid #3b494b55; background: var(--surface-low); }
.additional-evidence .section-heading, .route-leads .section-heading { align-items: flex-start; }
.additional-evidence .section-heading > div, .route-leads .section-heading > div { min-width: 0; }
.additional-evidence .section-heading h2, .route-leads .section-heading h2 { margin-top: 8px; }
.evidence-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 30px 0 0; padding: 0; }
.evidence-list li, .route-lead-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 22px; }
.evidence-meta, .route-lead-card > div:first-child { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.evidence-meta span { color: var(--gold); font-family: "Public Sans", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.evidence-list h3 { margin-top: 14px; font-size: 18px; line-height: 1.35; }
.evidence-list h3 a { color: var(--primary-text); }
.evidence-list li > p:not(.evidence-publisher) { margin-top: 10px; color: var(--light); font-size: 13px; }
.evidence-list small { display: block; margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.evidence-publisher, .evidence-review-date { margin-top: 16px; color: var(--muted); font-size: 11px; }
.route-lead-grid { display: grid; grid-template-columns: minmax(0, 760px); margin-top: 30px; }
.route-lead-card > div:first-child .route-ref { color: var(--teal); }
.route-lead-card h3 { margin-top: 18px; font-size: 23px; }
.route-lead-card > p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.route-lead-card .route-lead-corridor { color: var(--light); }
.route-lead-card details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 10px; }
.route-lead-card summary { min-height: 44px; padding-block: 10px; color: var(--primary-text); cursor: pointer; font-size: 13px; font-weight: 700; }
.route-lead-card ul { margin: 8px 0 0; padding-left: 19px; color: var(--muted); font-size: 12px; }
.route-lead-card li + li { margin-top: 12px; }
.route-lead-card li a { color: var(--primary-text); font-weight: 700; }
.route-lead-card li span { display: block; margin-top: 4px; line-height: 1.65; }
.route-lead-card details > p { margin-top: 16px; color: var(--muted); font-size: 12px; }
.route-lead-card .button { margin-top: 22px; }
.survey-intro.shell, .survey-layout.shell { padding-inline: max(20px, calc((100% - 900px) / 2)); }
.survey-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.survey-layout .survey-aside { padding-top: 0; }
.survey-form fieldset { padding-top: 28px; }
.survey-form legend { font-family: "Space Grotesk", sans-serif; font-size: 21px; font-weight: 700; }
.fieldset-note { font-size: 13px; }
.review-box, .aside-card, .receipt-card, .message-card, .campaign-card, .campaign-context { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; }
.aside-card { padding: 24px; }
.aside-card ol { font-size: 13px; }
.survey-thanks { padding-bottom: 38px; }
.receipt { border-radius: 8px; background: var(--panel); }
.receipt-card h3 { font-size: 17px; margin-block: 22px 10px; }
.receipt-detail, .receipt-messages p { font-size: 14px; }
.contribution-hero { background: var(--surface-lowest); padding-bottom: 42px; }
.contribution-paths { padding-block: 42px 64px; }
.contribution-path-grid { gap: 24px; }
.contribution-path { display: flex; flex-direction: column; border: 1px solid #3b494b; border-radius: 12px; padding: 26px; min-height: 242px; transition: border-color 150ms, background 150ms; }
.contribution-path:hover { transform: none; border-color: var(--teal); background: #232b2d; }
.path-number { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-width: 40px; height: 40px; background: var(--surface-lowest); color: var(--teal); border-radius: 8px; font-size: 15px; }
.contribution-path:nth-child(2) .path-number { color: var(--gold); }
.contribution-path h3 { font-size: 21px; line-height: 1.3; margin-top: 20px; }
.contribution-path p { font-size: 13px; max-width: none; padding-bottom: 12px; }
.path-arrow { right: 24px; bottom: 18px; }
.process-list li { padding: 24px; border: 1px solid #3b494b99; background: var(--surface-low); border-radius: 12px; }
.process-list li::before { color: var(--teal); }
.process-list strong { font-family: "Space Grotesk", sans-serif; font-size: 19px; }
.process-list span { font-size: 13px; }
.path-button { font-family: "Public Sans", sans-serif; font-size: 12px; border-color: #607174; background: var(--surface-high); border-radius: 8px; }
.path-button:hover:not(:disabled) { background: var(--surface-bright); }
.path-button[aria-pressed="true"], .path-primary { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.path-primary:hover:not(:disabled), .path-button[aria-pressed="true"]:hover { background: var(--primary-text); }
.path-danger { color: #ffb4ab; border-color: #ac7976; }
.path-gpx-panel, .path-pending, .path-draw-actions, .withdrawal-note { background: var(--surface-low); border-radius: 8px; }
.path-gpx-panel, .path-pending { border-color: #607174; }
.path-mode-note, .path-pending p, .path-sections>p, .path-gpx-panel ol, .path-phone-help { font-size: 13px; }
.path-key { border-color: #087f89; }
.path-key-reference { border-color: #89999e; }
.leaflet-container { color-scheme: light; font-family: Manrope, sans-serif; }
.site-footer { grid-template-columns: 1fr 1.2fr 1.2fr; background: var(--surface-lowest); padding-block: 36px; font-size: 11px; gap: 32px; }
.footer-brand>span { display: block; margin-top: 12px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: flex-end; }
.footer-links .attribution { width: 100%; margin-top: 10px; line-height: 1.7; }

@media (max-width: 1100px) {
  .site-header { gap: 18px; }
  .main-nav { gap: 18px; font-size: 12px; }
  .header-actions { gap: 8px; }
  .header-browse { display: none; }
  .route-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .stitch-hero { grid-template-columns: 1fr; padding-block: 16px 52px; }
  .stitch-hero-copy { width: 100%; max-width: 672px; text-align: center; margin-inline: auto; }
  .hero-kicker { justify-content: center; margin-top: 12px; }
  .stitch-hero h1 { max-width: none; }
  .stitch-hero-intro { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-notice { margin-inline: auto; text-align: left; }
  .stitch-hero-logo { order: -1; width: min(340px, 100%); margin: 0 auto; }
  .stitch-section { padding-block: 64px; }
}
@media (max-width: 800px) {
  .survey-form .field input, .survey-form .field select, .survey-form .field textarea,
  .path-map-workspace .field input, .path-map-workspace .field select,
  .message-card textarea, .route-search input { font-size: 16px; }
  .survey-form .field label { font-size: 13px; }
  .site-header { flex-wrap: wrap; padding-block: 12px; gap: 8px 14px; }
  .wordmark { font-size: 17px; }
  .header-actions { display: none; }
  .main-nav { order: 2; flex: 1 0 100%; justify-content: center; margin: 0; gap: 28px; font-size: 11px; }
  .main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 5px; }
  .header-contribute { font-size: 10px; min-height: 44px; padding: 10px 12px; letter-spacing: .02em; }
  [id] { scroll-margin-top: 125px; }
  .stitch-section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .stitch-card-grid { grid-template-columns: 1fr; gap: 18px; }
  .stitch-card { padding: 24px; }
  .stitch-section-heading h2 { font-size: 28px; }
  .stitch-review-notice { align-items: flex-start; flex-wrap: wrap; }
  .stitch-review-notice a { margin-left: 37px; }
  .stitch-review-notice p { flex-basis: calc(100% - 40px); }
  .stitch-action-card .button { margin-top: 0; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; }
  .site-footer p { justify-self: start; }
  .footer-links { justify-content: flex-start; }
  .footer-links .attribution { text-align: left; }
  .page-intro, .detail-hero { padding-top: 38px; }
  .route-map { height: 480px; min-height: 0; }
  .route-list { grid-template-columns: minmax(0, 1fr); }
  .evidence-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .stitch-hero h1 { font-size: 36px; }
  .stitch-hero-intro { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-block: 26px; }
  .hero-actions .button { width: 100%; }
  .stitch-section { padding-block: 48px; }
  .stitch-section-heading { margin-bottom: 26px; }
  .stitch-card h3 { font-size: 21px; }
  .hero-notice { padding: 12px; }
  .contribution-path { min-height: 220px; padding: 24px; }
  .route-list-panel { padding-inline: 0; }
  .detail-facts { padding-inline: 18px; }
  .review-summary div { grid-template-columns: 90px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .button, .contribution-path { transition: none; }
  .contribution-path:hover { transform: none; }
}
