/* reviewquotes: "Highlighted". See docs/design.md. */

@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/spectral-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/spectral-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/spectral-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/spectral-latin-ext-400-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/spectral-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/hanken-grotesk-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); }

:root {
  color-scheme: light dark;
  /* Marker strokes, one SVG per highlighter colour: wobbly edges, ink pooling at the ends. */
  --stroke-yellow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffe94a' fill-opacity='.92' d='M7 21C58 12 121 17 182 13s131-6 211 2l1 9-3 21 4 23-3 20C337 93 268 86 203 89S73 95 8 89L4 66l3-23-4-17z'/%3E%3Cpath fill='%23ffe94a' fill-opacity='.5' d='M3 26l4-5 9 1-2 66-6 1-4-23zM393 15l4 9-3 21 4 23-3 20-8 1 1-73z'/%3E%3C/svg%3E");
  --stroke-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ff9fcb' fill-opacity='.92' d='M7 21C58 12 121 17 182 13s131-6 211 2l1 9-3 21 4 23-3 20C337 93 268 86 203 89S73 95 8 89L4 66l3-23-4-17z'/%3E%3Cpath fill='%23ff9fcb' fill-opacity='.5' d='M3 26l4-5 9 1-2 66-6 1-4-23zM393 15l4 9-3 21 4 23-3 20-8 1 1-73z'/%3E%3C/svg%3E");
  --stroke-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath fill='%23a8f08c' fill-opacity='.92' d='M7 21C58 12 121 17 182 13s131-6 211 2l1 9-3 21 4 23-3 20C337 93 268 86 203 89S73 95 8 89L4 66l3-23-4-17z'/%3E%3Cpath fill='%23a8f08c' fill-opacity='.5' d='M3 26l4-5 9 1-2 66-6 1-4-23zM393 15l4 9-3 21 4 23-3 20-8 1 1-73z'/%3E%3C/svg%3E");
  --stroke-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath fill='%238ed8ff' fill-opacity='.92' d='M7 21C58 12 121 17 182 13s131-6 211 2l1 9-3 21 4 23-3 20C337 93 268 86 203 89S73 95 8 89L4 66l3-23-4-17z'/%3E%3Cpath fill='%238ed8ff' fill-opacity='.5' d='M3 26l4-5 9 1-2 66-6 1-4-23zM393 15l4 9-3 21 4 23-3 20-8 1 1-73z'/%3E%3C/svg%3E");
  --stroke-orange: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffc069' fill-opacity='.92' d='M7 21C58 12 121 17 182 13s131-6 211 2l1 9-3 21 4 23-3 20C337 93 268 86 203 89S73 95 8 89L4 66l3-23-4-17z'/%3E%3Cpath fill='%23ffc069' fill-opacity='.5' d='M3 26l4-5 9 1-2 66-6 1-4-23zM393 15l4 9-3 21 4 23-3 20-8 1 1-73z'/%3E%3C/svg%3E");
  --paper: #f3f5f9;
  --ink: #1b2350;
  --ink-soft: #565e7e;
  --rule: #d6dae6;
  --red-pen: #c2302a;
  --button-ink: #f3f5f9;

  --hl-yellow: #ffe94a;
  --hl-pink: #ff9fcb;
  --hl-green: #a8f08c;
  --hl-blue: #8ed8ff;
  --hl-orange: #ffc069;
  --hl-ink: #1b2350;

  --serif: 'Spectral', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  /* One centred frame for the whole site. Full-width bands (header, filters, lead, wall,
     footer) keep their lines edge to edge but pad their content into the frame. */
  --frame: 112rem;
  --edge: max(var(--gutter), calc((100% - var(--frame)) / 2));
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10153a;
    --ink: #e9ecf8;
    --ink-soft: #a9afcb;
    --rule: #2a3163;
    --red-pen: #ff7b72;
    --button-ink: #10153a;
  }
}

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

/* The hidden attribute must win over component display rules (e.g. .field { display: grid }). */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-kerning: normal;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.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;
}

.skip-link { position: absolute; left: var(--gutter); top: -3rem; padding: 0.5rem 0.75rem; background: var(--ink); color: var(--paper); z-index: 10; }
.skip-link:focus { top: 0.5rem; }

/* ---------- The highlighter ---------- */

