/* ==========================================================================
   Paper Air — the house design language

   The system is Starting Point; the look it wears is Paper Air, and the two
   are separate on purpose: the system gains releases, the look gains
   refinements, and neither should be mistaken for the other.

   Influences, for talking about it: Apple's own type stack, concentric radii,
   the translucent capsule, tactile press. It is not a copy of anything — these
   greys, these hairlines, this voice.

   THE FIVE COMMANDMENTS
   1. NO ICONS in an action row, in navigation, or in a list of channels.
      Words in the menu voice scan faster than pictures that need decoding.
      An icon survives only where a word cannot do the job. `.acts` is the
      mechanism: put it on a row and its buttons become menu-voice pills with
      their icons hidden.
   2. THE MENU VOICE is the one costume for an action chip — 600 11.5px, .5px
      tracking, uppercase, 10px/15px, a full pill. Hover lifts by 1px; press
      scales to .95. Reduced motion stills both, always.
   3. Uppercase micro-pills are for ACTION CHIPS, never form submits. "Save"
      and "Add this date" stay sentence case in a standard .btn — capitals on
      a form shout.
   4. COLOUR MEANS SOMETHING. One filled button per surface: the thing
      somebody came to do. Everything else is neutral. A tone lives in a 5px
      dot, not a painted box, and the accent is never spent on a label.
   5. One component, one recipe. A surface that wants the look wears the
      shared class or copies the exact spec. It does not approximately match.

   Every value here is a token, and Admin → Look writes a handful of them per
   site. Nothing in this file needs editing to give a site its own colours,
   heading face or spacing.
   ========================================================================== */

/* Poppins is bundled rather than fetched, so no site built from this makes a
   request to a font host on every page load — which is a privacy question for
   a client site, not only a speed one. It is offered as a heading face in
   Admin → Look; it is deliberately not the body face any more. See --font.

   Its @font-face rules are LINKED from each layout, not @imported here. An
   @import is found only after this file has arrived and been parsed, which
   makes it a second request in series before anything can be drawn. */

/* --------------------------------------------------------------------------
   1. Tokens — light is the base, dark overrides only what changes.
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Paper: warm off-whites rather than pure white, so the page reads as a
     printed sheet rather than a screen. */
  --paper:        #faf7f0;
  --paper-raised: #fffdf8;
  --paper-sunk:   #f2eee4;
  --paper-edge:   #e6e0d2;
  --paper-line:   #ded7c6;

  /* THE FOOTER HAS ITS OWN COLOUR, and deliberately not --paper-sunk.
     (Dominic, 29 Sept 2026: white in light, black in dark.)

     It used to share the recessed tone, which is also worn by code blocks,
     table headings, disabled fields and every hover state on the site — 39
     places. Making the footer white by moving that token would have taken all
     of them with it, and a hover the same colour as the page is not a hover.
     So the footer is its own token: one name, one job, changed without
     touching anything else.

     Note this runs against the rest of the palette on purpose. Everything
     else here is a warm off-white so the page reads as a printed sheet; the
     footer is now the one true white, which makes it advance rather than
     recede. That is the intended effect, not an oversight. */
  --footer-bg:    #ffffff;
  /* The hover tint inside the footer. It has to be a step away from
     --footer-bg, not from the page, or the hover disappears — which is what
     happened the moment the footer went white and black. */
  --footer-tint:  #f1efe9;

  /* Ink */
  --ink:          #24211c;
  --ink-soft:     #514a3f;
  --ink-muted:    #6a6355;   /* 5.6:1 on paper — readable, not just decorative */
  --ink-faint:    #736b5c;   /* 4.6:1 — the quietest text still has to be read */

  /* The organisation’s blue */
  --accent:       #0053c2;
  --accent-hover: #00429b;
  --accent-soft:  #e6eefc;
  --accent-ink:   #00306f;
  /* THE INK THAT SITS ON THE ACCENT, and it is not always white.
     A dark theme needs a lighter accent to lift off the page, and white text
     on a light blue is about 2.3:1 — a filled button nobody outside this room
     can read. So the ink flips with the theme: white on a dark fill, the page
     colour on a light one. Every filled button reaches for this rather than
     typing #fff, which is what let the dark theme ship unreadable. */
  --on-accent:    #ffffff;

  /* Supporting */
  --green:        #2c7a52;
  --green-soft:   #e3f1e9;
  --amber:        #a86a1a;
  --amber-soft:   #fbf0dd;
  --red:          #a83232;
  --red-soft:     #fbe7e5;

  /* THE KEYBOARD FOCUS RING — ink, not the accent.
     A ring has to reach 3:1 against what is behind it or a keyboard user
     cannot see where they are, and the accent is a colour each site chooses:
     a pale one fails outright. Ink measures about 15:1 on any page colour the
     contrast check will allow, and it is the one value that cannot be made
     wrong by a choice on the Look screen. */
  --focus:        var(--ink);

  /* THE BOUNDARY OF A CONTROL, and nothing else.
     WCAG 1.4.11 asks 3:1 of any visual boundary somebody needs to see in
     order to operate something. The hairline that separates a card is about
     1.2:1 on paper — decorative, and rightly so — but every text field and
     every radio was drawn in it too, which made them invisible rectangles to
     a low-vision visitor. This is for the things you have to aim at: inputs,
     textareas, selects, radios, checkboxes. IT IS NOT FOR CARDS — painting
     every hairline on the site this dark would wreck the look for no gain. */
  --edge-ctl:     #8b8577;

  /* Light greys. The paper palette is warm all the way through; the enquiry
     widget wants a cooler, quieter surface behind the conversation so the
     white bubbles sitting on it have something to lift off. */
  --grey-1:       #eeeef1;
  --grey-2:       #e2e2e6;
  --grey-3:       #cfcfd6;
  --grey-ink:     #6d6c70;

  /* Depth. Paper casts a soft, warm shadow — never a grey drop shadow. */
  --shadow-sm: 0 1px 2px rgba(60, 48, 30, .06), 0 1px 1px rgba(60, 48, 30, .04);
  --shadow:    0 2px 6px rgba(60, 48, 30, .07), 0 1px 2px rgba(60, 48, 30, .05);
  --shadow-lg: 0 12px 32px rgba(60, 48, 30, .10), 0 3px 8px rgba(60, 48, 30, .06);

  /* GEOMETRY — tightened for Paper Air.
     Was 6/10/16, which is a lot of curve at small sizes. Big radii read
     friendly and consumer; tighter ones read precise, which is what a site
     somebody runs their organisation from wants. --radius is the one Admin →
     Look writes, and the others follow from it, so a site that chooses softer
     corners gets them everywhere at once rather than in patches.

     CONCENTRIC RADII: when one rounded thing sits inside another, the inner
     radius is the outer radius minus the gap between them. --r-in does that
     arithmetic; use it rather than guessing, or the two curves fight. */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --r-in: calc(var(--radius-lg) - var(--space-3));

  --space-1: calc(.25rem * var(--density));  --space-2: calc(.5rem * var(--density));
  --space-3: calc(.75rem * var(--density));  --space-4: calc(1rem * var(--density));
  --space-5: calc(1.5rem * var(--density));  --space-6: calc(2rem * var(--density));
  --space-7: calc(3rem * var(--density));    --space-8: calc(4rem * var(--density));
  --space-9: calc(6rem * var(--density));

  --measure: 68ch;
  /* What a line of body text widens to on a page that fills its column.
     68ch is the comfortable reading measure; this is the generous one, used
     where a page has pictures that want the room and the writing should not
     be left in a narrow strip beside them.

     In rem rather than ch on purpose. A ch is the width of a "0" in the
     element's OWN font, so 90ch on an <h2> comes out wider than the page —
     headings never cap and sit flush left while the paragraphs under them are
     centred. One fixed measure keeps a heading and its paragraph on the same
     left edge, which is the whole point. */
  --measure-wide: 61rem;
  --container: 1440px;
  --container-narrow: 760px;

  /* THE BODY FACE, and why it is what it is.

     Apple-native first: a Mac and an iPhone draw this in San Francisco, which
     is the single change that makes an interface read as belonging on the
     machine rather than having been dropped onto it. SF Pro cannot legally be
     self-hosted, so the stack is how a Mac gets it natively.

     Then Inter, for anyone who has it. Then POPPINS, which this site already
     carries — deliberately ahead of Segoe UI, because a Windows visitor
     falling through to Segoe gets the one face on this list that was not
     chosen. Poppins is bundled, so that costs no request.

     Body text is not offered in Admin → Look on purpose: a site can be tried
     in a different heading voice without anybody being able to make it hard to
     read. */
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* HOW BOLD A BOLD IS.
     An inline <b> at 700 against body copy reads as shouting. 530 is
     unmistakably emphasis and stops there; 500 starts to disappear. --w-lab is
     a <b> being used as a small block label, which needs a little more to hold
     a line on its own. Use the tokens; do not type a number. */
  --w-em:  530;
  --w-lab: 600;

  /* THE TYPE SCALE. Seven steps and nothing below 13px.
     A stylesheet with twenty-five hand-typed font sizes is not a design, it is
     twenty-five decisions taken on twenty-five different days — and a wall of
     competing small text is what makes a page feel busy. If something wants a
     size that is not here, the honest fix is almost always the nearest step. */
  --fs-fine:  .8125rem;   /* legal, footnotes, timestamps — the floor       */
  --fs-sm:    .9rem;      /* nav, meta, captions, card sub-text             */
  --fs-lead:  clamp(1.08rem, 1rem + .34vw, 1.3rem);   /* intros, standfirsts */
  --fs-display: clamp(2.4rem, 1.8rem + 3vw, 3.4rem);  /* a price, a big stat */

  /* Headings have tokens of their own so one site can wear a different face
     without the body text moving. Admin → Look writes these; the stylesheet
     never needs editing for it. --heading-scale multiplies every heading size
     at once, so a face that runs small can be brought up in one number. */
  --heading-font:    var(--font);
  --heading-weight:  600;
  --heading-tracking: -.018em;
  --heading-scale:   1;

  /* THE AIR IN PAPER AIR: one number for how much room the page gets, and
     everything else multiplied by it. Air is the cheapest premium signal
     there is, and the clamps mean the extra room appears on a desktop and
     quietly goes away on a phone, where it would only mean more scrolling. */
  --density: 1;
  --sp-section: calc(clamp(64px, 7vw, 104px) * var(--density));
  --sp-block:   calc(clamp(28px, 3vw, 44px) * var(--density));
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --header-h: 68px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  /* Dark paper: a warm charcoal, not a blue-black, so it still reads as paper. */
  --paper:        #171512;
  --paper-raised: #201d19;
  --paper-sunk:   #121110;
  --paper-edge:   #322d26;
  --paper-line:   #3d372e;
  --footer-bg:    #000000;
  --footer-tint:  #1c1c1c;

  --ink:          #f0ebe1;
  --ink-soft:     #ccc4b6;
  --ink-muted:    #a9a190;
  --ink-faint:    #968e7e;

  --accent:       #6aa5ff;
  --accent-hover: #8ebcff;
  --accent-soft:  #10203c;
  --accent-ink:   #b9d3ff;
  /* Ink on the accent, not white: #6aa5ff carries near-black at 8.9:1 and
     white at 2.3. See --on-accent above. */
  --on-accent:    #10131a;

  --green:        #6bbd8f;
  --green-soft:   #17281f;
  --amber:        #d9a24e;
  --amber-soft:   #2c2318;
  --red:          #e08a80;
  --red-soft:     #2e1c1a;

  --focus:        var(--ink);
  /* Lighter than its light-mode twin for the same reason: 3:1 against a dark
     field, not against a pale one. */
  --edge-ctl:     #7d776c;

  --grey-1:       #1c1a17;
  --grey-2:       #26231f;
  --grey-3:       #3a352d;
  --grey-ink:     #9a9287;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow:    0 2px 8px rgba(0, 0, 0, .35);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, .45);
}

/* Respect the operating system when the visitor has expressed no preference. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper:        #171512;
    --paper-raised: #201d19;
    --paper-sunk:   #121110;
    --paper-edge:   #322d26;
    --paper-line:   #3d372e;
    --footer-bg:    #000000;
    --footer-tint:  #1c1c1c;
    --ink:          #f0ebe1;
    --ink-soft:     #ccc4b6;
    --ink-muted:    #a9a190;
    --ink-faint:    #968e7e;
    --accent:       #6aa5ff;
    --accent-hover: #8ebcff;
    --accent-soft:  #10203c;
    --accent-ink:   #b9d3ff;
    --on-accent:    #10131a;
    --green:        #6bbd8f;  --green-soft: #17281f;
    --amber:        #d9a24e;  --amber-soft: #2c2318;
    --red:          #e08a80;  --red-soft:   #2e1c1a;
    --focus:        var(--ink);
    --edge-ctl:     #7d776c;
    --grey-1: #1c1a17;  --grey-2: #26231f;  --grey-3: #3a352d;  --grey-ink: #9a9287;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow:    0 2px 8px rgba(0, 0, 0, .35);
    --shadow-lg: 0 14px 36px rgba(0, 0, 0, .45);
  }
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Several components below set `display`, which would otherwise win against
   the browser default for [hidden]. Anything marked hidden stays hidden. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  /* A little larger on a wide screen, where the reader is further away and
     the measure is longer. */
  font-size: clamp(1rem, .97rem + .16vw, 1.075rem);
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* The faintest paper grain. Two tiny gradients, no image request. */
  background-image:
    radial-gradient(circle at 15% 12%, rgba(140, 120, 80, .028), transparent 45%),
    radial-gradient(circle at 85% 78%, rgba(90, 120, 140, .022), transparent 42%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  line-height: 1.22;
  letter-spacing: var(--heading-tracking);
  color: var(--ink);
  text-wrap: balance;
}
/* A big heading wants tighter tracking and a tighter leading than a small one:
   at 3rem, 1.22 line-height opens a gap you can drive a bus through. These are
   the display sizes, so they get the display treatment. */
h1 { font-size: calc(clamp(2rem, 1.4rem + 2.6vw, 3.1rem) * var(--heading-scale)); font-weight: calc(var(--heading-weight) + 100); letter-spacing: calc(var(--heading-tracking) - .008em); line-height: 1.07; }
h2 { font-size: calc(clamp(1.6rem, 1.24rem + 1.6vw, 2.35rem) * var(--heading-scale)); letter-spacing: calc(var(--heading-tracking) - .004em); line-height: 1.12; }
h3 { font-size: calc(clamp(1.2rem, 1.08rem + .6vw, 1.5rem) * var(--heading-scale)); }
h4 { font-size: calc(1.1rem * var(--heading-scale)); }
h5, h6 { font-size: calc(1rem * var(--heading-scale)); }

p  { margin: 0 0 var(--space-4); text-wrap: pretty; }
a  { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: .18em; transition: color .15s var(--ease); }
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

/* Emphasis, not shouting. See --w-em. */
strong, b { font-weight: var(--w-em); }
small { font-size: var(--fs-fine); }

img, video, svg, iframe { max-width: 100%; height: auto; }
img { border-radius: var(--radius); display: block; }

hr { border: 0; border-top: 1px solid var(--paper-line); margin: var(--space-6) 0; }

blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--paper-sunk);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
}
blockquote p:last-child { margin-bottom: 0; }

code, pre { font-family: var(--font-mono); font-size: .9em; }
code { background: var(--paper-sunk); padding: .15em .4em; border-radius: var(--radius-sm); }
pre { background: var(--paper-sunk); padding: var(--space-4); border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--paper-edge); }
pre code { background: none; padding: 0; }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.35em; }
li { margin-bottom: .4em; }
li::marker { color: var(--ink-faint); }

/* Every interactive thing gets a visible focus ring. The plugins this
   replaces set outline:none on inputs, which fails WCAG outright. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--on-accent); padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }
.container-narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(var(--space-6), 6vw, calc(var(--space-8) * 1.35)); }
.section-sunk { background: var(--paper-sunk); border-block: 1px solid var(--paper-edge); }

.stack > * + * { margin-top: var(--space-4); }
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.between { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; }

/* The content column fills the width it is given. Pictures, figures, tables
   and anything else laid out as a block run the whole of it, and the writing
   widens to a generous measure and centres under them.

   It used to be the other way round: everything was capped at the reading
   measure and pinned to the left, so a page with photographs on it showed
   734px of content and 680px of empty paper beside it, and looked like a page
   whose right-hand column had failed to load. The rule the people and partner
   pages already followed — wording at a readable width, the grid gets the
   whole column — is simply the rule for every page now. */
.prose { max-width: none; margin-inline: auto; }
.prose > p,
.prose > h1, .prose > h2, .prose > h3, .prose > h4, .prose > h5, .prose > h6,
.prose > ul, .prose > ol, .prose > dl,
.prose > blockquote, .prose > details {
  max-width: var(--measure-wide);
  margin-inline: auto;
}
.prose > h2 { margin-top: var(--space-7); }
.prose > h3 { margin-top: var(--space-6); }
/* The picture at the head of a page or a post: one shape, filled. */
.page-shot {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  margin-bottom: var(--space-6); box-shadow: var(--shadow); border-radius: var(--radius-lg);
}
.prose img { margin-block: var(--space-5); box-shadow: var(--shadow); }
/* A picture that arrived with no size attribute is shown at its own size, up
   to the width of the column. Forcing 3/2 and cover did not reserve space
   usefully — the browser does that itself the moment the file's own
   dimensions arrive — it just cropped whatever was not landscape and blew
   small pictures up past their real size. max-width and height:auto come
   from the img rule near the top of this file. */
.prose img:not([width]) { width: auto; }
.prose figure { margin: var(--space-5) 0; }
/* The figure spans the column, but a picture smaller than the column is not
   stretched to fill it — blowing a 480px photograph up to 1400 only makes it
   soft. It sits centred instead, on the same axis as the writing, rather than
   pinned to the left edge with a field of paper beside it. */
.prose figure > img, .prose figure > picture { margin-inline: auto; }
.prose figure > picture { display: block; }
.prose figure > picture > img { margin-inline: auto; }
.prose figcaption { font-size: .875rem; color: var(--ink-muted); margin-top: var(--space-2); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-5) 0; }
.prose th, .prose td { padding: var(--space-3); border-bottom: 1px solid var(--paper-line); text-align: left; }
.prose th { font-weight: 600; background: var(--paper-sunk); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------------------
   4. The paper card — the motif the whole site is built from
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.card-link:hover, a.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 30%, var(--paper-edge)); }
.card-flush { padding: 0; overflow: hidden; }
.card-body { padding: var(--space-5); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3);
}
.lead { font-size: clamp(1.08rem, 1rem + .34vw, 1.24rem); color: var(--ink-soft); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
/* THE BUTTON. A capsule, 530 weight, and a press you can feel.

   ONE FILLED BUTTON PER SURFACE. .btn-primary is the thing somebody came to
   do; everything else on the screen is neutral and quiet. Two filled buttons
   beside each other is two answers to "what do I press", which is the same as
   none — and it spends the accent, which then means nothing anywhere else.

   Sentence case, always. Capitals belong to the action chips in .acts, never
   to a form submit: SAVE shouts and Save does not. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: .7rem 1.35rem;
  font: inherit; font-weight: var(--w-em); font-size: .95rem; line-height: 1.2;
  letter-spacing: -.012em;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s var(--ease),
              transform .12s var(--ease), box-shadow .15s var(--ease), opacity .14s var(--ease);
}
/* Tactile press. Scale rather than a nudge downwards: a button that moves down
   under the finger looks pressed; one that also shrinks feels pressed. */
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* The accent button takes its lift from a tinted shadow rather than a
   gradient: a gradient on a capsule this size reads as a button from 2014. */
.btn-primary { background: var(--accent); color: var(--on-accent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 16%, transparent),
              0 10px 30px -8px color-mix(in srgb, var(--accent) 16%, transparent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn-secondary { background: var(--paper-raised); color: var(--ink); border-color: var(--paper-line); }
.btn-secondary:hover { background: var(--paper-sunk); color: var(--ink); border-color: var(--ink-faint); }

/* Ink on paper: the inverse of everything around it, which is what makes it
   the one thing on a pale band you can press without spending the accent. */
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink); color: var(--paper); opacity: .86; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--paper-sunk); color: var(--ink); }

.btn-whatsapp { background: #1f8a4c; color: #fff; }
.btn-whatsapp:hover { background: #1a7541; color: #fff; }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(.92); color: #fff; }

.btn-sm { padding: .4rem .8rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
/* The second button beside a filled one.

   It was glass — white on 12% white, for use over a photograph — and
   wherever it landed on paper instead it measured about 1.2:1 and could not
   be read at all. The cards module uses it four times on plain pages, which
   is where that showed. So the glass is kept for the places it was drawn
   for, and named: the hero, and a call-to-action panel wearing a colour or
   the ink. Everywhere else it is an ordinary outlined button. */
.btn-quiet {
  background: transparent; color: var(--ink);
  border-color: var(--edge-ctl);
}
.btn-quiet:hover { background: var(--paper-sunk); color: var(--ink); border-color: var(--ink-faint); }

.hero .btn-quiet,
.on-dark .btn-quiet,
.cta-panel.is-accent .btn-quiet,
.cta-panel.is-dark .btn-quiet {
  background: rgba(255, 255, 255, .12); color: #fff;
  border-color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero .btn-quiet:hover,
.on-dark .btn-quiet:hover,
.cta-panel.is-accent .btn-quiet:hover,
.cta-panel.is-dark .btn-quiet:hover { background: rgba(255, 255, 255, .22); color: #fff; border-color: #fff; }
.btn-block { width: 100%; }

.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }

/* --------------------------------------------------------------------------
   6. Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: var(--space-4); }
.field > label, .label {
  display: block; margin-bottom: var(--space-2);
  font-weight: 600; font-size: .9rem; color: var(--ink-soft);
}
.hint { font-size: .82rem; color: var(--ink-muted); margin-top: var(--space-2); }
/* What a field is complaining about, said next to the field. */
.field-error { font-size: .82rem; color: var(--red); margin-top: var(--space-2); font-weight: 600; }
/* A column of ticks — the parts of the site somebody looks after. */
.check-stack { display: grid; gap: var(--space-3); }
.check-stack .check span { font-size: .9rem; }
/* The honeypot: off-screen for people, filled in by robots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-text { font-size: .85rem; color: var(--red); margin-top: var(--space-2); font-weight: 500; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="url"], input[type="search"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="time"], select, textarea {
  width: 100%;
  padding: .65rem .85rem;
  font: inherit; font-size: .95rem;
  color: var(--ink);
  background: var(--paper-raised);
  /* The boundary of a control, not a decorative hairline — see --edge-ctl.
     These are the things somebody has to aim at. */
  border: 1px solid var(--edge-ctl);
  border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
input[aria-invalid="true"], .has-error input, .has-error textarea { border-color: var(--red); }
textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23857c6c' stroke-width='1.75' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
  padding-right: 2.4rem;
}
input:disabled, select:disabled, textarea:disabled { background: var(--paper-sunk); color: var(--ink-muted); cursor: not-allowed; }

.check { display: flex; gap: var(--space-3); align-items: flex-start; cursor: pointer; }
.check input[type="checkbox"], .check input[type="radio"] {
  flex: none; width: 1.15rem; height: 1.15rem; margin-top: .18rem; accent-color: var(--accent); cursor: pointer;
  /* Same reasoning as the fields: a tick box drawn in the card hairline is a
     box a low-vision visitor cannot find. */
  outline-color: var(--edge-ctl);
}
.check span { font-size: .93rem; color: var(--ink-soft); }

fieldset { border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: var(--space-4); margin: 0 0 var(--space-4); }
legend { padding-inline: var(--space-2); font-weight: 600; font-size: .9rem; color: var(--ink-soft); }

/* Chip-style multi-select, used for the enquiry topics */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: .5rem 1rem;
  font-size: .9rem; font-weight: 500;
  background: var(--paper-raised); color: var(--ink-soft);
  border: 1px solid var(--paper-line); border-radius: var(--radius-pill);
  cursor: pointer; transition: all .15s var(--ease); user-select: none;
}
.chip span:hover { border-color: var(--accent); color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   7. Badges, pills and notices
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .22rem .6rem; font-size: .76rem; font-weight: 600;
  letter-spacing: .01em; border-radius: var(--radius-pill);
  background: var(--paper-sunk); color: var(--ink-soft); border: 1px solid var(--paper-edge);
  white-space: nowrap;
}
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.badge-green  { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.badge-amber  { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 25%, transparent); }
.badge-red    { background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 25%, transparent); }

.notice {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4);
  border: 1px solid var(--paper-edge); border-left-width: 3px;
  border-radius: var(--radius); background: var(--paper-raised);
  margin-bottom: var(--space-4);
}
.notice p:last-child { margin-bottom: 0; }
.notice .icon { margin-top: .18rem; }
.notice-success { border-left-color: var(--green); background: var(--green-soft); color: var(--green); }
.notice-error   { border-left-color: var(--red);   background: var(--red-soft);   color: var(--red); }
.notice-warn    { border-left-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.notice-info    { border-left-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.notice strong { color: inherit; }

/* --------------------------------------------------------------------------
   8. Site header and footer
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper-raised) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--paper-edge);
}
.site-header .container { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
/* THE CHIP, NOT THE MARK (v1.120.1, 1 Nov 2026). This is the round accent
   badge beside the site name in the admin and sign-in headers, and it was
   written as a bare .brand-mark. View::brand() also emits `brand-mark`, on
   the <svg> of every official brand glyph on the site, so each of those was
   being handed this rule as well: forced to 38px, given an accent-coloured
   background and clipped to a circle. The WhatsApp mark in the footer came
   out as a blue disc with a stair-stepped edge — a background clipped by
   border-radius on an <svg>, which is exactly what browsers antialias
   badly. The rule belongs to the <span> inside .brand and nothing else. */
.brand > span.brand-mark { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--on-accent); }
.brand-name { font-size: 1.02rem; line-height: 1.15; }
.brand-sub { display: block; font-size: .72rem; font-weight: 500; color: var(--ink-muted); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: .5rem .7rem; font-size: .9rem; font-weight: 500; white-space: nowrap;
  color: var(--ink-soft); text-decoration: none; border-radius: var(--radius-sm);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { background: var(--paper-sunk); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.theme-toggle {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--paper-line); border-radius: var(--radius);
  color: var(--ink-soft); cursor: pointer; transition: all .15s var(--ease);
}
.theme-toggle:hover { background: var(--paper-sunk); color: var(--ink); border-color: var(--ink-faint); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* The language switcher in the menu bar, on a site in more than one
   language. Closed it is a globe and the language's two letters; open it is
   the list of languages, each written in its own language. (v1.19) */
.lang-switch { position: relative; flex: none; }
.lang-switch-btn {
  display: inline-flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .6rem;
  background: transparent; border: 1px solid var(--paper-line); border-radius: var(--radius);
  color: var(--ink-soft); font: inherit; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; cursor: pointer; transition: all .15s var(--ease);
}
.lang-switch-btn:hover { background: var(--paper-sunk); color: var(--ink); border-color: var(--ink-faint); }
.lang-switch-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 10rem;
  margin: 0; padding: .3rem; list-style: none; display: none;
  background: var(--paper); border: 1px solid var(--paper-line);
  border-radius: var(--radius); box-shadow: var(--shadow-2, 0 8px 24px rgba(0,0,0,.12));
}
.lang-switch[data-open] .lang-switch-menu { display: block; }
.lang-switch-menu a {
  display: block; padding: .45rem .6rem; font-size: .9rem; border-radius: var(--radius-sm);
  color: var(--ink-soft); text-decoration: none;
}
.lang-switch-menu a:hover { background: var(--paper-sunk); color: var(--ink); }
.lang-switch-menu a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }


/* --------------------------------------------------------------------------
   The scrolling banner (v1.28.0)

   Two identical lists slide left together by half the track. When the first
   has gone, the second is exactly where the first started, so it reads as one
   line going round rather than a list that restarts.

   It stops on hover — a line somebody is trying to read should not run away
   from them — and for anybody who has asked their machine for less movement it
   does not scroll at all: the same items, wrapped, standing still.
   -------------------------------------------------------------------------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--paper-line);
  font-size: .88rem;
}
.ticker-track { display: flex; width: max-content; animation: ticker-slide var(--ticker-speed, 40s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list {
  display: flex; align-items: center; gap: var(--space-6);
  margin: 0; padding: .55rem var(--space-6) .55rem 0; list-style: none; white-space: nowrap;
}
.ticker-list li { display: flex; align-items: center; gap: var(--space-3); }
.ticker-list li::after { content: '·'; opacity: .45; }
.ticker-list a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.ticker-list a:hover { opacity: .8; }

@keyframes ticker-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ticker-ink    { background: var(--ink); color: var(--paper); border-bottom-color: transparent; }
.ticker-accent { background: var(--accent); color: var(--on-accent); border-bottom-color: transparent; }
.ticker-quiet  { background: var(--paper); color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: 100%; }
  .ticker-list { flex-wrap: wrap; white-space: normal; }
  .ticker-list[aria-hidden="true"] { display: none; }
}

.nav-toggle { display: none; }

.site-footer {
  margin-top: var(--space-8);
  padding-block: var(--space-7) var(--space-5);
  background: var(--footer-bg, var(--paper-sunk));
  border-top: 1px solid var(--paper-edge);
  font-size: .92rem;
}
.site-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-muted); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-2); }
/* A footer link is an icon and a label, so it should break as one thing. As
   plain inline the label wrapped to the next line and left the icon stranded
   on the line above — at 1024px, 768px and 480px on this site. The space in
   the markup between the two is a white-space-only text node, which a flex
   container drops, so the gap below is the only spacing. */
.site-footer a { color: var(--ink-soft); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: .45em; }
.site-footer a svg { flex: none; align-self: center; }
.site-footer a:hover { color: var(--accent); }
/* Three things on one line: the organisation's copyright, who built it, and the way
   in. The credit sits in the middle and stays quiet. */
.footer-credit { color: var(--ink-faint); }
/* The version, quieter still than the credit beside it: there for whoever
   needs it, invisible to everybody who does not. */
.footer-version { color: var(--ink-faint); font-variant-numeric: tabular-nums; opacity: .75;
  display: inline-flex; align-items: center; gap: .5rem; }
.footer-version form { display: inline; }
.footer-version button { display: inline-flex; align-items: center; gap: .3rem;
  font: inherit; font-size: .82em; color: inherit; cursor: pointer;
  background: none; border: 1px solid var(--paper-edge); border-radius: 999px;
  padding: .12rem .6rem; line-height: 1.6; }
.footer-version button:hover { color: var(--accent); border-color: currentColor; }
.footer-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--paper-edge); }
.footer-credit a:hover { color: var(--accent); border-bottom-color: currentColor; }
.footer-bottom {
  margin-top: var(--space-6); padding-top: var(--space-4);
  border-top: 1px solid var(--paper-edge);
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  justify-content: space-between; color: var(--ink-muted); font-size: .85rem;
}
/* The row wraps on a narrow screen, and a wrap used to cost a full space-4
   between the lines as well as the line itself. When the version line grew
   from "v1.45.0" to "<site> vX · Starting Point vY" it stopped fitting beside
   the credit on a phone, dropped to its own line, and made every page 58px
   taller. The row gap is what to give back: lines that have wrapped sit close
   together, while the space BETWEEN items on a line is untouched. */
