:root {
  --bg: #fff; --card: #fff; --soft: #f3f6fa; --ink: #0b1220; --muted: #566074; --line: #d9dee7; --field: #8b97aa;
  --brand: #0057b8; --brand-deep: #002f6c; --brand-ink: #fff; --banner: #0057b8; --banner-ink: #fff; --open: #0b7a4b; --open-bg: #e2f4ea;
  --closed: #b3261e; --closed-bg: #fbe9e7; --warn: #8a5a00; --warn-bg: #fdf1d6; --hl: #e8f1fc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131b; --card: #131a24; --soft: #18202c; --ink: #e6ebf2; --muted: #9aa6b8; --line: #2a3444; --field: #55627a;
    --brand: #78b0ff; --brand-deep: #78b0ff; --brand-ink: #06182e; --banner: #17407a; --banner-ink: #fff; --open: #4fd392; --open-bg: #12382a;
    --closed: #ff8a80; --closed-bg: #44201d; --warn: #f2c66d; --warn-bg: #3d3115; --hl: #17304f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); text-underline-offset: 2px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 14px; padding-bottom: 48px; min-height: 70vh; }
h1 { font-size: clamp(1.55rem, 5vw, 2.1rem); line-height: 1.2; margin: 10px 0 6px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; margin: 30px 0 10px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
h3 { font-size: 1rem; margin: 22px 0 6px; }
h2 a, h3 a { color: inherit; text-decoration: none; }
h2 a:hover, h3 a:hover { text-decoration: underline; }
small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 14px; }
.note, .legend { color: var(--muted); font-size: .9rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0; }
.crumbs a { color: var(--muted); }

.top { background: var(--card); border-top: 4px solid var(--brand); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 56px; }
.logo { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.logo svg { width: 26px; height: 26px; flex: none; }
.logo svg rect { fill: var(--brand); }
.logo svg circle, .logo svg path { stroke: var(--brand-ink); }
.logo .tld { color: var(--brand); }
.top nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: var(--muted); text-decoration: none; padding: 6px 9px; border-radius: 4px; white-space: nowrap; font-size: .93rem; }
.top nav a:hover { color: var(--ink); background: var(--hl); }
.top nav a[aria-current] { color: var(--brand); background: var(--hl); }

.hero { padding: 12px 0 4px; }
.search { position: relative; margin-top: 12px; }
.search input { width: 100%; font: inherit; padding: 13px 15px; border: 2px solid var(--field); border-radius: 6px; background: var(--card); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--brand); }
#results { position: absolute; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.14); z-index: 4; max-height: 60vh; overflow: auto; }
#results a { display: block; padding: 9px 11px; border-radius: 4px; color: var(--ink); text-decoration: none; }
#results a:hover, #results a:focus { background: var(--hl); }
#results .none { padding: 9px 11px; color: var(--muted); }

.banner { display: block; margin: 18px 0; padding: 16px 18px; border-radius: 6px; border-left: 6px solid var(--brand-deep); background: var(--banner); color: var(--banner-ink); text-decoration: none; }
.banner strong { display: block; font-size: 1.2rem; line-height: 1.3; margin: 2px 0 4px; }
.banner-k { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.banner .cd { opacity: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.card { background: var(--soft); border: 1px solid var(--soft); border-radius: 6px; padding: 14px 16px; margin: 12px 0 0; }
.grid .card { margin: 0; }
.card h2 { margin: 0 0 8px; font-size: 1.08rem; border-bottom: 0; padding-bottom: 0; }
.card.link { text-decoration: none; color: var(--ink); display: block; }
.card.link:hover { border-color: var(--brand); }
.card.link p { margin: 0; color: var(--muted); font-size: .92rem; }
.more { display: inline-block; margin-top: 10px; font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); font-size: .92rem; background: var(--card); }
.chips a:hover { border-color: var(--brand); }
.chips i { font-style: normal; color: var(--muted); font-size: .8rem; }
.chips.big a { font-size: 1rem; padding: 7px 12px; }

.hol, .rows, .links { list-style: none; margin: 0; padding: 0; }
.hol li a { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hol li a span { color: var(--muted); font-size: .92rem; }
.hol li a:hover b { text-decoration: underline; }
.links li { padding: 5px 0; }
.cd:not(:empty)::before { content: "· "; }
.cd { color: var(--muted); white-space: nowrap; }
.banner .cd { color: inherit; }

.rows { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row a { text-decoration: none; color: var(--ink); grid-row: span 2; min-width: 0; }
.row a b { display: block; font-weight: 600; }
.row a span { display: block; color: var(--muted); font-size: .88rem; }
.row a:hover b { text-decoration: underline; }
.row-h { color: var(--muted); font-size: .85rem; text-align: right; grid-column: 2; }
.row .st { grid-column: 2; justify-self: end; }

.st:empty { display: none; }
.st { display: inline-block; font-size: .8rem; font-weight: 650; padding: 2px 9px; border-radius: 4px; white-space: nowrap; }
.st.open { color: var(--open); background: var(--open-bg); }
.st.closed { color: var(--closed); background: var(--closed-bg); }
.st.holiday { color: var(--warn); background: var(--warn-bg); }
.now { margin: 6px 0 0; min-height: 34px; }
.now .st { font-size: 1rem; padding: 6px 14px; }
.now a { color: inherit; }

table { border-collapse: collapse; width: 100%; }
.week { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.week th, .week td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.week tr:last-child th, .week tr:last-child td { border-bottom: 0; }
.week td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.week tr.today th, .week tr.today td { background: var(--hl); font-weight: 650; }
.week tr.today th { box-shadow: inset 4px 0 0 var(--brand); }
.week.hol-t th a { color: var(--ink); font-weight: 600; text-decoration: none; }
.week.hol-t th a:hover { text-decoration: underline; }
.raw { font-family: ui-monospace, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }

.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.scroll.tall { max-height: 460px; overflow-y: auto; }
.matrix th, .matrix td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; }
.matrix tr:last-child > * { border-bottom: 0; }
.matrix thead th { font-size: .88rem; white-space: nowrap; background: var(--card); position: sticky; top: 0; z-index: 1; }
.matrix thead a { color: var(--ink); text-decoration: none; }
.matrix tbody th { font-weight: 600; white-space: nowrap; position: sticky; left: 0; background: var(--card); }
.matrix tbody th a { color: var(--ink); }
.matrix td { white-space: nowrap; min-width: 96px; }
.matrix.small { font-size: .88rem; }
.matrix.small tbody th { font-weight: 400; white-space: normal; min-width: 150px; }
.matrix.one td { text-align: right; }
.ly { color: var(--muted); }
.na { color: var(--muted); font-style: italic; font-size: .88rem; }

.faq h3 { margin-bottom: 2px; }
.faq p { margin-top: 0; color: var(--muted); }
.foot { border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: .84rem; padding: 14px 0 22px; }
.foot a { color: var(--muted); }

@media (max-width: 520px) {
  .logo .tld { display: none; }
  .row { grid-template-columns: 1fr; }
  .row a { grid-row: auto; }
  .row-h, .row .st { grid-column: 1; text-align: left; justify-self: start; }
  .week th, .week td { padding: 9px 11px; }
}
.matrix td small { white-space: normal; min-width: 130px; }