/* A marker stroke behind inline text: an SVG ink shape (wobbly edges, ink pooling at the ends)
   stretched over each wrapped line (box-decoration-break), so text stays crisp on top. */
.hl {
  color: var(--hl-ink);
  background-image: var(--stroke);
  background-repeat: no-repeat;
  background-size: 100% 82%;
  background-position: 0 60%;
  padding: 0 0.22em;
  margin: 0 -0.22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* On the wall: a quick, low swipe under the line. It fills in when the quote is hovered or focused. */
.hl.hl-thin {
  color: inherit;
  background-size: 100% 34%;
  background-position: 0 96%;
}
/* On dark paper the text is light, so the swipe stays under the letters instead of through them. */
@media (prefers-color-scheme: dark) {
  .hl.hl-thin { background-size: 100% 13%; background-position: 0 100%; }
}

/* Each colour class picks its stroke (the SVGs are variables on :root). */
.hl-yellow { --hl: #ffe94a; --stroke: var(--stroke-yellow); }
.hl-pink { --hl: #ff9fcb; --stroke: var(--stroke-pink); }
.hl-green { --hl: #a8f08c; --stroke: var(--stroke-green); }
.hl-blue { --hl: #8ed8ff; --stroke: var(--stroke-blue); }
.hl-orange { --hl: #ffc069; --stroke: var(--stroke-orange); }

/* A small stroke used as a colour key next to category names. */
.swatch {
  display: inline-block;
  width: 1.1em;
  height: 0.7em;
  margin-right: 0.45em;
  vertical-align: -0.02em;
  background: var(--hl);
  border-radius: 0.3em 0.12em 0.35em 0.15em;
  transform: skewX(-8deg);
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem var(--edge);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.wordmark .hl { padding: 0 0.25em; }

.search { display: flex; flex: 0 1 20rem; }
.search input {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0.35rem;
  padding: 0.5rem 0.75rem;
}
.search input::placeholder { color: var(--ink-soft); }
.search input:focus-visible { outline-offset: 0; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9375rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
/* Long public names shouldn't push the header around. */
.site-nav a:not(.button) { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 40rem) { .site-nav a:not(.button) { max-width: 7.5rem; } }
.nav-review { display: inline-flex; align-items: center; gap: 0.4rem; }
.site-nav a.nav-review { max-width: none; overflow: visible; }
.badge { display: inline-block; min-width: 1.4rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--hl-yellow); color: var(--hl-ink); font-size: 0.8125rem; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
/* On phones, staff see Review instead of their name; the account page stays reachable from Review. */
@media (max-width: 40rem) { .nav-name-staff { display: none; } }

.button {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  padding: 0.55rem 0.9rem;
  border-radius: 0.35rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--button-ink);
  text-decoration: none;
  cursor: pointer;
}
.site-nav a.button:hover, .button:hover { text-decoration: none; background: color-mix(in srgb, var(--ink) 85%, var(--paper)); }

.button-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.button-quiet:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }

/* The main call to action: ink on a yellow marker stroke instead of a solid pill. */
.button.button-marker {
  border: 0;
  border-radius: 0;
  padding: 0.6rem 1.05rem;
  font-weight: 600;
  color: var(--hl-ink);
  background: var(--stroke-yellow) center / 100% 100% no-repeat;
}
.site-nav a.button-marker:hover, .button.button-marker:hover { background: var(--stroke-yellow) center / 104% 112% no-repeat; text-decoration: none; }

@media (max-width: 40rem) {
  .site-header { column-gap: 0.75rem; }
  .wordmark { font-size: 1.3125rem; }
  .site-nav { gap: 0.9rem; }
  .site-nav .button { padding: 0.5rem 0.75rem; }
  .search { order: 3; flex-basis: 100%; }
}

/* ---------- Filter bar ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 0.85rem var(--edge);
  border-bottom: 1px solid var(--rule);
}
.kinds { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.kinds a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  white-space: nowrap;
  text-decoration: none;
}
.kinds a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.kinds a[aria-current='true'] { border-color: var(--ink); font-weight: 600; }
.kinds .swatch { margin-right: 0; }
.kinds .count { color: var(--ink-soft); font-size: 0.8125rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.filter-selects { display: flex; gap: 0.5rem; align-items: center; }
.filter-selects select {
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
@media (max-width: 48rem) {
  .filter-bar { padding-block: 0.6rem; }
  .kinds { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); flex: 1 1 100%; }
  .kinds a { border-color: var(--rule); }
}

/* ---------- Lead: quote of the day ---------- */

.lead {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(15rem, 1fr);
  gap: 3rem 4.5rem;
  align-items: end;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--edge) clamp(2.5rem, 5vw, 4rem);
}
.lead .quote-text { font-size: clamp(2.1rem, 1.1rem + 3.4vw, 4.25rem); line-height: 1.16; letter-spacing: -0.015em; }
.lead .attribution { margin-top: 1.5rem; font-size: 1.0625rem; }
.lead-caption { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.9375rem; }
.lead-intro { color: var(--ink-soft); font-size: 1.0625rem; padding-bottom: 0.3rem; }
.lead-intro p { margin: 0; max-width: 24rem; }
.lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.25rem !important; }
@media (max-width: 60rem) {
  .lead { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

/* The one orchestrated moment: the stroke is drawn across the lead quote on load. */
@media (prefers-reduced-motion: no-preference) {
  /* Text starts in page ink (readable on dark paper too) and turns to highlighter ink as the stroke lands. */
  .lead .hl { animation: draw-stroke 900ms cubic-bezier(0.6, 0, 0.3, 1) 250ms both; }
  @keyframes draw-stroke {
    from { background-size: 0% 82%; color: var(--ink); }
    60% { color: var(--ink); }
    to { background-size: 100% 82%; color: var(--hl-ink); }
  }
}

/* ---------- Quote typography (shared) ---------- */

.quote-text {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: pretty;
  hyphens: manual;
}
.quote-text a { text-decoration: none; }

blockquote.quote-block { margin: 0; }

.attribution { margin: 0.9rem 0 0; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.45; }
.attribution .who { color: var(--ink); font-weight: 600; }
.attribution cite { font-style: italic; font-family: var(--serif); font-size: 1.06em; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.meta a { text-decoration: none; }
.meta a:hover { text-decoration: underline; color: var(--ink); }
.meta .kind { color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

/* ---------- The wall ---------- */

.browse { padding: clamp(1.5rem, 4vw, 3rem) var(--edge) 4rem; }
.lead + .browse { padding-top: 0; }

/* Columns flow like a pinboard; whitespace and type scale do the grouping (no cards, no rules). */
.wall { list-style: none; margin: 0; padding: 0; columns: 21rem; column-gap: clamp(2rem, 4vw, 4rem); }
.tile { break-inside: avoid; padding: 0 0 clamp(2.25rem, 4vw, 3.25rem); }
.tile article { display: block; }
.tile-link { display: block; color: inherit; text-decoration: none; border-radius: 2px; }
.tile .quote-text { max-width: 34em; }

/* Size follows length: one-liners shout, paragraphs stay readable. */
.size-xl .quote-text { font-size: clamp(1.9rem, 1.35rem + 1.5vw, 2.75rem); line-height: 1.16; letter-spacing: -0.012em; }
.size-l .quote-text { font-size: clamp(1.45rem, 1.2rem + 0.75vw, 1.85rem); line-height: 1.28; }
.size-m .quote-text { font-size: 1.25rem; line-height: 1.42; }
.size-s .quote-text { font-size: 1.0625rem; line-height: 1.55; }

/* Hover or keyboard focus: the swipe fills in to a full stroke. */
.tile-link .hl-thin { transition: background-size 220ms ease-out, background-position 220ms ease-out, color 220ms; }
.tile-link:hover .hl-thin, .tile-link:focus-visible .hl-thin { background-size: 100% 82%; background-position: 0 60%; color: var(--hl-ink); }
@media (prefers-reduced-motion: reduce) { .tile-link .hl-thin { transition: none; } }

.credit { margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-soft); }
.credit .swatch { width: 1em; height: 0.62em; margin-right: 0.5em; }
.credit .who { color: var(--ink); font-weight: 600; }
.credit cite { font-family: var(--serif); font-style: italic; font-size: 1.06em; }

.results-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin: 0 0 2rem; }
.results-line h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.2; }

/* Work lists (your quotes, review queue, removal requests) keep a simple divided list. */
.stream { list-style: none; margin: 0; padding: 0; }
.stream > li { padding: 1.75rem 0 2rem; }
.stream > li + li { border-top: 1px solid var(--rule); }
.stream > li:first-child { padding-top: 0.25rem; }
.stream .quote-text { font-size: clamp(1.3125rem, 1.15rem + 0.6vw, 1.5rem); line-height: 1.45; max-width: 38em; }

.more { margin-top: 1rem; }

.empty { padding: 2rem 0; }
.empty p { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.3125rem; }

/* ---------- Single quote and profile pages ---------- */

.page {
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 4rem;
  max-width: calc(58rem + var(--gutter) * 2);
  /* Single-column pages sit centred in the frame; their text stays left-aligned. */
  margin-inline: auto;
}
/* Only the single quote page's own quote, not quote lists inside .page (profiles). */
.page > .quote-block .quote-text { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.24; letter-spacing: -0.01em; }
.page > .attribution { margin-top: 1.5rem; font-size: 1.0625rem; }

.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  max-width: var(--measure);
}
.details dt { color: var(--ink-soft); }
.details dd { margin: 0; }

.back { display: inline-block; margin-bottom: 2rem; font-size: 0.9375rem; color: var(--ink-soft); }

.profile-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.15; margin: 0; }
.profile-head p { margin: 0.5rem 0 0; color: var(--ink-soft); max-width: var(--measure); }
.profile-head { margin-bottom: 2.5rem; }

.notice h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); line-height: 1.2; margin: 0 0 1rem; }
.notice p { max-width: 36rem; margin: 0 0 1rem; }

/* ---------- Quote page ---------- */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.9375rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .swatch { width: 1em; height: 0.62em; }
.quote-credit { margin: 1.5rem 0 0; font-size: 1.125rem; line-height: 1.5; color: var(--ink-soft); max-width: 44rem; }
.quote-credit .who { color: var(--ink); font-weight: 600; }
.quote-credit cite { font-family: var(--serif); font-style: italic; font-size: 1.06em; }
.quote-credit a { color: var(--ink); }
.quote-context { margin: 0.5rem 0 0; font-size: 0.9375rem; color: var(--ink-soft); max-width: 44rem; }
.quote-context a { color: inherit; }
.quote-context a:hover { color: var(--ink); }
.quote-page .actions { margin-top: 1.75rem; }

.related { padding-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--rule); }
.related-group + .related-group { margin-top: clamp(2rem, 4vw, 3rem); }
.related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; }
.related-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); }
.another { margin: 0.5rem 0 0; }
.related .removal-link { margin-top: 2.5rem; }

