/* The Close to Home page (/close-to-home) in the new design: the home page's type, colour and
   shapes (Söhne for headings, labels and buttons, Tiempos Text for reading, the campaign red,
   soft grey cards). The Menu comes from site-menu.css and js/site-menu.js. The dashboard's
   view of this page (admin/close-to-home.html) still uses css/close-to-home.css. */

@font-face { font-family: "Sohne VF"; src: url("/fonts/web/sohne-vf.woff2") format("woff2"); font-weight: 1 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Tiempos Text"; src: url("/fonts/web/tiempos-text-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Tiempos Text"; src: url("/fonts/web/tiempos-text-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #000c1f;
  --ink-80: #000c1fcc;
  --ink-65: #000c1fa6;
  --ink-45: #000c1f73;
  --ink-30: #000c1f4d;
  --navy: #a30b3f;        /* the campaign red, more vivid on wide-gamut screens (below) */
  --navy-hover: #680126;
  --on-navy: #ffffff;
  --tint-5: #a30b3f0d;
  --tint-10: #a30b3f1a;
  --hairline: #000c1f0d;
  --border: #000c1f1a;
  --border-strong: #000c1f33;
  --paper: #ffffff;
  --surface: #f7f7f7;
  --focus: #0c0c0c;
  --font-display: "Sohne VF", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Tiempos Text", Georgia, serif;
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --scale-press: 0.98;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4 5.6 10.3 11.5 3.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
}

@media (color-gamut: p3) {
  :root { --navy: color(display-p3 0.614 0.017 0.236); --navy-hover: color(display-p3 0.387 0.005 0.143); }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px 11px;
  border-radius: 9999px;
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 436;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-hover); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus);
}

main:focus { outline: none; }
.nowrap { white-space: nowrap; }

/* ---------- Header: the name top left, the Menu pill top right ---------- */

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 32px 32px 0;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 4px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}

.wordmark:hover { color: var(--ink); }

.wordmark-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.wordmark-role {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- The column ---------- */

.cth-page {
  display: flex;
  flex-direction: column;
  gap: 88px;
  width: min(100% - 32px, 760px);
  margin: 48px auto 0;
}

.cth-page section { scroll-margin-top: 32px; }

.cth-page h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cth-page h3 {
  margin: 48px 0 14px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.cth-page h2 + h3 { margin-top: 0; }

/* Reading text in Tiempos, as in the letter on the home page */
.cth-page section p,
.cth-page section li {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 29px;
  color: var(--ink-80);
  text-wrap: pretty;
}

.cth-page section p { margin: 0 0 18px; }
.cth-page section p:last-child { margin-bottom: 0; }
.cth-page section ul { margin: 0 0 18px; padding-inline-start: 1.25em; }
.cth-page section li + li { margin-top: 8px; }
.cth-page section li::marker { color: var(--navy); }

/* Bold in the reading text is set in Söhne, which has every weight. */
.cth-page strong { font-family: var(--font-display); font-weight: 500; color: var(--ink); }

/* ---------- 1. Top: a soft grey card, like the plan's boxes on the home page ---------- */

.cth-hero {
  padding: 40px 24px;
  border-radius: 40px;
  background: var(--surface);
}

.cth-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 92px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.cth-sub {
  margin: 14px 0 0;
  font-family: var(--font-body);
  font-size: clamp(20px, 2.4vw, 26px);
  font-style: italic;
  line-height: 1.3;
  color: var(--ink-65);
}

.cth-hero .lede {
  margin: 28px 0 0;
  max-width: 36em;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 32px;
  color: var(--ink-80);
  text-wrap: pretty;
}

.cth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 32px 0 0;
}

/* ---------- In short, and everything on the page ---------- */

.cth-brief {
  margin-top: -40px;
  padding: 28px 24px;
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--border);
}

.cth-page .cth-eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--ink-65);
}

.cth-page .cth-brief-list { margin: 0; }

.cth-toc { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }

.cth-page .cth-toc ol { margin: 0; padding: 0; list-style: none; }

.cth-page .cth-toc li { margin: 0; break-inside: avoid; }

.cth-toc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 23px;
  text-decoration: none;
}

.cth-toc a::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--navy);
  border-bottom: 1.6px solid var(--navy);
  rotate: 45deg;
  translate: 0 -2px;
}

