:root {
  --red: #c62828; --red-d: #9f1d1d; --red-l: #fdecec;
  --ink: #1d232b; --muted: #5d6773; --line: #e3e7ec; --bg: #f6f8fa; --card: #fff;
  --green: #1b7a3d; --green-l: #e5f5ea; --amber: #8a5a00; --amber-l: #fff4dc;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--red-d); }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; margin: .4em 0 .3em; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.1rem; margin: 0 0 .25em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 46em; margin-top: 0; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.1rem; }
.brand b { color: var(--red); }
.top__nav { display: flex; gap: 18px; }
.top__nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top__nav a:hover { color: var(--red); }
.alert { background: var(--red-l); color: #6b1414; font-size: .9rem; padding: 8px 0; border-bottom: 1px solid #f6caca; }
.alert a { color: inherit; font-weight: 700; }
.crumbs { font-size: .88rem; color: var(--muted); margin-top: 18px; }
.crumbs a { color: var(--muted); }

.hero { padding: 28px 0 8px; }
.finder { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; max-width: 720px; }
.finder input { flex: 1 1 260px; font: inherit; padding: 13px 16px; border: 1px solid #cfd6de; border-radius: 10px; background: #fff; min-width: 0; }
.finder input:focus, .finder select:focus { outline: 3px solid rgba(198,40,40,.2); border-color: var(--red); }
.finder select { flex: 1 1 260px; font: inherit; padding: 13px 40px 13px 16px; border: 1px solid #cfd6de; border-radius: 10px; min-width: 0; color: var(--ink); cursor: pointer;
  -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6773' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
.hint { color: var(--muted); margin: 6px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .95rem; padding: 9px 14px; border-radius: 10px; border: 1px solid #cfd6de; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn--call { background: var(--red); border-color: var(--red); color: #fff; }
.btn--call:hover { background: var(--red-d); border-color: var(--red-d); }
.finder .btn { padding: 13px 18px; }
.btn--light { background: #fff; color: var(--red-d); border-color: #fff; }

.mini { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 8px 0 18px; }
.mini__c { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.mini__n { font-weight: 700; color: var(--ink); text-decoration: none; }
.mini__n:hover { color: var(--red); }
.mini__t { color: var(--muted); font-size: .9rem; }
.mini__c .btn { align-self: flex-start; }

.provs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.prov { display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--radius); border: 1px dashed #cfd6de; color: var(--muted); }
.prov span { font-size: .88rem; }
.prov--live { border: 1px solid var(--red); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.prov--live span { color: var(--red); font-weight: 600; }
.prov--live:hover { background: var(--red-l); }

.tipgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tipgrid > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tipgrid p { margin: 0; color: var(--muted); }
.cta { margin: 36px 0 10px; background: var(--red); color: #fff; border-radius: 16px; padding: 22px 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { margin: 0 0 4px; }
.cta p { margin: 0; opacity: .92; }

.towns { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.towns li { padding: 4px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.towns a { text-decoration: none; color: var(--ink); }
.towns a:hover { color: var(--red); text-decoration: underline; }
.towns .n { color: var(--muted); font-size: .88rem; }
.towns--big { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.towns--big li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 600; }

.filters { margin: 10px 0 14px; }
.filters label { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.clinic { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 16px; }
.clinic:target { outline: 3px solid var(--red); }
.clinic p { margin: 0; }
.addr { color: var(--muted); font-size: .93rem; }
.who { color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .75rem; font-weight: 600; background: #eef1f4; color: var(--muted); border-radius: 999px; padding: 2px 9px; align-self: flex-start; }
.chip--open { background: var(--amber-l); color: var(--amber); }
.opening { background: var(--amber-l); border: 1px solid #f2d899; border-radius: 10px; padding: 10px 12px; color: #4a3200; }
.opening__when { font-size: .8rem; color: var(--amber); }
.opening p { margin: 4px 0 0; white-space: pre-line; }
.status { font-weight: 600; font-size: .93rem; }
.status--open { color: var(--green); }
.status--open::before { content: "●"; margin-right: 6px; }
.status--closed { color: var(--red-d); }
.status--unknown { color: var(--muted); font-weight: 500; }
.week summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.hours { border-collapse: collapse; margin-top: 6px; font-size: .9rem; }
.hours th { text-align: left; font-weight: 500; color: var(--muted); padding: 2px 16px 2px 0; }
.hours td { padding: 2px 0; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--ink); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.more { margin: 26px 0; }
.prose { max-width: 46em; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px 20px; }
.prose li { margin: 4px 0; }

.foot { margin-top: 48px; background: #fff; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.foot__in { display: grid; gap: 24px; grid-template-columns: 2fr 1fr; padding-top: 22px; }
.foot b { color: var(--ink); }
.brand--foot { font-size: 1rem; }
.foot__legal { border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: 22px; font-size: .82rem; }

@media (max-width: 640px) {
  .foot__in { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .top__nav { gap: 14px; font-size: .95rem; }
  .finder .btn { flex: 1 1 100%; }
}
