
/* ==================================================================
   Design tokens
   Palette is derived from the subject: Labour red is a given, and it is
   contrast-corrected from the official #E4003B to #CE1141 so it passes
   WCAG AA as body-sized text on the paper background (5.37:1).
   Moss green carries council/committee business, keeping the red for
   things a resident can act on.
   ================================================================== */
:root {
  --paper:      #FCFBF8;
  --paper-warm: #F5F2EC;
  --ink:        #16191D;
  --slate:      #5A6472;
  --red:        #CE1141;
  --red-dark:   #A80D34;
  --moss:       #2F5D50;
  --rule:       #E2DED6;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  --measure: 68ch;
  --gutter:  clamp(1rem, 4vw, 2.5rem);
  --shell:   1180px;

  /* Just enough radius to soften the corners without losing the crispness
     the rest of the system depends on. One step, used everywhere. */
  --radius:    5px;
  --radius-sm: 3px;

  /* Depth comes from tinted layers rather than heavy drop shadows: on a warm
     paper background a grey shadow reads as dirt. These are barely there,
     and only ever on something you can interact with. */
  --lift-1: 0 1px 2px rgba(22, 25, 29, 0.04);
  --lift-2: 0 6px 20px -6px rgba(22, 25, 29, 0.14);
  --ease:   cubic-bezier(0.2, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Push the footer to the bottom of short pages: without this a two-line
   page leaves the footer floating in the middle with paper beneath it. */
html, body { height: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  /* 18px base: a large share of ward residents are over 60. */
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}

/* Stops the ragged last line of short paragraphs and list items. */
p, li { text-wrap: pretty; }

main { flex: 1 0 auto; }

a { color: var(--red); text-underline-offset: 0.18em; }
a:hover { color: var(--red-dark); }

/* Visible, high-contrast focus everywhere. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ==================================================================
   Masthead
   ================================================================== */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 82%, #fff);
  position: sticky; top: 0; z-index: 50;
  /* Frosted only where it is supported; a flat background everywhere else. */
  backdrop-filter: saturate(1.4) blur(8px);
}
.masthead__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 1.15rem;
}
/* flex:none so the wordmark keeps its natural width: as a shrinkable flex
   item the role line was being squeezed and broken after the dash. */
.wordmark { display: flex; flex: none; align-items: center; gap: 0.85rem; text-decoration: none; color: inherit; }
.wordmark__rose {
  width: 34px; height: 34px; flex: none;
  background: var(--red); border-radius: 50% 50% 50% 4px;
  position: relative;
}
.wordmark__rose::after {
  content: ""; position: absolute; inset: 9px 9px auto auto;
  width: 12px; height: 12px; border-radius: 50% 50% 50% 2px;
  background: var(--paper); opacity: 0.85;
}
/* Name over role. Both were spans in normal flow, so they ran together as
   one line of text and wrapped mid-phrase - "Jon Byrne LABOUR COUNCILLOR -"
   above "MANOR WARD". Stacking them is what the margin-top always assumed. */