.cth-toc a:hover { color: var(--navy); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (min-width: 600px) {
  .cth-page .cth-toc ol { columns: 2; column-gap: 40px; }
}

@media (min-width: 768px) {
  .cth-brief { margin-top: -64px; padding: 36px 40px; }
}

/* ---------- Buttons ---------- */

.btn-go,
.btn-tint {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  border: 0;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 436;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out-quint), scale 0.2s var(--ease-out-quint), opacity 0.2s var(--ease-out-quint);
}

.btn-go {
  gap: 16px;
  padding: 4px 4px 4px 24px;
  background: var(--navy);
  color: var(--on-navy);
}

.btn-go:hover { background: var(--navy-hover); color: var(--on-navy); }
.btn-go:active:not(:disabled), .btn-tint:active { scale: var(--scale-press); }
.btn-go:disabled { opacity: 0.6; cursor: progress; }

.btn-go .disc {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: var(--paper);
  color: var(--navy);
  transition: translate 0.2s var(--ease-out-quint);
}

.btn-go .disc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-go:hover .disc { translate: 3px 0; }

.btn-tint {
  padding: 0 24px 1px;
  background: var(--tint-5);
  color: var(--ink);
}

.btn-tint:hover { background: var(--tint-10); color: var(--ink); }

/* ---------- 3. Timeline ---------- */

.cth-page .cth-timeline {
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.cth-page .cth-timeline li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.cth-timeline .when {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 29px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.cth-page .cth-timeline p { margin: 0; }

@media (min-width: 600px) {
  .cth-page .cth-timeline li { grid-template-columns: 150px 1fr; gap: 24px; }
}

.cth-page .cth-grants li + li { margin-top: 12px; }

/* ---------- The letter to Victoria Hospice: a thumbnail that opens the letter ---------- */

.cth-letter {
  display: flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 14px 24px 14px 14px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out-quint);
}

.cth-letter:hover { background: #efefef; color: var(--ink); }

.cth-letter img {
  flex: none;
  width: 84px;
  height: auto;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--border), 0 6px 16px rgba(1, 14, 36, 0.12);
  rotate: -2deg;
  transition: rotate 0.3s var(--ease-out-quint), scale 0.3s var(--ease-out-quint);
}

.cth-letter:hover img { rotate: 0deg; scale: 1.04; }
.cth-letter-text { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-display); }
.cth-letter-title { font-size: 17px; font-weight: 500; line-height: 23px; }
.cth-letter-meta { font-size: 14px; line-height: 20px; color: var(--ink-65); }
.cth-letter-go { margin-top: 6px; font-size: 15px; font-weight: 436; line-height: 20px; color: var(--navy); }

.cth-letter-view {
  width: min(100% - 16px, 760px);
  max-width: none;
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline), 0 30px 80px rgba(1, 14, 36, 0.3);
  overflow: hidden;
}

.cth-letter-view::backdrop { background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cth-letter-view-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 16px); }

.cth-letter-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 24px;
  border-bottom: 1px solid var(--hairline);
}

.cth-letter-view-title { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 500; line-height: 20px; color: var(--ink-65); }
.cth-letter-view-page { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; background: #f1f1f1; }
.cth-letter-view-page img { display: block; width: 100%; height: auto; background: #ffffff; box-shadow: 0 2px 10px rgba(1, 14, 36, 0.12); }
.cth-letter-view-foot { margin: 0; padding: 14px 24px 16px; border-top: 1px solid var(--hairline); font-family: var(--font-display); font-size: 15px; font-weight: 500; }
.cth-letter-view-foot a { color: var(--navy); }

/* ---------- Tables ---------- */

.tablewrap { overflow-x: auto; margin: 16px 0 8px; }

.cth-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 23px;
}

.cth-table th,
.cth-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}

.cth-table th:last-child, .cth-table td:last-child { padding-right: 0; }
.cth-table thead th { padding-top: 0; font-size: 14px; font-weight: 500; color: var(--ink-65); }
.cth-table tbody th { font-weight: 500; color: var(--ink); }
.cth-table td { font-weight: 300; color: var(--ink-80); }

/* The two options side by side: a table, or two cards on phones (built by the page script) */
.cth-compare-table thead th { font-size: 16px; color: var(--ink); }
.cth-compare-table tbody th { width: 9.5rem; font-size: 14px; color: var(--ink-65); }
.cth-compare-table td { width: calc(50% - 4.75rem); }
.cth-compare-cards { display: none; }

