/* Shared visual language; copied into each independently deployed Worker. */
html, body { background: #f5f7f6; color: #193b36; }
:root { --ink: #193b36; --muted: #5d706c; --accent: #176b59; --line: #dce5e0; --paper: #fff; font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; line-height: 1.6; }
::selection { background: #cde7d6; color: #193b36; }
a { color: var(--accent); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button, input, select { min-height: 44px; }
button { border: 1px solid var(--line); color: var(--ink); transition: background .2s, border-color .2s, box-shadow .2s; }
button:hover:not(:disabled) { border-color: #176b59; background: #edf5ef; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #bb7b20; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.page, .page.route-page { width: 100%; max-width: 1200px; padding: 0 36px 48px; margin: 0 auto; }
.brand-bar { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.05em; line-height: 1.3; }
.brand svg { width: 38px; height: 38px; flex-shrink: 0; color: var(--accent); }
.brand small { display: block; margin-top: 5px; color: #60736c; font-size: 9px; font-weight: 600; letter-spacing: .18em; }
.brand-caption { color: #64786f; font-size: 12px; }
.page-nav, .route-page .page-nav { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: nowrap; gap: 6px; padding: 10px 0; margin: 0 0 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f5f7f6f5; backdrop-filter: blur(16px); }
.page-nav a, .route-page .page-nav a { flex: 0 1 auto; min-height: 46px; padding: 11px 22px; border-radius: 9px; background: transparent; color: #526a60; text-align: center; font-size: 14px; font-weight: 600; text-decoration: none; word-break: keep-all; }
.page-nav a:hover { color: #164b3f; background: #e7eee8; }
.page-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.page-nav a:last-child[href^="https"] { margin-left: auto; font-size: 12px; }
.page-nav small { display: none; }
header { padding: 7px 0 0; }
h1, .route-page h1 { font-size: clamp(27px, 3.2vw, 42px); font-weight: 700; line-height: 1.25; letter-spacing: -.055em; word-break: keep-all; }
h2 { letter-spacing: -.035em; }
.eyebrow, .panel-kicker { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.updated, #updated { color: var(--muted); font-size: 12px; line-height: 1.8; }
.page-title { align-items: center; }
.current-time { gap: 10px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 11px; }
.current-time time { color: var(--ink); font-size: 15px; font-weight: 600; }
section { margin-top: 40px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2, .solar-panel > h2 { font-size: 23px; font-weight: 700; }
.section-heading p, .air-help, .solar-panel > p { max-width: 78ch; color: var(--muted); font-size: 12px; line-height: 1.8; }
.today { position: relative; isolation: isolate; overflow: hidden; min-height: 300px; margin-top: 28px; padding: 40px 48px; gap: 38px; border: 1px solid #315d50; border-radius: 22px; background: #214e40; color: #fff; box-shadow: 0 14px 36px #214e4010; }
.today::before { content: ''; position: absolute; z-index: -1; right: -90px; bottom: -210px; width: 550px; height: 500px; border: 1px solid #c4e4b926; border-radius: 50%; box-shadow: 0 0 0 50px #c4e4b908, 0 0 0 100px #c4e4b907; transform: rotate(-22deg); pointer-events: none; }
.today::after { content: 'CURRENT WEATHER'; position: absolute; top: 25px; right: 27px; color: #c7dacc; font-size: 10px; letter-spacing: .18em; }
.today h2 { font-size: clamp(60px, 7vw, 90px); font-weight: 400; letter-spacing: -.07em; line-height: 1.1; }
.today p { font-size: 14px; line-height: 1.8; }
.today .condition { margin: 9px 0 14px; font-size: 20px; font-weight: 500; }
.weather-symbol { color: #e1d39f; font-size: 95px; }
.today p.observation-note, .today p.atmosphere-note, .today .extreme-source, .today p.extreme-notice, .today .daily-extremes .extreme-label { color: #d0dfd4; }
.today .air { display: inline-block; padding: 7px 13px; border-radius: 8px; background: #ffffff12; font-size: 13px; font-weight: 400; }
.today .daily-extremes { display: flex; flex-wrap: wrap; gap: 16px 30px; margin-top: 18px; }
.today .daily-extremes > span { grid-template-columns: auto auto; }
.weather-insights { margin-top: 14px; padding: 23px 28px; border: 1px solid var(--line); border-radius: 16px; background: #edf2eb; }
.weather-insights h2 { color: var(--ink); font-size: 15px; }
.weather-insights li { color: #425b50; font-size: 13px; }
.weather-insights li::before { background: var(--accent); }
.weather-insights > p { color: #5d7062; border-color: #d9e1d5; font-size: 11px; }
.hourly, .daily, .solar-days { border-color: var(--line); border-radius: 16px; background: var(--line); }
.hourly { background: #fff; padding: 20px; }
.hourly-range button { border-color: var(--line); border-radius: 8px; background: #f3f6f3; color: #52675a; }
.hourly-range button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.hourly-overview, .hourly-range-notice { color: var(--muted); font-size: 12px; }
.temperature-chart polyline { stroke: #33836b; stroke-width: 2.5; }
.temperature-chart circle { fill: #33836b; }
.hourly-details, #hourly .hourly-details { border-color: var(--line); background: #f5f7f4; }
.hourly article, .daily article { padding: 22px 16px; }
.daily-card .daily-date span, .daily article span:nth-child(2) { color: #617469; }
.icon { color: #b58b33; }
.air-stations { gap: 16px; }
.air-station { border: 1px solid var(--line); border-radius: 16px; padding: 23px; background: #fff; }
.air-station h3 { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 18px; }
.air-metric > span { color: var(--muted); font-size: 12px; }
.air-metric strong { color: var(--ink); font-size: 25px; font-weight: 600; }
.air-metric summary { color: var(--accent); font-size: 12px; }
.air-station p, .air-station small { font-size: 12px; }
.air-primary { border-color: var(--line); }
.air-grade { font-size: 12px; }
.solar-day { border-color: var(--line); }
.solar-day-today { background: #edf5ee; box-shadow: inset 0 3px var(--accent); }
.solar-grid strong { color: var(--accent); }
.solar-grid .solar-off { background: #edf4f0; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 24px; margin-top: 56px; padding-top: 24px; border-color: var(--line); color: var(--muted); font-size: 11px; }
/* Search-first weather app. */
.welcome { display: grid; grid-template-columns: 1fr 1fr; min-height: 330px; margin-bottom: 26px; overflow: hidden; border-radius: 22px; background: #e6eddf; }
.welcome > div:first-child { position: relative; z-index: 1; padding: 38px 42px; }
.welcome-kicker { margin: 0 0 18px; color: #516b4f; font-size: 10px; font-weight: 600; letter-spacing: .15em; }
.welcome-title { margin: 0; font-size: clamp(38px, 4vw, 56px); line-height: 1.2; letter-spacing: -.06em; font-weight: 500; }
.welcome-description { margin: 18px 0 0; color: #52674f; font-size: 13px; line-height: 1.8; }
.landscape { position: relative; overflow: hidden; min-height: 100%; background: #dce8d4; }
.landscape-orbit { position: absolute; top: 37px; right: 20%; width: 150px; height: 150px; border: 1px solid #aec59d; border-radius: 50%; box-shadow: 0 0 0 26px #c9dabc; }
.landscape-orbit::after { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: #f3ecd2; }
.landscape-hill { position: absolute; width: 130%; height: 75%; border-radius: 50% 50% 0 0; }
.hill-back { left: 0; bottom: -24%; background: #8fa888; transform: rotate(-25deg); }
.hill-front { left: -25%; bottom: -37%; background: #3a6651; transform: rotate(18deg); }
.landscape-label { position: absolute; bottom: 20px; right: 25px; color: #edf2e6; font-size: 9px; letter-spacing: .2em; }
.location-panel { padding: 28px 32px; margin-bottom: 36px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 24px #193b3604; }
.location-panel h2 { color: var(--ink); font-size: 24px; font-weight: 600; }
.location-panel .panel-kicker { font-size: 11px; margin-bottom: 6px; }
.location-panel button { padding: 10px 18px; color: var(--accent); border-color: var(--line); border-radius: 9px; font-size: 13px; font-weight: 600; }
#my-location, #region-search button[type="submit"] { background: var(--ink); border-color: var(--ink); color: #fff; }
#my-location:hover, #region-search button[type="submit"]:hover { background: #2b5d4d; }
#region-search { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; align-items: center; margin-top: 23px; padding-top: 22px; border-top: 1px solid var(--line); }
.location-panel form label { margin: 0; font-size: 12px; color: var(--muted); }
#region-search label[for="region-query"] { grid-column: 1 / -1; color: var(--ink); font-weight: 600; font-size: 14px; }
#region-search select { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9f6; color: var(--ink); font-size: 13px; }
#region-search > div { grid-column: 1 / -1; }
#region-search input { padding: 13px 15px; border-color: var(--line); background: #f7f9f6; font-size: 14px; }
#saved-places { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.saved-place { margin: 0; min-width: 0; }
.saved-place button[aria-pressed="true"] { background: #e7f1e8; color: var(--ink); border-color: #a9c4ad; }
.saved-heading { padding-top: 14px; border-top: 1px solid var(--line); }
#clear-places { min-height: 44px; padding: 6px 10px; background: transparent; border: 0; color: #647569; font-size: 12px; }
.location-details { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.location-details summary { padding: 8px 0; color: var(--muted); font-size: 12px; }
.location-details small { display: block; margin-top: 10px; }
/* Transit retains route colors because they communicate bus type. */
.buses { gap: 18px; border: 0; background: transparent; overflow: visible; }
.bus-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 3px 15px #193b3604; }
.station-summary { padding: 24px; background: #edf2eb; border-color: var(--line); }
.station-summary h3 { color: var(--ink); font-size: 19px; }
.bus-refresh { color: var(--accent); border-color: #adc6b4; border-radius: 9px; }
.bus-refresh-floating { background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 99px; }
#route-search { padding: 24px; margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
#route-search button { background: var(--ink); }
.route-toolbar { top: var(--page-nav-height, 70px); padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #f5f7f6fa; backdrop-filter: blur(16px); }
.route-directions button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #e7f0e9; }
#route-stops { max-width: 800px; margin: 22px auto; }
.route-stop { background: #fff; }
.route-legend { max-width: 85ch; color: var(--muted); font-size: 12px; }
@keyframes studio-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.welcome, .gwangju-app header { animation: studio-enter .65s cubic-bezier(.22,1,.36,1) both; }
@media (min-width: 1000px) { .weather-app .today > div:last-child { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: baseline; width: 100%; } .weather-app .today h2 { grid-column: 1; } .weather-app .today .condition { grid-column: 1; } .weather-app .today .daily-extremes { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; } .weather-app .today .extreme-notice { grid-column: 2; grid-row: 4 / span 2; } }
@media (max-width: 700px) {
 :root { scroll-padding-top: 80px; }
 .page, .page.route-page { padding: 0 18px 32px; }
 .brand-bar { min-height: 82px; }
 .brand { font-size: 18px; gap: 8px; }
 .brand svg { width: 32px; height: 32px; }
 .brand-caption { display: none; }
 .page-nav, .route-page .page-nav { gap: 2px; margin-bottom: 25px; padding: 8px 0; }
 .page-nav a, .route-page .page-nav a { flex: 1 1 0; min-width: 0; padding: 12px 3px; font-size: 11px; }
 .page-nav a:last-child[href^="https"] { margin-left: 0; font-size: 10px; }
 h1, .route-page h1 { font-size: 27px; }
 .page-title { gap: 13px; align-items: start; }
 .current-time { padding: 6px 10px; }
 .today { padding: 45px 24px 26px; gap: 18px; min-height: 250px; align-items: start; border-radius: 18px; }
 .today::after { top: 16px; right: 20px; font-size: 9px; }
 .weather-symbol { font-size: 52px; margin-top: 14px; }
 .today h2 { font-size: 65px; }
 .today p { font-size: 12px; }
 .today .condition { font-size: 18px; }
 .today > div:last-child { min-width: 0; flex: 1; }
 .today .daily-extremes { gap: 12px; }
 .today .extreme-source, .today p.extreme-notice, .today p.atmosphere-note { font-size: 11px; }
 .weather-insights { padding: 20px; }
 .weather-insights li { font-size: 12px; }
 .section-heading h2, .solar-panel > h2 { font-size: 21px; }
 .hourly { padding: 12px; }
 .air-stations { grid-template-columns: minmax(0,1fr); }
 .air-station { padding: 20px; }
 .daily article.daily-card { border-color: var(--line); }
 .welcome { position: relative; min-height: 290px; grid-template-columns: 1fr; }
 .welcome > div:first-child { padding: 30px 26px; }
 .welcome-title { font-size: 41px; }
 .welcome-kicker { font-size: 8px; letter-spacing: .12em; }
 .welcome-description { max-width: 220px; font-size: 12px; }
 .landscape { position: absolute; inset: 0 0 0 50%; opacity: .6; }
 .landscape-orbit { width: 100px; height: 100px; right: -30px; top: 50px; }
 .landscape-label { display: none; }
 .hill-back { left: 60%; bottom: -24%; }
 .hill-front { left: 35%; bottom: -37%; }
 .location-panel { padding: 24px 20px; margin-bottom: 28px; }
 .location-panel h2 { font-size: 21px; }
 .location-actions { gap: 6px; }
 .location-panel button { padding: 10px 12px; font-size: 12px; }
 #region-search input { font-size: 13px; }
 #saved-places { grid-template-columns: 1fr; }
 .route-toolbar { padding: 14px; }
 #route-search { padding: 18px; }
 footer { display: block; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Review refinements: keep search labels on one line and balance station grids. */
#region-search button { flex: 0 0 auto; min-width: 66px; white-space: nowrap; }
#saved-places { color: var(--muted); font-size: 13px; }
#saved-places:not(:has(.saved-place)) { display: block; }
.air-stations { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.weather-app .page { display: flex; flex-direction: column; }
.weather-app .page > * { flex-shrink: 0; }
.weather-app .page:has(#weather-results:not([hidden])) .brand-bar { order: -10; }
.weather-app .page:has(#weather-results:not([hidden])) .page-nav { order: -9; }
.weather-app .page:has(#weather-results:not([hidden])) .welcome { display: none; }
.weather-app .page:has(#weather-results:not([hidden])) > header { order: -8; }
.weather-app .page:has(#weather-results:not([hidden])) > #weather-warnings { order: -7; }
.weather-app .page:has(#weather-results:not([hidden])) > #weather-loading { order: -6; }
.weather-app .page:has(#weather-results:not([hidden])) > #weather-results { order: -5; }
.weather-app .page:has(#weather-results:not([hidden])) > .location-panel { margin-top: 26px; margin-bottom: 0; }
@media (max-width: 700px) { .air-stations { grid-template-columns: minmax(0, 1fr); } }
.weather-warnings[data-state="none"] { padding: 16px 20px; border-color: var(--line); background: #edf3ed; color: var(--ink); }
.weather-warnings[data-state="none"] p { margin: 6px 0; font-size: 12px; }
.weather-warnings[data-state="none"] summary { color: var(--accent); font-size: 12px; }
.bus-view-modes button[aria-pressed="true"], .bus-filter-segments button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bus-filter-segments { border-color: var(--line); background: #edf3ed; }
.stop-manager { border-color: var(--line); background: #fff; }
.bus-data-help summary, .bus-visit-details summary { color: var(--accent); }
#route-results .route-result-card[aria-pressed="true"] { background: #edf3ed; border-color: var(--accent); }
.route-result-heading strong { color: var(--accent); }

.today p.condition-source { color: #d0dfd4; font-size: 11px; line-height: 1.6; max-width: 34em; }
@media (min-width: 1000px) { .weather-app .today .condition-source { grid-column: 1; } }