/* ---------- Forms and account pages ---------- */

.page.narrow { max-width: calc(34rem + var(--gutter) * 2); }
.page.wide { max-width: calc(var(--frame) + var(--gutter) * 2); }
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); line-height: 1.15; margin: 0 0 0.75rem; }
.lede { margin: 0 0 2rem; color: var(--ink-soft); }
.fine-print { margin: 1.5rem 0 0; font-size: 0.875rem; color: var(--ink-soft); }

.button-wide { display: block; text-align: center; padding-block: 0.8rem; }

.form { display: grid; gap: 1.5rem; }
.or { margin: 1.5rem 0 1rem; color: var(--ink-soft); font-size: 0.9375rem; }
.button.google { max-width: 22rem; }
.field .code-input { font-size: 1.5rem; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; max-width: 14rem; }
.code-help { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--ink-soft); display: grid; gap: 0.5rem; justify-items: start; }
.code-help p { margin: 0; }
.code-help a { color: var(--ink); }
.inline-form { margin: 0; }
.link-button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.field { display: grid; gap: 0.35rem; align-content: start; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 60%, white 40%);
  border: 1px solid color-mix(in srgb, var(--ink) 30%, var(--paper));
  border-radius: 0.35rem;
  padding: 0.6rem 0.75rem;
  width: 100%;
}
@media (prefers-color-scheme: dark) {
  .field input, .field textarea, .field select { background: color-mix(in srgb, var(--paper) 85%, white 15%); }
}
.field textarea { resize: vertical; line-height: 1.45; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 1px; }
.field [aria-invalid='true'] { border-color: var(--red-pen); }
.help { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }
.field-error, .form-error { margin: 0; color: var(--red-pen); font-size: 0.9375rem; font-weight: 500; }
.form-error { margin-bottom: 1.5rem; }
.form-success { margin: 0 0 1.5rem; font-weight: 500; }
.form-success::before { content: ''; display: inline-block; width: 0.9em; height: 0.6em; margin-right: 0.5em; background: var(--hl-green); border-radius: 0.3em 0.12em 0.35em 0.15em; transform: skewX(-8deg); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.signout { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }

/* ---------- Submission form ---------- */

.submit-page { max-width: calc(44rem + var(--gutter) * 2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 40rem) { .field-row { grid-template-columns: 1fr; } }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { font-weight: 600; font-size: 0.9375rem; padding: 0; margin-bottom: 0.5rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 1.1rem) 55%, calc(100% - 0.8rem) 55%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; padding-right: 2rem; }

/* Kind of review: each option shows its highlighter colour; the chosen one gets the full stroke. */
.category-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem; }
.category-option {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, var(--paper));
  border-radius: 0.4rem;
  cursor: pointer;
}
.category-option:hover { border-color: var(--ink-soft); }
.category-option input { position: absolute; opacity: 0; pointer-events: none; }
.category-option:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.category-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.category-option:has(input:checked) .category-name { font-weight: 600; }
.category-name { display: flex; align-items: center; font-size: 0.9375rem; }
.category-description { font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.4; }

