:root {
  --ink: #0f1d2b; --ink2: #3c4b5a; --muted: #667585; --line: #e4e8ec; --bg: #f7f8f5; --card: #fff;
  --brand: #0b6e4f; --brand-2: #0f8a63; --brand-soft: #e5f3ec; --gold: #f2b705;
  --warn: #b4441f; --warn-soft: #fdeee7; --lead: #5b3fa8; --lead-soft: #efeaff;
  --r: 14px; --shadow: 0 1px 2px rgba(15, 29, 43, 0.06), 0 6px 24px rgba(15, 29, 43, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--brand); text-underline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; letter-spacing: -0.01em; line-height: 1.15; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 0.4rem 0 0.6rem; }
h1:focus { outline: none; }
h2 { font-size: 1.3rem; margin: 0 0 0.8rem; }
h3 { font-size: 1.05rem; margin: 0; }
p { margin: 0 0 0.8rem; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 1rem; z-index: 30; }
.muted { color: var(--muted); }
.lead { font-size: 1.05rem; color: var(--ink2); max-width: 46rem; }

/* Header and footer match the directory's base.html. */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.shield { width: 28px; height: 28px; flex: none; }
.shield path:first-child { fill: var(--brand); }
.shield .tick { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.top nav { display: flex; gap: 1.25rem; }
.top nav a { text-decoration: none; color: var(--ink2); font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.top nav a:hover { color: var(--brand); }
main.wrap { flex: 1; padding-top: 1.75rem; padding-bottom: 4rem; }
footer { background: #0b1b16; color: #b6c7c0; padding: 2rem 0 1.5rem; font-size: 0.88rem; }
footer .brand { color: #fff; margin-bottom: 0.8rem; }
footer p { max-width: 52rem; }
footer a { color: #e3f2ec; }

/* Controls */
.label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink2); }
.optional { font-weight: 400; color: var(--muted); }
.hint { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; }
label { display: grid; gap: 0.3rem; }
input:not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink); padding: 0.6rem 0.75rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
select { appearance: none; padding-right: 2.2rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23667585' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.85rem center; }
textarea { resize: vertical; min-height: 8rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
input[type=checkbox] { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--brand); flex: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.6rem; background: var(--brand); color: #fff; padding: 0.55rem 1.05rem; border: 0; border-radius: 10px; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.button:hover { background: var(--brand-2); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.button.ghost:hover { background: var(--brand-soft); }
.text-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(11, 110, 79, 0.35); outline-offset: 2px; }

/* Cards */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.25rem 1.35rem; }
.search { display: grid; gap: 0.9rem; margin: 1.25rem 0 1rem; }
.search .q input { font-size: 1.05rem; padding: 0.8rem 1rem 0.8rem 2.7rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23667585' stroke-width='2'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='m14 14 4 4'/%3E%3C/svg%3E") no-repeat 0.85rem center; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.toggles { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toggle { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 0.88rem; font-weight: 500; color: var(--ink2); cursor: pointer; }
.toggle:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.count { color: var(--muted); font-weight: 500; font-size: 0.92rem; min-height: 1.4rem; margin: 0 0 0.6rem; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.wide { grid-column: 1 / -1; }
.empty { text-align: center; padding: 2.5rem 1.5rem; color: var(--ink2); }
.empty h1, .empty h2 { margin-top: 0; color: var(--ink); }
.empty.narrow { max-width: 36rem; margin: 2rem auto; }
.alert { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--warn-soft); color: #6d2610; border-radius: 12px; padding: 0.9rem 1.1rem; }
.alert p { margin: 0; font-weight: 500; }
.more-wrap { text-align: center; margin: 1.5rem 0 0; }

.listing { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
.listing p { margin: 0; }
.listing-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.9rem; align-items: start; }
.listing h3 { font-family: Inter, sans-serif; font-size: 1.05rem; font-weight: 650; line-height: 1.3; letter-spacing: 0; }
.meta { font-size: 0.84rem; color: var(--muted); margin-top: 0.2rem !important; }
.score { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 0.4rem; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.licence { font-size: 0.88rem; color: var(--ink2); }
.licence .tick { color: var(--brand); font-weight: 700; }
.rating { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; }
.rating .muted, p.rating.muted { color: var(--muted); }
.star-bar { --r: 0; width: 76px; height: 14px; flex: none; background: linear-gradient(90deg, var(--gold) calc(var(--r) / 5 * 100%), #dfe3e7 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 14'%3E%3Cg%3E%3Cpath id='s' d='M7 0l2 4.6 5 .5-3.8 3.3 1.1 4.9L7 10.8 2.7 13.3l1.1-4.9L0 5.1l5-.5z'/%3E%3Cuse href='%23s' x='15.5'/%3E%3Cuse href='%23s' x='31'/%3E%3Cuse href='%23s' x='46.5'/%3E%3Cuse href='%23s' x='62'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 14'%3E%3Cg%3E%3Cpath id='s' d='M7 0l2 4.6 5 .5-3.8 3.3 1.1 4.9L7 10.8 2.7 13.3l1.1-4.9L0 5.1l5-.5z'/%3E%3Cuse href='%23s' x='15.5'/%3E%3Cuse href='%23s' x='31'/%3E%3Cuse href='%23s' x='46.5'/%3E%3Cuse href='%23s' x='62'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.checks { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0.1rem 0 0; }
.checks:empty { display: none; }
.checks li { font-size: 0.76rem; font-weight: 600; padding: 0.18rem 0.55rem; border-radius: 99px; background: #f0f2f4; color: var(--ink2); white-space: nowrap; }
.checks li.yes { background: var(--brand-soft); color: var(--brand); }
.checks li.yes::before { content: "✓ "; }
.checks li.no { background: var(--warn-soft); color: var(--warn); }
.checks li.lead { background: var(--lead-soft); color: var(--lead); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.85rem; border-top: 1px solid var(--line); }

/* Claim flow */
.steps { margin: 0 0 1.25rem; }
.step-count { display: none; font-size: 0.85rem; font-weight: 600; color: var(--ink2); margin: 0 0 0.5rem; }
.steps ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; padding: 0; margin: 0; font-size: 0.88rem; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 0.45rem; }
.steps li span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 0.78rem; color: var(--muted); }
.steps li.done span { background: var(--brand-soft); box-shadow: none; color: var(--brand); }
.steps [aria-current] { color: var(--ink); font-weight: 600; }
.steps [aria-current] span { background: var(--brand); box-shadow: none; color: #fff; }
.claim-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 2rem; align-items: start; }
.claim-head { grid-column: 1; }
.claim-body { grid-column: 1; }
.claim-aside { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 0.75rem; justify-items: start; position: sticky; top: 5rem; }
.claim-aside .listing { width: 100%; }
.notice { background: #fff7e0; border: 1px solid #f0d58a; color: #5c4400; border-radius: 12px; padding: 0.75rem 1rem; font-weight: 500; max-width: 46rem; }
.email { overflow-wrap: anywhere; }
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form.narrow { max-width: 26rem; }
.form h2 { margin: 0; }
.form > .button { justify-self: start; }
.form.narrow > .button { justify-self: stretch; }
.form .restart { justify-self: center; }
.code { font-size: 1.6rem !important; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 0.45rem; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem; }
.option { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; font-size: 0.92rem; cursor: pointer; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.counter { text-align: right; }
.field { display: grid; gap: 0.35rem; }
.upload { position: relative; display: flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: 0.7rem 1rem; border: 1.5px dashed #c5ced6; border-radius: 12px; background: #fafbfa; color: var(--brand); font-weight: 600; font-size: 0.92rem; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.upload:hover { border-color: var(--brand); background: var(--brand-soft); }
.upload:focus-within { outline: 3px solid rgba(11, 110, 79, 0.35); outline-offset: 2px; }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
.thumbs:empty { display: none; }
.thumbs figure { position: relative; margin: 0; }
.thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.thumbs button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15, 29, 43, 0.8); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.error { color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 0.6rem 0.8rem; font-weight: 500; margin: 0; }
.error:empty { display: none; }
.done-title { max-width: 40rem; }
.offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: 2rem; padding: 1.75rem; border-radius: var(--r); box-shadow: var(--shadow); color: #fff;
  background: radial-gradient(900px 300px at 85% -10%, #1b8f69 0, transparent 60%), linear-gradient(160deg, #0a4a36, #0b6e4f 70%); }
.offer > div { flex: 1 1 26rem; max-width: 40rem; }
.offer h2 { color: #fff; font-size: 1.6rem; }
.offer p { color: #d6ece3; }
.offer p:last-child { margin: 0; }
.offer .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 600; color: #a9e3c9; margin-bottom: 0.4rem; }
.offer code { background: rgba(255, 255, 255, 0.16); padding: 0.15rem 0.5rem; border-radius: 6px; font-weight: 700; letter-spacing: 0.05em; color: #fff; font-family: inherit; }
.offer .text-link { color: #fff; }
.offer .button { background: #fff; color: var(--brand); padding: 0.8rem 1.4rem; font-size: 1.02rem; }
.offer .button:hover { background: var(--brand-soft); }

@media (max-width: 960px) {
  .claim-grid { grid-template-columns: 1fr; }
  .claim-aside { grid-column: 1; grid-row: auto; position: static; margin-bottom: 1.25rem; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 1rem; }
  .top nav { gap: 1rem; }
  .top nav a { font-size: 0.9rem; }
  .card { padding: 1.1rem; }
  .results { grid-template-columns: 1fr; }
  .step-count { display: block; }
  .steps ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3rem; font-size: 0; }
  .steps li span { width: 100%; height: 5px; border-radius: 99px; font-size: 0; box-shadow: none; background: var(--line); }
  .steps li.done span, .steps [aria-current] span { background: var(--brand); }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form > .button { justify-self: stretch; }
  .offer { padding: 1.35rem; }
  .offer .button { width: 100%; }
}
