/* ---------------------------------------------------------------------------
   NTE participation platform
   Design tokens lifted from the NTE 2026 Hub so this reads as the same product:
   Lora for headings, Raleway for everything else, deep teal ground, amber CTA.
   --------------------------------------------------------------------------- */

:root{
  --ink:#23383D;          /* body text */
  --deep:#10333B;         /* headings, header, hero base */
  --deepest:#092026;      /* gradient anchor */
  --mid:#2D7D9A;          /* links, mid accents */
  --mid-2:#3F8A9C;
  --soft:#8FBEC7;
  --pale:#C4DEE2;
  --muted:#5E7880;        /* labels, meta */
  --surface:#F4F6F6;      /* page */
  --surface-2:#EAF2F3;    /* alternate band */
  --white:#fff;
  --gold:#D4880A;         /* CTA */
  --gold-2:#E7B25A;       /* eyebrow on dark */
  --gold-pale:#FBF4E3;
  --good:#3B6D11;
  --good-bg:rgba(122,190,90,.16);
  --good-ink:#3B6D11;
  --line:rgba(16,51,59,.10);
  --line-2:rgba(16,51,59,.16);
  --shadow:0 8px 24px rgba(16,51,59,.05);
  --wrap:1180px;
}

*{margin:0;padding:0;box-sizing:border-box}

body{
  font-family:Raleway,system-ui,-apple-system,sans-serif;
  color:var(--ink);background:var(--surface);
  min-height:100vh;-webkit-font-smoothing:antialiased;line-height:1.6;
}

h1,h2,h3{font-family:Lora,Georgia,serif;font-weight:600;line-height:1.05;color:var(--deep);letter-spacing:-.01em}
h2{font-size:clamp(28px,3.2vw,42px);margin-bottom:9px}
h3{font-size:20px;line-height:1.25}
p{margin:0 0 1em}
a{color:var(--mid)}
strong{font-weight:600}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 32px}
.band{padding:56px 0 66px}
[id]{scroll-margin-top:100px}
.band-alt{background:var(--surface-2)}
.band-white{background:var(--white)}