.preview { padding: 1.25rem 0 0.25rem; }
.preview-label { margin: 0 0 0.5rem; font-size: 0.875rem; color: var(--ink-soft); }
.preview .quote-text { font-size: clamp(1.3125rem, 1.15rem + 0.6vw, 1.5rem); line-height: 1.45; }

.anonymous-note { margin: -0.5rem 0 0; padding: 0.75rem 0.9rem; border-left: 3px solid var(--hl-green); background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: 0.9375rem; }

.field .checkbox { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.field .checkbox input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; flex: none; accent-color: var(--ink); }

.moderator-note { margin: 0 0 1.5rem; padding: 0.9rem 1rem; border-left: 3px solid var(--red-pen); background: color-mix(in srgb, var(--red-pen) 6%, transparent); }
.moderator-note p { margin: 0; }
.moderator-note .moderator-note-label { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.my-quotes .moderator-note { margin: 1rem 0 0; }

/* Your quotes: status reads as words; the colour only supports it. */
.status { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.6rem; font-size: 0.875rem; font-weight: 600; }
.status::before { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--ink-soft); }
.status-approved::before { background: #2e9d4f; }
.status-changes_requested::before, .status-rejected::before, .status-removed::before { background: var(--red-pen); }
.status-pending::before { background: transparent; border: 2px solid var(--ink-soft); width: 0.45rem; height: 0.45rem; }
.my-quotes .quote-text { font-size: 1.3125rem; line-height: 1.45; }

/* ---------- Review queue and moderation ---------- */

.admin-links { display: inline-flex; gap: 1.25rem; align-items: center; }
.admin-links a { display: inline-flex; gap: 0.4rem; align-items: center; }
.title-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; max-width: var(--measure); }
.queue-item { display: block; text-decoration: none; margin: -0.75rem -1rem; padding: 0.75rem 1rem; border-radius: 0.4rem; }
.queue-item:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.queue .quote-text { font-size: 1.3125rem; line-height: 1.45; }
.queue .meta { margin-bottom: 0; }