@media (max-width: 640px) {
  .footer-bottom { row-gap: var(--space-3); }
  .footer-bottom > * { margin: 0; }
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
/* The banner itself is described in section 11, with the rest of the top of
   the site. What is left here is the two-column block the enquiry page uses,
   which shares the name but nothing else. */
.hero-grid { display: grid; gap: clamp(var(--space-5), 4vw, var(--space-7)); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.banner-strip {
  background: var(--accent); color: var(--on-accent);
  padding: var(--space-2) 0; font-size: .9rem; text-align: center;
}
.banner-strip a { color: #fff; font-weight: 600; }
.banner-strip p { margin: 0; }

/* --------------------------------------------------------------------------
   10. The button set (rebuilt link manager)
   -------------------------------------------------------------------------- */
.link-groups { display: grid; gap: var(--space-6); }
.link-group-title {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: 1.05rem; font-weight: 600; margin-bottom: var(--space-4);
  padding-left: var(--space-3); border-left: 4px solid var(--group-colour, var(--accent));
}
.link-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-3); }
.link-button {
  display: flex; flex-direction: column; gap: .15rem;
  padding: var(--space-4);
  background: var(--paper-raised); color: var(--ink);
  border: 1px solid var(--paper-edge); border-top: 3px solid var(--group-colour, var(--accent));
  border-radius: var(--radius); text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.link-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.link-button .date { font-size: .8rem; font-weight: 600; color: var(--group-colour, var(--accent)); letter-spacing: .02em; }
.link-button .label { font-weight: 500; line-height: 1.35; color: inherit; margin: 0; }
.link-button .icon { margin-top: var(--space-2); color: var(--ink-faint); align-self: flex-end; }

/* --------------------------------------------------------------------------
   11. The enquiry widget — the rebuilt WhatsApp hero
   -------------------------------------------------------------------------- */
.enquiry {
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.enquiry-head {
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #1b4a5e));
  color: #fff;
}
.enquiry-head h2 { color: #fff; margin-bottom: var(--space-2); font-size: 1.35rem; }
.enquiry-head p { margin: 0; opacity: .92; font-size: .95rem; }
.enquiry-body { padding: var(--space-5); }

.enquiry-price {
  display: inline-flex; align-items: baseline; gap: .3rem;
  padding: .3rem .8rem; margin-bottom: var(--space-4);
  background: var(--green-soft); color: var(--green);
  border-radius: var(--radius-pill); font-weight: 600; font-size: .9rem;
}

.enquiry-step { display: none; }
.enquiry-step.is-active { display: block; animation: fade-up .35s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.enquiry-progress { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); }
.enquiry-progress i {
  flex: 1; height: 3px; border-radius: 2px; background: var(--paper-line); transition: background .3s var(--ease);
}
.enquiry-progress i.done { background: var(--accent); }

.enquiry-success { text-align: center; padding: var(--space-5) 0; }
.enquiry-success .tick {
  width: 56px; height: 56px; margin: 0 auto var(--space-4);
  border-radius: 50%; background: var(--green-soft); color: var(--green);
  display: grid; place-items: center;
}
/* The step that actually delivers the enquiry. It is given the weight of an
   instruction rather than of a spare link, because on a phone this tap is
   what puts the message in the organisation's inbox. */
.enquiry-send {
  margin: var(--space-5) 0 var(--space-4);
  padding: var(--space-4);
  background: var(--paper-sunk);
  border-radius: var(--radius);
}
.enquiry-send-label {
  margin: 0 0 var(--space-3);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint);
}
.enquiry-wa-btn { display: inline-flex; align-items: center; gap: .5rem; }
@media (max-width: 520px) { .enquiry-wa-btn { display: flex; width: 100%; justify-content: center; } }
.enquiry-send-note {
  margin: var(--space-3) 0 0; font-size: .88rem; line-height: 1.5; color: var(--ink-soft);
}
.enquiry-blocked {
  display: flex; align-items: flex-start; gap: .45rem;
  margin: var(--space-3) 0 0; padding: var(--space-3);
  background: var(--paper); border-radius: var(--radius-sm);
  font-size: .86rem; line-height: 1.5; text-align: left; color: var(--ink-soft);
}
.enquiry-blocked .icon { flex: none; margin-top: 2px; color: var(--amber); }
/* Only when the browser blocked the tab: a slow, quiet ring, so the eye goes
   to the button without the page starting to flash at anybody. */
.enquiry-wa-btn.is-waiting { animation: wa-waiting 2.4s ease-in-out 3; }
@keyframes wa-waiting {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(31, 138, 76, .18); }
}
@media (prefers-reduced-motion: reduce) { .enquiry-wa-btn.is-waiting { animation: none; } }

.enquiry-ref {
  display: inline-block; margin-top: var(--space-3);
  padding: .35rem .8rem; background: var(--paper-sunk);
  border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: .9rem;
}

/* --------------------------------------------------------------------------
   12. Post and policy lists
   -------------------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-sunk); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .card-body { flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.12rem; margin-bottom: var(--space-2); }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card .meta { font-size: .82rem; color: var(--ink-muted); margin-top: auto; padding-top: var(--space-3); }

.policy-group { margin-bottom: var(--space-6); }
.policy-item {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4);
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius); margin-bottom: var(--space-2);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.policy-item:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.policy-item .icon { color: var(--accent); flex: none; }
.policy-item .title { font-weight: 500; }
.policy-item .meta { margin-left: auto; font-size: .8rem; color: var(--ink-muted); white-space: nowrap; }

/* --------------------------------------------------------------------------
   13. Pagination
   -------------------------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-6); }
.pagination a, .pagination span {
  min-width: 2.4rem; padding: .45rem .7rem; text-align: center;
  border: 1px solid var(--paper-line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink-soft); font-size: .9rem; background: var(--paper-raised);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.pagination .gap { border: 0; background: none; color: var(--ink-faint); min-width: auto; padding-inline: .2rem; }
.pagination .summary { margin-left: auto; border: 0; background: none; color: var(--ink-muted); font-size: .85rem; }

@media (max-width: 640px) {
  .pagination .summary { margin-left: 0; width: 100%; order: -1; padding: 0 0 var(--space-2); }
}

/* --------------------------------------------------------------------------
   14. Responsive navigation
   -------------------------------------------------------------------------- */
/* The bar holds every top-level item on one row down to about 1150px and no
   further. Below that it used to wrap, so that is where it becomes the burger
   instead. The button and the panel used to switch at 1080 and 1024 — fifty
   pixels where the burger showed and the full bar was still there beside it. */
/* Where the bar gives up and becomes a burger. 1150 suits a starter's short
   menu. A site with many top-level items, or long ones, has to raise this —
   measure where its own bar runs out of room rather than guessing, and move
   all three of these together. The club site runs at 1499 with nine items. */
@media (max-width: 1150px) {
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 40px; height: 40px; background: transparent;
    border: 1px solid var(--paper-line); border-radius: var(--radius);
    color: var(--ink-soft); cursor: pointer;
  }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-raised); border-bottom: 1px solid var(--paper-edge);
    box-shadow: var(--shadow-lg); padding: var(--space-3);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    margin-left: 0;
  }
  .nav:not(.is-open) { display: none; }
  .nav a { padding: var(--space-3) var(--space-4); border-radius: var(--radius); }
  .site-header .container { flex-wrap: wrap; }
  .theme-toggle { order: 2; }
}

/* --------------------------------------------------------------------------
   15. Print — it is paper, after all
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .theme-toggle, .nav-toggle, .pagination, .enquiry, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

/* ==========================================================================
   16. The organisation site proper — a Paper reading of the layout the organisation already
       has: a photographic banner with the crest on it, the menu underneath,
       the blog down the right, the coloured button groups, then the policies.
   ========================================================================== */

/* ---------- banner ---------- */
/* ---------- sections arriving as you reach them ---------- */
/* Eight pixels and a fade. Anything more and a page of ordinary organisation news
   starts to feel like a slideshow. Nothing is hidden unless the script is
   there to show it again, so the page reads fine with no script at all. */
.will-arrive {
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.will-arrive.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .will-arrive { opacity: 1; transform: none; transition: none; }
}
@media print {
  .will-arrive { opacity: 1 !important; transform: none !important; }
}

/* ---------- the top of the site ---------- */
/*
 * One photograph, one thing to do. The home page gives it room; every other
 * page gets a slim band of the same picture, because those pages arrive with
 * their own heading and a visitor who is already inside does not need selling
 * to a second time.
 */
.site-head { position: relative; }
.hero {
  position: relative;
  min-height: clamp(140px, 17vw, 220px);
  display: grid; align-items: end;
  background: var(--paper-sunk) center/cover no-repeat;
  overflow: hidden;
}
/* The banner photograph. A background cannot carry a srcset, so the choice is
   made here from the properties the page hands down: the original for anything
   that cannot read WebP, the large copy on a wide screen, the small one on a
   phone — which was otherwise downloading a 1600-pixel photograph to fill a
   strip 220 pixels tall. */
.hero { background-image: var(--banner); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .hero { background-image: image-set(var(--banner-lg, var(--banner)) type("image/webp")); }
  @media (max-width: 700px) {
    .hero { background-image: image-set(var(--banner-sm, var(--banner-lg, var(--banner))) type("image/webp")); }
  }
}
.site-head.is-home .hero {
  min-height: clamp(340px, 42vw, 560px);
}
/* The scrim: dark at the foot where the words sit, clearing towards the top
   so the photograph is still a photograph. */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  /* Two washes: one down the picture, one in from the left where the words
     are. Either alone leaves a bright picture somewhere behind a sentence. */
  background:
    linear-gradient(to right, rgba(12, 18, 24, .74) 0%, rgba(12, 18, 24, .52) 34%, rgba(12, 18, 24, .12) 62%, rgba(12, 18, 24, 0) 80%),
    linear-gradient(to bottom, rgba(12, 18, 24, .30) 0%, rgba(12, 18, 24, .04) 30%, rgba(12, 18, 24, .48) 100%);
}
.site-head:not(.is-home) .hero::after {
  background: linear-gradient(to bottom, rgba(14, 20, 26, .30) 0%, rgba(14, 20, 26, .45) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: clamp(var(--space-6), 6vw, var(--space-8)) var(--space-5);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
  color: #fff;
}
.hero-crest { display: block; margin-bottom: var(--space-2); }
.hero-crest img {
  width: clamp(84px, 9vw, 116px); height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
}
.hero-title {
  margin: 0; color: #fff; max-width: 18ch; text-wrap: balance;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.025em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}
.hero-sub {
  margin: 0; max-width: 44ch; color: rgba(255, 255, 255, .96);
  font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.45; font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 18px rgba(0, 0, 0, .55);
}
.hero-do { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-3) 0 0; }

/* ---------- menu bar, sitting under the banner ---------- */
/* ---------- the bar under the picture, which follows you down ---------- */
.menubar {
  background: color-mix(in srgb, var(--paper-raised) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--paper-edge);
  position: sticky; top: 0; z-index: 60;
  transition: box-shadow .2s var(--ease);
}
.site-head.is-stuck .menubar { box-shadow: 0 6px 20px rgba(60, 48, 30, .10); }
/* The bar is allowed to be wider than the page's content. The content column
   stops at the container width because that is as wide as writing should run;
   a row of navigation has no such reason, and capping it there left the menu
   with a few pixels to spare no matter how big the screen was — which is why
   it wrapped on a wide monitor and nothing anybody did to the menu helped. */
.menubar .container { display: flex; align-items: center; gap: var(--space-3); min-height: 60px; max-width: 1760px; }
/* The crest in the bar. On the home page it waits until the hero has gone
   by; everywhere else it is simply there. */
.bar-crest { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; color: var(--ink); font-weight: 600; }
/* The organisation's mark is white line art with nothing behind it, which vanishes on
   a pale bar. It gets its own disc of organisation blue to sit on — the same mark,
   legible in both themes. */
.bar-crest img {
  width: 40px; height: 40px; object-fit: contain; padding: 4px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 1px 3px rgba(60, 48, 30, .18);
}
/* The organisation's name in words, when that is what the bar carries. Sized to sit
   with the menu rather than compete with it, and allowed on to a second line
   on a narrow screen, where the alternative is squeezing the menu out. */
.bar-word {
  font-family: var(--font);
  font-size: clamp(.95rem, .88rem + .3vw, 1.12rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -.015em;
  color: var(--ink); max-width: 11ch;
}
.bar-crest.has-word { gap: var(--space-3); }
@media (min-width: 700px) { .bar-word { max-width: none; white-space: nowrap; } }

.site-head.is-home .bar-crest {
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.site-head.is-home.is-stuck .bar-crest { opacity: 1; transform: none; pointer-events: auto; }
.menu { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; padding: 0; list-style: none; flex-wrap: wrap; justify-content: flex-end; }
.menu > li { position: relative; }
.menu > li > a, .menu .submenu a {
  display: flex; align-items: center; gap: .3rem;
  padding: .55rem .7rem; font-size: .93rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none; border-radius: var(--radius-sm);
  white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease);
}
.menu > li > a:hover, .menu > li:focus-within > a { background: var(--paper-sunk); color: var(--ink); }
.menu > li > a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- the one menu item that is asking to be pressed ----------
   A plain row of text links has no first among equals, so the thing the site
   most wants a visitor to open reads the same as the policy area. This makes
   one item a filled pill — bigger, in the site's colour, with a small mark
   beside it — and gives it a nudge every so often.

   The nudge is one animation on a long loop rather than a timer in
   JavaScript: fourteen seconds, of which about one and a half is movement and
   the rest is the button sitting still. Long enough that it reads as "look
   over here" rather than as something broken. */
.menu > li > a.nav-feature {
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: .95rem;
  padding: .58rem 1rem;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 34%, transparent);
  transform-origin: 50% 65%;
  animation: nav-nudge 14s ease-in-out infinite;
}
.menu > li > a.nav-feature svg { color: currentColor; }
.menu > li > a.nav-feature:hover,
.menu > li > a.nav-feature:focus-visible {
  background: var(--accent-hover); color: var(--on-accent);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 42%, transparent);
  /* It stops the moment somebody goes for it: a target that moves under the
     pointer is a target you miss. */
  animation-play-state: paused;
}
/* Already there — nothing left to advertise. */
.menu > li > a.nav-feature[aria-current="page"] { animation: none; }

@keyframes nav-nudge {
  0%, 84%, 100% { transform: none; }
  86% { transform: rotate(-4deg)   scale(1.05); }
  88% { transform: rotate(3.2deg)  scale(1.05); }
  90% { transform: rotate(-2.2deg) scale(1.04); }
  92% { transform: rotate(1.4deg)  scale(1.03); }
  94% { transform: rotate(-.6deg)  scale(1.01); }
}

/* Somebody who has asked for less movement gets the pill and none of the
   nudge. The pill is what makes it stand out; the nudge is the extra. */
@media (prefers-reduced-motion: reduce) {
  .menu > li > a.nav-feature { animation: none; }
}

/* Between the burger and a wide screen the bar has to hold every top-level
   item — and now the pill as well. Tighter padding there, and the site's name
   steps back to its crest, rather than letting the bar wrap onto a second row
   and read as a mistake. */
/* Where there is a crest to stand in for it, the name steps back and the menu
   gets the 240px. Only where there is one: a site with no mark would be left
   with an empty corner. */
@media (min-width: 1151px) {
  .menubar .bar-crest:has(img) .bar-word { display: none; }
  .menubar .bar-crest:has(img).has-word { gap: 0; }
}

.menu .caret { transition: transform .18s var(--ease); }
.menu > li:hover > a .caret, .menu > li:focus-within > a .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: 100%; left: 0; z-index: 70;
  min-width: 232px; margin: 0; padding: var(--space-2); list-style: none;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.menu > li:hover > .submenu, .menu > li:focus-within > .submenu,
.submenu li:hover > .submenu, .submenu li:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: none;
}
/* The last dropdown in the bar opens to the left of its button rather than the
   right. Anchored at left:0 it hung past the edge of the screen at around
   1040–1250 wide, and because a hidden element still counts toward how wide
   the page is, EVERY page scrolled sideways by that much — with nothing
   visible to explain why. The selector is "the last top-level item that has a
   dropdown", so it keeps up if the menu is rearranged. */
.menu > li:has(> .submenu):not(:has(~ li > .submenu)) > .submenu { left: auto; right: 0; }

.submenu li { position: relative; }
.submenu a { padding: .5rem .7rem; font-size: .9rem; }
.submenu a:hover { background: var(--paper-sunk); color: var(--ink); }
.submenu .submenu { top: -.4rem; left: 100%; }

@media (max-width: 1150px) {
  .menubar .container { justify-content: space-between; }
  /* The pill still marks it out in the panel, but a block of colour jigging
     about in a list of plain links is a different thing from a button nudging
     in a bar: there is nothing around it to nudge against. */
  .menu > li > a.nav-feature { animation: none; }
  .menu {
    position: absolute; inset: 56px 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    background: var(--paper-raised); border-bottom: 1px solid var(--paper-edge);
    box-shadow: var(--shadow-lg); padding: var(--space-3);
    max-height: calc(100vh - 56px); overflow-y: auto;
  }
  .menu:not(.is-open) { display: none; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--paper-edge);
    border-radius: 0; margin-left: var(--space-4); padding: 0 0 0 var(--space-2);
  }
  .menu .caret { margin-left: auto; }
}

/* ---------- the home page: content left, blog right ---------- */
/* minmax(0, 1fr) rather than 1fr: a bare fr track is min-width:auto, so one
   child that will not shrink — the enquiry card, on a narrow phone — pushes
   the whole column past the edge of the screen and the page scrolls
   sideways. */
.home-split { display: grid; gap: clamp(var(--space-5), 4vw, var(--space-7)); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .home-split { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .95fr); } }
@media (max-width: 999px) { .blog-rail { position: static; } }
/* The films and pictures on the home page, two across rather than three so
   each one is big enough to see. One per row once there is no room for two. */
.media-grid { display: grid; grid-template-columns: 1fr; gap: clamp(var(--space-4), 3vw, var(--space-6)); }
@media (min-width: 760px) { .media-grid { grid-template-columns: 1fr 1fr; } }

/* An item is the tile and, under it, whatever was written about it. The
   wording sits below rather than over the picture: text laid over a photograph
   is legible until somebody uploads a pale one, and then it is not. */
.media-item { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.media-caption { font-size: .92rem; color: var(--ink-soft); }
.media-caption p { margin: 0 0 var(--space-3); }
.media-caption p:last-child { margin-bottom: 0; }
.media-caption .btn { margin-top: var(--space-1); }

/* A film is a still with a play badge until somebody asks for it. Every tile
   is the same shape, so the column stays level whatever the clips are, and
   nothing downloads while the page is only being read. */
.media-tile {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden;
  /* With a still it shows the still; without one, the site's own accent
     rather than a grey rectangle — so no thumbnail still looks deliberate. */
  background:
    var(--tile-still, none) center/cover no-repeat,
    linear-gradient(140deg, var(--accent) 0%, var(--accent-ink) 100%);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
button.media-tile { cursor: pointer; }
.media-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12, 18, 24, .10) 0%, rgba(12, 18, 24, .55) 100%);
}
/* A picture with nothing written across it needs no scrim: it is only there so
   white lettering stays readable. */
.media-tile.is-picture:not(:has(.media-name))::after { background: none; }
button.media-tile:hover, button.media-tile:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
button.media-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.media-play {
  position: absolute; z-index: 1; inset: 0; margin: auto;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform .18s var(--ease), background .18s var(--ease);
}
button.media-tile:hover .media-play { transform: scale(1.07); background: #fff; }
.media-name {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  padding: var(--space-4); text-align: left;
  color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

/* The film itself, once asked for: black, centred, and closed with Escape or
   a click anywhere off it. */
.video-box {
  position: fixed; inset: 0; z-index: 90; border: 0; padding: 0; margin: 0;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  background: rgba(8, 12, 16, .88); display: grid; place-items: center;
}
.video-box::backdrop { background: rgba(8, 12, 16, .88); }
.video-box video { width: min(94vw, 1200px); max-height: 84vh; border-radius: var(--radius); background: #000; box-shadow: var(--shadow-lg); }
.video-close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 2.6rem; height: 2.6rem; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .4);
  display: grid; place-items: center;
}
.video-close:hover { background: rgba(255, 255, 255, .26); }
@media (prefers-reduced-motion: reduce) {
  .media-tile, .media-tile:hover, .media-play, .media-tile:hover .media-play { transform: none; }
}
/* The affiliation badges, under the enquiry form and in the same column. The
   strip is one wide image (1581px across), so it is stretched to the width of
   the column rather than sitting at whatever size it happens to be. */
.awards-strip { margin-top: var(--space-5); }
.awards-strip p { margin: 0; }
.awards-strip img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--radius); }
/* A badge strip that came across without its size on it still holds its own
   height, so the writing underneath does not jump when the picture lands. */
.awards-strip img:not([width]) { aspect-ratio: 8 / 1; object-fit: contain; }
.awards-strip + .prose { margin-top: var(--space-6); }

/* ---------- the buttons and the organisation videos, side by side ---------- */
/* Neither of these two needs the whole page to itself, and both looked
   oversized with it. They share the width on a wide screen and stack, buttons
   first, once there is no longer room for the pair. */
.home-duo { display: grid; gap: clamp(var(--space-5), 4vw, var(--space-7)); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1200px) {
  /* Three fifths to the buttons, two to the clips: the buttons are the part
     people come to press, and they are the part that needs the room. */
  .home-duo:not(.is-single) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  /* Half the width fits fewer buttons across, so the minimum comes down to
     keep each one the size it is elsewhere rather than stretching two of them
     across the column. */
  .home-duo:not(.is-single) .btn-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  /* The clips stay two across in the column. Each one is a preview that goes
     full screen when it is played, so a pair that keeps the column beside the
     buttons rather than running far past them is the better trade. */
  .home-duo:not(.is-single) .media-grid { grid-template-columns: 1fr 1fr; }
}
.duo-part { min-width: 0; }
.duo-part > :first-child { margin-top: 0; }
.duo-part .btn-group:last-child { margin-bottom: 0; }
.duo-part .band-intro h2, .duo-part > h2 { margin-top: 0; }

.band-intro { margin-bottom: var(--space-6); }
.band-intro > :last-child, .band-outro > :last-child { margin-bottom: 0; }
.band-outro { margin-top: var(--space-6); }
.band-intro h2, .band-outro h2 { margin-bottom: var(--space-3); }

.blog-rail { position: sticky; top: 76px; }
.blog-rail h2 { font-size: 1.15rem; padding-bottom: var(--space-3); border-bottom: 2px solid var(--accent); }
/* A post is a card, and the whole card is the link. */
.blog-rail-posts { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.rail-post {
  display: flex; gap: var(--space-4); align-items: center;
  padding: var(--space-3); border-radius: var(--radius); text-decoration: none;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.rail-post:hover { transform: translateY(-1px); border-color: var(--paper-line); box-shadow: var(--shadow); }
.rail-shot {
  flex: 0 0 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-sunk);
}
.rail-shot img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; box-shadow: none; }
.rail-words { display: block; min-width: 0; }
.rail-title {
  display: block; font-size: .95rem; font-weight: 600; line-height: 1.35; color: var(--ink);
  /* Two lines, then an ellipsis: the rail is narrow and a long title would
     otherwise push everything else down the page. */
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.rail-post:hover .rail-title { color: var(--accent); }
.rail-post .when { display: block; margin-top: var(--space-2); font-size: .78rem; color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .rail-post, .rail-post:hover { transform: none; } }

/* ---------- the notice strip at the top of the home page ---------- */
.notice-post {
  display: grid; gap: var(--space-5); align-items: center; grid-template-columns: 1fr;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
@media (min-width: 760px) { .notice-post { grid-template-columns: minmax(0, 280px) 1fr; } }
.notice-post img {
  width: 100%; height: 100%; border-radius: 0;
  /* A frame of a fixed shape, filled by the picture. Whatever is uploaded —
     a collage, a portrait, a wide landscape — the card is the same size and
     the page does not jump as it loads. */
  aspect-ratio: 4 / 3; max-height: 260px; object-fit: cover; object-position: center;
}
.notice-post .body { padding: var(--space-5); }

/* ---------- coloured button groups (the link manager, rebuilt) ---------- */
.btn-group { margin-bottom: var(--space-6); }
.btn-group-title {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: 1.02rem; font-weight: 600; margin-bottom: var(--space-3);
  padding-left: var(--space-3); border-left: 4px solid var(--group-colour, var(--accent));
}
.btn-group-title .count { font-size: .78rem; font-weight: 500; color: var(--ink-muted); }
.btn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: var(--space-3); }
/* The organisation's buttons.
   Flat colour reads as a coloured box; a little depth reads as something to
   press. The sheen is a hairline of light along the top edge and a whisper of
   shade at the foot — the same trick a printed button uses — and the shadow
   is tinted with the group's own colour rather than grey, so a red row casts
   a warm shadow and a blue one a cool shadow. It lifts a couple of pixels
   under the cursor and sits back down when pressed. Nothing moves far. */
.organisation-btn {
  display: flex; flex-direction: column; gap: .2rem;
  padding: var(--space-4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, .07)),
    var(--group-colour, var(--accent));
  color: var(--group-ink, #fff);
  /* No drawn edge — a dark outline round a coloured button is the oldest tell
     in web design. The shape comes from the colour, the sheen and the shadow.
     The border stays as transparent so the box measures the same as before. */
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none; text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 1px 2px color-mix(in srgb, var(--group-colour, var(--accent)) 30%, transparent),
    0 3px 8px color-mix(in srgb, var(--group-colour, var(--accent)) 18%, transparent);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
  will-change: transform;
}
.organisation-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04) saturate(1.02);
  color: var(--group-ink, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    0 2px 4px color-mix(in srgb, var(--group-colour, var(--accent)) 30%, transparent),
    0 10px 20px color-mix(in srgb, var(--group-colour, var(--accent)) 24%, transparent);
}
/* Pressed: back down onto the page, with the light gone from the top edge. */
.organisation-btn:active {
  transform: translateY(0) scale(.995);
  transition-duration: .06s;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .16),
    0 1px 2px color-mix(in srgb, var(--group-colour, var(--accent)) 30%, transparent);
}
.organisation-btn:focus-visible {
  outline: 2px solid var(--group-colour, var(--accent));
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .organisation-btn, .organisation-btn:hover, .organisation-btn:active { transform: none; transition: box-shadow .18s var(--ease); }
}
/* The generic form `.label` sets a colour and a margin. A button's label
   carries the same class name, so both are restated here — otherwise the
   wording on a coloured button takes the form label's grey and is close to
   unreadable on the darker groups. */
.organisation-btn .label { font-weight: 700; line-height: 1.3; font-size: .97rem; color: inherit; margin: 0; }
/* A button colour nobody will be able to read. Amber rather than red: the
   colour still saves and still works, it just should not. */
.colour-warn {
  margin-top: var(--space-2); max-width: 22rem;
  color: var(--amber); font-weight: 600;
}
.colour-warn .icon { vertical-align: -2px; }

/* The fade is set from PHP (CLUB_DESC_FADE) so the admin can warn about a
   colour using the contrast this text will really have. At .85 it cost
   about a fifth of the contrast, enough on its own to take a perfectly
   reasonable button colour under the readable minimum. */
.organisation-btn .desc { font-size: .8rem; opacity: var(--club-desc-fade, .92); line-height: 1.35; color: inherit; margin: 0; }
/* A pale button needs a visible edge rather than a shadow alone, and its
   sheen has to come from shade rather than light or it disappears. */
/* A pale button has nothing to lift off the paper, so it gets the faintest
   ring of its own colour rather than a dark line — enough to hold its shape
   against a light background, not enough to read as an outline. */
.organisation-btn.is-pale {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, .09)),
    var(--group-colour, var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .40),
    0 1px 2px color-mix(in srgb, var(--group-colour, var(--accent)) 50%, transparent),
    0 4px 10px color-mix(in srgb, var(--group-colour, var(--accent)) 32%, transparent);
}
.organisation-btn.is-pale:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .44),
    0 2px 4px color-mix(in srgb, var(--group-colour, var(--accent)) 50%, transparent),
    0 10px 22px color-mix(in srgb, var(--group-colour, var(--accent)) 36%, transparent);
}

/* ---------- the policy grid ---------- */
.policy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.policy-col {
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
}
.policy-col-head {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-4); border-bottom: 1px solid var(--paper-edge);
  background: var(--paper-sunk);
}
.policy-col-head h3 { margin: 0; font-size: .98rem; }
.policy-col-head .count {
  margin-left: auto; min-width: 1.5rem; padding: 0 .4rem;
  background: var(--accent-soft); color: var(--accent-ink);
  border-radius: var(--radius-pill); font-size: .76rem; font-weight: 700; text-align: center; line-height: 1.5rem;
}
.policy-col-body { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.policy-doc {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3); border: 1px solid var(--paper-edge); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-size: .9rem; line-height: 1.35;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.policy-doc:hover { border-color: var(--accent); background: var(--paper-sunk); color: var(--ink); }
.policy-doc .icon { flex: none; color: var(--red); margin-top: .1rem; }
.policy-doc.is-link .icon { color: var(--accent); }
.policy-doc .lock { margin-left: auto; flex: none; color: var(--ink-faint); }
.policy-doc.is-locked { opacity: .82; }

/* ---------- policy sections as tabs (v1.103.0) ----------
   A row of tabs, each with its count, under a line that says to pick one.
   Built only from the theme's own tokens, so it follows every site's accent
   and both light and dark without a site writing a line of its own. Before
   the script runs (or without one) every section shows in turn under its
   heading; .is-tabbed is what turns the row into tabs. */
.policy-tabs-hint {
  display: flex; align-items: center; gap: var(--space-2);
  margin: 0 0 var(--space-3); font-weight: 600; color: var(--ink);
}
.policy-tabs-hint .icon { color: var(--accent); flex: none; }
.policy-tablist {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  padding-bottom: var(--space-3); margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--paper-edge);
}
.policy-tab {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: .6rem 1rem; border: 1px solid var(--paper-edge); border-radius: var(--radius-pill);
  background: var(--paper-raised); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .92rem; line-height: 1.2; cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.policy-tab:hover { border-color: var(--accent); color: var(--ink); }
.policy-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.policy-tab-count {
  min-width: 1.5rem; padding: 0 .45rem; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: .76rem; font-weight: 700; text-align: center; line-height: 1.5rem;
}
.policy-tabs.is-tabbed .policy-tab[aria-selected="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.policy-tabs.is-tabbed .policy-tab[aria-selected="true"] .policy-tab-count {
  background: color-mix(in srgb, var(--on-accent) 22%, transparent); color: var(--on-accent);
}
.policy-panel { margin-bottom: var(--space-6); }
.policy-panel[hidden] { display: none; }
.policy-panel-title { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; font-size: 1.25rem; margin: 0 0 var(--space-4); }
.policy-panel-count { font-size: .85rem; font-weight: 500; color: var(--ink-muted); }
.policy-panel-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-2); }

/* The home page's section cards: a foot that reads as a button. */
.policy-col-open { transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.policy-col-open:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.policy-col-foot {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  margin: 0 var(--space-3) var(--space-3); padding: .6rem 1rem;
  border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 600; font-size: .9rem;
}
.policy-col-open:hover .policy-col-foot { background: var(--accent); color: var(--on-accent); }

/* ---------- the enquiry widget, in the shape the organisation knows ---------- */
.enquiry-wrap {
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
}

/* THE INVITATION STRIP. Rebuilt for Paper Air, and it needed rebuilding twice
   over.

   It was a three-stop gradient in three literal blues — #0046a6, #0a63d8,
   #2f83ee — typed into the stylesheet. Two things wrong with that on a
   starter. The first is plain: a site that chose green on the Look screen got
   a blue strip on its home page and no way to change it, which is exactly the
   thing this starter says it does not do. The second is Paper Air's fourth
   commandment — colour means something, one filled thing per surface, and a
   tone lives in a dot rather than a painted box. A painted block of accent
   with an accent button inside it spends the colour twice and says nothing
   with either.

   So: a quiet band, ink on paper, and ONE accent button — which is the thing
   somebody came to press. It is the same material as every other quiet
   surface on the site, which is what makes the button on it unmissable. */
.enquiry-cta {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4);
  padding: var(--space-5);
  background: var(--paper-sunk);
  color: var(--ink);
  border-bottom: 1px solid var(--paper-edge);
}
/* One bloom, near-white at the top, so the band reads as lit from above
   rather than tinted. Percentages, so it scales with the band. */