.eyebrow{font-weight:600;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin-bottom:14px}
.eyebrow-gold{color:var(--gold-2)}
.lede{font-size:17px;line-height:1.65;color:#3D555C;max-width:70ch}
/* For an intro that otherwise leaves a single word stranded on its own line. */
.lede.wide{max-width:88ch}

/* --- header ------------------------------------------------------------- */
.site-head{
  position:sticky;top:0;z-index:60;background:var(--deep);
  display:flex;align-items:center;gap:14px;padding:0 28px;min-height:80px;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 2px 0 rgba(212,136,10,.5),0 6px 18px rgba(9,32,38,.18);
}
.site-head .mark{width:9px;height:9px;background:var(--gold);border-radius:2px;flex-shrink:0}
.site-head .name{font-weight:700;font-size:14px;letter-spacing:.11em;text-transform:uppercase;color:#fff;white-space:nowrap}
.site-head .spacer{margin-left:auto}
.site-head .logos{display:flex;align-items:center;gap:12px}
.site-head .logos img{height:42px;width:42px;object-fit:contain;border-radius:7px;display:block}
.site-head .logos img.plate{background:#fff;padding:2px}
.site-head .logos img.word{width:auto;height:17px;border-radius:0}
.site-head .logos .rule{width:1px;height:30px;background:rgba(255,255,255,.18)}

/* --- hero --------------------------------------------------------------- */
.hero{position:relative;background:var(--deep);overflow:hidden}
.hero img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 52%}
.hero .veil-a{position:absolute;inset:0;background:linear-gradient(100deg,rgba(9,32,38,.90) 0%,rgba(9,32,38,.72) 44%,rgba(9,32,38,.30) 100%)}
.hero .veil-b{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(9,32,38,0) 58%,rgba(16,51,59,.92) 100%)}
.hero .inner{position:relative;max-width:var(--wrap);margin:0 auto;padding:92px 32px 88px}
.hero .kicker{font-weight:600;font-size:15px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-2);margin:0 0 28px}
.hero h1{font-size:clamp(38px,5.6vw,70px);line-height:1.03;color:#fff;letter-spacing:-.015em;max-width:22ch;margin:0 0 16px}
.hero .sub{font-weight:300;font-size:clamp(17px,1.7vw,22px);line-height:1.62;color:rgba(255,255,255,.85);max-width:72ch;margin:0 0 38px}
.hero .meta{margin-top:26px;font-size:14px;color:rgba(255,255,255,.6)}

/* --- buttons ------------------------------------------------------------ */
.btn{
  display:inline-flex;align-items:center;gap:9px;background:var(--gold);color:#fff;
  font-family:inherit;font-weight:600;font-size:13.5px;letter-spacing:.05em;text-transform:uppercase;
  padding:15px 28px;border:0;border-radius:8px;cursor:pointer;text-decoration:none;
  box-shadow:0 8px 22px rgba(212,136,10,.28);transition:background .15s,transform .15s;
}
.btn:hover{background:#B87407;transform:translateY(-1px)}
.btn-ghost{background:rgba(255,255,255,.09);color:#fff;border:1px solid rgba(255,255,255,.3);box-shadow:none}
.btn-ghost:hover{background:rgba(255,255,255,.16)}
.btn-quiet{background:transparent;color:var(--mid);border:1px solid var(--line-2);box-shadow:none;text-transform:none;letter-spacing:0;font-size:14.5px}
.btn-quiet:hover{background:var(--surface-2)}
.btn[disabled]{opacity:.5;pointer-events:none}

/* --- cards -------------------------------------------------------------- */
.grid{display:grid;gap:20px}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.card{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:22px 22px 24px}
.card h3{font-size:19px;margin-bottom:10px}
.card p,.card li{font-size:14.5px;color:#3D555C}
.card ul{margin:10px 0 0;padding-left:18px}
.card li{margin-bottom:5px}
/* footnote under a card's list — e.g. which councils get full history */
.card .fn{font-size:13px;line-height:1.5;color:var(--muted);margin:12px 0 0}
.card .tag{display:inline-block;background:var(--deep);color:#fff;font-weight:700;font-size:11px;
  letter-spacing:.12em;text-transform:uppercase;padding:5px 11px;border-radius:20px;margin-bottom:14px}
.card .tag-gold{background:var(--gold)}

.note{background:var(--white);border-left:4px solid var(--gold);border-radius:0 10px 10px 0;
  padding:22px 28px;box-shadow:var(--shadow);font-size:15px}

.pill{display:inline-flex;align-items:center;gap:7px;background:var(--good-bg);color:var(--good-ink);
  font-weight:700;font-size:13px;padding:7px 13px;border-radius:22px}

/* --- forms -------------------------------------------------------------- */
label{display:block;font-weight:600;font-size:12.5px;letter-spacing:.09em;text-transform:uppercase;
  color:var(--muted);margin-bottom:8px}
input[type=text],input[type=email],input[type=tel],select,textarea{
  width:100%;font-family:inherit;font-weight:400;font-size:15px;padding:12px 14px;
  border:1px solid var(--line-2);border-radius:8px;background:var(--white);color:var(--ink);outline:none;
}
input:focus,select:focus,textarea:focus{border-color:var(--mid);box-shadow:0 0 0 3px rgba(45,125,154,.14)}
.field{margin-bottom:20px}
.field .help{font-size:13px;color:var(--muted);margin:6px 0 0}
.fieldset{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:26px 28px;margin-bottom:22px}
.fieldset h3{font-size:18px;margin-bottom:4px}
.fieldset .intro{font-size:14px;color:var(--muted);margin-bottom:20px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.check{display:flex;gap:11px;align-items:flex-start;font-size:14.5px;line-height:1.5;margin-bottom:14px}
.check input{margin-top:3px;width:17px;height:17px;flex-shrink:0;accent-color:var(--mid)}
.check label{text-transform:none;letter-spacing:0;font-size:14.5px;font-weight:400;color:var(--ink);margin:0}

.err{background:#FBEDED;border:1px solid #E8C4C4;color:#A32D2D;border-radius:8px;padding:13px 16px;
  font-size:14.5px;margin-bottom:20px}
.ok{background:var(--good-bg);border:1px solid rgba(122,190,90,.4);color:var(--good-ink);border-radius:8px;
  padding:13px 16px;font-size:14.5px;margin-bottom:20px}

/* --- council finder ----------------------------------------------------- */
.finder{background:var(--white);border:1px solid var(--line);border-radius:12px;
  padding:30px 32px 32px;box-shadow:var(--shadow);max-width:720px;margin-top:26px}
.combo{position:relative}
.opts{position:absolute;left:0;right:0;top:calc(100% + 5px);background:#fff;border:1px solid var(--line-2);
  border-radius:10px;max-height:280px;overflow-y:auto;z-index:20;display:none;
  box-shadow:0 12px 30px rgba(9,32,38,.16)}
.opts.on{display:block}
.opts button{display:block;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #EEF3F4;
  padding:11px 15px;font-family:inherit;font-size:14.5px;cursor:pointer;color:var(--ink)}
.opts button:last-child{border-bottom:0}
.opts button:hover,.opts button:focus{background:var(--surface-2);outline:none}
.opts .state{color:var(--muted);font-size:13px}
.opts .empty{padding:13px 15px;font-size:14px;color:var(--muted)}

.result{margin-top:24px;border-radius:12px;padding:26px 28px;display:none}
.result.on{display:block}
.result h3{font-size:22px;margin-bottom:8px}
.result p{font-size:15px}
.result ul{margin:14px 0 0;padding-left:19px;font-size:14.5px}
.result li{margin-bottom:6px}
.r-go{background:var(--good-bg);border:1px solid rgba(122,190,90,.42)}
.r-go h3{color:#2A5C10}
.r-member{background:#EAF3F4;border:1px solid var(--pale)}
.r-member h3{color:var(--deep)}
.r-none{background:var(--gold-pale);border:1px solid #EAD9BC}
.r-none h3{color:#7A5C14}
.fee{font-family:Lora,serif;font-size:30px;font-weight:600;color:var(--deep);margin:18px 0 2px}
.fee small{font-family:Raleway,sans-serif;font-size:14px;font-weight:400;color:var(--muted)}

/* stat strip — a stat tile, not a chart. Values wear ink; direction is never
   colour alone (arrow + word), because a good share of these are negative. */
.peek{margin-top:26px;padding-top:22px;border-top:1px solid rgba(16,51,59,.14)}
.peek .intro{font-size:14px;color:#3D555C;margin-bottom:14px}
.stats{display:flex;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
/* Direct children only. `.stats div` also matched the .k and .v inside each
   cell, which gave every label its own stray right-hand rule — including on the
   last cell, where the divider is meant to be suppressed. */
.stats > div{flex:1;padding:15px 17px;border-right:1px solid var(--line);display:flex;flex-direction:column}
.stats > div:last-child{border-right:0}
.stats .k{flex:1;font-weight:600;font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.stats .v{font-family:Lora,serif;font-size:24px;font-weight:600;color:var(--deep);line-height:1.1}
.stats .v .dir{font-family:Raleway,sans-serif;font-size:12.5px;font-weight:600;color:var(--muted);margin-left:5px}

/* --- timeline ----------------------------------------------------------- */
.tl{list-style:none;border-left:2px solid var(--soft);margin-top:28px}
.tl li{position:relative;padding:0 0 26px 30px}
.tl li:before{content:'';position:absolute;left:-7px;top:7px;width:12px;height:12px;border-radius:50%;
  background:var(--mid);border:2px solid var(--surface)}
.tl li.key:before{background:var(--gold)}
.tl .d{font-weight:700;font-size:12.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--deep)}
.tl .t{font-size:14.5px;color:#3D555C;margin-top:3px}

/* --- quotes ------------------------------------------------------------- */
blockquote{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:26px;
  font-size:14.5px;color:#3D555C}
blockquote .who{margin-top:16px;font-weight:600;font-size:13.5px;color:var(--deep)}
blockquote .who span{display:block;font-weight:400;color:var(--muted);font-size:13px}

/* --- footer ------------------------------------------------------------- */
.site-foot{background:var(--deep);color:rgba(255,255,255,.72);padding:44px 0 34px;font-size:14px}
.site-foot .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:28px}
.site-foot strong{color:#fff;display:block;margin-bottom:8px;font-size:13px;letter-spacing:.09em;text-transform:uppercase}
.site-foot a{color:var(--soft)}
.site-foot .fine{margin-top:28px;padding-top:20px;border-top:1px solid rgba(255,255,255,.1);
  font-size:12px;color:rgba(255,255,255,.4)}

/* --- admin tracker ------------------------------------------------------ */
.tbl{width:100%;border-collapse:collapse;background:#fff;font-size:14px}
.tbl th{background:var(--deep);color:rgba(255,255,255,.9);font-weight:600;font-size:12px;letter-spacing:.07em;
  text-transform:uppercase;padding:13px 12px;text-align:left;white-space:nowrap}
.tbl td{padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.tbl tr:hover td{background:var(--surface-2)}
.tbl .chip{display:inline-block;font-size:11.5px;font-weight:600;padding:3px 9px;border-radius:20px;
  background:var(--surface-2);color:var(--deep);white-space:nowrap}
.tbl .chip.warn{background:var(--gold-pale);color:#7A5C14}
.tbl .chip.good{background:var(--good-bg);color:var(--good-ink)}
.tblwrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:26px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px 18px}
.kpi .k{font-weight:600;font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.kpi .v{font-family:Lora,serif;font-size:26px;font-weight:600;color:var(--deep);line-height:1}
.toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:20px}
.toolbar select,.toolbar input{width:auto;min-width:190px}

@media(max-width:760px){
  .wrap,.hero .inner{padding-left:20px;padding-right:20px}
  .two{grid-template-columns:1fr}
  .stats{flex-direction:column}
  .stats > div{border-right:0;border-bottom:1px solid var(--line)}
  .site-head .name{font-size:12px;letter-spacing:.08em;white-space:normal}
  .site-head .logos img{height:36px;width:36px}
}

/* --- postcode picker ----------------------------------------------------- */
.pclist{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:8px}
.pc{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);
    border-radius:8px;background:#fff;cursor:pointer;margin:0;text-transform:none;letter-spacing:0;
    font-weight:400;font-size:15px;color:var(--ink);transition:border-color .12s,background .12s}
.pc:hover{border-color:var(--soft);background:var(--surface-2)}
.pc:has(input:checked){border-color:var(--mid);background:#EAF3F4;box-shadow:inset 0 0 0 1px var(--mid)}
.pc input{width:17px;height:17px;flex-shrink:0;accent-color:var(--mid);margin:0}
.pc .code{font-weight:600;font-variant-numeric:tabular-nums;min-width:38px}
.pc .bar{flex:1;height:5px;border-radius:3px;background:#E4EDEF;overflow:hidden;min-width:26px}
.pc .bar span{display:block;height:100%;background:var(--mid-2);border-radius:3px}
.pc.low .bar span{background:#C79A4E}
.pc .pct{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:36px;text-align:right}

.totalbar{position:sticky;bottom:0;display:flex;align-items:center;gap:26px;flex-wrap:wrap;
  background:var(--deep);color:#fff;border-radius:12px;padding:18px 24px;margin-top:8px;
  box-shadow:0 -6px 24px rgba(9,32,38,.14)}
.totalbar .k{font-weight:600;font-size:11px;letter-spacing:.11em;text-transform:uppercase;
  color:rgba(255,255,255,.55);margin-bottom:3px}
.totalbar .v{font-family:Lora,serif;font-size:22px;font-weight:600;line-height:1}
.totalbar .btn{margin-left:auto}

textarea{line-height:1.6;resize:vertical;min-height:120px}

/* --- task page actions: save and a visible way back ---------------------- */
.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:22px;
  padding-top:20px;border-top:1px solid var(--line)}
.actions .btn-quiet{margin-left:auto}
.warn{background:var(--gold-pale);border:1px solid #EAD9BC;color:#7A5C14;border-radius:8px;
  padding:13px 16px;font-size:14.5px;margin-bottom:20px}
.warn strong{color:#5C4409}

/* "No postcodes required" — an explicit answer, sitting above the lists. */
.pc-none{display:flex;gap:12px;align-items:flex-start;padding:16px 18px;border:1px solid var(--line);
  border-radius:12px;background:var(--white);cursor:pointer;text-transform:none;letter-spacing:0;
  font-size:15px;font-weight:400;color:var(--ink);margin:0}
.pc-none:hover{border-color:var(--soft)}
.pc-none:has(input:checked){border-color:var(--mid);background:#EAF3F4;box-shadow:inset 0 0 0 1px var(--mid)}
.pc-none input{width:18px;height:18px;margin-top:2px;flex-shrink:0;accent-color:var(--mid)}
.pc-none strong{display:block;font-weight:600;margin-bottom:3px}
.pc-none .sub{display:block;font-size:13.5px;color:var(--muted);line-height:1.5}
#pclists.dimmed{opacity:.55}

/* Admin → council record: their page link. */
.linkrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px}
.linkrow input{flex:1;min-width:240px;font-size:13px;font-family:ui-monospace,Menlo,Consolas,monospace;
  color:var(--muted);background:var(--surface-2,#F4F7F8)}
.linkrow .btn{margin:0}

/* Settings → which reminders go out */
.remgrid th .sub,.remgrid td .sub{font-size:11.5px;font-weight:400;color:var(--muted);text-transform:none;letter-spacing:0}
.remcell{display:flex;gap:8px;align-items:center;cursor:pointer;white-space:nowrap;text-transform:none;
  letter-spacing:0;font-weight:400;font-size:14px;color:var(--ink);margin:0}
.remcell input{width:16px;height:16px;margin:0;accent-color:var(--mid);flex-shrink:0}
.remcell:has(input:not(:checked)) span{color:#9AB0B6;text-decoration:line-through}
.remgrid th,.remgrid td{padding:10px 9px}
.remgrid th:first-child,.remgrid td:first-child{padding-left:14px}
.remgrid th{font-size:10.5px;white-space:nowrap}
.remgrid .remcell{font-size:13.5px;gap:6px}
