/* Cotswolds directories: a plain public register.
   One typeface (Public Sans), thin rules, little decoration.
   The one signature element is the check stamp: a register check with its date.
   The build replaces #111418 per site. */

@font-face { font-family: 'Public Sans'; src: url('/fonts/public-sans.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --wash: #f5f6f7;
  --ink: #111418;
  --text: #30353c;
  --muted: #646b74;
  --rule: #e1e4e8;
  --rule-strong: #b9bfc7;
  --accent: #111418;
  --check: #136c3b;
  --check-wash: #edf6f0;
  --tint: color-mix(in srgb, var(--accent) 5%, #fff);
  --tint-strong: color-mix(in srgb, var(--accent) 10%, #fff);
  --ledger: color-mix(in srgb, var(--accent) 9%, #fff);
  --shadow: 0 1px 2px rgb(17 20 24 / 0.05), 0 8px 24px -12px rgb(17 20 24 / 0.18);
  --font: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 var(--font); font-variant-numeric: tabular-nums; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } body { font-size: 16px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.muted { color: var(--muted); }
svg.i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }

/* Header */
.top { border-top: 3px solid var(--accent); border-bottom: 1px solid var(--rule); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 32px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; line-height: 1; }
.brand .word { font-weight: 450; }
.brand .word b { font-weight: 800; }
.mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.mark.sm { width: 20px; height: 20px; }
.nav { display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--text); text-decoration: none; padding: 6px 0; position: relative; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current] { color: var(--ink); font-weight: 650; }
.nav a[aria-current]:not(.add)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav .add { border: 1px solid var(--ink); border-radius: 6px; padding: 7px 13px; color: var(--ink); font-weight: 600; }
.nav .add:hover { background: var(--ink); color: #fff; }

/* Page header */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: '›'; margin-right: 4px; color: var(--rule-strong); }
.crumbs a { color: var(--muted); }
.pagehead, .homehead { position: relative; background: linear-gradient(var(--tint), var(--paper)); border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.pagehead::before, .homehead::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 31px, var(--ledger) 31px 32px); -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 70%); mask-image: linear-gradient(100deg, #000 0%, transparent 70%); }
.pagehead > .wrap, .homehead > .wrap { position: relative; }
.pagehead > .wrap { padding-top: 28px; padding-bottom: 32px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; margin: 0 0 14px; max-width: 20ch; text-wrap: balance; }
h2 { font-size: 24px; line-height: 1.25; font-weight: 700; margin: 40px 0 10px; scroll-margin-top: 16px; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 650; margin: 0; }
.dek { font-size: 19px; line-height: 1.5; color: var(--text); max-width: 60ch; margin: 0; }
.byline { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.byline a { color: var(--muted); }

/* Short answer: the direct answer to the page's question, under the H1 */
.answer { max-width: 70ch; margin: 20px 0 0; padding: 16px 22px 18px; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; box-shadow: var(--shadow); }
.answer .label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 4px; }
.answer p:last-child { font-size: 19px; line-height: 1.5; color: var(--ink); margin: 0; }
@media (max-width: 600px) { .answer p:last-child { font-size: 17px; } }
@media (max-width: 600px) { .dek { font-size: 17px; } h2 { font-size: 21px; } }

/* The check stamp: the one signature element */
.stamp { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1; color: var(--check); background: var(--check-wash); border: 1.5px solid var(--check); box-shadow: inset 0 0 0 2px var(--check-wash), inset 0 0 0 3px color-mix(in srgb, var(--check) 30%, transparent); border-radius: 4px; padding: 4px 8px 4px 4px; text-decoration: none; white-space: nowrap; transition: transform .15s ease; }
.stamp .tick { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--check); color: #fff; }
.stamp .tick svg { width: 11px; height: 11px; stroke-width: 3; }
.stamp .reg { font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.stamp time { font-weight: 500; color: color-mix(in srgb, var(--check) 80%, var(--ink)); }
a.stamp:hover { transform: rotate(-2deg); }
@media (prefers-reduced-motion: reduce) { a.stamp:hover { transform: none; } }
.stamps { display: flex; flex-wrap: wrap; gap: 6px; }

/* Register: the table of firms */
.register { padding-top: 24px; padding-bottom: 40px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; margin-bottom: 12px; }
.toolbar .field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.toolbar input, .toolbar select { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 6px; padding: 8px 10px; min-height: 40px; }
.toolbar input { width: 260px; }
.toolbar .count { margin-left: auto; font-size: 14px; color: var(--muted); }
.toolbar .count b { color: var(--ink); }
.toolbar button.reset { font: inherit; font-size: 14px; background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; }
.nojs .toolbar .field, .nojs .toolbar .reset { display: none; }
@media (max-width: 640px) { .toolbar .field, .toolbar input, .toolbar select { width: 100%; } .toolbar .count { margin-left: 0; } }
.sortnote { font-size: 13px; color: var(--muted); margin: 0 0 8px; }

table.firms { width: 100%; border-collapse: collapse; font-size: 15px; }
table.firms th { position: sticky; top: 0; z-index: 1; background: var(--paper); text-align: left; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
table.firms td { padding: 16px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.firms tbody tr { transition: background-color .12s ease; }
table.firms tbody tr:hover { background: var(--tint); }
table.firms tr[hidden] { display: none; }
table.firms .name { min-width: 190px; }
table.firms .name a { font-weight: 650; color: var(--ink); font-size: 16px; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
table.firms .name strong { font-weight: 650; color: var(--ink); font-size: 16px; }
table.firms .name a:hover { color: var(--accent); text-decoration: underline; }
table.firms .name .co { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
table.firms .svc { color: var(--text); max-width: 26ch; }
table.firms .dist { white-space: nowrap; color: var(--muted); }
table.firms .tel a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ink); font-weight: 600; text-decoration: none; }
table.firms .tel svg { width: 14px; height: 14px; color: var(--muted); }
table.firms .tel a:hover { color: var(--accent); text-decoration: underline; }
table.firms .tel .web { display: flex; width: max-content; font-weight: 500; font-size: 14px; color: var(--accent); margin-top: 4px; }
table.firms .tel .web svg { color: currentColor; }
table.firms .none-check { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  table.firms thead { display: none; }
  table.firms, table.firms tbody, table.firms tr, table.firms td { display: block; }
  table.firms tr { border-bottom: 1px solid var(--rule); padding: 14px 0; }
  table.firms tr[hidden] { display: none; }
  table.firms td { border: 0; padding: 3px 0; }
  table.firms tbody tr:hover { background: none; }
  table.firms td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-size: 13px; }
  table.firms .svc { max-width: none; }
}
.none { color: var(--muted); padding: 20px 0; }
.more-row { margin: 16px 0 0; }
.more-row button[hidden] { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 650 15px/1.2 var(--font); border-radius: 6px; padding: 10px 16px; text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn svg { width: 17px; height: 17px; }
.btn.line { background: var(--paper); color: var(--ink); border-color: var(--rule-strong); }
.btn.line:hover { border-color: var(--ink); filter: none; }

/* Two-column body: article and side notes */
.body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px 64px; padding-top: 8px; padding-bottom: 56px; }
@media (max-width: 960px) { .body { grid-template-columns: 1fr; } }
.article { max-width: 70ch; }
.article.wide { max-width: none; }
.article > h2:first-child { margin-top: 24px; }
.article > h2:not(:first-child) { padding-top: 28px; border-top: 1px solid var(--rule); }
.article p { margin: 0 0 14px; }
.article ul:not([class]) { margin: 0 0 14px; padding-left: 22px; }
.article li { margin: 4px 0; }
.side h2 { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 32px 0 8px; }
.side h2:first-child { margin-top: 40px; }
.side ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.side li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.side li span { display: block; font-size: 13px; color: var(--muted); }
.side li.has-ico { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.side a { color: var(--ink); text-decoration: none; }
.side a:hover { color: var(--accent); text-decoration: underline; }
.side li.has-ico > svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; grid-row: span 2; }

/* On this page */
.toc ol { list-style: none; margin: 0; padding: 0; font-size: 15px; border-left: 1px solid var(--rule); }
.toc li { padding: 0; border: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
@media (min-width: 961px) { .toc { position: sticky; top: 0; padding-top: 1px; background: var(--paper); } }
@media (max-width: 960px) { .toc { display: none; } }

/* Index pages: one ruled row per page */
.index { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.index li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 2fr) minmax(0, 3fr); gap: 6px 24px; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--rule); transition: background-color .12s ease; }
.index li:hover { background: var(--tint); }
.index li:not(:has(.ico)) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.index .ico, .tiles .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--tint-strong); color: var(--accent); }
.index .ico svg, .tiles .ico svg { width: 26px; height: 26px; stroke-width: 1.6; }
.index h2 a::after { content: ''; position: absolute; inset: 0; }
.index h2 { font-size: 18px; line-height: 1.3; font-weight: 650; margin: 0; letter-spacing: -0.01em; }
.index h2 a { color: var(--ink); text-decoration: none; }
.index h2 a:hover { color: var(--accent); text-decoration: underline; }
.index .meta { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.index .meta span { white-space: nowrap; }
.index li > p { margin: 0; font-size: 15px; color: var(--text); }
@media (max-width: 700px) { .index li { grid-template-columns: 44px minmax(0, 1fr); } .index li > p { grid-column: 2; } }

/* Tiles: services */
.tiles { list-style: none; margin: 16px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tiles a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--text); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.tiles a:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); box-shadow: var(--shadow); transform: translateY(-2px); }
.tiles h2, .tiles h3 { font-size: 17px; line-height: 1.3; font-weight: 700; margin: 6px 0 0; letter-spacing: -0.01em; color: var(--ink); }
.tiles a:hover h2, .tiles a:hover h3 { color: var(--accent); }
.tiles p { margin: 0; font-size: 14px; line-height: 1.5; }
.tiles .meta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.tiles .meta span:first-child { color: var(--ink); font-weight: 650; }
@media (prefers-reduced-motion: reduce) { .tiles a, .tiles a:hover { transition: none; transform: none; } }
.listing { padding-top: 24px; padding-bottom: 56px; }

/* Link lists (towns, services, guides) */
.links { list-style: none; margin: 8px 0 0; padding: 0; columns: 3 220px; column-gap: 32px; }
.links li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.links a { font-weight: 600; text-decoration: none; color: var(--ink); }
.links a:hover { color: var(--accent); text-decoration: underline; }
.links span { color: var(--muted); font-size: 14px; margin-left: 6px; }
.links.desc li span { display: block; margin: 2px 0 0; }

/* Home */
.homehead > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px 64px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 960px) { .homehead > .wrap { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; } }
.homehead h1 { font-size: clamp(36px, 5.6vw, 64px); max-width: 14ch; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.townhead h1 { font-size: clamp(34px, 4.8vw, 54px); max-width: 16ch; }
.townhead .crumbs { margin-bottom: 18px; }
.eyebrow { display: flex; align-items: center; gap: 6px; }
.eyebrow svg { width: 15px; height: 15px; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0 0; font-size: 13px; }
.also > span:first-child { color: var(--muted); font-weight: 600; margin-right: 4px; }
.chip { display: inline-block; padding: 3px 9px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper); color: var(--text); }
.article > .answer:first-child { margin: 24px 0 8px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }

/* The register slip: the register at a glance, with the round stamp */
.slip { position: relative; background: var(--paper); border: 1px solid var(--rule-strong); border-top: 4px solid var(--accent); border-radius: 4px 4px 10px 10px; padding: 20px 22px 18px; box-shadow: var(--shadow); }
.slip-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.slip dl { margin: 0; }
.slip dl div { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--rule-strong); font-size: 15px; }
.slip dt { color: var(--text); white-space: nowrap; }
.slip dl div::after { content: ''; order: 1; flex: 1; }
.slip dd { order: 2; margin: 0; font-weight: 750; color: var(--ink); font-size: 17px; text-align: right; }
.slip-f { margin: 12px 0 0; min-height: 84px; font-size: 13px; color: var(--muted); max-width: 22ch; }
.bigstamp { position: absolute; right: -36px; bottom: -48px; width: 156px; height: 156px; color: var(--check); opacity: 0.9; transform: rotate(-12deg); mix-blend-mode: multiply; pointer-events: none; animation: stamp-in .5s cubic-bezier(.2,.9,.3,1.3) .25s both; }
@keyframes stamp-in { from { opacity: 0; transform: rotate(-24deg) scale(1.5); } to { opacity: 0.9; transform: rotate(-12deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .bigstamp { animation: none; } }
@media (max-width: 600px) { .bigstamp { width: 104px; height: 104px; right: -6px; bottom: -28px; } }
.facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.facts b { color: var(--ink); }

/* Tables in guides */
.table { margin: 18px 0 6px; overflow-x: auto; }
.article table { border-collapse: collapse; width: 100%; font-size: 15px; }
.article caption { text-align: left; font-weight: 650; color: var(--ink); padding: 0 0 6px; }
.article th, .article td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.article thead th { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 2px solid var(--ink); }
.tnote { font-size: 13px; color: var(--muted); margin: 6px 0 18px; }

/* FAQs */
.faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.faq details p { margin: 8px 0 4px; }

/* Profile */
dl.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 8px 0 0; border-top: 2px solid var(--ink); }
dl.kv dt, dl.kv dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule); }
dl.kv dt { color: var(--muted); font-size: 14px; padding-top: 12px; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { border-bottom: 0; padding-bottom: 0; } }
.contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.claim { background: var(--wash); border-radius: 6px; padding: 18px 20px; margin-top: 32px; font-size: 15px; }
.claim h2 { font-size: 17px; margin: 0 0 6px; letter-spacing: 0; }
.claim p { margin: 0 0 10px; }

