* { box-sizing: border-box; }
:root { color-scheme: light; font: 17px/1.55 system-ui, sans-serif; color: #173229; background: #f5f3eb; }
body { margin: 0; }
[hidden] { display: none !important; }
.bar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .8rem max(1rem, calc((100% - 68rem)/2)); background: #173c32; color: #fff; font-weight: 700; }
.bar small { font-size: inherit; font-weight: 400; }
.bar button { background: #f5f3eb; color: #173c32; }
.wrap { width: min(68rem, calc(100% - 2rem)); margin: 2rem auto 4rem; }
.narrow { max-width: 32rem; }
.hero { text-align: center; display: grid; justify-items: center; align-content: center; min-height: 72vh; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
.hero p { margin: .6rem 0 1.3rem; }
.hero .eyebrow { font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
h1, h2 { line-height: 1.12; margin: 0 0 .7em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.035em; }
h2 { font-size: 1.35rem; }
.actions { display: flex; gap: .75rem 1.25rem; flex-wrap: wrap; align-items: center; }
button { font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: .55rem; padding: .65rem 1rem; background: #175844; color: white; min-height: 44px; }
.hero button { min-width: 8rem; padding: .9rem 1.3rem; }
.secondary { background: #dae8df; color: #173c32; }
button:hover { filter: brightness(1.15); }
:focus-visible { outline: 3px solid #bb6417; outline-offset: 4px; }
a { color: #14533f; font-weight: 650; }
.qr { margin: 2.5rem 0 0; }
.qr img { display: block; margin: 0 auto .4rem; background: white; }
.intro button { margin-bottom: 1.5rem; }
.cards, .admin-grid { display: grid; gap: 1rem; align-items: start; }
.cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); }
.admin-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); margin-top: 1.2rem; }
.panel { background: #fff; border: 1px solid #d7ded6; border-radius: .8rem; padding: clamp(1rem, 3vw, 1.8rem); min-width: 0; }
.panel p { margin: 0; }
.cards p { white-space: pre-wrap; overflow-wrap: anywhere; }
.live-data { margin-top: 1rem; }
.live-data:empty { display: none; }
.feed-settings-heading { margin-top: 1.5rem; }
.data-source { display: block; margin-top: .8rem; color: #405c50; }
.departures { padding: 0; margin: 0; list-style: none; }
.departures li { display: grid; grid-template-columns: 6rem 4rem 1fr; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid #d7ded6; }
.departure-status, .predicted-time { display: block; font-size: .82rem; color: #405c50; }
.predicted-time { font-weight: 700; }
.cancelled .departure-status { color: #8f2625; font-weight: 700; }
form label { display: block; margin-bottom: .85rem; font-weight: 600; }
input:not([type="checkbox"]), textarea { display: block; width: 100%; margin-top: .3rem; padding: .55rem; font: inherit; border: 1px solid #789087; border-radius: .35rem; }
textarea { resize: vertical; }
.editor small { display: block; margin: -.3rem 0 .85rem; }
fieldset { border: 1px solid #789087; border-radius: .35rem; margin: 0 0 .9rem; }
fieldset label { display: inline-block; margin: 0 1rem .2rem 0; }
.post-list { padding-left: 1.1rem; margin-bottom: 2rem; }
.post-list li { margin-bottom: .55rem; }
.post-list small { display: block; }
.success, .error { padding: .65rem 1rem; border-radius: .35rem; }
.success { background: #dae8df; }
.error { background: #ffe8df; }
@media (max-width: 690px) { .admin-grid { grid-template-columns: 1fr; } .bar small { display: none; } }