.enquiry-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(110% 80% at 22% -10%,
              color-mix(in srgb, var(--paper-raised) 85%, transparent), transparent 68%);
}
.enquiry-cta > * { position: relative; }
.enquiry-said { flex: 1; min-width: 15rem; }
.enquiry-cta p { margin: 0; }
.enquiry-headline {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: clamp(1.06rem, 1.7vw, 1.28rem); line-height: 1.2;
  letter-spacing: var(--heading-tracking);
}
/* Not .enquiry-price — that name is already the green pill on the enquiry page. */
.cta-price {
  margin-top: .3rem !important; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-muted);
}

.enquiry-status {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3); font-size: .86rem; color: var(--grey-ink);
  background: var(--grey-1); border-bottom: 1px solid var(--paper-edge);
}
.enquiry-status strong { color: var(--ink-soft); }
.enquiry-status .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent);
  animation: pulse-dot 2.4s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 8%, transparent); }
}

.enquiry-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .enquiry-cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
/* Everything on the right of the widget — the dates, then the quick topics —
   is one column, so the grid beside the conversation stays two wide however
   many panels end up in it. */
.side-col { display: flex; flex-direction: column; min-width: 0; }
.side-col > .topics + .topics { padding-top: 0; }
.side-col > .next-dates { border-bottom: 1px solid var(--paper-edge); }

/* ---------- the conversation, with its own scroll arrows ---------- */
.chat-pane {
  min-width: 0;
  position: relative;
  background: var(--grey-1);
  border-bottom: 1px solid var(--paper-edge);
  /* The column beside it decides how tall this row is, and how tall that
     column is depends on how many dates are listed. The conversation fills
     whatever height it is given rather than stopping short of it. */
  display: flex; flex-direction: column; min-height: 0;
}
@media (min-width: 820px) { .chat-pane { border-bottom: 0; border-right: 1px solid var(--paper-edge); } }

/* Paper fading in at the top and bottom of the scroll, so a part-scrolled
   conversation looks cut off rather than simply ending. */
.chat-pane::before, .chat-pane::after {
  content: ''; position: absolute; left: 0; right: 0; height: 28px;
  pointer-events: none; z-index: 2; opacity: 0; transition: opacity .2s var(--ease);
}
.chat-pane::before { top: 0; background: linear-gradient(to bottom, var(--grey-1), transparent); }
.chat-pane::after { bottom: 0; background: linear-gradient(to top, var(--grey-1), transparent); }
.chat-pane[data-at-top="0"]::before,
.chat-pane[data-at-end="0"]::after { opacity: 1; }

.chat {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-4);
  flex: 1 1 auto; min-height: 0;
  max-height: 360px; overflow-y: auto; scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--grey-3) transparent;
}
/* Side by side, the row is as tall as the taller column and the cap comes off:
   the conversation shows as much of itself as there is room for, rather than
   stopping at 360px and leaving the rest of the column blank. Stacked, the cap
   stays — there the conversation would otherwise run the length of the page. */
@media (min-width: 820px) { .chat { max-height: none; } }

.chat::-webkit-scrollbar { width: 6px; }
.chat::-webkit-scrollbar-track { background: transparent; }
.chat::-webkit-scrollbar-thumb { background: var(--grey-3); border-radius: var(--radius-pill); }
.chat:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.chat-arrows {
  position: absolute; right: var(--space-3); bottom: var(--space-3); z-index: 3;
  display: flex; flex-direction: column; gap: 6px;
}
.chat-arrow {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  background: var(--paper-raised); border: 1px solid var(--grey-3);
  color: var(--grey-ink); box-shadow: var(--shadow-sm);
  transition: background .15s var(--ease), color .15s var(--ease),
              border-color .15s var(--ease), opacity .15s var(--ease);
}
.chat-arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chat-arrow:active:not(:disabled) { transform: scale(.92); }
.chat-arrow:disabled { opacity: .3; cursor: default; }
/* The arrows are driven by script, and are pointless when the conversation
   fits, so they appear only once it is known there is something to scroll. */
.chat-arrows { display: none; }
.chat-pane[data-scrollable="1"] .chat-arrows { display: flex; }

.bubble {
  display: flex; gap: var(--space-3); align-items: flex-start;
  align-self: flex-start; max-width: 94%;
  animation: bubble-in .4s var(--ease) both;
}
.bubble .who {
  flex: none; width: 28px; height: 28px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.bubble .said {
  padding: var(--space-3) var(--space-4);
  background: var(--paper-raised); border: 1px solid var(--grey-2);
  border-radius: 4px var(--radius-lg) var(--radius-lg) var(--radius-lg);
  font-size: .92rem; line-height: 1.55; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.bubble .said strong { color: var(--ink); }
.bubble .when { display: block; margin-top: .35rem; font-size: .7rem; color: var(--ink-faint); text-align: right; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bubble:nth-child(2) { animation-delay: .25s; }
.bubble:nth-child(3) { animation-delay: .5s; }
.bubble:nth-child(4) { animation-delay: .75s; }

/* ---------- the quick topics, on the right ---------- */
.topics { padding: var(--space-5) var(--space-4); }
.topics h3 {
  display: flex; align-items: center; gap: .4rem;
  font-size: .74rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: var(--space-2);
}
.topics > p { font-size: .85rem; color: var(--ink-muted); margin-bottom: var(--space-4); }
.topic-list { display: flex; flex-direction: column; gap: var(--space-2); }
/* ---------- when the next sessions are ---------- */
/* Two places show the same list: a tickable version in the widget's right-hand
   column, and a fuller one on the enquiry page. They share the wording classes
   so a change to one does not quietly leave the other behind. */
.next-dates .topic-list { gap: var(--space-2); }
/* Written to out-rank .topic, which is a single pill-shaped line and sits
   later in this file — these rows are three lines tall and need square-ish
   corners and a tick that lines up with the first of them. */
.topic.date-topic { align-items: flex-start; border-radius: var(--radius); padding: .65rem .9rem; }
.topic.date-topic .box { margin-top: 1px; }
.date-said { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.date-when { font-weight: 600; display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.date-where { font-size: .84rem; color: var(--ink-muted); font-weight: 400; }
.date-note  { font-size: .82rem; color: var(--ink-muted); font-weight: 400; }
.date-soon {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: .12rem .45rem; border-radius: var(--radius-pill);
}
.date-soon.is-full { background: var(--grey-2); color: var(--ink-muted); }
.topic.is-full { opacity: .62; cursor: default; }
.topic.is-full:hover, .topic.is-full:focus-within { transform: none; border-color: var(--grey-2); background: var(--grey-1); }

/* The list on the enquiry page, where there is room to set it out properly. */
.date-list { margin-top: var(--space-6); }
.date-list h2 { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.date-intro { color: var(--ink-muted); max-width: 52ch; margin-bottom: var(--space-4); }
.dates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.dates .date {
  display: flex; align-items: flex-start; gap: var(--space-4);
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.dates .date.is-full { opacity: .7; }
.date-box {
  flex: none; width: 54px; text-align: center; line-height: 1.05;
  background: var(--accent); color: var(--on-accent); border-radius: var(--radius);
  padding: .45rem 0 .5rem;
}
.date-day { display: block; font-size: 1.5rem; font-weight: 700; }
.date-month { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.date-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.date-head { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

.topic {
  display: flex; align-items: center; gap: var(--space-3);
  padding: .7rem 1rem; cursor: pointer;
  background: var(--grey-1); border: 1px solid var(--grey-2);
  border-radius: var(--radius-pill); font-size: .93rem; font-weight: 500;
  transition: background .15s var(--ease), border-color .15s var(--ease),
              color .15s var(--ease), transform .1s var(--ease); user-select: none;
}
.topic:hover { border-color: var(--accent); background: var(--paper-raised); transform: translateX(2px); }
.topic input { position: absolute; opacity: 0; width: 0; height: 0; }
.topic .box {
  flex: none; width: 20px; height: 20px; border-radius: 5px;
  border: 2px solid var(--grey-3); display: grid; place-items: center;
  transition: all .15s var(--ease);
}
.topic .box .icon { opacity: 0; color: #fff; }
.topic:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: none; }
.topic:has(input:checked) .box { background: #fff; border-color: #fff; }
.topic:has(input:checked) .box .icon { opacity: 1; color: var(--accent); }
.topic:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.topic:has(input:disabled) { opacity: .5; cursor: not-allowed; }

.enquiry-entry { padding: var(--space-5) var(--space-4); border-top: 1px solid var(--paper-edge); background: var(--grey-1); }
.name-gate {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  padding: var(--space-3); margin-bottom: var(--space-3);
  border: 2px solid var(--amber); border-radius: var(--radius); background: var(--amber-soft);
}
.name-gate label { font-weight: 600; font-size: .9rem; color: var(--ink); white-space: nowrap; margin: 0; }
.name-gate input { flex: 1; min-width: 9rem; }
.name-gate.is-done { border-color: var(--green); background: var(--green-soft); }
.name-hint { font-size: .82rem; color: var(--amber); margin: 0 0 var(--space-3); }

.say { display: flex; gap: var(--space-2); align-items: center; transition: opacity .15s var(--ease); }
/* Waiting on a name. Dimmed on purpose, so a box that will not take a word
   looks like one, rather than looking broken. */
.say.is-waiting { opacity: .55; }
.say.is-waiting input, .say.is-waiting .send { cursor: not-allowed; }
.say input { flex: 1; border-radius: var(--radius-pill); }
/* WhatsApp's own green, and one of the two places in this stylesheet where a
   literal colour is right: it is somebody else's brand, people recognise it,
   and repainting it in the site's accent would make the one button on the page
   whose colour is already understood look like something else. See also
   .btn-whatsapp. */
.send {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #1f8a4c; color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .15s var(--ease), transform .1s var(--ease);
}
.send:hover { background: #1a7541; }
.send:active { transform: scale(.94); }
.send:disabled { opacity: .5; cursor: not-allowed; }

.enquiry-alt { padding: var(--space-4); text-align: center; font-size: .88rem; color: var(--grey-ink); background: var(--paper-raised); border-top: 1px solid var(--paper-edge); }
.enquiry-wa-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); background: var(--green-soft); color: var(--green);
  font-size: .88rem; border-top: 1px solid var(--paper-edge);
}
.enquiry-wa-note span:first-of-type { flex: 1; min-width: 14rem; }
.enquiry-wa-note .wa-get { display: flex; gap: var(--space-2); margin-left: auto; }

/* ---------- the module sign-in buttons ---------- */
.module-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px dashed var(--paper-line);
  font-size: .85rem; color: var(--ink-muted);
}
.module-bar .btn { margin-left: auto; }
.module-login {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; font-size: .82rem; font-weight: 600;
  background: var(--paper-sunk); color: var(--ink-muted);
  border: 1px solid var(--paper-line); border-radius: var(--radius-pill); text-decoration: none;
}
.module-login:hover { border-color: var(--accent); color: var(--accent); }
/* The two doors sit together and stay on the right of the bar. */
.module-doors { display: inline-flex; align-items: center; gap: var(--space-3); margin-left: auto; flex-wrap: wrap; }
.module-ask { font-size: .8rem; color: var(--ink-faint); text-decoration: none; border-bottom: 1px solid var(--paper-line); }
.module-ask:hover { color: var(--accent); border-bottom-color: currentColor; }

/* ---------- partner logos ---------- */
/* ---------- partners and sponsors, along the foot of every page ---------- */
/* Shown across the top of the public site while it is hidden — and only to
   somebody signed in, since nobody else gets this far. */
.hidden-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-3); padding: var(--space-2) var(--space-4);
  background: var(--amber); color: #fff; font-size: .82rem; font-weight: 600;
}
.hidden-note a { color: #fff; text-underline-offset: 3px; }

/* ---------- the organisation's people: leaders, team ---------- */
/* Every photograph fills the same frame whatever size it was uploaded at, so
   the page reads as a set of people rather than a column of odd pictures.
   Cover rather than contain, biased a little above centre, because these are
   portraits and the face is nearer the top than the middle. */
.people-grid {
  display: grid; gap: var(--space-5); margin: var(--space-6) 0;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.person {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.prose .person img {
  display: block; width: 100%; height: auto;
  /* Square, because every headshot the organisation uploads is square — 282x282 and
     up. A 4/3 frame cut a quarter off the top and bottom of each face. The
     ratio is kept rather than dropped so the cards stay a uniform height,
     and cover with the position below only comes into play if somebody ever
     uploads a landscape photo. */
  aspect-ratio: 1 / 1; object-fit: cover; object-position: center 28%;
  margin: 0; border-radius: 0; box-shadow: none; background: var(--paper-sunk);
}
.person-body { padding: var(--space-5); }
.person-body > :last-child { margin-bottom: 0; }
.person h3 { margin: 0 0 var(--space-2); font-size: 1.05rem; line-height: 1.3; }
.person-role {
  margin: 0 0 var(--space-3); font-size: .8rem; font-weight: 600; line-height: 1.4;
  color: var(--accent);
}
.person p { font-size: .9rem; margin-bottom: var(--space-3); }
/* The wording above the grid keeps a readable measure; the grid gets the
   whole column. */
.prose:has(.people-grid) { max-width: none; }
.prose:has(.people-grid) > p, .prose:has(.people-grid) > h2 { max-width: var(--measure); }

/* ---------- partners and sponsors, on their own page ---------- */
/* The footer keeps its quiet strip; this is the same list with room to
   breathe. Every logo sits in a box of the same height with the name under
   it, so a wide banner and a square badge line up as a grid rather than
   stepping up and down the page. */
/* A page whose wording introduces a grid keeps the wording at a readable
   width but lets the grid have the whole column — otherwise nine logos sit in
   a narrow strip with half the page empty beside them. */
.prose:has(.partner-cards) { max-width: none; }
.prose:has(.partner-cards) > p { max-width: var(--measure); }
.partner-cards {
  list-style: none; margin: var(--space-6) 0; padding: 0;
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.partner-card {
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.partner-card a { display: block; text-decoration: none; color: inherit; height: 100%; }
.partner-card:has(a):hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
/* The logo box. Its height is set per card from the shape of the logo in it:
   a round crest at the same height as a wordmark reads as far bigger, because
   the wordmark is a thin band of ink and the crest is a solid block of it. */
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  height: 120px; padding: var(--space-5) var(--space-5) var(--space-3);
}
.partner-logo img {
  max-width: 100%; max-height: var(--logo-h, 100%);
  width: auto; height: auto; object-fit: contain;
}
.partner-name {
  display: block; padding: 0 var(--space-4) var(--space-4);
  text-align: center; font-size: .85rem; font-weight: 600; color: var(--ink-soft);
}

.partners-strip { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--paper-edge); }
.partners-title {
  margin: 0 0 var(--space-4); text-align: center;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
}
.partners {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(var(--space-4), 3.5vw, var(--space-6));
}
.partners li { display: flex; }
.partners a { display: flex; }
.partners img {
  max-height: var(--logo-h, 46px); max-width: 150px; width: auto; object-fit: contain; border-radius: 0;
  /* The logos arrive in a dozen different colourways. Draining most of the
     colour out settles them into one quiet row, and the full colour comes
     back on hover so a sponsor is never permanently greyed out. */
  filter: grayscale(1); opacity: .6;
  transition: filter .2s var(--ease), opacity .2s var(--ease);
}
.partners img:hover, .partners a:focus-visible img { filter: none; opacity: 1; }
:root[data-theme="dark"] .partners img { filter: grayscale(1) brightness(1.6); opacity: .55; }
:root[data-theme="dark"] .partners img:hover { filter: brightness(1.05); opacity: 1; }
@media (max-width: 640px) { .partners img { max-height: calc(var(--logo-h, 46px) * .74); } }

/* ---------- what's on ---------- */
/* A date and what happens on it, side by side where there is room and stacked
   where there is not. The date column is fixed so the titles line up. */
.event-list { list-style: none; padding: 0; margin: 0; }
.event-row {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  padding: var(--space-5) 0; border-top: 1px solid var(--paper-line);
}
.event-row:last-child { border-bottom: 1px solid var(--paper-line); }
.event-when { flex: 0 0 11rem; display: flex; flex-direction: column; gap: .15rem; }
.event-what { flex: 1 1 16rem; min-width: 0; }
.event-what h2 { font-size: 1.1rem; margin: 0 0 var(--space-2); }
.event-what p { margin: 0 0 var(--space-2); }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  font-size: .88rem; color: var(--ink-muted); }
.event-meta span { display: inline-flex; align-items: center; gap: .35em; }

/* ---------------------------------------------------------------------------
   The member area: the list of lessons, and one lesson.

   A locked lesson is shown rather than hidden, so the list has two states and
   both have to look deliberate — the locked one dimmed and unclickable, not
   broken. The number down the left is what makes it read as a course.
   --------------------------------------------------------------------------- */
.member-head { margin-bottom: var(--space-6); }
.member-head h1 { margin-bottom: var(--space-2); }
.member-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  margin-top: var(--space-7); padding-top: var(--space-5);
  border-top: 1px solid var(--paper-line);
}

.lesson-list { list-style: none; padding: 0; margin: 0; counter-reset: lesson; }
.lesson-row {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-5) 0; border-top: 1px solid var(--paper-line);
}
.lesson-row:last-child { border-bottom: 1px solid var(--paper-line); }
.lesson-num {
  flex: 0 0 2.25rem; height: 2.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--paper-sunk); color: var(--ink-muted);
  font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.lesson-what { flex: 1 1 auto; min-width: 0; }
.lesson-what h2 { font-size: 1.1rem; margin: 0 0 var(--space-2); }
.lesson-what h2 a { color: inherit; text-decoration: none; }
.lesson-what h2 a:hover { color: var(--accent); }
.lesson-what p { margin: 0 0 var(--space-2); }
.lesson-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  font-size: .88rem; color: var(--ink-muted);
}
.lesson-meta span { display: inline-flex; align-items: center; gap: .35em; }
.lesson-row.is-locked .lesson-what h2 { color: var(--ink-muted); }
.lesson-row.is-locked .lesson-num { background: transparent; border: 1px dashed var(--paper-edge); }

.lesson-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4); margin-top: var(--space-7);
  padding-top: var(--space-5); border-top: 1px solid var(--paper-line);
}
.lesson-nav { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: .92rem; }
.lesson-nav a { display: inline-flex; align-items: center; gap: .35em; }

/* A 16:9 box that keeps its shape on a phone. */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%;
  margin-block: var(--space-5); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper-sunk);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 32rem) {
  .lesson-row { gap: var(--space-3); }
  .lesson-num { flex-basis: 1.9rem; height: 1.9rem; font-size: .82rem; }
}

/* ---------------------------------------------------------------------------
   Things for sale.

   Each offer is a self-contained card with its own form: the price, what it
   is, and the button, without a step in between. A shop that makes somebody
   click through to a second page before they can see the price loses them on
   the first page.
   --------------------------------------------------------------------------- */
.offer-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  margin-top: var(--space-6);
}
/* The row of parts across the top of the shop.
   front/shop.php has asked for class="tabs" since v1.60.0 and only admin.css
   has ever had a rule for it — a stylesheet the front of the site does not
   load — so on every site that used parts of the shop this came out as a run
   of bare blue links with nothing between them. It had gone unnoticed because
   no site had used parts until now. Scoped to .shop-parts rather than .tabs:
   this is the shop's own filter row, and redefining a name the admin already
   owns is how two things end up fighting later. (v2.19.0) */
.shop-parts {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin: var(--space-5) 0 var(--space-6); padding: 0; border: 0;
}
.shop-parts a {
  display: inline-flex; align-items: center;
  padding: .42rem .95rem;
  font-size: .9rem; font-weight: var(--w-em); line-height: 1.2;
  color: var(--ink-soft); text-decoration: none;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-pill);
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.shop-parts a:hover { color: var(--ink); border-color: var(--ink-faint); }
.shop-parts a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The one being looked at is filled in, not merely coloured in: a colour
   difference alone is not a state somebody colour-blind can read. */
.shop-parts a[aria-current="page"] {
  color: var(--accent-ink); background: var(--accent-soft);
  border-color: transparent; font-weight: var(--w-lab);
}

/* The parts of the shop, each under its own heading. The gap above a heading
   is what tells somebody a new kind of thing has started, so it is much
   bigger than the gap between the heading and what it names — the first
   section keeps the smaller gap, because nothing came before it. (v2.19.0) */
.shop-part + .shop-part { margin-top: var(--space-8); }
.shop-part-head { margin-bottom: var(--space-5); }
.shop-part-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.018em; }
.shop-part-line { margin: var(--space-2) 0 0; color: var(--ink-soft); max-width: 58ch; }
/* auto-FILL, not auto-fit, inside a part. auto-fit collapses the tracks
   nothing landed in, so a part holding two things stretched those two cards
   across the width of three and they stopped matching the section above
   them. Keeping the empty track keeps every card on the page one width.
   A part's own page stays auto-fit: there is nothing above it to match, and
   two wide cards read better there than two narrow ones and a gap. */
.shop-part .offer-grid {
  margin-top: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
}

.offer {
  position: relative;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  /* A grid item's floor is the width of its widest unbreakable thing, not the
     width of its track. Without this a long button label does not make the
     button wrap or shrink: it makes the card wider than the column, so the
     card lies across its neighbour. min-width:0 is what tells a flex or grid
     item it is allowed to be narrower than its contents. (v2.18.0) */
  min-width: 0;
}
.offer > * { min-width: 0; }
/* The card's name looks the same whichever heading level the page's
   outline needs it to be — h2 on a flat shop, h3 under a part's own
   heading, h3 in a products block. A name that changes size because of
   where the page sits in a document outline is a bug. (v2.19.0) */
.offer h2, .offer h3 { font-size: 1.3rem; line-height: 1.25; margin: 0; letter-spacing: -.015em; }
.offer-badge {
  position: absolute; top: var(--space-4); right: var(--space-4);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.offer-img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); margin: 0;
}
/* The amount, then the terms. Two sizes rather than one long bold sentence:
   the figure is what somebody scanning a row of cards is comparing, and the
   renewal is what they read once they have stopped on one. (v2.18.0) */
.offer-price { margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.offer-amount { font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.offer-terms { font-size: .85rem; color: var(--ink-soft); }
.offer-summary { margin: 0; color: var(--ink-soft); }
/* The way in to the thing's own page, where the full description lives. */
.offer-more { margin: 0; display: flex; align-items: center; gap: .3em; font-size: .9rem; font-weight: var(--w-em); }
.offer-more a { text-decoration: none; }
.offer-more a:hover, .offer-more a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.offer-more svg { color: var(--accent); transition: transform .15s var(--ease); }
.offer-more:hover svg { transform: translateX(2px); }
.offer-body { margin: 0; font-size: .95rem; }
/* The form sits at the bottom whatever length the description is, so a row of
   offers has its buttons on one line. */
.offer .buy-form { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--paper-line); }

.buy-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.buy-form .field { margin-bottom: var(--space-3); }
/* The button spans the card, so every card in a row ends the same way and
   there is no width left for a label to grow into. The label may shrink and,
   past that, cut off with an ellipsis — anything rather than reach outside
   the card, which is what it did when the whole price sentence lived in
   here. (v2.18.0) */
.offer .buy-form > .btn[type="submit"] { width: 100%; max-width: 100%; }
.buy-price { font-weight: 700; opacity: .85; margin-left: .2em; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.buy-note { display: flex; align-items: flex-start; gap: .4em; margin-top: var(--space-3); }
.buy-note svg { flex: 0 0 auto; margin-top: .18em; }

@media (max-width: 32rem) {
  .buy-form .row-2 { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Page sections (blocks)

   A page built from sections is a stack of full-width bands, each bringing its
   own container. That is the point of them: a wall of logos or a coloured
   call-to-action wants the whole width, which a single column of prose can
   never give it.

   Spacing is owned by the stack rather than by each section, so two sections
   of different kinds sitting next to each other are always the same distance
   apart — the thing that goes wrong first when every block sets its own
   margins.
   =========================================================================== */
.block-stack > .block { padding-block: clamp(var(--space-6), 5vw, var(--space-8)); }
.block-stack > .block:first-child { padding-top: var(--space-5); }
/* Alternating grounds would fight the page's own sections, so a band is tinted
   only when it is asking for something. */
.block-stack > .block + .block { border-top: 1px solid var(--paper-line); }
.block-stack > .block-cta + .block,
.block-stack > .block + .block-cta { border-top: 0; }
.block > .container > h2 { margin-top: 0; margin-bottom: var(--space-4); }
.block > .container > .lead { margin-bottom: var(--space-5); }
/* The section option that says "the full width of the page" means the writing
   as well, not just the pictures — otherwise it would say nothing that the
   ordinary column does not already do. */
.prose-wide { max-width: none; }
.prose-wide > p,
.prose-wide > h1, .prose-wide > h2, .prose-wide > h3,
.prose-wide > h4, .prose-wide > h5, .prose-wide > h6,
.prose-wide > ul, .prose-wide > ol, .prose-wide > dl,
.prose-wide > blockquote, .prose-wide > details { max-width: none; }

/* A page whose own header is followed straight away by a section does not need
   the header's bottom margin as well as the stack's top padding. */
.section.has-blocks { padding-bottom: 0; }

/* ---- picture and words ---- */
.media-text {
  display: grid; gap: clamp(var(--space-5), 4vw, var(--space-7));
  align-items: center; grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
  .media-text { grid-template-columns: 1fr 1fr; }
  /* The picture is first in the markup so it reads first on a phone, where a
     photograph above the words is the right order. On a wide screen it can be
     moved without changing that. */
  .block-media-text.is-right .media-text-figure { order: 2; }
}
.media-text-figure img {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); margin: 0;
}
.media-text-words > :first-child { margin-top: 0; }
.media-text-words h2 { margin-bottom: var(--space-3); }

/* ---- quote ---- */
.pull-quote { margin: 0; }
/* The global blockquote is the inset one used inside prose — tinted, with a
   rule down the left. A pull quote is not that, so everything it inherits is
   put back before anything is added. */
.pull-quote blockquote {
  margin: 0; padding: 0; border: 0; background: none; border-radius: 0;
  font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem);
  line-height: 1.4; color: var(--ink); font-weight: 500;
}
.pull-quote blockquote p { margin: 0; }
.pull-quote blockquote p::before { content: '\201C'; color: var(--accent); }
.pull-quote blockquote p::after  { content: '\201D'; color: var(--accent); }
.pull-quote figcaption {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-5); font-size: .95rem;
}
.pull-quote figcaption > span { display: flex; flex-direction: column; }
.pull-quote-face img {
  width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; margin: 0;
  box-shadow: var(--shadow-sm);
}

/* ---- wall of logos ---- */
.logo-cards {
  list-style: none; padding: 0; margin: 0; display: grid;
  gap: clamp(var(--space-4), 3vw, var(--space-5));
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
}
.logo-card {
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3); text-align: center;
}
/* A logo box of a fixed height with the mark centred inside it: the only way a
   row of logos looks deliberate when they arrive as wildly different shapes,
   which they always do. */
/* The box every mark is centred in. Its height comes from the block, adjusted
   for the shape of each logo — see Images::markScale(). The fallback is there
   for a logo whose size could not be read. */
.logo-card-mark {
  display: grid; place-items: center; height: var(--logo-h, 5rem);
}
.logo-card-mark img {
  max-height: var(--logo-h, 5rem); max-width: 100%; width: auto; height: auto;
  object-fit: contain; margin: 0; box-shadow: none;
}
.logo-card-name { font-size: 1rem; margin: 0; }
.logo-card-name a { color: inherit; text-decoration: none; }
.logo-card-name a:hover { color: var(--accent); text-decoration: underline; }
.logo-card-note { margin: 0; font-size: .9rem; color: var(--ink-soft); }

.logo-strip {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(var(--space-5), 4vw, var(--space-7));
}
.logo-strip img {
  max-height: var(--logo-h, 3rem); width: auto; margin: 0; box-shadow: none;
  opacity: .78; transition: opacity .18s var(--ease);
}
.logo-strip a:hover img { opacity: 1; }

/* ---- grid of cards ---- */
.block-card-grid {
  list-style: none; padding: 0; margin: 0; display: grid;
  gap: clamp(var(--space-4), 3vw, var(--space-5));
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
}
@media (min-width: 60rem) {
  .block-card-grid { grid-template-columns: repeat(var(--cols, 3), 1fr); }
}
.block-card {
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.block-card-img img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin: 0;
  box-shadow: none; border-radius: 0;
}
.block-card h3 { font-size: 1.05rem; margin: var(--space-4) var(--space-4) 0; }
.block-card p { margin: var(--space-2) var(--space-4) 0; color: var(--ink-soft); font-size: .94rem; }
.block-card-link { margin-top: auto; padding: var(--space-4); font-size: .92rem; }
.block-card-link a { display: inline-flex; align-items: center; gap: .35em; }

/* ---- pictures ---- */
.gallery-grid {
  list-style: none; padding: 0; margin: 0; display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); margin: 0;
}
.gallery-grid figcaption { font-size: .85rem; color: var(--ink-muted); margin-top: var(--space-2); }

/* ---- the gallery, the four original layouts (v1.22.0) ----
   KEPT EXACTLY AS THEY SHIPPED, and kept on purpose.

   The newer engine below draws the same four names differently: its
   large-first puts the lead tile in flow where this one positions it
   absolutely, its shapes layout is CSS columns where this one is a grid,
   and its scrolling row sizes tiles another way again. Rendering all 32
   existing combinations under both showed every one of them moving, some
   by half their height. Mapping the stored keys correctly does not help:
   the same key simply draws a different picture.

   So galleries already built keep this, unchanged, and the engine draws
   only the four layouts nobody has yet. One lightbox serves both. ---- */
/* ---- the gallery (v1.22.0) ----
   Four layouts from one list: an even grid, a mosaic that keeps every
   picture's own shape, one large picture first, and a row that scrolls
   sideways. Columns are a ceiling, not a promise — a phone gets fewer. */
.gallery-intro { color: var(--ink-soft); max-width: 62ch; margin: 0 0 var(--space-5); }
.gallery { --g-cols: 3; --g-ratio: 4 / 3; --g-gap: var(--space-3);
  list-style: none; padding: 0; margin: 0; }
.gallery--cols-2 { --g-cols: 2; }
.gallery--cols-4 { --g-cols: 4; }
.gallery--square   { --g-ratio: 1 / 1; }
.gallery--portrait { --g-ratio: 3 / 4; }
.gallery--wide     { --g-ratio: 16 / 9; }
.gallery figure { margin: 0; }
.gallery picture { display: block; }
.gallery figcaption { font-size: .85rem; color: var(--ink-muted); margin-top: var(--space-2); line-height: 1.4; }

.gallery-link {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--paper-sunk);
  cursor: zoom-in; outline-offset: 3px;
}
.gallery-link img {
  display: block; width: 100%; height: auto; margin: 0;
  border-radius: 0; box-shadow: none;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1), opacity .3s;
}
.gallery-link:hover img { transform: scale(1.035); }
.gallery-link:focus-visible { outline: 3px solid var(--accent); }

/* The even grid, and the large-first layout: every picture the same crop. */
.gallery--grid, .gallery--feature {
  display: grid; gap: var(--g-gap);
  grid-template-columns: repeat(min(var(--g-cols), 2), minmax(0, 1fr));
}
@media (min-width: 60rem) {
  .gallery--grid, .gallery--feature { grid-template-columns: repeat(var(--g-cols), minmax(0, 1fr)); gap: var(--space-4); }
}
@media (max-width: 26rem) {
  .gallery--grid.gallery--cols-2 { grid-template-columns: 1fr; }
}
.gallery--grid .gallery-link img, .gallery--feature .gallery-link img {
  aspect-ratio: var(--g-ratio); object-fit: cover;
}

/* Small thumbnails. A row of contact-sheet pictures that open full size, for
   an archive where the point is that there are several of them rather than
   that any one is big. They keep their size however wide the screen gets, and
   line up from the left instead of stretching. (v1.51.0) */