@media (max-width: 40rem) {
  .cth-compare.has-cards .tablewrap { display: none; }
  .cth-compare.has-cards .cth-compare-cards { display: grid; gap: 12px; margin: 16px 0 8px; }
}

.cth-compare-card { padding: 22px 20px 24px; border-radius: 24px; background: var(--surface); }
.cth-page .cth-compare-card h4 { margin: 0; font-size: 20px; font-weight: 500; line-height: 26px; letter-spacing: -0.015em; }
.cth-compare-card dl { margin: 0; }
.cth-compare-card dt { margin: 14px 0 0; font-size: 13px; font-weight: 500; line-height: 18px; color: var(--ink-65); }
.cth-compare-card dd { margin: 2px 0 0; font-size: 16px; line-height: 23px; color: var(--ink); }

/* ---------- Boxes: the comment rules and how the list works ---------- */

.cth-rules,
.cth-how {
  margin: 28px 0;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
}

.cth-page .cth-rules p,
.cth-page .cth-rules li,
.cth-page .cth-how p { font-size: 17px; line-height: 27px; }
.cth-page .cth-rules ul { margin: 10px 0 0; }

/* ---------- 10. The motion, with the terms of reference behind a button ---------- */

.cth-motion {
  margin: 24px 0 0;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--border), 0 4px 16px rgba(1, 14, 36, 0.05);
}

.cth-page .cth-motion p,
.cth-page .cth-motion li { font-size: 17px; line-height: 28px; }
.cth-page .cth-motion > p { margin-bottom: 14px; }

.cth-tor { margin-top: 24px; }

.cth-tor summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px 1px;
  border-radius: 9999px;
  background: var(--tint-5);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 436;
  list-style: none;
  cursor: pointer;
}

.cth-tor summary::-webkit-details-marker { display: none; }
.cth-tor summary:hover { background: var(--tint-10); }

.cth-tor summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate 0.2s var(--ease-out-quint), translate 0.2s var(--ease-out-quint);
}

.cth-tor[open] summary::after { rotate: 225deg; translate: 0 2px; }
.cth-page .cth-tor h3 { margin-top: 28px; }
.cth-page .cth-lettered { padding-inline-start: 0; list-style: none; }

/* ---------- Forms ---------- */

.cth-forms { display: grid; gap: 16px; }

.cth-form {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 28px 20px;
  border-radius: 32px;
  background: var(--surface);
}

.cth-page .cth-form-title {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.02em;
}

.cth-form .field,
.cth-form .cth-area { display: grid; gap: 8px; min-width: 0; }

.cth-form .field label,
.cth-form .cth-area > label,
.cth-form legend {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--ink);
}

.cth-optional { font-weight: 300; color: var(--ink-65); }

.cth-form input[type="text"],
.cth-form textarea {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 300;
  line-height: 24px;
  outline: none;
  transition: box-shadow 0.2s var(--ease-out-quint);
}

.cth-form textarea { min-height: 136px; resize: vertical; }
.cth-form input[type="text"]:hover, .cth-form textarea:hover { box-shadow: inset 0 0 0 1px var(--ink-45); }
.cth-form input[type="text"]:focus, .cth-form textarea:focus { box-shadow: inset 0 0 0 2px var(--navy); }

.cth-page .cth-form .hint {
  margin: -10px 0 0;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-65);
}

.cth-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.cth-form legend { margin-bottom: 10px; padding: 0; }

/* Choices: white tiles with a round check, picked out in blue, as on the home page */
.cth-form .opt,
.cth-form .check { position: relative; display: block; cursor: pointer; }

.cth-form .opt input,
.cth-form .check input {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.cth-form .opt {
  min-height: 56px;
  margin-bottom: 8px;
  padding: 15px 16px 16px 56px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hairline), 0 2px 10px rgba(1, 14, 36, 0.04);
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
  transition: box-shadow 0.2s var(--ease-out-quint);
}

.cth-form .opt:last-child { margin-bottom: 0; }
.cth-form .opt:hover { box-shadow: 0 0 0 1px var(--border-strong), 0 2px 10px rgba(1, 14, 36, 0.04); }
.cth-form .opt:has(input:checked) { box-shadow: 0 0 0 2px var(--navy), 0 2px 10px rgba(1, 14, 36, 0.06); }

.cth-form .opt::before,
.cth-form .check::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--paper) center / 14px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
  transition: background-color 0.2s var(--ease-out-quint), box-shadow 0.2s var(--ease-out-quint);
}