.wordmark__txt { display: flex; flex-direction: column; }
.wordmark__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1;
}
.wordmark__role {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--slate); margin-top: 0.28rem;
  /* One line. Without this the column takes the name's width and the role
     breaks after the dash: "LABOUR COUNCILLOR -" above "MANOR WARD". At
     ~240px it still clears a 320px phone, where the masthead stacks anyway. */
  white-space: nowrap;
}
.masthead__nav { margin-left: auto; }
.masthead__nav ul {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 0.35rem 1.4rem; margin: 0; padding: 0;
}
.masthead__nav a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  padding: 0.5rem 0; display: inline-block; border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.masthead__nav a:hover { border-bottom-color: var(--red); color: var(--red); }
.masthead__nav a[aria-current="page"] { border-bottom-color: var(--ink); }
/* The primary action is a button, not a link competing with "About Jon". */
.masthead__nav .navcta {
  background: var(--red); color: #fff; padding: 0.6rem 1.1rem;
  border-bottom: 0; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: var(--radius); box-shadow: var(--lift-1);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.masthead__nav .navcta:hover {
  background: var(--red-dark); color: #fff; border-bottom: 0;
  transform: translateY(-1px); box-shadow: var(--lift-2);
}
.masthead__nav .navcta:active { transform: translateY(0); box-shadow: var(--lift-1); }

/* ==================================================================
   Ward reference band.
   The localities describe what the ward covers. They are reference, not
   navigation, so this is a sentence rather than a row of links.
   ================================================================== */
.refband {
  margin: 0;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem var(--gutter);
  font-size: 0.88rem;
  color: var(--slate);
}
.refband b { color: var(--ink); font-weight: 600; }
.shell-p { max-width: none; }

/* ==================================================================
   Hero: three doors, not a photo carousel.
   The page's single job is getting a resident with a problem to the
   right route in under ten seconds.
   ================================================================== */
/* A wash of warmth behind the opening screen. Two very weak radial tints,
   not a photograph: the page still has to load and read on a bad phone
   connection, and the headline has to stay the loudest thing on it. */
.herowrap {
  background:
    radial-gradient(48rem 26rem at 88% -18%, color-mix(in srgb, var(--red) 9%, transparent), transparent 62%),
    radial-gradient(40rem 24rem at 8% -12%, color-mix(in srgb, var(--moss) 7%, transparent), transparent 60%);
  border-bottom: 1px solid var(--rule);
}

.hero { padding-block: clamp(2.5rem, 6vw, 4.25rem) clamp(2.25rem, 5vw, 3.25rem); }

/* Mono eyebrow, with a short red rule leading into it. */
.hero__eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 1rem;
}
.hero__eyebrow::before {
  content: ""; width: 2.25rem; height: 3px; flex: none;
  background: var(--red);
}

.hero__lede {
  max-width: 22ch;
  font-size: clamp(2.3rem, 6.4vw, 4rem);
  font-weight: 800; letter-spacing: -0.038em; line-height: 1.02;
}
.hero__lede em { font-style: normal; color: var(--red); }
.hero__sub {
  max-width: 52ch; margin-top: 1.25rem;
  color: var(--slate); font-size: 1.15rem; line-height: 1.55;
}

.doors {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  margin-top: 2.5rem;
}
.door {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 1.65rem 1.5rem 1.45rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--lift-1);
  text-decoration: none; color: inherit;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
/* The accent is a bar drawn inside the card rather than a thick top border,
   so it can grow on hover without the whole card shifting a pixel. */