/* Sources */
.sources { font-size: 14px; color: var(--muted); }
.sources ol { padding-left: 20px; margin: 0; }
.sources li { margin: 3px 0; overflow-wrap: anywhere; }

/* Forms */
form.stack { display: grid; gap: 4px; max-width: 560px; }
form.stack label { font-weight: 650; font-size: 15px; margin-top: 12px; color: var(--ink); }
form.stack input, form.stack textarea { font: inherit; color: inherit; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 6px; padding: 10px 12px; width: 100%; }
form.stack textarea { min-height: 130px; resize: vertical; }
form.stack .btn { margin-top: 18px; justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* Changes log */
.log { list-style: none; padding: 0; margin: 8px 0 0; font-size: 15px; }
.log li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.log time { color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--rule); background: var(--wash); padding: 44px 0 40px; font-size: 14px; margin-top: 40px; }
.foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
.foot h2 { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 5px 0; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--accent); text-decoration: underline; }
.foot .about p { margin: 8px 0 0; max-width: 34ch; color: var(--muted); }
.foot .legal { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }

/* Print: guides and profiles print cleanly */
@media print {
  .top .nav, .foot, .toolbar, .more-row, .claim, .skip { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; }
  .article a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
  .body { display: block; }
  .side { display: none; }
}