.gallery--grid.gallery--thumbs {
  grid-template-columns: repeat(auto-fill, minmax(110px, 150px));
  justify-content: start;
  gap: var(--space-2);
}
@media (min-width: 40rem) {
  .gallery--grid.gallery--thumbs { grid-template-columns: repeat(auto-fill, minmax(130px, 170px)); }
}
.gallery--feature .is-big { grid-column: 1 / -1; }
@media (min-width: 60rem) {
  .gallery--feature .is-big { grid-column: span 2; grid-row: span 2; }
  .gallery--feature.gallery--cols-2 .is-big { grid-column: 1 / -1; grid-row: auto; }
  /* The big one fills exactly the two rows beside it, whatever its own
     shape. Its picture is taken out of the flow so it cannot decide the
     height of those rows — a portrait photograph first used to stretch
     them to twice their size. */
  .gallery--feature .is-big figure { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  .gallery--feature .is-big .gallery-link { min-height: 12rem; }
  .gallery--feature .is-big .gallery-link picture,
  .gallery--feature .is-big .gallery-link img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .gallery--feature .is-big .gallery-link img { aspect-ratio: auto; object-fit: cover; }
  .gallery--feature.gallery--cols-2 .is-big figure { display: block; height: auto; }
  .gallery--feature.gallery--cols-2 .is-big .gallery-link { aspect-ratio: 16 / 9; }
}

/* The mosaic: columns, so each picture keeps its own height. The order runs
   down the first column, then the next — which is why the arrows in the
   viewer follow the list, not the eye. */
.gallery--mosaic { column-count: min(var(--g-cols), 2); column-gap: var(--g-gap); }
@media (min-width: 60rem) { .gallery--mosaic { column-count: var(--g-cols); column-gap: var(--space-4); } }
.gallery--mosaic .gallery-item { break-inside: avoid; margin-bottom: var(--g-gap); }
@media (min-width: 60rem) { .gallery--mosaic .gallery-item { margin-bottom: var(--space-4); } }

/* One row that scrolls sideways, each picture snapping into place. */
.gallery--strip {
  display: grid; grid-auto-flow: column; gap: var(--space-4);
  grid-auto-columns: min(80%, 26rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-bottom: var(--space-3);
  scrollbar-width: thin;
}
.gallery--strip.gallery--cols-2 { grid-auto-columns: min(88%, 36rem); }
.gallery--strip.gallery--cols-4 { grid-auto-columns: min(70%, 20rem); }
.gallery--strip .gallery-item { scroll-snap-align: start; }
.gallery--strip .gallery-link img { aspect-ratio: var(--g-ratio); object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .gallery-link img { transition: none; }
  .gallery-link:hover img { transform: none; }
}

/* ---- the gallery (v1.22.0, re-engined v1.57.0) ----
   Eight layouts and one lightbox between them. Every layout class is
   prefixed gal-is-, never gallery-: the legacy .gallery-grid rule above is
   display:grid, and a new class colliding with it turns a section's heading
   and its pictures into two cells side by side.

   THE FOUR OLDER LAYOUTS KEEP THE PROPORTIONS AND SPACING THEY SHIPPED WITH.
   --gal-ratio is set by the view from this site's own table (4:3 and 3:4,
   not the 3:2 and 4:5 the engine was written against), and the gaps below
   are this stylesheet's, so a gallery built two releases ago is drawn the
   same today. ---- */
.gallery { --gal-across: 3; --gal-ratio: 4/3; }   /* this site's default, not the engine's 3/2 */
.gallery > .eyebrow + .gallery-heading { margin-top: 0; }
/* The same spacing the films' own heading carries, so a gallery beside them
   starts its pictures on the line their clips start on rather than a few
   pixels adrift. */
.gallery-heading { margin: 0 0 var(--space-5); }
.gallery-intro { margin: 0 0 var(--space-5); color: var(--ink-soft); }
/* A gallery written into a content area sits inside .prose, which has
   opinions about figures, pictures and images that are right for an article
   and wrong for a grid: a 1.5rem margin round every figure — which is why the
   rows stood further apart than the columns — a margin and a drop shadow on
   every image, a picture forced to display:block, and everything centred.
   None of that applies inside a gallery, and these say so at a specificity
   that wins rather than relying on which rule happens to come last.

   Images::tag wraps a picture in <picture> for the webp copies. The wrapper
   must not become a layout box of its own or object-fit has nothing to fit. */
.gallery picture,
.prose .gallery picture,
.prose .gallery figure > picture { display: contents; }
.gallery figure,
.prose .gallery figure { margin: 0; }
.gallery img,
.prose .gallery img { margin-block: 0; margin-inline: 0; box-shadow: none; }
.prose .gallery figure > img,
.prose .gallery figure > picture > img { margin-inline: 0; }

/* ---------- the shared picture ---------- */
.gal-pic { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.gal-pic-link {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--paper-sunk); box-shadow: var(--shadow-sm); cursor: zoom-in;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
/* Each one rises as it comes into view, the delay set per picture in script.
   The hiding is behind data-gal-ready, which the script sets the moment
   before it starts revealing them — so with no script, a script that failed
   to load, or one that threw on the line above, the pictures are simply
   there. The comment here used to claim that; the rule did the opposite, and
   a gallery with scripting off showed an empty page. (v1.57.0) */
.gallery[data-gal-ready] .gal-pic-link { opacity: 0; transform: translateY(14px); }
.gallery[data-gal-ready] .gal-pic-link.is-in { opacity: 1; transform: none; }
.gal-pic-link:hover, .gal-pic-link:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gal-pic-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.gal-pic-link img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  aspect-ratio: var(--gal-ratio);
  transition: transform .6s var(--ease);
}
.gal-pic-link:hover img, .gal-pic-link:focus-visible img { transform: scale(1.07); }
/* Left to its own proportions, a picture is not cut and not stretched. */
.gallery.crop-natural .gal-pic-link img,
.gal-is-shapes .gal-pic-link img { aspect-ratio: auto; height: auto; object-fit: contain; }

.gal-pic-cap { font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
/* In a packed layout the caption cannot sit underneath without breaking the
   packing, so it rides up over the foot of the picture instead. */
.gal-pic-over {
  position: absolute; inset: auto 0 0 0; padding: 2rem .7rem .55rem;
  font-size: .82rem; font-weight: 500; color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(10,14,20,.82), rgba(10,14,20,0));
  transform: translateY(100%); opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.gal-pic-link:hover .gal-pic-over, .gal-pic-link:focus-visible .gal-pic-over { transform: none; opacity: 1; }

/* ---------- the grid family ---------- */
.gal-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(var(--gal-across), minmax(0, 1fr)); }
@media (max-width: 700px) { .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .gal-grid { grid-template-columns: minmax(0, 1fr); } }

/* Small thumbnails hold their size however wide the screen gets and line up
   from the left: a contact sheet rather than a feature wall. */
.gallery.size-thumbs .gal-grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 150px));
  justify-content: start;
}
.gallery.size-thumbs .gal-pic-cap { font-size: .8rem; }

/* The mosaic: uniform rows, dense packing. Sizing each tile by its own
   proportions leaves holes wherever a tall one does not line up, and strands
   the last picture on a row of its own. */
.gal-is-mosaic .gal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 102px; grid-auto-flow: dense;
}
.gal-is-mosaic .gal-pic { grid-row: span 2; }
.gal-is-mosaic .gal-pic.is-tall { grid-row: span 3; }
.gal-is-mosaic .gal-pic.is-wide { grid-column: span 2; }
.gal-is-mosaic .gal-pic-link { height: 100%; }
.gal-is-mosaic .gal-pic-link img { aspect-ratio: auto; height: 100%; }
@media (max-width: 700px) {
  .gal-is-mosaic .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 92px; }
}

/* Bento: a composed rhythm rather than a packed one — one large, two small,
   one wide, two small, and round again. */
/* The sizes are chosen so one turn of the rhythm — a hero, two small, a wide,
   two small — is exactly twenty cells, which is five whole rows of four. It
   comes out with no holes in it rather than relying on dense packing to
   paper over a composition that does not add up. */
.gal-is-bento .gal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 85px; grid-auto-flow: dense; }
.gal-is-bento .gal-pic { grid-row: span 2; }
.gal-is-bento .gal-pic.is-hero { grid-column: span 2; grid-row: span 4; }
.gal-is-bento .gal-pic.is-wide { grid-column: span 2; grid-row: span 2; }
.gal-is-bento .gal-pic-link { height: 100%; }
.gal-is-bento .gal-pic-link img { aspect-ratio: auto; height: 100%; }
@media (max-width: 860px) {
  .gal-is-bento .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 78px; }
  .gal-is-bento .gal-pic.is-hero { grid-column: span 2; grid-row: span 4; }
  .gal-is-bento .gal-pic.is-wide { grid-column: span 2; grid-row: span 2; }
}

/* Shapes: a column layout, so nothing is cut and nothing lines up in rows. */
.gal-is-shapes .gal-grid { display: block; columns: var(--gal-across); column-gap: var(--space-3); }
/* The gap between one picture and the next down a column. Written to beat
   the figure reset above, which is deliberately specific enough to override
   .prose and would otherwise take this away too. */
.gal-is-shapes .gal-pic,
.prose .gal-is-shapes .gal-pic { break-inside: avoid; margin: 0 0 var(--space-3); display: block; }
@media (max-width: 700px) { .gal-is-shapes .gal-grid { columns: 2; } }
@media (max-width: 400px) { .gal-is-shapes .gal-grid { columns: 1; } }

/* One large first, the rest beneath it. */
.gal-is-feature .gal-pic.is-lead { grid-column: 1 / -1; }
.gal-is-feature .gal-pic.is-lead .gal-pic-link img { aspect-ratio: 16/9; }

/* A row that scrolls sideways. */
.gal-is-scroller .gal-grid {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2); scrollbar-width: thin;
}
.gal-is-scroller .gal-pic { flex: 0 0 calc((100% - (var(--gal-across) - 1) * var(--space-3)) / var(--gal-across)); scroll-snap-align: start; }
@media (max-width: 700px) { .gal-is-scroller .gal-pic { flex-basis: 72%; } }

/* ---------- the viewer ---------- */
.gal-frame {
  position: relative; aspect-ratio: var(--gal-ratio); overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--paper-sunk); cursor: zoom-in;
}
.gal-layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .55s var(--ease);
  /* A very slow drift while a picture is the one on show. Barely perceptible
     frame to frame: the photograph breathes rather than anything moving. */
  animation: gal-drift 18s ease-in-out infinite alternate;
}
.gal-layer.is-on { opacity: 1; }
@keyframes gal-drift {
  from { transform: scale(1.04) translate(-1%, -.6%); }
  to   { transform: scale(1.1)  translate(1.4%, .8%); }
}
.gal-frame-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem .9rem .7rem;
  color: #fff; font-size: .9rem; font-weight: 500;
  background: linear-gradient(to top, rgba(10,14,20,.8), rgba(10,14,20,0));
}
.gal-frame-cap:empty { display: none; }
.gal-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.gal-thumb {
  border: 0; padding: 0; overflow: hidden; cursor: pointer; position: relative;
  border-radius: var(--radius-sm); background: var(--paper-sunk); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gal-thumb img { aspect-ratio: 1/1; width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: opacity .25s var(--ease); }
.gal-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gal-thumb:hover img, .gal-thumb:focus-visible img { opacity: 1; }
.gal-thumb[aria-current="true"] img { opacity: 1; }
.gal-thumb[aria-current="true"] { box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm); }
.gal-thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- the deck ---------- */
.gal-deck-wrap { display: flex; flex-direction: column; align-items: center; }
.gal-deck { position: relative; width: 100%; aspect-ratio: var(--gal-ratio); }
.gal-card {
  position: absolute; inset: 0; margin: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--paper-raised);
  /* A border all round, like a printed photograph. */
  border: 10px solid var(--paper-raised); box-shadow: var(--shadow-lg);
  transition: transform .55s var(--ease), opacity .45s var(--ease);
  transform-origin: 50% 90%;
}
.gal-card a { display: block; height: 100%; cursor: zoom-in; }
.gal-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }
.gal-card-cap {
  position: absolute; inset: auto 0 0 0; padding: 2rem .7rem .5rem;
  color: #fff; font-size: .84rem; font-weight: 500;
  background: linear-gradient(to top, rgba(10,14,20,.8), rgba(10,14,20,0));
}
.gal-deck-controls { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-4); }
.gal-deck-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-raised); color: var(--ink-soft);
  border: 1px solid var(--paper-edge); cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.gal-deck-btn:hover { background: var(--accent); color: var(--accent-on); border-color: var(--accent); transform: translateY(-2px); }
.gal-deck-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.gal-deck-count { font-size: .86rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; min-width: 6ch; text-align: center; }

/* ---------- the lightbox, and the water ---------- */
dialog.gal-lb {
  padding: 0; border: 0; background: transparent;
  width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; overflow: hidden;
}
dialog.gal-lb::backdrop { background: rgba(8,10,14,.92); }
.gal-lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); touch-action: pan-y; }
/* The frame carries the entrance and the clipping; the picture inside carries
   the ripple. Putting both on one element means the animation wins and the
   ripple's slight enlargement is silently dropped — which leaves a gap at the
   edge for the background to show through as the water pulls the picture in. */
.gal-lb-frame { position: relative; overflow: hidden; border-radius: var(--radius); line-height: 0; }
.gal-lb-frame.is-entering { animation: gal-rise 620ms var(--ease); }
@keyframes gal-rise { from { opacity: 0; transform: scale(.93); } to { opacity: 1; transform: none; } }

/* ---- the arrivals ----------------------------------------------------
   One of these runs on the frame whenever a picture is opened or stepped
   to, chosen per gallery. is-entering is the first picture, is-arriving is
   each one after it, and the second is quicker: the first arrival is the
   one worth watching, the nineteenth is just in the way. The water is the
   exception and works on the picture itself, further down, because a
   filter and an animation on one element cancel each other out.

   Each mode class out-specifies the plain .is-entering rule above, which
   stays as the behaviour for a gallery whose mode never arrived. */
.gal-lb-frame.gal-t-none.is-entering,
.gal-lb-frame.gal-t-none.is-arriving { animation: none; }

.gal-lb-frame.gal-t-fade.is-entering { animation: gal-fade 420ms var(--ease); }
.gal-lb-frame.gal-t-fade.is-arriving { animation: gal-fade 260ms var(--ease); }
@keyframes gal-fade { from { opacity: 0; } to { opacity: 1; } }

.gal-lb-frame.gal-t-blur.is-entering { animation: gal-blur 560ms var(--ease); }
.gal-lb-frame.gal-t-blur.is-arriving { animation: gal-blur 360ms var(--ease); }
@keyframes gal-blur {
  from { opacity: 0; filter: blur(16px); }
  to   { opacity: 1; filter: blur(0); }
}

.gal-lb-frame.gal-t-zoom.is-entering { animation: gal-zoom 520ms var(--ease); }
.gal-lb-frame.gal-t-zoom.is-arriving { animation: gal-zoom 320ms var(--ease); }
@keyframes gal-zoom {
  from { opacity: 0; transform: scale(.82); }
  to   { opacity: 1; transform: none; }
}

/* Forwards comes in from the right, back from the left. */
.gal-lb-frame.gal-t-slide.is-entering { animation: gal-slide-next 460ms var(--ease); }
.gal-lb-frame.gal-t-slide.is-arriving { animation: gal-slide-next 300ms var(--ease); }
.gal-lb-frame.gal-t-slide[data-gal-dir="prev"].is-arriving { animation-name: gal-slide-prev; }
@keyframes gal-slide-next {
  from { opacity: 0; transform: translateX(6%); }
  to   { opacity: 1; transform: none; }
}
@keyframes gal-slide-prev {
  from { opacity: 0; transform: translateX(-6%); }
  to   { opacity: 1; transform: none; }
}

/* The water keeps the rise it has always had; its own movement is on the
   picture inside. */
.gal-lb-frame.gal-t-water.is-entering { animation: gal-rise 620ms var(--ease); }
.gal-lb-stage img { max-width: 86vw; max-height: 82vh; display: block; }
.gal-lb-stage img.is-rippling { filter: url(#gal-water); transform: scale(1.1); }
.gal-lb-cap { position: absolute; inset: auto 0 0 0; padding: 1rem 1.2rem 1.4rem; text-align: center; color: #efe9dd; font-size: .92rem; }
.gal-lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  transition: background .18s var(--ease);
}
.gal-lb-btn:hover { background: rgba(255,255,255,.26); }
.gal-lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gal-lb-prev { left: clamp(.5rem, 2vw, 1.5rem); }
.gal-lb-next { right: clamp(.5rem, 2vw, 1.5rem); }
.gal-lb-close {
  position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
}
.gal-lb-close:hover { background: rgba(255,255,255,.26); }

/* The rings that spread from wherever the picture was pressed. */
.gal-ring {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 2147483647;
  border: 2px solid rgba(190, 225, 255, .5);
  transform: translate(-50%, -50%) scale(0);
}
.gal-ring.is-going { animation: gal-ring 820ms var(--ease) forwards; }
.gal-ring.is-second { border-color: rgba(190, 225, 255, .28); animation-delay: 120ms; }
@keyframes gal-ring {
  from { transform: translate(-50%, -50%) scale(0); opacity: .9; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Anybody who has asked for less movement gets none of it: no rise, no drift,
   no ripple, no rings — the pictures simply appear. */
@media (prefers-reduced-motion: reduce) {
  .gal-pic-link { opacity: 1; transform: none; }
  .gal-layer { animation: none; }
  .gal-lb-frame.is-entering { animation: none; }
  .gal-lb-frame[class*="gal-t-"].is-entering,
  .gal-lb-frame[class*="gal-t-"].is-arriving { animation: none; filter: none; transform: none; }
  .gal-lb-stage img.is-rippling { filter: none; transform: none; }
  .gal-ring { display: none; }
}

/* ---- numbered steps ---- */
.step-list {
  list-style: none; padding: 0; margin: 0; counter-reset: step;
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}
/* The number is a flex item rather than an absolutely positioned one. It used
   to sit on top of the heading whenever the heading wrapped, because absolute
   positioning takes the badge out of the flow and nothing reserves its height
   reliably across font sizes. */
.step-list > li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--space-3);
  align-items: start;
}
.step-list > li::before {
  content: counter(step);
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums;
}
/* Both the heading and the text belong in the second column. Without saying
   so, the text flows into the next grid cell — which is the 2.25rem badge
   column, and gives you one word per line. */
.step-list > li > * { grid-column: 2; }
.step-list h3 { font-size: 1.05rem; margin: .3rem 0 var(--space-2); }
.step-list p { margin: 0; color: var(--ink-soft); }

/* ---- questions and answers ---- */
.faq-list { border-top: 1px solid var(--paper-line); }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0; cursor: pointer; font-weight: 600;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--accent); }
.faq-item > summary svg { flex: 0 0 auto; color: var(--ink-muted); transition: transform .18s var(--ease); }
.faq-item[open] > summary svg { transform: rotate(180deg); }
.faq-answer { padding-bottom: var(--space-4); color: var(--ink-soft); max-width: 68ch; }
.faq-answer p { margin: 0; }

/* ---- numbers ---- */
.stat-row {
  list-style: none; padding: 0; margin: 0; display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  text-align: center;
}
.stat-value {
  display: block; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  font-weight: 700; line-height: 1.05; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: var(--space-2); color: var(--ink-soft); font-size: .92rem; }

/* ---- call to action ---- */
.cta-panel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-5); padding: clamp(var(--space-5), 4vw, var(--space-7));
  border-radius: var(--radius-lg);
}
.cta-panel h2 { margin: 0 0 var(--space-2); }
.cta-panel p { margin: 0; }
.cta-panel > div { flex: 1 1 22rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); }
/* A painted panel is the one place Paper Air's "colour means something" rule
   is deliberately set aside: this is the last word on a page, it carries one
   sentence and one button, and there is no second thing on it for the colour
   to compete with. It is a room, not a control. One per page — the moment
   there are two, both stop meaning anything.

   The gradient is built from the site's own accent rather than typed in, so a
   site that chose green gets a green panel. */
.cta-panel.is-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%);
  color: #fff;
}
.cta-panel.is-accent h2, .cta-panel.is-accent p { color: #fff; }
/* Ink, taken from the site's own text colour rather than a literal charcoal:
   a site with a warm near-black and a site with a cool one should not both
   get somebody else's #14181d. */
.cta-panel.is-dark { background: var(--ink); color: var(--paper); }
.cta-panel.is-dark h2, .cta-panel.is-dark p { color: var(--paper); }
.cta-panel.is-dark .btn-on-colour { background: var(--paper); color: var(--ink); }
.cta-panel.is-quiet { background: var(--paper-sunk); border: 1px solid var(--paper-edge); }
/* A solid white button reads on both the accent and the dark panel, where the
   site's own primary colour would disappear into the background. */
.btn-on-colour { background: #fff; color: var(--accent-ink); }
.btn-on-colour:hover { background: #fff; color: var(--accent); box-shadow: var(--shadow); }

/* ---- a row of buttons ---- */
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; }

/* ---- video or map ---- */
.embed-frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-sunk);
}
.embed-frame.is-map { aspect-ratio: 16 / 10; }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-caption { font-size: .88rem; color: var(--ink-muted); margin-top: var(--space-3); }

/* A logo is usually dark ink on nothing, drawn to sit on white paper. On a
   dark page that makes it invisible — and a client cannot fix it, because the
   file is whatever their funder sent them. So in dark mode every logo gets a
   pale plate to sit on, which is what a printed page would have given it. */
:root[data-theme="dark"] .logo-card-mark,
:root[data-theme="dark"] .logo-strip img {
  background: #fff; border-radius: var(--radius); padding: var(--space-3);
}
:root[data-theme="dark"] .logo-strip img { padding: var(--space-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-card-mark,
  :root:not([data-theme="light"]) .logo-strip img {
    background: #fff; border-radius: var(--radius); padding: var(--space-3);
  }
  :root:not([data-theme="light"]) .logo-strip img { padding: var(--space-2); }
}

/* ==========================================================================
   PAPER AIR — THE SHARED UTILITIES

   Four reusable pieces, so every control surface conforms without copying
   recipes around. Wearing the class is always preferred to copying the spec:
   one component, one recipe.

   .acts   — an ACTION ROW. Dresses its .btn children as menu-voice pills and
             hides their icons. It styles only the buttons, never the
             container, so it composes with whatever layout the row already
             has. Colour still comes from the .btn variant underneath, so
             hierarchy survives the costume change.
   .tray   — a segmented setting tray: a quiet inset trough, flat segments,
             and ONE raised active pill.
   .glass  — a surface that floats over content: translucent where the browser
             supports it, a solid sunk panel where it does not.
   .studio — the presentation register for a flagship message: the quiet
             dot-tag, the headline, the hairline before the action, and one
             ink button.
   ========================================================================== */

/* --- .acts — the action row, and the menu voice --------------------------
   Commandments 1 and 2. The icons go because a word in this voice scans
   faster than a picture that has to be decoded, and because eight little
   glyphs in a row is eight things competing with the one that matters. */
.acts .btn, .acts .btn-sm {
  font: var(--w-lab) .719rem/1 var(--font);
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .625rem .9375rem;
  border-radius: var(--radius-pill);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease),
              border-color .14s var(--ease), background .14s var(--ease),
              color .14s var(--ease), opacity .14s var(--ease);
}
.acts .btn .icon, .acts .btn svg { display: none; }
.acts .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm), 0 6px 16px -10px rgba(10, 11, 12, .28);
}
.acts .btn:active { transform: scale(.95); }
/* A row of chips wraps rather than scrolls; a scrolling action row hides the
   action at the end of it. */
.acts { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* --- .tray — the segmented setting tray ---------------------------------- */
.tray {
  display: inline-flex; gap: 3px;
  background: var(--paper-sunk); padding: 4px;
  border-radius: var(--r-in);
  border: 1px solid var(--paper-edge);
  box-shadow: inset 0 1px 3px rgba(10, 11, 12, .06);
}
.tray > button, .tray > a {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--ink-muted);
  font: var(--w-lab) var(--fs-sm)/1 var(--font);
  padding: .44rem .8rem; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
  transition: color .14s var(--ease), box-shadow .14s var(--ease);
}
.tray > button:hover, .tray > a:hover { color: var(--ink); }
/* One raised pill, and only one. The trough is flat so the raised one is
   unmistakable — which is the whole job of a tray. */
.tray > .on, .tray > [aria-selected="true"] {
  background: var(--paper-raised); color: var(--ink);
  box-shadow: 0 1px 2px rgba(10, 11, 12, .10),
              0 6px 16px -10px rgba(10, 11, 12, .28),
              inset 0 0 0 1px var(--paper-edge);
}

/* --- .glass — a bar that floats over content ----------------------------- */
.glass {
  background: var(--paper-sunk);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 3px rgba(10, 11, 12, .06);
}
/* The fallback above is the rule, not the exception: a solid tray is a
   perfectly good bar, and this only ever adds to it. */
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .glass {
    background: color-mix(in srgb, var(--paper-raised) 62%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.7);
    backdrop-filter: blur(18px) saturate(1.7);
    border-color: color-mix(in srgb, var(--paper-raised) 70%, transparent);
    box-shadow: 0 1px 1px rgba(10, 11, 12, .05),
                0 12px 32px -14px rgba(10, 11, 12, .28),
                inset 0 1px 0 color-mix(in srgb, var(--paper-raised) 80%, transparent);
  }
}

/* --- .studio — the presentation register ---------------------------------
   For the one flagship message on a page: what this organisation is for, the
   thing being launched, the invitation at the foot. What used to be done here
   with gradients and glows is done with SPACE and TYPE SIZE, which is what
   actually reads as considered.

   NOT A SECOND HOME PAGE. One sentence, one button, one fact. The moment it
   grows a second column it stops being a flagship message and starts being
   another thing to read past. */
.studio {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--paper-sunk);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6) var(--space-5);
  /* An inset hairline rather than a border: no layout cost, and it holds the
     edge on a pale page where the fill alone would not separate it. */
  box-shadow: inset 0 0 0 1px var(--paper-edge);
}
/* One bloom, not two washes, and near-white at the top so the panel reads as
   lit from above rather than tinted. Percentages, so it scales with the panel. */
.studio::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(110% 80% at 22% -10%,
              color-mix(in srgb, var(--paper-raised) 85%, transparent), transparent 68%);
}
/* The quiet dot-tag. Small capitals are the tell of a tool's interface rather
   than a brochure's — and the tone lives in the DOT, never in a painted box
   and never in the word. Commandment 4. */
.studio-tag {
  display: inline-flex; align-items: center; gap: .44rem;
  font: 700 .66rem/1 var(--font-mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: var(--space-4);
}
.studio-tag::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex: none;
}
.studio-tag.is-accent { color: var(--accent-ink); }
.studio-tag.is-green  { color: var(--green); }
.studio-tag.is-amber  { color: var(--amber); }

.studio-h {
  font-size: calc(clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem) * var(--heading-scale));
  font-weight: var(--heading-weight); letter-spacing: -.036em;
  line-height: 1.14; margin: 0 0 var(--space-3);
}
.studio-p { color: var(--ink-soft); max-width: 58ch; margin: 0; }
.studio-p b { color: var(--ink); font-weight: var(--w-em); }

/* The hairline before the action underlines the SENTENCE, not the page —
   which is why it fades out rather than running the full width. */
.studio-rule {
  height: 1px; border: 0; margin: var(--space-5) 0 var(--space-4);
  background: linear-gradient(90deg, var(--paper-line), transparent 70%);
}
.studio-acts { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.studio-note { font-size: var(--fs-fine); color: var(--ink-muted); }

/* --- tactile press, and stilling it -------------------------------------
   Every transform in Paper Air is a nicety. Somebody who has asked their
   machine for less movement gets none of them, and loses nothing but the
   movement: the hover and press still change colour and shadow. */
@media (prefers-reduced-motion: reduce) {
  .acts .btn, .acts .btn:hover, .acts .btn:active,
  .btn:active, .btn-ink:hover,
  .card-link:hover, a.card:hover { transform: none; }
}

/* ==========================================================================
   NOTICES, THE WHATSAPP BUTTON AND THE LEGAL LINE — v1.16.0
   Harvested from shoutwebsites.com and rebuilt in Paper Air: no painted
   boxes, one accent, tone in a 5px dot, and every movement stoppable.
   ========================================================================== */

/* --- the announcement bar ------------------------------------------------
   Ink on paper, not a coloured strip: it sits above every page, and a bar in
   the accent colour would be the loudest thing on every one of them. */
.nbar {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--ink); color: var(--paper);
  font-size: var(--fs-sm); line-height: 1.4;
  padding: .55rem var(--space-3) .55rem var(--space-5);
}
.nbar[hidden] { display: none; }
.nbar-track { flex: 1; min-width: 0; overflow: hidden; }
.nbar-one { margin: 0; text-align: center; }
.nbar-link { color: inherit; font-weight: var(--w-lab); text-decoration: underline;
  text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.nbar-link:hover { color: inherit; text-decoration-color: currentColor; }

/* Two copies of the run side by side, moved left by exactly one copy: the
   seam is invisible and the loop never jumps. The script sets the duration
   from the run's own width, so three short lines do not race past and ten
   long ones do not crawl: the reading speed stays the same either way. */
.nbar.is-scrolling .nbar-track {
  display: flex;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.nbar-run {
  display: flex; gap: 3rem; margin: 0; padding: 0 3rem 0 0; list-style: none;
  flex: none; white-space: nowrap;
  animation: nbar-scroll 38s linear infinite;
}
.nbar-run li { margin: 0; }
.nbar-run li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: .5; margin-right: 1rem; vertical-align: middle; }
@keyframes nbar-scroll { to { transform: translateX(-100%); } }
/* Stoppable three ways (WCAG 2.2.2): under the pointer, on keyboard focus,
   and by the button. */
.nbar:hover .nbar-run, .nbar:focus-within .nbar-run, .nbar.is-paused .nbar-run { animation-play-state: paused; }
/* And not moving at all for anybody who has asked for less motion — the
   run wraps into ordinary lines instead, with the copy hidden. */
@media (prefers-reduced-motion: reduce) {
  .nbar-run { animation: none; white-space: normal; flex-wrap: wrap; gap: .25rem 2rem; padding: 0; }
  .nbar-run[aria-hidden="true"] { display: none; }
  .nbar.is-scrolling .nbar-track { mask-image: none; }
}
.nbar-btn {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: transparent; color: inherit; opacity: .75;
}
.nbar-btn:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.nbar-btn svg { fill: currentColor; }
.nbar-btn .icon { fill: none; }
.nbar-btn[aria-pressed="true"] svg rect:first-child { transform: none; }

/* --- the what's-new panel ------------------------------------------------ */
.npanel { position: fixed; left: var(--space-4); bottom: var(--space-4); z-index: 60; }
/* The tab is a menu-voice pill: 600 at 11.5px, uppercase, tracked. */
.npanel-tab {
  display: inline-flex; align-items: center; gap: .5rem;
  font: var(--w-lab) .719rem/1 var(--font); letter-spacing: .5px; text-transform: uppercase;
  padding: .7rem 1rem; border-radius: var(--radius-pill); cursor: pointer;
  color: var(--ink); background: var(--paper-raised); border: 1px solid var(--paper-edge);
  box-shadow: 0 1px 2px rgba(10,11,12,.10), 0 6px 16px -10px rgba(10,11,12,.28);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.npanel-tab:hover { transform: translateY(-1px); }
.npanel-tab:active { transform: scale(.95); }
.npanel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.npanel.is-new .npanel-dot { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.npanel-count { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.npanel.is-open .npanel-tab { visibility: hidden; }

/* The box is the frosted surface. Solid where blur is not supported, which is
   a perfectly good panel on its own. */
.npanel-box {
  position: absolute; left: 0; bottom: 0; width: min(360px, calc(100vw - 2 * var(--space-4)));
  max-height: min(70vh, 560px); overflow: auto;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .npanel-box {
    background: color-mix(in srgb, var(--paper-raised) 86%, transparent);
    -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
  }
}
.npanel-box[hidden] { display: none; }
.npanel.is-open .npanel-box { animation: npanel-in .22s var(--ease); }
@keyframes npanel-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .npanel.is-open .npanel-box { animation: none; } .npanel-tab:hover, .npanel-tab:active { transform: none; } }
.npanel-head { display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-4) var(--space-2) var(--space-5); position: sticky; top: 0; }
.npanel-head h2 { font-size: 1.05rem; margin: 0; }
.npanel-head h2:focus { outline: none; }
.npanel-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; cursor: pointer;
  border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); }