.door::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--red);
  transition: height 0.18s var(--ease);
}
.door:hover {
  transform: translateY(-3px);
  box-shadow: var(--lift-2);
  border-color: color-mix(in srgb, var(--ink) 22%, var(--rule));
}
.door:hover::before { height: 7px; }
.door--council::before { background: var(--moss); }
.door__kicker {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 0.55rem;
}
.door__title { font-size: 1.32rem; margin-bottom: 0.45rem; }
.door__body { color: var(--slate); font-size: 0.97rem; flex: 1; }
.door__cta {
  margin-top: 1rem; font-weight: 700; color: var(--red);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.door--council .door__cta { color: var(--moss); }
.door__cta::after { content: "\2192"; transition: transform 0.16s ease; }
.door:hover .door__cta::after { transform: translateX(4px); }

/* Track-a-case stub: the reference is set in mono because it is a
   record, not prose. Same visual language as the ward strip. */
.stub {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.stub__text { flex: 1 1 22ch; }
.stub__text strong { display: block; font-family: var(--font-display); font-size: 1.08rem; }
.stub__text span { color: var(--slate); font-size: 0.94rem; }
.stub__form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.stub input {
  font-family: var(--font-mono); font-size: 1rem;
  padding: 0.7rem 0.85rem; min-height: 48px;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
  width: 15ch;
}
.stub input::placeholder { color: #9AA1AB; }
.btn {
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 0.7rem 1.4rem; min-height: 48px;
  background: var(--ink); color: var(--paper);
  border: 1.5px solid var(--ink); cursor: pointer;
  border-radius: var(--radius); box-shadow: var(--lift-1);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
              transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover {
  background: var(--red); border-color: var(--red);
  transform: translateY(-1px); box-shadow: var(--lift-2);
}
.btn:active { transform: translateY(0); box-shadow: var(--lift-1); }

/* ==================================================================
   Section furniture
   ================================================================== */
section { padding-block: clamp(2.5rem, 6vw, 4rem); }
/* The rule under a section heading starts red and runs into ink, so the
   eye is caught by the left edge where the heading begins. */
.sectionhead {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.5rem 1.25rem; margin-bottom: 1.75rem;
  padding-bottom: 0.85rem; border-bottom: 2px solid var(--ink);
}
.sectionhead::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 3.5rem; height: 2px; background: var(--red);
}
.sectionhead h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.sectionhead a { margin-left: auto; font-weight: 700; font-size: 0.95rem; }

/* ==================================================================
   News cards
   ================================================================== */
.cards { display: grid; gap: 1.35rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* A real card rather than loose text in a grid cell: white against the warm
   paper, a hairline, and the same lift the homepage doors use. */
.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--lift-1);
  padding: 1.25rem 1.3rem 1.35rem;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.card:has(a:hover), .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lift-2);
  border-color: color-mix(in srgb, var(--ink) 22%, var(--rule));
}
.card__media {
  aspect-ratio: 16 / 10; background: var(--paper-warm);
  border: 1px solid var(--rule); overflow: hidden;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media span { font-family: var(--font-mono); font-size: 0.7rem; color: #A9AEB6; letter-spacing: 0.08em; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  margin: 0 0 0.6rem;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.07em; text-transform: uppercase;
}
.card__media + .card__meta { margin-top: 0.95rem; }
.tag { padding: 0.2rem 0.5rem; border: 1px solid var(--rule); color: var(--slate); border-radius: var(--radius-sm); }
.tag--ward    { border-color: var(--red);  color: var(--red); }
.tag--council { border-color: var(--moss); color: var(--moss); }
.card__meta time { color: var(--slate); }
/* The templates use h2 here. Styling only h3 left headlines at full display
   size in link red with a browser underline, which is what made the news
   page read as a list of links rather than a page of stories. */
.card h2, .card h3 { font-size: 1.2rem; line-height: 1.18; margin-bottom: 0.5rem; }
.card h2 a, .card h3 a {
  color: var(--ink); text-decoration: none;
  transition: color 0.15s var(--ease);
}
.card h2 a:hover, .card h3 a:hover {
  color: var(--red); text-decoration: underline; text-underline-offset: 0.16em;
}
.card p { margin: 0; color: var(--slate); font-size: 0.97rem; }

/* ==================================================================
   Council business: two columns, meetings and surgeries
   ================================================================== */
.band { background: var(--paper-warm); border-block: 1px solid var(--rule); }
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.split h2 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.split .hint { color: var(--slate); font-size: 0.93rem; margin: 0 0 1.25rem; }

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: flex; gap: 1rem; padding: 0.95rem 0; border-top: 1px solid var(--rule); }
.agenda li:last-child { border-bottom: 1px solid var(--rule); }
.agenda__date {
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.3;
  text-align: center; flex: none; width: 3.6rem;
  padding-top: 0.15rem; color: var(--ink);
}
.agenda__date b { display: block; font-size: 1.35rem; font-weight: 600; }
.agenda__date span { color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; }
.agenda__body { min-width: 0; }
.agenda__body strong { display: block; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; }
.agenda__body a { text-decoration: none; color: inherit; }
.agenda__body a:hover { color: var(--red); text-decoration: underline; }
.agenda__body span { display: block; color: var(--slate); font-size: 0.9rem; margin-top: 0.2rem; }
.flag {
  display: inline-block; margin-top: 0.4rem;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--moss); color: #fff; padding: 0.18rem 0.45rem;
}
.flag--attending { background: var(--red); }
.stamp { font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate); margin-top: 1rem; }

/* ==================================================================
   Footer
   ================================================================== */
