/* Held to Account: civic public-notice look. Tarmac ink, road-marking amber, plain accessible type. */
@font-face { font-family: "Archivo"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
:root {
  --paper: #f5f4f0;
  --card: #ffffff;
  --ink: #1c232d;
  --muted: #555e6b;
  --line: #d9d7cf;
  --accent: #e8a900;
  --link: #1d5aa0;
  --panel: #eceae3;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15191f;
    --card: #1d222a;
    --ink: #eceae4;
    --muted: #a7adb6;
    --line: #333a44;
    --accent: #f2b81a;
    --link: #8db8ee;
    --panel: #222831;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15191f;
  --card: #1d222a;
  --ink: #eceae4;
  --muted: #a7adb6;
  --line: #333a44;
  --accent: #f2b81a;
  --link: #8db8ee;
  --panel: #222831;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 42rem; }

/* Header */
.site-head { border-bottom: 4px solid var(--accent); background: var(--card); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { display: inline-block; width: 12px; height: 12px; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 48px 0 40px; }
.hero .wrap { display: grid; gap: 18px; }
.hero h1 .stripe { box-shadow: inset 0 -0.28em 0 var(--accent); }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

/* Sections */
section { padding: 36px 0; }
.section-title { display: grid; gap: 6px; margin-bottom: 20px; }
.section-title p { color: var(--muted); }

/* Problem grid */
.problems { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.problem { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--line); padding: 18px; display: grid; gap: 6px; align-content: start; }
.problem.live { border-left-color: var(--accent); }
.problem a { color: var(--ink); text-decoration: none; }
.problem a:hover h3 { text-decoration: underline; }
.problem p { color: var(--muted); font-size: 0.97rem; }
.tag { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.problem.live .tag { color: var(--ink); }

.group-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 26px 0 12px; }
.group-title:first-of-type { margin-top: 4px; }
.problem h3 { font-size: 1.1rem; }

/* Three steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; background: var(--panel); padding: 18px; display: grid; gap: 6px; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: #1c232d; }

/* Damage band */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.band p { max-width: 44rem; }

/* Principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.principles li { border-top: 2px solid var(--ink); padding-top: 10px; }
.principles strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }

/* Guide pages */
.crumbs { font-size: 0.95rem; color: var(--muted); padding-top: 20px; }
.guide-head { padding: 18px 0 28px; display: grid; gap: 14px; }
.guide-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.guide section { padding: 26px 0; border-top: 1px solid var(--line); }
.guide section > * + * { margin-top: 14px; }
.guide ul, .guide ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.duty { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.duty li { background: var(--card); border: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 2px; }
.duty strong { font-family: var(--font-display); }
.route { counter-reset: route; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.route li { counter-increment: route; position: relative; padding-left: 52px; min-height: 36px; padding-top: 5px; }
.route li::before { content: counter(route); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; background: var(--ink); color: var(--paper); }
.note { background: var(--panel); border-left: 6px solid var(--accent); padding: 14px 16px; }
.template { background: var(--card); border: 1px solid var(--line); padding: 18px; display: grid; gap: 12px; }
.template pre { margin: 0; white-space: pre-wrap; font-family: var(--font-body); font-size: 1rem; line-height: 1.55; }
.btn { font: inherit; font-weight: 700; padding: 10px 16px; border: 2px solid var(--ink); background: var(--accent); color: #1c232d; cursor: pointer; justify-self: start; }
.btn:hover { filter: brightness(1.05); }
.copied { color: var(--muted); font-size: 0.95rem; }
.cta { display: inline-block; font-weight: 700; padding: 12px 18px; background: var(--ink); color: var(--paper); text-decoration: none; }
.cta:hover { text-decoration: underline; }
.sources { font-size: 0.95rem; color: var(--muted); }
.sources ul { gap: 4px; }

.findcouncil { font-size: 0.97rem; background: var(--panel); border-left: 6px solid var(--accent); padding: 10px 14px; max-width: 42rem; }

/* Flow chart */
.flow, .guide .flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 34rem; }
.flow-step { position: relative; background: var(--card); border: 2px solid var(--ink); padding: 12px 14px 12px 60px; display: grid; gap: 2px; min-height: 56px; }
.flow-step strong { font-family: var(--font-display); font-size: 1.1rem; }
.flow-step span { color: var(--muted); font-size: 0.97rem; }
.flow-step .n { position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--accent); color: #1c232d; font-family: var(--font-display); font-weight: 800; }
.flow-start { background: var(--ink); color: var(--paper); padding-left: 14px; }
.flow-start span { color: var(--paper); opacity: 0.85; }
.flow-end { border-color: var(--accent); border-width: 3px; }
.flow-step + .flow-step, .flow-check + .flow-step, .flow-step + .flow-check { margin-top: 26px; }
.flow-step + .flow-step::before, .flow-check + .flow-step::before, .flow-step + .flow-check::before { content: ""; position: absolute; left: 28px; top: -26px; width: 2px; height: 26px; background: var(--ink); }
.flow-step + .flow-step::after, .flow-check + .flow-step::after, .flow-step + .flow-check::after { content: ""; position: absolute; left: 23px; top: -9px; border: 6px solid transparent; border-top: 8px solid var(--ink); }
.flow-check { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 0 0 12px; }
.flow-check .q { font-weight: 700; border: 2px dashed var(--ink); padding: 6px 10px; background: var(--paper); }
.flow-check .yes { font-size: 0.95rem; background: var(--panel); padding: 4px 10px; border-left: 4px solid #2f8f4e; }
.flow-check .no { font-size: 0.95rem; color: var(--muted); }

/* Route at a glance */
.glance { background: var(--card); border: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 10px; max-width: 42rem; }
.glance-title { font-family: var(--font-display); font-weight: 700; }
.glance-steps, .guide .glance-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 6px; counter-reset: g; }
.glance-steps li { counter-increment: g; font-size: 0.95rem; font-weight: 700; padding: 5px 10px; background: var(--panel); }
.glance-steps li::before { content: counter(g) " "; color: var(--muted); }
.glance-steps li + li { position: relative; margin-left: 14px; }
.glance-steps li + li::after { content: "→"; position: absolute; left: -16px; top: 4px; color: var(--muted); font-weight: 400; }
.glance-note { font-size: 0.95rem; color: var(--muted); }

/* Report it now */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rstep h2 { display: flex; align-items: center; gap: 10px; }
.sn { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: #1c232d; font-family: var(--font-display); font-weight: 800; flex: none; }
.filebtn { display: inline-block; }
.preview { display: block; max-width: 100%; max-height: 320px; border: 2px solid var(--ink); }
.pcrow { display: flex; gap: 8px; flex-wrap: wrap; }
.guide input[type="text"], .guide select { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); min-width: 0; flex: 1 1 200px; max-width: 100%; width: 100%; }
.pcrow input[type="text"] { width: auto; }
.btn-quiet { background: var(--card); color: var(--ink); }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
.status { color: var(--muted); font-size: 0.97rem; min-height: 1.4em; }
.or { color: var(--muted); font-size: 0.95rem; }
.small { font-size: 0.95rem; color: var(--muted); }
.who { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--accent); padding: 14px 16px; display: grid; gap: 8px; }
.records { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.records li { background: var(--card); border: 1px solid var(--line); padding: 10px 12px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-big { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; padding: 14px 22px; background: var(--accent); color: #1c232d; text-decoration: none; border: 2px solid var(--ink); }
.cta-big:hover { filter: brightness(1.05); }

/* Footer */
.site-foot { margin-top: 30px; border-top: 4px solid var(--accent); background: var(--card); }
.site-foot .wrap { padding-top: 22px; padding-bottom: 28px; display: grid; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.site-foot strong { color: var(--ink); font-family: var(--font-display); }

.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-nav a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Council tax: bands table, check and tribunal toolkit */
.bands { border-collapse: collapse; width: 100%; max-width: 26rem; background: var(--card); }
.bands th, .bands td { text-align: left; padding: 8px 12px; border: 1px solid var(--line); }
.bands th { font-family: var(--font-display); background: var(--panel); }
.bands td:first-child { font-weight: 700; width: 4.5rem; }
.guide input[type="number"], .guide input[type="date"], .guide textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); max-width: 100%; width: 100%; }
.field { display: grid; gap: 6px; }
.field > label, .field legend { font-weight: 700; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.opt { display: flex; align-items: center; gap: 8px; font-weight: 400; padding: 4px 0; }
.opt input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--ink); }
.rstep .field + .field, .rstep .field + fieldset, .rstep fieldset + .field, .rstep fieldset + fieldset { margin-top: 16px; }
.comp { border: 1px solid var(--line); border-left: 6px solid var(--accent); background: var(--card); padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; }
.comp + .comp { margin-top: 14px; }
.comp legend { font-family: var(--font-display); font-weight: 700; padding: 0 6px; }
.countrow { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.report { border-top: 4px solid var(--accent) !important; }
.report h3 { margin-top: 26px; }
.verdict { border: 3px solid var(--ink); padding: 16px 18px; background: var(--card); display: grid; gap: 8px; }
.verdict .vk { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.verdict ul { margin: 0; }
.v-strong { border-color: #2e7d32; }
.v-possible { border-color: var(--accent); }
.v-no { border-color: #b3261e; }
.ccard { background: var(--card); border: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 8px; margin-top: 10px; }
.ct { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.pill { font-size: 0.85rem; font-weight: 700; padding: 2px 8px; background: var(--panel); border: 1px solid var(--line); }
.c-true { border-left: 6px solid #2e7d32; }
.c-partial { border-left: 6px solid var(--accent); }
.c-not { border-left: 6px solid #b3261e; }
.tests { list-style: none; padding: 0 !important; gap: 4px !important; font-size: 0.97rem; }
.tests li { padding-left: 22px; position: relative; }
.tests li::before { content: "•"; position: absolute; left: 6px; color: var(--muted); }
.tests .t-yes::before { content: "✓"; color: #2e7d32; left: 2px; }
.tests .t-close::before { content: "~"; color: var(--ink); left: 4px; }
.tests .t-no::before { content: "✗"; color: #b3261e; left: 2px; }
.dates { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.dates li { background: var(--card); border: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 2px; }
.dates strong { font-family: var(--font-display); }
@media (prefers-color-scheme: dark) { .v-strong, .c-true { border-color: #66bb6a; } .v-no, .c-not { border-color: #ef6b62; } .tests .t-yes::before { color: #66bb6a; } .tests .t-no::before { color: #ef6b62; } }
@media print {
  .site-head, .site-foot, .crumbs, .guide-head, #ctform, .noprint, main > section:not(.report) { display: none !important; }
  .report { border: 0 !important; }
  body { background: #fff; color: #000; }
  .guide section.report { padding-top: 0; }
}
.report #reportbody > * + * { margin-top: 12px; }
.field > label.opt { font-weight: 400; }
.tablewrap { overflow-x: auto; }
.crlog { border-collapse: collapse; width: 100%; background: var(--card); }
.crlog th, .crlog td { text-align: left; padding: 6px 10px; border: 1px solid var(--line); white-space: nowrap; }
.crlog th { font-family: var(--font-display); background: var(--panel); }
.crlog td:nth-last-child(2) { white-space: normal; min-width: 10rem; }
.crlog .btn { padding: 4px 10px; font-size: 0.9rem; }
section.share-bar { margin: 40px 0 0; padding: 18px 0; border-top: 1px solid var(--line); }
.share-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
main.wrap .share-bar .wrap { padding: 0; }
.share-label { font-weight: 700; margin-right: 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; border: 2px solid var(--ink); border-radius: 8px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; background: var(--accent); color: #1c232d; }
.share-btn:hover { filter: brightness(1.05); }
.share-icon { fill: currentColor; }
@media print { .no-print { display: none !important; } }
.checked { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
#checkbox ul { list-style: none; padding-left: 0; display: grid; gap: 8px; }
#checkbox li { padding-left: 10px; }