.npanel-close:hover { background: var(--paper-sunk); color: var(--ink); }
.npanel-list { list-style: none; margin: 0; padding: 0 var(--space-5) var(--space-5); }
.npanel-item { padding: var(--space-3) 0 var(--space-3) var(--space-4); margin: 0; position: relative;
  border-top: 1px solid var(--paper-edge); }
.npanel-item:first-child { border-top: 0; }
/* The tone lives in the dot and nowhere else. Commandment 4. */
.npanel-item::before { content: ""; position: absolute; left: 0; top: calc(var(--space-3) + .5em);
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); }
.npanel-item.tone-accent::before { background: var(--accent); }
.npanel-item.tone-green::before  { background: var(--green); }
.npanel-item.tone-amber::before  { background: var(--amber); }
.npanel-item strong { display: block; font-weight: var(--w-lab); line-height: 1.35; }
.npanel-item p { margin: .25rem 0 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.npanel-item a { display: inline-block; margin-top: .35rem; font-size: var(--fs-sm); font-weight: var(--w-lab); }

/* --- the floating WhatsApp button ----------------------------------------
   WhatsApp's own green: somebody else's brand, recognised on sight, and one
   of the two places a literal colour is right (see .send). */
.wa-fab {
  position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1f8a4c; color: #fff;
  box-shadow: 0 2px 8px rgba(10,11,12,.18), 0 10px 26px -8px rgba(31,138,76,.5);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.wa-fab:hover { color: #fff; transform: translateY(-2px); }
.wa-fab:active { transform: scale(.95); }
@media (prefers-reduced-motion: reduce) { .wa-fab:hover, .wa-fab:active { transform: none; } }
/* On a phone both floating things share the bottom edge; keep them apart. */
@media (max-width: 520px) {
  .npanel { left: var(--space-3); bottom: var(--space-3); }
  .wa-fab { right: var(--space-3); bottom: var(--space-3); width: 52px; height: 52px; }
}

/* --- the proof row under the home page tagline --------------------------- */
.hero-proof {
  display: flex; flex-wrap: wrap; gap: .35rem 1.25rem;
  list-style: none; margin: 0; padding: 0;
  font-size: var(--fs-sm); font-weight: var(--w-em); color: rgba(255,255,255,.94);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 14px rgba(0, 0, 0, .5);
}
.hero-proof li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.hero-proof li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }

/* --- the legal line in the footer ---------------------------------------- */
.footer-legal { font-size: var(--fs-fine); color: var(--ink-muted); margin: var(--space-6) 0 0;
  padding-top: var(--space-4); border-top: 1px solid var(--paper-edge); line-height: 1.6; }

/* --- reviews ------------------------------------------------------------- */
.rv-grid { list-style: none; margin: var(--space-5) 0 0; padding: 0;
  display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rv-card { margin: 0; display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); padding: var(--space-5); }
.rv-card blockquote { margin: 0; padding: 0; background: none; border: 0; color: var(--ink); }
.rv-card blockquote p { margin: 0; line-height: 1.6; }
/* Stars in ink, not gold: they are information, and the page's one colour
   belongs to the thing somebody came to do. */
.rv-stars { display: inline-flex; gap: 2px; }
.rv-stars svg { fill: var(--ink); }
.rv-stars svg.off { fill: var(--paper-line); }
.rv-who { margin: auto 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem;
  font-size: var(--fs-sm); color: var(--ink-muted); }
.rv-who strong { color: var(--ink); font-weight: var(--w-lab); }
.rv-source::before { content: "·"; margin-right: .6rem; }
.rv-more { margin: var(--space-5) 0 0; }

/* --- comparison / price table ------------------------------------------- */
.cmp-grid { display: grid; gap: var(--space-4); margin-top: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; }
.cmp-card { position: relative; display: flex; flex-direction: column;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); padding: var(--space-5); }
/* The picked one says "this one" with an edge, not a painted box. */
.cmp-card.is-featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.cmp-badge { position: absolute; top: calc(-1 * .75rem); left: var(--space-5);
  font: var(--w-lab) .7rem/1 var(--font); letter-spacing: .5px; text-transform: uppercase;
  padding: .4rem .7rem; border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); }
.cmp-card h3 { margin: 0 0 var(--space-2); font-size: 1.1rem; }
.cmp-price { margin: 0; font-family: var(--heading-font); font-size: var(--fs-display);
  font-weight: var(--heading-weight); letter-spacing: -.035em; line-height: 1; }
.cmp-note { margin: .4rem 0 0; font-size: var(--fs-sm); color: var(--ink-muted); }
.cmp-list { list-style: none; margin: var(--space-4) 0 0; padding: var(--space-4) 0 0;
  border-top: 1px solid var(--paper-edge); display: grid; gap: .55rem; }
.cmp-list li { margin: 0; padding-left: 1.5rem; position: relative; font-size: var(--fs-sm); line-height: 1.45; }
.cmp-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.cmp-list li.is-yes::before { content: "✓"; color: var(--green); }
.cmp-list li.is-no { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); }
.cmp-list li.is-no::before { content: "–"; text-decoration: none; }
.cmp-do { margin: auto 0 0; padding-top: var(--space-5); }
.cmp-foot { margin: var(--space-4) 0 0; font-size: var(--fs-fine); color: var(--ink-muted); }

/* ---- rooms and availability (v1.23.0) ----
   The public side: each room as a picture and its facts, with small month
   calendars beside it. Free nights are plain; taken nights are struck
   through and shaded, so the difference survives a greyscale screen and
   anybody who cannot tell two colours apart. */
.rooms-intro { color: var(--ink-soft); max-width: 62ch; margin: 0 0 var(--space-5); }
.rooms-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-5); }
.rooms-legend { display: flex; justify-content: center; gap: var(--space-4); margin: 0; font-size: .88rem; color: var(--ink-muted); }
@media (max-width: 30rem) { .rooms-legend { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; } }
.rooms-legend span { display: inline-flex; align-items: center; gap: .45em; }
.rooms-key { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 4px; border: 1px solid var(--paper-line); }
.rooms-key.is-free { background: var(--paper-raised); }
.rooms-key.is-taken { background: color-mix(in srgb, var(--red) 18%, var(--paper-raised)); border-color: color-mix(in srgb, var(--red) 45%, transparent); }

.rooms-list { display: grid; gap: clamp(var(--space-6), 5vw, var(--space-8)); }
.room { display: grid; gap: var(--space-5); padding-bottom: clamp(var(--space-6), 5vw, var(--space-8)); border-bottom: 1px solid var(--paper-line); }
.room:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 60rem) { .room { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }
.room-about { display: grid; gap: var(--space-4); }
@media (min-width: 40rem) and (max-width: 59.99rem) { .room-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.room-picture { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-sunk); }
.room-picture img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none; }
.room-words h3 { margin: 0 0 var(--space-2); font-size: 1.3rem; }
.room-words p { margin: var(--space-3) 0 0; color: var(--ink-soft); }
.room-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.room-facts li { font-size: .85rem; padding: .25rem .65rem; border-radius: 999px; background: var(--paper-sunk); border: 1px solid var(--paper-line); color: var(--ink-soft); }

.room-months { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
.room-cal { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-size: .82rem; margin: 0; }
.room-cal caption { text-align: left; font-weight: 600; padding: 0 0 var(--space-2) 3px; color: var(--ink); font-size: .92rem; }
.room-cal th { font-weight: 500; color: var(--ink-faint); font-size: .72rem; padding: 0 0 2px; text-align: center; border: 0; background: none; }
.room-cal td { padding: 0; text-align: center; border: 0; background: none; }
.room-cal td span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--paper-line); background: var(--paper-raised); color: var(--ink); font-variant-numeric: tabular-nums; }
.room-cal td.is-taken span {
  /* Taken nights in colour (v1.25.0): a soft red with the date struck
     through in a strong one, so they stand out at a glance and still read
     without colour. */
  background: color-mix(in srgb, var(--red) 18%, var(--paper-raised)); color: var(--red); font-weight: 600;
  text-decoration: line-through; border-color: color-mix(in srgb, var(--red) 45%, transparent);
}
.room-cal td.is-past span { background: transparent; border-color: transparent; color: var(--ink-faint); opacity: .45; }
.room-cal td.is-today span { box-shadow: inset 0 0 0 2px var(--accent); }

/* The admin side: rooms down the side, a month of nights across the top. */
.avail-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.avail-nav h2 { margin: 0; }
.avail-scroll { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 calc(var(--space-2) * -1); padding: 0 var(--space-2) var(--space-2); }
.avail-grid { border-collapse: separate; border-spacing: 2px; margin: 0; min-width: 100%; }
.avail-grid th, .avail-grid td { padding: 0; border: 0; background: none; text-align: center; }
.avail-grid thead th { font-size: .72rem; font-weight: 600; color: var(--ink-muted); line-height: 1.15; min-width: 1.9rem; padding-bottom: 4px; }
.avail-grid thead th span { display: block; font-weight: 400; color: var(--ink-faint); }
.avail-grid thead th.is-weekend { color: var(--ink); }
.avail-grid thead th.is-today { color: var(--accent); }
.avail-grid .avail-room { text-align: left; font-size: .88rem; font-weight: 600; padding-right: var(--space-3); white-space: nowrap; position: sticky; left: 0; background: var(--paper-raised); z-index: 1; }
.avail-night {
  appearance: none; display: block; width: 1.9rem; height: 2.2rem; margin: 0; padding: 0; cursor: pointer;
  border-radius: 5px; border: 1px solid var(--paper-line); background: var(--paper-raised);
  transition: transform .08s, background .12s;
}
.avail-night:hover { border-color: var(--edge-ctl, #8a8a8a); }
.avail-night:active { transform: scale(.92); }
.avail-night:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.avail-night.is-booked, .avail-key.is-booked { background: var(--accent); border-color: var(--accent); }
.avail-night.is-closed, .avail-key.is-closed { background: repeating-linear-gradient(135deg, var(--ink-faint) 0 2px, var(--paper-sunk) 2px 5px); border-color: var(--ink-faint); }
.avail-night.is-past { opacity: .45; }
.avail-night.is-saving { opacity: .5; }
.avail-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin: var(--space-4) 0 0; font-size: .88rem; color: var(--ink-muted); }
.avail-legend span { display: inline-flex; align-items: center; gap: .45em; }
.avail-key { display: inline-block; width: 1rem; height: 1.15rem; border-radius: 4px; border: 1px solid var(--paper-line); background: var(--paper-raised); }
.avail-status { margin-left: auto; }
.avail-status.is-bad { color: var(--red); }
.room-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.room-panel-head h2 { margin: 0 0 var(--space-4); }
.room-panel-order { display: flex; gap: 4px; }

/* ---- the name in the bar, as a picture (v1.25.0) ----
   As large as the bar allows: the bar grows to hold it rather than the
   lettering shrinking to fit a bar sized for a crest. */
.bar-crest.has-image { padding: 6px 0; }
.bar-crest .bar-name {
  display: block; height: clamp(34px, 4.2vw, 56px); width: auto; max-width: min(62vw, 340px);
  object-fit: contain; margin: 0; border-radius: 0; box-shadow: none;
}
/* Lettering drawn for a white page disappears on a dark one, so it gets a
   small white card of its own there. */
:root[data-theme="dark"] .bar-crest .bar-name { background: #fff; padding: 4px 8px; border-radius: 8px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bar-crest .bar-name { background: #fff; padding: 4px 8px; border-radius: 8px; }
}

/* ---- WhatsApp and social links at the foot of every page (v1.25.0) ---- */
.footer-social {
  list-style: none; margin: var(--space-6) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-3);
}
.footer-social a {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--paper-line);
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500;
  background: var(--paper-raised); transition: border-color .15s, background .15s;
}
.footer-social a:hover { border-color: var(--edge-ctl, var(--ink-faint)); background: var(--footer-tint, var(--paper-sunk)); }
/* EACH MARK IN ITS OWN COLOUR (v1.120.2). Flat black at 18px gave the
   WhatsApp mark — an outlined bubble with a handset inside it, all thin
   strokes — barely two pixels to work with per stroke, and it read as
   ragged next to Facebook's solid disc. Two more pixels and the brand's
   own colour, and each one is legible on its own terms. The label beside
   it stays in the footer's ink, so the row still reads as a row. */
.footer-social svg.brand-mark { width: 20px; height: 20px; }
.footer-social .brand-whatsapp  { color: #25D366; }
.footer-social .brand-facebook  { color: #1877F2; }
.footer-social .brand-instagram { color: #E4405F; }
.footer-social .brand-youtube   { color: #FF0000; }

/* The home page with no blog rail: the words take the whole width. (v1.25.0) */
@media (min-width: 1000px) { .home-split.home-split--solo { grid-template-columns: minmax(0, 1fr); } }
.home-split--solo > div > .prose { max-width: 72ch; }


/* Rooms (v1.25.0): two pictures side by side, and Earlier / Later sitting
   over the calendars rather than over the pictures. */
.room-pictures { display: grid; gap: var(--space-3); }
.room-pictures--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.room-pictures--2 .room-picture img { aspect-ratio: 3 / 4; }
@media (min-width: 60rem) {
  .rooms-nav-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-5); }
}
.rooms-nav-row > div:first-child:empty { display: none; }
@media (min-width: 60rem) { .rooms-nav-row > div:first-child:empty { display: block; } }

.gallery-more { margin: var(--space-5) 0 0; }

/* The booking form's extra questions (v1.30.0).

   A Yes/No that matters is drawn as two things you press, not two dots you
   aim at — the whole box is the target, which is the difference between a
   form that works on a phone in a car park and one that does not. */
.askbox { margin: 0 0 var(--space-4); }
.askbox > fieldset { margin-bottom: 0; }
.askbox legend { font-weight: 600; }

.pickrow { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
.pick { position: relative; flex: 1 1 10rem; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick span {
  display: block; text-align: center; padding: .7rem 1rem;
  font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--edge-ctl);
  border-radius: var(--radius); transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pick:hover span { border-color: var(--accent); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Chosen, not shouted. ONE FILLED BUTTON PER SURFACE — the filled accent on
   this form belongs to "Put my name down", and a pair of filled answers above
   it spends that attention twice. The soft accent with its own ink is a
   designed pair in both themes; the inset ring does the work of a fill. */
.pick input:checked + span {
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600;
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}

/* Hidden only where the script that reveals it is running. */
[data-js] .askbox--new { display: none; }
[data-js] .askbox--new.is-open { display: block; }

/* Two ways to finish one form, with the quieter one below the line. */
.orline { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-muted); font-size: .85rem; }
.orline::before, .orline::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--paper-edge); }

/* ==========================================================================
   THE SQUARES — SERVICES AND COURSES
   --------------------------------------------------------------------------
   The cards module shipped its markup with no stylesheet behind it: every
   class below was already being printed by _card_grid.php, cards.php and
   card.php, and none of them meant anything here. A site that switched the
   module on got an unstyled list of links.

   Harvested from the site the module itself came from, with its one mint
   palette taken out: everything that was painted in that site's own green is
   drawn in --accent, so the squares wear whatever colour the site chose on
   the Look screen rather than somebody else's brand.

   The grid does not stretch to make the rows even. Every square is the same
   height because the summary is capped at four lines, so a long description
   cannot push one square out of line with its neighbours.
   ========================================================================== */

.card-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  margin: var(--space-6) 0;
  padding: 0;
  list-style: none;
}
.card-grid > li { display: flex; }

.card-square {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card-square:hover,
.card-square:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  text-decoration: none;
}
/* The whole square is the link, so the focus ring belongs to the square and
   not to the words inside it. */
.card-square:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Every picture area is the same shape whether there is a picture in it or
   not. Giving the empty ones a shallower box made the cards in a row
   different heights, and a grid whose cards do not line up reads as broken
   rather than as varied. */
.card-square-media {
  aspect-ratio: 4 / 3;
  background: var(--paper-sunk);
  overflow: hidden;
  position: relative;
}
.card-square-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

.card-square-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.card-square h3 { margin: 0; font-size: 1.125rem; line-height: 1.3; }
.card-square-strap { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card-square-meta {
  margin: 0; font-size: .82rem; font-weight: 600;
  letter-spacing: .02em; color: var(--accent-ink);
}
/* Capped at four lines, which is what keeps the rows level. */
.card-square-summary {
  margin: 0; color: var(--ink-muted); font-size: .92rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-square-more {
  margin-top: auto; padding-top: var(--space-3);
  font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: .35em;
}
.card-square-more .icon { transition: transform .18s var(--ease); }
.card-square:hover .card-square-more .icon { transform: translateX(3px); }

.card-square-flag {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: var(--accent); color: var(--on-accent);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25em .7em; border-radius: var(--radius-pill);
}
/* Without a picture to sit on, "Popular" is a line of the card rather than a
   badge floating over a corner. */
.card-square-flag.is-inline {
  position: static; align-self: flex-start;
  margin-bottom: calc(var(--space-1) * -1);
}

/* ---- a card with no picture -----------------------------------------------
   The placeholder these cards used to carry was a block of colour with the
   site's mark in it. One looked deliberate; twelve down a services page
   looked like the page had failed to load. A card with nothing to show now
   shows nothing and leads with its title, under a short rule that keeps the
   colour present as an accent rather than as a surface. */
.card-square.is-textual .card-square-body { padding-top: var(--space-5); gap: var(--space-3); }
.card-square.is-textual .card-square-body::before {
  content: ''; display: block;
  width: 34px; height: 3px; border-radius: 2px;
  background: var(--accent); margin-bottom: var(--space-2);
}
/* The title carries the card on its own here, so it is allowed to be a
   little larger than one sitting under a photograph. */
.card-square.is-textual h3 { font-size: 1.22rem; }
/* The rule picks up the hover as the border does, so the whole square still
   reads as one object. */
.card-square.is-textual:hover .card-square-body::before,
.card-square.is-textual:focus-visible .card-square-body::before { background: var(--accent-hover); }

/* ---- the page behind a square --------------------------------------------- */
.crumbs { margin-bottom: var(--space-4); display: flex; align-items: center; gap: .4em; flex-wrap: wrap; font-size: .92rem; color: var(--ink-muted); }
.crumbs a { display: inline-flex; align-items: center; gap: .35em; }

.card-page-head { display: grid; gap: var(--space-5); margin-bottom: var(--space-6); }
@media (min-width: 800px) {
  .card-page-head { grid-template-columns: 1fr 1fr; align-items: center; }
  /* One column when the card has no picture, or the writing is squeezed into
     half a screen with nothing beside it. */
  .card-page-head:not(:has(img)) { grid-template-columns: 1fr; }
}
.card-page-head img { width: 100%; border-radius: var(--radius-lg); display: block; }

.card-facts { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: var(--space-2); }
.card-facts li { display: flex; gap: var(--space-3); align-items: baseline; }
.card-facts .k { color: var(--ink-muted); min-width: 6.5em; font-size: .9rem; }

.card-nav { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-7); flex-wrap: wrap; }
/* These buttons carry a course title, and some of those are a sentence. On a
   narrow screen the pair stacks and each is allowed to wrap, or one button
   alone is wider than the phone. */
.card-nav .btn { max-width: 100%; white-space: normal; text-align: left; min-width: 0; }
@media (max-width: 599px) {
  .card-nav { flex-direction: column; align-items: stretch; }
  .card-nav .btn { justify-content: flex-start; }
}

/* "There is nothing here yet" — an answer, so it is given the weight of one
   rather than left as a stray sentence. */
.empty-note {
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin: var(--space-6) 0; padding: var(--space-5);
  background: var(--paper-sunk);
  border: 1px dashed var(--paper-edge);
  border-radius: var(--radius);
  color: var(--ink-muted);
}
.empty-note svg { flex: 0 0 auto; margin-top: .1em; color: var(--accent); }

/* ==========================================================================
   THE DIARY — CHOOSING A TIME AND BOOKING IT
   --------------------------------------------------------------------------
   The screens at /book: the kinds of appointment, the strip of days, the
   times inside a day, and the summary of what is about to be booked.

   Same provenance as the squares above, and the same treatment: what was
   painted in one site's green is drawn in --accent here. A day with nothing
   free is shown greyed rather than hidden, because an empty Tuesday is
   information and a calendar that silently skips days looks broken.
   ========================================================================== */

.booking-types {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  padding: 0; list-style: none;
}
.booking-types > li { display: flex; }
.booking-type-card {
  display: flex; flex-direction: column; gap: var(--space-2);
  width: 100%; height: 100%;
  padding: var(--space-5);
  border: 1px solid var(--paper-edge); border-radius: var(--radius-lg);
  background: var(--paper-raised); text-decoration: none; color: inherit;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.booking-type-card:hover,
.booking-type-card:focus-visible {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: var(--shadow-lg); text-decoration: none;
}
.booking-type-card h2, .booking-type-card h3 { margin: 0; font-size: 1.05rem; }
.booking-type-card .btn { margin-top: auto; align-self: flex-start; }

/* ---- the strip of days ---- */
.booking-cal { margin: var(--space-5) 0; }
/* It scrolls inside itself. Without min-width:0 a flex or grid child refuses
   to shrink below its content, and a fortnight of days pushes the whole page
   sideways instead of scrolling. */
.booking-cal, .booking-cal-days { min-width: 0; max-width: 100%; }
.booking-cal-days {
  display: flex; gap: var(--space-2); overflow-x: auto;
  padding: 0 0 var(--space-3); margin: 0; list-style: none;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.booking-cal-day {
  flex: 0 0 auto; scroll-snap-align: start;
  min-width: 5.5rem; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--paper-edge); border-radius: var(--radius);
  background: var(--paper-raised); text-align: center;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: .15em; line-height: 1.2;
}
.booking-cal-day:hover { border-color: var(--accent); text-decoration: none; }
.booking-cal-day .dom { display: block; font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.booking-cal-day .dow,
.booking-cal-day .mon {
  display: block; font-size: .78rem; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.booking-cal-day .how,
.booking-cal-day .free {
  display: block; margin-top: .25em; font-size: .72rem;
  color: var(--accent); font-weight: 600;
}
.booking-cal-day.is-selected {
  border-color: var(--accent); background: var(--accent);
  color: var(--on-accent); box-shadow: var(--shadow-sm);
}
.booking-cal-day.is-selected .dom,
.booking-cal-day.is-selected .dow,
.booking-cal-day.is-selected .mon,
.booking-cal-day.is-selected .how,
.booking-cal-day.is-selected .free { color: var(--on-accent); }
.booking-cal-day.is-empty { opacity: .45; pointer-events: none; }
.booking-cal-day.is-empty .how,
.booking-cal-day.is-empty .free { color: var(--ink-faint); }

/* ---- the times inside a day ---- */
.booking-slots {
  display: grid; gap: var(--space-2);
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  list-style: none; padding: 0; margin: var(--space-4) 0;
}
.booking-slot {
  display: block; text-align: center; cursor: pointer;
  padding: var(--space-3);
  border: 1px solid var(--paper-edge); border-radius: var(--radius);
  background: var(--paper-raised); font-weight: 600; color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
/* The radio is the control; the chip around it is what anybody aims at. It is
   hidden rather than removed, so the keyboard and the screen reader still
   have a radio to work with. */
.booking-slot input { position: absolute; opacity: 0; pointer-events: none; }
.booking-slot:hover { border-color: var(--accent); }
.booking-slot.is-chosen,
.booking-slot:has(input:checked) {
  background: var(--accent); border-color: var(--accent-hover); color: var(--on-accent);
}
.booking-slot:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.booking-slots-empty {
  color: var(--ink-muted); padding: var(--space-5);
  background: var(--paper-sunk); border-radius: var(--radius);
}

/* ---- what is about to be booked, and what was ---- */
.booking-form { margin-top: var(--space-6); }
.booking-summary {
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5); margin: var(--space-5) 0;
}
.booking-summary h2, .booking-summary h3 { margin: 0 0 var(--space-2); font-size: 1rem; }
/* Label and answer, rather than an indented list. */
.booking-summary dl,
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4em var(--space-4); margin: 0; }
.kv { margin: var(--space-4) 0; }
.booking-summary dt, .kv dt { color: var(--ink-muted); font-size: .9rem; }
.booking-summary dd, .kv dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) {
  .booking-summary dl, .kv { grid-template-columns: 1fr; gap: 0; }
  .booking-summary dd, .kv dd { margin-bottom: var(--space-3); }
}
.booking-confirm { text-align: center; padding: var(--space-7) 0; }
.booking-confirm .ref {
  display: inline-block;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem;
  background: var(--paper-sunk); padding: .4em .8em; border-radius: var(--radius-sm);
}

/* ==========================================================================
   DATES ON A COURSE PAGE (v1.36)
   --------------------------------------------------------------------------
   When, where, what it costs, how many places are left, and the button — on
   the page where somebody has just read what the course is.
   ========================================================================== */
.course-dates { margin: var(--space-7) 0 var(--space-6); }
.course-dates h2 { margin-bottom: var(--space-4); }
.date-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.date-row {
  display: grid; gap: var(--space-3); align-items: center;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  padding: var(--space-4) var(--space-5);
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge); border-radius: var(--radius);
}
.date-row.is-full { opacity: .65; }
.date-when strong { display: block; }
.date-where { color: var(--ink-muted); font-size: .92rem; }
.date-facts { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: baseline; }
.date-price { font-weight: 700; }
.date-left { color: var(--accent-ink); font-size: .9rem; font-weight: 600; }
.date-do { justify-self: end; }
.date-gone { color: var(--ink-muted); font-weight: 600; }
/* Three columns need a screen. Below that it reads as a block per date, with
   the button under the words rather than squeezed beside them. */
@media (max-width: 860px) {
  .date-row { grid-template-columns: 1fr; }
  .date-do { justify-self: start; }
}

/* ---------------------------------------------------------------------------
   What this site does — /features (v1.37.0)

   Every value here is a token, so this page follows the site's own colours and
   corners rather than carrying a look of its own.

   The one judgement worth writing down: an unused part keeps full contrast on
   its words. Only the tick and the tint go. Fading the text would say "you
   cannot have this", when the page exists to say the opposite.
   --------------------------------------------------------------------------- */
.features-head { max-width: var(--measure); margin-bottom: var(--space-7); }
.features-count {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin-top: var(--space-4); font-size: .9rem;
}
.features-key-on, .features-key-off { display: inline-flex; align-items: center; gap: .45em; }
.features-key-on::before, .features-key-off::before {
  content: ""; width: .7em; height: .7em; border-radius: var(--radius-pill);
}
.features-key-on::before  { background: var(--accent); }
.features-key-off::before { background: var(--paper-line); }
.features-key-on  { color: var(--accent-ink); font-weight: 500; }
.features-key-off { color: var(--ink-muted); }

.features-group { margin-bottom: var(--space-7); }
.features-group > h2 {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 500;
  padding-bottom: var(--space-2); margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--paper-line);
}
.features-grid {
  display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.feature {
  display: grid; align-content: start; gap: .35em;
  padding: var(--space-4);
  border: 1px solid var(--paper-edge); border-radius: var(--radius-lg);
  background: var(--paper-sunk); color: inherit; text-decoration: none;
  position: relative;
}
.feature.is-on { background: var(--paper-raised); border-color: var(--accent-soft); }
a.feature:hover { border-color: var(--accent); }
a.feature:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.feature-mark {
  display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: var(--radius-pill); margin-bottom: .2em;
  background: var(--paper-edge); color: transparent;
}
.feature.is-on .feature-mark { background: var(--accent); color: var(--on-accent); }

.feature-name { font-weight: 600; line-height: 1.3; }
.feature-line { color: var(--ink-soft); font-size: .94rem; line-height: 1.5; }
.feature-state {
  margin-top: .5em; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; flex-wrap: wrap; gap: .3em var(--space-3); align-items: center;
}
.feature.is-on .feature-state { color: var(--accent-ink); }
.feature-go { display: inline-flex; align-items: center; gap: .3em; }
a.feature:hover .feature-go { text-decoration: underline; }

.features-cta {
  margin-top: var(--space-6); padding: var(--space-5);
  border-radius: var(--radius-lg); background: var(--accent-soft);
}

@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   The six panels brought over from a client site (v1.47.0)

   Every one wears the tokens, so a site that changes its colour or its
   spacing in Admin → Look changes these with it. Nothing here is a hard
   colour, and nothing here invents a second recipe for something the house
   already has: the figures reuse .stat-row, the buttons are .btn, the long
   words are .prose, the small print is .hint.
   -------------------------------------------------------------------------- */

/* ---- Opening panel ------------------------------------------------------ */
/* Three grid children rather than two, so a phone can take the picture out
   from underneath the figures and put it directly under the headline. */
.lede-grid {
  display: grid; gap: clamp(var(--space-5), 4vw, var(--space-7));
  grid-template-columns: 1fr; align-items: center;
}
.lede-pill {
  display: inline-block; margin: 0 0 var(--space-4);
  padding: .35rem .8rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
}
.lede-title {
  margin: 0; font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem);
  line-height: 1.08; text-wrap: balance;
}
.lede-accent { color: var(--accent); }
.lede-body {
  margin: var(--space-4) 0 0; max-width: 34em;
  font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem); color: var(--ink-soft);
}
.lede-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; }
.lede-stats { margin-top: var(--space-6); text-align: left; }
.lede-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.lede-figure img { display: block; width: 100%; height: auto; }
.lede-figure.is-video { aspect-ratio: 16 / 9; }
.lede-figure.is-video iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (min-width: 62rem) {
  .lede-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: "copy figure" "side figure";
    align-items: start; row-gap: var(--space-6);
  }
  .lede-copy   { grid-area: copy; }
  .lede-side   { grid-area: side; }
  .lede-figure { grid-area: figure; align-self: center; }
  .lede-stats  { text-align: left; grid-template-columns: repeat(auto-fit, minmax(min(7rem, 100%), 1fr)); }
}

/* ---- Photo band --------------------------------------------------------- */
/* The words sit in a panel rather than straight onto the picture, because
   text on a photograph is legible until somebody changes the photograph. */
.photoband { position: relative; }
.photoband-img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: cover; }
.photoband-words {
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: var(--space-5); margin: calc(var(--space-6) * -1) var(--space-5) 0;
  position: relative;
}
.photoband-words h2 { margin: 0; }
.photoband-words p  { margin: var(--space-3) 0 0; color: var(--ink-soft); }
.photoband-eyebrow {
  margin: 0 0 var(--space-2); font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted);
}
@media (min-width: 48rem) {
  .photoband.has-words .photoband-words {
    max-width: 34rem; margin-inline: auto;
  }
}

