:root {
    --ink: #0a141b;
    --ink-soft: #17232b;
    --paper: #f6f7f5;
    --surface: #fff;
    --muted: #626d74;
    --line: #dfe4e2;
    --green: #0ba66a;
    --green-dark: #087a50;
    --lime: #b7d743;
    --orange: #ec9d22;
    --blue: #338ee7;
    --danger: #c74444;
    --shadow: 0 18px 50px rgba(14, 25, 31, .08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --content: 1220px;
}

* { box-sizing: border-box; }
/* Native document scrolling; explicit navigation controls opt into smooth scrolling. */
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.03em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); }
.sr-only { position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10000; padding: .8rem 1rem; background: #fff; color: #000; border-radius: 6px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.site-header { height: 76px; padding: 0 max(24px, calc((100vw - var(--content)) / 2)); background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1000; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .92rem; letter-spacing: .04em; line-height: 1.1; }
.brand small { margin-top: 3px; color: #b5bec3; font-size: .68rem; letter-spacing: .03em; }
.brand-mark { width: 42px; height: 31px; position: relative; display: inline-block; flex: 0 0 auto; border-bottom: 2px solid currentColor; overflow: hidden; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.brand-mark::before { width: 22px; height: 22px; left: 3px; top: 9px; }
.brand-mark::after { width: 17px; height: 17px; right: 2px; top: 13px; }
.brand-mark span { width: 10px; height: 10px; left: 15px; top: 15px; }
.brand-logo { width: 46px; height: 38px; flex: 0 0 46px; object-fit: contain; }
.main-nav { height: 100%; display: flex; align-items: center; gap: 31px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.main-nav > a:not(.admin-link) { height: 100%; display: flex; align-items: center; border-bottom: 3px solid transparent; }
.main-nav > a.active { border-bottom-color: var(--lime); }
.main-nav > a:hover { color: var(--lime); }
.admin-link { display: grid; place-items: center; width: 34px; height: 34px; margin-left: 8px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.5rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: #fff; }

.hero { position: relative; min-height: 560px; color: #fff; overflow: hidden; background: var(--ink); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus-x,50%) var(--hero-focus-y,48%); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 13, 18, .94) 0%, rgba(5, 13, 18, .66) 38%, rgba(5, 13, 18, .08) 77%), linear-gradient(0deg, rgba(4, 11, 15, .46), transparent 55%); }
.hero-content { position: relative; z-index: 1; width: min(var(--content), calc(100% - 48px)); min-height: 560px; margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 20px; }
.eyebrow { margin: 0 0 12px; color: var(--lime); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-dark { color: var(--green-dark); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 7vw, 6.1rem); font-weight: 800; letter-spacing: -.055em; }
.hero-lead { margin: 14px 0 34px; font-size: clamp(1rem, 2vw, 1.3rem); color: #edf0ef; }
.hero-stats { display: flex; gap: 42px; flex-wrap: wrap; }
.hero-stats > div { min-width: 115px; display: grid; grid-template-columns: 25px auto; column-gap: 8px; }
.hero-stats .stat-icon { grid-row: 1 / span 2; align-self: center; color: var(--lime); font-size: 1.3rem; }
.hero-stats strong { line-height: 1.1; font-size: 1.15rem; }
.hero-stats em { font-style: normal; font-size: .72em; }
.hero-stats small { margin-top: 5px; color: #c9d0d3; font-size: .59rem; letter-spacing: .06em; text-transform: uppercase; }

.home-map-section { height: 355px; background: #dbe8d5; }
.map-canvas { width: 100%; background: #e6eee4; z-index: 1; }
.map-home { height: 100%; }
.map-consent-blocked { display: grid; place-items: center; padding: clamp(22px,5vw,54px); background: linear-gradient(145deg,#edf3ee,#dce8dc); text-align: center; }
.map-consent-message { width: min(520px,100%); padding: clamp(22px,4vw,34px); border: 1px solid #c7d5cc; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 16px 42px rgba(14,35,25,.09); }
.map-consent-message strong { display: block; margin-bottom: 9px; color: var(--ink); font-size: 1.15rem; }
.map-consent-message p { margin: 0 auto 18px; color: #526159; font-size: .82rem; line-height: 1.65; }
.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper { border-radius: 10px; box-shadow: var(--shadow); }
.map-popup strong { display: block; margin-bottom: 3px; }
.map-popup span { color: var(--muted); font-size: .82rem; }
.map-popup a { display: inline-block; margin-top: 8px; color: var(--green-dark); font-weight: 700; }

.content-section { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 68px 0 84px; }
.filters { margin: -2px 0 52px; display: grid; grid-template-columns: 1fr 1.15fr 1fr 1fr minmax(230px, 2fr) auto; gap: 10px; }
.filters select, .filters input, .route-form input, .route-form select, .route-form textarea, .form-stack input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); padding: 0 14px; box-shadow: 0 5px 15px rgba(20, 33, 40, .03); }
.route-form textarea { padding-top: 12px; resize: vertical; }
.search-field { position: relative; }
.search-field input { padding-right: 42px; }
.search-field span { position: absolute; right: 15px; top: 10px; font-size: 1.3rem; }
.section-heading { margin-bottom: 26px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; }
.section-heading a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: .79rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.route-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 12px 32px rgba(15, 25, 31, .04); transition: transform .22s ease, box-shadow .22s ease; }
.route-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.route-card-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: block; background: #dbe3dc; }
.route-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.route-card:nth-child(3n+2) .route-card-image img { object-position: 37% 50%;  }
.route-card:nth-child(3n+3) .route-card-image img { object-position: 74% 45%;  }
.route-card:hover .route-card-image img { transform: scale(1.035); }
.route-card-save { position: absolute; right: 12px; top: 10px; color: #fff; font-size: 1.35rem; text-shadow: 0 2px 8px #000; }
.route-card-video { position: absolute; left: 12px; top: 11px; padding: 5px 9px; border-radius: 999px; color: #fff; background: rgba(9,20,27,.82); font-size: .65rem; font-weight: 800; backdrop-filter: blur(8px); }
.route-card-body { padding: 18px 18px 17px; }
.route-card h3 { margin: 0 0 5px; font-size: 1.1rem; }
.route-place { margin: 0 0 18px; color: var(--muted); font-size: .8rem; }
.route-card-metrics { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 17px; color: #28363d; font-size: .77rem; font-weight: 650; }
.route-card-metrics span { display: inline-flex; align-items: center; gap: 5px; }
.route-card-metrics b { color: var(--green-dark); font-size: 1rem; }
.route-card-pending { margin: 0 0 17px; color: var(--green-dark); font-size: .76rem; font-weight: 750; }
.route-card-bottom { display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.route-card-bottom time { color: #626d74; font-size: .67rem; }
.chip, .tag { display: inline-flex; align-items: center; min-height: 23px; padding: 4px 9px; margin: 0 5px 4px 0; border-radius: 999px; font-size: .65rem; font-weight: 700; }
.chip-sand { background: #f1ebdc; color: #73633f; }
.chip-facile { background: #e0f3e6; color: #317047; }
.chip-media { background: #eef0db; color: #65702f; }
.chip-difficile, .chip-esperto { background: #f4e0e0; color: #8a4343; }
.chip-green { background: var(--green); color: #fff; }
.chip-dark { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); }
.button-dark { background: var(--ink); color: #fff; }
.button-light { background: #fff; color: var(--ink); }
.button-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.button-danger { background: #fff; border-color: #e5bcbc; color: var(--danger); }
.button-block { width: 100%; }
.empty-state { padding: 70px 24px; text-align: center; background: #fff; border: 1px dashed #cdd5d2; border-radius: var(--radius-md); }
.empty-state > span { font-size: 2.4rem; color: var(--green); }
.empty-state h3 { margin: 10px 0; font-size: 1.5rem; }
.empty-state p { color: var(--muted); }
.empty-state.compact { padding: 30px; }
.story-callout { min-height: 420px; display: grid; place-items: center; padding: 70px 24px; text-align: center; color: #fff; background: linear-gradient(rgba(5, 17, 23, .83), rgba(5, 17, 23, .9)), var(--story-background, url('../images/btrip-story-background.webp')) center 46% / cover; }
.story-callout h2 { margin: 0 0 20px; font-size: clamp(2.2rem, 4vw, 4rem); }
.story-callout p:not(.eyebrow) { max-width: 590px; margin: 0 auto 28px; color: #d5dcde; }

.page-hero { min-height: 325px; padding: 70px max(24px, calc((100vw - var(--content)) / 2)); display: flex; align-items: end; color: #fff; background: linear-gradient(90deg, rgba(5,16,22,.93), rgba(5,16,22,.25)), var(--page-hero-image, url('../images/btrip-page-hero.webp')) center 45% / cover; }
.page-hero > div { width: min(750px, 100%); }
.page-hero h1 { margin: 0 0 14px; font-size: clamp(2.6rem, 5vw, 5rem); }
.page-hero p:last-child { color: #e0e6e7; font-size: 1.1rem; }
.map-page-hero { min-height: 260px; }
.map-layout { min-height: calc(100vh - 336px); display: grid; grid-template-columns: 310px 1fr; }
.map-sidebar { padding: 38px; background: #fff; border-right: 1px solid var(--line); }
.map-sidebar h2 { font-size: 1.4rem; }
.map-sidebar p { color: var(--muted); }
.map-route-search { display: grid; gap: 7px; margin-top: 24px; color: var(--ink); font-size: .72rem; font-weight: 800; }.map-route-search input { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; }.map-route-status { margin: 12px 0 8px; font-size: .7rem; }.map-route-list { max-height: 435px; margin: 0 -10px 20px 0; padding-right: 10px; overflow: auto; display: grid; gap: 7px; }.map-route-item { min-width: 0; min-height: 58px; display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px; border: 1px solid #e5eae7; border-radius: 9px; background: #fafcfb; }.map-route-item[hidden] { display: none; }.map-route-item > div { min-width: 0; }.map-route-item a,.map-route-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.map-route-item a { font-size: .76rem; font-weight: 800; }.map-route-item span { margin-top: 2px; color: var(--muted); font-size: .62rem; }.map-route-dot { width: 9px; height: 9px; border-radius: 50%; }.map-route-show { min-width: 56px; min-height: 44px; padding: 6px 8px; border: 1px solid #cad5d0; border-radius: 7px; background: #fff; color: var(--green-dark); font-size: .67rem; font-weight: 800; }.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out { font-size: 24px; }
.map-full { min-height: 620px; }

.route-hero { position: relative; min-height: 470px; color: #fff; overflow: hidden; background: var(--ink); }
.route-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.route-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,14,20,.99) 0%, rgba(5,14,20,.94) 46%, rgba(5,14,20,.66) 64%, rgba(5,14,20,.16) 100%), linear-gradient(0deg, rgba(5,14,20,.66), rgba(5,14,20,.08) 62%); }
.route-hero-top { position: relative; z-index: 2; width: min(var(--content), calc(100% - 48px)); margin: auto; padding-top: 24px; display: flex; justify-content: space-between; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.route-hero-top a,.share-button { min-height: 44px; display: inline-flex; align-items: center; }.share-button { border: 0; background: transparent; color: #fff; font-size: inherit; text-transform: uppercase; }
.route-hero-content { position: relative; z-index: 2; width: min(var(--content), calc(100% - 48px)); min-height: 405px; margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.route-hero-content h1 { max-width: 720px; margin: 13px 0 14px; font-size: clamp(2.7rem, 4.8vw, 4.8rem); line-height: 1.02; overflow-wrap: anywhere; text-wrap: balance; }
.route-hero-content > p { max-width: 620px; color: #e0e5e6; }
.route-hero-content time { margin-top: 18px; color: #dce2e4; font-size: .75rem; }
.route-metrics-strip { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 28px 0; gap: 8px; background: var(--paper); }
.route-metrics-strip > div { display: grid; grid-template-columns: 32px auto; align-items: center; column-gap: 9px; }
.metric-symbol { grid-row: 1 / span 2; font-size: 1.55rem; }
.metric-symbol.orange { color: var(--orange); }.metric-symbol.green { color: var(--green); }.metric-symbol.blue { color: var(--blue); }
.route-metrics-strip strong { font-size: .98rem; }
.route-metrics-strip small { color: var(--muted); font-size: .59rem; text-transform: uppercase; letter-spacing: .05em; }
.route-pending-strip { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 24px 0; display: flex; align-items: center; gap: 16px; }
.route-pending-strip strong { color: var(--green-dark); text-transform: uppercase; letter-spacing: .07em; font-size: .75rem; }
.route-pending-strip span { color: var(--muted); font-size: .86rem; }
.route-content-grid { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 10px 0 80px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .88fr); gap: 24px; align-items: start; }
.route-main-column, .route-side-column { display: grid; gap: 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; box-shadow: 0 8px 26px rgba(22,34,39,.035); overflow: hidden; }
.panel h2 { margin: 0 0 18px; font-size: .79rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.map-panel { padding: 0; }
.map-detail { height: 520px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel-title h2 { margin-bottom: 0; }
.panel-title > span, .panel-title > a { color: var(--muted); font-size: .77rem; }
.elevation-interactive { position: relative; margin-top: 14px; }
.elevation-panel canvas { display: block; width: 100%; height: 280px; cursor: crosshair; touch-action: pan-y; }
.elevation-panel canvas:focus-visible { outline: 3px solid rgba(51,142,231,.42); outline-offset: 3px; border-radius: 5px; }
.elevation-readout { position: absolute; z-index: 2; top: 7px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 10px); padding: 7px 10px; border-radius: 7px; background: rgba(5,16,22,.92); color: #fff; box-shadow: 0 4px 14px rgba(5,16,22,.2); font-size: .72rem; font-weight: 750; line-height: 1.2; white-space: nowrap; pointer-events: none; }
.elevation-help { margin: 8px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.prose { color: #334047; font-size: .94rem; line-height: 1.75; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.gallery-item { aspect-ratio: 4/3; border: 0; border-radius: 8px; overflow: hidden; padding: 0; background: #e6ece8; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.04); }
.info-panel dl { margin: 0 0 20px; }
.info-panel dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid #edf0ee; font-size: .77rem; }
.info-panel dt { color: var(--muted); }
.info-panel dd { margin: 0; text-align: right; font-weight: 650; }
.difficulty-dots { letter-spacing: 2px; color: #a5aeb2; }.difficulty-facile { color: #7cb88b; }.difficulty-media { color: #ac986b; }.difficulty-difficile { color: #a76b8f; }.difficulty-esperto { color: #9f4444; }
.youtube-poster { position: relative; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; padding: 0; overflow: hidden; background: #111; }
.youtube-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.youtube-poster > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #e51b23; color: #fff; font-size: 1.4rem; }
.youtube-poster > small { position: absolute; right: 9px; bottom: 8px; padding: 3px 6px; border-radius: 4px; color: #fff; background: rgba(0,0,0,.8); font-size: .68rem; font-weight: 750; }
.third-party-note { margin: 10px 0 0; color: var(--muted); font-size: .7rem; }
.youtube-frame { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; }
.youtube-frame-short { display: block; width: min(100%, 430px); aspect-ratio: 9/16; margin: 0 auto; }
.route-primary-video .youtube-poster { margin-top: 16px; }
.gpx-pending { padding: 14px; border-radius: 8px; background: #eef6f1; color: var(--green-dark); }
.gpx-pending strong, .gpx-pending span { display: block; }.gpx-pending span { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.tags { display: flex; flex-wrap: wrap; }.tag { background: #eff1f0; color: #5d666b; }

.video-page-hero { background-image: linear-gradient(90deg, rgba(5,16,22,.94), rgba(5,16,22,.22)), var(--page-hero-image, url('../images/btrip-page-hero.webp')); }
.shorts-page-hero { background-image: linear-gradient(90deg, rgba(5,16,22,.94), rgba(5,16,22,.3)), var(--page-hero-image, url('../images/btrip-page-hero.webp')); }
.media-tabs { display: flex; gap: 8px; margin-top: 26px; }
.media-tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 15px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; font-size: .73rem; font-weight: 800; text-transform: uppercase; }
.media-tabs a.active { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.shorts-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.media-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: 0 12px 32px rgba(15,25,31,.04); }
.media-card .youtube-poster { border-radius: 0; }
.short-card .youtube-poster { aspect-ratio: 9/16; }
.short-card .youtube-poster img { object-position: center; }
.media-card-body { flex: 1; display: flex; flex-direction: column; padding: 17px 18px 18px; }
.media-card-body :is(h2,h3) { margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.3; }
.short-card .media-card-body :is(h2,h3) { min-height: 3.9em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: .91rem; }
.media-card-body > p { margin: 9px 0 0; color: var(--muted); font-size: .78rem; }
.media-card-meta { min-height: 22px; margin-top: auto; padding-top: 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .68rem; }
.media-card-links { min-width: 0; max-width: 100%; margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 16px; }
.media-card-meta a { min-height: 44px; display: inline-flex; align-items: center; color: var(--green-dark); font-weight: 800; }
.pagination { margin-top: 42px; display: flex; justify-content: center; align-items: center; gap: 18px; }
.pagination a { min-height: 44px; display: inline-flex; align-items: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .76rem; font-weight: 800; }
.pagination span { color: var(--muted); font-size: .75rem; }
.home-media-section { padding-top: 0; }
.home-shorts-section { color: #fff; background: var(--ink); }
.home-shorts-section .content-section { padding-top: 72px; }
.home-shorts-section .section-heading a { color: #cbd3d6; }
.lightbox { width: min(1000px, calc(100% - 32px)); border: 0; border-radius: 12px; padding: 0; background: #111; box-shadow: 0 30px 80px #0008; }.lightbox::backdrop { background: #071016db; }.lightbox img { max-height: 86vh; width: 100%; object-fit: contain; }.lightbox button { position: absolute; right: 10px; top: 10px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #000a; color: #fff; font-size: 1.6rem; }

/* Sponsor */
.sponsor-page-hero { min-height: 390px; background-image: linear-gradient(90deg, rgba(5,16,22,.96), rgba(5,16,22,.48) 56%, rgba(5,16,22,.12)), var(--page-hero-image, url('../images/btrip-page-hero.webp')); }
.sponsor-archive { padding-bottom: 100px; }.sponsor-archive-intro { max-width: 760px; margin: -5px 0 34px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.sponsor-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.sponsor-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: 0 12px 32px rgba(15,25,31,.04); transition: transform .22s ease, box-shadow .22s ease; }.sponsor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sponsor-card-logo { min-height: 175px; display: grid; place-items: center; padding: 28px; background: linear-gradient(145deg,#fff,#eef3ef); border-bottom: 1px solid var(--line); }.sponsor-card-logo img { max-width: 78%; max-height: 105px; object-fit: contain; }.sponsor-card-logo strong { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 24px; background: var(--ink); color: #fff; font-size: 2rem; letter-spacing: .04em; }
.sponsor-card-copy { flex: 1; display: flex; flex-direction: column; padding: 22px; }.sponsor-card-copy small { color: var(--green-dark); font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.sponsor-card-copy h2 { margin: 8px 0 10px; font-size: 1.4rem; }.sponsor-card-copy p { color: var(--muted); font-size: .82rem; }.sponsor-card-copy em { margin-top: auto; padding-top: 12px; color: var(--green-dark); font-size: .73rem; font-style: normal; font-weight: 800; }
.sponsor-join-section { padding: 78px max(24px,calc((100vw - var(--content)) / 2)); display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: start; gap: 70px; color: #fff; background: var(--ink); }.sponsor-join-section h2 { margin: 0 0 18px; }.sponsor-join-section > div:first-child > p:not(.eyebrow) { color: #c1cbd0; }.sponsor-join-section .button { margin-top: 10px; }
.sponsor-collaboration-details { padding: 30px; border: 1px solid #ffffff1e; border-radius: var(--radius-md); background: #ffffff09; }.sponsor-collaboration-details h3 { font-size: 1.45rem; }.sponsor-collaboration-details p { color: #d4dcdf; font-size: .86rem; line-height: 1.7; }.sponsor-collaboration-details strong { color: #fff; }.sponsor-collaboration-details ul { margin: 22px 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; list-style: none; }.sponsor-collaboration-details li { padding: 12px; border-radius: 8px; background: #ffffff0e; color: var(--lime); font-size: .72rem; font-weight: 800; text-align: center; }.sponsor-contact-pending { margin: 20px 0 0; color: #aeb9be !important; }
.sponsor-detail-hero { position: relative; min-height: 480px; overflow: hidden; color: #fff; background: linear-gradient(135deg,#071118,#1c2e37); }.sponsor-detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }.sponsor-detail-overlay { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,15,21,.97),rgba(5,15,21,.64) 58%,rgba(5,15,21,.28)); }.sponsor-detail-content { position: relative; z-index: 1; width: min(var(--content),calc(100% - 48px)); margin: auto; padding: 25px 0 55px; }.sponsor-detail-content > a { font-size: .72rem; font-weight: 800; text-transform: uppercase; }.sponsor-detail-identity { min-height: 370px; display: flex; align-items: center; gap: 38px; }.sponsor-detail-logo { width: 170px; height: 170px; flex: 0 0 170px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: 22px; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px #0004; }.sponsor-detail-logo img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }.sponsor-detail-logo strong { color: var(--ink); font-size: 2.7rem; }.sponsor-detail-identity h1 { margin: 0 0 12px; }.sponsor-detail-identity > div > p:not(.eyebrow) { max-width: 670px; color: #dce3e5; }.sponsor-detail-identity .button { margin-top: 10px; }
.sponsor-detail-body { max-width: 1040px; }.sponsor-disclosure { margin-bottom: 60px; padding: 20px 24px; display: grid; grid-template-columns: 120px 1fr; gap: 20px; border: 1px solid #cfe1d6; border-left: 5px solid var(--green); border-radius: 10px; background: #f4faf6; }.sponsor-disclosure strong { color: var(--green-dark); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }.sponsor-disclosure p { margin: 0; color: #4d5c63; font-size: .82rem; }.sponsor-about { max-width: 800px; margin-bottom: 75px; }.sponsor-about h2 { margin-bottom: 22px; }.sponsor-period { margin-top: 20px; color: var(--muted); font-size: .75rem; }.sponsor-contributions-heading { margin-bottom: 30px; }
.sponsor-contributions { display: grid; gap: 28px; }.sponsor-contribution { padding: clamp(22px,4vw,38px); border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: 0 12px 34px rgba(15,25,31,.045); }.sponsor-contribution header { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px 14px; margin-bottom: 22px; }.sponsor-contribution header time { justify-self: end; color: var(--muted); font-size: .7rem; }.sponsor-contribution h3 { grid-column: 1 / -1; margin: 4px 0 0; font-size: clamp(1.55rem,3vw,2.25rem); }.sponsor-type { display: inline-flex; justify-self: start; padding: 5px 10px; border-radius: 999px; background: #edf5f0; color: var(--green-dark); font-size: .65rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }.sponsor-type-finanziario { background: #f4eddb; color: #765d1f; }.sponsor-type-assicurazione { background: #e8eef8; color: #365f97; }.sponsor-amount { margin: 22px 0 0; padding: 14px 17px; display: flex; justify-content: space-between; border-radius: 8px; background: #f5f7f5; }.sponsor-amount span { color: var(--muted); font-size: .75rem; }.sponsor-photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 24px; }.sponsor-photo-grid button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #e9eeeb; }.sponsor-photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .25s; }.sponsor-photo-grid button:hover img { transform: scale(1.035); }.sponsor-video { margin-top: 28px; }.sponsor-linked-routes { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }.sponsor-linked-routes h4 { margin: 0 0 12px; }.sponsor-linked-routes > a { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #edf0ee; }.sponsor-linked-routes img { width: 90px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }.sponsor-linked-routes strong,.sponsor-linked-routes small { display: block; }.sponsor-linked-routes small { margin-top: 3px; color: var(--muted); font-size: .7rem; }

.stats-page { display: grid; gap: 30px; }.big-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }.big-stats article { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }.big-stats span { color: var(--green); font-size: 1.5rem; }.big-stats strong, .big-stats small { display: block; }.big-stats strong { margin-top: 8px; font-size: 2.4rem; }.big-stats small { color: var(--muted); }.table-wrap { overflow-x: auto; }.year-table table, .admin-table { width: 100%; border-collapse: collapse; }.year-table th, .year-table td, .admin-table th, .admin-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); }.year-table thead th, .admin-table thead th { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }.about-copy p { color: #435158; font-size: 1.08rem; line-height: 1.8; }.about-grid figure { margin: 0; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius-lg); }.about-grid figure img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.project-hero { background-position: center 52%; }.project-intro { padding-bottom: 58px; }
.social-section { min-width: 0; }.social-section--project_page,.social-section--about_page { width: min(var(--content),calc(100% - 48px)); margin: 0 auto; padding: 56px 0 82px; border-top: 1px solid var(--line); }.social-section-heading { margin-bottom: 26px; }.social-section-heading h2 { margin: 0 0 10px; }.social-section-heading p { margin: 0; color: var(--muted); }.social-align-left { text-align: left; }.social-align-center { text-align: center; }.social-align-right { text-align: right; }.social-links { display: flex; align-items: stretch; flex-wrap: wrap; gap: var(--social-gap,12px); }.social-align-left .social-links { justify-content: flex-start; }.social-align-center .social-links { justify-content: center; }.social-align-right .social-links { justify-content: flex-end; }
.social-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); color: var(--ink); background: #fff; transition: transform .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease; }.social-link:hover { transform: translateY(-2px); border-color: #b9c8c1; }.social-link-icon { width: var(--social-icon-mobile,24px); height: var(--social-icon-mobile,24px); flex: 0 0 auto; fill: currentColor; }.social-link-label { min-width: 0; overflow-wrap: anywhere; }.social-links--icon_only .social-link { width: max(44px,calc(var(--social-icon-mobile,24px) + 20px)); height: max(44px,calc(var(--social-icon-mobile,24px) + 20px)); border-radius: 50%; }.social-links--icon_and_label .social-link { padding: 11px 16px; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 800; }.social-links--button .social-link { padding: 12px 20px; border-color: var(--ink); border-radius: var(--radius-sm); color: #fff; background: var(--ink); font-size: .8rem; font-weight: 800; }.social-links--button .social-link:hover { border-color: var(--green-dark); background: var(--green-dark); }
.social-icon-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: inherit; }.social-link--brand .social-icon-badge,.social-link--badge .social-icon-badge { padding: 5px; border-radius: 8px; }.social-link--brand .social-icon-badge { color: var(--social-brand,var(--ink)); background: #fff; box-shadow: inset 0 0 0 1px rgba(10,20,27,.12); }.social-link--badge .social-icon-badge { color: #fff; background: var(--social-brand,var(--ink)); }.social-platform--youtube { --social-brand: #ff0033; }.social-platform--instagram { --social-brand: #c13584; }.social-platform--facebook { --social-brand: #1877f2; }.social-platform--strava { --social-brand: #fc5200; }.social-platform--tiktok { --social-brand: #111; }.social-platform--x,.social-platform--threads { --social-brand: #000; }.social-platform--linkedin { --social-brand: #0a66c2; }.social-platform--komoot { --social-brand: #2a9d5b; }.social-platform--mastodon { --social-brand: #6364ff; }.social-link--badge.social-platform--instagram .social-icon-badge { background: linear-gradient(135deg,#833ab4 0%,#e1306c 48%,#f77737 78%,#fcaf45 100%); }.social-link--badge.social-platform--tiktok .social-icon-badge { background: #111; box-shadow: inset 3px 0 #25f4ee,inset -3px 0 #fe2c55; }.social-link--badge.social-platform--facebook .social-icon-badge { --facebook-f: #1877f2; }.social-link--theme .social-icon-badge { background: transparent; }
.social-section--project_page .social-links--icon_and_label,.social-section--project_page .social-links--button { width: min(100%,580px); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.social-section--project_page.social-align-left .social-links { margin-right: auto; }.social-section--project_page.social-align-center .social-links { margin-inline: auto; }.social-section--project_page.social-align-right .social-links { margin-left: auto; }
.error-page { min-height: calc(100vh - 240px); display: grid; place-content: center; justify-items: center; padding: 80px 24px; text-align: center; }.error-page h1 { margin-bottom: 16px; }.error-page p { color: var(--muted); }.error-page pre { max-width: 800px; overflow: auto; padding: 20px; text-align: left; background: #fff; border-radius: 8px; }
.site-footer { padding: 50px max(24px, calc((100vw - var(--content)) / 2)); display: grid; grid-template-columns: minmax(240px,.78fr) minmax(420px,1.22fr); align-items: start; gap: 38px clamp(38px,6vw,92px); background: #071118; color: #fff; }.site-footer-primary,.site-footer-navigation,.site-footer-group { min-width: 0; }.site-footer-primary { display: grid; align-content: start; gap: 18px; }.site-footer p { margin: 0; color: #99a6ac; font-size: .72rem; }.site-footer-navigation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px clamp(28px,5vw,66px); }.site-footer-group { display: grid; align-content: start; gap: 2px; color: #bec8cc; font-size: .75rem; }.site-footer-group h2 { margin: 0 0 10px; color: #fff; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }.site-footer-group a,.site-footer-group button { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; }.site-footer-group a:hover,.site-footer-group button:hover { color: var(--lime); }.site-footer-group button { padding: 0; border: 0; color: inherit; background: transparent; font-size: inherit; text-align: left; }.footer-brand { min-width: 0; }.site-footer .social-section { width: 100%; grid-column: 1 / -1; padding-top: 26px; border-top: 1px solid #ffffff17; }.site-footer .social-section-heading { margin-bottom: 16px; }.site-footer .social-section-heading h2 { font-size: 1rem; }.site-footer .social-link { border-color: #ffffff25; color: #fff; background: #ffffff0c; }.site-footer .social-link:hover { border-color: var(--lime); color: var(--lime); }.site-footer-credit { width: 100%; grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid #ffffff17; text-align: center; color: #8f9ba0; font-size: .68rem; letter-spacing: .025em; }.site-footer-credit a { min-height: 44px; display: inline-flex; align-items: center; color: #aeb9bd; text-decoration: none; transition: color .2s ease; }.site-footer-credit a:hover,.site-footer-credit a:focus-visible { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

.consent-banner { position: fixed; z-index: 5000; left: 18px; right: 18px; bottom: 18px; max-width: 1120px; margin: auto; padding: 22px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px 28px; align-items: center; border: 1px solid #d8dedb; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 24px 70px rgba(5,15,21,.25); }.consent-banner[hidden] { display: none; }.consent-copy .eyebrow { margin-bottom: 6px; color: var(--green-dark); }.consent-copy h2 { margin: 0 0 7px; font-size: 1.3rem; }.consent-copy p:last-child { max-width: 690px; margin: 0; color: var(--muted); font-size: .8rem; }.consent-copy a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }.consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.consent-custom { grid-column: 1 / -1; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #f7faf8; display: grid; gap: 12px; }.consent-custom[hidden],.consent-actions [hidden] { display: none; }.consent-custom .check-label { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }.consent-custom .check-label:last-child { padding-bottom: 0; border-bottom: 0; }.consent-custom strong,.consent-custom small { display: block; }.consent-custom small { margin-top: 3px; color: var(--muted); font-weight: 500; }

.legal-page { max-width: 1000px; }.legal-intro { margin-bottom: 34px; padding: 20px; border-left: 4px solid var(--green); border-radius: 0 10px 10px 0; background: #fff; }.legal-page section { margin-top: 38px; }.legal-page h2 { margin-bottom: 14px; font-size: 1.45rem; }.legal-page p,.legal-page li,.legal-page td,.legal-page th { color: #3f4d54; line-height: 1.72; }.legal-page a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }.legal-page code { padding: 2px 5px; border-radius: 4px; background: #e9eeeb; }.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.legal-page table { width: 100%; min-width: 680px; border-collapse: collapse; }.legal-page th,.legal-page td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .82rem; }.legal-page th { color: var(--ink); background: #f2f6f3; }.privacy-choice-panel { padding: 20px; border: 1px solid #cfe0d5; border-left: 4px solid var(--green); border-radius: 10px; background: #f7fbf8; }.privacy-choice-panel p { margin: 0 0 14px; }.privacy-choice-panel .button { text-decoration: none; }

.privacy-settings-form { display: grid; gap: 18px; }.privacy-status-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-left: 5px solid #d59a34; }.privacy-status-card--ok { border-left-color: var(--green); }.privacy-status-card h2 { margin: 5px 0 7px; font-size: 1.35rem; }.privacy-status-card p:last-child { margin: 0; color: var(--muted); }.analytics-toggle { margin: 0 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f7faf8; }.analytics-toggle strong,.analytics-toggle small { display: block; }.analytics-toggle small { margin-top: 4px; color: var(--muted); font-weight: 500; }.analytics-settings-panel .notice-card { margin-top: 20px; }.analytics-settings-panel .notice-card p { margin-bottom: 0; }

/* Admin */
.admin-body { min-height: 100vh; background: #f3f5f3; }
.admin-topbar,.admin-sidebar-scrim { display: none; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; z-index: 1300; display: flex; flex-direction: column; padding: 26px 20px; background: var(--ink); color: #fff; }
.admin-sidebar-heading { display: flex; align-items: flex-start; gap: 10px; }
.admin-sidebar .brand { min-width: 0; flex: 1; padding: 0 8px 26px; border-bottom: 1px solid #ffffff17; }
.admin-menu-close { display: none; width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 8px; background: #ffffff10; color: #fff; font-size: 1.7rem; line-height: 1; }
.admin-sidebar nav { min-height: 0; display: grid; gap: 5px; margin-top: 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.admin-nav-label { margin: 14px 14px 2px; color: #73828a; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-sidebar nav a, .admin-sidebar-actions a, .admin-sidebar-actions form button { width: 100%; min-height: 44px; display: flex; align-items: center; padding: 10px 14px; border: 0; border-radius: 8px; background: transparent; color: #c4ced2; text-align: left; font-size: .85rem; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: #ffffff10; color: #fff; }
.admin-sidebar nav a.active { box-shadow: inset 3px 0 var(--lime); }
.admin-sidebar-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid #ffffff17; }.admin-sidebar-actions form { margin: 0; }.admin-sidebar-actions a:hover,.admin-sidebar-actions form button:hover { background: #ffffff10; color: #fff; }
.admin-main { width: calc(100% - 252px); margin-left: 252px; padding: 44px clamp(24px, 4vw, 68px) 90px; }
.admin-login-main { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: linear-gradient(rgba(6,16,22,.76),rgba(6,16,22,.91)), var(--page-hero-image, url('../images/btrip-page-hero.webp')) center / cover; }
.login-card { width: min(480px, 100%); padding: 38px; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 30px 90px #0005; }.login-card .brand { margin-bottom: 38px; }.brand-dark { color: var(--ink); }.login-card h1 { margin: 0 0 8px; font-size: 2.5rem; }.login-card > div > p:last-child { color: var(--muted); }.form-stack { display: grid; gap: 18px; margin-top: 28px; }.form-stack label, .route-form label { display: grid; gap: 7px; color: #344149; font-size: .78rem; font-weight: 700; }.setup-notice, .notice-card { padding: 18px 20px; border: 1px solid #d7e4dc; border-left: 4px solid var(--green); border-radius: 8px; background: #f7fbf8; }.setup-notice p, .notice-card p { margin: 6px 0 0; color: var(--muted); }.setup-notice code { font-size: .78rem; }
.admin-heading { margin-bottom: 32px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }.admin-heading h1 { margin: 0 0 8px; font-size: clamp(2.2rem,4vw,3.6rem); }.admin-heading p:last-child { margin: 0; color: var(--muted); }
.admin-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }.admin-heading-actions form { margin: 0; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }.admin-stat-grid article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }.admin-stat-grid span, .admin-stat-grid strong { display: block; }.admin-stat-grid span { color: var(--muted); font-size: .75rem; }.admin-stat-grid strong { margin-top: 8px; font-size: 1.55rem; }.admin-stat-grid .small-value { font-size: 1.05rem; }
.admin-panel { margin-bottom: 22px; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 8px 30px rgba(15,28,34,.035); }.admin-panel > h2 { font-size: 1rem; letter-spacing: -.01em; }.admin-route-list { display: grid; }.admin-route-list > a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }.admin-route-list > a:last-child { border: 0; }.admin-route-list strong, .admin-route-list small { display: block; }.admin-route-list small, .admin-table td small { margin-top: 4px; color: var(--muted); font-size: .72rem; }.status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: .65rem; font-weight: 750; text-transform: uppercase; }.status-published { background: #dff4e7; color: #26724a; }.status-draft { background: #f3eedc; color: #7b6835; }.status-archived { background: #e8eaeb; color: #586269; }
.admin-help-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }.admin-help-grid a { padding: 22px; background: var(--ink); color: #fff; border-radius: var(--radius-md); }.admin-help-grid strong, .admin-help-grid span { display: block; }.admin-help-grid span { margin-top: 7px; color: #aeb9be; font-size: .78rem; }
.admin-table td > strong, .admin-table td > small { display: block; }.row-actions { white-space: nowrap; }.row-actions a { margin-right: 12px; color: var(--green-dark); font-size: .76rem; font-weight: 750; }
.upload-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center; }.upload-panel p { color: var(--muted); }.dropzone { position: relative; min-height: 170px; place-content: center; justify-items: center; padding: 25px; border: 2px dashed #bdc9c4; border-radius: 12px; background: #f8faf8; text-align: center; }.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }.dropzone-icon { font-size: 2rem; color: var(--green); }.dropzone small { color: var(--muted); }.dropzone.dragover { border-color: var(--green); background: #eff9f3; }
.form-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px,.75fr); gap: 22px; align-items: start; }.form-main, .form-side { min-width: 0; }.form-side { position: sticky; top: 20px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.form-grid .span-2 { grid-column: 1 / -1; }.route-form label + label { margin-top: 14px; }.form-grid label + label { margin-top: 0; }.check-label { grid-template-columns: 20px 1fr !important; align-items: start; }.check-label input { width: 18px; min-height: 18px; margin: 2px 0 0; }.warning-note, .form-help { color: #806728; font-size: .76rem; }.sticky-save { position: sticky; bottom: 0; z-index: 5; margin: 20px -12px -12px; padding: 14px 18px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; background: rgba(243,245,243,.93); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }.sticky-save > a { color: var(--muted); font-size: .8rem; }.danger-zone { margin-top: 35px; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid #e7c6c6; border-radius: var(--radius-md); background: #fffafa; }.danger-zone h2 { margin: 0 0 4px; font-size: 1rem; }.danger-zone p { margin: 0; color: var(--muted); font-size: .8rem; }
.manage-gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 18px; }.route-form .photo-manage { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.photo-manage img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }.photo-manage span { display: flex; align-items: center; gap: 6px; padding: 8px; }.route-form .photo-manage input { width: 16px; min-height: 16px; margin: 0; }
.admin-media-preview { width: min(100%, 520px); max-height: 320px; margin-top: 16px; border-radius: 8px; object-fit: cover; }
.admin-panel-heading { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }.admin-panel-heading h2 { margin: 0 0 5px; font-size: 1.1rem; }.admin-panel-heading p { margin: 0; color: var(--muted); font-size: .78rem; }.sponsor-contribution-admin { margin-top: 32px; }.sponsor-admin-previews { display: grid; grid-template-columns: 1fr 1.5fr; gap: 14px; margin-top: 20px; }.sponsor-admin-previews figure { margin: 0; }.sponsor-admin-previews img { width: 100%; height: 180px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; object-fit: contain; background: #f7f9f7; }.sponsor-admin-previews figure:last-child img { object-fit: cover; }.sponsor-admin-previews figcaption { margin-top: 5px; color: var(--muted); font-size: .7rem; }.sponsor-route-options { max-height: 380px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px; }.route-form .sponsor-route-options label { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfa; }.sponsor-route-options small { display: block; color: var(--muted); font-weight: 500; }
.alert { margin: 0 0 22px; padding: 14px 18px; border-radius: 8px; font-size: .86rem; }.alert-success { color: #246b47; background: #e0f4e8; }.alert-error { color: #8a3a3a; background: #f8e3e3; }.notice-card { margin-bottom: 22px; }.backup-list { display: grid; }.backup-list > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }.backup-list > div:last-child { border: 0; }.backup-list strong, .backup-list small { display: block; }.backup-list small { margin-top: 4px; color: var(--muted); font-size: .75rem; }.admin-panel pre { padding: 16px; overflow: auto; border-radius: 8px; background: #101b22; color: #d4e2dd; }
.system-checks { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 30px; }.system-checks > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }.system-checks span { color: var(--muted); }.check-ok { color: var(--green-dark); }.check-error { color: var(--danger); }
.license-overview { display: flex; align-items: flex-start; justify-content: space-between; gap: 34px; border-left: 5px solid var(--green); }.license-overview h2,.license-credit h2 { margin: 5px 0 10px; font-size: clamp(1.25rem,2vw,1.75rem); }.license-overview p,.license-credit p,.license-terms p { color: #4c5a61; line-height: 1.72; }.license-overview > div:first-child > p:last-child,.license-credit > p:last-child,.license-terms p { margin-bottom: 0; }.license-kicker { margin: 0; color: var(--green-dark) !important; font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }.license-badges { max-width: 330px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }.license-badges span { padding: 7px 11px; border: 1px solid #cfe0d5; border-radius: 999px; color: var(--green-dark); background: #f3faf5; font-size: .67rem; font-weight: 800; white-space: nowrap; }.license-credit { background: linear-gradient(135deg,#0a141b,#13252e); color: #fff; }.license-credit .license-kicker { color: var(--lime) !important; }.license-credit p { color: #c7d0d4; }.license-credit a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }.license-terms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }.license-terms .admin-panel { min-width: 0; margin: 0; }.license-terms h2 { margin: 0 0 10px; font-size: 1rem; }.license-terms p { font-size: .82rem; }.license-terms .license-emphasis { border-top: 4px solid var(--lime); }.license-note { margin-top: 22px; }.license-note a { color: var(--green-dark); font-weight: 750; }
.youtube-sync-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.8fr); gap: 22px; align-items: start; }.youtube-sync-layout > * { min-width: 0; }.youtube-sync-layout code, .alert code { overflow-wrap: anywhere; }.sync-check-list { display: grid; gap: 12px; margin: 22px 0; }.route-form .sync-check-list label { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfa; }.sync-limit-help { align-self: end; padding-bottom: 10px; }.sync-status-list { margin: 0; }.sync-status-list > div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }.sync-status-list dt { color: var(--muted); }.sync-status-list dd { min-width: 0; margin: 0; font-weight: 650; }.sync-source-note { margin-top: 18px; padding: 14px 16px; display: grid; gap: 4px; border: 1px solid #d7e4dc; border-radius: 8px; background: #f7fbf8; }.sync-source-note span, .sync-source-note small { color: var(--muted); font-size: .75rem; }
.social-admin-list { display: grid; gap: 8px; }.social-admin-row { min-width: 0; display: grid; grid-template-columns: 44px 38px minmax(180px,1fr) auto auto auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.social-admin-row.is-dragging { opacity: .55; border-color: var(--green); box-shadow: 0 12px 26px rgba(11,166,106,.14); }.social-drag-handle { width: 44px; height: 44px; border: 0; border-radius: 7px; background: #eef2ef; color: #5c6963; font-size: 1.15rem; touch-action: none; cursor: grab; }.social-drag-handle:active { cursor: grabbing; }.social-admin-icon { width: 30px; height: 30px; fill: currentColor; }.social-admin-copy { min-width: 0; }.social-admin-copy strong,.social-admin-copy small,.social-admin-copy span { display: block; }.social-admin-copy small { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }.social-admin-copy span { margin-top: 3px; color: var(--green-dark); font-size: .66rem; }.social-admin-status { min-width: 95px; display: grid; gap: 4px; justify-items: start; }.social-admin-status small { color: var(--muted); font-size: .65rem; }.social-order-buttons { display: flex; gap: 4px; }.social-order-buttons button,.link-danger { min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--green-dark); font-size: .68rem; font-weight: 750; }.link-danger { border: 0; color: var(--danger); }.admin-form-actions { margin-top: 18px; display: flex; justify-content: flex-end; }
.social-variant-fieldset { min-width: 0; margin: 26px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; }.social-variant-fieldset legend { padding: 0 7px; color: var(--ink); font-weight: 850; }.social-variant-fieldset > p { margin: 0 0 16px; color: var(--muted); font-size: .76rem; }.social-variant-fieldset > small { display: block; margin-top: 12px; color: var(--muted); font-size: .68rem; }.social-variant-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.route-form .social-variant-option { position: relative; min-width: 0; margin: 0; padding: 12px; display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfa; cursor: pointer; }.social-variant-option > input { position: absolute; width: 1px; height: 1px; min-height: 1px; opacity: 0; }.social-variant-option:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px rgba(11,166,106,.13); background: #f4faf6; }.social-variant-option:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }.social-variant-option.is-unavailable { opacity: .48; cursor: not-allowed; }.social-variant-swatch { width: 56px; height: 56px; min-width: 56px; min-height: 56px; border-radius: 12px; pointer-events: none; }.social-variant-swatch:hover { transform: none; }.social-variant-option strong,.social-variant-option small { display: block; }.social-variant-option strong { color: var(--ink); font-size: .76rem; }.social-variant-option small { margin-top: 3px; color: var(--muted); font-size: .64rem; font-weight: 500; line-height: 1.35; }
.social-position-editors { display: grid; gap: 22px; }.social-position-editor { min-width: 0; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 24px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fafbfa; }.social-position-fields { min-width: 0; margin: 0; padding: 0; border: 0; }.social-position-fields legend { margin-bottom: 18px; color: var(--ink); font-size: 1rem; font-weight: 850; }.social-position-fields > label + label { margin-top: 14px; }.social-position-fields textarea { width: 100%; min-height: 82px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); resize: vertical; }.social-position-fields .check-label { margin-bottom: 16px; }.social-size-fields { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 18px; }.social-live-preview { min-width: 0; align-self: stretch; display: flex; flex-direction: column; }.social-live-preview > small { margin-bottom: 8px; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.social-preview-canvas { min-height: 250px; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px; overflow: hidden; border-radius: 12px; color: var(--ink); background: #eef2ef; }.social-preview-canvas[aria-disabled="true"] { opacity: .48; }.social-preview-canvas h3 { margin: 0 0 8px; font-size: 1.45rem; }.social-preview-canvas > p { margin: 0 0 20px; color: var(--muted); }.social-preview-canvas .social-link-icon { width: var(--preview-icon-size,30px); height: var(--preview-icon-size,30px); }.social-preview-canvas .social-links--icon_only .social-link { width: max(44px,calc(var(--preview-icon-size,30px) + 20px)); height: max(44px,calc(var(--preview-icon-size,30px) + 20px)); }.social-position-checks { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.route-form .social-position-checks label { min-height: 48px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfa; }

.social-order-buttons button,.social-admin-row .link-danger { min-width: 44px; min-height: 44px; }.social-admin-row .row-actions a { min-height: 44px; display: inline-flex; align-items: center; }
.link-danger { min-height: 44px; display: inline-flex; align-items: center; }

.site-settings-form { display: grid; gap: 18px; }.settings-disclosure { padding: 0; overflow: clip; }.settings-disclosure > summary { min-height: 76px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }.settings-disclosure > summary::-webkit-details-marker { display: none; }.settings-disclosure > summary::after { content: "+"; width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #edf2ef; color: var(--green-dark); font-size: 1.25rem; }.settings-disclosure[open] > summary::after { content: "−"; }.settings-disclosure > summary strong,.settings-disclosure > summary small { display: block; }.settings-disclosure > summary strong { font-size: 1.05rem; }.settings-disclosure > summary small { margin-top: 4px; color: var(--muted); font-size: .74rem; font-weight: 500; }.settings-disclosure-body { padding: 4px 24px 26px; border-top: 1px solid #edf0ee; }.settings-disclosure-body > .form-grid { margin-top: 22px; }
.theme-fields { margin-top: 24px; display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)) minmax(260px,1.3fr); gap: 14px; align-items: stretch; }.theme-fields > label { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfa; }.theme-fields input[type="color"] { width: 100%; height: 52px; padding: 4px; }.theme-fields small { color: var(--muted); font-weight: 500; }.theme-preview { min-height: 145px; padding: 18px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; border-radius: 10px; background: var(--preview-dark,#0a141b); color: #fff; }.theme-preview span { font-weight: 850; letter-spacing: .05em; }.theme-preview button { min-height: 44px; padding: 9px 14px; border: 0; border-radius: 7px; background: var(--preview-action,#087a50); color: #fff; font-weight: 800; }.theme-preview em { color: var(--preview-highlight,#b7d743); font-size: .7rem; font-style: normal; font-weight: 850; letter-spacing: .14em; }
.asset-spec-note { margin: 22px 0; padding: 14px 16px; display: grid; gap: 3px; border: 1px solid #d8e5dc; border-radius: 8px; background: #f6faf7; }.asset-spec-note span { color: var(--muted); font-size: .76rem; }.site-assets-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.site-asset-card { min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.site-asset-preview { min-height: 150px; overflow: hidden; display: grid; place-items: center; border-radius: 8px; background: #e7ece9; }.site-asset-preview img { width: 100%; height: 150px; object-fit: cover; }.site-asset-preview--contain { background: linear-gradient(135deg,#0a141b 0 50%,#f3f5f3 50%); }.site-asset-preview--contain img { width: calc(100% - 34px); height: 105px; object-fit: contain; filter: drop-shadow(0 1px 2px #0003); }.site-asset-preview .brand-mark { color: #fff; transform: scale(1.3); }.site-asset-card h3 { margin: 0 0 4px; font-size: .92rem; }.site-asset-card p { margin: 0; color: var(--muted); font-size: .73rem; }.site-asset-card small { display: block; margin-top: 6px; color: #7a6650; font-size: .65rem; }.file-field { margin-top: auto; min-height: 48px; padding: 10px 12px; border: 1px dashed #b8c6bf; border-radius: 7px; background: #fafcfa; }.file-field input[type="file"] { min-height: auto; padding: 4px 0 0; border: 0; box-shadow: none; font-size: .68rem; }.site-asset-card .check-label { margin: 0; }
.site-hero-preview { min-height: 300px; margin-top: 22px; padding: 35px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; overflow: hidden; border-radius: 12px; background-position: center; background-size: cover; color: #fff; }.site-hero-preview small { color: var(--lime); font-size: .7rem; font-weight: 850; letter-spacing: .15em; }.site-hero-preview strong { max-width: 760px; margin-top: 8px; font-size: clamp(2rem,5vw,4rem); line-height: 1; }.site-hero-preview p { margin: 12px 0 0; color: #edf0ef; }.settings-copy-grid { margin-top: 22px; }.settings-page-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 24px; }.settings-page-columns fieldset,.archive-settings-grid fieldset { min-width: 0; padding: 18px; display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 10px; }.settings-page-columns legend,.archive-settings-grid legend { padding: 0 7px; color: var(--ink); font-weight: 850; }.archive-settings-grid { padding-top: 24px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.site-settings-form .sticky-save { margin-inline: 0; }.site-settings-form .sticky-save span { margin-right: auto; color: var(--muted); font-size: .72rem; }

@media (min-width: 761px) and (max-width: 1020px) { .social-link-icon { width: var(--social-icon-tablet,26px); height: var(--social-icon-tablet,26px); }.social-links--icon_only .social-link { width: max(44px,calc(var(--social-icon-tablet,26px) + 20px)); height: max(44px,calc(var(--social-icon-tablet,26px) + 20px)); } }
@media (min-width: 1021px) { .social-link-icon { width: var(--social-icon-desktop,28px); height: var(--social-icon-desktop,28px); }.social-links--icon_only .social-link { width: max(44px,calc(var(--social-icon-desktop,28px) + 20px)); height: max(44px,calc(var(--social-icon-desktop,28px) + 20px)); } }

@media (max-width: 1080px) {
    .site-header { height: 72px; padding: 0 22px; position: sticky; top: 0; }
    .menu-toggle { display: block; }
    .main-nav { position: absolute; left: 0; right: 0; top: 72px; height: auto; display: none; padding: 14px 22px 20px; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); box-shadow: 0 20px 25px #0003; }
    .main-nav.open { display: flex; }
    .main-nav > a:not(.admin-link) { height: auto; padding: 13px 4px; border-bottom: 1px solid #ffffff13; }
    .admin-link { margin: 12px 0 0; }
}

@media (max-width: 1100px) {
    .site-footer { grid-template-columns: 1fr; gap: 32px; }
    .site-footer-primary { max-width: 650px; }
    .site-footer-navigation { width: min(100%,680px); }
}

@media (max-width: 1119px) {
    .admin-body.admin-navigation-open { overflow: hidden; }
    .admin-topbar { position: sticky; top: 0; z-index: 1200; height: 72px; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; background: var(--ink); color: #fff; box-shadow: 0 6px 22px rgba(4,12,17,.16); }
    .admin-menu-toggle,.admin-topbar-logout button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border: 1px solid #ffffff26; border-radius: 8px; background: #ffffff0b; color: #fff; font-size: .76rem; font-weight: 800; }
    .admin-menu-toggle { justify-self: start; }.admin-menu-toggle > span:first-child { font-size: 1.15rem; line-height: 1; }.admin-topbar-brand { min-width: 0; justify-self: center; }.admin-topbar-brand .brand-logo { width: 38px; height: 31px; flex-basis: 38px; }.admin-topbar-brand strong { font-size: .75rem; }.admin-topbar-brand small { font-size: .62rem; }.admin-topbar-logout { justify-self: end; margin: 0; }
    .admin-sidebar-scrim:not([hidden]) { position: fixed; inset: 0; z-index: 1250; width: 100%; height: 100%; display: block; border: 0; background: rgba(3,10,14,.62); cursor: default; }
    .admin-sidebar { width: min(320px,calc(100% - 40px)); height: 100dvh; padding: 22px 18px; transform: translateX(-105%); visibility: hidden; transition: transform .22s ease,visibility .22s; box-shadow: 22px 0 55px rgba(0,0,0,.28); }
    .admin-navigation-open .admin-sidebar { transform: translateX(0); visibility: visible; }
    .admin-sidebar .brand { padding-bottom: 20px; }.admin-menu-close { display: grid; place-items: center; }.admin-sidebar nav { margin-top: 14px; }.admin-nav-label { display: block; }
    .admin-main { width: 100%; margin: 0; padding: 36px 22px 76px; }
}

@media (max-width: 1020px) {
    .main-nav { gap: 20px; }
    .route-grid { grid-template-columns: repeat(2,1fr); }
    .video-grid { grid-template-columns: repeat(2,1fr); }
    .shorts-grid { grid-template-columns: repeat(3,1fr); }
    .filters { grid-template-columns: repeat(3,1fr); }
    .search-field { grid-column: span 2; }
    .route-metrics-strip { grid-template-columns: repeat(3,1fr); row-gap: 20px; }
    .route-content-grid { grid-template-columns: 1fr; }
    .sponsor-grid { grid-template-columns: repeat(2,1fr); }.sponsor-join-section { grid-template-columns: 1fr; gap: 35px; }
    .route-side-column { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .route-side-column > :first-child { grid-row: span 2; }
    .big-stats { grid-template-columns: repeat(2,1fr); }
    .admin-stat-grid { grid-template-columns: repeat(2,1fr); }
    .admin-help-grid { grid-template-columns: 1fr; }
    .form-layout { grid-template-columns: 1fr; }.form-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }.form-side .admin-panel { margin: 0; }
    .youtube-sync-layout { grid-template-columns: 1fr; }
    .social-position-editor { grid-template-columns: 1fr; }.social-size-fields { grid-template-columns: repeat(2,1fr); }
    .theme-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }.theme-preview { grid-column: 1 / -1; }.site-assets-grid,.archive-settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    body { font-size: 15px; }
    .site-header { height: 68px; padding: 0 18px; position: sticky; top: 0; }
    .brand { min-width: 0; }.brand-mark { width: 35px; height: 28px; }.brand-logo { width: 38px; height: 31px; flex-basis: 38px; }.brand strong { font-size: .78rem; }
    .menu-toggle { display: block; }
    .main-nav { position: absolute; left: 0; right: 0; top: 68px; height: auto; display: none; padding: 14px 18px 20px; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); box-shadow: 0 20px 25px #0003; }
    .main-nav.open { display: flex; }.main-nav > a:not(.admin-link) { height: auto; padding: 13px 4px; border-bottom: 1px solid #ffffff13; }.admin-link { margin: 12px 0 0; }
    .hero, .hero-content { min-height: 600px; }.hero-image { object-position: var(--hero-mobile-focus-x,72%) var(--hero-mobile-focus-y,48%); }.hero-overlay { background: linear-gradient(0deg, rgba(4,12,17,.97), rgba(4,12,17,.28) 70%), linear-gradient(90deg, rgba(4,12,17,.45), transparent); }
    .hero-content { width: calc(100% - 36px); justify-content: end; padding: 0 0 38px; }.hero h1 { font-size: clamp(2.8rem,14vw,4.5rem); }.hero-lead { margin-bottom: 25px; }.hero-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }.hero-stats > div { min-width: 0; }
    .home-map-section { height: 320px; }
    .content-section { width: calc(100% - 32px); padding: 45px 0 60px; }.filters { margin-bottom: 38px; display: grid; grid-template-columns: 1fr 1fr; }.filters .search-field { grid-column: 1 / -1; }.filters .button { grid-column: 1 / -1; }
    .section-heading { align-items: center; }.section-heading .eyebrow { margin-bottom: 8px; }.route-grid { grid-template-columns: 1fr; gap: 18px; }
    .video-grid { grid-template-columns: 1fr; gap: 18px; }.shorts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.home-shorts-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }.home-shorts-grid .media-card { min-width: 72vw; scroll-snap-align: start; }
    .story-callout { min-height: 480px; }.page-hero { min-height: 300px; padding: 50px 20px; }.page-hero h1 { font-size: 2.75rem; }
    .map-layout { display: flex; flex-direction: column; }.map-sidebar { padding: 24px; border: 0; }.map-route-list { max-height: 330px; }.map-full { min-height: 62vh; }
    .route-hero { min-height: 590px; }.route-hero > img { object-position: 64% center; }.route-hero-overlay { background: linear-gradient(0deg, rgba(5,14,20,.99) 0%, rgba(5,14,20,.96) 68%, rgba(5,14,20,.78) 84%, rgba(5,14,20,.54) 100%); }.route-hero-top, .route-hero-content { width: calc(100% - 36px); }.route-hero-content { min-height: 510px; justify-content: end; padding-bottom: 36px; }.route-hero-content h1 { font-size: clamp(2.25rem, 11vw, 2.8rem); }
    .route-metrics-strip { width: calc(100% - 32px); grid-template-columns: 1fr 1fr; gap: 22px 10px; }.route-pending-strip { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; gap: 5px; }.route-content-grid { width: calc(100% - 32px); padding-bottom: 55px; }.map-detail { height: 430px; }.panel { padding: 18px; }.map-panel { padding: 0; }.elevation-panel canvas { height: 240px; }.elevation-readout { font-size: .67rem; }.route-side-column { grid-template-columns: 1fr; }.route-side-column > :first-child { grid-row: auto; }.gallery { grid-template-columns: repeat(2,1fr); }
    .sponsor-grid { grid-template-columns: 1fr; }.sponsor-archive { padding-bottom: 65px; }.sponsor-join-section { padding: 55px 18px; }.sponsor-collaboration-details { padding: 22px; }.sponsor-collaboration-details ul { grid-template-columns: 1fr; }.sponsor-detail-hero { min-height: 620px; }.sponsor-detail-content { width: calc(100% - 36px); }.sponsor-detail-identity { min-height: 520px; padding-top: 45px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 25px; }.sponsor-detail-logo { width: 125px; height: 125px; flex-basis: 125px; border-radius: 20px; }.sponsor-disclosure { grid-template-columns: 1fr; gap: 5px; margin-bottom: 45px; }.sponsor-photo-grid { grid-template-columns: repeat(2,1fr); }.sponsor-admin-previews,.sponsor-route-options { grid-template-columns: 1fr; }.admin-panel-heading { align-items: flex-start; flex-direction: column; }
    .big-stats { grid-template-columns: 1fr 1fr; }.big-stats article { padding: 20px; }.big-stats strong { font-size: 1.8rem; }.about-grid { grid-template-columns: 1fr; gap: 35px; }.about-grid figure { order: -1; aspect-ratio: 16/10; }
    .social-section--project_page,.social-section--about_page { width: calc(100% - 32px); padding: 45px 0 60px; }.site-footer { gap: 24px; padding-inline: 18px; text-align: left; }.site-footer-navigation { gap: 20px; }.site-footer .social-section { padding-top: 20px; }.site-footer .social-align-center,.site-footer .social-align-right { text-align: left; }.site-footer .social-align-center .social-links,.site-footer .social-align-right .social-links { justify-content: flex-start; }
    .admin-topbar { height: 68px; padding-inline: 12px; gap: 8px; }.admin-main { padding: 28px 16px 70px; }.admin-heading { align-items: start; flex-direction: column; }.admin-heading-actions { width: 100%; justify-content: flex-start; }.admin-stat-grid { grid-template-columns: 1fr 1fr; }.upload-panel { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.form-grid .span-2 { grid-column: auto; }.form-side { grid-template-columns: 1fr; }.manage-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }.danger-zone { align-items: stretch; flex-direction: column; }.login-card { padding: 28px 22px; }.system-checks { grid-template-columns: 1fr; }.license-overview { flex-direction: column; }.license-badges { max-width: none; justify-content: flex-start; }.license-terms { grid-template-columns: 1fr; }.sync-limit-help { padding: 0; }.social-admin-row { grid-template-columns: 44px 32px minmax(0,1fr) auto; }.social-admin-status { grid-column: 3 / -1; }.social-order-buttons { grid-column: 3; }.social-admin-row .row-actions { justify-self: end; }.social-position-editor { padding: 16px; }.social-preview-canvas { min-height: 220px; padding: 22px; }.social-position-checks { grid-template-columns: 1fr; }
    .table-wrap--entities { overflow: visible; }.admin-table--entities,.admin-table--entities tbody { display: block; width: 100%; }.admin-table--entities thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }.admin-table--entities tbody { display: grid; gap: 14px; }.admin-table--entities tr { min-width: 0; display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 7px 20px rgba(15,28,34,.035); }.admin-table--entities td { min-width: 0; display: grid; grid-template-columns: minmax(88px,34%) minmax(0,1fr); align-items: start; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid #edf0ee; overflow-wrap: anywhere; }.admin-table--entities td:last-child { border-bottom: 0; }.admin-table--entities td::before { content: attr(data-label); grid-column: 1; grid-row: 1 / span 20; color: var(--muted); font-size: .63rem; font-weight: 800; letter-spacing: .04em; line-height: 1.45; text-transform: uppercase; }.admin-table--entities td > * { min-width: 0; grid-column: 2; }.admin-table--entities .row-actions { white-space: normal; }.admin-table--entities .row-actions a,.admin-table--entities .row-actions button { min-height: 44px; display: inline-flex; align-items: center; margin: 0; }.admin-table--entities td[colspan] { grid-template-columns: 1fr; }.admin-table--entities td[colspan]::before { display: none; }.admin-table--entities td[colspan] > * { grid-column: 1; }
    .settings-disclosure > summary { padding: 18px; }.settings-disclosure-body { padding: 2px 18px 22px; }.theme-fields,.site-assets-grid,.settings-page-columns,.archive-settings-grid,.social-variant-options { grid-template-columns: 1fr; }.theme-preview { grid-column: auto; }.site-hero-preview { min-height: 330px; padding: 24px; }.site-settings-form .sticky-save { align-items: stretch; flex-direction: column; }.site-settings-form .sticky-save .button { width: 100%; }
    .consent-banner { left: 10px; right: 10px; bottom: 10px; max-height: calc(100dvh - 20px); overflow-y: auto; grid-template-columns: 1fr; padding: 18px; }.consent-actions { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }.consent-actions .button { width: 100%; }.consent-actions [data-consent-accept],.consent-actions [data-consent-save] { grid-column: 1 / -1; }.privacy-status-card { flex-direction: column; }.legal-page { width: calc(100% - 32px); }.legal-page h2 { font-size: 1.3rem; }
}

@media (max-width: 390px) {
    .filters, .big-stats, .admin-stat-grid { grid-template-columns: 1fr; }.filters .search-field, .filters .button { grid-column: auto; }.route-metrics-strip { grid-template-columns: 1fr 1fr; }.shorts-grid { grid-template-columns: 1fr 1fr; }.hero-stats { gap: 15px 6px; }.hero-stats strong { font-size: 1rem; }.social-admin-row { grid-template-columns: 44px minmax(0,1fr); }.social-admin-row > .social-icon-badge { display: none; }.social-admin-status,.social-order-buttons { grid-column: 2; }.social-admin-row .row-actions { grid-column: 2; justify-self: start; }
}

@media (max-width: 599px) {
    .site-footer-navigation { grid-template-columns: 1fr; }.site-footer-group { padding-top: 4px; }.site-footer-credit { text-align: left; }
}

@media (max-width: 420px) {
    .admin-topbar-brand span { display: none; }.admin-menu-toggle { padding-inline: 10px; }.admin-menu-toggle > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }.admin-topbar-logout button { padding-inline: 10px; }
}

@media (max-width: 350px) {
    .social-section--project_page .social-links--icon_and_label,.social-section--project_page .social-links--button { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Partner e affiliazioni: componenti editoriali, non banner pubblicitari. */
.affiliates-page-hero { background-image: linear-gradient(90deg,rgba(5,16,22,.96),rgba(5,16,22,.34)),var(--page-hero-image,url('../images/btrip-page-hero.webp')); }
.affiliate-resources { display: grid; gap: 18px; }
.affiliate-category-nav { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.affiliate-category-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--green-dark); font-size: .74rem; font-weight: 800; }
.affiliate-category-section { scroll-margin-top: 90px; }
.affiliate-category-section > .section-heading { margin-bottom: 8px; }
.affiliate-block { min-width: 0; padding: 24px; border: 1px solid #dce5df; border-radius: var(--radius-md); background: linear-gradient(145deg,#fff,#f8faf8); box-shadow: 0 10px 30px rgba(19,39,29,.04); }
.affiliate-block-heading { margin-bottom: 14px; }
.affiliate-block-heading .eyebrow { margin-bottom: 6px; }
.affiliate-block-heading h2 { margin: 0; font-size: clamp(1.35rem,2.2vw,2rem); }
.affiliate-disclosure { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--lime); background: #f3f7ee; color: #52605a; font-size: .73rem; line-height: 1.55; }
.affiliate-disclosure:last-child { margin: 18px 0 0; }
.affiliate-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.affiliate-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(10,24,18,.045); }
.affiliate-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #e9eeeb; }
.affiliate-card-media > img { width: 100%; height: 100%; object-fit: cover; }
.affiliate-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--green-dark); background: linear-gradient(145deg,#e5eee7,#f7f9f7); font-size: 3rem; font-weight: 900; }
.affiliate-card-labels { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.affiliate-card-labels span { padding: 5px 8px; border-radius: 999px; background: rgba(5,21,15,.9); color: #fff; font-size: .6rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.affiliate-card-labels span:first-child { background: var(--lime); color: var(--ink); }
.affiliate-card-body { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.affiliate-card-category { margin: 0 0 7px; color: var(--green-dark); font-size: .63rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.affiliate-card-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.affiliate-card-body > p:not(.affiliate-card-category):not(.affiliate-discount) { margin: 9px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.affiliate-discount { margin: 14px 0 0; padding: 8px 8px 8px 12px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px 10px; border: 1px dashed #bac9a0; border-radius: 8px; background: #f7f9ef; }
.affiliate-discount span { color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.affiliate-discount strong { color: var(--ink); font-size: .8rem; letter-spacing: .08em; }
.affiliate-discount button { min-width: 58px; min-height: 44px; padding: 0 10px; border: 1px solid #bac9a0; border-radius: 7px; background: #fff; color: var(--action); font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.affiliate-discount button:hover,.affiliate-discount button:focus-visible { border-color: var(--action); outline: none; box-shadow: 0 0 0 3px rgba(13,125,84,.14); }
.affiliate-discount button:disabled { cursor: wait; opacity: .72; }
.affiliate-cta { width: 100%; min-height: 44px; margin-top: auto; padding-top: 12px; padding-bottom: 12px; justify-content: center; }
.affiliate-card-body > .affiliate-cta { margin-top: auto; transform: translateY(14px); margin-bottom: 14px; }
.affiliate-block-route .affiliate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.affiliate-block-sidebar { padding: 18px; }
.affiliate-block-sidebar .affiliate-grid { grid-template-columns: 1fr; }
.affiliate-block-sidebar .affiliate-block-heading h2 { font-size: 1.15rem; }
.route-affiliate-bottom { padding-top: 0; }
.global-affiliate-placement { padding-top: 22px; padding-bottom: 58px; }
.affiliate-block-resources { padding: 0; border: 0; background: transparent; box-shadow: none; }
.affiliate-block-resources > .affiliate-block-heading { display: none; }
.affiliate-admin-preview { width: min(100%,440px); margin: 20px 0 0; }
.affiliate-admin-preview img { width: 100%; max-height: 260px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #edf1ee; }
.affiliate-option-scroll { max-height: 320px; display: grid; gap: 7px; overflow-y: auto; padding: 3px; }
.affiliate-option-scroll.compact { max-height: 190px; }
.affiliate-option-scroll .check-label,.affiliate-placement-list .check-label { margin: 0; padding: 9px 10px; border: 1px solid #e5eae7; border-radius: 7px; background: #fafbfa; }
.affiliate-placement-list { display: grid; gap: 8px; }
.field-private { color: #8a6646; font-size: .63rem; font-weight: 750; }
.affiliate-admin-filters { display: grid; grid-template-columns: minmax(220px,1.5fr) minmax(170px,1fr) minmax(150px,.8fr) auto; gap: 12px; align-items: end; margin-bottom: 22px; }
.affiliate-admin-filters label { display: grid; gap: 6px; font-size: .7rem; font-weight: 800; }
.affiliate-admin-filters input,.affiliate-admin-filters select,.affiliate-category-new input:not([type="checkbox"]),.affiliate-category-new select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.affiliate-category-admin-list { display: grid; gap: 10px; }
.affiliate-category-row { display: grid; grid-template-columns: minmax(170px,.8fr) minmax(240px,1.5fr) 90px auto auto auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfa; }
.affiliate-category-row label { display: grid; gap: 5px; color: var(--muted); font-size: .65rem; font-weight: 800; }
.affiliate-category-row input:not([type="checkbox"]),.affiliate-category-row select,.affiliate-category-row .button { min-height: 44px; }
.affiliate-category-row > span { white-space: nowrap; }
.affiliate-archive-actions .admin-heading-actions { flex-wrap: wrap; }
.affiliate-category-new { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.affiliate-stat-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.affiliate-stat-cards article { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(20,40,30,.04); }
.affiliate-stat-cards small,.affiliate-stat-cards strong { display: block; }
.affiliate-stat-cards small { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.affiliate-stat-cards strong { margin-top: 7px; font-size: 2rem; }
.affiliate-stats-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.affiliate-timeline { height: 220px; display: flex; align-items: end; gap: 3px; padding-top: 12px; border-bottom: 1px solid var(--line); }
.affiliate-timeline-day { position: relative; height: 100%; flex: 1; display: flex; align-items: end; gap: 1px; }
.affiliate-timeline-day span,.affiliate-timeline-day i { width: 50%; min-height: 2px; display: block; border-radius: 2px 2px 0 0; background: var(--green); }
.affiliate-timeline-day i { background: var(--orange); }

@media (max-width: 1020px) {
    .affiliate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .affiliate-category-row { grid-template-columns: 1fr 1.5fr 90px auto; }
    .affiliate-category-row > span,.affiliate-category-row > button { grid-column: span 1; }
    .affiliate-stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .affiliate-grid,.affiliate-block-route .affiliate-grid { grid-template-columns: 1fr; }
    .affiliate-block { padding: 18px; }
    .affiliate-category-nav { flex-wrap: nowrap; overflow-x: auto; }
    .affiliate-category-nav a { flex: 0 0 auto; }
    .affiliate-admin-filters,.affiliate-category-row,.affiliate-stat-cards { grid-template-columns: 1fr; }
    .affiliate-category-row > * { grid-column: auto !important; }
    .affiliate-timeline { height: 170px; }
}

/* Giri organizzati e iscrizioni */
.public-flash { position: relative; z-index: 900; width: min(var(--content),calc(100% - 32px)); margin: 18px auto 0; padding: 14px 17px; border: 1px solid transparent; border-radius: 9px; font-size: .82rem; font-weight: 650; box-shadow: 0 8px 24px rgba(15,25,31,.06); }
.public-flash-success { border-color: #b9ddc7; background: #e8f7ed; color: #226642; }
.public-flash-error { border-color: #edc1c1; background: #fff0f0; color: #863636; }
.rides-page-hero { background-image: linear-gradient(90deg,rgba(5,16,22,.95),rgba(5,16,22,.36)),var(--page-hero-image); }
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.ride-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.ride-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 34px rgba(16,38,26,.065); }
.ride-card-image { aspect-ratio: 16/9; overflow: hidden; background: #e8eeea; }
.ride-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.ride-card:hover .ride-card-image img { transform: scale(1.025); }
.ride-card-body { flex: 1; padding: 20px; display: flex; flex-direction: column; }
.ride-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; color: var(--green-dark); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.ride-card h2 { margin: 10px 0 8px; font-size: 1.3rem; }
.ride-card h2 a { color: var(--ink); }
.ride-card-body > p { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.ride-card-footer { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.ride-card-footer a { color: var(--green-dark); font-weight: 800; }
.ride-detail-hero { background-position: center; }
.ride-hero-facts { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.ride-hero-facts span { padding: 7px 10px; border: 1px solid #ffffff2e; border-radius: 999px; background: #061119b8; color: #fff; font-size: .7rem; font-weight: 750; }
.ride-detail-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(310px,.7fr); gap: clamp(30px,6vw,78px); align-items: start; }
.ride-detail-copy .prose,.ride-terms .prose { color: #344149; line-height: 1.78; }
.ride-linked-route { margin-top: 32px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #cfe0d5; border-radius: 10px; background: #f5faf7; }
.ride-linked-route strong,.ride-linked-route span { display: block; }
.ride-linked-route span { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.ride-terms { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.ride-terms small { color: var(--muted); }
.ride-booking-panel { position: sticky; top: 24px; padding: 25px; border: 1px solid var(--line); border-top: 4px solid var(--lime); border-radius: 12px; background: #fff; box-shadow: 0 12px 34px rgba(16,38,26,.065); }
.ride-booking-panel > h2 { margin-bottom: 16px; font-size: 1.25rem; }
.ride-booking-panel dl,.booking-details { margin: 0; }
.ride-booking-panel dl > div,.booking-details > div { padding: 11px 0; display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 12px; border-bottom: 1px solid var(--line); }
.ride-booking-panel dt,.booking-details dt { color: var(--muted); font-size: .72rem; }
.ride-booking-panel dd,.booking-details dd { margin: 0; overflow-wrap: anywhere; font-size: .78rem; font-weight: 750; }
.ride-booking-panel > p { color: var(--muted); font-size: .75rem; line-height: 1.6; }
.ride-booking-cta { width: 100%; margin-top: 18px; }
.ride-access-link { min-height: 44px; margin-top: 12px; display: inline-flex; align-items: center; color: var(--green-dark); font-size: .72rem; font-weight: 800; }
.ride-closed-note { margin-top: 18px; padding: 13px; border-radius: 8px; background: #f4f1e7; color: #735f28 !important; font-weight: 750; }
.registration-page { max-width: 920px; }
.registration-intro { margin-bottom: 24px; }
.registration-intro > a { min-height: 44px; display: inline-flex; align-items: center; color: var(--green-dark); font-size: .75rem; font-weight: 800; }
.registration-intro p { color: var(--muted); line-height: 1.65; }
.registration-form { padding: clamp(22px,5vw,38px); display: grid; gap: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 34px rgba(16,38,26,.055); }
.registration-form label:not(.check-label) { display: grid; gap: 6px; font-size: .72rem; font-weight: 800; }
.registration-form input:not([type="checkbox"]),.ride-access-box input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); box-shadow: 0 5px 15px rgba(20,33,40,.03); }
.registration-form label small { color: var(--muted); font-weight: 500; }
.registration-form .check-label { color: #344149; font-size: .78rem; font-weight: 650; line-height: 1.5; }
.registration-form .check-label a { color: var(--green-dark); text-decoration: underline; }
.registration-summary { padding: 16px; display: grid; gap: 4px; border-radius: 9px; background: var(--ink); color: #fff; }
.registration-summary strong { color: var(--lime); }
.registration-summary span { font-size: .72rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.registration-manage-page { max-width: 1000px; }
.registration-status-card { margin-bottom: 22px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #badbc8; border-radius: 11px; background: #edf8f1; }
.registration-status-card span,.registration-status-card strong { display: block; }
.registration-status-card span { color: var(--muted); font-size: .7rem; }
.registration-status-card strong { margin-top: 3px; color: var(--green-dark); }
.status-card-awaiting_confirmation,.status-card-awaiting_payment { border-color: #e3d39f; background: #fff9e9; }
.status-card-cancelled,.status-card-expired,.status-card-refunded { border-color: #d6dadd; background: #f4f5f5; }
.registration-manage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.registration-manage-grid .admin-panel { margin: 0; }
.registration-manage-grid p { color: var(--muted); line-height: 1.6; }
.registration-cancel-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.ride-access-page { min-height: 420px; }
.ride-access-box { max-width: 650px; margin: 0 auto; padding: clamp(24px,5vw,42px); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 34px rgba(16,38,26,.055); }
.ride-access-box p { color: var(--muted); line-height: 1.65; }
.ride-access-box form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: end; }
.ride-access-box label { display: grid; gap: 6px; font-size: .72rem; font-weight: 800; }
.booking-list { display: grid; gap: 12px; }
.booking-list article { padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.booking-list h3 { margin: 8px 0 3px; }
.booking-list p,.booking-list small { margin: 0; color: var(--muted); font-size: .75rem; }
.status-open,.status-confirmed { background: #dff4e7; color: #26724a; }
.status-full,.status-awaiting_confirmation,.status-awaiting_payment { background: #f3eedc; color: #7b6835; }
.status-closed,.status-cancelled,.status-expired,.status-refunded { background: #e8eaeb; color: #586269; }
.ride-module-settings { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.8fr) auto; gap: 24px; align-items: center; }
.ride-module-settings h2,.ride-module-settings p { margin: 0; }
.ride-module-settings > div p { margin-top: 5px; color: var(--muted); font-size: .75rem; }
.ride-module-settings form { display: flex; align-items: center; gap: 14px; }
.ride-module-settings form .check-label { margin: 0; }
.ride-module-result { white-space: nowrap; font-size: .75rem; }
.ride-service-status { margin-bottom: 22px; }

@media (max-width: 1000px) {
    .ride-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ride-detail-layout { grid-template-columns: minmax(0,1.35fr) minmax(280px,.8fr); gap: 30px; }
    .ride-module-settings { grid-template-columns: 1fr; }
    .ride-module-settings form { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
    .ride-card-grid,.ride-detail-layout,.registration-manage-grid { grid-template-columns: 1fr; }
    .ride-booking-panel { position: static; }
    .ride-linked-route,.booking-list article,.registration-status-card { align-items: stretch; flex-direction: column; }
    .ride-access-box form { grid-template-columns: 1fr; }
    .ride-access-box form .button,.booking-list article .button { width: 100%; }
    .ride-booking-panel dl > div,.booking-details > div { grid-template-columns: 90px minmax(0,1fr); }
}

/* Configurable photographic landing; existing archive layouts stay independent. */
.brand.brand--image { min-width: 0; }
.brand--image .brand-logo { width: auto; height: 46px; max-width: min(220px, 52vw); flex: 0 1 auto; object-fit: contain; }
.hero--immersive, .hero--immersive .hero-content { min-height: calc(100svh - 76px); }
.hero--immersive .hero-content { padding-block: clamp(40px, 8vh, 100px); justify-content: flex-end; }
.hero--immersive h1 { font-size: clamp(3rem, 7.4vw, 7rem); max-width: 880px; line-height: .98; text-wrap: balance; overflow-wrap: anywhere; }
.hero--immersive .hero-lead { max-width: 600px; margin-block: 24px 0; line-height: 1.55; }
.hero--immersive .hero-actions { margin-block: 28px 44px; }
.hero--immersive .hero-actions .button { min-height: 52px; gap: 24px; }
.hero--immersive .hero-stats { width: 100%; padding-top: 24px; border-top: 1px solid #ffffff55; gap: 24px 48px; }
.hero--immersive .hero-stats small { font-size: .7rem; }
.landing-page .story-callout--editorial { --bg: #f1f0e9; --accent: var(--green); min-height: 80svh; background: #f1f0e9; color: var(--ink); padding-block: 90px; }
.story-callout--editorial > div { width: min(var(--content), calc(100% - 48px)); max-width: none; }
.story-callout--editorial .eyebrow { color: var(--green); }
.story-callout--editorial h2.mo-wh__text { max-width: 1000px; font-size: clamp(2.5rem, 5.5vw, 5.5rem); line-height: 1.12; letter-spacing: -.04em; --accent: var(--green); }
.story-callout--editorial p:not(.eyebrow) { color: var(--ink); max-width: 620px; }
.story-callout--editorial .button { color: #fff; background: var(--green); min-height: 48px; }
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-image { object-position: var(--hero-tablet-focus-x,50%) var(--hero-tablet-focus-y,50%); }
    .hero--immersive, .hero--immersive .hero-content { min-height: calc(100svh - 72px); }
}
@media (max-width: 640px) {
    .brand--image .brand-logo { height: 40px; max-width: 190px; }
    .hero--immersive, .hero--immersive .hero-content { min-height: calc(100svh - 68px); }
    .hero--immersive .hero-content { padding-block: 48px 28px; }
    .hero--immersive h1 { font-size: clamp(2.6rem, 12vw, 4.5rem); }
    .hero--immersive .hero-lead { margin-top: 18px; }
    .hero--immersive .hero-actions { width: 100%; margin-block: 24px 28px; }
    .hero--immersive .hero-actions .button { width: 100%; justify-content: space-between; }
    .hero--immersive .hero-stats { gap: 20px 12px; }
    .story-callout--editorial > div { width: calc(100% - 36px); }
}

.site-hero-preview[data-device="tablet"] { max-width: 460px; min-height: 560px; }
.site-hero-preview[data-device="mobile"] { max-width: 320px; min-height: 568px; }
.site-hero-preview strong { overflow-wrap: anywhere; }

/* Keep shading near the copy, leaving the upper photograph and faces clear. */
.hero--immersive .hero-overlay { background: linear-gradient(90deg, #050d124d 0%, #050d1200 65%), linear-gradient(0deg, #040b0fd9 0%, #040b0f70 28%, #040b0f18 62%, #040b0f00 80%); }
.story-callout--editorial { text-align: left; }
.story-callout--editorial p:not(.eyebrow) { margin-left: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.landing-page .story-callout--editorial { padding-inline: 0; }

/* Local cinematic hero: responsive photographs crossfade while the copy stays readable. */
.hero-scene-media, .hero-scene-slide { position: absolute; inset: 0; display: block; }
.hero-scene-media { overflow: hidden; }
.hero-scene-slide { opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero-scene-slide.is-current { opacity: 1; z-index: 1; }
.hero-scene-slide .hero-image { transform-origin: center; }
[data-hero-scene].is-scene-ready .hero-scene-slide.is-loaded .hero-image { animation: btrip-photo-drift 14s ease-in-out infinite alternate; }
[data-hero-scene].is-scene-paused .hero-scene-slide .hero-image { animation-play-state: paused; }
/* Compact controls stay at the lower edge, away from the photographic subject. */
.hero-scene-controls { position: absolute; z-index: 3; bottom: 20px; right: max(24px, calc((100% - var(--content)) / 2)); display: flex; align-items: center; gap: 2px; color: #fff; }
.hero-scene-controls[hidden] { display: none; }
.hero-scene-controls button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; color: inherit; border: 1px solid transparent; border-radius: 50%; font: inherit; cursor: pointer; transition: background .2s; }
.hero-scene-controls button:hover { background: #ffffff24; }
.hero-scene-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; background: #ffffff24; }
.hero-scene-controls button:disabled { cursor: default; opacity: .65; }
.hero-scene-controls [data-scene-count] { min-width: 46px; text-align: center; font-size: .65rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.hero-scene-toggle { display: block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
[data-scene-pause][aria-pressed="true"] .hero-scene-toggle { width: 0; height: 0; border: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; }
[data-hero-scene] .hero-content { padding-bottom: 90px; }
@keyframes btrip-photo-drift { from { transform: scale(1.02) translate3d(-.5%, 0, 0); } to { transform: scale(1.14) translate3d(.5%, -.5%, 0); } }
@media (max-width: 640px) { .hero-scene-controls { bottom: 14px; right: 18px; } }
@media (prefers-reduced-motion: reduce) {
    [data-hero-scene].is-scene-ready .hero-scene-slide.is-loaded .hero-image { animation: none; transform: none; }
    .hero-scene-slide { transition: none; }
}
.hero-scene-media { z-index: 0; }
[data-hero-scene] .hero-overlay { z-index: 1; }
[data-hero-scene] .hero-content { z-index: 2; }

/* Typography editor: viewport-sized preview scaled to the available panel. */
[data-type-panel][hidden] { display:none; }
[data-type-panel] fieldset { margin:20px 0; padding:20px; border:1px solid var(--line); border-radius:8px; }
[data-type-panel] legend { padding:0 8px; font-weight:700; }
.type-preview-window { position:relative; overflow:hidden; width:100%; margin-block:20px; background:#0a141b; }
.type-preview { position:absolute; top:0; left:0; transform-origin:top left; color:white; background-size:cover; background-position:center; padding:100px 110px; }
.type-preview [data-type-text] { margin:0 0 24px; overflow-wrap:anywhere; }
.type-preview [data-type-text="eyebrow"] { color:var(--lime); }

[data-type-role-panel][hidden] {display:none;}

/* Presentation controls never modify the uploaded image file. */
.hero[data-overlay="none"] .hero-overlay {background:none;}
.hero[data-overlay="soft"] .hero-overlay {background:linear-gradient(0deg,#040b0f99,transparent 65%);}
.hero[data-photo-fit="contain"] .hero-image {object-fit:contain;object-position:center;}
.hero[data-photo-fit="contain"] {background:var(--ink);}
.hero[data-photo-zoom="0"] .hero-scene-slide .hero-image {animation:none !important;transform:none !important;}
.hero[data-overlay="none"] .hero-scene-controls {border-radius:24px;background:#0a141bbf;}
.hero-content h1.sr-only {max-width:1px !important;max-height:1px !important;}

.site-hero-preview [hidden], .type-preview [hidden] {display:none !important;}

/* Narrative landing: natural scrolling, local photographs, stable mobile viewport. */
.narrative-story > .wrap, .narrative-routes > .wrap, .narrative-explore > .wrap { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 640px) { .narrative-story > .wrap, .narrative-routes > .wrap, .narrative-explore > .wrap { width: calc(100% - 36px); } }
.hero[data-narrative="1"], .hero[data-narrative="1"] .hero-content { min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); }
.hero[data-narrative="1"] .hero-content { padding-top: 64px; padding-bottom: max(100px, calc(76px + env(safe-area-inset-bottom))); }
.hero[data-narrative="1"] .hero-actions { margin-bottom: 0; }
.hero[data-narrative="1"] .hero-scene-controls { bottom: max(18px, env(safe-area-inset-bottom)); }
[data-motion-intensity="gentle"] { --photo-scale: 1.035; }
[data-motion-intensity="expressive"] { --photo-scale: 1.075; }
@keyframes btrip-photo-drift { from { transform: scale(1); } to { transform: scale(var(--photo-scale, 1.06)); } }
[data-hero-scene] .hero-scene-slide:not(.is-current) .hero-image { animation-play-state: paused; }
.hero[data-narrative="1"].is-scene-ready .hero-content > :not(.sr-only) { animation: narrative-arrive .85s cubic-bezier(.2,.7,.2,1) both; }
@keyframes narrative-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.narrative-story { background: #f1f0e9; color: var(--ink); --bg: #f1f0e9; --accent: var(--green); padding-block: clamp(64px, 9vw, 120px); }
.narrative-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; min-height: 620px; }
.narrative-story-copy { min-width: 0; }
.narrative-story h2 { font-size: clamp(2.5rem, 4.5vw, 4.8rem); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; margin-block: 22px 28px; }
.narrative-story-copy > p:not(.eyebrow) { font-size: 1.15rem; line-height: 1.65; max-width: 42ch; margin-bottom: 32px; }
.narrative-story .button { background: var(--green); color: #fff; gap: 28px; min-height: 48px; }
.narrative-portrait { display: block; overflow: hidden; aspect-ratio: 4/5; border-radius: 4px; }
.narrative-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.narrative-routes { padding-block: clamp(64px, 8vw, 110px); background: #fff; }
.narrative-routes h2, .narrative-explore h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.12; letter-spacing: -.035em; }
.narrative-route-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.narrative-route { min-width: 0; transition: transform .25s ease; }
.narrative-route-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 3/2; border-radius: 4px; }
.narrative-route-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.narrative-route-photo > span { position: absolute; top: 16px; left: 16px; background: #fff; color: var(--ink); width: 40px; height: 40px; display: grid; place-items: center; font-variant-numeric: tabular-nums; border-radius: 50%; }
.narrative-route-copy { padding-block: 20px; }
.narrative-route h3 { font-size: 1.4rem; line-height: 1.25; margin: 10px 0 16px; }
.narrative-route h3 a { display: inline-block; min-height: 44px; }
.narrative-route-details { font-size: .95rem; color: #40534b; }
.narrative-explore { padding-top: 72px; background: #eaf0e9; }
.narrative-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 40px 0 56px; }
.narrative-stats strong { display: block; font-size: clamp(1.8rem,3vw,3rem); letter-spacing: -.04em; }
.narrative-stats strong small { font-size: 1rem; }
.narrative-stats span { display: block; margin-top: 8px; }
.narrative-explore .home-map-section { margin: 0; }
@media (hover: hover) and (pointer: fine) {
    .narrative-portrait:hover img, .narrative-route:hover img { transform: scale(1.03); }
    .narrative-route:hover { transform: translateY(-2px); }
}
@media (max-width: 1024px) {
    .hero[data-narrative="1"], .hero[data-narrative="1"] .hero-content { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); }
    .narrative-story-grid { min-height: 0; gap: 32px; }
    .narrative-route-grid { gap: 20px; }
}
@media (max-width: 640px) {
    .hero[data-narrative="1"], .hero[data-narrative="1"] .hero-content { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); }
    .narrative-story-grid, .narrative-route-grid { grid-template-columns: 1fr; gap: 36px; }
    .narrative-portrait { aspect-ratio: 1; }
    .narrative-route-photo { aspect-ratio: 4/3; }
    .narrative-stats { grid-template-columns: 1fr 1fr; }
    .narrative-story .button { width: 100%; justify-content: space-between; }
    .narrative-routes .section-heading, .narrative-explore .section-heading { align-items: flex-start; gap: 20px; flex-direction: column; }
    .narrative-routes .section-heading > a, .narrative-explore .section-heading > a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero[data-narrative="1"].is-scene-ready .hero-content > :not(.sr-only) { animation: none; }
    .narrative-route, .narrative-route img, .narrative-portrait img { transition: none; transform: none !important; }
}

.narrative-story a:focus-visible, .narrative-routes a:focus-visible, .narrative-explore a:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.hero[data-narrative="1"] .hero-scene-controls { background: #0a141bcc; border-radius: 24px; }

/* Photographic chapters: local Taste moment, with site-specific spacing tokens. */
.narrative-routes { --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:28px; --s-7:36px; --r-md:4px; --r-lg:4px; --bg:#f1f0e9; --surface:#e4e9df; --nav-h:76px; --t-small:12px; --t-lead:20px; --t-h3:clamp(1.25rem,2.2vw,2rem); --font-text:inherit; --font-display:inherit; --display-weight:650; }
.narrative-routes .mo-ph__head { max-width: none; }
.narrative-routes .mo-ph__head h2, .narrative-routes .mo-ph__head p { margin: 0; }
.narrative-routes .mo-ph__head > a, .chapter-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; font-weight: 650; color: var(--green); }
.narrative-routes .mo-ph__list { padding:0; margin:0; list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.narrative-routes .mo-ph__pic { margin:0; overflow:hidden; }
.narrative-routes .mo-ph__pic img { width:100%; aspect-ratio:3/2; object-fit:cover; }
.narrative-routes .mo-ph__ch h3 { overflow-wrap:anywhere; }
.narrative-routes.is-live .mo-ph__ch:not(.is-on) .chapter-link { visibility:hidden; }
.narrative-routes.is-live .mo-ph__stage { isolation:isolate; }
.map-tile-retry { background:#fff; color:#163d2e; padding:10px 14px; border:1px solid #163d2e; border-radius:4px; min-height:44px; font:600 13px/1.4 sans-serif; cursor:pointer; }
.map-tile-retry[hidden] { display:none; }
@media(max-width:640px) {
 .narrative-routes { --s-5:16px; --s-6:16px; --s-7:24px; --nav-h:68px; --t-h3:1.2rem; }
 .narrative-routes .mo-ph__list { grid-template-columns:1fr; }
 .narrative-routes .mo-ph__head h2 { font-size:1.8rem; }
 .narrative-routes.is-live .mo-ph__panel { padding:14px; gap:6px; }
 .narrative-routes.is-live .mo-ph__words { gap:6px; }
 .narrative-routes .mo-ph__ch p { font-size:.85rem; }
}
.narrative-routes.is-live .mo-ph__list { grid-template-columns:minmax(0,1fr); }
.narrative-routes .mo-ph__words > * { margin:0; }
.narrative-routes .mo-ph__words { gap:12px; }
.narrative-routes .mo-ph__count { margin:0; }
.narrative-routes .chapter-link { white-space:normal; }
@media(max-width:640px) {
 .narrative-routes .mo-ph__head { gap:8px; }
 .narrative-routes .mo-ph__words { gap:8px; }
}
/* Keep mobile archive edges aligned with the photographic chapters. */
@media(max-width:640px) {
 .landing-page .home-media-section, .landing-page .home-shorts-section > .content-section { width:calc(100% - 36px); padding-inline:0; }
}
.hero[data-narrative="1"] .hero-scene-controls { bottom:max(24px, env(safe-area-inset-bottom)); }

/* Saved overlay placement; specificity takes precedence over narrative layouts. */
@media (min-width: 1025px) and (hover: hover), (min-width: 1025px) and (orientation: portrait), (min-width: 1367px), (min-width: 1025px) and (min-height: 1025px) {
    .hero .hero-content.wrap[data-copy-desktop-x="left"] { align-items: flex-start; text-align: left; }
    .hero .hero-content.wrap[data-copy-desktop-x="center"] { align-items: center; text-align: center; }
    .hero .hero-content.wrap[data-copy-desktop-x="right"] { align-items: flex-end; text-align: right; }
    .hero .hero-content.wrap[data-copy-desktop-y="top"] { justify-content: flex-start; }
    .hero .hero-content.wrap[data-copy-desktop-y="center"] { justify-content: center; }
    .hero .hero-content.wrap[data-copy-desktop-y="bottom"] { justify-content: flex-end; }
}
@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait), (min-width: 641px) and (max-width: 1024px) and (min-height: 541px), (orientation: landscape) and (hover: none) and (min-height: 541px) and (max-height: 1024px) and (max-width: 1366px) {
    .hero .hero-content.wrap[data-copy-tablet-x="left"] { align-items: flex-start; text-align: left; }
    .hero .hero-content.wrap[data-copy-tablet-x="center"] { align-items: center; text-align: center; }
    .hero .hero-content.wrap[data-copy-tablet-x="right"] { align-items: flex-end; text-align: right; }
    .hero .hero-content.wrap[data-copy-tablet-y="top"] { justify-content: flex-start; }
    .hero .hero-content.wrap[data-copy-tablet-y="center"] { justify-content: center; }
    .hero .hero-content.wrap[data-copy-tablet-y="bottom"] { justify-content: flex-end; }
}
@media (max-width: 640px), (orientation: landscape) and (max-height: 540px) and (max-width: 1024px) {
    .hero .hero-content.wrap[data-copy-mobile-x]:not([data-copy-mobile-x="auto"]) .hero-actions { width: fit-content; max-width: 100%; }
    .hero .hero-content.wrap[data-copy-mobile-x="left"] { align-items: flex-start; text-align: left; }
    .hero .hero-content.wrap[data-copy-mobile-x="center"] { align-items: center; text-align: center; }
    .hero .hero-content.wrap[data-copy-mobile-x="right"] { align-items: flex-end; text-align: right; }
    .hero .hero-content.wrap[data-copy-mobile-y="top"] { justify-content: flex-start; }
    .hero .hero-content.wrap[data-copy-mobile-y="center"] { justify-content: center; }
    .hero .hero-content.wrap[data-copy-mobile-y="bottom"] { justify-content: flex-end; }
}
[data-site-hero-preview] [data-site-preview-output="home_hero_button"] { margin-top: 20px; }

/* Leave space for playback controls when the phone is turned sideways. */
@media (orientation: landscape) and (max-height: 540px) and (max-width: 1024px) {
    section.hero .hero-content.wrap { padding-block: 12px 64px; }
    .hero .expedition-logo { width: auto; max-width: 160px; height: 32px; margin-bottom: 6px; }
    body .hero .hero-content.wrap h1:not(.sr-only) { font-size: clamp(26px, 8svh, 42px); margin-block: 4px 6px; }
    .hero .hero-content .hero-lead { font-size: 1rem; margin-block: 2px 8px; }
    .hero .hero-content .hero-actions { margin-block: 4px; }
    .hero .hero-scene-controls { bottom: max(6px, env(safe-area-inset-bottom)); }
}

@media (orientation: landscape) and (max-width: 1366px) and (pointer: coarse),
       (orientation: landscape) and (max-width: 1024px) and (max-height: 540px) {
    .hero[data-photo-fit="cover"] .hero-image {
        object-position: var(--hero-focus-x, 50%) var(--slide-landscape-y, 50%);
    }
}
@media (orientation: landscape) and (max-width: 1024px) and (max-height: 540px) {
    .landing-page .site-header { height: 52px; }
    .landing-page .main-nav { top: 100%; max-height: calc(100svh - 52px); overflow-y: auto; }
    .landing-page .hero, .landing-page .hero .hero-content {
        min-height: calc(100svh - 52px);
    }
    .landing-page .hero .hero-scene-controls {
        bottom: max(6px, env(safe-area-inset-bottom));
        right: max(18px, env(safe-area-inset-right));
    }
}

/* Keep foreground controls clear of the camera cutout after rotation. */
@media (orientation: landscape) {
    .landing-page .site-header {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
    .landing-page .hero-content.wrap {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        box-sizing: border-box;
    }
}

/* Journey statistics: readable before enhancement and stable during counting. */
.narrative-explore { background: #f4f3f7; }
.narrative-explore .section-heading { margin-bottom: 0; }
.narrative-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 30px 0 48px; }
.journey-stat { position: relative; isolation: isolate; min-width: 0; display: flex; align-items: center; gap: 24px; padding: 28px; overflow: hidden; border: 1px solid #fff; border-radius: 22px; background: #ffffffb8; box-shadow: 0 10px 28px #35154b0c, inset 0 1px 0 #fff; }
.journey-stat::after { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: auto -10% -30px; height: 48px; border-radius: 50%; background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--ink) 15%, transparent), transparent); transform: rotate(-3deg); }
.journey-stat-icon { flex: 0 0 auto; width: 64px; height: 64px; padding: 15px; border-radius: 17px; color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, #fff); }
.journey-stat-copy { min-width: 0; }
.narrative-stats strong { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .18em; font-size: clamp(2rem,4.5vw,3.7rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.narrative-stats strong small { font-size: .43em; letter-spacing: -.02em; }
.narrative-stats .journey-stat-number { display: grid; margin: 0; }
.journey-stat-number > span { grid-area: 1 / 1; margin: 0; }
.journey-stat-reserve { visibility: hidden; }
.narrative-stats .journey-stat-label { margin-top: 6px; font-size: clamp(.9rem,1.7vw,1.15rem); line-height: 1.3; }
@media (max-width: 600px) {
    .narrative-stats { gap: 12px; padding: 24px 0 32px; }
    .journey-stat { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 14px 24px; border-radius: 18px; }
    .journey-stat-icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; }
    .narrative-stats strong { font-size: clamp(1.7rem,7.2vw,2.7rem); }
}
@media (min-width: 360px) and (max-width: 600px) {
    .journey-stat { flex-direction: row; align-items: center; gap: 10px; padding: 20px 12px 24px; }
    .journey-stat-icon { width: 32px; height: 36px; padding: 6px; border-radius: 10px; }
    .narrative-stats strong { font-size: clamp(1.5rem,6.6vw,2.3rem); }
    .narrative-stats .journey-stat-label { font-size: .8rem; }
}
@media (min-width: 1100px) {
    .narrative-stats { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
    .journey-stat { padding: 24px 18px 30px; gap: 14px; }
    .journey-stat-icon { width: 44px; height: 48px; padding: 10px; border-radius: 12px; }
    .narrative-stats strong { font-size: 2.6rem; }
    .narrative-stats .journey-stat-label { font-size: .9rem; }
}
/* Unified slideshow editor. All controls stay in the form when disclosures close. */
[data-overlay-editor] section + section { margin-top:28px; }
[data-overlay-editor] .settings-disclosure { border:1px solid var(--line); border-radius:10px; margin:12px 0; }
[data-overlay-editor] fieldset { min-width:0; margin-top:20px; border:1px solid var(--line); border-radius:8px; padding:16px; }
.overlay-color-field { display:grid; grid-template-columns:minmax(0,1fr) minmax(120px,.7fr) auto; align-items:center; gap:16px; margin-block:18px; }
.overlay-preview-window { position:relative; width:100%; overflow:hidden; border-radius:12px; margin-top:20px; }
.site-hero-preview.overlay-preview-stage { max-width:none; margin:0; border-radius:0; transform-origin:top left; box-sizing:border-box; }
.overlay-preview-stage [data-site-preview-logo] { width:270px; height:90px; object-fit:contain; object-position:left center; margin-bottom:28px; }
.overlay-preview-stage[data-device="mobile"] [data-site-preview-logo] { width:170px; height:64px; margin-bottom:20px; }
.overlay-preview-stage > * { flex-shrink:0; overflow-wrap:anywhere; }
@media(max-width:640px) { .overlay-color-field { grid-template-columns:1fr; } [data-overlay-editor] .form-grid { grid-template-columns:1fr; } }
.overlay-preview-window { min-width:0; contain:inline-size; }
[data-overlay-editor], [data-overlay-editor] .settings-disclosure-body, [data-overlay-editor] section { min-width:0; }
[data-overlay-editor] select, .filters select { appearance:none; padding-right:36px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23344149' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; background-size:12px 8px; }
