.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-height); display: grid; grid-template-columns: 270px 1fr auto; align-items: center; gap: 24px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(245,240,230,.96); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; text-align: left; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--pine); font: 700 21px/1.1 Georgia, "Times New Roman", serif; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .15em; }
.brand-rails { width: 36px; height: 38px; display: flex; align-items: end; justify-content: center; gap: 3px; border-bottom: 3px solid var(--pine); }
.brand-rails i { width: 7px; border: 2px solid var(--pine); border-bottom: 0; border-radius: 7px 7px 0 0; }
.brand-rails i:nth-child(1), .brand-rails i:nth-child(3) { height: 19px; }.brand-rails i:nth-child(2) { height: 31px; }
.main-nav { align-self: stretch; display: flex; justify-content: center; gap: 28px; }
.nav-link { position: relative; padding: 0 10px; border: 0; background: transparent; font-weight: 800; font-size: 14px; }
.nav-link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; transform: scaleX(0); background: var(--rust); }
.nav-link.active { color: var(--rust); }.nav-link.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }.source-entry { position: relative; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }.source-entry::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2px; transform: scaleX(0); background: var(--rust); }.source-entry:hover, .source-entry.active { color: var(--rust); border-color: rgba(170,69,47,.45); }.source-entry.active::after { transform: scaleX(1); }.language-switch { min-width: 54px; border: 0; background: transparent; font-size: 14px; font-weight: 900; }

