:root {
  --ink: #151b17;
  --paper: #f5f5eb;
  --surface: #fffefa;
  --lime: #c9f557;
  --soft: #edf0e6;
  --line: #dce1d5;
  --muted: #525e54;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, "PingFang HK", "Microsoft JhengHei", sans-serif;
  line-height: 1.55;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 3rem), 76rem); margin-inline: auto; }
.masthead { color: var(--paper); background: var(--ink); border-bottom: .3rem solid var(--lime); }
.brand { display: flex; gap: .65rem; align-items: center; font-size: 1.35rem; font-weight: 800; padding-top: 1.35rem; }
.brand img { border-radius: .5rem; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 2.7rem 0 2.8rem; }
.intro p { margin: 0; color: #d8e0d1; }
.intro .chain { color: var(--lime); font-size: .9rem; font-weight: 750; letter-spacing: .09em; }
h1 { margin: .35rem 0 .55rem; font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 850; line-height: 1.2; }
.totals { margin: 0; display: flex; gap: 1.7rem; flex-shrink: 0; }
.totals div { min-width: 4.5rem; padding-left: .95rem; border-left: 1px solid #667460; display: flex; flex-direction: column; }
.totals dd { margin: 0; color: var(--lime); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 780; line-height: 1; letter-spacing: -.05em; }
.totals dt { margin-top: .4rem; font-size: .9rem; color: #d8e0d1; }
main { padding-top: 1.7rem; }
.filters { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(8rem, 11rem) minmax(10rem, 13rem) auto; gap: .9rem; align-items: end; }
.filters label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 700; }
input, select, button { font: inherit; color: inherit; min-height: 2.85rem; border-radius: .55rem; }
input, select { width: 100%; padding: .55rem .75rem; border: 1px solid #9ca89b; background: var(--surface); font-size: 1rem; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.05rem) center, calc(100% - .8rem) center; background-size: .27rem .27rem; background-repeat: no-repeat; }
input::placeholder { color: #566256; }
button { background: transparent; border: 1px solid #9ca89b; padding: .45rem .85rem; cursor: pointer; font-size: .9rem; font-weight: 650; }
button:hover { background: var(--soft); }
:focus-visible { outline: 3px solid #527a20; outline-offset: 3px; }
.table-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem .8rem; margin: 1.05rem 0 .55rem; color: var(--muted); font-size: .875rem; }
.table-note p { margin: 0; }
#result-count { color: var(--ink); font-weight: 700; }
.table-frame { overflow-x: auto; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
thead { background: var(--ink); color: var(--paper); }
thead th { font-size: .875rem; font-weight: 720; }
thead th:first-child { width: 40%; }
thead th:last-child { width: 16%; }
th, td { padding: .8rem .72rem; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 1rem; }
.district-title th { padding-block: .5rem; font-weight: 800; background: var(--soft); color: #283c2b; font-size: .9rem; }
.branch-row th, .branch-row td { border-top: 1px solid var(--line); }
.branch-row th { text-align: left; font-weight: 760; }
.branch-operator { display: block; color: #334f2a; font-size: .875rem; font-weight: 650; padding-top: .1rem; }
.branch-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.address { display: block; margin-top: .1rem; color: var(--muted); font-size: .875rem; font-weight: 400; }
.shared-address { display: inline-block; margin-left: .4rem; color: #334f2a; background: var(--soft); border-radius: .25rem; padding: .05rem .3rem; font-size: .75rem; white-space: nowrap; }
.metric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.missing { color: var(--muted); }
.details-button { min-height: 2.35rem; padding: .3rem .6rem; background: var(--soft); border-color: var(--line); }
.details-button:hover { background: var(--lime); }
.details-button[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.details-row > td { background: #f7f9f2; border-top: 1px solid var(--line); padding: 1rem; }
.equipment-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: .75rem 0; padding: 0; list-style: none; gap: .45rem; }
.equipment-list li { padding: .4rem .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: .4rem; font-size: .875rem; }
.equipment-list span { display: block; color: var(--muted); overflow-wrap: anywhere; }
.opening-hours { color: var(--muted); font-size: .875rem; margin: .45rem 0; }
.opening-hours summary { cursor: pointer; }
.opening-hours dl { display: grid; grid-template-columns: max-content 1fr; column-gap: 1rem; margin: .25rem 0; }
.opening-hours dd { margin: 0; }
.details-meta { color: var(--muted); margin: .25rem 0; font-size: .875rem; }
a { color: #2f5c22; text-underline-offset: .2em; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; color: var(--muted); padding: 1.4rem 0 2rem; font-size: .875rem; }
footer p { margin: 0; }
footer div { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 46rem) {
  .shell { width: min(calc(100% - 2rem), 76rem); }
  .intro { align-items: start; flex-direction: column; gap: 1.3rem; padding: 1.75rem 0 1.5rem; }
  .filters { grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; }
  .filters label:first-child { grid-column: 1 / -1; }
  .filters button { grid-column: 2; justify-self: end; }
  thead th:first-child { width: 43%; }
  thead th:nth-child(2) { width: 16%; }
  thead th:nth-child(3) { width: 22%; }
  thead th:last-child { width: 19%; }
  tr > :nth-child(4), tr > :nth-child(5) { display: none; }
  th, td { padding-inline: .35rem; }
  th:first-child, td:first-child { padding-left: .55rem; }
  .details-button { padding-inline: .4rem; }
}