/* Compact tiles: no description, so the icon sits beside the name */
.tiles a:not(:has(p)) { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; }
.tiles a:not(:has(p)) .ico { grid-row: span 2; }
.tiles a:not(:has(p)) h2, .tiles a:not(:has(p)) h3 { margin: 0; align-self: end; }
.tiles a:not(:has(p)) .meta { margin: 0; padding: 0; align-self: start; }
.faq + h2, .faq + h2[id] { border-top: 0 !important; padding-top: 8px !important; }

/* Business profile */
.profilehead h1 { font-size: clamp(32px, 4.4vw, 50px); max-width: 18ch; }
.profilehead .crumbs { margin-bottom: 18px; }
.profilehead .cta .btn.line { text-transform: lowercase; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.checks li { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.checks p { margin: 0; font-size: 15px; }
.checks .stamp { justify-self: start; }
.checks .open { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.checks .open svg { width: 14px; height: 14px; }
@media (max-width: 700px) { .checks li { grid-template-columns: 1fr; } }
.notice { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0 !important; padding: 12px 14px; background: var(--wash); border-radius: 8px; font-size: 14px; color: var(--text); }
.notice svg { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
a.chip { text-decoration: none; color: var(--ink); font-weight: 500; }
a.chip:hover { border-color: var(--ink); background: var(--tint); }
.article .also { margin: 10px 0 0; }
.claim { display: grid; gap: 4px; justify-items: start; border: 1px solid var(--rule); }
.claim .btn { margin-top: 6px; }

/* Article header: H1, short answer and, for price guides, key figures */
.articlehead h1 { font-size: clamp(32px, 4.4vw, 50px); max-width: 20ch; }
.articlehead .crumbs { margin-bottom: 18px; }
.articlehead.solo > .wrap { grid-template-columns: minmax(0, 1fr); }
.articlehead.solo .lead { max-width: 820px; }
.articlehead .answer { box-shadow: none; }
.figures dt { white-space: normal; font-size: 14px; line-height: 1.35; }
.figures dl div { align-items: flex-start; }
.figures dd { font-size: 15px; white-space: nowrap; }
.figures .slip-h svg { width: 18px; height: 18px; color: var(--accent); }
.figures .slip-f { min-height: 0; max-width: none; }
.figures .slip-f a { color: var(--ink); }

/* Price range bars: one series, one hue, on a shared £0-based scale */
.has-bars table { table-layout: auto; }
.rb-cell { width: 30%; min-width: 140px; vertical-align: middle !important; }
.rb-axis { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--muted); }
.rb { position: relative; display: block; height: 12px; background: linear-gradient(var(--rule), var(--rule)) 0 50% / 100% 1px no-repeat; }
.rb::before { content: ''; position: absolute; top: 2px; bottom: 2px; left: var(--a); width: max(8px, calc(var(--b) - var(--a))); border-radius: 4px; background: var(--accent); }
.rb.pt::before { top: 1px; bottom: 1px; width: 10px; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper); }
tr:hover .rb::before { filter: brightness(1.25); }
@media (max-width: 640px) { .rb-cell { display: none; } }

/* Questions: plus and minus markers */
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--rule-strong); border-radius: 50%; font-weight: 500; color: var(--muted); transition: transform .15s ease; }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover::after { border-color: var(--ink); color: var(--ink); }