.review-page { max-width: calc(68rem + var(--gutter) * 2); }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; align-items: start; }
@media (max-width: 56rem) { .review-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.review-quote { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.3; }
.review-side { position: sticky; top: 1.5rem; padding: 1.25rem; border: 1px solid var(--rule); border-radius: 0.5rem; background: color-mix(in srgb, var(--paper) 70%, white 30%); }
@media (prefers-color-scheme: dark) { .review-side { background: color-mix(in srgb, var(--paper) 90%, white 10%); } }
@media (max-width: 56rem) { .review-side { position: static; } }
.review-side h2 { margin: 0; font-size: 1.0625rem; }
.decision-form { gap: 1.25rem; }
.decision-form .checkbox + .checkbox { margin-top: 0.35rem; }
.checklist { padding: 0.9rem 1rem; border-left: 3px solid var(--hl-green); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.checklist .help { margin-bottom: 0.5rem; }
.notice-box p { margin: 0; }
.review-section { margin-top: 2.5rem; max-width: var(--measure); }
.review-section h2 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.75rem; }
.similar, .history { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; font-size: 0.9375rem; }
.similar a { font-family: var(--serif); font-size: 1.0625rem; }
.history p { margin: 0.25rem 0 0; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.verification-note { margin: 0.25rem 0 0; font-size: 0.875rem; }
.staff-only { padding: 0.9rem 1rem; border: 1px dashed var(--rule); border-radius: 0.4rem; display: grid; gap: 1rem; }
.details .swatch { margin-right: 0.4rem; }

/* ---------- Admin: users ---------- */

.admin-section { margin: 0 0 2.75rem; }
.admin-section h2 { font-size: 1.0625rem; margin: 0 0 1rem; }
.invite-form, .user-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; margin-bottom: 0.75rem; }
.invite-form input[type='email'], .user-filter input[type='search'], .invite-form select, .user-filter select {
  font: inherit; font-size: 0.9375rem; color: var(--ink); background: transparent;
  border: 1px solid var(--rule); border-radius: 0.35rem; padding: 0.5rem 0.75rem;
}
.invite-form input[type='email'], .user-filter input[type='search'] { min-width: 16rem; }
.invite-form .checkbox { display: inline-flex; gap: 0.5rem; align-items: center; font-size: 0.9375rem; }
.invites { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9375rem; }
.invites li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.6rem 0.9rem; border: 1px dashed var(--rule); border-radius: 0.4rem; }
.invites form { margin: 0; }