.home-hero { min-height: calc(100vh - var(--header-height)); display: grid; grid-template-columns: minmax(420px, 42%) minmax(0, 58%); border-bottom: 1px solid var(--line); }
.home-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 6vw, 96px); border-right: 1px solid var(--line); background: var(--paper-strong); }
.home-copy h1 { max-width: 640px; margin-top: 18px; font: 700 clamp(50px, 5.8vw, 86px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.home-lead { max-width: 550px; margin-top: 26px; color: #4f5b57; font-size: 17px; line-height: 1.8; }
.home-actions { display: flex; align-items: center; gap: 18px; margin-top: 32px; }.home-progress { color: var(--muted); font: 700 15px Georgia, serif; }
.home-map-shell, .route-map-shell { position: relative; min-width: 0; overflow: hidden; background: #e5e1d8; }
.shared-map { position: absolute; inset: 0; z-index: 1; }
.map-titlebar { position: absolute; top: 22px; left: 24px; right: 24px; z-index: 4; display: flex; justify-content: space-between; color: #42504c; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.home-map-card, .route-stop-card { position: absolute; z-index: 5; left: 24px; right: 24px; bottom: 22px; min-height: 90px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid rgba(207,199,185,.88); border-left: 4px solid var(--rust); border-radius: var(--radius-lg); background: rgba(255,253,248,.96); box-shadow: var(--shadow); }
.home-below { min-height: 340px; display: grid; grid-template-columns: 150px minmax(320px, .8fr) 1fr; align-items: center; gap: 44px; padding: 72px clamp(34px, 6vw, 96px); background: var(--paper); }.home-below .section-index { color: var(--rust); font: 700 44px Georgia, serif; }.home-below h2 { margin-top: 12px; font: 700 36px/1.15 Georgia, "Times New Roman", serif; }.home-below > p:last-child { color: var(--muted); line-height: 1.8; }

.route-view { --route-rail-width: 390px; display: grid; grid-template-columns: var(--route-rail-width) minmax(0, 1fr); height: calc(100vh - var(--header-height)); overflow: hidden; }
.route-rail { display: flex; flex-direction: column; padding: 20px 22px 16px; border-right: 1px solid var(--line); background: var(--paper-strong); overflow-y: auto; }
.route-heading .eyebrow { font-size: 13px; }.route-heading h1 { margin: 7px 0 9px; font: 700 38px/1.08 Georgia, "Times New Roman", serif; text-wrap: wrap; }.route-heading > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.5; }
.progress-head { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 13.5px; }.progress-head strong { color: var(--rust); }
.progress-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 7px; }.progress-bar i { height: 5px; background: var(--line-soft); }.progress-bar i.done { background: var(--pine); }.progress-bar i.active { background: var(--rust); }
.route-stop-list { flex: 1; min-height: 0; display: grid; grid-template-rows: repeat(5, minmax(72px, 1fr)); gap: 9px; margin: 10px 0; padding: 0; list-style: none; }.route-stop-list li { min-height: 0; }.route-stop-list button { width: 100%; height: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--paper); text-align: left; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }.route-stop-list button:hover { border-color: rgba(170,69,47,.5); background: #faf6ee; }.route-stop-list button.active { border-color: var(--rust); background: #efe4d4; color: var(--ink); box-shadow: inset 4px 0 0 var(--rust), var(--shadow); }.route-stop-list button > span:nth-child(2) { min-width: 0; }.route-stop-list strong { display: -webkit-box; overflow: hidden; font-size: 19px; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.route-stop-list small { display: block; color: inherit; opacity: .75; font-size: 13.5px; line-height: 1.35; }.route-stop-list button > span:nth-child(2) small { margin-top: 5px; overflow: hidden; font-size: 14.5px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }.route-stop-list button > small:last-child { margin: 0; font-size: 13.5px; white-space: nowrap; }.route-stop-list .stop-no { color: var(--rust); font: 700 22px Georgia, serif; }.route-stop-list button.active .stop-no { color: var(--rust); }
.route-open-guide { width: 100%; min-height: 52px; flex: 0 0 auto; font-size: 16px; }
.route-stop-card { right: auto; width: var(--route-rail-width); max-width: calc(100% - 48px); }
.map-tools { position: absolute; z-index: 5; top: 20px; left: 20px; display: flex; gap: 8px; }.map-tools button, .map-retry { min-height: 40px; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,253,248,.95); font-size: 12px; font-weight: 800; box-shadow: var(--shadow); }.map-retry { position: absolute; z-index: 6; top: 72px; left: 24px; }

.guide-view { height: calc(100vh - var(--header-height)); min-height: 0; display: grid; grid-template-columns: minmax(380px, 38%) minmax(0, 62%); overflow: hidden; }
.guide-visual { position: relative; height: 100%; min-height: 0; display: flex; flex-direction: column; padding: 26px 32px 22px; overflow: hidden; background: var(--pine); color: white; }
.guide-visual::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .3; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.15) 80px), linear-gradient(150deg, transparent 0 42%, rgba(185,207,210,.55) 42% 55%, transparent 55%); }.guide-visual.has-photo::before { opacity: 1; background: linear-gradient(180deg, rgba(9,30,27,.7) 0%, rgba(9,30,27,.12) 37%, rgba(9,30,27,.84) 100%); }.guide-visual > :not(.guide-image) { position: relative; z-index: 2; }.guide-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(.82) contrast(1.03); }.back-button { align-self: flex-start; min-height: 36px; padding: 0 4px; border: 0; border-radius: var(--radius-sm); background: transparent; color: white; font-size: 13px; font-weight: 800; }.guide-stamp { align-self: flex-end; display: grid; width: 104px; height: 104px; margin-top: 26px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius); background: rgba(15,45,40,.18); backdrop-filter: blur(3px); }.guide-stamp span { font: 700 38px Georgia, serif; }.guide-stamp small { margin-top: -28px; opacity: .78; }.guide-visual-copy { margin-top: auto; max-width: 520px; }.guide-visual-copy p { color: #f2b49d; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }.guide-visual-copy h1 { margin-top: 10px; font: 700 clamp(38px, 4.2vw, 62px)/1.02 Georgia, "Times New Roman", serif; }.guide-photo-credit { align-self: flex-start; margin-top: 13px; color: rgba(255,255,255,.78); font-size: 10px; }.guide-photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }.guide-photo-credit a:hover { color: white; }
.guide-content { height: 100%; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 9px; padding: 16px 24px 20px; overflow: hidden; background: var(--paper-strong); }.guide-story { min-height: 0; }.guide-story-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.scene-tabs { display: flex; gap: 6px; }.scene-tabs button { min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; font-size: 13px; }.scene-tabs button.active { border-color: var(--rust); background: var(--rust); color: white; }.guide-content h2 { max-width: 760px; margin: 7px 0 8px; font: 700 clamp(26px, 2.35vw, 34px)/1.08 Georgia, "Times New Roman", serif; }.guide-body { color: #46524e; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.52; white-space: pre-line; }.source-note { margin-top: 8px; padding: 7px 10px; border-left: 3px solid var(--ice); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--paper); color: var(--muted); font-size: 11px; line-height: 1.4; }
.audio-module { position: relative; display: grid; grid-template-columns: minmax(160px,.55fr) minmax(250px,1fr) auto; align-items: center; gap: 12px; margin: 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.audio-module > div { min-width: 0; }.audio-module > div strong, .audio-module > div span { display: block; }.audio-module > div strong { font-size: 15px; }.audio-module span { margin-top: 3px; color: var(--muted); font-size: 11px; }.audio-module audio { width: 100%; height: 34px; }.audio-module details { position: relative; color: var(--muted); font-size: 12px; }.audio-module details p { position: absolute; z-index: 8; top: 22px; right: 0; width: min(500px, 55vw); max-height: 190px; margin: 0; padding: 14px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-strong); box-shadow: var(--shadow); line-height: 1.55; }
.guide-explore-grid { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(140px, .9fr) minmax(170px, 1.1fr); align-content: stretch; gap: 10px; overflow: hidden; }.task-module, .qa-module { min-height: 0; height: 100%; margin: 0; padding: 12px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }.task-module h3, .qa-module h3 { margin: 5px 0 9px; font: 700 clamp(18px, 1.45vw, 22px)/1.2 Georgia, "Times New Roman", serif; }.guide-footer { min-height: 48px; display: flex; justify-content: center; padding-bottom: 4px; }.complete-stop { width: calc(100% - 80px); min-height: 48px; margin: 0 auto; border-radius: var(--radius); }

.archive-view { padding: 58px clamp(34px, 6vw, 94px) 90px; }.archive-heading { display: grid; grid-template-columns: 1fr 1fr; column-gap: 50px; align-items: end; }.archive-heading .eyebrow { grid-column: 1/-1; }.archive-heading h1 { margin-top: 10px; font: 700 56px/1 Georgia, "Times New Roman", serif; }.archive-heading > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.7; }.archive-filters { display: flex; gap: 8px; margin-top: 36px; }.archive-filters button { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; font-size: 12px; }.archive-filters button.active { background: var(--pine); color: white; }.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }

