/* Green Luzern: a local guide, with a quiet map interface. */
:root {
    --bg-base: #f6f5ef;
    --bg-primary: #f6f5ef;
    --bg-surface: #ffffff;
    --bg-card: #f0f0e9;
    --bg-elevated: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.97);
    --bg-hover: rgba(24, 55, 42, 0.05);
    --bg-active: rgba(31, 89, 65, 0.10);
    --text-primary: #23382d;
    --text-secondary: #536259;
    --text-muted: #66746b;
    --text-inverse: #ffffff;
    --accent: #245d43;
    --accent-light: #245d43;
    --accent-lighter: #245d43;
    --border: rgba(35, 56, 45, 0.12);
    --border-strong: rgba(35, 56, 45, 0.22);
    --shadow-sm: 0 1px 3px rgba(25, 45, 33, 0.08);
    --shadow-md: 0 3px 12px rgba(25, 45, 33, 0.10);
    --shadow-lg: 0 6px 24px rgba(25, 45, 33, 0.12);
    --shadow-xl: 0 8px 32px rgba(25, 45, 33, 0.14);
    --font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
a { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid #245d43; outline-offset: 4px; }
#landing-page { background: #f6f5ef; color: #23382d; padding: 0; display: block; }
.guide-header, .guide-main, .footer-inner { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.guide-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d6dcd2; gap: 24px; }
.guide-brand { display: flex; align-items: center; gap: 12px; color: #23382d; font-weight: 700; font-size: 21px; text-decoration: none; line-height: 1.05; }
.guide-brand img { border-radius: 6px; }
.brand-sub { display: block; font-size: 12px; letter-spacing: .03em; font-weight: 400; margin-top: 7px; color: #536259; }
.guide-header nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.guide-header nav a { text-decoration: none; color: inherit; }
.guide-header nav button { font-size: inherit; }
.guide-header nav a:hover, .guide-header nav button:hover { text-decoration: underline; text-underline-offset: 5px; }
.guide-hero { display: grid; grid-template-columns: 1fr 1.12fr; gap: 64px; align-items: center; padding: 64px 0 70px; }
.guide-eyebrow { font-size: 12px; letter-spacing: .11em; text-transform: uppercase; font-weight: 600; color: #536259; }
.guide-intro h1 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(46px, 4.8vw, 76px); font-weight: 400; line-height: .99; letter-spacing: -.04em; margin: 26px 0 24px; }
.guide-intro h1 .title-line { display: block; }
@keyframes guide-arrive {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
    .guide-ready .guide-header { animation: guide-arrive .65s .12s both; }
    .guide-ready .guide-intro > .guide-eyebrow { animation: guide-arrive .65s .22s both; }
    .guide-ready .title-line { animation: guide-arrive .85s cubic-bezier(.2,.65,.3,1) both; }
    .title-line:nth-child(1) { animation-delay: .28s; }
    .title-line:nth-child(2) { animation-delay: .38s; }
    .title-line:nth-child(3) { animation-delay: .48s; }
    .guide-ready .guide-deck { animation: guide-arrive .75s .55s both; }
    .guide-ready .guide-primary, .guide-ready .guide-small { animation: guide-arrive .7s .65s both; }
    .guide-ready .guide-map-wrap { animation: guide-arrive 1s .4s both; }
    .guide-section-heading, .guide-category, .guide-pick, .guide-note { transition: opacity .65s var(--reveal-delay, 0ms), transform .65s var(--reveal-delay, 0ms); }
    .reveal-pending { opacity: 0; transform: translateY(18px); }
    .reveal-pending:focus-within { opacity: 1; transform: none; }
    .guide-primary i, .guide-map-link i, .guide-category > i:last-child, .pick-link i { transition: transform .2s ease; }
    .guide-primary:hover i, .guide-category:hover > i:last-child, .guide-pick:hover .pick-link i { transform: translate(3px, -3px); }
    .guide-map-link:hover i { transform: translateX(4px); }
}
.guide-deck { font-size: 19px; line-height: 1.5; max-width: 370px; color: #536259; }
.guide-primary { display: inline-flex; align-items: center; gap: 35px; background: #245d43; color: #fff; font-size: 17px; font-weight: 600; padding: 15px 22px; border-radius: 4px; margin-top: 28px; transition: background .15s; }
.guide-primary:hover { background: #163e2c; }
.guide-primary i { font-size: 22px; }
.guide-small { margin-top: 12px; font-size: 13px; color: #66746b; }
.guide-map-wrap { background: #e9ece4; border: 1px solid #d1d8cd; position: relative; }
.guide-map-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; font-size: 12px; background: #edf0e7; color: #3c5143; }
.guide-map-top > span:first-child { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.map-dot { width: 7px; height: 7px; background: #245d43; border-radius: 50%; }
#landing-map { height: 400px; width: 100%; z-index: 0; }
.guide-map-link { position: absolute; z-index: 500; top: 370px; left: 20px; right: 20px; background: #fff; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 8px #23382d18; color: #245d43; font-size: 16px; font-weight: 600; border: 1px solid #d1d8cd; }
.guide-map-link:hover { background: #f6f5ef; }
.guide-map-caption { display: flex; flex-direction: column; padding: 17px; font-size: 13px; gap: 3px; color: #536259; }
.guide-map-caption > span:first-child { color: #23382d; }
.guide-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 23px; }
.guide-section-heading h2 { font-family: 'Newsreader', Georgia, serif; font-size: 34px; letter-spacing: -.02em; font-weight: 400; }
.guide-section-heading p, .guide-section-heading > span { color: #66746b; font-size: 14px; }
.guide-browse { border-top: 1px solid #d6dcd2; padding: 35px 0 42px; }
.guide-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
.guide-category { display: flex; align-items: center; gap: 14px; text-align: left; padding: 17px 0; border-bottom: 1px solid #d6dcd2; font-size: 16px; }
.guide-category > i:first-child { font-size: 22px; color: #245d43; }
.guide-category > i:last-child { margin-left: auto; font-size: 18px; color: #66746b; }
.guide-category:hover { color: #245d43; background: #e9ece466; }
.guide-picks { padding: 15px 0 45px; }
.guide-picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d6dcd2; border-bottom: 1px solid #d6dcd2; }
.guide-pick { position: relative; display: flex; flex-direction: column; text-align: left; align-items: flex-start; padding: 34px 24px; border-right: 1px solid #d6dcd2; }
.guide-pick:first-child { padding-left: 0; }
.guide-pick:last-child { border-right: 0; }
.pick-number { font-family: 'Newsreader', Georgia, serif; font-size: 44px; color: #245d43; margin-bottom: 25px; }
.guide-pick h3 { font-size: 23px; font-weight: 600; line-height: 1.2; margin: 13px 0; }
.guide-pick p { color: #536259; font-size: 16px; line-height: 1.45; }
.pick-address { color: #66746b; font-size: 13px; margin-top: 16px; padding-bottom: 25px; }
.pick-link { margin-top: auto; font-size: 15px; font-weight: 600; color: #245d43; display: flex; align-items: center; gap: 12px; }
.guide-pick:hover .pick-link { text-decoration: underline; text-underline-offset: 5px; }
.guide-note { display: flex; align-items: flex-start; gap: 15px; padding: 20px 0 35px; color: #536259; font-size: 14px; }
.guide-note > i { font-size: 20px; }
.guide-note p { max-width: 680px; line-height: 1.5; }
.guide-note a { flex-shrink: 0; margin-left: auto; text-underline-offset: 4px; }
.landing-page-footer { background: #edf0e7; border-top: 1px solid #d6dcd2; margin: 0; padding: 30px 0; color: #536259; }
.footer-inner { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 25px; }
.footer-brand { text-transform: none; letter-spacing: 0; color: #23382d; font-size: 17px; }
.footer-social { flex-wrap: wrap; gap: 18px; }
.footer-sc-link { color: #536259; text-transform: none; background: none; border: none; padding: 0; border-radius: 0; font-size: 14px; font-weight: 400; }
.footer-sc-link:hover { color: #245d43; background: none; text-decoration: underline; }
.footer-cr { color: #66746b; font-size: 13px; }
/* A compact and legible map surface. */
#search-bar-main, .fab, #zoom-controls, #layers-panel, #info-card, .modal-content, #sidebar-menu, #directions-panel { background: #fff; color: #23382d; border-color: #d1d8cd; backdrop-filter: none; }
#search-bar-main { border-radius: 6px; box-shadow: var(--shadow-md); }
.sr-item { width: 100%; text-align: left; }
.sr-name, .sr-detail { display: block; }
#search-bar { animation: none; }
#search-bar-main:focus-within { box-shadow: 0 0 0 2px #245d4322; border-color: #245d43; }
.icon-btn { color: #536259; }
.fab { border-radius: 6px; box-shadow: var(--shadow-md); }
.fab:hover { background: #edf0e7; box-shadow: var(--shadow-md); }
#map-edu-btn { background: #fff; color: #245d43; }
#suggest-btn { background: #245d43; color: white; border-radius: 5px; box-shadow: var(--shadow-md); }
.leaflet-control-attribution { display: block !important; font-size: 10px !important; color: #536259; background: #fffffff0 !important; max-width: calc(100vw - 16px); }
.leaflet-control-attribution a { color: #245d43; }
.eco-chip { box-shadow: 0 1px 4px #23382d33; border: 2px solid white; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #fff; color: #23382d; }
.custom-popup .popup-title { color: #23382d; }
.custom-popup .popup-desc { color: #536259; }
#map-categories { position: fixed; left: 16px; right: 16px; top: calc(82px + env(safe-area-inset-top, 0px)); z-index: 900; display: flex; gap: 7px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
#map-categories button { flex-shrink: 0; display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #fff; border: 1px solid #d1d8cd; border-radius: 4px; font-size: 14px; box-shadow: var(--shadow-sm); }
#map-categories button[aria-pressed="true"] { background: #245d43; color: #fff; border-color: #245d43; }
#map-categories button:hover { border-color: #245d43; }
#map-result-count { position: fixed; z-index: 850; left: 18px; top: calc(141px + env(safe-area-inset-top, 0px)); padding: 4px 9px; border-radius: 3px; font-size: 12px; background: #ffffffed; color: #536259; pointer-events: none; }
.guide-open #map, .guide-open #map-categories, .guide-open #map-result-count, .guide-open #search-bar, .guide-open #fab-stack, .guide-open #zoom-controls, .guide-open #suggest-btn { visibility: hidden; }
#info-card { background: transparent; border: none; }
.info-card-content { border-radius: 6px; box-shadow: var(--shadow-md); }
.loader-logo-img { box-shadow: none; animation: none; }
.dir-header .icon-btn, .info-card-title, .info-card-subtitle, .sidebar-brand h2, .sidebar-section h3, .sidebar-link, .layers-header h3, .layer-card, .modal-content h2, .modal-content label { color: #23382d; }
.search-divider { background: #d1d8cd; }
.info-action-btn, .st-btn, .form-input, .form-select, .dir-field-wrap input { background: #f0f0e9; color: #23382d; border-color: #d1d8cd; }
.info-action-btn.primary { background: #245d43; color: white; }
.info-action-btn:not(.primary):hover { background: #e2e9dd; }
.form-input::placeholder, .dir-field-wrap input::placeholder { color: #66746b; }
.sidebar-header, .sidebar-section, .sidebar-divider { border-color: #d1d8cd; }
.sidebar-link:hover, .category-item:hover, .saved-place-item:hover { background: #edf0e7; }
.sidebar-link i, .saved-place-name, .category-label { color: #23382d; }
.modal-header, .modal-footer { border-color: #d1d8cd; }
.modal-overlay { background: #16281b66; backdrop-filter: none; }
#eco-score-widget, #streak-widget, #daily-challenge-widget { display: none; }
/* Learning remains available as a deliberate detour from the guide. */
.landing-edu-section { width: min(1240px, calc(100% - 96px)); padding: 45px 0; margin: 0 auto; background: transparent; gap: 30px; border-color: #d1d8cd; }
.edu-section-header h2 { color: #23382d; font-family: 'Newsreader', Georgia, serif; font-weight: 400; background: none; -webkit-text-fill-color: #23382d; }
.edu-section-header p, .edu-tag { color: #536259; }
.sdg-grid-item { background: #fff; border: 1px solid #d1d8cd; border-radius: 4px; padding: 12px; }
.sdg-grid-item:hover { transform: none; background: #edf0e7; box-shadow: none; }
.sdg-learn-tip { color: #245d43; }
.sdg-badge { display: inline-flex; padding: 0; border: 0; background: transparent; }
.route-card { display: block; width: 100%; text-align: left; font: inherit; color: #23382d; }
.route-options-note { color: #536259; font-size: 13px; line-height: 1.5; padding: 8px 0; }
.dir-field-wrap input { padding-right: 56px; }
.dir-find-button { position: absolute; right: 6px; top: 8px; padding: 5px 8px; color: #245d43; font-size: 13px; }
.dir-ac-item { width: 100%; text-align: left; font: inherit; }
.dir-ac-name { white-space: normal; line-height: 1.4; }
.dir-location-button { padding: 8px 16px; text-align: left; color: #245d43; font-size: 14px; }
.planning-route #map-categories, .planning-route #map-result-count { display: none; }
@media (max-width: 768px) {
    #directions-panel { top: auto; height: 60dvh; border-radius: 16px 16px 0 0; }
    .dir-panel-inner { overflow-y: auto; }
    .dir-header, .dir-modes, #alternatives-list, #route-summary, .dir-location-button { flex-shrink: 0; }
    #steps-list { flex: none; overflow: visible; }
    #dir-bottom-bar { position: sticky; bottom: 0; margin-top: auto; flex-shrink: 0; }
}
.edu-lessons-wrap { padding: 20px 0; background: transparent; }
.edu-lessons-wrap h3 { color: #23382d; }
.guide-back { padding: 12px 0; color: #245d43; text-decoration: underline; text-underline-offset: 4px; margin-bottom: 20px; }
.lesson-card { background: #fff; border: 1px solid #d1d8cd; box-shadow: none; border-radius: 4px; padding: 25px; }
.lesson-card:hover { transform: none; box-shadow: none; }
.lesson-card h4 { color: #23382d; font-size: 23px; margin: 12px 0; }
.lesson-card p { color: #536259; line-height: 1.5; }
.lesson-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; font-size: 14px; }
.lesson-actions .lesson-btn { padding: 10px 14px; border-radius: 3px; color: #fff; background: #245d43; }
.edu-swisstainable-highlight, .edu-challenge-cta { background: #edf0e7; border-color: #d1d8cd; color: #23382d; box-shadow: none; }
.edu-swisstainable-highlight h4, .edu-challenge-cta h4, .edu-swisstainable-highlight p, .edu-challenge-cta p { color: #23382d; }
/* Shared navigation and readable learning pages. */
#map-site-nav { position: fixed; z-index: 1100; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid #d1d8cd; border-radius: 6px; box-shadow: 0 3px 14px #23382d15; }
#map-site-nav button { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 10px 16px; color: #536259; border-radius: 3px; font: inherit; font-size: 15px; }
#map-site-nav button i { font-size: 19px; }
#info-card { bottom: 98px; max-height: calc(100dvh - 280px); overflow-y: auto; }
#info-card-subtitle { font-family: var(--font); letter-spacing: 0; }
#info-description { margin: 12px 0; color: #536259; font-size: 15px; line-height: 1.5; }
[data-site-view][aria-current="page"] { color: #245d43 !important; background: #edf0e7; }
.guide-open #map-site-nav, .dialog-open #map-site-nav, .game-active #map-site-nav, body[data-view^="goal-"] #map-site-nav { display: none; }
.navigation-active #map-site-nav { display: none; }
[hidden], #directions-panel.hidden, #lesson-page.hidden { display: none !important; }
.page-navigation { display: flex; gap: 24px; font-size: 15px; }
.page-navigation a { color: #245d43; text-decoration: none; }
.guide-header nav { flex-wrap: wrap; }
.guide-header { position: sticky; top: 0; background: #f6f5ef; z-index: 20; }
.landing-edu-section { scroll-margin-top: 110px; }
.guide-header [data-site-view] { padding: 6px 9px; border-radius: 3px; }
.category-item, .saved-place-item, .sidebar-link, .sdg-card { width: 100%; text-align: left; font: inherit; color: inherit; }
.search-hint { margin: 0; padding: 16px; color: #536259; font-size: 14px; line-height: 1.5; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #245d43; outline-offset: 3px; }
#lesson-page { background: #f6f5ef; color: #23382d; transition: none; --text-primary: #23382d; --text-secondary: #536259; --accent-light: #245d43; }
#lesson-page::before, .lp-section::after { display: none; }
.lesson-page-nav { flex-shrink: 0; min-height: 76px; padding: 15px max(24px, calc((100vw - 1120px) / 2)); background: #f6f5ef; border-bottom: 1px solid #d1d8cd; backdrop-filter: none; }
.lesson-page-brand { font-size: 13px; letter-spacing: 0; text-transform: none; color: #536259; font-weight: 400; }
#lesson-page-back { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: auto; height: auto; min-height: 44px; white-space: nowrap; color: #245d43; padding: 10px 0; border-radius: 0; font-size: 15px; }
.lesson-page-container { display: block; overflow-y: auto; overflow-x: hidden; width: 100%; max-width: none; margin: 0; padding: 0 max(24px, calc((100vw - 1120px) / 2)); }
.lp-hero { width: 100%; padding: 42px 0 32px; border: none; background: none; text-align: left; align-items: flex-start; }
.lp-hero-content { display: flex; flex-direction: row; align-items: center; gap: 28px; }
#lp-un-source { display: inline-block; margin-top: 14px; font-size: 14px; text-underline-offset: 4px; }
#lp-goal-icon { width: 110px; height: 110px; margin: 0; border-radius: 0; animation: none; box-shadow: none; }
#lp-goal-num { background: none; color: #536259; font-weight: 600; padding: 0; font-size: 13px; margin-bottom: 12px; border-radius: 0; }
#lp-goal-title { color: #23382d; font-family: 'Newsreader', Georgia, serif; font-size: clamp(36px, 4vw, 60px); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; }
.lp-main { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; width: 100%; padding: 0 0 70px; overflow: visible; scroll-snap-type: none; }
.lp-section { min-width: 0; max-width: none; width: 100%; height: auto; padding: 26px 0; gap: 15px; border: none; border-top: 1px solid #d1d8cd; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.lp-section:hover { transform: none; border-color: #d1d8cd; }
.lp-section-icon { background: none; color: #245d43; width: 28px; height: 28px; font-size: 25px; border-radius: 0; box-shadow: none; }
.lp-section h3 { color: #23382d; font-size: 25px; font-weight: 400; font-family: 'Newsreader', Georgia, serif; margin-bottom: 12px; }
.lp-section p, .lp-fact-text { color: #536259 !important; font-size: 17px !important; line-height: 1.65 !important; font-weight: 400; }
.lp-targets-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.lp-target-card { padding: 12px 16px; border: none; border-left: 2px solid #b6c9b7; background: #edf0e7; border-radius: 0; box-shadow: none; }
.lp-target-card h5 { color: #245d43; margin: 0 0 6px; font-size: 13px; }
.lp-progress-text { background: #edf0e7; border-left: 2px solid #b6c9b7; border-radius: 0; padding: 16px; font-style: normal; }
.lp-challenges-list li { padding: 9px 0; background: none; border-radius: 0; font-weight: 400; color: #536259; }
.action-card { background: none; justify-content: flex-start; }
#lp-complete-btn { padding: 13px 22px; width: auto; border-radius: 3px; background: #245d43; box-shadow: none; font-size: 16px; font-weight: 600; }
#lp-complete-btn:hover { transform: none; background: #194b34; box-shadow: none; }
#game-modal { background: #23382d66; --text-primary: #23382d; --text-secondary: #536259; }
.game-modal-card { position: relative; background: #f6f5ef; border: 1px solid #d1d8cd; border-radius: 6px; box-shadow: 0 12px 50px #23382d20; }
#game-cancel-btn { position: absolute; right: 12px; top: 12px; color: #245d43; }
.game-modal-card h2, .game-modal-card h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; color: #23382d; }
.game-modal-card p { color: #536259; }
#game-timer-bar { display: none; position: fixed; z-index: 1500; top: 20px; left: 50%; width: max-content; max-width: calc(100% - 24px); transform: translateX(-50%); padding: 12px 18px; background: #f6f5ef; color: #23382d; font-weight: 500; font-size: 15px; box-shadow: 0 2px 12px #23382d15; border: 1px solid #d1d8cd; border-radius: 5px; gap: 16px; align-items: center; }
#game-timer-bar.active { display: flex; transform: translateX(-50%); }
.game-active #search-bar, .game-active #map-categories, .game-active #map-result-count, .game-active #fab-stack, .game-active #suggest-btn { display: none; }
#game-timer-bar button { padding: 8px 12px; border: 1px solid #b6c9b7; border-radius: 3px; color: #245d43; font: inherit; }
#game-countdown { font-variant-numeric: tabular-nums; }
#game-recall-panel { background: #f6f5ef; color: #23382d; border-color: #d1d8cd; }
.recall-input-group { display: flex; align-items: center; gap: 12px; }
.recall-input-group input { min-width: 0; flex: 1; }
@media (max-width: 768px) {
    .guide-header { gap: 14px; align-items: center; }
    .guide-header nav { gap: 4px; justify-content: flex-end; }
    .guide-header nav a { max-width: 75px; line-height: 1.2; }
    .guide-header nav [data-site-view="home"] { display: none; }
    #map-site-nav { left: 0; right: 0; bottom: 0; transform: none; justify-content: space-around; padding: 4px 5px calc(4px + env(safe-area-inset-bottom, 0px)); border-radius: 0; border-width: 1px 0 0; }
    #map-site-nav button { flex-direction: column; gap: 2px; padding: 6px 8px; font-size: 12px; min-height: 48px; }
    #info-card { bottom: calc(155px + env(safe-area-inset-bottom, 0px)); }
    #suggest-btn, #fab-stack { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
    .planning-route #directions-panel { bottom: calc(61px + env(safe-area-inset-bottom, 0px)); height: 56dvh; }
    .lesson-page-nav { padding: 12px 20px; min-height: 64px; }
    .lesson-page-brand { max-width: 120px; text-align: right; line-height: 1.3; }
    .lesson-page-container { padding: 0 20px; }
    .lp-hero { padding: 28px 0; }
    .lp-hero-content { gap: 18px; }
    #lp-goal-icon { width: 82px; height: 82px; }
    #lp-goal-title { font-size: 36px; }
    .lp-main { display: block; padding: 0 0 45px; }
    .lp-section { padding: 22px 0; }
    #game-timer-bar, #game-timer-bar.active { top: 12px; left: 12px; right: 12px; width: auto; transform: none; flex-wrap: wrap; gap: 8px; padding: 10px; }
}
.page-header, .hero, .section, .page-footer { color: #23382d; }
.hero { background: #edf0e7; }
.hero h1 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; }
.hero p, .section p, .page-footer p { color: #536259; }
.hero h1 span { color: #245d43; background: none; -webkit-text-fill-color: #245d43; }
.hero-cta { background: #245d43; color: #fff; border-radius: 4px; box-shadow: none; }
.category-card, .value-item, .callout { background: #edf0e7; border-color: #d1d8cd; box-shadow: none; }
.category-card h3, .value-item h3, .section h2 { color: #23382d; }
@media (min-width: 601px) { #fab-stack { top: 180px; bottom: auto; } #zoom-controls { top: 360px; } }
@media (max-width: 1000px) {
    .guide-header, .guide-main, .footer-inner, .landing-edu-section { width: calc(100% - 48px); }
    .guide-hero { gap: 32px; padding: 45px 0; }
    .guide-intro h1 { font-size: 56px; }
    #landing-map { height: 350px; }
    .guide-map-link { top: 320px; }
    .guide-note { flex-wrap: wrap; }
    .guide-note a { margin-left: 35px; }
}
@media (max-width: 768px) {
    .guide-header { min-height: 86px; }
    .guide-header nav { gap: 18px; font-size: 14px; }
    .guide-brand { font-size: 18px; }
    .guide-hero { grid-template-columns: 1fr; padding: 34px 0 38px; gap: 32px; }
    .guide-intro h1 { font-size: 60px; margin-top: 23px; }
    .guide-deck { max-width: 440px; font-size: 18px; }
    #landing-map { height: 280px; }
    .guide-map-link { top: 250px; }
    .guide-map-top { font-size: 11px; }
    .guide-section-heading { flex-direction: column; gap: 8px; }
    .guide-section-heading h2 { font-size: 30px; }
    .guide-category-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
    .guide-category { font-size: 14px; gap: 8px; }
    .guide-picks-grid { grid-template-columns: 1fr; }
    .guide-pick, .guide-pick:first-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid #d6dcd2; }
    .guide-pick:last-child { border-bottom: 0; }
    .pick-number { font-size: 34px; margin-bottom: 12px; }
    .pick-address { padding-bottom: 15px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .guide-note { padding-top: 0; }
    .guide-note p { flex: 1; }
}
@media (max-width: 400px) {
    .guide-header, .guide-main, .footer-inner, .landing-edu-section { width: calc(100% - 32px); }
    .guide-header nav { gap: 12px; font-size: 13px; }
    .guide-intro h1 { font-size: 52px; }
    .guide-category > i:last-child { display: none; }
}
@media (max-width: 600px) {
    #map-categories { left: 10px; right: 10px; top: calc(80px + env(safe-area-inset-top, 0px)); }
    #map-result-count { left: 12px; top: calc(138px + env(safe-area-inset-top, 0px)); }
    #fab-stack { top: auto; bottom: calc(38px + env(safe-area-inset-bottom, 0px)); }
    #zoom-controls { top: 180px; right: 16px; }
    #suggest-btn { top: auto; bottom: calc(38px + env(safe-area-inset-bottom, 0px)); left: 12px; right: auto; }
    #info-card { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); max-height: 52dvh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Leave clear space around the mobile navigation and the active place or route. */
@media (max-width: 768px) {
    #suggest-btn, #fab-stack { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
    #info-card { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); max-height: 48dvh; }
    body:has(#info-card:not(.hidden)) #fab-stack,
    body:has(#info-card:not(.hidden)) #suggest-btn,
    .planning-route #fab-stack, .planning-route #suggest-btn { display: none; }
}

@media (min-width: 769px) {
    .planning-route #map-site-nav { left: 420px; right: 0; transform: none; justify-content: center; gap: 0; margin: 0 12px; }
    .planning-route #map-site-nav button { flex-direction: column; gap: 2px; padding: 6px 10px; font-size: 12px; }
}
@media (min-width: 769px) and (max-width: 900px) {
    .planning-route #map-site-nav button { flex: 1; min-width: 0; padding: 6px 2px; font-size: 11px; }
}

/* Comfortable touch targets and one consistent phone/tablet breakpoint. */
:root { --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace; }
.guide-header nav button, .guide-header nav a, .page-navigation a { min-height: 44px; display: inline-flex; align-items: center; }
.guide-hero > *, .guide-header > *, .lp-section { min-width: 0; }
@media (max-width: 768px) {
    .guide-header { flex-wrap: wrap; padding-block: 12px; gap: 10px; }
    .guide-header nav { gap: 16px; }
    .guide-intro h1 { font-size: clamp(42px, 12vw, 60px); }
    .guide-map-top { flex-wrap: wrap; }
    #directions-panel { width: 100%; left: 0; right: 0; }
    .planning-route #directions-panel { height: min(62dvh, calc(100dvh - 120px)); }
    .dir-field-wrap input, #search-input, .modal-content input, .modal-content textarea { font-size: 16px; }
    #info-card { left: 12px; right: 12px; width: auto; }
}
@media (max-height: 500px) and (max-width: 768px) {
    .planning-route #directions-panel { height: calc(100dvh - 64px); }
    #info-card { max-height: calc(100dvh - 160px); }
    #fab-stack { flex-direction: row; }
}
#info-evidence { border-top: 1px solid #d1d8cd; padding-top: 12px; margin-top: 14px; font-size: 14px; line-height: 1.45; }
#info-evidence h4 { font-size: 14px; margin-bottom: 4px; }
#info-evidence small { display: block; color: #66746b; margin-top: 8px; }
.evidence-links { margin-top: 8px; }
.evidence-links a { display: inline-block; padding-block: 6px; text-underline-offset: 3px; }
.info-card-actions { position: sticky; bottom: 0; background: #fff; }