/* Lists in articles: small square markers */
.article ul:not([class]) { list-style: none; padding-left: 0; }
.article ul:not([class]) li { position: relative; padding-left: 20px; }
.article ul:not([class]) li::before { content: ''; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; background: var(--accent); border-radius: 1px; }

/* Trust pages: side menu, fact cards, steps, sample stamp, changes timeline */
.subnav h2 { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 40px 0 8px; }
.subnav li { padding: 0; border: 0; }
.subnav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); font-size: 15px; }
.subnav a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; }
.subnav a:hover { color: var(--ink); border-left-color: var(--rule-strong); }
.subnav a[aria-current] { color: var(--ink); font-weight: 650; border-left-color: var(--accent); }
.facts-card .slip-h svg { width: 18px; height: 18px; color: var(--accent); }
.facts-card .slip-f { min-height: 0; max-width: none; }
.facts-card dt { white-space: normal; }
.steps { list-style: none; counter-reset: step; margin: 12px 0 8px; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 18px 46px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 14.5px; top: 34px; bottom: 2px; width: 1px; background: var(--rule-strong); }
.steps.compact { margin: 4px 0 0; font-size: 15px; }
.steps.compact li { padding-bottom: 14px; }
.sample { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 20px; border: 1px dashed var(--rule-strong); border-radius: 10px; background: var(--paper); }
.sample p { margin: 0 !important; flex: 1 1 260px; font-size: 15px; }
.log { list-style: none; padding: 0; margin: 12px 0 0; font-size: 15px; }
.log li { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 0 0 18px 22px; border: 0; }
.log li::before { content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.log li:not(:last-child)::after { content: ''; position: absolute; left: 5.5px; top: 20px; bottom: 0; width: 1px; background: var(--rule-strong); }
.log time { color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .log li { grid-template-columns: 1fr; gap: 2px; } }

/* Forms */
.formcard { max-width: 620px !important; padding: 24px; margin-top: 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
form.stack label:first-of-type { margin-top: 0; }
form.stack input, form.stack textarea { min-height: 44px; transition: border-color .12s ease, box-shadow .12s ease; }
form.stack input:hover, form.stack textarea:hover { border-color: var(--muted); }
form.stack input:focus, form.stack textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
form.stack label:has(+ input:required)::after, form.stack label:has(+ textarea:required)::after { content: ' *'; color: var(--muted); font-weight: 400; }
.formnote { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* Status pages: thanks, error, 404 */
.statushead > .wrap { grid-template-columns: minmax(0, 1fr); }
.status { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px; }
.status svg { width: 28px; height: 28px; stroke-width: 2.2; }
.status.ok { background: var(--check-wash); color: var(--check); box-shadow: inset 0 0 0 2px var(--check); }
.status.warn { background: var(--tint-strong); color: var(--ink); box-shadow: inset 0 0 0 2px var(--rule-strong); }
.contact-tiles { margin-top: 24px; }
.contact-tiles .ico svg { width: 22px; height: 22px; }

/* Businesses A to Z */
.letters { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0; margin: 16px 0 0; background: var(--paper); border-bottom: 1px solid var(--rule); }
.letters a { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 6px; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; }
.letters a:hover { background: var(--tint-strong); }
.letter { font-size: 28px !important; margin: 28px 0 0 !important; padding: 0 !important; border: 0 !important; scroll-margin-top: 64px; }
.letter-group .index { margin-top: 8px; }
.article > p:first-child { margin-top: 28px; }
.index li:not(:has(> p)):not(:has(.ico)) { grid-template-columns: minmax(0, 1fr); padding: 14px 12px 14px 0; }
.body.solo { grid-template-columns: minmax(0, 1fr); }
.body.solo > .side:empty { display: none; }