.cth-form .opt::before { top: 50%; left: 16px; border-radius: 9999px; translate: 0 -50%; }

.cth-form .opt:has(input:checked)::before,
.cth-form .check:has(input:checked)::before {
  background-color: var(--navy);
  background-image: var(--tick);
  box-shadow: none;
}

.cth-form .check {
  min-height: 28px;
  padding: 2px 0 0 42px;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  color: var(--ink-80);
}

.cth-form .check::before { top: 0; left: 0; border-radius: 8px; }

.cth-form .opt:has(input:focus-visible),
.cth-form .check:has(input:focus-visible)::before { outline: 2px solid var(--focus); outline-offset: 2px; }

/* What still needs filling in */
.cth-form [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--navy); background-color: #fbf1f3; }
.cth-form .check:has(input[aria-invalid="true"])::before { box-shadow: inset 0 0 0 2px var(--navy); }
.cth-form .cth-choice:has(input[aria-invalid="true"]) .opt { box-shadow: 0 0 0 2px var(--navy); }

.cth-form .btn-go { justify-self: start; margin-top: 4px; }

.cth-page .cth-msg {
  min-height: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  color: var(--ink);
}

.cth-page .cth-msg:empty { display: none; }
.cth-page .cth-msg.is-error { color: var(--navy); font-weight: 500; }
.cth-form.is-sent > :not(.cth-form-title):not(.cth-msg) { display: none; }

/* A trap for spam robots: people never see it or reach it. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Public comments and names ---------- */

.cth-page .cth-list-title { margin-top: 56px; }

.cth-page .cth-empty {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-65);
}

.cth-comment { padding: 20px 0; border-bottom: 1px solid var(--border); }
.cth-comment:first-child { border-top: 1px solid var(--border); }

.cth-page .cth-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 24px;
}

.cth-comment-head strong { font-size: 17px; }