/* ---- Somebody's story --------------------------------------------------- */
.bio-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.bio-portrait { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); max-width: 20rem; }
.bio-portrait img { display: block; width: 100%; height: auto; }
.bio-words > h2 { margin-top: 0; }
.bio-inline { margin: var(--space-5) 0; }
.bio-inline img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.bio-inline figcaption { margin-top: var(--space-2); font-size: .875rem; color: var(--ink-muted); }
.bio-creds-label {
  margin: var(--space-5) 0 var(--space-3); font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted);
}
.bio-creds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bio-creds li {
  margin: 0; padding: .3rem .75rem; border-radius: 999px;
  background: var(--paper-sunk); border: 1px solid var(--paper-edge);
  font-size: .85rem; color: var(--ink);
}
.bio-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0 0; }
@media (min-width: 48rem) {
  .bio-grid { grid-template-columns: 20rem minmax(0, 1fr); align-items: start; gap: var(--space-7); }
  .bio-grid.no-portrait { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Ways in ------------------------------------------------------------ */
.block-ways.is-tint { background: var(--accent-soft); }
.block-ways.is-warm { background: var(--paper-sunk); }
.block-ways.is-tint, .block-ways.is-warm { padding-block: var(--space-7); }
.ways-intro { max-width: 46em; color: var(--ink-soft); }
.ways-grid {
  list-style: none; margin: var(--space-6) 0 0; padding: 0;
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}
.way-card {
  margin: 0; position: relative; display: flex; flex-direction: column;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: var(--space-5);
}
.way-card.has-badge { padding-top: var(--space-6); }
.way-card h3 { margin: 0; font-size: 1.15rem; }
.way-badge {
  position: absolute; top: calc(var(--space-3) * -1); left: var(--space-5);
  padding: .25rem .7rem; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.way-price { margin: var(--space-2) 0 0; font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.way-body  { margin: var(--space-3) 0 0; color: var(--ink-soft); font-size: .95rem; }
.way-do    { margin: var(--space-5) 0 0; padding-top: var(--space-3); margin-top: auto; }

/* ---- One offer, argued properly ---------------------------------------- */
.offerpanel {
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(var(--space-5), 3vw, var(--space-7));
}
.offerpanel-head h2 { margin: 0; }
.offerpanel-lead {
  margin: var(--space-3) 0 0; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  font-weight: 600; color: var(--accent);
}
.offerpanel-body { display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin-top: var(--space-5); }
.offerpanel-figure { display: flex; gap: var(--space-4); align-items: flex-start; margin: var(--space-5) 0; }
.offerpanel-round { flex: 0 0 auto; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.offerpanel-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.offerpanel-points li { margin: 0; display: flex; gap: var(--space-2); align-items: flex-start; }
.offerpanel-points .icon { flex: 0 0 auto; margin-top: .2rem; color: var(--accent); }
.offerpanel-callout {
  margin-top: var(--space-5); padding: var(--space-4);
  background: var(--paper-sunk); border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
}
.offerpanel-callout p:first-child { margin-top: 0; }
.offerpanel-callout p:last-child  { margin-bottom: 0; }
.offerpanel-prices {
  list-style: none; margin: var(--space-6) 0 0; padding: 0;
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
.offerpanel-prices li {
  margin: 0; padding: var(--space-5); text-align: center;
  background: var(--paper); border: 1px solid var(--paper-edge); border-radius: var(--radius);
}
.offerpanel-prices h3 { margin: 0; font-size: 1.05rem; }
.offerpanel-price { margin: var(--space-2) 0 var(--space-4); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.offerpanel-price-note { margin: var(--space-2) 0 0; font-size: .9rem; color: var(--ink-soft); }
.offerpanel-quote {
  margin: var(--space-6) 0 0; padding: var(--space-5);
  background: var(--paper-sunk); border-radius: var(--radius); border: 1px solid var(--paper-edge);
}
.offerpanel-quote blockquote { margin: 0; font-size: 1.1rem; line-height: 1.5; }
.offerpanel-quote figcaption { margin-top: var(--space-3); font-weight: 600; color: var(--ink-muted); font-size: .9rem; }
.offerpanel-note { margin-top: var(--space-5); }
@media (min-width: 52rem) {
  .offerpanel-body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

/* ---- Join the list ------------------------------------------------------ */
.joinform {
  display: grid; gap: var(--space-6); grid-template-columns: 1fr;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(var(--space-5), 3vw, var(--space-7));
}
.joinform-words h2 { margin-top: 0; }
.joinform-words p  { color: var(--ink-soft); margin-bottom: 0; }
.joinform-form input[type="text"],
.joinform-form input[type="email"] { width: 100%; }
.joinform-do { margin: var(--space-5) 0 0; }
/* Out of sight without display:none, which some bots check for. */
.joinform-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 52rem) {
  .joinform { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-7); }
}

/* --------------------------------------------------------------------------
   The sticky call to action, and two small things the new panels need.
   (v1.48.0)
   -------------------------------------------------------------------------- */

/* One thing, following somebody down the page. Deliberately a single pill
   rather than a bar: a bar across the bottom of a phone covers the content
   somebody is trying to read, and on iOS it fights the home indicator. */
.sticky-cta {
  position: fixed;
  right: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: .7rem 1.15rem;
  border-radius: 999px;
  /* --on-accent, not #fff. The accent is a deep blue in the light and a pale
     one at night, so a hard white here measures 7.2:1 by day and 2.45:1 after
     dark — the one control on the page that follows you everywhere, unreadable
     in half the cases. The token already flips; this did not use it. Fixed on
     costapopchoir.com and never folded back until v1.85.0. */
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sticky-cta:hover  { transform: translateY(-1px); color: var(--on-accent); }
.sticky-cta:active { transform: scale(.97); }
.sticky-cta:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .sticky-cta, .sticky-cta:hover, .sticky-cta:active { transition: none; transform: none; }
}
/* Out of the way of anything that prints, and of a narrow phone in landscape
   where it would sit on top of the content. */
@media print { .sticky-cta { display: none; } }
@media (max-height: 26rem) { .sticky-cta { display: none; } }

.block-do { margin-top: var(--space-5); }
.buy-paused { margin: 0; }

/* --------------------------------------------------------------------------
   The announcement bar in the dark (v1.48.0)

   It was written as a straight inversion — ink background, paper text — which
   is right in the light and wrong at night, where it becomes the brightest
   thing on an otherwise dark page and pulls the eye away from the words
   underneath it. At night it is a raised band with a hairline instead, which
   still reads as "not the page" without shouting.
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] .nbar {
  background: var(--paper-raised);
  color: var(--ink);
  border-bottom: 1px solid var(--paper-edge);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nbar {
    background: var(--paper-raised);
    color: var(--ink);
    border-bottom: 1px solid var(--paper-edge);
  }
}

/* The sticky button, tucked away while something it would cover is on screen.
   Moved rather than hidden, so it is still in the page for anybody tabbing
   through, and so it comes back smoothly instead of blinking. (v1.50.0) */
.sticky-cta.is-tucked,
.sticky-cta.is-typing {
  transform: translateY(calc(100% + var(--space-5)));
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta.is-tucked, .sticky-cta.is-typing { transform: none; display: none; }
}

/* ---- Music (blocks/tracks.php) ------------------------------------------
   A record sleeve, not a jukebox. The native <audio> element does the work;
   these rules only hide it once the script has drawn our own button, bar and
   numbers in its place. Dark by default, because a page of somebody's
   recordings reads as a release rather than as another section of a
   website. (v1.51.0) */

.block-tracks { margin: var(--space-5) 0; }

.tracks-panel {
  --sleeve-ink:   #f4f1ea;
  --sleeve-dim:   #a7a299;
  --sleeve-line:  rgba(255,255,255,.13);
  --sleeve-hover: rgba(255,255,255,.05);
  border-radius: var(--radius-lg, 18px);
  padding: clamp(var(--space-3), 4vw, var(--space-5));
}

.tracks-sleeve .tracks-panel {
  background: linear-gradient(170deg, #14233b 0%, #0b1526 60%, #09111f 100%);
  color: var(--sleeve-ink);
  box-shadow: 0 24px 60px -32px rgba(0,0,0,.65);
}
.tracks-paper .tracks-panel {
  --sleeve-ink:   var(--ink);
  --sleeve-dim:   var(--muted);
  --sleeve-line:  var(--edge);
  --sleeve-hover: color-mix(in srgb, var(--ink) 4%, transparent);
  background: var(--raised);
  border: 1px solid var(--edge);
}

.tracks-panel.has-art {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(var(--space-3), 4vw, var(--space-5));
  align-items: start;
}

.tracks-art img {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--radius-lg, 18px) - 6px);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.8);
}

.tracks-eyebrow {
  margin: 0 0 var(--space-1);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--pop, #f8c000);
}
.tracks-paper .tracks-eyebrow { color: var(--accent); }

.tracks-title {
  margin: 0 0 var(--space-2);
  color: var(--sleeve-ink);
  line-height: 1.05;
}
.tracks-intro {
  margin: 0 0 var(--space-4);
  max-width: 56ch;
  color: var(--sleeve-dim);
}

.tracks-list { list-style: none; margin: 0; padding: 0; }

.track {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3) var(--space-2);
  border-top: 1px solid var(--sleeve-line);
  transition: background .15s ease;
}
.track:last-child { border-bottom: 1px solid var(--sleeve-line); }
.track:hover      { background: var(--sleeve-hover); }

.track-num {
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--sleeve-dim);
  padding-top: 14px;
  min-width: 1.6em;
}

.track-play {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.tracks-sleeve .track-play { background: var(--pop, #f8c000); color: #10203a; }
.track-play:hover  { filter: brightness(1.08); }
.track-play:active { transform: scale(.94); }
.track-play svg    { display: block; }
.track-icon-play   { transform: translateX(1px); display: grid; }
.track-icon-pause  { display: grid; }

.track-body { min-width: 0; }

.track-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-2);
}
.track-name {
  margin: 0; font-weight: 600; font-size: 1.0625rem;
  color: var(--sleeve-ink);
}
.track-time {
  margin: 0; flex: none;
  font-size: .8125rem; color: var(--sleeve-dim);
  font-variant-numeric: tabular-nums;
}
.track-credits { margin: 3px 0 0; font-size: .875rem; color: var(--sleeve-dim); }
.track-note    { margin: var(--space-2) 0 0; font-size: .8125rem; color: var(--sleeve-dim); }

.track-audio { display: block; width: 100%; margin-top: var(--space-2); max-width: 32rem; }
.track.is-enhanced .track-audio { display: none; }

.track-bar { margin-top: var(--space-2); }

.track-seek {
  width: 100%; height: 18px; display: block;
  background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.track-seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; background: var(--sleeve-line);
}
.track-seek::-moz-range-track {
  height: 4px; border-radius: 2px; background: var(--sleeve-line);
}
.track-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; margin-top: -4px;
  border: 0; border-radius: 50%; background: var(--accent);
}
.track-seek::-moz-range-thumb {
  width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--accent);
}
.tracks-sleeve .track-seek::-webkit-slider-thumb { background: var(--pop, #f8c000); }
.tracks-sleeve .track-seek::-moz-range-thumb     { background: var(--pop, #f8c000); }
.track-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tracks-sleeve .track-seek:focus-visible { outline-color: var(--pop, #f8c000); }

.track-download {
  display: inline-flex; align-items: center; gap: 6px;
  padding-top: 12px;
  font-size: .8125rem; text-decoration: none;
  color: var(--sleeve-dim); white-space: nowrap;
}
.track-download:hover { color: var(--sleeve-ink); }

/* A track fetched on demand, still arriving. The button keeps its shape so
   nothing jumps; only the ring moves. */
.track.is-loading .track-play { position: relative; }
.track.is-loading .track-play::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: currentColor;
  opacity: .8;
  animation: track-spin .7s linear infinite;
}
@keyframes track-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .track.is-loading .track-play::after { animation-duration: 2.4s; }
}

@media (max-width: 860px) {
  .tracks-panel.has-art { grid-template-columns: minmax(0, 1fr); }
  .tracks-art img { max-width: 20rem; }
}
@media (max-width: 560px) {
  .track {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--space-2);
    padding: var(--space-3) 0;
  }
  .track-num      { display: none; }
  .track-download { grid-column: 2; justify-self: start; padding-top: 0; }
  .track-head     { flex-wrap: wrap; }
}

/* The admin's sound-file picker (admin/_audio_field.php). */
.audio-field-buttons { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.audio-field-player  { display: block; width: 100%; max-width: 28rem; margin-top: var(--space-2); }
.audio-field-status  { margin: var(--space-1) 0 0; font-size: .875rem; }
.audio-field-status.is-bad  { color: var(--danger, #b3261e); }
.audio-field-status.is-good { color: var(--muted); }
.audio-field-address { margin-top: var(--space-2); }
.audio-field-address summary { cursor: pointer; font-size: .875rem; color: var(--muted); }
.audio-field-address input { width: 100%; margin-top: var(--space-1); }

/* A track fetched on demand, still arriving. The button keeps its shape so
   nothing jumps; only the ring moves. */
.track.is-loading .track-play {
  position: relative;
  color: color-mix(in srgb, var(--on-accent) 55%, transparent);
}
.track.is-loading .track-play::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--on-accent) 30%, transparent);
  border-top-color: var(--on-accent);
  animation: track-spin .7s linear infinite;
}
@keyframes track-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .track.is-loading .track-play::after { animation-duration: 2.4s; }
}

/* A weekly session makes this list long. On a phone the rows are tightened and
   the date sits above the title rather than beside it, so a Tuesday takes two
   short lines instead of five. The picker on the booking form is the proper
   answer to choosing one; this is for reading the list. (v1.54.0) */
@media (max-width: 560px) {
  .event-list .event-row { padding: var(--space-2) 0; gap: 2px; }
  .event-list .event-when { display: flex; align-items: baseline; gap: var(--space-2); }
  .event-list .event-what h2 { font-size: 1rem; margin: 0; }
  .event-list .event-what p { margin: 2px 0 0; }
  .event-list .event-meta { gap: var(--space-2); font-size: .8125rem; }
}

/* The date editor on Admin → Dates.

   It used to wear .date-row, which belongs to the front end's list of dates:
   a three-column grid of when, where and a button. A form with a dozen fields
   poured into those three columns put the venue box on top of the start time
   and squeezed "Choir night" into forty pixels. The two have carried the same
   class name for a long time; this is the admin one, and it simply stacks.
   (v1.55.0) */
.date-edit {
  display: block;
  padding: var(--space-4) var(--space-5);
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
}
.date-edit + .date-edit { margin-top: var(--space-3); }
.date-edit .row-2,
.date-edit .row-3,
.date-edit .row-4 { margin-bottom: var(--space-3); }
.date-edit > label.check { display: block; margin-bottom: var(--space-3); }

/* ---------------------------------------------------------------------------
   Taking a still from a film, in the admin (v1.56.0)
   --------------------------------------------------------------------------- */
/* ------------------------------------------------------------------
   Taking a still out of a film.

   The control under a film's thumbnail field, and the one-press sweep
   above the list for every film that has not got one yet. Both report
   what they are doing in the line beside the button, which is why the
   two states below exist: working, and could not.
   ------------------------------------------------------------------ */
.poster-grab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.poster-grab .hint { margin: 0; flex: 1 1 16rem; }
.poster-grab .hint.is-working { color: var(--ink-muted); }
.poster-grab .hint.is-bad { color: var(--danger, #a4332a); }

.poster-sweep {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
}
.poster-sweep[hidden] { display: none; }
.poster-sweep .poster-grab { margin-top: 0; }

/* ---- the admin sidebar, grouped (v1.58.0) ----
   A heading is a label on a list, not a thing to click, so it is quiet and
   small. An indented row belongs to the one above it; the line down its left
   is what says so without a word. ---- */
.nav-group {
  margin: var(--space-5) 0 var(--space-2); padding: 0 var(--space-3);
  font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint);
}
.admin-nav > .nav-group:first-child { margin-top: var(--space-3); }
.admin-nav a.is-under {
  margin-left: var(--space-4); padding-left: var(--space-3);
  border-left: 1px solid var(--paper-line); font-size: .92rem;
}
.admin-nav a.is-under[aria-current="page"] { border-left-color: var(--accent); }

/* ---- the dashboard's three bands (v1.58.0) ---- */
.site-is-list { list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.site-is-list a {
  display: flex; align-items: baseline; gap: .5em; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--paper-edge); border-radius: var(--radius); background: var(--paper-sunk);
  color: inherit; text-decoration: none;
}
.site-is-list a:hover { border-color: var(--accent); }
.site-is-list b { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.site-is-list span { color: var(--ink-soft); font-size: .9rem; }
.changed-list { list-style: none; margin: 0; padding: 0; }
.changed-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--paper-line); }
.changed-list li:last-child { border-bottom: 0; }
.changed-list .what { display: block; }
.changed-list .when { display: block; font-size: .82rem; color: var(--ink-faint); }

/* ---------------------------------------------------------------------------
   The basket (v1.62.0)

   Three pieces: the count in the bar, the short add button on a tile, and the
   basket page itself. The table collapses into stacked rows on a narrow
   screen rather than scrolling sideways, because a basket is the one table
   somebody has to be able to read and change with a thumb.
   --------------------------------------------------------------------------- */
.bar-basket {
  flex: none; position: relative; width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--paper-line); border-radius: var(--radius);
  color: var(--ink-soft); transition: all .15s var(--ease);
}
.bar-basket:hover { background: var(--paper-sunk); color: var(--ink); border-color: var(--ink-faint); }
.bar-basket.has-items { color: var(--ink); border-color: var(--ink-faint); }
.bar-basket-n {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--accent); color: var(--on-accent);
  font-size: .7rem; font-weight: 600; line-height: 1;
}

/* The add button on a tile: a small quantity box and the button beside it. */
.add-form .add-row { display: flex; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; }
.add-form .add-qty { margin: 0; flex: none; width: 5.5rem; }
.add-form .add-qty input { text-align: center; }
.add-form .add-row .btn { flex: 1 1 10rem; justify-content: center; }

.basket-table { width: 100%; border-collapse: collapse; margin-top: var(--space-5); }
.basket-table th, .basket-table td {
  text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--paper-line);
  vertical-align: middle;
}
.basket-table thead th { font-size: .82rem; color: var(--ink-faint); font-weight: 600; }
.basket-table tfoot th, .basket-table tfoot td { border-bottom: 0; font-size: 1.05rem; }
.basket-table input[type="number"] { width: 5rem; text-align: center; }
.basket-what { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; }
.basket-what img { border-radius: var(--radius); object-fit: cover; flex: none; }
.basket-out { text-align: right; }
.basket-total { font-size: 1.15rem; }
.basket-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.basket-pay { margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--paper-line); }
.basket-pay h2 { margin-top: 0; }

@media (max-width: 40rem) {
  .basket-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .basket-table tr { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--paper-line); }
  .basket-table th, .basket-table td { display: block; border-bottom: 0; padding: var(--space-1) var(--space-2); }
  .basket-table td[data-label]::before {
    content: attr(data-label) ": "; color: var(--ink-faint); font-size: .82rem;
  }
  .basket-table .basket-out { text-align: left; }
  .basket-table tfoot tr { border-bottom: 0; }
}

/* ---- one thing in the shop, on a page of its own (v1.72.0) -------------
   The shop was a single page of cards with an anchor each. That is right for
   three things with a line apiece and hopeless for one thing with eight
   pictures and a size to choose. This is that page.
   --------------------------------------------------------------------- */

.offer-link { color: inherit; text-decoration: none; }
.offer-link:hover, .offer-link:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.offer-pic { display: block; }

.shop-item { padding: var(--space-7) 0 var(--space-8); }
.crumbs { font-size: .86rem; color: var(--ink-muted); margin: 0 0 var(--space-5); }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--accent); }

.item-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(var(--space-5), 4vw, var(--space-7));
  align-items: start;
}
@media (max-width: 820px) { .item-grid { grid-template-columns: 1fr; } }

.item-pic-main {
  background: var(--paper-sunk);
  border: 1px solid var(--paper-edge); border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.item-pic-img { width: 100%; height: 100%; object-fit: contain; display: block; }

.item-pic-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: var(--space-2); margin-top: var(--space-2);
}
.item-pic-thumb {
  padding: 0; border: 1px solid var(--paper-edge); border-radius: var(--radius-sm);
  background: var(--paper-sunk); cursor: pointer; overflow: hidden;
  aspect-ratio: 1; display: grid; place-items: center;
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease);
}
.item-pic-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-pic-thumb:hover { border-color: var(--accent); }
.item-pic-thumb.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.item-words h1 { margin: 0 0 var(--space-2); }
.item-price { font-size: 1.45rem; font-weight: 700; margin: 0 0 var(--space-4); }
.item-summary { font-size: 1.02rem; line-height: 1.6; margin: 0 0 var(--space-5); }
.item-note {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: .88rem; color: var(--ink-muted); margin: var(--space-4) 0 0;
}
.item-body { margin-top: var(--space-5); }
.offer-badge-still { position: static; display: inline-block; margin-bottom: var(--space-3); }

/* The picture rows on the product screen. (v1.72.0) */
.pic-rows { display: flex; flex-direction: column; gap: var(--space-4); }
.pic-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-4); align-items: start;
  padding-bottom: var(--space-4); border-bottom: 1px solid var(--paper-line);
}
.pic-row:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 720px) { .pic-row { grid-template-columns: 1fr; } }

/* The parts of the shop, as cards. (v1.73.0)
   A row of text links is a filter. A row of pictures is a shop. */
.part-grid {
  display: grid; gap: var(--space-4); margin: var(--space-6) 0 var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
.part {
  display: flex; flex-direction: column; gap: var(--space-3);
  text-decoration: none; color: inherit;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); padding: var(--space-4); overflow: hidden;
  transition: border-color .14s var(--ease), transform .14s var(--ease);
}
.part:hover { border-color: var(--accent); transform: translateY(-2px); }
.part-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.part-words { display: flex; flex-direction: column; gap: 3px; }
.part-words strong { font-size: 1.05rem; }
.part-line { font-size: .88rem; color: var(--ink-muted); line-height: 1.45; }

/* The delivery step. (v1.73.0) */
.delivery { padding: var(--space-7) 0 var(--space-8); }
.delivery h2 { font-size: 1.1rem; margin: var(--space-6) 0 var(--space-3); }
.delivery-where { margin-bottom: var(--space-5); }
.delivery-sum {
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
}
.delivery-sum > div { display: flex; justify-content: space-between; gap: var(--space-4); padding: .35rem 0; }
.delivery-total { border-top: 1px solid var(--paper-line); margin-top: .3rem; padding-top: .6rem !important; font-size: 1.1rem; }
.delivery-nudge { margin: 0 0 var(--space-5); }
.add-pick { margin-bottom: var(--space-3); }

/* ======================================================================
   SEARCH (v1.74.0)
   A box in the bar, and a results page that shows the part that matched.
   Named search-* throughout: .chip already exists for the radio-button
   pattern on the forms, and two different things under one class name is
   how the colour swatches ended up on top of each other.
   ====================================================================== */

.bar-search {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 0 var(--space-3); height: 36px;
  border: 1px solid var(--paper-line); border-radius: 999px;
  background: var(--paper-raised); color: var(--ink-muted);
  min-width: 0; max-width: 200px; transition: border-color .15s, max-width .15s;
}
.bar-search:focus-within { border-color: var(--accent); color: var(--accent); max-width: 260px; }
.bar-search svg { flex: 0 0 auto; }
.bar-search input {
  border: 0; background: none; outline: none; min-width: 0; width: 100%;
  font: inherit; font-size: .92rem; color: var(--ink); padding: 0;
}
.bar-search input::-webkit-search-cancel-button { cursor: pointer; }
/* Below the menu's breakpoint the bar is already tight; the box goes to the
   search page's own, which is a full-width one people can actually type in. */
@media (max-width: 900px) { .bar-search { display: none; } }

.search-form { margin-bottom: var(--space-6); }
.search-count { margin-bottom: var(--space-4); }
.search-kinds { margin-bottom: var(--space-4); }

.search-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--paper-line); background: var(--paper-raised);
  color: var(--ink-muted); font-size: .86rem; font-weight: 600;
  text-decoration: none; transition: border-color .15s, color .15s;
}
.search-chip:hover { border-color: var(--accent); color: var(--accent); }
.search-chip-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.search-chip-on:hover { color: var(--on-accent); }
.search-chip-n { opacity: .7; font-weight: 500; }

.search-hit { display: block; text-decoration: none; }
.search-hit-title { margin: var(--space-2) 0; font-size: 1.1rem; line-height: 1.3; }
.search-hit-text  { margin: 0; font-size: .92rem; line-height: 1.55; }
/* The words that matched. A tint rather than the browser's yellow, which
   belongs to somebody else's design and shouts over the writing. */
.search-hit mark {
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 0 .15em; border-radius: 3px;
}
.search-pages { margin-top: var(--space-6); }

/* ======================================================================
   THE COOKIE NOTICE (v1.74.0)
   Along the bottom, out of the way of the writing. It carries `hidden`
   until app.js takes it off, so it must not be given a display that
   fights the attribute.
   ====================================================================== */

.cookie-bar {
  /* 70, above the what's-new panel, the WhatsApp button and the sticky
     call to action, which all sit at 60 in the same corner. It is the one
     thing on the screen that has to be dealt with before the rest. */
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--paper-raised); border-top: 1px solid var(--paper-line);
  box-shadow: 0 -8px 30px rgba(0,0,0,.08);
  padding: var(--space-4) 0;
  animation: cookie-rise .3s ease-out both;
}
.cookie-bar[hidden] { display: none; }
@keyframes cookie-rise { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-bar { animation: none; } }

.cookie-bar-in {
  max-width: 1100px; margin: 0 auto; padding: 0 var(--space-5);
  display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
}
.cookie-bar-words { margin: 0; flex: 1 1 320px; font-size: .92rem; color: var(--ink-muted); line-height: 1.5; }
.cookie-bar-acts  { display: flex; align-items: center; gap: var(--space-4); flex: 0 0 auto; }
.cookie-bar-more  { font-size: .9rem; font-weight: 600; }

/* The sticky button and the bar both live at the bottom right; the notice
   is the one that has to be dealt with, so it goes on top and pushes the
   other up while it is there. */
.cookie-bar:not([hidden]) ~ .sticky-cta { bottom: calc(var(--space-5) + 86px); }

/* ---- discount codes in the basket (v1.74.0) ---- */
.basket-code { font-weight: 500; color: var(--ink-muted); font-size: .86rem; margin-left: var(--space-2); }
.basket-off  { color: var(--green); font-weight: 600; white-space: nowrap; }
.basket-code-form { margin: var(--space-5) 0; }
.basket-code-form label { display: block; font-weight: 600; margin-bottom: var(--space-2); }
.basket-code-form input { max-width: 220px; text-transform: uppercase; letter-spacing: .06em; }
.basket-code-on {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  margin: 0; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--paper-sunk);
  font-size: .94rem;
}
.basket-code-why { color: var(--red); }

/* ======================================================================
   "BUILT TO BE READ BY ANSWER ENGINES" (v1.76.0)
   In the footer, so it reads as a statement about the site rather than
   something being sold. Quiet, and deliberately not a call to action.
   ====================================================================== */

.agents-card {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.agents-card-in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--space-6) var(--space-7); align-items: start;
}
@media (max-width: 760px) { .agents-card-in { grid-template-columns: 1fr; } }

.agents-card-say h2 { font-size: 1.15rem; margin: var(--space-2) 0 var(--space-3); line-height: 1.3; }
.agents-card-say p  { margin: 0; font-size: .92rem; line-height: 1.6; opacity: .82; max-width: 44ch; }
.agents-card .eyebrow { display: flex; align-items: center; gap: var(--space-2); margin: 0; }

.agents-card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.agents-card-list li {
  display: grid; gap: 2px;
  padding-left: var(--space-4); position: relative;
}
.agents-card-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: .45;
}
.agents-card-list a,
.agents-card-plain { font-weight: 600; font-size: .92rem; }
.agents-card-list a { display: inline-flex; align-items: center; gap: var(--space-2); }
.agents-card-what { font-size: .84rem; line-height: 1.5; opacity: .72; }

/* ---- the facts section (v1.76.0) ---- */
.facts { margin: var(--space-5) 0 0; display: grid; gap: 0; }
.fact {
  display: grid; grid-template-columns: minmax(120px, 30%) 1fr;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--paper-line);
}
.fact:first-child { border-top: 1px solid var(--paper-line); }
.fact dt { font-weight: 600; color: var(--ink); margin: 0; }
.fact dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) {
  .fact { grid-template-columns: 1fr; gap: var(--space-1); }
}

/* ===================================================================
   COURSES (v1.78.0) — the catalogue, a course's page, and the player.
   Paper Air tokens only, so a site's own colours carry through.
   =================================================================== */
.course-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  margin-block: var(--space-5);
}
.course-card {
  display: flex; flex-direction: column;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); overflow: hidden;
}
.course-card-link { display: block; color: inherit; text-decoration: none; flex: 1 1 auto; }
.course-card-link:hover h3 { color: var(--accent); }
.course-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.course-card-body { padding: var(--space-4) var(--space-5) var(--space-3); }
.course-card-body h3 { font-size: 1.15rem; margin: 0 0 var(--space-2); }
.course-card-body p { margin: 0 0 var(--space-2); }
.course-card-meta { font-size: .86rem; color: var(--ink-muted); }
.course-card-price { font-weight: 600; }
.course-card-go { padding: 0 var(--space-5) var(--space-4); margin: 0; }
.courses-mine-head { font-size: 1.25rem; margin-top: var(--space-6); }

.course-progress {
  height: .45rem; border-radius: 99px; background: var(--paper-sunk);
  overflow: hidden; margin: var(--space-2) 0;
}
.course-progress span { display: block; height: 100%; background: var(--green); border-radius: 99px; }

.course-intro {
  display: grid; gap: var(--space-6); align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  margin-bottom: var(--space-6);
}
.course-way-in {
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg); padding: var(--space-5);
}
.course-way-in .btn { margin-top: var(--space-2); }
.course-price { font-size: 1.6rem; font-weight: 700; margin: 0 0 var(--space-3); }
.course-hero img { border-radius: var(--radius-lg); width: 100%; height: auto; }
.course-outline-wrap { margin-top: var(--space-7); }

.course-outline-section {
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-muted); margin: var(--space-5) 0 var(--space-2);
}
.course-outline-list { list-style: none; margin: 0; padding: 0; }
.course-lesson {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--paper-line);
}
.course-lesson-mark {
  flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper-sunk); color: var(--ink-muted);
}
.course-lesson.is-done .course-lesson-mark { background: var(--green-soft); color: var(--green); }
.course-lesson.is-locked { color: var(--ink-muted); }
.course-lesson.is-here { background: var(--paper-sunk); border-radius: var(--radius-md, 10px); }
.course-lesson.is-here a { font-weight: 600; }
.course-lesson-what { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.course-lesson-what a { color: inherit; }
.course-lesson-note { font-size: .8rem; color: var(--ink-muted); display: flex; gap: var(--space-2); flex-wrap: wrap; }

.course-crumb { font-size: .92rem; margin-bottom: var(--space-4); }
.course-crumb a { display: inline-flex; align-items: center; gap: .35em; }
.course-player-grid {
  display: grid; gap: var(--space-7); align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
}
.course-player-main h1 { margin-top: 0; }
.course-player-side { position: sticky; top: var(--space-5); }
.course-progress-words { font-size: .86rem; margin: 0 0 var(--space-3); }

/* The certificate link, on a finished course. (v1.80.0) */
.course-cert { margin: 0 0 var(--space-4); }
.course-cert .btn { width: 100%; justify-content: center; }
.course-card-go .btn { width: 100%; justify-content: center; }
.course-player-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4); margin-top: var(--space-7);
  padding-top: var(--space-5); border-top: 1px solid var(--paper-line);
}
.course-done { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0; }

@media (max-width: 56rem) {
  .course-intro, .course-player-grid { grid-template-columns: minmax(0, 1fr); }
  .course-player-side { position: static; }
}
/* The buy form inside the narrow box beside a course: one field per line. */
.course-way-in .row-2 { grid-template-columns: minmax(0, 1fr); }
.course-way-in .buy-note { display: block; }

/* ---- the look-round list (v1.79.0) ---- */
.tour-card { margin-top: var(--space-6); padding-top: var(--space-5);
             border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.tour-card-in { max-width: 100%; }
.tour-card h2 { font-size: 1.1rem; margin: var(--space-2) 0 var(--space-2); }
.tour-card-say { margin: 0 0 var(--space-4); font-size: .9rem; opacity: .8; }
.tour-list { list-style: none; margin: 0; padding: 0;
             display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
             gap: var(--space-3) var(--space-5); }
.tour-list li { display: grid; gap: 1px; }
.tour-list a { font-weight: 600; font-size: .92rem; }
.tour-url { font-size: .76rem; opacity: .6; }
.tour-what { font-size: .82rem; opacity: .72; line-height: 1.45; }

/* ---------------------------------------------------------------- markers
   The parts of the site placed inside a piece of writing. (v1.82.0) */

.search-panel { background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius); padding: var(--space-6); margin: var(--space-6) 0; }
.search-panel h2 { margin: 0 0 var(--space-2); }
.search-panel-words { color: var(--ink-soft); margin: 0 0 var(--space-4); }
.search-panel-form { display: flex; align-items: center; gap: var(--space-3);
  background: var(--paper); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); }
