:root {
  --red: #c1133d; --red-dark: #8f0c2c; --orange: #ff914d; --orange-deep: #f28c14;
  --cream: #fbf6f0; --cream-dark: #f1e8db; --ink: #1a1212; --ink-soft: #4a3e3e;
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
h3 { font-size: .95rem; margin: 0 0 .4rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .wrap { padding: 0 2.5rem; } }

.top { position: sticky; top: 0; z-index: 10; background: rgba(251,246,240,.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(26,18,18,.1); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand img { height: 48px; width: auto; display: block; }
.top-right { display: flex; align-items: center; gap: .75rem; }
.top-right form { margin: 0; }
.pill-label { background: var(--ink); color: var(--cream); text-decoration: none; border-radius: 999px; padding: .55rem 1.1rem; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.link-btn { background: none; border: 0; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); cursor: pointer; text-decoration: none; padding: .5rem; }
.link-btn:hover, .link:hover { color: var(--red); }
.link { color: var(--ink-soft); font-weight: 600; font-size: .9rem; text-decoration: none; }

.foot { background: var(--ink); color: rgba(251,246,240,.7); font-size: .85rem; margin-top: 4rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.foot p { margin: 0; }
.foot a { color: var(--orange); text-decoration: none; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 0 0 .75rem; }
.lead { font-size: 1.05rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-size: .92rem; }
.muted a, .lead a { color: var(--red); }
.notice { background: #fde7ec; border: 1px solid #f3b8c5; color: var(--red-dark); padding: .8rem 1rem; border-radius: 14px; font-weight: 500; }
.notice.ok { background: #e9f6ec; border-color: #b9e0c3; color: #1d5c2e; }

.card { background: #fff; border-radius: 28px; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 1px 0 rgba(26,18,18,.04); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--ink); color: var(--cream); border: 0; border-radius: 999px; padding: .85rem 1.5rem; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--red); }
.btn.small { padding: .55rem 1.1rem; font-size: 12px; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }

.field { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff; border: 1px solid rgba(26,18,18,.18); border-radius: 14px; padding: .75rem .9rem; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.stack { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }

.signin { display: flex; justify-content: center; padding-top: 4rem; }
.signin-card { max-width: 520px; width: 100%; }
.signin-card h1 { margin-bottom: 1rem; }

.hero { background: var(--cream-dark); padding: 3rem 0 2.25rem; }
.hero h1 { margin-bottom: 1.75rem; }
.search { display: grid; grid-template-columns: 1fr; gap: .9rem; align-items: end; background: #fff; border-radius: 24px; padding: 1.25rem; }
@media (min-width: 900px) { .search { grid-template-columns: 1.4fr 1fr 1.3fr auto; } }
.search select { max-width: 100%; }
.mine { margin: 1rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.mine a { color: var(--red); font-weight: 600; }

.results { padding-top: 2rem; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.results-head p { margin: 0; }
.results-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.row { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border-radius: 20px; padding: 1.1rem 1.25rem; text-decoration: none; border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.row:hover { border-color: var(--orange); }
.row h2 { font-size: 1.05rem; margin: .1rem 0 .3rem; }
.thumb { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb span { font-family: var(--display); font-size: 1.4rem; color: var(--red); }
.meta { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; }
.tag { background: var(--cream); border: 1px solid var(--cream-dark); border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; }
.tag.more { background: transparent; color: var(--ink-soft); }
.empty { background: #fff; border-radius: 20px; padding: 2rem; text-align: center; color: var(--ink-soft); }
.more-wrap { text-align: center; margin-top: 1.5rem; }

.agency { padding-top: 1.5rem; }
.crumbs { margin: 0 0 1.25rem; }
.agency-grid { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .agency-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.agency-title { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1rem; }
.agency-title h1 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
.logo { max-width: 220px; max-height: 220px; object-fit: contain; align-self: flex-start; }
.mission { white-space: pre-line; color: var(--ink-soft); font-size: 1.02rem; }
.services { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.service-group ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.agency-box { background: var(--orange-deep); color: #fff; border-radius: 28px; padding: 2rem; }
@media (min-width: 960px) { .agency-box { position: sticky; top: 96px; } }
.agency-box h2 { margin: 0 0 1.25rem; font-family: var(--sans); font-weight: 700; text-transform: none; font-size: 1.75rem; }
.agency-box dl { margin: 0; }
.agency-box dt { font-weight: 700; margin-top: 1rem; }
.agency-box dt:first-child { margin-top: 0; }
.agency-box dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.agency-box a { color: #fff; }

.edit h2:first-child { margin-top: 0; }
.agency > h1 { margin-bottom: 1.25rem; }
.grid2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }
.checks { display: grid; gap: .35rem 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.checks.counties { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; cursor: pointer; padding: .2rem 0; }
.check input { margin-top: .25rem; accent-color: var(--red); }
.checks-group { border: 0; border-top: 1px solid var(--cream-dark); padding: 1rem 0 .5rem; margin: 0; }
.checks-group legend { font-family: var(--display); text-transform: uppercase; font-size: .85rem; padding-right: .5rem; }
.actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; }

/* Category tiles and the services under the chosen one */
.tiles { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: .5rem; margin: 1.75rem 0 0; }
.tile { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .9rem .25rem .75rem; border-radius: 16px; background: #fff; border: 1.5px solid transparent; color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 700; transition: border-color .15s, background .15s, color .15s; }
.tile .ico { width: 30px; height: 30px; color: var(--red); transition: color .15s; }
.tile:hover { border-color: var(--orange); }
.tile.on { background: var(--ink); color: var(--cream); }
.tile.on .ico { color: var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; }
.chip { padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid rgba(26,18,18,.15); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 500; }
.chip:hover { border-color: var(--orange); }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 900px) {
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; margin-right: -1.25rem; padding-right: 1.25rem; }
  .tile { flex: 0 0 84px; scroll-snap-align: start; }
}

/* Holiday drive check */
.flush { margin-top: 0; }
.drive-hero { padding-bottom: 2.5rem; }
.drive-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.5rem; }
.drive-title h1 { margin: 0; }
.drive-intro { max-width: 860px; }
.drive-intro .lead { margin: 0 0 .9rem; }
.drive-points { margin: .5rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.drive-points li { background: #fff; border-radius: 16px; padding: .85rem 1.1rem; color: var(--ink-soft); border-left: 4px solid var(--orange); }
.drive-points strong { color: var(--ink); }
.drive { padding-top: 2rem; display: grid; gap: 1.5rem; }
.drive .notice { margin: 0; }
.drive-grid { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .drive-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.steps { margin: 0 0 1.25rem; padding-left: 1.25rem; color: var(--ink-soft); display: grid; gap: .45rem; }
.text-link { color: var(--red); font-weight: 600; }
.upload { display: grid; gap: 1rem; }
.upload .actions { margin-top: .25rem; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; border: 2px dashed rgba(26,18,18,.2); border-radius: 20px; padding: 2rem 1rem; text-align: center; cursor: pointer; color: var(--ink-soft); background: var(--cream); transition: border-color .15s, background .15s; }
.drop svg { width: 36px; height: 36px; color: var(--red); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:hover, .drop.over { border-color: var(--orange); background: #fff; }
.drop.chosen { border-style: solid; border-color: var(--orange); background: #fff; color: var(--ink); }
.drive-error { margin: 0; color: var(--red-dark); font-weight: 600; }
.btn:disabled { opacity: .6; cursor: wait; }
.drive-status { background: var(--ink); color: var(--cream); }
.drive-status h2 { color: var(--cream); font-size: 1.1rem; }
.drive-status dl { margin: 1.25rem 0 0; }
.drive-status dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(251,246,240,.6); margin-top: 1rem; }
.drive-status dd { margin: .2rem 0 0; }
.drive-status dd.big { font-family: var(--display); font-size: 2rem; color: var(--orange); line-height: 1.1; }
.drive-status .muted { color: rgba(251,246,240,.65); }
.checking { font-size: 1.25rem; }
.small-print { margin: 1.5rem 0 0; font-size: .82rem; color: rgba(251,246,240,.6); }
.dupes h2 { margin-top: .5rem; }
.dupe { display: grid; gap: 1rem 1.5rem; background: #fff; border-radius: 20px; padding: 1.25rem; border-left: 5px solid var(--red); }
@media (min-width: 960px) { .dupe { grid-template-columns: 1fr 1.3fr auto; align-items: start; } }
.dupe.settled { border-left-color: var(--cream-dark); opacity: .8; }
.dupe h3 { font-family: var(--sans); text-transform: none; font-weight: 700; font-size: 1.05rem; margin: 0 0 .25rem; }
.dupe h3 a { color: var(--red); text-decoration: none; }
.side-label { margin: 0 0 .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.dupe .tags { margin: .25rem 0 .4rem; }
.tag.match { background: #fff3e8; border-color: #ffd5b8; }
.tag.same { background: #e9f6ec; border-color: #b9e0c3; color: #1d5c2e; }
.tag.diff { background: var(--cream); }
.dupe-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.dupe-actions form { margin: 0; }
.link-btn.small { font-size: 12px; }
.close { background: var(--cream-dark); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
@media (max-width: 640px) { .top-right .link-btn { font-size: 11px; padding: .4rem; } }
.drive-how { margin-bottom: 1.5rem; }
.remove-list { padding-left: 0; color: var(--red); }

/* Search: the guide link, picked filters, keyword matches */
.hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.hero-top h1 { margin-bottom: 0; }
.guide-link { display: inline-flex; align-items: center; gap: .7rem; background: var(--ink); color: var(--cream); text-decoration: none; border-radius: 999px; padding: .55rem 1.1rem .55rem .55rem; font-size: .92rem; transition: background .15s; }
.guide-link:hover { background: var(--red); }
.guide-link strong { color: var(--orange); font-weight: 700; margin-right: .2rem; }
.guide-link:hover strong { color: #fff; }
.guide-q { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); }
.picked { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 1rem 0 0; }
.picked-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-right: .25rem; }
.chip.x { display: inline-flex; align-items: center; gap: .45rem; }
.chip.x span { font-size: 1.05rem; line-height: 1; opacity: .8; }
.chip.dark { background: var(--ink); border-color: var(--ink); }
.word-hits { margin: -.25rem 0 1rem; color: var(--ink-soft); font-size: .92rem; }
.empty a { color: var(--red); font-weight: 600; }

/* The guide */
.guide { padding: 2.5rem 0 1rem; }
.wrap.narrow { max-width: 820px; }
.guide-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.guide-top .link { margin-right: auto; }
.guide-steps { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.guide-steps li { width: 34px; height: 6px; border-radius: 3px; background: var(--cream-dark); }
.guide-steps li.done { background: var(--red); }
.guide-card { background: #fff; border-radius: 28px; padding: 2rem; }
.guide-card h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .6rem; }
.guide-card .lead { margin: 0 0 1.5rem; }
.guide-card .notice { margin: 0 0 1rem; }
.pick-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.pick-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.1rem .5rem 1rem; border-radius: 18px; background: var(--cream); border: 2px solid transparent; font-weight: 700; font-size: .92rem; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.pick-tile .ico { width: 34px; height: 34px; color: var(--red); }
.pick-tile:hover { border-color: var(--orange); }
.pick-tile input, .pick-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pick-tile:has(input:checked) { background: var(--ink); color: var(--cream); }
.pick-tile:has(input:checked) .ico { color: var(--orange); }
.pick-tile:has(input:focus-visible), .pick-chip:has(input:focus-visible), .pick-row:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.pick-group { border: 0; border-top: 1px solid var(--cream-dark); margin: 0; padding: 1.1rem 0 .4rem; }
.pick-group legend { display: flex; align-items: center; gap: .5rem; font-family: var(--display); text-transform: uppercase; font-size: .95rem; padding-right: .6rem; }
.pick-group legend .ico { width: 22px; height: 22px; color: var(--red); }
.pick-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.pick-chip { position: relative; cursor: pointer; }
.pick-chip span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: var(--cream); border: 1px solid rgba(26,18,18,.12); font-size: .92rem; font-weight: 500; transition: border-color .15s, background .15s; }
.pick-chip:hover span { border-color: var(--orange); }
.pick-chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.field.big select { font-size: 1.1rem; padding: .95rem 1rem; }
.pick-list { display: grid; gap: .5rem; }
.pick-row { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--cream); border: 2px solid transparent; font-weight: 600; cursor: pointer; }
.pick-row input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.pick-row:hover { border-color: var(--orange); }
.pick-row:has(input:checked) { border-color: var(--ink); background: #fff; }
.guide-actions { display: flex; justify-content: flex-end; margin-top: 1.75rem; }
@media (max-width: 640px) { .guide-card { padding: 1.4rem; border-radius: 22px; } .guide-actions .btn { width: 100%; } }
.guide-row { margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.guide-note { color: var(--ink-soft); font-size: .92rem; max-width: 34rem; line-height: 1.4; }

/* First sign-in: pick your agency */
.choose-card { max-width: 620px; }
.choose-list { max-height: 360px; overflow-y: auto; border: 1px solid rgba(0,0,0,.12); border-radius: 10px; padding: .25rem; background: #fff; }
.choose-item { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .7rem; border-radius: 8px; cursor: pointer; }
.choose-item:hover { background: rgba(0,0,0,.04); }
.choose-item[hidden] { display: none; }
.choose-item input { margin-top: .25rem; }
#choose-empty { padding: .6rem .7rem; margin: 0; }
.linkish-portal { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--red); cursor: pointer; text-decoration: underline; }

.dl { position: relative; }
.dl > summary { list-style: none; cursor: pointer; }
.dl > summary::-webkit-details-marker { display: none; }
.dl-panel { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 20; width: min(22rem, 90vw); background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.15); text-align: left; }
.dl-title { font-weight: 700; margin: 0 0 .25rem; }
.dl-note { font-size: 13px; opacity: .75; margin: 0 0 .75rem; }
.dl-counties { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .75rem; max-height: 16rem; overflow: auto; margin-bottom: .75rem; font-size: 14px; }
.dl-counties label { display: flex; gap: .4rem; align-items: center; cursor: pointer; }
.field small { font-size: .8rem; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .75; }
.field input[disabled] { opacity: .65; cursor: not-allowed; }