.cth-tag {
  padding: 1px 10px 2px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.cth-tag.is-yes { background: var(--tint-10); color: var(--navy); }
.cth-tag.is-no { background: #000c1f0f; color: var(--ink-80); }
.cth-lean { font-size: 14px; color: var(--ink-65); }
.cth-comment-head time { font-size: 14px; color: var(--ink-45); }

.cth-page .cth-comment-body {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 27px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.cth-page .cth-names ul {
  columns: 2 12rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cth-page .cth-names li {
  margin: 0;
  padding: 6px 0;
  break-inside: avoid;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}

.cth-page .cth-private { margin: 10px 0 0; font-family: var(--font-display); font-size: 15px; color: var(--ink-65); }

/* ---------- 11. The councillors-elect ---------- */

.cth-page .small { font-family: var(--font-display); font-size: 15px; line-height: 22px; color: var(--ink-65); }

/* Answer chips: colour plus the label as text, never colour alone */
.cth-page .cth-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
  padding: 0;
  list-style: none;
}

.cth-page .cth-chips li { margin: 0; font-family: var(--font-display); font-size: 14px; line-height: 20px; }

.cth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 4px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.cth-chip-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.cth-chip.is-supports { background: #e2f0e5; color: #1d5c30; }
.cth-chip.is-opposes { background: #f5e4e2; color: #8a322b; }
.cth-chip.is-comment { background: #e6ebf6; color: #1c3f94; }
.cth-chip.is-private { background: #e9eaec; color: #3f454c; }
.cth-chip.is-waiting { background: var(--paper); color: #5b636c; border-color: #b8bec5; }

.cth-council-comment { white-space: pre-line; overflow-wrap: anywhere; }
.cth-council-table td:last-child { white-space: nowrap; }

@media (max-width: 34rem) {
  .cth-council-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cth-council-table, .cth-council-table tbody, .cth-council-table tr, .cth-council-table th, .cth-council-table td { display: block; width: 100%; }
  .cth-council-table tr { margin-bottom: 12px; padding: 16px 18px 18px; border-radius: 24px; background: var(--surface); }
  .cth-council-table th, .cth-council-table td { padding: 4px 0; border: 0; }
  .cth-council-table tbody th { font-size: 18px; }
  .cth-council-table td:empty { display: none; }
  .cth-council-table td:last-child { white-space: normal; }
  .cth-council-table td::before { content: attr(data-label); display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--ink-65); }
}

/* ---------- Footer, as on the home page ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  margin: 128px 16px 0;
  padding: 72px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: block;
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-decoration: none;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

.footer-links a:hover { color: var(--ink); text-decoration-line: underline; }

.footer-credits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  text-align: center;
  color: var(--ink-65);
}

.footer-credits p { margin: 0; }
.footer-credits a { border-radius: 4px; color: inherit; }
.footer-credits a:hover { color: var(--ink); }

/* ---------- Wider screens ---------- */

@media (min-width: 768px) {
  .site-header { padding: 40px 72px 0; }
  .wordmark { column-gap: 10px; }
  .wordmark-name { font-size: 30px; }
  .wordmark-role { font-size: 18px; }
  .cth-page { gap: 112px; margin-top: 72px; }
  .cth-hero { padding: 64px 56px; }
  .cth-rules, .cth-how { padding: 28px 32px; }
  .cth-motion { padding: 36px 40px; }
  .cth-form { padding: 40px; }
  .site-footer { margin-inline: 24px; }
  .footer-credits { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .footer-credits p:first-child { justify-self: start; text-align: left; }
  .footer-credits p:last-child { justify-self: end; text-align: right; }
}

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

/* ---------- "On this page": a sidebar on wide screens, a pill and a list on narrower ones ---------- */
/* Built by js/close-to-home-toc.js from the list in the card at the top. Both mark the section
   being read (aria-current). */

.cth-side,
.cth-jump { display: none; }

.cth-page section:focus,
.cth-page h2:focus { outline: none; }

@media (min-width: 1100px) {
  .has-side-toc .cth-page {
    display: grid;
    grid-template-columns: 200px minmax(0, 760px);
    column-gap: 64px;
    row-gap: 112px;
    justify-content: center;
    width: min(100% - 48px, 1024px);
  }

  .has-side-toc .cth-page > * { grid-column: 2; min-width: 0; }
  .has-side-toc .cth-page > .cth-side { display: block; grid-column: 1; }
  .has-side-toc .cth-toc { display: none; }

  /* Pinned near the top as you read, as Wikipedia and most documentation sites do. A section
     you jump to lands with its heading level with the top of this list. */
  .cth-side-inner {
    position: sticky;
    top: 32px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .cth-side-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    color: var(--ink-45);
  }

  .cth-side ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--border); }
  .cth-side li { margin: 0; }

  .cth-side a {
    display: block;
    margin-left: -1px;
    padding: 6px 0 7px 14px;
    border-left: 2px solid transparent;
    color: var(--ink-65);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    transition: color 0.2s var(--ease-out-quint), border-color 0.2s var(--ease-out-quint);
  }

  .cth-side a:hover { color: var(--ink); }
  .cth-side a[aria-current] { border-left-color: var(--navy); color: var(--navy); font-weight: 500; }
}

@media (max-width: 1099px) {
  .cth-jump {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    min-height: 48px;
    padding: 0 18px 1px 16px;
    border: 0;
    border-radius: 9999px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--hairline), 0 10px 30px rgba(1, 14, 36, 0.16);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 436;
    line-height: 1.2;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    translate: -50% 16px;
    transition: opacity 0.25s var(--ease-out-quint), translate 0.25s var(--ease-out-quint), visibility 0.25s;
  }

  .cth-jump.is-shown { opacity: 1; visibility: visible; translate: -50% 0; }
  .cth-jump svg { flex: none; color: var(--navy); }
  .cth-jump-now { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.cth-sheet {
  position: fixed;
  inset: auto 8px calc(8px + env(safe-area-inset-bottom, 0px)) 8px;
  width: auto;
  max-width: none;
  max-height: min(80vh, 640px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline), 0 20px 60px rgba(1, 14, 36, 0.22);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cth-sheet::backdrop { background: rgba(0, 0, 0, 0.2); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cth-sheet-inner { padding: 14px 20px 18px; }
.cth-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cth-sheet-title { margin: 0; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--ink-65); }

.cth-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: var(--tint-5);
  color: var(--ink);
  cursor: pointer;
}

.cth-sheet-close:hover { background: var(--tint-10); }
.cth-sheet ol { margin: 0; padding: 0; list-style: none; }

.cth-sheet a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px 13px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}

.cth-sheet li:last-child a { border-bottom: 0; }

.cth-sheet a::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: transparent;
}

.cth-sheet a[aria-current] { color: var(--navy); font-weight: 500; }
.cth-sheet a[aria-current]::before { background: var(--navy); }

@media (min-width: 600px) {
  .cth-sheet { left: 50%; right: auto; bottom: 24px; width: 440px; translate: -50% 0; }
}