.admin-body { background: var(--paper); }.admin-shell { width: min(1180px, calc(100% - 56px)); margin: 48px auto 80px; }.admin-shell h1 { margin: 10px 0; font: 700 48px Georgia, "Songti SC", serif; }.admin-shell header > p:last-child { color: var(--muted); }.admin-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 30px 0; }.admin-summary article { padding: 20px; border-top: 4px solid var(--pine); background: var(--paper-strong); }.admin-summary strong { display: block; font: 700 30px Georgia,serif; }.admin-summary span { color: var(--muted); font-size: 11px; }.admin-table-wrap { margin-bottom: 24px; overflow: auto; border: 1px solid var(--line); }.admin-table-wrap table { width: 100%; border-collapse: collapse; background: var(--paper-strong); }.admin-table-wrap th,.admin-table-wrap td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }.admin-table-wrap th { background: var(--ink); color: white; }

@media (min-width: 1600px) { .route-view { --route-rail-width: 410px; } }
@media (min-height: 900px) and (min-width: 821px) { .route-heading h1 { font-size: 40px; }.route-stop-list { gap: 10px; }.route-stop-list strong { font-size: 19.5px; } }
@media (max-height: 820px) and (min-width: 821px) { .route-rail { padding: 10px 18px; }.route-heading h1 { margin: 4px 0 6px; font-size: 35px; line-height: 1.05; }.route-heading > p:last-child { font-size: 13px; line-height: 1.4; }.progress-head { margin-top: 9px; font-size: 12.5px; }.progress-bar { margin-top: 5px; }.route-stop-list { grid-template-rows: repeat(5, minmax(68px, 1fr)); gap: 5px; margin: 5px 0; }.route-stop-list button { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; padding: 6px 10px; }.route-stop-list strong { font-size: 17px; }.route-stop-list button > span:nth-child(2) small { margin-top: 3px; font-size: 13px; }.route-stop-list button > small:last-child { font-size: 12.5px; }.route-stop-list .stop-no { font-size: 20px; }.route-open-guide { min-height: 48px; font-size: 15px; } }
@media (max-width: 1180px) and (min-width: 821px) { .site-header { grid-template-columns: 230px 1fr auto; padding: 0 22px; }.main-nav { gap: 14px; }.home-copy { padding: 48px; }.route-view { --route-rail-width: 350px; }.guide-view { grid-template-columns: 55% 45%; }.archive-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 820px) { body { min-width: 820px; } }