.role-badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; border: 1px solid var(--rule); }
.role-admin { background: var(--hl-yellow); color: var(--hl-ink); border-color: transparent; }
.role-approver { background: color-mix(in srgb, var(--hl-blue) 70%, transparent); color: var(--hl-ink); border-color: transparent; }
.status-pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.8125rem; border: 1px solid var(--rule); }
.status-suspended { border-color: var(--red-pen); color: var(--red-pen); }
.status-deleted { color: var(--ink-soft); }
.users .row-suspended td, .users .row-deleted td { color: var(--ink-soft); }
.users .row-actions { white-space: nowrap; }
.users .row-actions .confirm summary { padding: 0.3rem 0.6rem; font-size: 0.8125rem; }
.users .row-actions .confirm-body { position: absolute; right: var(--gutter); z-index: 5; background: var(--paper); box-shadow: 0 6px 24px rgb(16 21 58 / 0.14); white-space: normal; }
.user-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 1.5rem; }
.user-detail .details { margin-bottom: 2.5rem; }
.self-note { margin: 0 0 2.5rem; padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: 0.4rem; }
.user-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.9375rem; }
.user-quotes .status { margin: 0 0.6rem 0 0; }
.user-quotes a { font-family: var(--serif); color: var(--ink); }

/* Confirmation steps without browser dialogs: the button opens a small form beneath it. */
.action-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-start; }
.action-row form { margin: 0; }
.confirm summary { list-style: none; cursor: pointer; }
.confirm summary::-webkit-details-marker { display: none; }
.confirm[open] summary { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.confirm-body { margin-top: 0.6rem; padding: 0.9rem 1rem; max-width: 26rem; border: 1px solid var(--rule); border-radius: 0.4rem; display: grid; gap: 0.75rem; font-size: 0.9375rem; }
.confirm-body p { margin: 0; }
.confirm-danger .confirm-body { border-color: var(--red-pen); }
.confirm-danger summary { color: var(--red-pen); border-color: color-mix(in srgb, var(--red-pen) 40%, var(--rule)); }
.button.button-danger { background: var(--red-pen); border-color: var(--red-pen); color: #fff; }
.button.button-danger:hover { background: color-mix(in srgb, var(--red-pen) 85%, black); }


.user-search { display: flex; gap: 0.5rem; max-width: 30rem; margin-bottom: 1.5rem; }
.user-search input { flex: 1; font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 0.35rem; padding: 0.5rem 0.75rem; }
.table-wrap { overflow-x: auto; }
.users { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.users th { text-align: left; font-weight: 600; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.users td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.users .num { text-align: right; font-variant-numeric: tabular-nums; }
.users .email { color: var(--ink-soft); }
.role-form { display: flex; gap: 0.4rem; align-items: center; }
.role-form select { font: inherit; font-size: 0.875rem; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 0.3rem; padding: 0.3rem 0.4rem; }
.button-small { padding: 0.3rem 0.6rem; font-size: 0.8125rem; }

/* ---------- Share panel ---------- */

.share { display: none; margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--rule); border-radius: 0.6rem; max-width: 58rem; scroll-margin-top: 1.5rem; }
/* Hidden until asked for: the Share button opens it (.is-open); without JavaScript, the #share link does (:target). */
.share.is-open, .share:target { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .share.is-open { animation: share-open 180ms ease-out; }
  @keyframes share-open { from { opacity: 0; transform: translateY(-0.4rem); } to { opacity: 1; transform: none; } }
}
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.share h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.share h2:focus { outline: none; }
@media (max-width: 40rem) { .share { padding: 1rem; margin-inline: -0.25rem; } }
.share-grid { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 48rem) { .share-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } }
.share fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; }
.share legend { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.5rem; padding: 0; }
.style-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.style-option, .format-option { position: relative; cursor: pointer; }
.style-option input, .format-option input { position: absolute; opacity: 0; pointer-events: none; }
.style-option { display: grid; gap: 0.35rem; font-size: 0.875rem; padding: 0.4rem; border: 1px solid var(--rule); border-radius: 0.4rem; }
.style-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.style-option:has(input:focus-visible), .format-option:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Miniature of each style, drawn in CSS so the picker doesn't download four images. */
.style-swatch { position: relative; display: block; height: 3rem; border-radius: 0.25rem; overflow: hidden; }
.style-swatch span { position: absolute; left: 14%; right: 22%; top: 34%; height: 0.55rem; border-radius: 1px; }
.style-swatch span::after { content: ''; position: absolute; left: 0; right: 30%; top: 0.95rem; height: 0.55rem; background: inherit; border-radius: 1px; }
.swatch-highlighter { background: #f3f5f9; border: 1px solid #d6dae6; }
.swatch-highlighter span { background: var(--hl); }
.swatch-night { background: #10153a; }
.swatch-night span { background: var(--hl); opacity: 0.9; height: 0.3rem; }
.swatch-night span::after { height: 0.3rem; top: 0.7rem; }
.swatch-poster { background: #0d0d0f; }
.swatch-poster span { background: #fff; left: 18%; right: 18%; height: 0.45rem; }
.swatch-poster span::after { left: 15%; right: 15%; height: 0.45rem; top: 0.85rem; }
.swatch-redpen { background: repeating-linear-gradient(#fbfbf7 0 0.6rem, #c9d7ee 0.6rem calc(0.6rem + 1px)); border-left: 2px solid #e6a3a3; }
.swatch-redpen span { background: #c2302a; height: 0.2rem; transform: rotate(-2deg); border-radius: 2px; }
.swatch-redpen span::after { height: 0.2rem; top: 0.6rem; }

.format-options { display: grid; gap: 0.35rem; }
.format-option > span { display: block; padding: 0.4rem 0.6rem; border: 1px solid var(--rule); border-radius: 0.35rem; font-size: 0.875rem; }
.format-option:has(input:checked) > span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.format-option .muted { font-weight: 400; font-variant-numeric: tabular-nums; }

.share-preview { margin: 0; display: flex; justify-content: center; align-items: flex-start; background: color-mix(in srgb, var(--ink) 5%, transparent); border-radius: 0.5rem; padding: 1rem; }
.share-preview img { display: block; height: auto; max-width: 100%; border-radius: 0.25rem; box-shadow: 0 1px 2px rgb(27 35 80 / 0.12), 0 8px 24px rgb(27 35 80 / 0.10); transition: opacity 150ms; }
.share-preview.format-square img { max-width: min(100%, 26rem); }
.share-preview.format-story img { max-width: min(100%, 15rem); }
.share-preview.loading img { opacity: 0.45; }
@media (prefers-reduced-motion: reduce) { .share-preview img { transition: none; } }

.share-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.share-to { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1rem; margin: 1rem 0 0; font-size: 0.9375rem; }
.share-to a { color: var(--ink); }

/* ---------- Removal requests ---------- */

.removal-link { margin: 2rem 0 0; font-size: 0.875rem; color: var(--ink-soft); }
.removal-quote { margin: 0 0 2rem; padding: 1.25rem 0; border-block: 1px solid var(--rule); }
.removal-quote .quote-text { font-size: 1.3125rem; line-height: 1.45; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.removals .details { margin-top: 1rem; }
.removals .reason { white-space: pre-wrap; }
.removal-decision { margin-top: 1.25rem; max-width: var(--measure); }
.unpublish-form { margin-top: 1.25rem; gap: 0.75rem; }

/* ---------- About ---------- */

.prose { max-width: calc(40rem + var(--gutter) * 2); }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin: 2.75rem 0 0.75rem; }
.prose p, .prose li { max-width: 38rem; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: 0.6rem; }
.prose li::marker { color: var(--ink-soft); }

/* ---------- Admin: visits ---------- */

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; max-width: 48rem; margin: 0 0 2.5rem; }
.stat-tile { padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: 0.5rem; }
.stat-value { margin: 0; font-family: var(--serif); font-size: 2.25rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.9375rem; }
.stats-section { margin-bottom: 2.75rem; }
.stats-section h2 { font-size: 1.0625rem; margin: 0 0 1rem; }
.stats-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); gap: 3rem; }
@media (max-width: 56rem) { .stats-columns { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Single-series bar chart: ink marks, recessive grid, tooltip on hover and focus. */
.views-chart { display: block; width: 100%; max-width: 64rem; height: auto; overflow: visible; font-family: var(--sans); }
.views-chart .grid line { stroke: var(--rule); stroke-width: 1; }
.views-chart .grid text, .views-chart .axis-label { fill: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.views-chart .baseline { stroke: var(--ink-soft); stroke-width: 1; }
.views-chart .mark { fill: var(--ink); }
.views-chart .hit { fill: transparent; }
.views-chart .bar { outline: none; }
.views-chart .bar:hover .mark, .views-chart .bar:focus .mark { fill: color-mix(in srgb, var(--ink) 70%, var(--paper)); }
.views-chart .bar:focus .hit { stroke: var(--ink); stroke-width: 2; }
.views-chart .tip { display: none; pointer-events: none; }
.views-chart .bar:hover .tip, .views-chart .bar:focus .tip { display: inline; }
.views-chart .tip rect { fill: var(--ink); }
.views-chart .tip text { fill: var(--paper); font-size: 12px; font-weight: 500; }
.table-view { margin-top: 1rem; font-size: 0.9375rem; max-width: 32rem; }
.table-view summary { cursor: pointer; color: var(--ink-soft); }
.table-view table { margin-top: 0.75rem; }

.top-quotes { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.top-quotes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.top-quotes li a { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.4; text-decoration: none; color: var(--ink); }
.top-quotes .muted { grid-column: 1; font-size: 0.8125rem; }
.top-quotes .num { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Bookmarklet ---------- */

.bookmarklet-install { margin: 2rem 0 0.5rem; padding: 1.75rem; border: 1px dashed var(--rule); border-radius: 0.6rem; display: grid; gap: 0.75rem; justify-items: start; }
.bookmarklet-button { font-size: 1.125rem; padding: 0.8rem 1.4rem; cursor: grab; }
.bookmarklet-button:active { cursor: grabbing; }
.bookmarklet-hint { margin: 0; font-weight: 500; }
kbd { font: inherit; font-size: 0.875em; padding: 0.05rem 0.4rem; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 0.3rem; }
.prefill-note { margin: -0.5rem 0 1.5rem; padding: 0.75rem 1rem; border-left: 3px solid var(--hl-yellow); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.prefill-tip { margin: -0.75rem 0 1.5rem; font-size: 0.9375rem; color: var(--ink-soft); }
.submitted-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-bottom: 1.5rem; }
.submitted-row .form-success { margin: 0; }

/* ---------- Footer ---------- */

.consent-bar {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  z-index: 20;
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  background: var(--paper);
  box-shadow: 0 6px 24px rgb(16 21 58 / 0.14);
  font-size: 0.9375rem;
}
.consent-bar p { margin: 0; flex: 1 1 18rem; }
.consent-actions { display: flex; gap: 0.6rem; }


.site-footer {
  padding: 2rem var(--edge) 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.site-footer p { margin: 0; max-width: var(--measure); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1rem; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { text-decoration: underline; }