.search-panel-form .icon { color: var(--ink-muted); flex: none; }
.search-panel-form input { flex: 1; border: 0; background: none; padding: var(--space-2) 0;
  font: inherit; color: var(--ink); min-width: 0; }
.search-panel-form input:focus { outline: none; }
.search-panel-form .btn { flex: none; }
@media (max-width: 30rem) {
  .search-panel-form { flex-wrap: wrap; }
  .search-panel-form input { flex-basis: 100%; order: -1; }
}

.download-list { list-style: none; margin: var(--space-5) 0; padding: 0; }
.download-list li { border-bottom: 1px solid var(--paper-line); padding: var(--space-3) 0; }
.download-list li:last-child { border-bottom: 0; }
.download-list a { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.download-name { font-weight: 600; }
.download-size { margin-left: auto; color: var(--ink-muted); font-size: .86rem; white-space: nowrap; }
.download-words { margin: var(--space-1) 0 0 calc(16px + var(--space-3)); color: var(--ink-soft); font-size: .92rem; }

.book-types { list-style: none; margin: var(--space-5) 0; padding: 0;
  display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.book-types li { background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius); padding: var(--space-5); }
.book-types h3 { margin: 0 0 var(--space-2); }
.book-types p { margin: 0 0 var(--space-3); color: var(--ink-soft); }
.book-meta { font-size: .86rem; color: var(--ink-muted); display: flex; align-items: center; gap: var(--space-2); }

.ask-inline { margin: var(--space-6) 0; }

.feature-list { display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: var(--space-5) 0; }
.feature-list h3 { font-size: .96rem; margin: 0 0 var(--space-2); }
.feature-list ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.feature-list li { display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) 0; color: var(--ink); }
.feature-list li.is-off { color: var(--ink-muted); padding-left: calc(15px + var(--space-2)); }

/* ---------------------------------------------------------------------------
   The folded date list (v1.85.0)

   A weekly session fills the dates page with sixty edit forms. Each is now a
   line that opens, so the page is a list again — and a date somebody has
   booked opens by itself, because that is the one being looked for. A details
   element does this with no JavaScript, so it keeps working when a script does
   not load.

   Written on costapopchoir.com at v1.56.0, where sixty Tuesdays made a page
   fifty thousand pixels tall that locked the browser up, and never folded back
   into the base until now.
   -------------------------------------------------------------------------- */
.date-fold {
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
}
.date-fold > .date-edit { border: 0; background: none; border-radius: 0; padding-top: 0; }
.date-fold-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  list-style: none;
}
.date-fold-head::-webkit-details-marker { display: none; }
.date-fold-head:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.date-fold[open] > .date-fold-head { border-bottom: 1px solid var(--paper-edge); }
.date-fold-when { display: flex; align-items: baseline; gap: var(--space-2); min-width: 0; }
.date-fold-tags { display: flex; align-items: center; gap: var(--space-2); flex: none; }
/* The arrow, drawn rather than relying on the browser's own marker. */
.date-fold-head::after {
  content: ''; flex: none;
  width: 8px; height: 8px; margin-left: var(--space-2);
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg); transition: transform .15s ease;
}
.date-fold[open] > .date-fold-head::after { transform: rotate(-135deg); }
@media (max-width: 560px) {
  .date-fold-head { padding: var(--space-3); flex-wrap: wrap; }
}

/* ---------------------------------------------------------------------------
   The newsletter's own pages (v1.85.0)

   The archive, an issue, and the three small pages a subscribe link lands on
   came into Starting Point from a client site with that site's class names
   still on them — .wrap, .lede, .issue-card, .newsletter__card. None of those
   existed here, so all five drew with no gutter, no card and no maximum
   width: text flush to the left edge of the window and inputs the full width
   of a desktop, on every site that has ever switched the newsletter on.

   The markup now uses the house classes. What is left below is the handful of
   things the house genuinely did not have — a grid of back issues and the
   sign-up card. Fixed on costapopchoir.com at v1.49.1 and never folded back
   into the base until now.
   -------------------------------------------------------------------------- */
.issue-grid { margin-top: var(--space-6); }
.issue-card {
  display: flex; flex-direction: column;
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.issue-card__shot { display: block; }
.issue-card__shot img {
  display: block; width: 100%; height: 11rem; object-fit: cover;
}
.issue-card__body {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-5);
}
.issue-card__when {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-muted);
}
.issue-card__title { font-size: 1.08rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.issue-card__summary { font-size: .92rem; color: var(--ink-soft); }
.issue-card__more {
  margin-top: var(--space-2); font-weight: 600; font-size: .92rem; color: var(--accent);
}
.issue-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-6); }
.issue-hero img { display: block; width: 100%; height: auto; }
.issue-body { max-width: 68ch; margin-inline: auto; }
.issue-back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: var(--space-5); font-weight: 600; }
.newsletter-card {
  display: grid; gap: var(--space-6);
  padding: clamp(var(--space-5), 3vw, var(--space-7));
}
.newsletter-words h2 { margin-top: 0; }
.newsletter-words p  { color: var(--ink-soft); margin-bottom: 0; }
.newsletter-form input[type="email"] { width: 100%; }
@media (min-width: 52rem) {
  .newsletter-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-7); }
}

/* --------------------------------------------------------------------------
   How big a picture in the writing is (v1.88.0)

   A club rang to say they had put pictures into their pages, every one came
   out the full width of the column, and there was no way to change it. They
   were right: the editor's size field had been turned off, so an inserted
   picture carried its own pixel width and the only thing capping it was
   max-width: 100%.

   The editor now offers Small, Medium, Large and Full width, which set the
   classes below. Not pixel widths typed into a box: a width typed on a
   desktop is a width on a phone as well, and a 600px picture in a 390px
   screen is the same complaint again from the other direction.

   The cap is in rem so it follows the text, and it is a MAX — a picture
   smaller than the cap is left at its own size rather than stretched up,
   which is the other way sites end up with a blurry photograph.
   -------------------------------------------------------------------------- */
.prose img.img-sm,  .prose picture.img-sm  { max-width: 16rem; }
.prose img.img-md,  .prose picture.img-md  { max-width: 26rem; }
.prose img.img-lg,  .prose picture.img-lg  { max-width: 38rem; }

/* A <picture> is inline by default, so a cap on it does nothing until it is
   told how to behave as a box. The image inside fills whatever it is given. */
.prose picture.img-sm, .prose picture.img-md, .prose picture.img-lg,
.prose picture.img-left, .prose picture.img-right, .prose picture.img-centre {
  display: block;
}
.prose picture.img-sm > img,
.prose picture.img-md > img,
.prose picture.img-lg > img { width: 100%; height: auto; }

/* LINED UP WITH THE WRITING, NOT THE EDGE OF THE PAGE. (v1.88.0)

   .prose is full width and caps its text children at --measure-wide, centring
   them. An image is not in that list, deliberately — a full-width picture is
   meant to run the whole column. But a picture somebody has asked to be Small
   then starts at the container's edge, about 85px to the left of the sentence
   above it, which reads as a mistake rather than a choice.

   So a SIZED picture is pushed in to where the writing starts. max() rather
   than a plain calc so that on a screen narrower than the measure the offset
   is zero rather than negative. Full width is untouched and still runs edge
   to edge, which is the whole point of it. */
.prose > img.img-sm,  .prose > picture.img-sm,
.prose > img.img-md,  .prose > picture.img-md,
.prose > img.img-lg,  .prose > picture.img-lg {
  margin-inline-start: max(0px, calc((100% - var(--measure-wide)) / 2));
}

/* Alignment. The float goes on the wrapper where there is one, because that
   is the thing occupying space; Images::tag() copies the class up for us.
   A floated picture takes the same offset, so text wraps against the column
   rather than against the page. */
.prose img.img-left,  .prose picture.img-left {
  float: left;
  margin: var(--space-2) var(--space-5) var(--space-4) max(0px, calc((100% - var(--measure-wide)) / 2));
}
.prose img.img-right, .prose picture.img-right {
  float: right;
  margin: var(--space-2) max(0px, calc((100% - var(--measure-wide)) / 2)) var(--space-4) var(--space-5);
}
.prose img.img-centre, .prose picture.img-centre { margin-inline: auto; }

/* A floated picture beside a paragraph needs the paragraph to be wider than
   the picture, and on a phone it never is. Below the fold of a small screen
   every picture goes back to its own line and the cap comes off, which is
   what somebody reading on a phone wants in every case. */
@media (max-width: 40rem) {
  .prose img.img-sm,  .prose picture.img-sm,
  .prose img.img-md,  .prose picture.img-md,
  .prose img.img-lg,  .prose picture.img-lg    { max-width: 100%; }
  .prose > img.img-sm,  .prose > picture.img-sm,
  .prose > img.img-md,  .prose > picture.img-md,
  .prose > img.img-lg,  .prose > picture.img-lg { margin-inline-start: 0; }
  .prose img.img-left,  .prose picture.img-left,
  .prose img.img-right, .prose picture.img-right {
    float: none;
    margin-inline: 0;
  }
}

/* A float has to be cleared or the next heading rides up beside the picture.
   The writing column clears its own floats rather than asking anybody to
   remember to. */
.prose > h2, .prose > h3, .prose > h4 { clear: both; }

/* ---------------------------------------------------------------- reviews
   What people have said. (v1.93.0)

   Two shapes from one markup: cards side by side, or one large quote. The
   stars are shapes AND a label — Reviews::starsHtml() writes the wording for
   a screen reader and marks the shapes decorative, because five yellow shapes
   say nothing to somebody who cannot see them. */
.rv-head { text-align: center; margin-bottom: var(--space-5); }
.rv-head h2 { margin: 0 0 var(--space-2); }
.rv-intro { text-align: center; color: var(--ink-muted); margin: 0 0 var(--space-5); }
.rv-avg { display: flex; align-items: center; justify-content: center; gap: .5rem;
          margin: 0; color: var(--ink-muted); font-size: .95rem; flex-wrap: wrap; }
.rv-avg strong { color: var(--ink); font-size: 1.1rem; }

.rv-stars { display: inline-flex; gap: .1rem; }
/* The sprite's star is drawn as an outline, so colour alone leaves a four and
   a five looking the same. The earned ones are FILLED; the rest stay outlines.
   Shape, not just hue — the difference has to survive being seen by somebody
   who cannot tell those two colours apart. */
.rv-star { color: var(--ink-faint); line-height: 0; }
.rv-star.is-on { color: #e8a500; }
.rv-star svg { display: block; }

.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.rv-cards .rv-list { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.rv-quote .rv-list { max-width: 44rem; margin-inline: auto; }

.rv-item { background: var(--paper-raised); border: 1px solid var(--paper-edge);
           border-radius: var(--radius-md); padding: var(--space-4); display: flex;
           flex-direction: column; gap: var(--space-3); }
.rv-body { margin: 0; font-style: normal; color: var(--ink); }
.rv-quote .rv-body { font-size: 1.15rem; line-height: 1.55; }
.rv-by { margin: auto 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem;
         font-size: .85rem; }
.rv-who { font-weight: 600; }
.rv-role { color: var(--ink-muted); }
/* Where it came from, and when. Quiet, but on the page: a review a visitor
   cannot place is a review a visitor has no reason to believe. */
.rv-src { color: var(--ink-faint); margin-left: auto; font-size: .78rem; }

.rv-more { text-align: center; margin: var(--space-5) 0 0; }

@media (max-width: 40rem) {
  .rv-src { margin-left: 0; width: 100%; }
}

/* --- promotions (v1.95.0) --------------------------------------------------
   Built on .npanel's bones deliberately: the two are the same kind of thing
   and must not look like two different websites arguing. Same surface, same
   edge, same frosted fallback, same pill tab.

   WHERE IT SITS. There are already two things floating at the bottom of the
   page — the what's-new tab bottom left, the WhatsApp button bottom right —
   and a third needed a home of its own rather than landing on one of them.
   It goes above the WhatsApp button, which is a fixed 56px, so the sum below
   is that plus a gap. On a site with no WhatsApp button it simply floats a
   little higher than it needs to, which nobody will ever notice.

   The first version of this block invented its own variable names — --panel,
   --line, --muted — none of which exist in this stylesheet. Every one
   resolved to nothing, so the box had no background and the footer showed
   straight through the writing. It rendered, it was in the markup, and it was
   unusable. Markup present is not the same as looking at it. */

.promo {
  position: fixed; right: var(--space-4);
  bottom: calc(var(--space-4) + 56px + var(--space-3));
  z-index: 60;
}

.promo-tab {
  display: inline-flex; align-items: center; gap: .5rem; max-width: 15rem;
  font: var(--w-lab) .719rem/1 var(--font); letter-spacing: .5px; text-transform: uppercase;
  padding: .7rem 1rem; border-radius: var(--radius-pill); cursor: pointer;
  color: var(--ink); background: var(--paper-raised); border: 1px solid var(--paper-edge);
  box-shadow: 0 1px 2px rgba(10,11,12,.10), 0 6px 16px -10px rgba(10,11,12,.28);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-tab:hover  { transform: translateY(-1px); }
.promo-tab:active { transform: scale(.95); }
.promo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.promo.is-open .promo-tab { visibility: hidden; }

.promo-box {
  position: absolute; right: 0; bottom: 0;
  width: min(360px, calc(100vw - 2 * var(--space-4)));
  max-height: min(70vh, 560px); overflow: auto;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .promo-box {
    background: color-mix(in srgb, var(--paper-raised) 92%, transparent);
    -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
  }
}
.promo-box[hidden] { display: none; }
.promo.is-open .promo-box { animation: promo-in .22s var(--ease); }
@keyframes promo-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.promo-head {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-2) var(--space-5);
}
.promo-head h2 { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.promo-close {
  margin-left: auto; flex: 0 0 auto;
  display: grid; place-items: center; width: 32px; height: 32px; border: 0; cursor: pointer;
  border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted);
}
.promo-close:hover { background: var(--paper-sunk); color: var(--ink); }

.promo-film {
  position: relative; aspect-ratio: 16 / 9;
  margin: 0 var(--space-5) var(--space-4);
  border-radius: var(--radius); overflow: hidden; background: var(--paper-sunk);
}
.promo-film img, .promo-film iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0;
}
.promo-play {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,11,12,.62); color: #fff; border: 0; cursor: pointer; z-index: 1;
}
.promo-play:hover { background: rgba(10,11,12,.78); }

.promo-image {
  display: block; width: calc(100% - 2 * var(--space-5)); height: auto;
  margin: 0 var(--space-5) var(--space-4); border-radius: var(--radius);
}

.promo-body { padding: 0 var(--space-5); }
.promo-body p { margin: 0 0 var(--space-3); font-size: var(--fs-sm); color: var(--ink-soft); }

.promo-buttons {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  padding: 0 var(--space-5) var(--space-4);
}

.promo-form {
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: 1px solid var(--paper-edge);
}
.promo-fields { display: grid; gap: var(--space-2); }
.promo-fields input[type="text"], .promo-fields input[type="email"] {
  width: 100%; padding: .6rem .75rem; font: inherit;
  color: var(--ink); background: var(--paper); border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
}
.promo-fields .btn { width: 100%; }
.promo-check {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--ink-soft);
}
.promo-check input { margin-top: .2rem; flex: 0 0 auto; }
.promo-small { margin: var(--space-3) 0 0; font-size: var(--fs-fine); color: var(--ink-muted); line-height: 1.45; }
.promo-said  { margin: var(--space-3) 0 0; font-size: var(--fs-sm); font-weight: var(--w-lab); }
.promo-said[hidden] { display: none; }
.promo-said.is-bad  { color: var(--red); }

/* On a phone the three floating things cannot all have a corner, so this one
   becomes a sheet across the bottom and the tab moves clear of the other two. */
@media (max-width: 520px) {
  .promo { right: var(--space-3); bottom: calc(var(--space-3) + 52px + var(--space-3)); }
  .promo-tab { max-width: 11rem; }
  .promo-box {
    position: fixed; right: 0; left: 0; bottom: 0;
    width: 100%; max-height: 82vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo.is-open .promo-box { animation: none; }
  .promo-tab:hover, .promo-tab:active { transform: none; }
}

/* The same panel, standing still, on /promotion (v1.107.4)
   ------------------------------------------------------------------
   The page existed and rendered a tab at the edge of an otherwise empty
   page: every word of the workshop and all of the consent wording was in
   the markup, inside a box that was hidden until somebody clicked a tab
   they had no reason to click. Markup present is not the same as looking
   at it — twice now in this one file. */
.promo-static { position: static; right: auto; bottom: auto; z-index: auto; }
.promo-static .promo-box {
  position: static; right: auto; left: auto; bottom: auto;
  width: auto; max-width: 42rem; margin: 0 auto;
  max-height: none; overflow: visible;
  border-radius: var(--radius-xl); border: 1px solid var(--paper-edge);
}
.promo-static .promo-head { padding: var(--space-5) var(--space-5) var(--space-3); }
.promo-static .promo-head h2 { font-size: 1.55rem; }
.promo-static .promo-body p { font-size: 1rem; }
/* The first paragraph is the standfirst — what it is, when, where, and what
   it costs, read in one breath before anybody decides whether to read on. It
   is set in the site's own heading face, like every other introduction on the
   site, so the page opens in the site's voice rather than in body copy.
   Panel-sized promotions are too narrow for it and keep plain paragraphs.
   (v1.107.6) */
.promo-static .promo-body > p:first-child {
  font-family: var(--heading-font);
  font-size: var(--fs-lead); font-weight: 500;
  line-height: 1.45; color: var(--ink);
  margin-bottom: var(--space-4); max-width: 38ch;
}
.promo-static .promo-form { padding-bottom: var(--space-5); }
@media (max-width: 520px) {
  .promo-static .promo-box { max-width: none; }
}

/* ==========================================================================
   Help me choose (v1.96.0)
   The button in the bar, the chooser (page, home panel and section), and its
   questions-and-answers page. Built from the tokens only, so it wears every
   site's own colour in both themes without a line of its own per site.
   ========================================================================== */

/* ---- the button in the bar ----
   Outside the menu, so it never folds away behind the burger. Last in the bar
   on a wide screen; beside the burger on a phone. */
.bar-choose {
  order: 20; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .45rem;
  margin-left: var(--space-2);
  padding: .62rem 1.1rem .62rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: .95rem; letter-spacing: -.005em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 34%, transparent),
              inset 0 0 0 1px color-mix(in srgb, var(--on-accent) 14%, transparent);
  transform-origin: 50% 65%;
  animation: nav-nudge 14s ease-in-out infinite;
  transition: background .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.bar-choose .icon { flex: none; transition: transform .5s var(--ease); }
.bar-choose:hover, .bar-choose:focus-visible {
  background: var(--accent-hover); color: var(--on-accent);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 45%, transparent);
  animation-play-state: paused;
}
.bar-choose:hover .icon { transform: rotate(200deg); }
.bar-choose:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.bar-choose[aria-current="page"] { animation: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .bar-choose { animation: none; }
  .bar-choose:hover .icon { transform: none; }
}
@media (max-width: 1150px) {
  .bar-choose { order: 0; margin-left: auto; padding: .55rem .95rem .55rem .8rem; font-size: .9rem; animation: none; }
  .menubar .container:has(.bar-choose) .nav-toggle { margin-left: var(--space-2); }
}
/* On a phone the bar is already full — the name, the burger, the language
   and the theme — so the button takes a row of its own under it, the full
   width of the screen: the loudest thing on a small screen, and still in the
   bar that follows you down the page. */
@media (max-width: 700px) {
  .menubar .container:has(.bar-choose) { flex-wrap: wrap; row-gap: 0; }
  .bar-choose {
    order: 30; flex: 1 0 100%; justify-content: center;
    margin: 0 0 var(--space-2); padding: .62rem 1rem; font-size: .95rem;
  }
  .menubar .container:has(.bar-choose) .nav-toggle { margin-left: auto; }
}

/* ---- the chooser ---- */
.chooser {
  --ch-band: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 62%, #061226) 100%);
  --ch-ink: var(--on-accent);
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0;
  background: var(--ch-band); color: var(--ch-ink);
}
/* At night the accent turns pale so it can be read on a dark page — which
   makes a whole band of it a floodlight. The band goes deep instead, and its
   words light. */
[data-theme="dark"] .chooser:not(.chooser-quiet) {
  --ch-band: linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, #0a1428) 0%, color-mix(in srgb, var(--accent) 14%, #050a14) 100%);
  --ch-ink: #f4f7ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chooser:not(.chooser-quiet) {
    --ch-band: linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, #0a1428) 0%, color-mix(in srgb, var(--accent) 14%, #050a14) 100%);
    --ch-ink: #f4f7ff;
  }
}
/* A soft ring of light behind the card, so the band reads as one bold thing
   rather than a flat slab of colour. Decoration only. */
.chooser::before {
  content: ""; position: absolute; inset: auto -10% -55% auto; width: 70vmax; height: 70vmax;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ch-ink) 16%, transparent), transparent 70%);
}
.chooser-quiet { background: var(--paper-sunk); color: var(--ink); }
.chooser-quiet::before { display: none; }

.chooser-wrap {
  position: relative; display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center;
}
@media (min-width: 960px) {
  .chooser-band .chooser-wrap, .chooser-block .chooser-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.chooser-lede { max-width: 34rem; }
.chooser-kicker {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 var(--space-3);
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: .4rem .75rem; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ch-ink, var(--on-accent)) 14%, transparent);
}
.chooser-quiet .chooser-kicker { background: var(--accent-soft); color: var(--accent-ink); }
.chooser-heading {
  margin: 0 0 var(--space-3); color: inherit;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 800;
}
.chooser-intro { margin: 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.5; opacity: .92; }

.chooser-card {
  background: var(--paper-raised); color: var(--ink);
  border-radius: var(--radius-xl, 22px);
  padding: clamp(1.25rem, 1rem + 1.6vw, 2.25rem);
  box-shadow: 0 30px 60px -24px rgba(6, 18, 38, .45), 0 2px 6px rgba(6, 18, 38, .12);
  transition: opacity .18s var(--ease);
}
.chooser-quiet .chooser-card { box-shadow: var(--shadow-lg); border: 1px solid var(--paper-edge); }
.chooser-page .chooser-card { max-width: 52rem; margin: 0 auto; width: 100%; }
.chooser-card.is-busy { opacity: .55; pointer-events: none; }
.chooser-card.is-in > * { animation: chooser-in .32s var(--ease) both; }
@keyframes chooser-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chooser-card.is-in > * { animation: none; } }

.chooser-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.chooser-step {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
}
.chooser-step-label { display: inline-flex; align-items: center; gap: .4rem; }
.chooser-step-label.is-said, .chooser:has(.chooser-lede) .chooser-step-label { display: none; }
.chooser-dots { display: inline-flex; gap: 6px; }
.chooser-dots i { display: block; width: 26px; height: 6px; border-radius: 99px; background: var(--paper-line); }
.chooser-dots i.is-done { background: color-mix(in srgb, var(--accent) 45%, var(--paper-line)); }
.chooser-dots i.is-now { background: var(--accent); }

.chooser-q {
  margin: 0 0 var(--space-2); color: var(--ink);
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800;
}
.chooser-page .chooser-q { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
.chooser-help { margin: 0 0 var(--space-4); color: var(--ink-soft); font-size: 1.02rem; }

.chooser-answers { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 560px) { .chooser-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chooser-answer {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 4rem; height: 100%; box-sizing: border-box;
  padding: 1rem 1.15rem 1rem 1.25rem;
  border: 2px solid var(--paper-edge); border-radius: var(--radius-lg, 16px);
  background: var(--paper); color: var(--ink);
  font-size: 1.08rem; font-weight: 650; line-height: 1.25; text-decoration: none;
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.chooser-answer .icon {
  flex: none; color: var(--accent);
  width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 50%;
  background: var(--accent-soft); transition: transform .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.chooser-answer:hover, .chooser-answer:focus-visible {
  border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--paper));
  color: var(--ink); transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.chooser-answer:hover .icon, .chooser-answer:focus-visible .icon { background: var(--accent); color: var(--on-accent); transform: translateX(2px); }
.chooser-answer:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }

.chooser-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-5) 0 0; font-size: .92rem; }
.chooser-nav a { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-muted); text-decoration: none; }
.chooser-nav a:hover { color: var(--accent); }

/* ---- in your own words (v1.99.0) ---- */
.chooser-say { margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px dashed var(--paper-edge); }
.chooser-say > label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: var(--space-2); color: var(--ink-soft); }
.chooser-say-row { display: flex; gap: var(--space-2); }
.chooser-say-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.02rem; color: var(--ink);
  padding: .8rem 1rem; border-radius: var(--radius-lg, 16px);
  border: 2px solid var(--paper-edge); background: var(--paper);
}
.chooser-say-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.chooser-say-row .btn { flex: none; border-radius: var(--radius-lg, 16px); padding-inline: 1rem; }
.chooser-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chooser-say-note { margin: var(--space-2) 0 0; color: var(--amber); font-weight: 600; font-size: .92rem; }
.chooser-read {
  margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius); background: var(--green-soft); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}
.chooser-read p { margin: 0; display: flex; gap: .45rem; align-items: center; font-weight: 600; }
.chooser-read .icon { color: var(--green); flex: none; }
.chooser-read ul { margin: var(--space-2) 0; padding-left: 1.6rem; }
.chooser-read .chooser-read-fix { font-weight: 400; font-size: .9rem; color: var(--ink-soft); }

/* ---- the result ---- */
.chooser-results { display: grid; gap: var(--space-4); margin-top: var(--space-2); }
@media (min-width: 720px) { .chooser-results.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chooser-results.is-two .chooser-result {
  border: 2px solid var(--paper-edge); border-radius: var(--radius-lg, 16px); padding: var(--space-5);
  display: flex; flex-direction: column;
}
.chooser-results.is-two .chooser-go { margin-top: auto; }
.chooser-name { margin: 0 0 var(--space-2); }
h3.chooser-name { font-size: 1.4rem; line-height: 1.15; letter-spacing: -.015em; font-weight: 800; }
.chooser-summary { margin: 0 0 var(--space-4); font-size: 1.12rem; color: var(--ink-soft); }
.chooser-why { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: .4rem; }
.chooser-why li { display: flex; gap: .5rem; align-items: flex-start; font-weight: 600; }
.chooser-why .icon { flex: none; margin-top: .2em; color: var(--green); }
.chooser-facts { display: grid; gap: var(--space-3); margin: 0 0 var(--space-5); padding: var(--space-4); border-radius: var(--radius); background: var(--paper-sunk); }
@media (min-width: 560px) { .chooser-results:not(.is-two) .chooser-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chooser-facts div { min-width: 0; }
.chooser-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .2rem; }
.chooser-facts dd { margin: 0; font-weight: 600; }
.chooser-go { margin: 0; }
.chooser-go .btn { gap: .5rem; }
@media (max-width: 559px) { .chooser-go .btn { width: 100%; justify-content: center; } }
.chooser-more { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--paper-edge); }
.chooser-more .btn { gap: .45rem; }
.chooser-wa .icon { color: #1f8a4c; }
[data-theme="dark"] .chooser-wa .icon { color: #4cc27f; }

.chooser-page { min-height: min(78vh, 52rem); display: flex; align-items: center; }
.chooser-page .chooser-wrap { width: 100%; }
.chooser-foot { text-align: center; margin: var(--space-4) auto var(--space-6); }

/* ---- side-mounted (v1.98.0) ----
   A tab on the right-hand edge of every page, vertical, in the site colour,
   that slides the chooser out as a panel. Never opens by itself. Sits above
   the middle of the screen so it clears the corner buttons (WhatsApp, the
   chat, a promotion) that live at the bottom. */
.chooser-dock-tab {
  position: fixed; right: 0; top: 38%; z-index: 65;
  display: inline-flex; align-items: center; gap: .55rem;
  writing-mode: vertical-rl; transform: rotate(180deg);
  padding: 1.05rem .7rem; border: 0; cursor: pointer;
  border-radius: 0 var(--radius-lg, 16px) var(--radius-lg, 16px) 0;
  background: var(--accent); color: var(--on-accent);
  font-family: inherit; font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  box-shadow: 0 8px 26px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: padding .18s var(--ease), background .15s var(--ease);
}
.chooser-dock-tab .icon { transform: rotate(90deg); flex: none; }
.chooser-dock-tab:hover, .chooser-dock-tab:focus-visible { background: var(--accent-hover); padding-right: .95rem; }
.chooser-dock-tab:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.chooser-dock.is-open .chooser-dock-tab { visibility: hidden; }

.chooser-dock-dim { position: fixed; inset: 0; z-index: 72; background: rgba(8, 12, 22, .42); }
.chooser-dock-dim[hidden], .chooser-dock-panel[hidden] { display: none; }
.chooser-dock-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 73;
  width: min(480px, 100vw); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper);
  box-shadow: -24px 0 60px -24px rgba(6, 18, 38, .5);
  animation: chooser-dock-in .26s var(--ease) both;
}
@keyframes chooser-dock-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chooser-dock-panel { animation: none; } }
html.chooser-dock-on { overflow: hidden; }
.chooser-dock-x {
  position: absolute; top: var(--space-3); right: var(--space-3); z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; cursor: pointer; background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: var(--on-accent);
}
[data-theme="dark"] .chooser-dock-x { color: #f4f7ff; background: rgba(255, 255, 255, .12); }

.chooser-side { min-height: 100%; padding: var(--space-7) 0 var(--space-6); }
.chooser-side .chooser-wrap { grid-template-columns: 1fr; gap: var(--space-5); }
.chooser-side .container { padding-inline: var(--space-5); }
.chooser-side .chooser-heading { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); padding-right: 2.5rem; }
.chooser-side .chooser-intro { font-size: 1.02rem; }
.chooser-side .chooser-card { padding: var(--space-5); }
.chooser-side .chooser-q { font-size: 1.45rem; }
.chooser-side .chooser-answers { grid-template-columns: 1fr; }
.chooser-side .chooser-facts { grid-template-columns: 1fr !important; }
.chooser-side .chooser-results.is-two { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  /* On a phone the tab is a little shorter and the panel is the whole screen. */
  .chooser-dock-tab { padding: .85rem .55rem; font-size: .9rem; top: 30%; }
  .chooser-dock-panel { width: 100vw; }
}
@media print { .chooser-dock { display: none; } }