.footer {
  background: var(--ink); color: #C7CCD3;
  padding-block: 3.25rem 2.25rem;
  border-top: 4px solid var(--red);
}
.footer a {
  color: var(--paper); text-decoration: none;
  transition: color 0.15s var(--ease);
}
/* Underline on hover rather than always: four columns of permanently
   underlined links is a lot of texture for what is reference material. */
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.footer__grid { display: grid; gap: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* The templates use h2 here; h3 alone left these as full-size display
   headings, which is why the footer shouted. */
.footer h2, .footer h3 {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: #8B94A0;
  margin-bottom: 0.85rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.55rem; }
.imprint {
  margin-top: 2.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(252,251,248,0.18);
  font-size: 0.84rem; color: #8B94A0; max-width: var(--measure);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .door:hover { transform: none; }
}

@media (max-width: 620px) {
  .masthead__inner { flex-direction: column; align-items: flex-start; }
  .masthead__nav { margin-left: 0; width: 100%; }
  .masthead__nav ul { gap: 0.25rem 1.1rem; }
  .stub input { width: 100%; }
  .stub__form { width: 100%; }
  .btn { width: 100%; }
}


/* ==================================================================
   Additions beyond the prototype: forms, casework, article pages
   ================================================================== */
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.hp{position:absolute;left:-9999px;}   /* honeypot */

.burger{display:none;margin-left:auto;background:none;border:1.5px solid var(--ink);
  cursor:pointer;width:46px;height:46px;flex:none;place-items:center;padding:0;}
.burger span{display:block;width:20px;height:2px;background:var(--ink);position:relative;transition:.2s;}
.burger span::before,.burger span::after{content:"";position:absolute;left:0;width:20px;height:2px;background:var(--ink);transition:.2s;}
.burger span::before{top:-6px;} .burger span::after{top:6px;}
.burger[aria-expanded=true] span{background:transparent;}
.burger[aria-expanded=true] span::before{top:0;transform:rotate(45deg);}
.burger[aria-expanded=true] span::after{top:0;transform:rotate(-45deg);}

.wordmark__logo{max-height:52px;width:auto;max-width:46vw;display:block;}
.wordmark__fallback{width:38px;height:38px;flex:none;background:var(--red);color:#fff;
  border-radius:3px;display:grid;place-items:center;font-family:var(--font-display);
  font-weight:800;font-size:.95rem;}

.mainnav ul{list-style:none;display:flex;flex-wrap:wrap;gap:.35rem 1.4rem;margin:0;padding:0;align-items:center;}
.mainnav a{color:var(--ink);text-decoration:none;font-weight:600;padding:.5rem 0;
  display:inline-block;border-bottom:2px solid transparent;}
.mainnav a:hover{border-bottom-color:var(--red);color:var(--red);}
.mainnav a[aria-current=page]{border-bottom-color:var(--ink);}
.mainnav .navcta{background:var(--red);color:#fff;padding:.6rem 1rem;border-bottom:0;
  min-height:44px;display:inline-flex;align-items:center;}
.mainnav .navcta:hover{background:var(--red-dark);color:#fff;border-bottom:0;}

/* Casework counters */
.band--stats{background:var(--ink);color:var(--paper);border-block-color:var(--ink);}
.band--stats .sectionhead{border-bottom-color:rgba(252,251,248,.3);}
.band--stats h2{color:var(--paper);}
.stats{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-bottom:2rem;}
.stat b{font-family:var(--font-display);font-size:clamp(2.6rem,7vw,3.8rem);
  line-height:1;letter-spacing:-.04em;display:block;color:#fff;}
.stat span{font-family:var(--font-mono);font-size:.72rem;letter-spacing:.08em;
  text-transform:uppercase;color:#A9B0B9;display:block;margin-top:.35rem;}
.statbars{list-style:none;margin:0;padding:0;display:grid;gap:.55rem;}
.statbars li{display:grid;grid-template-columns:minmax(9rem,14rem) 1fr auto;
  gap:.85rem;align-items:center;font-size:.9rem;}
.statbars__label{color:#C7CCD3;}
.statbars__track{background:rgba(252,251,248,.16);height:12px;}
.statbars__fill{display:block;height:12px;background:var(--red);}
.statbars__n{font-family:var(--font-mono);font-size:.8rem;color:#C7CCD3;}
.band--stats .stamp{color:#8B94A0;}

/* Articles */
.article{max-width:var(--measure);padding-block:clamp(2rem,5vw,3rem);}
.article--form{max-width:44rem;}
.article h1{font-size:clamp(1.9rem,5vw,2.9rem);margin-bottom:.85rem;}
.article__meta{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;
  margin-bottom:1.5rem;font-family:var(--font-mono);font-size:.72rem;
  letter-spacing:.06em;text-transform:uppercase;color:var(--slate);}
.article__hero{width:100%;height:auto;margin-bottom:1.75rem;border:1px solid var(--rule);}
.crumbs{font-family:var(--font-mono);font-size:.72rem;letter-spacing:.07em;
  text-transform:uppercase;margin-bottom:.9rem;}
.lede{font-size:1.12rem;color:var(--slate);margin-bottom:1.5rem;}
.prose p{margin:0 0 1.15rem;}
.prose h2{font-size:1.5rem;margin:2rem 0 .75rem;}
.prose h3{font-size:1.22rem;margin:1.6rem 0 .6rem;}
.prose ul,.prose ol{margin:0 0 1.15rem;padding-left:1.4rem;}
.prose li{margin-bottom:.4rem;}
.prose img{max-width:100%;height:auto;}
.prose figure{margin:1.5rem 0;}
.prose figcaption{font-size:.88rem;color:var(--slate);margin-top:.5rem;}
.prose blockquote{margin:1.5rem 0;padding-left:1.1rem;border-left:4px solid var(--red);color:var(--slate);}
.article__topics{margin-top:2rem;padding-top:1.1rem;border-top:1px solid var(--rule);
  display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font-size:.92rem;}
.article__topics span{color:var(--slate);}
.article__topics a{padding:.25rem .6rem;border:1px solid var(--rule);text-decoration:none;}

.cta-panel{margin-top:2.5rem;background:var(--paper-warm);border:1px solid var(--rule);padding:1.5rem;}
.cta-panel h2{font-size:1.3rem;margin-bottom:.4rem;}
.cta-panel p{color:var(--slate);margin:0 0 1rem;}

.topicfilter{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:2rem;}
.topicfilter a{font-family:var(--font-mono);font-size:.72rem;letter-spacing:.05em;
  text-transform:uppercase;padding:.45rem .7rem;border:1px solid var(--rule);
  text-decoration:none;color:var(--slate);}
.topicfilter a:hover{border-color:var(--red);color:var(--red);}
.topicfilter a[aria-current=page]{background:var(--ink);border-color:var(--ink);color:var(--paper);}

.pager{display:flex;gap:1.5rem;align-items:center;justify-content:center;
  margin-top:2.5rem;padding-top:1.25rem;border-top:1px solid var(--rule);}
.pager span{color:var(--slate);font-size:.9rem;}
.empty{color:var(--slate);padding:2rem 0;}

/* Forms */
fieldset{border:0;padding:0;margin:0 0 2rem;}
legend{font-family:var(--font-display);font-weight:700;font-size:1.3rem;
  margin-bottom:.9rem;padding:0;}
.field{margin-bottom:1.25rem;}
.field--short{max-width:20rem;}
.field label{display:block;font-weight:600;margin-bottom:.35rem;}
.field input,.field select,.field textarea{
  width:100%;font-family:var(--font-body);font-size:1.05rem;
  padding:.7rem .85rem;min-height:48px;border:1.5px solid var(--ink);
  background:#fff;color:var(--ink);border-radius:var(--radius-sm);
  transition:border-color .15s var(--ease),box-shadow .15s var(--ease);}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--red);box-shadow:0 0 0 3px color-mix(in srgb,var(--red) 16%,transparent);}
.field textarea{min-height:9rem;line-height:1.5;}
.field input.mono{font-family:var(--font-mono);}
.field .hint{color:var(--slate);font-size:.9rem;margin:.35rem 0 0;}
.check{display:flex;gap:.7rem;align-items:flex-start;margin-top:1rem;}
.check input{width:24px;height:24px;flex:none;margin-top:.2rem;}
.check label{font-weight:400;}
.errors{border:2px solid var(--red);padding:1.1rem 1.25rem;margin-bottom:1.75rem;}
.errors h2{font-size:1.15rem;color:var(--red);margin-bottom:.5rem;}
.errors ul{margin:0;padding-left:1.2rem;}
.errors a{color:var(--red);}
.privacy-note{background:var(--paper-warm);border:1px solid var(--rule);
  padding:1.1rem 1.25rem;margin-bottom:1.75rem;}
.privacy-note h2{font-size:1.05rem;margin-bottom:.4rem;}
.privacy-note p{margin:0;font-size:.94rem;color:var(--slate);}
.btn--red{background:var(--red);border-color:var(--red);color:#fff;text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;}
.btn--red:hover{background:var(--red-dark);border-color:var(--red-dark);color:#fff;}
.btn--large{font-size:1.1rem;padding:.9rem 2rem;min-height:54px;}

/* Casework reference and status */
.reference{background:var(--paper-warm);border:1px dashed var(--rule);
  padding:1.25rem 1.4rem;margin-bottom:1.5rem;display:inline-block;}
.reference__label{font-family:var(--font-mono);font-size:.68rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--slate);display:block;margin-bottom:.35rem;}
.reference__code{font-family:var(--font-mono);font-size:1.8rem;letter-spacing:.02em;}
.steps{padding-left:1.3rem;}
.steps li{margin-bottom:.6rem;}
.casecard{margin-top:2rem;border:1px solid var(--rule);padding:1.5rem;}
.casecard__head{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-bottom:.75rem;}
.status{font-family:var(--font-mono);font-size:.68rem;letter-spacing:.08em;
  text-transform:uppercase;padding:.28rem .6rem;background:var(--slate);color:#fff;}
.status--resolved{background:var(--moss);}
.status--new,.status--acknowledged{background:var(--red);}
.timeline{list-style:none;margin:1.25rem 0 0;padding:0;}
.timeline li{display:grid;grid-template-columns:6.5rem 1fr;gap:1rem;
  padding:.7rem 0;border-top:1px solid var(--rule);}
.timeline time{font-family:var(--font-mono);font-size:.78rem;color:var(--slate);}
.agenda--full li:first-child{border-top:1px solid var(--rule);}
.agenda__link{display:inline-block;margin-top:.35rem;font-size:.88rem;}

@media (max-width:820px){
  .burger{display:grid;}
  .mainnav{display:none;width:100%;order:3;}
  .mainnav[data-open=true]{display:block;}
  .mainnav ul{flex-direction:column;align-items:stretch;gap:0;
    border-top:1px solid var(--rule);margin-top:.75rem;}
  .mainnav li{border-bottom:1px solid var(--rule);}
  .mainnav a{padding:.9rem 0;font-size:1.1rem;}
  .mainnav .navcta{justify-content:center;margin:.75rem 0;}
  .masthead__inner{flex-wrap:wrap;}
  .statbars li{grid-template-columns:1fr auto;}
  .statbars__track{grid-column:1 / -1;}
  .timeline li{grid-template-columns:1fr;gap:.2rem;}
}

/* Tracking timeline: every entry has a headline, notes are optional. */
.casecard__sub{font-family:var(--font-display);font-size:1rem;margin:1.5rem 0 .25rem;}
.timeline li{display:grid;grid-template-columns:6.5rem 1fr;gap:1rem;
  padding:.8rem 0;border-top:1px solid var(--rule);align-items:baseline;}
.timeline strong{display:block;font-family:var(--font-display);font-size:1.02rem;}
.timeline span{display:block;color:var(--slate);margin-top:.2rem;}
.timeline--done strong{color:var(--moss);}
.casecard__foot{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--rule);
  font-size:.93rem;color:var(--slate);}
.amono{font-family:var(--font-mono);font-size:.92em;}
@media(max-width:520px){
  .timeline li{grid-template-columns:1fr;gap:.15rem;}
  /* The mark plus a 240px unbreakable role line runs off the right edge of a
     narrow phone, so here the mark gets smaller and the role may wrap. */
  .wordmark__logo{max-height:36px;}
  .wordmark__role{white-space:normal;}
}