/* ---- "Rather we got in touch?" (v1.100.0) ---- */
.chooser-lead {
  margin-top: var(--space-5); padding: var(--space-5);
  border-radius: var(--radius-lg, 16px); background: var(--paper-sunk); border: 1px solid var(--paper-edge);
}
.chooser-lead-h { display: flex; align-items: center; gap: .5rem; margin: 0 0 var(--space-2); font-size: 1.2rem; }
.chooser-lead-h .icon { color: #1f8a4c; }
[data-theme="dark"] .chooser-lead-h .icon { color: #4cc27f; }
.chooser-lead-intro { margin: 0 0 var(--space-4); color: var(--ink-soft); }
.chooser-lead-grid { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .chooser-lead-grid { grid-template-columns: 1fr 1fr; } }
.chooser-side .chooser-lead-grid { grid-template-columns: 1fr; }
.chooser-lead-grid > label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
.chooser-lead-grid em { font-weight: 400; color: var(--ink-muted); font-style: normal; }
.chooser-lead-grid input[type="text"], .chooser-lead-grid input[type="tel"], .chooser-lead-grid input[type="email"] {
  font: inherit; font-size: 1rem; padding: .7rem .85rem; border-radius: var(--radius);
  border: 1.5px solid var(--paper-edge); background: var(--paper); color: var(--ink);
}
.chooser-lead-grid input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.chooser-lead-how { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: end; }
.chooser-lead-how legend { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; padding: 0; }
.chooser-lead-how label { display: inline-flex; gap: .4rem; align-items: center; font-weight: 500; }
.chooser-lead-consent { display: flex; gap: .55rem; align-items: flex-start; margin: var(--space-4) 0 0; font-size: .9rem; color: var(--ink-soft); }
.chooser-lead-consent input { margin-top: .2rem; flex: none; }
.chooser-lead-do { margin: var(--space-4) 0 0; }
.chooser-lead-do .btn { gap: .45rem; }
.chooser-lead-said { margin: var(--space-3) 0 0; font-weight: 600; }
.chooser-lead-said.is-ok { color: var(--green); font-size: 1.05rem; }
.chooser-lead-said.is-bad { color: var(--red); }

/* ---- the questions and answers page ---- */
.guide-faq { max-width: var(--measure-wide, 52rem); }
.guide-faq h1 { margin-top: var(--space-2); }
.guide-faq .lede { font-size: 1.15rem; color: var(--ink-soft); }
.guide-faq-cta {
  display: flex; align-items: center; gap: var(--space-4); margin: var(--space-5) 0 var(--space-6);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg, 16px);
  background: var(--ch-band, var(--accent)); background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 62%, #061226) 100%);
  color: var(--on-accent); text-decoration: none;
  box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .15s var(--ease);
}
.guide-faq-cta:hover { color: var(--on-accent); transform: translateY(-2px); }
[data-theme="dark"] .guide-faq-cta { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, #0a1428), color-mix(in srgb, var(--accent) 14%, #050a14)); color: #f4f7ff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .guide-faq-cta { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, #0a1428), color-mix(in srgb, var(--accent) 14%, #050a14)); color: #f4f7ff; }
}
.guide-faq-cta > span:nth-child(2) { flex: 1; display: grid; gap: .15rem; }
.guide-faq-cta strong { font-size: 1.15rem; }
.guide-faq-cta-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--on-accent) 16%, transparent); flex: none; }
.guide-faq-toc { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-6); }
.guide-faq-toc a { padding: .4rem .8rem; border-radius: var(--radius-pill); border: 1px solid var(--paper-edge); background: var(--paper-raised); text-decoration: none; font-size: .9rem; color: var(--ink-soft); }
.guide-faq-toc a:hover { border-color: var(--accent); color: var(--accent); }
.guide-faq-group { margin: 0 0 var(--space-7); scroll-margin-top: 90px; }
.guide-faq-group h2 { font-size: 1.4rem; margin: 0 0 var(--space-3); }
.guide-faq-item { border-bottom: 1px solid var(--paper-edge); }
.guide-faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-3); align-items: center;
  padding: var(--space-4) 0; font-weight: 650; font-size: 1.05rem;
}
.guide-faq-item summary::-webkit-details-marker { display: none; }
.guide-faq-item summary .icon { flex: none; color: var(--ink-muted); transition: transform .18s var(--ease); }
.guide-faq-item[open] summary .icon { transform: rotate(180deg); color: var(--accent); }
.guide-faq-a { padding: 0 0 var(--space-4); color: var(--ink-soft); line-height: 1.6; }
.guide-faq-next { margin: var(--space-4) 0 0; }

/* ==========================================================================
   The WhatsApp form, Advanced (v1.102.0) — the bar above the menu.
   One band in WhatsApp's own deep green, the same in light and dark, so it is
   the first thing a visitor sees and never mistaken for the site's own nav.
   The panel under it opens on the page's own paper.
   ========================================================================== */
.wa-head {
  --wa-band: linear-gradient(100deg, #0b3a2b 0%, #0f4d38 55%, #12573f 100%);
  --wa-ink: #f2fbf6;
  --wa-soft: rgba(242, 251, 246, .74);
  --wa-go: #25d366;
  --wa-go-hover: #3ee07a;
  --wa-go-ink: #052615;
  --wa-live: #4ade80;
  --wa-away: #f5b84a;
  --wa-pick: #1d7a4b;
  position: relative; z-index: 61;
}
.wa-head-row {
  display: flex; align-items: center; gap: var(--space-4);
  padding-top: var(--space-3); padding-bottom: var(--space-3);
}
.wa-head > .wa-head-row, .wa-head { background: var(--wa-band); color: var(--wa-ink); }
.wa-head .wa-panel { background: var(--paper-raised); color: var(--ink); }
.wa-head-ic {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--wa-go);
  /* WHITE, NOT --wa-go-ink (v1.120.2). The mark on a WhatsApp-green disc is
     white — that is the lockup, and it is what the floating button next to
     it already does. The near-black ink token belongs to the Start on
     WhatsApp button, where it is type on green, not a glyph. Until v1.120.1
     a stray .brand-mark rule was painting an accent disc over this one and
     the glyph white, which hid it; with that gone the handset came out
     almost black on green and read as a heavy blob at 30px. */
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, .18);
}

/* A LOGO BRINGS ITS OWN DISC (v1.120.4). Where brands.svg carries the mark in
   its own colours, the view adds this class and the chip steps out of the way:
   a green bubble sat inside a green circle is two circles, and the white ring
   between them is a hairline that falls apart at 30px. Sites without the
   colour symbol never get the class and keep the disc, unchanged. */
.wa-head-ic--logo {
  background: none; box-shadow: none; width: auto; height: auto;
}
.wa-head-say { margin: 0; flex: 1 1 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .45em; row-gap: 2px; min-width: 0; }
.wa-head-say strong { font-size: 1.12rem; font-weight: var(--w-lab); letter-spacing: -.015em; }
.wa-head-sub { font-size: 1.12rem; color: var(--wa-soft); }
.wa-head-status {
  flex-basis: 100%; display: inline-flex; align-items: center; gap: .45em;
  font-size: var(--fs-fine); color: var(--wa-soft);
}
.wa-head-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--wa-live); box-shadow: 0 0 0 3px rgba(74, 222, 128, .22); }
.wa-head-status.is-away i { background: var(--wa-away); box-shadow: 0 0 0 3px rgba(245, 184, 74, .22); }
.wa-head-box {
  margin-left: auto; flex: 1 1 420px; max-width: 560px;
  display: flex; align-items: center; gap: 0;
  background: #fff; border-radius: var(--radius-pill); padding: 4px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
}
.wa-head-box input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: #1d1d1b;
  font: inherit; font-size: 1rem; padding: .62rem .4rem .62rem 1.05rem; outline: none;
}
.wa-head-box input::placeholder { color: #6b6b66; }
.wa-head-box:focus-within { box-shadow: 0 0 0 3px var(--wa-go), 0 6px 22px rgba(0, 0, 0, .18); }
.wa-head-go {
  flex: none; display: inline-flex; align-items: center; gap: .4em;
  border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--wa-go); color: var(--wa-go-ink);
  font: inherit; font-weight: var(--w-lab); font-size: .95rem; padding: .62rem 1.15rem;
  transition: background .15s var(--ease), transform .12s var(--ease);
}
.wa-head-go:hover { background: var(--wa-go-hover); }
.wa-head-go:active { transform: scale(.97); }
.wa-head-go-short { display: none; }

/* The panel: chips, a name, send. */
.wa-panel { border-bottom: 1px solid var(--paper-edge); box-shadow: inset 0 6px 14px -10px rgba(0, 0, 0, .25); }
.wa-panel > .container { padding-top: var(--space-5); padding-bottom: var(--space-5); max-width: 880px; }
.wa-form, .wa-done { display: grid; gap: var(--space-4); }
.wa-read {
  margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em .6em;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: var(--green-soft); color: var(--ink);
}
.wa-read-k { display: inline-flex; align-items: center; gap: .35em; font-size: var(--fs-sm); color: var(--green); font-weight: var(--w-lab); }
.wa-read-sum { flex-basis: 100%; font-size: var(--fs-sm); color: var(--ink-soft); }
.wa-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.wa-step legend { padding: 0; margin: 0 0 var(--space-2); font-weight: var(--w-lab); font-size: .98rem; color: var(--ink); }
.wa-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.wa-chip {
  font: inherit; font-size: var(--fs-sm); line-height: 1.2; cursor: pointer;
  padding: .55rem .95rem; border-radius: var(--radius-pill);
  border: 1px solid var(--paper-line); background: var(--paper); color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.wa-chip:hover { border-color: var(--wa-pick); }
.wa-chip[aria-pressed="true"] { background: var(--wa-pick); border-color: var(--wa-pick); color: #fff; }
.wa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-3); }
.wa-field { display: grid; gap: var(--space-1); font-size: var(--fs-sm); color: var(--ink-soft); font-weight: var(--w-lab); }
.wa-field input, .wa-field textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  background: var(--paper); border: 1px solid var(--edge-ctl); border-radius: var(--radius-sm);
  padding: .6rem .75rem; width: 100%;
}
.wa-field textarea { resize: vertical; min-height: 2.9rem; }
.wa-field input:focus, .wa-field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.wa-err { margin: 0; color: var(--red); font-size: var(--fs-sm); }
.wa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.btn.wa-send { background: #25d366; color: #052615; border-color: #25d366; font-weight: var(--w-lab); }
.btn.wa-send:hover { background: #3ee07a; border-color: #3ee07a; }
.wa-close {
  font: inherit; font-size: var(--fs-sm); background: none; border: 0; padding: .4rem .2rem;
  color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.wa-privacy { margin: 0; display: flex; align-items: flex-start; gap: .4em; font-size: var(--fs-fine); color: var(--ink-muted); }
.wa-privacy .icon { flex: none; margin-top: .15em; }

/* Sent: the reference, then the phone or the computer version. */
.wa-done-ref { margin: 0; display: flex; align-items: baseline; gap: .6em; }
.wa-done-ref span { font-size: var(--fs-fine); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.wa-done-ref strong { font-family: var(--font-mono); font-size: 1.25rem; letter-spacing: .04em; color: var(--green); }
.wa-done-phone p, .wa-done-side p { margin: 0 0 var(--space-3); }
.wa-done-computer:not([hidden]) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.wa-qr { width: 196px; padding: 10px; background: #fff; border-radius: var(--radius); border: 1px solid var(--paper-edge); }
.wa-qr svg { display: block; width: 100%; height: auto; }
.wa-email { display: grid; gap: var(--space-2); margin-top: var(--space-4); font-size: var(--fs-sm); }
.wa-email label { font-weight: var(--w-lab); color: var(--ink-soft); }
.wa-email-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.wa-email-row input {
  flex: 1 1 200px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--edge-ctl); border-radius: var(--radius-pill); padding: .55rem .95rem;
}
.wa-email-note { color: var(--green); font-weight: var(--w-lab); }

/* /wa, the page version. */
.wa-page .eyebrow { display: inline-flex; align-items: center; gap: .4em; color: var(--green); }
.wa-page-status { display: inline-flex; align-items: center; gap: .5em; color: var(--ink-soft); margin: 0 0 var(--space-5); }
.wa-page-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.wa-page-status.is-away i { background: var(--amber); }
.wa-radios { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.wa-radio {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  padding: .5rem .9rem; border: 1px solid var(--paper-line); border-radius: var(--radius-pill);
  background: var(--paper-raised); font-size: var(--fs-sm);
}
.wa-radio:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.wa-form-page { margin-top: var(--space-4); }

/* The site's own colours (v1.102.1, the default): white and the site's
   accent, so the bar reads as part of the page. Green is kept for what is
   WhatsApp itself — the icon and the final Send. */
.wa-head.is-site {
  --wa-band: var(--paper-raised);
  --wa-ink: var(--ink);
  --wa-soft: var(--ink-muted);
  --wa-pick: var(--accent);
  border-bottom: 1px solid var(--paper-edge);
  border-top: 3px solid var(--accent);
}
.wa-head.is-site .wa-head-ic { box-shadow: none; }
.wa-head.is-site .wa-head-status i { background: #22a35a; box-shadow: 0 0 0 3px rgba(34, 163, 90, .18); }
.wa-head.is-site .wa-head-status.is-away i { background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 22%, transparent); }
.wa-head.is-site .wa-head-box {
  background: var(--paper); border: 1px solid var(--edge-ctl); box-shadow: var(--shadow-sm);
}
.wa-head.is-site .wa-head-box input { color: var(--ink); }
.wa-head.is-site .wa-head-box input::placeholder { color: var(--ink-faint); }
.wa-head.is-site .wa-head-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wa-head.is-site .wa-head-go { background: var(--accent); color: var(--on-accent); }
.wa-head.is-site .wa-head-go:hover { background: var(--accent-hover); }
.wa-head.is-site .wa-panel { border-top: 1px solid var(--paper-edge); box-shadow: none; }
.wa-head.is-site .wa-read { background: var(--accent-soft); }
.wa-head.is-site .wa-read-k { color: var(--accent); }
.wa-head.is-site .wa-field input:focus, .wa-head.is-site .wa-field textarea:focus { outline-color: var(--accent); }
.wa-head.is-site .wa-done-ref strong { color: var(--accent); }

@media (max-width: 860px) {
  .wa-head-row { flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
  .wa-head-box { flex-basis: 100%; max-width: none; margin-left: 0; }
  .wa-head-ic { width: 36px; height: 36px; }
  .wa-head-say strong, .wa-head-sub { font-size: 1rem; }
  .wa-head-status { flex-basis: auto; }
}
@media (max-width: 560px) {
  .wa-head-row { padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .wa-head-go-long { display: none; }
  .wa-head-sub { display: none; }
  .wa-head-ic { width: 32px; height: 32px; }
  .wa-head-go-short { display: inline-flex; }
  .wa-head-go { padding: .6rem .8rem; }
  .wa-grid { grid-template-columns: 1fr; }
  .wa-done-computer:not([hidden]) { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-head-go, .wa-chip { transition: none; }
}
@media print { .wa-head { display: none; } }

/* ---------------------------------------------------------------------------
   The link-in-bio page (v1.104.0)

   A bare column, built for a thumb on a phone. No menu, no footer, so the
   buttons are the whole page and they are sized like it: full width, a
   comfortable tap target, and enough room between them that nobody presses
   the wrong one.

   Every colour here is a token that already exists, checked against :root
   rather than guessed. A panel that renders transparent because its variable
   was invented is a morning nobody gets back.
   --------------------------------------------------------------------------- */

.bio-page {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

.bio-wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 4rem) 1rem clamp(3rem, 8vw, 5rem);
}

.bio-head { text-align: center; margin-bottom: clamp(1.5rem, 5vw, 2.5rem); }

.bio-avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto .9rem;
  border-radius: var(--radius-pill);
  object-fit: cover;
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
}

.bio-avatar-mark {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.bio-name {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  line-height: 1.15;
  margin: 0;
}

.bio-sub {
  color: var(--ink-soft);
  margin: .45rem 0 0;
  font-size: var(--fs-sm);
}

.bio-group { margin-bottom: 1.25rem; }

.bio-group-title {
  font-size: var(--fs-fine);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-faint);
  margin: 0 0 .6rem;
  text-align: center;
}

/* The button. Not the coloured organisation-btn of a home-page group: on a
   page that is nothing but buttons, twelve filled blocks of the site's accent
   is a wall. One accent-bordered card each, filled on press. */
.bio-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .95rem 1.1rem;
  margin-bottom: .7rem;
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.bio-btn:hover,
.bio-btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.bio-btn:focus-visible { outline: var(--focus); outline-offset: 2px; }
.bio-btn:active { transform: translateY(0); }

.bio-btn-main { flex: 1 1 auto; min-width: 0; }

.bio-btn-when {
  display: block;
  font-size: var(--fs-fine);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .1rem;
}

.bio-btn:hover .bio-btn-when,
.bio-btn:focus-visible .bio-btn-when { color: var(--on-accent); opacity: .9; }

.bio-btn-label {
  display: block;
  font-weight: 600;
  line-height: 1.25;
}

.bio-btn-desc {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.3;
  margin-top: .1rem;
}

.bio-btn:hover .bio-btn-desc,
.bio-btn:focus-visible .bio-btn-desc { color: var(--on-accent); opacity: .85; }

.bio-btn-go { flex: 0 0 auto; color: var(--ink-faint); }
.bio-btn:hover .bio-btn-go,
.bio-btn:focus-visible .bio-btn-go { color: var(--on-accent); }

.bio-empty {
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.bio-empty p { margin: 0 0 .5rem; }
.bio-empty p:last-child { margin-bottom: 0; }
.bio-empty-hint { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.5; }

.bio-foot {
  text-align: center;
  margin: clamp(1.5rem, 5vw, 2.5rem) 0 0;
  font-size: var(--fs-sm);
}

.bio-foot a { color: var(--ink-faint); }
.bio-foot a:hover { color: var(--accent); }

/* The signed-in half of the look-round card (v1.105.0). Separated by a rule
   rather than a colour, so it is obvious these are not public addresses. */
.tour-behind-head {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--paper-edge);
}

/* A brand mark is not an icon (v1.106.0). It is filled rather than stroked,
   it keeps whatever grid its owner drew it on, and it must never inherit the
   icon stroke — which is what made the WhatsApp mark blur at 14px. */
.brand-mark {
  /* Overrides .icon's fill:none / stroke:currentColor / stroke-width, and
     nothing else — it carries the icon class too, so its placing in every
     context it appears in is still whatever that context already said. */
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
}

/* ---------------------------------------------------------------------------
   Answers you look up (v1.107.1)

   One set of rules for the admin shelf and the public one, because they are
   the same object read by two people. Tokens only - this has to sit inside
   whatever palette and theme a site chose.

   SPACED FOR SOMEBODY READING IT WITH A PERSON IN FRONT OF THEM. The first
   version packed the cards eight pixels apart inside a second card, so every
   answer had two borders round it and the eye had nothing to rest on. The
   list now sits on the page rather than in a card, and each answer gets room
   to be a separate thing.
--------------------------------------------------------------------------- */
.shelf-toolcard{padding:var(--space-4)}
.shelf-tools{display:flex;flex-direction:column;gap:var(--space-4);padding:0}
.shelf-search{flex:1 1 18rem;min-width:0}
.shelf-search input{width:100%}
.shelf-chips{display:flex;flex-wrap:wrap;gap:.45rem}
.chip{font:inherit;font-size:.8rem;line-height:1.4;cursor:pointer;color:var(--ink);
  background:var(--paper-raised,var(--paper));border:1px solid var(--paper-edge);
  border-radius:999px;padding:.3rem .85rem}
.chip:hover{border-color:var(--accent)}
.chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:500}
.chip .n{opacity:.6;margin-left:.4rem;font-variant-numeric:tabular-nums}
.chip[aria-pressed="true"] .n{opacity:.85}

/* The list is not in a card. Each answer is its own card and that is enough. */
.shelf-list{display:flex;flex-direction:column;gap:var(--space-3);margin-top:var(--space-4)}
.shelf-item{background:var(--paper-raised,var(--paper));border:1px solid var(--paper-edge);
  border-radius:var(--radius)}
.shelf-item[open]{box-shadow:0 1px 3px rgb(0 0 0 / .06)}
.shelf-item > summary{list-style:none;cursor:pointer;padding:var(--space-4);
  display:flex;gap:var(--space-4);align-items:flex-start;justify-content:space-between}
.shelf-item > summary::-webkit-details-marker{display:none}
.shelf-item > summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.shelf-q{min-width:0;flex:1;display:flex;flex-direction:column;gap:.3rem}
.shelf-q b{font-weight:600;line-height:1.45;font-size:1.02rem}
.shelf-q .sub{display:block;line-height:1.5}
.shelf-topic{font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;opacity:.6}

.shelf-body{padding:0 var(--space-4) var(--space-4);
  display:flex;flex-direction:column;gap:var(--space-4)}
.shelf-plain{background:var(--accent-soft);border-radius:calc(var(--radius) * .7);padding:var(--space-3) var(--space-4)}
.shelf-plain span,.shelf-try span{display:block;font-size:.68rem;letter-spacing:.08em;
  text-transform:uppercase;opacity:.7;margin-bottom:.35rem}
.shelf-plain p{margin:0}
.shelf-read > *:first-child{margin-top:0}
.shelf-read > *:last-child{margin-bottom:0}
.shelf-try{background:var(--accent-soft);border-radius:calc(var(--radius) * .7);padding:var(--space-3) var(--space-4)}
.shelf-try ul{margin:0;padding-left:1.1rem}
.shelf-try li{margin-bottom:.2rem}
.shelf-source{margin:0;padding-top:var(--space-3);border-top:1px solid var(--paper-edge)}

/* The editor is a second thing inside the card, so it is set apart rather
   than run on from the answer above it. */
.shelf-edit{padding-top:var(--space-4);border-top:1px solid var(--paper-edge);
  display:flex;flex-direction:column;gap:var(--space-3)}
.shelf-edit .field{margin:0}
.shelf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));
  gap:var(--space-3) var(--space-4)}
/* The fields fill their column. Without this they sit at the browser's own
   default width - little boxes in the middle of a wide card. */
.shelf-edit .field input,
.shelf-edit .field select,
.shelf-edit .field textarea,
.shelf-grid .field input,
.shelf-grid .field select{width:100%;max-width:100%;box-sizing:border-box}

/*
 * THE EDITOR HAS TO SHRINK WITH ITS COLUMN.
 *
 * HugeRTE sizes itself once, at whatever width it first finds, and then holds
 * it: measured at 1170px on a 1300px window, which pushed the whole admin
 * main column past the viewport and gave the page a horizontal scrollbar.
 * The editor is a flex and grid child, and a flex child's min-width is auto,
 * so it was free to refuse. It is not any more.
 */
.shelf-edit .field,
.shelf-grid .field,
.shelf-add .field{min-width:0}
.shelf-edit .tox, .shelf-add .tox,
.shelf-edit .tox-editor-container, .shelf-add .tox-editor-container,
.shelf-edit .tox-sidebar-wrap, .shelf-add .tox-sidebar-wrap,
.shelf-edit .tox-edit-area, .shelf-add .tox-edit-area,
.shelf-edit .tox-edit-area__iframe, .shelf-add .tox-edit-area__iframe{max-width:100%}
/* max-width caps the width it USES; it does not change the width it ASKS for.
   The editor's own boxes are flex containers, so each one's min-width is auto
   and the iframe's intrinsic width travels all the way up to the admin column.
   These are what actually let it shrink. */
.shelf-edit .tox-editor-container, .shelf-add .tox-editor-container,
.shelf-edit .tox-sidebar-wrap, .shelf-add .tox-sidebar-wrap,
.shelf-edit .tox-edit-area, .shelf-add .tox-edit-area{min-width:0}
.shelf-edit .tox-edit-area__iframe, .shelf-add .tox-edit-area__iframe{width:100%}
.shelf-add{margin-top:var(--space-4)}
.shelf-add h2{font-size:1.05rem;margin:0 0 var(--space-3)}
.shelf-add form{display:flex;flex-direction:column;gap:var(--space-3)}
.shelf-add .field{margin:0}
.shelf-add .field input,
.shelf-add .field textarea{width:100%;max-width:100%;box-sizing:border-box}
.shelf-add .btn{align-self:flex-start}

/* Who can open this: a panel set once and then ignored, so it is quiet. */
.shelf-gate{border-left:3px solid var(--accent);padding:var(--space-4)}
.shelf-gate h2{font-size:1.05rem;margin:0 0 .35rem}
.shelf-gate form{display:flex;flex-wrap:wrap;gap:var(--space-4);align-items:flex-end}
.shelf-gate .hint{margin:0 0 .4rem}
.shelf-gate .hint:last-of-type{margin-bottom:0}
.shelf-gate .field label{display:block;margin-bottom:.3rem}

.shelf-tick{flex:none;display:flex;align-items:center;gap:.4rem;cursor:pointer;padding-top:.15rem}
.shelf-tick input{cursor:pointer}
.shelf-tickall{font-size:.85rem}
.shelf-bulk{margin-top:var(--space-4);position:sticky;bottom:var(--space-3);z-index:3}
.shelf-bulkrow{display:flex;flex-wrap:wrap;gap:var(--space-3) var(--space-4);align-items:center}
.shelf-bulk .hint{margin:var(--space-3) 0 0}
.shelf-list .none{padding:var(--space-6,2.5rem) var(--space-4);text-align:center;opacity:.7}
@media (max-width:40rem){
  .shelf-item > summary{flex-direction:column;gap:.5rem}
  .shelf-gate form{align-items:stretch}
}

/* ---------------------------------------------------------------------------
   Promotions: the consent block (v1.107.3)

   Set apart from the sign-up above it, because it is a separate question and
   has to look like one. Nothing here is required to sign up.
--------------------------------------------------------------------------- */
.promo-consent{margin-top:var(--space-4);padding-top:var(--space-4);
  border-top:1px solid var(--paper-edge);display:flex;flex-direction:column;gap:var(--space-4)}
.promo-consent-read{font-size:.94rem;line-height:1.6}
.promo-consent-read > *:first-child{margin-top:0}
.promo-consent-read > *:last-child{margin-bottom:0}
.promo-consent-read ul{margin:0 0 .75rem;padding-left:1.1rem}
.promo-consent-ask{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}
.promo-consent-ask legend{padding:0;font-weight:600;margin-bottom:.35rem}
.promo-consent-more{display:flex;flex-direction:column;gap:var(--space-4);
  padding-left:var(--space-4);border-left:2px solid var(--paper-edge)}
.promo-consent .promo-check{display:flex;gap:.55rem;align-items:flex-start;line-height:1.5}
.promo-consent .promo-check input{margin-top:.25rem;flex:none}
.promo-consent input[type="text"]{max-width:22rem}
.promo-full{margin:0 0 var(--space-4);padding:var(--space-3) var(--space-4);
  border-radius:var(--radius-md);background:var(--amber-soft,var(--paper-sunk));
  font-size:var(--fs-sm);line-height:1.5}
.promo-privacy summary{cursor:pointer;font-weight:500}
.promo-privacy[open] summary{margin-bottom:var(--space-3)}

/* ==========================================================================
   WHAT THIS SITE SENDS BACK (v1.116.0)
   --------------------------------------------------------------------------
   The panel above a form naming the documents that go out the moment it is
   filled in. Quiet — it is a promise being kept, not an advertisement — but
   present enough that somebody deciding whether to hand over an address can
   see what they get for it.
   ========================================================================== */
.gift-offer {
  margin: 0 0 var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.gift-offer h2 {
  margin: 0 0 var(--space-2);
  font-size: 1rem;
  display: flex; align-items: center; gap: .5em;
  color: var(--accent-ink);
}
.gift-offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.gift-offer li { display: grid; gap: .1em; }
.gift-offer span { color: var(--ink-muted); font-size: .92rem; }

/* ==========================================================================
   THE ADVERT AT THE TOP OF THE HOME PAGE (v1.117.0)
   --------------------------------------------------------------------------
   One box, written in the admin, for whatever is worth saying this month. It
   is deliberately not a hero: it sits above the page the way a notice does,
   and the page underneath carries on being the page.

   A link inside it is drawn as a button, because somebody writing an advert
   in a text box should not have to know how to make one.
   ========================================================================== */
.home-promo {
  margin: var(--space-5) 0 0;
  padding: var(--space-5) var(--space-6);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: none;
}
.home-promo > :first-child { margin-top: 0; }
.home-promo > :last-child { margin-bottom: 0; }
.home-promo h1, .home-promo h2, .home-promo h3 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--accent-ink);
}
.home-promo p { color: var(--ink-soft); }
/* The box is already a narrow column. Prose centres its paragraphs inside
   whatever holds them, which in here reads as an indent under the heading —
   so the words start at the edge of the box, like the heading does. */
.home-promo > p,
.home-promo > ul, .home-promo > ol,
.home-promo > blockquote, .home-promo > details {
  max-width: var(--measure-wide);
  margin-inline: 0;
}
/* A link in the advert is the thing to press. Anything already styled as a
   button is left alone. */
.home-promo a:not(.btn):not(.button) {
  display: inline-flex; align-items: center; gap: .4em;
  margin-top: var(--space-3);
  padding: .7rem 1.4rem;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-weight: 700; text-decoration: none;
}
.home-promo a:not(.btn):not(.button):hover { background: var(--accent-hover); color: var(--on-accent); }
.home-promo img { max-width: 100%; height: auto; border-radius: var(--radius); }
@media (min-width: 760px) {
  /* A picture in the advert sits beside the words rather than above them. */
  .home-promo:has(> img) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 14rem); gap: var(--space-6); align-items: center; }
  .home-promo:has(> img) > img { grid-column: 2; grid-row: 1 / span 20; }
  .home-promo:has(> img) > :not(img) { grid-column: 1; }
}

/* ==========================================================================
   THE PAGE SOMEBODY FETCHES WHAT THEY BOUGHT FROM (v1.119.0)
   --------------------------------------------------------------------------
   These class names were written in v1.63.0 and never given anything to wear,
   so the list rendered as bullet points with the buttons strung along a line.
   It matters more now: a document can have two buttons, the PDF and the copy
   that can be typed into, and two buttons on a phone need somewhere to sit.
   ========================================================================== */
.got-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.got-list > li {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
}
.got-what { display: grid; gap: .2em; min-width: min(100%, 16rem); flex: 1 1 18rem; }
.got-about { color: var(--ink-soft); }
.got-meta { color: var(--ink-muted); font-size: .875rem; }
.got-do { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ==========================================================================
   OPENING THE SHOP (v1.121.0)
   --------------------------------------------------------------------------
   The checklist and the one button, on Admin -> Selling. A list that is read
   once and then never again, so it is plain: a mark, a line in bold, and the
   reason under it.
   ========================================================================== */
.open-shop.is-open { border-color: var(--accent); }
.open-list { list-style: none; margin: var(--space-4) 0; padding: 0; display: grid; gap: var(--space-3); }
.open-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.open-mark {
  flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper-sunk); color: var(--ink-muted);
}
.open-list .is-done  .open-mark { background: var(--accent-soft); color: var(--accent-ink); }
.open-list .is-todo  .open-mark { background: var(--red-soft, #fdeceb); color: var(--red, #b3261e); }
.open-what { display: grid; gap: .15em; }
.open-what span { color: var(--ink-soft); }
.open-what a { justify-self: start; margin-top: .2em; font-weight: 600; }
.open-keys { margin: var(--space-4) 0; }
.open-keys > summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); }
.open-keys > form { margin-top: var(--space-3); }
.open-do {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: flex-end;
  padding-top: var(--space-4); border-top: 1px solid var(--paper-line);
}
.open-do .muted { flex: 1 1 14rem; align-self: center; }
.open-do .btn[disabled] { opacity: .5; pointer-events: none; }

/* An appointment put in by hand, on Admin -> Diary. (v1.122.0) */
.by-hand > summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); }
.by-hand > summary::marker { color: var(--accent); }
.by-hand > .hint { margin-top: var(--space-3); }
.by-hand form { margin-top: var(--space-4); }
.by-hand .check + .hint { margin-top: var(--space-1); margin-left: 1.9rem; }
.by-hand .check { margin-top: var(--space-4); }

/* THE WHOLE PICTURE ON A SQUARE (v1.123.0)
   -------------------------------------------------------------------------
   Settings -> Look -> Pictures on the squares. The default crops a picture to
   the square's shape, which is right for photographs. This shows all of it
   instead, for a site whose squares are designed graphics with words on them:
   cropping those cuts the words in half, and nobody can see what has been
   lost without opening the card. */
.card-grid.pictures-whole .card-square-media {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
}
.card-grid.pictures-whole .card-square-media img {
  object-fit: contain;
  padding: var(--space-2);
}

/* ---- the software gallery (v1.129.0) ------------------------------------- */
.software-gallery-head { max-width: 62ch; }
.software-account { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-4) 0 0; }
.software-package { margin-top: var(--space-7, 3rem); }
.software-package > h2 { margin: 0; }
.software-package .card-grid { margin-top: var(--space-4); }
.software-crumbs { margin: var(--space-3) 0 0; }
.software-crumbs a { display: inline-flex; align-items: center; gap: .35em; }
.software-mates { margin-top: var(--space-7, 3rem); }
.software-offers { margin-top: var(--space-6); }
.software-agree { margin: var(--space-3) 0; }
.software-credit { margin-bottom: var(--space-5); }
