/*
Theme Name: Select Drive
Theme URI: https://www.selectdrivedrivingschool.co.uk/
Author: Tom Wilson
Description: Custom theme for Select Drive Driving School. Semantic HTML, no page builder, no framework.
Version: 0.16.2
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: selectdrive
*/

/* ===============================================================
   ONE GROUND, A FEW OVERLAYS

   The page sits on warm paper from top to bottom. Dark is a device,
   not a default: it appears twice, at the hero and the footer, so the
   page is bookended rather than striped. Red appears once.

   Order down the page:
     ink → paper (one long run) → red → paper → ink

   What stops the long paper run reading as one grey column is that
   no two neighbouring sections share a layout: rail, photographs,
   full-bleed strip, rail, map, quotes, band, rail, feature.
   =============================================================== */

:root {
  /* ground */
  --paper:      #F7F5F2;   /* the base. Everything sits on this. */
  --panel:      #FFFFFF;   /* raised panel — only 1.09:1 on paper, so it always carries a hairline */
  --sunk:       #EFEDE8;   /* recessed fill */
  --line:       #E3DFD8;   /* hairline on paper */

  /* dark — used sparingly */
  --ink:        #0A0A0A;
  --ink-2:      #171717;
  --ink-line:   #2A2A2A;

  /* text on paper */
  --text:       #14120F;   /* 17.2:1 */
  --text-2:     #5C574F;   /* 6.6:1  */
  --text-3:     #6B655C;   /* 5.3:1, meta only */

  /* text on ink */
  --on-ink:     #F7F5F2;   /* 18.2:1 */
  --on-ink-2:   #C9C3B8;   /* 11.3:1 */

  /* red */
  --red:        #DC2626;   /* grounds, buttons, rules, large type */
  --red-ink:    #B91C1C;   /* red TEXT on paper — brand red is only 4.44:1 here */
  --red-lt:     #EF4444;   /* red TEXT on ink */

  /* not ours: WhatsApp's own green, on the WhatsApp button and nowhere else */
  --wa:         #25D366;

  --link-hover: var(--red-ink);
  --kicker:     var(--red-ink);

  /* The header stays on screen. --header-h is its whole height; --stick is how much of it stays
     once the page has scrolled, which is all of it: one row on every screen. (They differ only in
     a browser too old to open the phone menu; see the end of this file.) Anything else that
     sticks, or is jumped to, clears --stick. */
  --header-h:   80px;
  --stick:      80px;

  --gutter:     clamp(20px, 5vw, 72px);
  --band:       clamp(56px, 7vw, 104px);
  --gap:        clamp(28px, 4.4vw, 72px);

  --font-display: Anton, Impact, "Arial Narrow", sans-serif;
  --font-body:    Barlow, system-ui, -apple-system, sans-serif;
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* :root, not html, so it also wins over the admin bar's own rule when someone is logged in */
:root { scroll-padding-top: calc(var(--stick) + var(--wp-admin--admin-bar--position-offset, 0px)); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;        /* clip does not make a scroll container, so sticky rails still stick */
}

h1, h2 { font-family: var(--font-display); font-weight: 400; margin: 0; }
h2 { font-size: clamp(30px, 3.5vw, 54px); line-height: 1.06; letter-spacing: 0.004em; }
h3, h4 { font-family: var(--font-body); font-weight: 600; margin: 0; line-height: 1.25; }
p { margin: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:hover { color: var(--link-hover); }

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

.skip-link { position: absolute; left: -9999px; background: var(--red); color: #FFF; padding: 14px 22px; font-weight: 600; z-index: 100; }
.skip-link:focus { left: 0; top: 0; }

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

.sd-band { padding: var(--band) var(--gutter); }
/* Neighbours on the same paper share one band of space, not two. The red band keeps both of its own. */
main > .sd-band:not(.sd-band--red) + .sd-band:not(.sd-band--red),
main > .sd-fleet + .sd-band:not(.sd-band--red) { padding-top: 0; }      /* a red band after the fleet still needs its own top */
.sd-lede { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; color: var(--text-2); max-width: 54ch; }

.sd-trust, .sd-points, .sd-rows, .sd-places, .sd-quotes, .sd-guides__list, .sd-ticks { list-style: none; margin: 0; padding: 0; }

/* Any dark area re-points the text and hover tokens at itself. */
.sd-on-ink {
  background: var(--ink);
  color: var(--on-ink);
  --text: var(--on-ink);
  --text-2: var(--on-ink-2);
  --text-3: var(--on-ink-2);
  --line: var(--ink-line);
  --link-hover: var(--red-lt);
  --kicker: var(--red-lt);
}
.sd-on-ink :focus-visible { outline-color: var(--red-lt); }

/* And a white panel sitting on the ink points them back again. */
.sd-on-paper {
  background: var(--panel);
  color: #14120F;
  --text: #14120F;
  --text-2: #5C574F;
  --text-3: #6B655C;
  --line: #E3DFD8;
  --link-hover: var(--red-ink);
  --kicker: var(--red-ink);
}
.sd-on-ink .sd-on-paper :focus-visible { outline-color: var(--red-ink); }

/* ---------------------------------------------------------------
   Shared pieces
   --------------------------------------------------------------- */

/* The label above a heading. A short red dash, like a lane marking, then the words. */
.sd-kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--kicker); margin-bottom: 18px;
}
.sd-kicker::before { content: ""; flex: 0 0 28px; height: 3px; background: var(--red); }
/* On a location page the kicker is the breadcrumb */
.sd-kicker a { text-decoration: none; }
.sd-kicker a:hover { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.sd-kicker [aria-current] { color: var(--text); }

.sd-label { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }

/* Section opener */
.sd-head h2 { max-width: 20ch; }
.sd-head .sd-lede { margin-top: 18px; }

/* Wide opener: heading on the left, standfirst level with its last line on the right */
.sd-head--wide {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--gap); align-items: end;
  margin-bottom: clamp(30px, 3.8vw, 54px);
}
.sd-head--wide .sd-kicker { grid-column: 1 / -1; }
.sd-head--wide h2 { max-width: 24ch; }
.sd-head--wide .sd-lede { margin-top: 0; }

/* Rail: the opener holds the left column while the content runs down the right */
.sd-split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap); align-items: start;
}
.sd-split__rail { position: sticky; top: calc(var(--stick) + 32px); }
.sd-split__rail h2 { font-size: clamp(28px, 3.1vw, 48px); }

/* Text links */
.sd-link, .sd-also a {
  font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.sd-more {
  font-size: 17px; font-weight: 600; line-height: 1.3; white-space: nowrap;
  border-bottom: 2px solid var(--red); padding-bottom: 3px;
}
.sd-more::after { content: "\00a0\2192"; }

/* Buttons */
.sd-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.sd-btn {
  display: inline-block; text-decoration: none; text-align: center;
  padding: 17px 32px; font-family: inherit; font-size: 18px; font-weight: 600; line-height: 1.3;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
}
.sd-btn--primary { background: var(--red); color: #FFF; border-color: var(--red); }
.sd-btn--primary:hover { background: var(--red-ink); border-color: var(--red-ink); color: #FFF; }
.sd-btn--ghost { border-color: currentColor; }
.sd-btn--ghost:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }

/* Tags */
.sd-tag {
  display: inline-block; background: var(--red); color: #FFF;
  font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 8px 16px;
}
.sd-tag--quiet {
  background: transparent; color: var(--red-ink); border: 1px solid currentColor;
  font-size: 14px; padding: 1px 8px; margin-left: 10px; vertical-align: 3px;
}

/* Hairline rows */
.sd-rows { border-top: 1px solid var(--line); }
.sd-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: 8px clamp(20px, 3vw, 48px); align-items: baseline;
  padding: clamp(18px, 2vw, 26px) 16px; margin: 0 -16px;
  border-bottom: 1px solid var(--line);
}
.sd-row h3 { font-size: clamp(20px, 1.8vw, 25px); }
.sd-row h3 a { text-decoration: none; }
.sd-row h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole row is the link */
.sd-row p { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.sd-row:hover { background: var(--sunk); }
.sd-row:hover h3, .sd-row:hover .sd-more { color: var(--link-hover); }
.sd-rows--stack .sd-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sd-rows--stack .sd-more { justify-self: start; margin-top: 6px; }

/* Stars */
.sd-stars { display: inline-flex; gap: 3px; }
.sd-stars svg { width: 19px; height: 19px; fill: var(--red); }

/* ---------------------------------------------------------------
   Header — bonded to the hero, so they read as one dark slab.
   One row, and it sticks, on every page and every screen.
   Over 1000px: name, menu, button. Under it: name, (button,) and
   a menu button that opens the same menu as a panel beneath.
   --------------------------------------------------------------- */
.sd-header {
  background: var(--ink); color: var(--on-ink);
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between;
  position: sticky; z-index: 50;       /* over the page and the pinned bar; under the cookie question */
  top: calc(var(--stick) - var(--header-h) + var(--wp-admin--admin-bar--position-offset, 0px));
  box-shadow: 0 1px 0 var(--ink-line);  /* a hairline, for when it sits over the dark footer */
}
.sd-header a:hover { color: var(--red-lt); }
.sd-header :focus-visible { outline-color: var(--red-lt); }
.sd-header__brand { display: flex; align-items: center; gap: 13px; text-decoration: none; padding: 18px var(--gutter); flex: 0 0 auto; }
/* The wordmark stacks the way the badge does: name over descriptor. */
.sd-wordmark { display: flex; flex-direction: column; gap: 2px; }
.sd-wordmark__name { font-family: var(--font-display); font-size: 21px; letter-spacing: 0.02em; line-height: 1; }
.sd-wordmark__name .accent { color: var(--red-lt); }
.sd-wordmark__sub {
  font-size: 10px; font-weight: 600; line-height: 1;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--on-ink-2);
}

.sd-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 2.4vw, 36px); padding: 0 clamp(16px, 3vw, 40px);
  /* It carries the popover attribute, for the phone. A browser gives such a thing a fixed position,
     a border and a white ground, and hides it until asked. On a wide screen it is none of that. */
  position: static; inset: auto; width: auto; height: auto; margin: 0; border: 0; overflow: visible; color: inherit; background: none;
}
/* The menu button: three bars that become a cross while the menu is open. Not on a wide screen. */
.sd-burger { display: none; }
.sd-burger__bars { position: relative; display: block; width: 26px; height: 3px; background: currentColor; transition: background-color 0.15s; }
.sd-burger__bars::before, .sd-burger__bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 3px; background: var(--on-ink); transition: transform 0.2s, top 0.2s;
}
.sd-burger__bars::before { top: -9px; }
.sd-burger__bars::after { top: 9px; }

/* Submenus. "Services" and "Areas" each have a panel of the pages under them. On a wide screen it
   drops down across the full width, on hover or on keyboard focus; the stylesheet does it, so there
   is no script. The group is as tall as the header, so the pointer never crosses a gap on its way
   down, and the panel waits a fifth of a second before going, so a diagonal move does not lose it. */
.sd-nav__group { align-self: stretch; display: flex; align-items: center; }
.sd-nav__parent::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 2px 3px 9px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: 0.75;
}
.sd-nav__toggle, .sd-nav__chev { display: none; }      /* the phone menu's arrow */
.sd-sub {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
  display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 3.6fr); gap: var(--gap); align-items: start;
  padding: clamp(26px, 2.6vw, 40px) var(--gutter) clamp(30px, 3vw, 46px);
  background: var(--ink); color: var(--on-ink); border-top: 3px solid var(--red); border-bottom: 1px solid var(--ink-line);
  box-shadow: 0 28px 44px rgba(0, 0, 0, 0.34);        /* the hairline is for when what is underneath is black too */
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.16s ease 0.2s, transform 0.16s ease 0.2s, visibility 0s linear 0.36s;
}
.sd-nav__group:hover > .sd-sub, .sd-nav__group:focus-within > .sd-sub {
  visibility: visible; opacity: 1; transform: none; transition-delay: 0s;
}
/* A panel that is open because the pointer is over it wins over one open because of focus elsewhere */
.sd-nav:has(.sd-nav__group:hover) .sd-nav__group:not(:hover):focus-within > .sd-sub { visibility: hidden; opacity: 0; }
.sd-nav .sd-sub a[aria-current] { box-shadow: none; }
.sd-nav .sd-sub__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.08; letter-spacing: 0.004em; }
.sd-sub__title::after { content: "\00a0\2192"; color: var(--red-lt); }
.sd-sub__note { max-width: 36ch; margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--on-ink-2); }
.sd-sub__note strong { display: block; margin-bottom: 2px; font-weight: 600; color: var(--on-ink); }
.sd-nav .sd-sub__note a { font-size: inherit; font-weight: 600; color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sd-sub__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(18px, 2.2vw, 36px); border-top: 1px solid var(--ink-line); }
.sd-sub__list a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 13px 0; border-bottom: 1px solid var(--ink-line); }
.sd-sub__art { flex: none; width: 60px; height: 60px; }
.sd-sub__art svg { width: 100%; height: 100%; }
.sd-sub__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sd-sub__name { font-weight: 600; line-height: 1.25; }
.sd-sub__price { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--on-ink-2); }
.sd-sub__list a[aria-current] .sd-sub__name { color: var(--red-lt); }
/* Areas: no drawings, so the names are the display type, three across */
.sd-sub--areas .sd-sub__list, .sd-sub--plain .sd-sub__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sd-sub--areas .sd-sub__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 1.9vw, 29px); line-height: 1.1; letter-spacing: 0.004em; }
.sd-sub--areas .sd-sub__list a { padding: 15px 0; }
.sd-sub--areas .sd-sub__list a::after { content: "\2192"; margin-left: auto; color: var(--red-lt); opacity: 0; transform: translateX(-6px); transition: opacity 0.15s, transform 0.15s; }
.sd-sub--areas .sd-sub__list a:hover::after, .sd-sub--areas .sd-sub__list a:focus-visible::after { opacity: 1; transform: none; }
.sd-nav a { font-size: 17px; font-weight: 500; text-decoration: none; }
.sd-nav a[aria-current] { box-shadow: 0 3px 0 var(--red); }

.sd-header__cta {
  background: var(--red); color: #FFF; text-decoration: none;
  display: flex; align-items: center; padding: 20px clamp(24px, 3vw, 44px);
  font-size: 17px; font-weight: 600; flex: 0 0 auto;
}
/* Two classes, on purpose. ".sd-header a:hover" above turns every header link red, and it outranks a
   single class: for a while the button's own words went red on its red ground when pointed at. */
.sd-header .sd-header__cta:hover { background: var(--red-ink); color: #FFF; }

.sd-mark { width: 44px; height: 44px; flex: 0 0 auto; display: block; }
.sd-header__brand:hover .sd-mark { color: var(--red-lt); }

/* ---------------------------------------------------------------
   Hero — words only
   --------------------------------------------------------------- */
.sd-hero { position: relative; overflow: hidden; }
.sd-hero__say {
  position: relative; z-index: 1;
  padding: clamp(44px, 5.6vw, 92px) var(--gutter);
  max-width: 66%;
}
.sd-hero h1 {
  font-size: clamp(33px, 4.9vw, 76px);
  line-height: 1.04;          /* 0.94 crowded the descenders into the next line */
  letter-spacing: 0.004em;    /* Anton is tight already; negative made it worse */
  max-width: 22ch;            /* room for the school's name to sit on one line */
  text-wrap: balance;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}
/* The name travels as one piece: it drops to its own line rather than splitting. */
.sd-hero h1 span { display: inline-block; }
.sd-hero__sub {
  font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6;
  color: var(--text-2); max-width: 60ch;
  margin-bottom: clamp(26px, 3vw, 36px);
}

/* The glyph — aria-hidden in the markup, gone below 900px */
.sd-hero__glyph {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: min(44%, 600px); pointer-events: none; user-select: none;
}
.sd-hero__glyph svg { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------
   Trust — the first lightening, straight after the hero
   --------------------------------------------------------------- */
.sd-trust {
  border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(18px, 3vw, 44px);
  padding: 18px var(--gutter);
  font-size: 16px; color: var(--text-2);
}
.sd-trust li { display: flex; align-items: center; gap: 10px; }
.sd-trust strong { color: var(--text); font-weight: 600; }
.sd-trust img { height: 24px; width: auto; }

/* ---------------------------------------------------------------
   Why choose us — rail, then four reasons under one heavy rule
   --------------------------------------------------------------- */
.sd-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.sd-point { padding: 24px 0 clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.sd-point:nth-child(-n+2) { border-top: 2px solid var(--text); }
.sd-point__n { display: block; font-family: var(--font-display); font-size: 20px; line-height: 1; letter-spacing: 0.02em; color: var(--red-ink); margin-bottom: 16px; }
.sd-point h3 { font-size: clamp(20px, 1.7vw, 24px); margin-bottom: 10px; }
.sd-point p { font-size: 17px; color: var(--text-2); }

/* ---------------------------------------------------------------
   Lessons — manual and automatic lead, each with its car
   --------------------------------------------------------------- */
.sd-leads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.sd-lead { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); }
.sd-lead__shot { position: relative; overflow: hidden; background: var(--sunk); }
/* --focus and --zoom come from the fleet entry, so each photograph is framed on its car */
.sd-lead__shot img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: var(--focus, 50% 50%);
  transform: scale(var(--zoom, 1)); transform-origin: var(--focus, 50% 50%); transition: transform 0.6s ease;
}
.sd-lead:hover .sd-lead__shot img { transform: scale(calc(var(--zoom, 1) * 1.03)); }
.sd-lead__body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.6vw, 38px); }
.sd-lead h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; letter-spacing: 0.004em; margin-bottom: 12px; }
.sd-lead h3 a { text-decoration: none; }
.sd-lead h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole block is the link */
.sd-lead p { font-size: 17px; color: var(--text-2); }
.sd-lead .sd-lead__foot {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px;
  margin-top: auto; padding-top: 24px;
}
.sd-lead__price { font-size: 17px; font-weight: 500; color: var(--text-2); }
.sd-lead__price strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 2.8vw, 40px); line-height: 1; color: var(--text); }
.sd-lead .sd-more { color: var(--text); }
.sd-lead:hover .sd-more, .sd-lead:hover h3 { color: var(--link-hover); }

.sd-lessons .sd-rows { margin-top: clamp(28px, 3.4vw, 48px); }
.sd-also { margin-top: 22px; font-size: 17px; color: var(--text-2); }
.sd-also a { color: var(--text); }
.sd-also a:hover { color: var(--link-hover); }

/* ---------------------------------------------------------------
   Fleet — one photograph edge to edge, the cars described beneath.
   .sd-car__label is the gearbox ("Manual"), and is all the heading a
   paragraph about the cars has: no car is named. It is an <h3> where it
   heads one of two, a <p> on a service page, where the section's own
   heading has already said it.
   --------------------------------------------------------------- */
.sd-fleet__strip { margin: 0; background: var(--sunk); }
.sd-fleet__strip img { width: 100%; aspect-ratio: 3 / 1; min-height: 230px; object-fit: cover; object-position: 50% 53%; }
.sd-cars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); row-gap: 32px; }
.sd-car { border-top: 2px solid var(--text); padding-top: 22px; }
/* Said twice so that it also outranks ".sd-lead h3" and ".sd-lead p", which would make it display type or body text */
.sd-car__label.sd-car__label {
  margin: 0 0 10px; font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.25;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-ink);
}
.sd-car__label + p { font-size: 17px; color: var(--text-2); }

/* ---------------------------------------------------------------
   Car gallery: one gearbox's cars, a photograph at a time

   Wherever a page shows "the manual car" it shows this: a row of
   photographs that scrolls sideways and stops on each. A phone swipes
   it; assets/gallery.js adds two arrows and a count for a desk, and
   they are hidden until it has. A photograph carries no name.
   How tall a photograph is, and how it is cropped, is still set by
   where the gallery sits (.sd-lead__shot img, .sd-vehicle__shot img).
   --------------------------------------------------------------- */
.sd-gallery { position: relative; }
.sd-gallery__track {
  display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.sd-gallery__track::-webkit-scrollbar { display: none; }
.sd-gallery__track:focus-visible { outline: 3px solid var(--red-ink); outline-offset: -3px; }
/* In a lesson block the whole block is a link, laid over it. A row that has to be swiped must sit above that. */
.sd-gallery[data-sd-gallery] .sd-gallery__track { position: relative; z-index: 1; }
.sd-gallery__slide { position: relative; flex: 0 0 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.sd-gallery__slide img { display: block; }
/* Who took a photograph, where its licence asks for that to be said */
.sd-gallery__credit { position: absolute; right: 0; top: 0; margin: 0; padding: 5px 10px; font-size: 13px; line-height: 1.35; color: #FFF; background: rgba(10, 10, 10, 0.78); }
.sd-gallery .sd-gallery__credit a { color: inherit; text-underline-offset: 2px; }
.sd-gallery__nav { position: absolute; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; margin: 0; background: var(--ink); color: var(--on-ink); }
.sd-gallery__nav[hidden] { display: none; }
.sd-gallery__btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  font: inherit; font-size: 20px; line-height: 1; color: inherit; background: none; border: 0; border-radius: 0; cursor: pointer;
}
.sd-gallery__btn:hover:not(:disabled) { background: var(--red); color: #FFF; }
.sd-gallery__btn:disabled { opacity: 0.35; cursor: default; }
.sd-gallery__btn:focus-visible { outline: 3px solid #FFF; outline-offset: -3px; }
.sd-gallery__count { min-width: 3.4em; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------
   Pricing — two panels, the number doing the talking
   --------------------------------------------------------------- */
.sd-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.sd-price {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red);
  padding: clamp(24px, 3vw, 44px);
}
.sd-price h3 { font-size: clamp(20px, 1.7vw, 24px); }
.sd-price__car { font-size: 16px; color: var(--text-2); margin-top: 4px; }
.sd-price__figure {
  display: flex; align-items: baseline; gap: 10px;
  margin: 22px 0; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.sd-price__figure strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 7.4vw, 112px); line-height: 0.95; }
.sd-price__figure span { font-size: 19px; font-weight: 500; color: var(--text-2); }
.sd-ticks { margin-bottom: 28px; }
.sd-ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 17px; line-height: 1.5; }
.sd-ticks li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 16px; height: 3px; background: var(--red); }
.sd-price .sd-btn { margin-top: auto; align-self: flex-start; }

/* ---------------------------------------------------------------
   Areas — a real map of the patch, then the places as type
   --------------------------------------------------------------- */
.sd-areas__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }

.sd-map { margin: 0; background: var(--panel); border: 1px solid var(--line); }
.sd-map svg { width: 100%; height: auto; }
.sd-map figcaption { font-size: 13px; line-height: 1.4; color: var(--text-3); padding: 8px 14px; border-top: 1px solid var(--line); }
.sd-map__road { fill: none; stroke: #DAD5CB; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sd-map__mway { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: butt; stroke-linejoin: round; }
.sd-map__lane { fill: none; stroke: #FFF; stroke-width: 1.5; stroke-dasharray: 8 8; }
.sd-map text { font-family: var(--font-body); paint-order: stroke; stroke: var(--panel); stroke-width: 5px; stroke-linejoin: round; }
.sd-map__area { text-decoration: none; }
.sd-map__area circle { fill: var(--red); stroke: var(--panel); stroke-width: 3; }
.sd-map__area text { font-size: 15px; font-weight: 600; fill: var(--text); }
.sd-map__area.is-top text { font-size: 19px; }
.sd-map__area:hover text { fill: var(--red-ink); }
.sd-map__city circle { fill: var(--panel); stroke: var(--text-3); stroke-width: 2.5; }
.sd-map__city text { font-size: 13px; font-weight: 500; fill: var(--text-3); text-anchor: middle; }
.sd-map__ref rect { fill: var(--ink); }
.sd-map__ref text { font-size: 12px; font-weight: 600; fill: #FFF; stroke: none; }

.sd-areas__top .sd-label { margin-bottom: 12px; }
.sd-areas__top .sd-rows { border-top: 2px solid var(--text); }

.sd-areas__more {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px var(--gap); align-items: start;
  margin-top: clamp(32px, 4vw, 56px); padding-top: 22px; border-top: 2px solid var(--text);
}
.sd-areas__more .sd-label { grid-column: 1 / -1; }
.sd-places {
  display: flex; flex-wrap: wrap; gap: 6px clamp(20px, 3vw, 44px);
  font-family: var(--font-display); font-size: clamp(25px, 2.7vw, 40px); line-height: 1.2; letter-spacing: 0.004em;
}
.sd-places a { text-decoration: none; }
.sd-areas__missing { font-size: 17px; color: var(--text-2); }
.sd-areas__missing strong { display: block; font-size: 19px; color: var(--text); margin-bottom: 4px; }
.sd-areas__missing a { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------
   Reviews — the score big, four reviews in full
   --------------------------------------------------------------- */
.sd-reviews__top {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px var(--gap); align-items: end;
  margin-bottom: clamp(30px, 3.8vw, 54px);
}
.sd-score { display: flex; align-items: center; gap: 20px; justify-self: end; }
.sd-score__n { font-family: var(--font-display); font-size: clamp(76px, 9.4vw, 148px); line-height: 0.86; }
.sd-score__of { display: flex; flex-direction: column; gap: 6px; font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--text-2); }

.sd-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--text); }
.sd-quote { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
.sd-quote:nth-child(odd) { padding-right: clamp(24px, 3.4vw, 56px); border-right: 1px solid var(--line); }
.sd-quote:nth-child(even) { padding-left: clamp(24px, 3.4vw, 56px); }
.sd-quote blockquote { margin: 16px 0 22px; }
.sd-quote blockquote p { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; }
.sd-quote__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: auto; font-size: 16px; color: var(--text-2); }
.sd-quote__by strong { font-size: 17px; font-weight: 600; color: var(--text); }
.sd-quote__by a { margin-left: auto; }
.sd-quote blockquote p + p { margin-top: 0.6em; }
/* Three reviews sit in a row instead of two by two */
.sd-quotes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sd-quotes--3 .sd-quote { padding-left: clamp(20px, 2.6vw, 40px); padding-right: clamp(20px, 2.6vw, 40px); border-right: 1px solid var(--line); }
.sd-quotes--3 .sd-quote:first-child { padding-left: 0; }
.sd-quotes--3 .sd-quote:last-child { padding-right: 0; border-right: 0; }
.sd-quotes--3 .sd-quote blockquote p { font-size: clamp(17px, 1.3vw, 19px); }
.sd-quotes--3 .sd-quote__by a { margin-left: 0; flex-basis: 100%; }
.sd-reviews__all { margin-top: 26px; }

/* ---------------------------------------------------------------
   Location pages

   Same components as the homepage wherever the content is the same
   kind of thing. Three pieces are their own: the hero's map, the
   two-column reading text, and the test centres band.
   --------------------------------------------------------------- */

/* Hero: the map of the patch where the homepage has the badge, this area picked out */
.sd-hero--place .sd-hero__say { max-width: 52%; }
.sd-hero__map {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: min(48%, 760px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%);
}

/* The map on ink */
.sd-map--ink { background: transparent; border: 0; }
.sd-map--ink .sd-map__road { stroke: #2C2C2C; }
.sd-map--ink .sd-map__mway { stroke: #4D4D4D; }
.sd-map--ink .sd-map__lane { stroke: var(--ink); }
.sd-map--ink text { stroke: var(--ink); }
.sd-map--ink .sd-map__area circle { fill: #8A8A8A; stroke: var(--ink); }
.sd-map--ink .sd-map__area text { font-size: 14px; font-weight: 500; fill: var(--on-ink-2); }
.sd-map--ink .sd-map__area:hover text { fill: #FFF; }
.sd-map--ink .sd-map__area.is-current circle { fill: var(--red); }
.sd-map--ink .sd-map__area.is-current .sd-map__ring { fill: none; stroke: var(--red); stroke-width: 2; opacity: 0.55; }
.sd-map--ink .sd-map__area.is-current text { font-size: 21px; font-weight: 600; fill: #FFF; }
.sd-map--ink .sd-map__city circle { fill: var(--ink); stroke: #8A8A8A; }
.sd-map--ink .sd-map__city text { fill: #9A948A; }
.sd-map--ink .sd-map__ref rect { fill: #4D4D4D; }
.sd-map--ink figcaption { border: 0; padding: 4px var(--gutter) 0 0; text-align: right; color: #9A948A; }
.sd-map--ink figcaption a:hover { color: #FFF; }

/* What driving here is like: reading text, two columns under one heavy rule */
.sd-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--gap);
  padding-top: 26px; border-top: 2px solid var(--text);
}
.sd-cols p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; color: var(--text-2); }
.sd-cols p:first-child { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--text); }
.sd-cols a, .sd-prose a {
  color: var(--text); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.sd-cols a:hover { color: var(--link-hover); }

/* Test centres: the location page's red band */
.sd-prose p { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; max-width: 62ch; }
.sd-prose p + p { margin-top: 1em; }
.sd-band--red .sd-prose a { text-decoration-color: #FFF; }

/* ---------------------------------------------------------------
   Service pages

   The shared sections again, plus five pieces of their own: the hero
   drawing, the route (or, on Pass Plus, the six modules), the
   either-or panels on the red band, the car, and the three lead areas.
   --------------------------------------------------------------- */

/* Hero: the service's own drawing, a little nearer and stronger than the homepage badge */
.sd-hero--service .sd-hero__say { max-width: 60%; }
.sd-hero--service .sd-hero__glyph { right: 4%; width: min(36%, 520px); }

/* What to expect: three paragraphs along a line with three markers. A route, not a list. */
.sd-route {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap);
  padding-top: 46px;
}
.sd-route::before {
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--text) 0 22px, transparent 22px 36px);
}
.sd-route p { position: relative; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.sd-route p:first-child { color: var(--text); }
.sd-route p::before {
  content: ""; position: absolute; left: 0; top: -46px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 7px var(--paper);
}
.sd-route a, .sd-lede--links a, .sd-prices__note a {
  color: var(--text); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.sd-route a:hover, .sd-lede--links a:hover, .sd-prices__note a:hover { color: var(--link-hover); }

/* Pass Plus: the six modules, white tiles divided by hairlines */
.sd-modules {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-top: 3px solid var(--red);
}
.sd-module { background: var(--panel); padding: clamp(22px, 2.4vw, 34px); }
.sd-module__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sd-module__n { font-family: var(--font-display); font-size: 22px; line-height: 1; letter-spacing: 0.02em; color: var(--red-ink); }
.sd-icon { width: 48px; height: 48px; flex: none; color: var(--text); }
.sd-module h3 { font-size: clamp(20px, 1.7vw, 23px); margin-bottom: 8px; }
.sd-module h3 + p { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.sd-about__outro { margin-top: 26px; max-width: 80ch; font-size: 17px; color: var(--text-2); }
.sd-head--wide .sd-lede + .sd-lede { grid-column: 2; margin-top: 12px; }
/* With a long standfirst beside it, the heading stays up under its label */
.sd-about .sd-head--wide { align-items: start; }

/* Which is right for you: two white panels on the red band, an "or" between them */
.sd-versus { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.sd-option { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 44px); }
.sd-option h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(25px, 2.4vw, 36px); line-height: 1.08; letter-spacing: 0.004em; margin-bottom: 12px; }
.sd-option > p:first-of-type { font-size: 17px; color: var(--text-2); margin-bottom: 22px; }
.sd-pros { list-style: none; margin: 0 0 26px; padding: 0; }
.sd-pros li { position: relative; padding-left: 36px; margin-bottom: 11px; font-size: 17px; line-height: 1.45; }
/* A filled square with a plus for an advantage, an outlined one with a minus for a drawback.
   Shape and fill tell them apart, not colour: on this palette red cannot mean "bad". */
.sd-pros li::before {
  content: "+"; position: absolute; left: 0; top: 1px; width: 23px; height: 23px;
  background: var(--ink); color: #FFF; font-weight: 600; font-size: 18px; line-height: 22px; text-align: center;
}
.sd-pros li.is-con { color: var(--text-2); }
.sd-pros li.is-con::before { content: "\2212"; background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1.5px #8A857C; }
.sd-option__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; color: var(--text-2); }
.sd-option__foot strong { display: block; font-size: 18px; font-weight: 600; color: var(--text); }
.sd-versus__or {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: #FFF; box-shadow: 0 0 0 7px var(--red);
  font-family: var(--font-display); font-size: 21px; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em;
}
.sd-versus__note { margin-top: 28px; max-width: 76ch; font-size: clamp(17px, 1.35vw, 19px); }
.sd-versus__note a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* The car: photograph one side, words and four facts the other.

   The words are as tall as the photograph: the label and the paragraph start
   level with its top edge, the four facts sit on its bottom edge, and whatever
   is spare lies between the two. They used to be centred against it, under a
   heading that named the cars; when the names came out (17 November) that left
   180px of nothing above the label on a wide screen. So the paragraph is set
   as a lead and the facts grow with the screen, to fill the height they have.
   Where the words are the taller (a laptop: the column is narrow, so the
   paragraph is long), the photograph is centred beside them, and is cut a
   little taller, 3:2, to meet them. On a very wide screen it stops growing
   at 640px high, or the words could never reach its foot. */
/* Its opener has no standfirst now (it was only "Most driving schools ... use basic hatchbacks", cut on
   17 November), so the heading has the row to itself: one line, not turned at 24ch with a word left over. */
.sd-vehicle .sd-head--wide h2:last-child { grid-column: 1 / -1; max-width: 40ch; text-wrap: balance; }
.sd-vehicle__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: stretch; }
.sd-vehicle--flip .sd-vehicle__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sd-vehicle--flip .sd-vehicle__shot { order: 2; }
.sd-vehicle__shot { position: relative; align-self: center; margin: 0; overflow: hidden; background: var(--sunk); border: 1px solid var(--line); }
.sd-vehicle__shot img {
  width: 100%; aspect-ratio: 16 / 10; max-height: 640px; object-fit: cover; object-position: var(--focus, 50% 50%);      /* wide, as in a lesson block: a photograph of a whole car loses its ends in anything squarer than 3:2 */
  transform: scale(var(--zoom, 1)); transform-origin: var(--focus, 50% 50%);
}
@media (max-width: 1500px) {
  .sd-vehicle__shot img { aspect-ratio: 3 / 2; }
}
.sd-vehicle__say { display: flex; flex-direction: column; }
.sd-vehicle__say .sd-car__label + p { margin-bottom: 28px; font-size: clamp(17px, 1.12vw, 23px); line-height: 1.65; }
.sd-specs {
  list-style: none; margin: auto 0 0; padding: 0; border-top: 2px solid var(--text);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px;
}
.sd-specs li { padding: clamp(15px, 1.2vw, 28px) 0 clamp(16px, 1.3vw, 30px); border-bottom: 1px solid var(--line); }
.sd-specs strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.5vw, 58px); line-height: 1.1; letter-spacing: 0.004em; }
.sd-specs span { font-size: clamp(16px, 1vw, 19px); color: var(--text-2); }

/* Pricing, as service pages need it: one panel or two, "from", by the course */
/* "From" sits on its own line above the number, and a long unit ("6-hour course") drops below it,
   so a four-figure price cannot push out of the panel. */
.sd-price__figure { flex-wrap: wrap; row-gap: 4px; }
.sd-price__figure .sd-price__from { flex-basis: 100%; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.sd-prices__note { grid-column: 1 / -1; margin-top: 6px; font-size: 17px; color: var(--text-2); }
.sd-prices--one .sd-prices__note { grid-column: auto; align-self: center; margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--text); }

/* The three areas a service page leads with */
.sd-tops {
  list-style: none; margin: 12px 0 0; padding: 0; border-top: 2px solid var(--text);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap);
}
.sd-top { position: relative; display: flex; flex-direction: column; padding: 22px 0 28px; border-bottom: 1px solid var(--line); }
.sd-top h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.1; letter-spacing: 0.004em; margin-bottom: 10px; }
.sd-top h3 a { text-decoration: none; }
.sd-top h3 a::after { content: ""; position: absolute; inset: 0; }
.sd-top p { font-size: 17px; line-height: 1.6; color: var(--text-2); margin-bottom: 18px; }
.sd-top .sd-more { margin-top: auto; align-self: flex-start; }
.sd-top:hover h3, .sd-top:hover .sd-more { color: var(--link-hover); }

/* ---------------------------------------------------------------
   Free guides — the single saturated moment
   --------------------------------------------------------------- */
/* The red ground is a modifier: the guides on the homepage, test centres on a location page.
   One per page. */
.sd-band--red, .sd-on-red {      /* .sd-on-red: the same ground on something smaller than a band, like a tile */
  background: var(--red); color: #FFF;
  --text: #FFF; --text-2: #FFF; --line: rgba(255, 255, 255, 0.36);
  --link-hover: #FFF; --kicker: #FFF;
}
.sd-band--red .sd-kicker::before { background: #FFF; }
.sd-band--red :focus-visible { outline-color: var(--ink); }
.sd-guides__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid #FFF; }
.sd-guide { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 36px) clamp(20px, 2.6vw, 40px) 4px 0; }
.sd-guide + .sd-guide { padding-left: clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--line); }
.sd-guide h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.14; letter-spacing: 0.004em; margin-bottom: 12px; }
.sd-guide h3 a { text-decoration: none; }
.sd-guide h3 a::after { content: ""; position: absolute; inset: 0; }
.sd-guide p { font-size: 17px; line-height: 1.6; margin-bottom: 22px; }
.sd-guide .sd-more { margin-top: auto; align-self: flex-start; border-bottom-color: #FFF; }
.sd-guide:hover h3 a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------------------------------------------------------------
   FAQ — native details, no script
   --------------------------------------------------------------- */
.sd-faq { border-top: 2px solid var(--text); }
.sd-faq__item { border-bottom: 1px solid var(--line); }
.sd-faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(18px, 2vw, 26px) 0;
}
.sd-faq__item summary::-webkit-details-marker { display: none; }
.sd-faq__item summary h3 { font-size: clamp(19px, 1.7vw, 24px); }
.sd-faq__item summary:hover h3 { color: var(--link-hover); }
/* plus when shut, minus when open: two red bars, one of which goes */
.sd-faq__item summary::after {
  content: ""; flex: 0 0 18px; height: 18px;
  background:
    linear-gradient(var(--red), var(--red)) center / 100% 3px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 3px 100% no-repeat;
}
.sd-faq__item[open] summary::after { background: linear-gradient(var(--red), var(--red)) center / 100% 3px no-repeat; }
.sd-faq__item > p { max-width: 70ch; padding: 0 42px clamp(22px, 2.4vw, 32px) 0; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.sd-faq__item > p a { color: var(--red-ink); font-weight: 600; }

/* ---------------------------------------------------------------
   Blog — the newest post large, two beside it
   --------------------------------------------------------------- */
.sd-posts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; gap: clamp(22px, 2.6vw, 36px) var(--gap); align-items: start; }
.sd-post { position: relative; }
.sd-post--lead { grid-row: 1 / span 2; }
.sd-post__shot { overflow: hidden; border: 1px solid var(--line); background: var(--sunk); }
.sd-post__shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sd-post__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; line-height: 1.4; color: var(--text-3); margin-bottom: 8px; }
.sd-post__meta span { font-weight: 600; color: var(--red-ink); }
.sd-post h3 { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3; }
.sd-post h3 a { text-decoration: none; }
.sd-post h3 a::after { content: ""; position: absolute; inset: 0; }
.sd-post:hover h3 { color: var(--link-hover); }
.sd-post--lead .sd-post__body { padding-top: 20px; }
.sd-post--lead h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.12; letter-spacing: 0.004em; max-width: 26ch; }
.sd-post:not(.sd-post--lead) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: start; }
.sd-post:not(.sd-post--lead) .sd-post__shot img { aspect-ratio: 4 / 3; }
.sd-post:not(.sd-post--lead) + .sd-post { padding-top: clamp(22px, 2.6vw, 36px); border-top: 1px solid var(--line); }
.sd-blog__guide { margin-top: clamp(28px, 3.4vw, 46px); padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------
   Blog — the article, and the lists of them
   --------------------------------------------------------------- */

/* Hero: headline and byline. Titles run long, so the type is a size down. */
.sd-hero--post .sd-hero__say { max-width: 1040px; padding-bottom: clamp(36px, 4.4vw, 68px); }
/* On a post the featured image is part of the header, not a picture placed on it.
   It fills the right-hand side from top to bottom and dissolves into the black
   towards the headline. A boxed image beside the title was tried first and read
   as two things sharing a row. */
.sd-hero--pictured { display: flex; align-items: center; min-height: clamp(340px, 27vw, 500px); }
.sd-hero--pictured .sd-hero__say { max-width: 56%; }
.sd-hero__shot { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; margin: 0; }
.sd-hero__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The dissolve: solid ink where the headline is, clear at the far edge, a little weight along the bottom */
.sd-hero__shot::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10, 10, 10, 0.92) 26%, rgba(10, 10, 10, 0.45) 58%, rgba(10, 10, 10, 0.08) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0) 34%);
}
.sd-hero--post h1 { font-size: clamp(30px, 3.9vw, 60px); line-height: 1.06; max-width: 26ch; margin-bottom: clamp(18px, 2vw, 26px); }
.sd-hero--post .sd-hero__sub { margin-bottom: 0; }
.sd-byline {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 16px; line-height: 1.5; color: var(--text-2);
}
.sd-byline li:not(:last-child)::after { content: "\00b7"; margin: 0 12px; color: var(--kicker); }
.sd-byline a { color: var(--text); font-weight: 600; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sd-byline time { color: var(--text); }

/* The article: contents on the left, text in the middle, a booking prompt on the right.

   Three columns that meet. The text column stops at a readable width; the two
   side columns share whatever is left, so on a very wide screen they widen and
   the text does not, and there is never a dead strip between the text and the
   column beside it. (The first version capped the text and pinned the sidebar
   to the far edge, which on a 1900px screen left 650px of nothing in between.)

   The contents come first in the HTML as well as on the left. */
.sd-article {
  display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 860px) minmax(230px, 1fr);
  column-gap: clamp(32px, 3.4vw, 56px); align-items: start;
}
/* A post with no contents list: text first, the prompt beside it */
.sd-article--plain { grid-template-columns: minmax(0, 860px) minmax(230px, 1fr); }
.sd-article__body { min-width: 0; max-width: 860px; }
.sd-article__toc, .sd-article__rail { position: sticky; top: calc(var(--stick) + 24px); max-height: calc(100vh - var(--stick) - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sd-article__back { margin-top: 30px; }

/* Contents.

   On a wide screen: an open list, with the section being read picked out as the
   page scrolls (assets/post.js sets aria-current; nothing here depends on a class).
   On a phone: a bar pinned to the top of the screen, shut until tapped. See the
   1000px rules at the foot of the file. */
.sd-toc { border-top: 3px solid var(--red); padding-top: 16px; }
.sd-toc__toggle { display: none; }
.sd-toc ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: toc; }
.sd-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.sd-toc a {
  display: grid; grid-template-columns: 2.1em minmax(0, 1fr); padding: 10px 10px 10px 12px;
  font-size: 16px; line-height: 1.4; text-decoration: none; color: var(--text-2);
  /* the marker's place is kept on every entry, so nothing shifts when it moves */
  box-shadow: inset 3px 0 0 transparent; transition: box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.sd-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); font-size: 15px; line-height: 1.5; color: var(--red-ink); }
.sd-toc a:hover { color: var(--text); }
/* The section being read: a red bar down its left edge, on white */
.sd-toc a[aria-current] { color: var(--text); background: var(--panel); box-shadow: inset 3px 0 0 var(--red); }

/* Booking prompt under the contents */
.sd-prompt { padding: 22px 22px 24px; background: var(--ink); color: var(--on-ink); display: grid; gap: 16px; justify-items: start; }
.sd-prompt__title { font-family: var(--font-display); font-size: 23px; line-height: 1.12; letter-spacing: 0.004em; }
.sd-prompt .sd-btn { padding: 13px 22px; font-size: 16px; }
.sd-prompt .sd-link { color: var(--on-ink); font-size: 16px; }
.sd-prompt .sd-link:hover { color: var(--red-lt); }

/* Article text. Whatever the editor produces: paragraphs, headings, lists, tables, quotes. */
.sd-text { font-size: 18px; line-height: 1.75; }
.sd-text > * + * { margin-top: 1.1em; }
.sd-text > p:first-child { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.65; }
.sd-text h2 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; margin-top: 1.7em; scroll-margin-top: 24px; }
.sd-text h3 { font-size: clamp(20px, 1.7vw, 24px); margin-top: 1.6em; scroll-margin-top: 24px; }
.sd-text h2 + *, .sd-text h3 + * { margin-top: 0.6em; }
.sd-text a { color: var(--red-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sd-text a:hover { color: var(--text); }
.sd-text strong, .sd-text b { font-weight: 600; }
.sd-text ul, .sd-text ol { padding-left: 1.3em; }
.sd-text li + li { margin-top: 0.45em; }
.sd-text li::marker { color: var(--red-ink); font-weight: 600; }
.sd-text blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--red); font-size: clamp(19px, 1.5vw, 21px); line-height: 1.6; }
.sd-text blockquote p + p { margin-top: 0.7em; }
.sd-text cite { display: block; margin-top: 8px; font-size: 16px; font-style: normal; color: var(--text-2); }
.sd-text hr { height: 3px; border: 0; margin: 2.2em 0; background: repeating-linear-gradient(90deg, var(--text) 0 22px, transparent 22px 36px); }
.sd-text img { height: auto; border: 1px solid var(--line); }

/* A table scrolls inside its own box rather than pushing the page sideways */
.sd-table { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--text); }
.sd-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.sd-table th, .sd-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sd-table th { font-weight: 600; background: var(--sunk); }
.sd-table tbody tr:last-child td { border-bottom: 0; }

/* Share: a row of square buttons under the article, above the author.
   Icons and labels in ink, no brand colours: the palette is the site's. */
.sd-share { margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 2px solid var(--text); }
.sd-share ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sd-share li[hidden] { display: none; }
.sd-share__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 0; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.sd-share__btn svg { width: 19px; height: 19px; flex: none; fill: currentColor; }
.sd-share__btn svg[fill="none"] { fill: none; }
.sd-share__btn:hover { background: var(--ink); border-color: var(--ink); color: #FFF; }
.sd-share + .sd-author { margin-top: clamp(28px, 3.4vw, 44px); }

/* About the author */
.sd-author { margin-top: clamp(40px, 5vw, 64px); padding: clamp(22px, 2.6vw, 36px); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.sd-author h2 { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.1; margin: 8px 0 12px; }
.sd-author p + p { margin-top: 14px; }
.sd-author h2 + p { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.sd-blog > .sd-author { max-width: 820px; }

/* Cards: three across, or one large with the rest beside and below it */
.sd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(22px, 2.6vw, 36px); }
.sd-cards .sd-post:not(.sd-post--lead) { display: block; padding-top: 0; border-top: 0; }
.sd-cards .sd-post:not(.sd-post--lead) .sd-post__shot { margin-bottom: 14px; }
.sd-cards .sd-post:not(.sd-post--lead) .sd-post__shot img { aspect-ratio: 16 / 9; }
.sd-cards .sd-post--lead { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: center; padding-bottom: clamp(28px, 3.4vw, 48px); border-bottom: 1px solid var(--line); }
.sd-cards .sd-post--lead .sd-post__body { padding-top: 0; }

/* Categories, as a line of links above the list */
.sd-cats { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: clamp(28px, 3.4vw, 46px); }
.sd-cats a { padding: 8px 16px; font-size: 16px; font-weight: 500; line-height: 1.3; text-decoration: none; background: var(--panel); border: 1px solid var(--line); }
.sd-cats a:hover { border-color: var(--text); color: var(--text); }
.sd-cats a[aria-current] { background: var(--ink); border-color: var(--ink); color: #FFF; }

/* Pages of posts */
.sd-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(36px, 4.4vw, 60px); padding-top: 24px; border-top: 2px solid var(--text); }
.sd-pager .page-numbers { min-width: 46px; padding: 10px 16px; font-size: 16px; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; background: var(--panel); border: 1px solid var(--line); }
.sd-pager a.page-numbers:hover { border-color: var(--text); color: var(--text); }
.sd-pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #FFF; }
.sd-pager .page-numbers.dots { background: none; border-color: transparent; }

/* ---------------------------------------------------------------
   Contact — the second dark moment, with the form as a white panel on it
   --------------------------------------------------------------- */
.sd-contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start;
  padding: var(--band) var(--gutter);
}
.sd-contact h2 { max-width: 17ch; margin-bottom: 20px; }
.sd-contact .sd-lede { margin-bottom: 30px; }
.sd-facts { margin: clamp(32px, 4vw, 52px) 0 0; border-top: 1px solid var(--line); }
.sd-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.sd-facts dt { color: var(--text-2); }
.sd-facts dd { margin: 0; overflow-wrap: anywhere; }
.sd-facts a { text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.sd-contact__form { padding: clamp(24px, 3.2vw, 48px); border-top: 4px solid var(--red); }
.sd-contact__form h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; margin-bottom: 22px; }

.sd-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; scroll-margin-top: 24px; }
.sd-field { grid-column: 1 / -1; }
.sd-field--name, .sd-field--email, .sd-field--phone, .sd-field--postcode { grid-column: span 1; }
.sd-field label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 600; line-height: 1.35; margin-bottom: 7px; }
.sd-field__opt { font-size: 14px; font-weight: 400; color: var(--text-3); }
.sd-field input, .sd-field select, .sd-field textarea {
  display: block; width: 100%; margin: 0;
  font: inherit; font-size: 17px; line-height: 1.4; color: var(--text);
  background: #FFF; border: 1px solid #8A857C; border-radius: 0; padding: 13px 14px;
  -webkit-appearance: none; appearance: none;
}
.sd-field textarea { resize: vertical; min-height: 112px; }
.sd-field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%2314120F' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 14px auto;
}
.sd-field ::placeholder { color: #6B655C; opacity: 1; }
.sd-field input:focus-visible, .sd-field select:focus-visible, .sd-field textarea:focus-visible { outline-offset: 0; border-color: var(--red-ink); }
.sd-form__send { grid-column: 1 / -1; justify-self: start; }
.sd-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sd-form__note { grid-column: 1 / -1; background: var(--ink); color: #FFF; padding: 14px 18px; font-size: 17px; font-weight: 500; line-height: 1.5; }
.sd-form__note--bad { background: #FFF; color: var(--red-ink); border: 2px solid var(--red-ink); }

/* ---------------------------------------------------------------
   Footer — link columns under the contact slab
   --------------------------------------------------------------- */
.sd-footer { padding: 0 var(--gutter); border-top: 1px solid var(--ink-line); }
.sd-footer__top {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2.4fr) minmax(0, 2.4fr) minmax(0, 3.2fr); gap: clamp(28px, 4vw, 64px);
  padding: clamp(40px, 5vw, 72px) 0;
}
.sd-footer__name { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; color: var(--on-ink); }
.sd-footer__brand > p { font-size: 17px; color: var(--on-ink-2); max-width: 38ch; }
.sd-footer__social { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 20px 0 0; padding: 0; font-size: 17px; }
.sd-footer__title { font-size: 17px; font-weight: 600; color: var(--on-ink); margin-bottom: 16px; }
.sd-footer__col ul { list-style: none; margin: 0; padding: 0; }
.sd-footer__col li { margin-bottom: 10px; font-size: 16px; line-height: 1.45; color: var(--on-ink-2); overflow-wrap: anywhere; }
.sd-footer__col a, .sd-footer__social a, .sd-footer__legal a { text-decoration: none; color: var(--on-ink-2); }
.sd-footer__col a:hover, .sd-footer__social a:hover, .sd-footer__legal a:hover { color: var(--red-lt); }
.sd-footer__col a.sd-link { color: var(--on-ink); text-decoration: underline; }
.sd-footer address { font-style: normal; }
.sd-lane { height: 4px; background: repeating-linear-gradient(90deg, #FFF 0 44px, transparent 44px 88px); opacity: 0.16; }
.sd-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 22px 0; font-size: 15px; color: var(--on-ink-2); }
/* "Cookie settings" is a button, because it does something rather than goes somewhere */
.sd-footer__legal button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sd-footer__legal button:hover { color: var(--red-lt); }

/* Call and book, pinned on a phone. Off by default. */
.sd-bar { display: none; }

/* ---------------------------------------------------------------
   WhatsApp — a pill in the bottom corner on a desktop

   The one rounded shape and the one colour that are not the site's:
   both are what make it read as WhatsApp at a glance.
   --------------------------------------------------------------- */
.sd-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 45;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px 13px 18px; border-radius: 999px;
  background: var(--wa); color: var(--ink); text-decoration: none;
  font-size: 17px; font-weight: 600; line-height: 1.2;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background-color 0.15s ease, right 0.25s ease;
}
.sd-wa svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.sd-wa:hover { background: #1FBF5C; color: var(--ink); transform: translateY(-2px); }
.sd-wa:focus-visible { outline: 3px solid #FFF; outline-offset: 0; box-shadow: 0 0 0 6px var(--ink); }

/* ---------------------------------------------------------------
   Cookie consent — shown by the script to anyone who has not answered
   --------------------------------------------------------------- */
/* Bottom right, not bottom left: on the left it sat on top of the hero's booking button. */
.sd-consent {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: min(430px, calc(100vw - 48px));
  padding: 20px 24px 24px;
  background: var(--ink); color: var(--on-ink);
  border: 1px solid var(--ink-line); border-top: 3px solid var(--red);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3);
}
.sd-consent[hidden] { display: none; }
/* While the question is up, the WhatsApp pill stands to its left; it takes the corner once answered. */
.sd-consent:not([hidden]) ~ .sd-wa { right: calc(24px + min(430px, 100vw - 48px) + 16px); }
.sd-consent__title { font-family: var(--font-display); font-size: 22px; line-height: 1.1; letter-spacing: 0.01em; margin-bottom: 8px; }
.sd-consent p + p { font-size: 16px; line-height: 1.55; color: var(--on-ink-2); }
.sd-consent a { color: var(--on-ink); text-underline-offset: 3px; white-space: nowrap; }
.sd-consent a:hover { color: var(--red-lt); }
.sd-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
/* Two identical buttons, on purpose: refusing has to be as easy as accepting. */
.sd-consent__actions button {
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; padding: 12px 16px;
  background: var(--on-ink); color: var(--ink); border: 1px solid var(--on-ink); border-radius: 0; cursor: pointer;
}
.sd-consent__actions button:hover { background: transparent; color: var(--on-ink); }
.sd-consent :focus-visible { outline-color: var(--red-lt); }

/* ---------------------------------------------------------------
   Overview pages: Areas We Cover, Our Driving Services

   Index pages. The entries are the headlines, so a section's own
   heading is set small, as a label. Both pages end their index on
   a red tile: the answer for whoever did not find what they wanted.
   --------------------------------------------------------------- */

/* A section heading set as a label. Still the <h2>. */
h2.sd-kicker { font-family: var(--font-body); line-height: 1.65; margin-bottom: 20px; }

/* Areas hero: the whole patch with every area lit, and larger than on a location page */
.sd-hero--atlas { display: flex; align-items: center; min-height: clamp(420px, 33vw, 620px); }
.sd-hero--atlas .sd-hero__say { max-width: 50%; }
.sd-hero--atlas .sd-hero__map { width: min(54%, 960px); }
.sd-map--all .sd-map__area circle { fill: var(--red); }
.sd-map--all .sd-map__area text { font-size: 16px; font-weight: 600; fill: #FFF; }
.sd-map--all .sd-map__area.is-top text { font-size: 21px; }
.sd-map--all .sd-map__area:hover text { fill: var(--red-lt); }

/* The three areas the page leads with: the names are the display type */
.sd-dests__list {
  list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sd-dest {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 38px) clamp(20px, 2.8vw, 48px) clamp(26px, 2.8vw, 42px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sd-dest:first-child { padding-left: 0; }
.sd-dest:last-child { padding-right: 0; border-right: 0; }
.sd-dest h3 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 5.2vw, 96px);
  line-height: 1; letter-spacing: 0.004em; margin-bottom: clamp(14px, 1.5vw, 24px);
}
.sd-dest h3 a { text-decoration: none; }
.sd-dest h3 a::after { content: ""; position: absolute; inset: 0; }
.sd-dest p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--text-2); }
.sd-dest h3 + p { margin-bottom: 18px; }
/* Pinned to the foot of the column, so the three line up whatever the paragraph above runs to */
.sd-dest .sd-dest__centres { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text); }
.sd-dest__centres .sd-label { display: block; }
.sd-dest .sd-more { margin-top: 22px; align-self: flex-start; }
.sd-dest:hover h3, .sd-dest:hover .sd-more { color: var(--link-hover); }

/* The sheet: white tiles divided by hairlines under one heavy rule */
.sd-sheet {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-top: 2px solid var(--text);
}
.sd-cell { position: relative; display: flex; flex-direction: column; background: var(--panel); }
.sd-cell__body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.2vw, 34px); }
.sd-cell h2, .sd-cell h3, .sd-cell__title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2vw, 32px);
  line-height: 1.1; letter-spacing: 0.004em; margin-bottom: 10px; text-wrap: balance;
}
.sd-cell h2 a, .sd-cell h3 a { text-decoration: none; }
.sd-cell h2 a::after, .sd-cell h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* the whole tile is the link */
.sd-cell p { font-size: clamp(17px, 1.2vw, 19px); line-height: 1.6; color: var(--text-2); }
.sd-cell .sd-cell__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 22px; }
.sd-cell__price { font-family: var(--font-display); font-weight: 400; font-size: clamp(21px, 1.6vw, 27px); line-height: 1; letter-spacing: 0.01em; color: var(--text); }
.sd-go {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; margin-left: auto;
  border: 1px solid var(--line); font-size: 20px; line-height: 1; color: var(--text);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.sd-cell:hover .sd-go { background: var(--red); border-color: var(--red); color: #FFF; }
.sd-cell:hover h2, .sd-cell:hover h3 { color: var(--link-hover); }

/* The red tile */
.sd-cell--ask { background: var(--red); }
.sd-cell--ask a:not(.sd-btn) { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sd-sheet--areas .sd-cell--ask { grid-column: span 2; }
.sd-sheet--areas .sd-cell--ask .sd-cell__body { justify-content: center; }
.sd-sheet--areas .sd-cell__title { font-size: clamp(27px, 2.5vw, 40px); }
.sd-sheet--areas .sd-cell--ask p + p { font-size: clamp(17px, 1.3vw, 19px); max-width: 52ch; }
.sd-cell__actions { margin-top: auto; padding-top: 22px; }
.sd-cell__actions .sd-btn { flex: 1; padding-top: 12px; padding-bottom: 12px; }
.sd-btn--light { background: #FFF; color: var(--ink); border-color: #FFF; }
.sd-btn--light:hover { background: var(--ink); color: #FFF; border-color: var(--ink); }

/* Services hero: the junction sign, smaller than a service's own drawing because this hero is shorter */
.sd-hero--overview .sd-hero__glyph { right: 6%; width: min(27%, 400px); }

/* A service tile: its drawing on an ink plate, the one from its own page's hero */
.sd-svc__plate { position: relative; aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.sd-svc__plate svg {
  position: absolute; top: 7%; left: 50%; height: 86%; width: auto; max-width: none;
  transform: translateX(-50%); transition: transform 0.35s ease;
}
.sd-svc:hover .sd-svc__plate svg { transform: translateX(-50%) scale(1.06); }

/* ---------------------------------------------------------------
   Why us, Reviews, Contact
   --------------------------------------------------------------- */

/* A hero whose right-hand side is a figure, not a drawing: the rating, or the years.
   Unlike a drawing it is content, so on a phone it stays, under the words. */
.sd-hero--figure { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--gap); }
.sd-hero--figure .sd-hero__say { max-width: none; padding-right: 0; }
.sd-hero--figure h1 { font-size: clamp(32px, 4.2vw, 68px); }
.sd-hero__figure { padding: clamp(36px, 4vw, 64px) var(--gutter) clamp(36px, 4vw, 64px) 0; }
.sd-figure { display: flex; align-items: flex-end; gap: clamp(14px, 1.6vw, 24px); }
.sd-figure__n { font-family: var(--font-display); font-weight: 400; font-size: clamp(120px, 15vw, 290px); line-height: 0.82; }
.sd-figure__n em { font-style: normal; color: var(--red-lt); }
.sd-figure__of {
  display: flex; flex-direction: column; gap: 8px; max-width: 9ch; padding-bottom: 0.5em;
  font-size: clamp(17px, 1.4vw, 21px); font-weight: 500; line-height: 1.25; color: var(--text-2);
}
.sd-figure__note { margin-top: 22px; font-size: clamp(17px, 1.35vw, 20px); color: var(--text-2); }
.sd-figure__note strong { font-weight: 600; color: var(--text); }
.sd-hero__figure .sd-btn { margin-top: 20px; }
.sd-figure__list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.sd-figure__list li {
  display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 1.3vw, 19px); font-weight: 600;
}
.sd-figure__list li::before { content: ""; flex: 0 0 16px; height: 3px; background: var(--red); }

/* Reviews: every one of them, in columns, with buttons that narrow them down.
   The buttons are radio inputs and :has() does the narrowing, so there is no script.
   A browser without :has() is not shown the buttons and shows every review. */
.sd-filter { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0 0 clamp(20px, 2.4vw, 30px); padding: 0; border: 0; }
.sd-filter input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sd-filter label {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border: 1px solid var(--text);
  font-size: 16px; font-weight: 600; line-height: 1.3; cursor: pointer;
}
.sd-filter label span { font-size: 14px; font-weight: 500; color: var(--text-3); }
.sd-filter label:hover { background: var(--sunk); }
.sd-filter input:checked + label { background: var(--ink); border-color: var(--ink); color: #FFF; }
.sd-filter input:checked + label span { color: var(--on-ink-2); }
.sd-filter input:focus-visible + label { outline: 3px solid var(--red-ink); outline-offset: 3px; }
@supports not selector(:has(a)) { .sd-filter { display: none; } }

.sd-wall:has(#sd-show-first-time:checked) .sd-quote:not([data-themes~="first-time"]),
.sd-wall:has(#sd-show-nervous:checked) .sd-quote:not([data-themes~="nervous"]),
.sd-wall:has(#sd-show-switched:checked) .sd-quote:not([data-themes~="switched"]),
.sd-wall:has(#sd-show-gurps:checked) .sd-quote:not([data-about="gurps"]),
.sd-wall:has(#sd-show-amarjit:checked) .sd-quote:not([data-about="amarjit"]) { display: none; }

.sd-wall__list { list-style: none; margin: 0; padding: 0; columns: 4; column-gap: 20px; }
.sd-wall__list .sd-quote {
  --pad: clamp(20px, 2vw, 30px);
  break-inside: avoid; margin: 0 0 20px; padding: var(--pad);
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--text);
}

/* A photograph the reviewer attached to their review, shown with it wherever the review is shown.
   In a card on the reviews page it runs to the card's edges; elsewhere it sits above the words. */
.sd-quote__photo { display: block; width: 100%; max-width: 440px; height: auto; margin-bottom: 18px; background: var(--sunk); }
.sd-wall__list .sd-quote__photo { width: calc(100% + 2 * var(--pad)); max-width: none; margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 20px; }
.sd-team .sd-quote--pull .sd-quote__photo { max-width: 380px; }

/* Passes: learners with their certificates, in a strip that scrolls sideways.
   Each photograph is whole and its own shape; the strip is one height. No script. */
.sd-passes { position: relative; padding-top: clamp(30px, 3.6vw, 52px); }
.sd-passes .sd-kicker { min-height: 44px; margin: 0 var(--gutter) 16px; padding-right: 112px; }      /* room for the two arrows */
.sd-passes__track {
  list-style: none; margin: 0; padding: 0 var(--gutter) 14px; display: flex; gap: 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--text) transparent;
}
.sd-passes__track li { flex: none; scroll-snap-align: start; background: var(--sunk); }
.sd-passes__track img { display: block; width: auto; max-width: none; height: clamp(240px, 22vw, 380px); }
.sd-passes__track:focus-visible { outline-offset: -3px; }

/* Arrows, in browsers that can draw scroll buttons from CSS alone. Everywhere else these
   rules are ignored and the strip is scrolled by swipe, trackpad, keys or its scrollbar. */
.sd-passes__track::scroll-button(left) { content: "\2190" / "Earlier photographs"; right: calc(var(--gutter) + 52px); }
.sd-passes__track::scroll-button(right) { content: "\2192" / "More photographs"; right: var(--gutter); }
.sd-passes__track::scroll-button(*) {
  position: absolute; top: clamp(30px, 3.6vw, 52px); display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: var(--paper); color: var(--text); border: 1px solid var(--text); border-radius: 0; cursor: pointer;
  font: 600 20px/1 var(--font-body);
}
.sd-passes__track::scroll-button(*):hover { background: var(--red); border-color: var(--red); color: #FFF; }
.sd-passes__track::scroll-button(*):disabled { opacity: 0.3; cursor: default; background: var(--paper); border-color: var(--text); color: var(--text); }
.sd-passes__track::scroll-button(*):focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; }
.sd-wall__list .sd-quote blockquote { margin: 14px 0 18px; }
.sd-wall__list .sd-quote blockquote p { font-size: 17px; line-height: 1.6; }
.sd-wall__list .sd-quote__by a { margin-left: 0; flex-basis: 100%; }
.sd-wall__more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(14px, 2vw, 26px); }
/* "Show all" is for a phone, where fifty reviews in one column is a very long page. See the phone rules. */
.sd-wall__toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sd-wall__expand { display: none; cursor: pointer; border-color: var(--text); }
.sd-wall__expand:hover { background: var(--sunk); color: var(--text); }
.sd-wall__toggle:focus-visible + .sd-wall__more .sd-wall__expand { outline: 3px solid var(--red-ink); outline-offset: 3px; }
.sd-btn--ink { background: var(--ink); color: #FFF; border-color: var(--ink); }
.sd-btn--ink:hover { background: var(--red); border-color: var(--red); color: #FFF; }

/* Three tiles where the services page has eight */
.sd-sheet--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* The nine areas as large type under a rule, and the links some pages put beneath them */
/* Inline, not flex, so the lines can be balanced: nine names as five and four, not eight and one */
.sd-places--ruled { display: block; padding-top: 22px; border-top: 2px solid var(--text); text-wrap: balance; }
.sd-places--ruled li { display: inline-block; margin-right: clamp(18px, 2.6vw, 40px); }
.sd-places--ruled li:last-child { margin-right: 0; }
.sd-unsure {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px;
  margin-top: clamp(26px, 3vw, 40px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 17px;
}
.sd-unsure p { font-weight: 600; }
.sd-unsure ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Why us: the instructors, each with a learner's review of him set into the text */
.sd-team__body > p { max-width: 68ch; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.7; color: var(--text-2); }
.sd-team__body > p:first-child { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; color: var(--text); }
.sd-team__body > p + p { margin-top: 1em; }
.sd-team .sd-quote--pull {
  max-width: 68ch; margin: clamp(26px, 3vw, 40px) 0; padding: 2px 0 2px clamp(20px, 2.4vw, 32px);
  border: 0; border-left: 3px solid var(--red);
}
.sd-team .sd-quote--pull blockquote { margin: 12px 0 14px; }
.sd-team .sd-quote--pull blockquote p { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--text); }
.sd-team .sd-quote--pull .sd-quote__by a { margin-left: 0; }
/* A block whose link is at its foot rather than on its heading: the link still covers all of it */
.sd-more--all::before { content: ""; position: absolute; inset: 0; }

/* Six reasons: the page's red band, as a sheet of six */
.sd-six .sd-head { margin-bottom: clamp(26px, 3.2vw, 44px); }
.sd-six .sd-head h2 { max-width: 26ch; }
.sd-six__list {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-top: 2px solid #FFF;
}
.sd-six__list li { padding: clamp(22px, 2.6vw, 38px); background: var(--red); }
.sd-six__n { display: block; margin-bottom: 16px; font-family: var(--font-display); font-size: 20px; line-height: 1; letter-spacing: 0.02em; }
.sd-six__list h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(23px, 2.1vw, 31px); line-height: 1.12; letter-spacing: 0.004em; margin-bottom: 10px; }
.sd-six__list p { font-size: 17px; line-height: 1.6; }

/* Every service and what it costs, as a list */
.sd-pricelist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.sd-pricelist li {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  margin: 0 -16px; padding: clamp(13px, 1.3vw, 18px) 16px; border-bottom: 1px solid var(--line);
}
.sd-pricelist a { font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: 0.004em; text-decoration: none; }
.sd-pricelist a::after { content: ""; position: absolute; inset: 0; }
.sd-pricelist span { font-size: 17px; font-weight: 600; white-space: nowrap; color: var(--text-2); }
.sd-pricelist li:hover { background: var(--sunk); }
.sd-pricelist li:hover a { color: var(--link-hover); }
.sd-pricelist__all a { font-family: var(--font-body); font-size: 18px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Contact: the hero is the contact section, form and all */
/* Three pieces: the words, the form, and what happens next. Wide: words over next, form beside both.
   Narrow: words, form, next, so nothing stands between the visitor and the form. */
.sd-hero--form {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "say form" "next form"; column-gap: var(--gap); align-items: start; padding-right: var(--gutter);
}
.sd-hero--form .sd-hero__say { grid-area: say; max-width: none; padding-right: 0; padding-bottom: clamp(30px, 3.4vw, 48px); }
.sd-hero--form .sd-contact__form { grid-area: form; margin: clamp(32px, 4vw, 64px) 0; }
.sd-hero__next { grid-area: next; padding: 0 0 clamp(40px, 5vw, 72px) var(--gutter); }
.sd-hero__next h2 { margin-bottom: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: clamp(22px, 2vw, 30px); line-height: 1.12; }
.sd-contact__form h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; margin-bottom: 10px; }
.sd-contact__intro { margin-bottom: 24px; font-size: 17px; color: var(--text-2); }

/* What happens next: three numbered stops along a line */
.sd-steps {
  position: relative; list-style: none; margin: 0; padding: 0; counter-reset: sd-step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap);
}
.sd-steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--text) 0 22px, transparent 22px 36px);
}
.sd-steps li { position: relative; padding-top: 72px; counter-increment: sd-step; }
.sd-steps li::before {
  content: counter(sd-step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 45px; height: 45px; border-radius: 50%; background: var(--red); color: #FFF; box-shadow: 0 0 0 8px var(--paper);
  font-family: var(--font-display); font-size: 22px; line-height: 1;
}
.sd-steps h3 { font-size: clamp(20px, 1.7vw, 24px); margin-bottom: 8px; }
.sd-steps p { font-size: 17px; line-height: 1.65; color: var(--text-2); }
/* Down the page instead of along a line: number on the left, words beside it */
.sd-steps--stack { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.sd-steps--stack::before { display: none; }
.sd-steps--stack li { padding: 2px 0 0 64px; }
.sd-steps--stack li::before { box-shadow: none; }

/* Six short reasons in two columns, on the red band */
.sd-ticks--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); margin: 0; border-top: 2px solid #FFF; }
.sd-ticks--pair li { margin: 0; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.35vw, 20px); font-weight: 500; }
.sd-ticks--pair li::before { top: calc(16px + 0.7em); }
.sd-band--red .sd-ticks li::before { background: #FFF; }

/* Phone, email, address: three columns under one rule */
.sd-reach { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--text); }
.sd-reach li {
  padding: clamp(20px, 2.2vw, 30px) clamp(20px, 2.6vw, 40px) clamp(22px, 2.4vw, 34px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sd-reach li:first-child { padding-left: 0; }
.sd-reach li:last-child { padding-right: 0; border-right: 0; }
.sd-reach h3 { margin-bottom: 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.sd-reach__big {
  display: inline-block; margin-bottom: 12px; overflow-wrap: anywhere; text-decoration: none;
  font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 52px); line-height: 1.05; letter-spacing: 0.004em;
}
.sd-reach__big--long { font-size: clamp(17px, 1.45vw, 28px); }
.sd-reach p { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.sd-reach address { font-style: normal; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; }

/* ---------------------------------------------------------------
   Test centre pages

   Pricing, reviews and the FAQ are the shared sections. The rest is
   this page's own: the wider map in the hero, four facts, the pass
   rates as a table with bars, the road signs, the faults, and three
   steps on the red band.
   --------------------------------------------------------------- */

/* Hero: the test centres map. It is taller than the areas map, so it is set a little narrower. */
.sd-hero--centre .sd-hero__map { width: min(45%, 720px); }
.sd-map--centres .sd-map__road { stroke-width: 2.4; }
.sd-map--centres .sd-map__mway { stroke-width: 7; }
.sd-map--centres .sd-map__city text { font-size: 12px; }
/* An area is a dot. The ones whose learners use this centre are lit, and joined to it. */
.sd-map--centres .sd-map__area circle { fill: #5A5A5A; stroke-width: 2.5; }
.sd-map--centres .sd-map__area text { font-size: 12.5px; fill: #8F897E; }
.sd-map--centres .sd-map__area.is-feed circle { fill: #FFF; }
.sd-map--centres .sd-map__area.is-feed text { font-size: 16px; font-weight: 600; fill: #FFF; }
.sd-map__link { fill: none; stroke: var(--red-lt); stroke-width: 2; stroke-dasharray: 7 7; }
/* A test centre is a square, so it is not taken for an area. This page's is red. */
.sd-map__centre { text-decoration: none; }
.sd-map__centre rect { fill: var(--ink); stroke: #8A8A8A; stroke-width: 2; }
.sd-map__centre text { font-size: 12.5px; font-weight: 500; fill: #9A948A; }
.sd-map__centre:hover text { fill: #FFF; }
.sd-map__centre.is-current rect { fill: var(--red); stroke: var(--ink); stroke-width: 3; }
.sd-map__centre.is-current .sd-map__ring { fill: none; stroke: var(--red); stroke-width: 2; opacity: 0.55; }
.sd-map__centre.is-current text { font-size: 20px; font-weight: 600; fill: #FFF; }

/* At a glance: four facts, two by two, under one heavy rule */
.sd-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.sd-fact { padding: 22px 0 clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.sd-fact:nth-child(-n+2) { border-top: 2px solid var(--text); }
.sd-fact h3 { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.sd-fact p { font-size: 17px; line-height: 1.65; color: var(--text-2); }
/* The address and the pass rate: the first line is the display type, the figure in it larger still */
.sd-fact__lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 8px; }
.sd-fact__lead b, .sd-fact__lead strong { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: 0.004em; color: var(--text); }
.sd-fact__lead b { font-size: clamp(26px, 2.3vw, 38px); }
.sd-fact__lead strong { font-size: clamp(46px, 4.2vw, 68px); line-height: 0.95; }
.sd-fact .sd-more { display: inline-block; margin-top: 16px; }
.sd-fact .sd-more:hover { color: var(--link-hover); }

/* Pass rates: reading text, and beside it the table with a bar next to each figure */
.sd-rates { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap); align-items: start; }
.sd-rates__say .sd-head { margin-bottom: clamp(22px, 2.6vw, 34px); }
.sd-rates__say .sd-head h2 { max-width: 22ch; }
.sd-rates__say > p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; color: var(--text-2); max-width: 64ch; }
.sd-rates__say > p + p { margin-top: 1em; }
.sd-rates__say > p:first-of-type { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--text); }
.sd-rates__say > p a {
  color: var(--text); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.sd-rates__say > p a:hover { color: var(--link-hover); }
.sd-chart {
  margin: 0; position: sticky; top: calc(var(--stick) + 32px);
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--text);
  padding: clamp(14px, 1.6vw, 24px) clamp(16px, 2vw, 32px) clamp(16px, 1.8vw, 26px);
}
.sd-chart__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sd-chart__table th, .sd-chart__table td { padding: 15px 0; text-align: left; vertical-align: middle; font-size: 17px; line-height: 1.35; border-bottom: 1px solid var(--line); }
.sd-chart__table thead th { padding: 6px 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.sd-chart__table tbody tr:last-child > * { border-bottom: 0; }
.sd-chart__table tbody th { font-weight: 500; padding-right: 16px; white-space: nowrap; }
.sd-chart__table tr > :last-child { text-align: right; white-space: nowrap; padding-left: 14px; }
.sd-chart__table thead tr > :last-child { white-space: normal; min-width: 7.6em; }      /* two lines, not three */
.sd-chart__diff { color: var(--text-2); }
.sd-chart__rate { width: 99%; white-space: nowrap; }      /* whatever the names and the differences leave */
.sd-chart__n { display: inline-block; width: 3.9em; font-weight: 600; }
/* The bar. Its track is the whole hundred; the line through every row is the national average. */
.sd-chart__bar { position: relative; display: inline-block; vertical-align: middle; width: calc(100% - 4.4em); height: 14px; background: var(--sunk); }
.sd-chart__bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--rate) * 1%); background: #8A857B; }
.sd-chart__bar::after { content: ""; position: absolute; left: calc(var(--avg) * 1%); top: -24px; bottom: -24px; width: 2px; margin-left: -1px; background: var(--text); }
.sd-chart__table .is-current th { font-weight: 700; }
.sd-chart__table .is-current .sd-chart__bar::before { background: var(--red); }
.sd-chart__table .is-average .sd-chart__bar::before { background: var(--text); }
.sd-chart__table tbody tr:first-child .sd-chart__bar::after { top: -14px; }
.sd-chart__table tbody tr:last-child .sd-chart__bar::after { bottom: -8px; }
.sd-chart figcaption { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--text-3); }

/* On the routes: four white tiles, each with the road sign you meet it by */
.sd-signs {
  list-style: none; margin: clamp(36px, 4.4vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-top: 3px solid var(--text);
}
.sd-signs__item { background: var(--panel); padding: clamp(22px, 2.4vw, 34px); }
.sd-sign { width: clamp(64px, 5.2vw, 84px); margin-bottom: clamp(18px, 2vw, 26px); }
.sd-signs__item h3 { font-size: clamp(20px, 1.7vw, 23px); margin-bottom: 8px; }
.sd-signs__item p { font-size: 17px; line-height: 1.6; color: var(--text-2); }

/* Why learners fail here: each reason beside a box with a stroke through it, the way a fault is marked on the sheet */
.sd-faults { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.sd-fault { position: relative; padding: clamp(20px, 2.2vw, 28px) 0 clamp(22px, 2.4vw, 30px) 54px; border-bottom: 1px solid var(--line); }
.sd-fault::before {
  content: ""; position: absolute; left: 0; top: clamp(21px, 2.3vw, 29px); width: 30px; height: 30px; border: 2px solid var(--text);
  background: linear-gradient(to top right, transparent calc(50% - 1.7px), var(--red) calc(50% - 1.7px), var(--red) calc(50% + 1.7px), transparent calc(50% + 1.7px));
}
.sd-fault h3 { font-size: clamp(20px, 1.7vw, 24px); margin-bottom: 8px; }
.sd-fault p { font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 68ch; }

/* How the school prepares you: the red band. Three steps, the numbers large. */
.sd-prep__steps {
  list-style: none; margin: 0; padding: 0; counter-reset: sd-prep;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid #FFF;
}
.sd-prep__steps li { counter-increment: sd-prep; padding: clamp(20px, 2.4vw, 34px) clamp(20px, 2.6vw, 40px) 4px 0; }
.sd-prep__steps li + li { padding-left: clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--line); }
.sd-prep__steps li::before {
  content: counter(sd-prep); display: block;
  font-family: var(--font-display); font-size: clamp(72px, 8.4vw, 148px); line-height: 0.9; margin-bottom: clamp(14px, 1.6vw, 24px);
}
.sd-prep__steps h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.14; letter-spacing: 0.004em; margin-bottom: 10px; }
.sd-prep__steps p { font-size: 17px; line-height: 1.6; }

/* The areas that use this centre: three across as on the Areas page, or four, a size down */
.sd-dests__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Small enough that "Cradley Heath" stays on one line beside three one-word names */
.sd-dests__list--4 .sd-dest h3 { font-size: clamp(28px, 2.8vw, 54px); }
.sd-dests__list--4 .sd-dest h3 + p { margin-top: auto; margin-bottom: 0; }      /* and the lines under them level if one ever wraps */
.sd-dests__also { margin-top: clamp(22px, 2.4vw, 32px); font-size: clamp(17px, 1.3vw, 19px); color: var(--text-2); }

/* ---------------------------------------------------------------
   Swap checker

   A tool with an article round it. The tool brings its own styles,
   written for the old site and scoped to .sdt and #sdt-data. They
   are not edited. Everything here that restyles the tool starts
   with .sd-swap, which is enough to outrank it: square corners, the
   theme's greys and link red, and no amber, which is not one of the
   site's colours.
   --------------------------------------------------------------- */

/* Hero: the words on the left, the search box on the right as a white panel.
   Not clipped like other heroes: the box's list of suggestions drops below it. */
.sd-hero--tool {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); align-items: start;
  column-gap: var(--gap); padding-right: var(--gutter); overflow: visible;
}
.sd-hero--tool .sd-hero__say { max-width: none; padding-right: 0; }
.sd-hero--tool h1 { font-size: clamp(30px, 3.4vw, 54px); max-width: 21ch; }
.sd-hero--tool .sd-hero__sub { margin-bottom: 0; }
/* When the list was last checked. Small, but said in words and in a <time>, under the headline. */
.sd-hero__updated { margin: -4px 0 clamp(16px, 2vw, 24px); font-size: 15px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.sd-hero__updated time { color: var(--text); }
.sd-swap__tool {
  margin: clamp(44px, 5.6vw, 92px) 0 clamp(36px, 4vw, 64px);
  padding: clamp(20px, 2.4vw, 36px); border-top: 3px solid var(--red);
}

/* The tool, in this site's dress */
.sd-swap .sdt, .sd-swap #sdt-data {
  --sdt-radius: 0px; --sdt-link: var(--red-ink); --sdt-line: var(--line);
  --sdt-muted: var(--text-2); --sdt-faint: var(--text-3);
}
.sd-swap .sdt { margin: 0; padding: 0; border: 0; background: none; }       /* the panel is the box */
.sd-swap .sdt-label { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; letter-spacing: 0.004em; margin-bottom: 10px; }
.sd-swap .sdt-hint { font-size: 16px; line-height: 1.5; margin-bottom: 16px; }
.sd-swap .sdt-input { padding: 15px 44px 15px 16px; font-size: 18px; border-color: var(--text); }
.sd-swap .sdt-input:focus { border-color: var(--red); }
.sd-swap .sdt-list { border-color: var(--text); }
.sd-swap .sdt-clear, .sd-swap .sdt-opt, .sd-swap .sdt-tag, .sd-swap .sdt-flag-mark { border-radius: 0; }
.sd-swap .sdt-res-h { font-size: 20px; line-height: 1.3; }
.sd-swap .sdt-res-sub, .sd-swap .sdt-card-d { font-size: 16px; line-height: 1.5; }
.sd-swap .sdt-card-n { font-size: 19px; }
.sd-swap .sdt-card-stay { background: var(--sunk); }
/* Three options, three columns. The tool's own rule fits as many 200px columns as the box will take,
   and in a box this wide that is four: the three cards then stop a column short of the edge. */
.sd-swap .sdt-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sd-swap .sdt-cta { padding: 15px 26px; font-size: 17px; }
.sd-swap .sdt-warn { background: var(--sunk); border: 0; border-left: 3px solid var(--text); font-size: 16px; }
.sd-swap .sdt-flag, .sd-swap #sdt-data tbody td > span.sdt-flag { color: var(--text); font-weight: 600; }
.sd-swap .sdt-flag-mark { color: var(--text); background: none; border-color: var(--text); }
.sd-swap .sdt-flag-mark:hover { background: var(--sunk); }
.sd-swap .sdt-stamp { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.sd-swap .sdt-stamp a, .sd-swap .sdt-attribution a { color: var(--red-ink); }

/* The table of every centre: eleven regions, all of them open on the page.

   Beside it the regions are a contents list, the one a blog post has (.sd-toc): it stays on screen
   while the table goes past and marks the region being read. The rail is narrow and the table wide,
   because the table is what needs the room: 320 rows, so a row that wraps costs the page dearly. */
.sd-swap #sdt-data { margin: 0; }
.sd-swap .sdt-rg { margin-bottom: 18px; scroll-margin-top: 14px; }
.sd-swap #sdt-data tbody tr { scroll-margin-top: 14px; }
.sd-swap__data { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); column-gap: clamp(28px, 3vw, 48px); }
/* In a short window the rail scrolls within itself (the script keeps the marked region in sight), so its scrollbar is kept slight */
.sd-swap__rail { max-height: calc(100vh - var(--stick) - 56px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sd-swap__rail h2 { font-size: clamp(28px, 2.5vw, 40px); }
.sd-swap__regions { margin-top: clamp(18px, 2vw, 26px); }
/* The regions as contents: no numbers, the name in ink, how many centres at the right. Twelve entries
   under a heading have to fit a laptop's height, so they are closer set than a post's. */
.sd-toc--regions { padding-top: 0; }
.sd-toc--regions ol { margin-top: 0; }
.sd-toc--regions a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 7px; padding-bottom: 7px; font-weight: 600; color: var(--text); }
.sd-toc--regions a::before { content: none; }
.sd-toc--regions a:hover { background: var(--sunk); }
.sd-toc--regions a[aria-current] { background: var(--panel); }
.sd-toc--regions a span { font-weight: 400; color: var(--text-3); }
/* Its last entry is the way past the table: the first heading of the guide underneath */
.sd-toc--regions .sd-toc__skip { margin-top: -1px; border-top: 2px solid var(--text); border-bottom: 0; }
.sd-toc--regions .sd-toc__skip a { font-weight: 400; color: var(--text-2); }
.sd-toc--regions .sd-toc__skip a::after { content: "\2193"; flex: none; font-weight: 600; color: var(--red-ink); }
.sd-swap .sdt-rg > summary { padding: 16px 18px; font-size: 19px; }
.sd-swap .sdt-rg > summary:hover, .sd-swap #sdt-data thead th { background: var(--sunk); }
.sd-swap #sdt-data table { font-size: 17px; }
/* Every pixel of a row's height is on the page 320 times. Tighter cells; and on a screen wide enough
   for it, a centre and its distance share a line instead of two, which nearly halves the table. */
@media (min-width: 641px) {
  .sd-swap #sdt-data tbody th, .sd-swap #sdt-data tbody td { padding-top: 8px; padding-bottom: 8px; line-height: 1.4; }
}
@media (min-width: 1700px) {
  .sd-swap #sdt-data tbody th[scope="row"] { width: 22%; }
  .sd-swap #sdt-data tbody td > span:not(.sdt-flag) { display: inline-block; margin: 0 0 0 0.6em; white-space: nowrap; }
}
/* The tool's own phone layout, a centre and its three options as a block: tighter, and a distance is
   never split across two lines. */
@media (max-width: 640px) {
  .sd-swap #sdt-data tbody tr { padding: 8px 0 10px; }
  .sd-swap #sdt-data tbody th[scope="row"] { padding-bottom: 5px; }
  .sd-swap #sdt-data tbody td { padding-top: 1px; padding-bottom: 1px; line-height: 1.5; }
  .sd-swap #sdt-data tbody td > span:not(.sdt-flag) { display: inline-block; white-space: nowrap; }
}

/* The corrections, inside the article: a block of their own, set back */
.sd-swap .sdt-corrections { padding: clamp(18px, 2vw, 28px); background: var(--sunk); border-left: 3px solid var(--text); }
.sd-swap .sdt-corrections > * + * { margin-top: 1em; }
.sd-swap .sdt-corrections > h3 { margin-top: 1.5em; }

/* The worked example: the one part about Birmingham, on the page's red band */
.sd-example .sd-head--wide { display: block; }
.sd-example .sd-head--wide h2 { max-width: none; }
.sd-example__body { columns: 2; column-gap: var(--gap); padding-top: 26px; border-top: 2px solid #FFF; }
.sd-example__body p { break-inside: avoid; margin-bottom: 1em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; }
.sd-example__body p:first-child { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; font-weight: 500; }

/* The licence line */
.sd-swap .sdt-attribution { max-width: 96ch; margin-top: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--text-3); }

/* ---------------------------------------------------------------
   Show me, tell me

   The most visited page on the site, and mostly on a phone. Every
   answer is on the page under its question. A bar under the hero
   jumps to either list and holds a "Test yourself" switch, which
   hides the answers until each is asked for. All of it is CSS: the
   switch and the "Show answer" buttons are checkboxes.
   --------------------------------------------------------------- */

/* Hero: the count where another page has a drawing. The headline is short enough for one line. */
.sd-hero--guide h1 { max-width: none; }
.sd-hero--guide .sd-hero__sub { margin-bottom: 14px; }
.sd-hero--guide .sd-hero__sub + .sd-hero__sub { font-size: clamp(16px, 1.2vw, 18px); margin-bottom: 0; }

/* The bar: where to, and the switch. It stays under the header. */
.sd-jump {
  position: sticky; top: var(--stick); z-index: 40;
  display: flex; align-items: stretch; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); background: var(--panel); border-bottom: 1px solid var(--line);
}
.sd-jump__links { display: flex; gap: clamp(14px, 2vw, 34px); min-width: 0; }
.sd-jump__links a {
  display: flex; align-items: center; gap: 9px; padding: 17px 0 16px;
  font-size: 16px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-decoration: none;
  box-shadow: inset 0 -3px 0 transparent;
}
.sd-jump__links a:hover { color: var(--text); box-shadow: inset 0 -3px 0 var(--red); }
.sd-jump__links b { font-family: var(--font-display); font-weight: 400; font-size: 15px; line-height: 1; padding: 4px 7px 3px; background: var(--ink); color: #FFF; }
.sd-jump__short { display: none; }
.sd-jump__test { display: flex; align-items: center; }
.sd-jump__test label { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 16px; font-weight: 600; line-height: 1.3; white-space: nowrap; cursor: pointer; }
.sd-jump__hint { font-weight: 400; color: var(--text-2); }
.sd-switch { position: relative; flex: none; width: 44px; height: 24px; border: 2px solid var(--text); background: var(--panel); }
.sd-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: var(--text); transition: transform 0.15s ease; }
#sd-test:checked + label .sd-switch { background: var(--red); border-color: var(--red); }
#sd-test:checked + label .sd-switch::after { transform: translateX(20px); background: #FFF; }
#sd-test:focus-visible + label { outline: 3px solid var(--red-ink); outline-offset: 3px; }
/* The switch works through :has(). A browser without it is not shown a switch that would do nothing. */
@supports not selector(:has(a)) { .sd-jump__test { display: none; } }

/* The two lists. The rail clears the bar as well as the header; so does anything jumped to. */
.sd-smtm .sd-split__rail { top: calc(var(--stick) + 84px); }
.sd-smtm .sd-band { scroll-margin-top: 62px; }
.sd-qs__count { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kicker); }
.sd-qs__count strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 7.6vw, 132px); line-height: 0.86; letter-spacing: 0; color: var(--text); }
.sd-qa { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.sd-q { padding: clamp(20px, 2.2vw, 30px) 0 clamp(22px, 2.4vw, 32px); border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.sd-q h3 { display: grid; grid-template-columns: clamp(44px, 4vw, 64px) minmax(0, 1fr); align-items: baseline; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.35; }
.sd-q__n { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1; color: var(--red-ink); }
/* The answer: a red rule down its side, so it reads as the reply to the line above it */
.sd-q__a { margin: 14px 0 0 clamp(44px, 4vw, 64px); padding-left: 16px; border-left: 3px solid var(--red); }
.sd-q__a p { max-width: 68ch; font-size: 18px; line-height: 1.65; }
.sd-q__a .sd-q__note { margin-top: 8px; font-size: 16px; color: var(--text-2); }
.sd-q__reveal, .sd-q__hide { display: none; }
.sd-qs__outro { margin-top: 26px; max-width: 70ch; font-size: 17px; line-height: 1.65; color: var(--text-2); }

/* Test yourself: every answer away, and a button on each question to bring its own back */
.sd-smtm:has(#sd-test:checked) .sd-q__a { display: none; }
.sd-smtm:has(#sd-test:checked) .sd-q__reveal {
  display: inline-block; margin: 14px 0 0 clamp(44px, 4vw, 64px); padding: 9px 16px;
  font-size: 16px; font-weight: 600; line-height: 1.3; border: 1px solid var(--text); cursor: pointer;
}
.sd-smtm:has(#sd-test:checked) .sd-q__reveal:hover { background: var(--text); color: var(--paper); }
.sd-smtm:has(#sd-test:checked) .sd-q__box:checked ~ .sd-q__a { display: block; }
.sd-q__box:checked + .sd-q__reveal .sd-q__show { display: none; }
.sd-q__box:checked + .sd-q__reveal .sd-q__hide { display: inline; }
.sd-q__box:focus-visible + .sd-q__reveal { outline: 3px solid var(--red-ink); outline-offset: 3px; }

/* How to prepare: the red band, three paragraphs side by side */
.sd-how__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid #FFF; }
.sd-how__cols p { padding: clamp(20px, 2.4vw, 34px) clamp(20px, 2.6vw, 40px) 4px 0; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.65; }
.sd-how__cols p + p { padding-left: clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--line); }

/* Useful links, and where the questions come from */
.sd-uselinks { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.sd-uselinks li { padding: clamp(16px, 1.8vw, 22px) 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.55; color: var(--text-2); }
.sd-uselinks a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sd-uselinks a:hover { color: var(--link-hover); }
.sd-source { margin-top: 22px; max-width: 76ch; font-size: 15px; line-height: 1.6; color: var(--text-3); }

/* ---------------------------------------------------------------
   Legal pages: Terms, Privacy

   Set as a blog post is: contents, text, a card beside it. Three
   things of their own: a short hero with the badge, a contents list
   with no numbers (the Terms page's headings bring their own), and
   the card, which says how to reach the school.
   --------------------------------------------------------------- */
.sd-hero--legal .sd-hero__glyph { right: 3%; width: min(27%, 400px); }
.sd-hero--legal .sd-hero__say > :last-child { margin-bottom: 0; }
.sd-hero--legal .sd-hero__sub strong { font-weight: 600; color: var(--text); }
.sd-toc--plain a { display: block; }
.sd-toc--plain a::before { content: none; }
.sd-prompt--reach .sd-link { overflow-wrap: anywhere; }
/* The text starts level with the contents list and the card, not a heading's margin below them */
.sd-text--legal > :first-child { margin-top: 0; }

/* ---------------------------------------------------------------
   Interior pages
   --------------------------------------------------------------- */
.sd-page__inner { max-width: 720px; margin: 0 auto; }
.sd-page h1 { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.04; margin-bottom: 26px; }
.sd-page h2 { font-size: clamp(24px, 2.6vw, 36px); margin: 44px 0 16px; }
.sd-page h3 { font-size: 22px; margin: 32px 0 12px; }
.sd-page p, .sd-page li { font-size: 18px; line-height: 1.75; margin-bottom: 18px; }
.sd-page a { color: var(--red-ink); }
.sd-page img { margin: 28px 0; border: 1px solid var(--line); }
.sd-notice { background: var(--sunk); border-left: 4px solid var(--red); padding: 20px 24px; font-size: 16px; color: var(--text-2); margin-bottom: 36px; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 1340px) {
  /* Article: not enough room for three columns, so the booking prompt goes.
     Contents and text still sit side by side; the footer and header already ask. */
  .sd-article { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
  .sd-article--plain { grid-template-columns: minmax(0, 860px); }
  .sd-article__rail { display: none; }
}

@media (max-width: 1000px) {
  /* Header: the menu no longer fits beside the name, so it goes behind a button. One row still:
     name, "Book a lesson", menu button. (Before, the button fell onto a row of its own here.) */
  .sd-header { flex-wrap: nowrap; }
  .sd-header__brand { flex: 1 1 auto; }
  .sd-burger {
    display: grid; place-items: center; flex: 0 0 auto; width: var(--header-h); padding: 0;
    background: none; color: var(--on-ink); border: 0; border-radius: 0; cursor: pointer;
  }
  .sd-burger:hover { color: var(--red-lt); }
  .sd-burger:focus-visible { outline-offset: -7px; }      /* inside the button: it sits in the corner of the screen */
  .sd-header:has(.sd-nav:popover-open) .sd-burger__bars { background: transparent; }
  .sd-header:has(.sd-nav:popover-open) .sd-burger__bars::before { top: 0; transform: rotate(45deg); }
  .sd-header:has(.sd-nav:popover-open) .sd-burger__bars::after { top: 0; transform: rotate(-45deg); }

  /* The menu, shut: gone. Open: a panel the width of the screen, straight under the header.
     The browser opens and closes it (the button, a tap elsewhere, Escape); these rules only dress it. */
  .sd-nav:not(:popover-open) { display: none; }
  .sd-nav:popover-open {
    position: fixed; inset: calc(var(--stick) + var(--wp-admin--admin-bar--position-offset, 0px)) 0 auto 0;
    width: auto; max-height: calc(100vh - var(--stick)); max-height: calc(100dvh - var(--stick)); overflow-y: auto;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 4px var(--gutter) 22px;
    background: var(--ink); color: var(--on-ink); border-top: 1px solid var(--ink-line);
  }
  .sd-nav:popover-open > a, .sd-nav:popover-open .sd-nav__parent { padding: 17px 0; font-size: 20px; font-weight: 600; }
  .sd-nav:popover-open > a, .sd-nav__group { border-bottom: 1px solid var(--ink-line); }
  .sd-nav:popover-open > a[aria-current], .sd-nav:popover-open .sd-nav__parent[aria-current] { padding-left: 16px; box-shadow: inset 4px 0 0 var(--red); }

  /* Submenus in the phone menu: shut until the arrow beside "Services" or "Areas" is tapped. The arrow
     is the label of a checkbox, so the stylesheet can open the list and a keyboard can reach it. */
  .sd-nav__group { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; align-self: auto; }
  .sd-nav__parent::after { display: none; }
  .sd-nav__toggle { display: block; position: absolute; right: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
  .sd-nav__chev { display: grid; place-items: center; width: 60px; height: 60px; margin-right: -14px; cursor: pointer; }
  .sd-nav__chev::before {
    content: ""; width: 11px; height: 11px; margin-top: -5px; border-right: 3px solid var(--on-ink); border-bottom: 3px solid var(--on-ink);
    transform: rotate(45deg); transition: transform 0.2s, margin 0.2s;
  }
  .sd-nav__toggle:checked + .sd-nav__chev::before { margin-top: 6px; transform: rotate(-135deg); }
  .sd-nav__toggle:focus-visible + .sd-nav__chev { outline: 3px solid var(--red-lt); outline-offset: -8px; }
  .sd-sub {
    grid-column: 1 / -1; position: static; display: none; padding: 0 0 16px; background: none; border: 0; box-shadow: none;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .sd-nav__toggle:checked ~ .sd-sub { display: block; }
  .sd-sub__head { display: none; }       /* the link beside the arrow already goes there */
  .sd-sub__list, .sd-sub--plain .sd-sub__list { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .sd-sub--areas .sd-sub__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .sd-sub__list a, .sd-sub--areas .sd-sub__list a { padding: 9px 0; border-bottom: 0; }
  .sd-sub__art { width: 44px; height: 44px; }
  .sd-sub--areas .sd-sub__name { font-size: 22px; }
  .sd-sub--areas .sd-sub__list a::after { display: none; }
  /* The page behind is dimmed, from the header down, so the menu reads as on top of it */
  .sd-nav::backdrop { top: var(--stick); background: rgba(10, 10, 10, 0.62); }

  /* Article: one column, and the contents become a bar that sticks to the top of
     the screen. Shut by default; it shows which section is being read, and opens
     downwards over the text when tapped. */
  .sd-article { grid-template-columns: minmax(0, 1fr); }
  .sd-article:not(.sd-article--plain) { padding-top: 0; }      /* the bar sits directly under the header */
  .sd-article__toc {
    position: sticky; top: var(--stick); z-index: 30; max-height: none; overflow: visible;      /* under the menu, which also sticks */
    margin: 0 calc(-1 * var(--gutter)) 30px;
  }
  .sd-toc { position: relative; padding-top: 0; background: var(--panel); border-bottom: 1px solid var(--line); }
  .sd-toc__title { display: none; }
  .sd-toc__toggle {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px var(--gutter);
    font: inherit; text-align: left; color: var(--text); background: none; border: 0; border-radius: 0; cursor: pointer;
  }
  .sd-toc__label { flex: none; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
  .sd-toc__now { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* plus when shut, minus when open, as on the FAQs */
  .sd-toc__toggle::after {
    content: ""; flex: 0 0 16px; height: 16px;
    background:
      linear-gradient(var(--red), var(--red)) center / 100% 3px no-repeat,
      linear-gradient(var(--red), var(--red)) center / 3px 100% no-repeat;
  }
  .sd-toc.is-open .sd-toc__toggle::after { background: linear-gradient(var(--red), var(--red)) center / 100% 3px no-repeat; }
  .sd-toc ol {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 0 var(--gutter) 10px;
    max-height: min(62vh, 460px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
  }
  .sd-toc.is-open ol { display: block; }
  .sd-toc a { padding-top: 12px; padding-bottom: 12px; }
  /* a heading jumped to must clear the bar */
  .sd-text h2, .sd-text h3 { scroll-margin-top: 72px; }
  .sd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-quotes--3 { grid-template-columns: minmax(0, 1fr); }
  .sd-quotes--3 .sd-quote, .sd-quotes--3 .sd-quote:first-child, .sd-quotes--3 .sd-quote:last-child { padding-left: 0; padding-right: 0; border-right: 0; }
  .sd-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-footer__brand, .sd-footer__col:last-child { grid-column: 1 / -1; }   /* the email address needs the full width */
}

@media (max-width: 900px) {
  .sd-hero__glyph, .sd-hero__map { display: none; }
  .sd-hero__say, .sd-hero--place .sd-hero__say { max-width: none; }
  .sd-cols { grid-template-columns: minmax(0, 1fr); }
  .sd-hero--service .sd-hero__say { max-width: none; }
  /* Post header: the picture runs edge to edge under the byline, and the black fades down into it */
  .sd-hero--pictured { display: block; min-height: 0; }
  .sd-hero--pictured .sd-hero__say { max-width: none; padding-bottom: 14px; }
  .sd-hero__shot { position: relative; width: auto; height: clamp(170px, 48vw, 320px); }
  .sd-hero__shot::after { background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 10, 10, 0.6) 34%, rgba(10, 10, 10, 0) 78%); }
  .sd-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-head--wide .sd-lede + .sd-lede { grid-column: auto; margin-top: 0; }
  .sd-vehicle__grid, .sd-vehicle--flip .sd-vehicle__grid { grid-template-columns: minmax(0, 1fr); }
  .sd-vehicle--flip .sd-vehicle__shot { order: 0; }
  .sd-tops { grid-template-columns: minmax(0, 1fr); }
  /* the route turns to run down the page */
  .sd-route { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 0; }
  .sd-route::before { display: none; }
  .sd-route p { padding-left: 38px; }
  .sd-route p::before { top: 5px; box-shadow: none; }

  .sd-head--wide, .sd-split, .sd-areas__grid, .sd-areas__more, .sd-reviews__top, .sd-contact, .sd-posts {
    grid-template-columns: minmax(0, 1fr);
  }
  .sd-head--wide { row-gap: 16px; }
  .sd-split { gap: 30px; }
  .sd-split__rail { position: static; }

  .sd-map { display: none; }          /* too small to read on a phone; the lists carry every area */
  .sd-score { justify-self: start; }
  .sd-post--lead { grid-row: auto; }
  .sd-post--lead + .sd-post { padding-top: clamp(22px, 2.6vw, 36px); border-top: 1px solid var(--line); }
  .sd-contact { gap: 40px; }

  .sd-guides__list { grid-template-columns: minmax(0, 1fr); }
  .sd-guide { padding: 24px 0 26px; }
  .sd-guide + .sd-guide { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  body { font-size: 17px; padding-bottom: 58px; }

  /* Header: mark and name, and the menu button. A little shorter than on a wide screen. */
  :root { --header-h: 66px; --stick: 66px; }
  .sd-header__brand { padding: 11px var(--gutter); }
  .sd-header__cta { display: none; }       /* the pinned bar below does this job */

  .sd-btn { padding: 15px 24px; font-size: 17px; }
  .sd-actions .sd-btn { flex: 1 1 100%; }

  .sd-leads, .sd-cars, .sd-prices, .sd-quotes, .sd-versus, .sd-cards, .sd-cards .sd-post--lead { grid-template-columns: minmax(0, 1fr); }
  .sd-cards .sd-post--lead { gap: 0; }
  .sd-cards .sd-post--lead .sd-post__body { padding-top: 18px; }
  .sd-byline { font-size: 15px; }
  .sd-text { font-size: 17px; }
  .sd-versus__or { position: static; transform: none; margin: -4px auto; }
  .sd-prices--one .sd-prices__note { font-size: 18px; }
  .sd-prices { gap: 16px; }
  .sd-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sd-row .sd-more { justify-self: start; margin-top: 6px; }

  .sd-quote:nth-child(odd) { padding-right: 0; border-right: 0; }
  .sd-quote:nth-child(even) { padding-left: 0; }
  .sd-quote__by a { margin-left: 0; flex-basis: 100%; }

  .sd-faq__item > p { padding-right: 0; }
  .sd-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sd-post:not(.sd-post--lead) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }

  .sd-bar {
    display: grid; grid-template-columns: 1fr 1.15fr 1.3fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    border-top: 1px solid var(--ink-line);
  }
  .sd-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 57px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; color: #FFF;
  }
  .sd-bar__call, .sd-bar__chat { background: var(--ink); }
  .sd-bar__chat { border-left: 1px solid var(--ink-line); }
  .sd-bar__book { background: var(--red); }
  .sd-bar a:focus-visible { outline-color: #FFF; outline-offset: -5px; }

  .sd-bar__chat svg { width: 18px; height: 18px; margin-right: 8px; fill: var(--wa); flex: none; }

  /* The bar has WhatsApp in it, so the pill is not needed here. */
  .sd-wa { display: none; }

  /* The cookie question sits on top of the bar, full width */
  .sd-consent {
    left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); width: auto;
    padding: 18px var(--gutter) 20px; border-left: 0; border-right: 0; border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .sd-points, .sd-modules { grid-template-columns: minmax(0, 1fr); }
  .sd-point:nth-child(2) { border-top: 1px solid var(--line); }
  .sd-form { grid-template-columns: minmax(0, 1fr); }
  .sd-field--name, .sd-field--email, .sd-field--phone, .sd-field--postcode { grid-column: 1 / -1; }
  .sd-form__send { justify-self: stretch; }
  .sd-score { gap: 14px; }
}

/* Overview pages, and Why us, Reviews, Contact */
@media (max-width: 1600px) {
  .sd-wall__list { columns: 3; }
}

@media (max-width: 1240px) {
  .sd-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-sheet--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .sd-wall__list { columns: 2; }
  .sd-six__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Contact: the form drops under the words */
  .sd-hero--form { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "say" "form" "next"; padding-right: 0; }
  .sd-hero--form .sd-hero__say { padding-right: var(--gutter); padding-bottom: clamp(28px, 4vw, 44px); }
  .sd-hero--form .sd-contact__form { margin: 0 var(--gutter) clamp(36px, 6vw, 56px); }
  .sd-hero__next { padding-right: var(--gutter); }
}

@media (max-width: 900px) {
  /* The figure goes under the headline rather than beside it */
  .sd-hero--figure { grid-template-columns: minmax(0, 1fr); }
  .sd-hero--figure .sd-hero__say { padding-right: var(--gutter); padding-bottom: clamp(26px, 5vw, 40px); }      /* the right gutter is back: nothing stands beside the words now */
  .sd-hero__figure { padding: 0 var(--gutter) clamp(40px, 8vw, 60px); }
  .sd-sheet--3 { grid-template-columns: minmax(0, 1fr); }
  .sd-sheet--3 .sd-svc__plate { aspect-ratio: 16 / 7; }
  .sd-steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .sd-steps::before { display: none; }
  .sd-steps li { padding: 4px 0 0 64px; }
  .sd-steps li::before { box-shadow: none; }
  .sd-ticks--pair, .sd-reach { grid-template-columns: minmax(0, 1fr); }
  .sd-reach li, .sd-reach li:first-child, .sd-reach li:last-child { padding-left: 0; padding-right: 0; border-right: 0; }

  .sd-hero--atlas { display: block; min-height: 0; }
  .sd-hero--atlas .sd-hero__say { max-width: none; }
  .sd-dests__list { grid-template-columns: minmax(0, 1fr); }
  .sd-dest, .sd-dest:first-child, .sd-dest:last-child { padding-left: 0; padding-right: 0; border-right: 0; }
}

@media (max-width: 700px) {
  /* Tables in an article. Nothing should have to be scrolled sideways to be read.
     One that can fit the screen as a table loses its minimum width and tightens up. */
  .sd-table table { min-width: 0; font-size: 15px; }
  .sd-table th, .sd-table td { padding: 10px 11px; overflow-wrap: break-word; }

  /* One that cannot (inc/posts.php decides) is shown a row at a time. The row's first cell
     is its heading; every other cell has its column's name beside it. */
  .sd-table--stack { overflow: visible; background: none; border: 0; }
  .sd-table--stack table, .sd-table--stack thead, .sd-table--stack tbody, .sd-table--stack tr { display: block; }
  .sd-table--stack .sd-table__head { display: none; }
  .sd-table--stack tr { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--text); }
  .sd-table--stack tbody tr:first-child, .sd-table--stack .sd-table__head + tr { margin-top: 0; }
  .sd-table.sd-table--stack tr > * {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 14px; align-items: start;
    padding: 10px 14px; background: none; font-weight: 400;
    width: auto !important; height: auto !important;      /* an editor's own "width: 33%" on a cell would still apply */
  }
  .sd-table.sd-table--stack tr > :not(:last-child) { border-bottom: 1px solid var(--line); }
  .sd-table--stack tr > *::before { content: attr(data-label); font-weight: 600; color: var(--text-2); }
  .sd-table.sd-table--stack tr > :first-child { display: block; padding: 12px 14px; font-size: 17px; font-weight: 600; line-height: 1.35; background: var(--sunk); }
  .sd-table--stack tr > :first-child::before { content: none; }
  /* Cells that hold whole sentences: the column's name goes above the text, not beside it */
  .sd-table.sd-table--long tr > * { display: block; }
  .sd-table--long tr > *::before { display: block; margin-bottom: 2px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }

  .sd-wall__list { columns: 1; }
  /* The first ten, then a button for the rest. Only while "All reviews" is chosen: a narrowed list is short
     already. No :has(), no button, and every review is shown. */
  .sd-wall:has(#sd-show-all:checked):not(:has(#sd-show-more:checked)) .sd-wall__list .sd-quote:nth-child(n+11) { display: none; }
  .sd-wall:has(#sd-show-all:checked):not(:has(#sd-show-more:checked)) .sd-wall__expand { display: inline-block; }
  .sd-six__list { grid-template-columns: minmax(0, 1fr); }
  .sd-filter label { padding: 8px 12px; font-size: 15px; }
  .sd-pricelist li { flex-wrap: wrap; }

  .sd-sheet { grid-template-columns: minmax(0, 1fr); }
  .sd-sheet--areas .sd-cell--ask { grid-column: auto; }
  .sd-svc__plate { aspect-ratio: 16 / 7; }
  /* An area tile on a phone: the arrow moves up beside the words, which takes a third off the list */
  .sd-sheet--areas .sd-cell:not(.sd-cell--ask) .sd-cell__body {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center;
  }
  .sd-sheet--areas .sd-cell h3, .sd-sheet--areas .sd-cell h3 + p { grid-column: 1; }
  .sd-sheet--areas .sd-cell .sd-cell__foot { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; }
}

/* Test centre pages */
@media (max-width: 1100px) {
  .sd-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-dests__list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-dests__list--4 .sd-dest:nth-child(odd) { padding-left: 0; }
  .sd-dests__list--4 .sd-dest:nth-child(even) { padding-right: 0; border-right: 0; }
}

/* Swap checker */
@media (max-width: 1100px) {
  /* The search box goes under the words */
  .sd-hero--tool { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .sd-hero--tool .sd-hero__say { padding-right: var(--gutter); padding-bottom: clamp(24px, 4vw, 36px); }
  .sd-swap__tool { margin: 0 var(--gutter) clamp(36px, 6vw, 56px); }
}

@media (max-width: 1000px) {
  /* The table: one column, and its regions become the bar a post's contents are (see "Article" in the
     1000px rules above): pinned under the header for as long as the table is on screen, naming the
     region being read. The rail gives up its own box so that the bar can stick to the section. */
  .sd-swap__data { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  .sd-swap__rail { display: contents; }
  .sd-swap__regions { position: sticky; top: var(--stick); z-index: 30; margin: 0 calc(-1 * var(--gutter)); }
  .sd-toc--regions a { padding-top: 12px; padding-bottom: 12px; }      /* a finger's height again */
  /* a region or a centre jumped to must clear the bar */
  .sd-swap .sdt-rg, .sd-swap #sdt-data tbody tr { scroll-margin-top: 64px; }
}

@media (max-width: 900px) {
  .sd-example__body { columns: 1; }
}

@media (max-width: 760px) {
  /* On a phone the panel runs to both edges of the screen */
  .sd-swap__tool { margin: 0; padding: 24px var(--gutter) 26px; }
  .sd-swap .sdt-cards { grid-template-columns: minmax(0, 1fr); }
}

/* Show me, tell me */
@media (max-width: 1240px) {
  .sd-jump__links .sd-jump__more { display: none; }      /* two classes: the link's own display is set with two */
}

@media (max-width: 900px) {
  /* The count is decoration here: on a phone the questions come sooner without it */
  .sd-hero--guide .sd-hero__figure { display: none; }
  .sd-how__cols { grid-template-columns: minmax(0, 1fr); }
  .sd-how__cols p, .sd-how__cols p + p { padding: 20px 0 0; border-left: 0; }
}

@media (max-width: 760px) {
  .sd-jump { gap: 10px; }
  .sd-jump__long, .sd-jump__hint { display: none; }
  .sd-jump__short { display: inline; }
  .sd-jump__links { gap: 16px; }
  .sd-jump__links a { padding: 15px 0 14px; font-size: 15px; gap: 7px; }
  .sd-jump__test label { gap: 8px; font-size: 15px; }
  /* The answer takes the full width of the screen */
  .sd-q__a { margin-left: 0; }
  .sd-q__a p { font-size: 17px; }
  .sd-smtm:has(#sd-test:checked) .sd-q__reveal { margin-left: 0; }
}

@media (max-width: 380px) {
  .sd-jump__links b { display: none; }
}

/* Legal pages: on a phone the contents list is left out. It needs no script anywhere, so it cannot be the bar a post has. */
@media (max-width: 1000px) {
  .sd-article__toc--static { display: none; }
  /* A post has no space above its text here, because its contents bar sits under the header. This page has no bar. */
  .sd-article.sd-article--static { padding-top: var(--band); }
}

@media (max-width: 1200px) {
  /* Pass rates: the table drops under the text and stops following the page. Beside it, the bars run out of room. */
  .sd-rates { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .sd-chart { position: static; max-width: 760px; }
}

@media (max-width: 900px) {
  .sd-dests__list--4 { grid-template-columns: minmax(0, 1fr); }
  /* The three steps go down the page: number on the left, words beside it */
  .sd-prep__steps { grid-template-columns: minmax(0, 1fr); }
  .sd-prep__steps li, .sd-prep__steps li + li {
    display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px;
    padding: 22px 0; border-left: 0;
  }
  .sd-prep__steps li + li { border-top: 1px solid var(--line); }
  .sd-prep__steps li::before { grid-row: 1 / span 2; font-size: 76px; line-height: 0.86; margin: 0; }
}

@media (max-width: 700px) {
  /* Pass rates on a phone. Each row is two lines: the name and the difference, then the figure and
     its bar, so the bar has the width of the screen to be read in. It is no longer laid out as a
     table, so the markup carries the roles that keep it one for a screen reader. */
  .sd-chart { padding: 8px 16px 16px; }
  .sd-chart__table, .sd-chart__table thead, .sd-chart__table tbody { display: block; }
  .sd-chart__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sd-chart__table tbody tr:last-child { border-bottom: 0; padding-bottom: 4px; }
  .sd-chart__table th, .sd-chart__table td, .sd-chart__table thead th { display: block; padding: 0; border: 0; font-size: 16px; }
  .sd-chart__table thead th { font-size: 13px; }
  .sd-chart__table thead tr > :last-child { min-width: 0; white-space: nowrap; }
  .sd-chart__table tr > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .sd-chart__table tr > :nth-child(3) { grid-column: 2; grid-row: 1; padding-left: 0; }
  .sd-chart__table tr > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; width: auto; margin-top: 6px; }
  .sd-chart__table thead tr > :nth-child(2) { margin-top: 2px; }
  /* The average is a mark on each bar here, not one line down the table: a line would run through the names */
  .sd-chart__table .sd-chart__bar::after,
  .sd-chart__table tbody tr:first-child .sd-chart__bar::after,
  .sd-chart__table tbody tr:last-child .sd-chart__bar::after { top: -5px; bottom: -5px; }
  /* A sign beside its words rather than above them */
  .sd-signs { grid-template-columns: minmax(0, 1fr); }
  .sd-signs__item { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .sd-sign { grid-row: 1 / span 2; width: 60px; margin: 2px 0 0; }
  .sd-signs__item > :not(.sd-sign) { grid-column: 2; }
  .sd-fault { padding-left: 44px; }
  .sd-fault::before { width: 26px; height: 26px; }
}

@media (max-width: 560px) {
  .sd-facts { grid-template-columns: minmax(0, 1fr); }
  .sd-fact:nth-child(2) { border-top: 1px solid var(--line); }
}

/* A browser without popovers (Safari before 17, Firefox before 125) cannot open the phone menu, and
   shows it all the time. There the header falls back to two rows under 1000px: the name, then the
   menu as one line that can be swiped. Only the menu line stays when the page scrolls. */
@supports not selector(:popover-open) {
  @media (max-width: 1000px) {
    :root { --header-h: 134px; --stick: 54px; }
    .sd-header { flex-wrap: wrap; }
    .sd-burger { display: none; }
    .sd-nav {
      order: 3; flex: 0 0 100%; height: 54px; flex-wrap: nowrap; gap: 26px; padding: 0 var(--gutter);
      overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--ink-line);
      -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent);
    }
    .sd-nav::-webkit-scrollbar { display: none; }
    .sd-nav a { flex: 0 0 auto; white-space: nowrap; }
    .sd-nav a:last-child { padding-right: 40px; }
    .sd-nav__group { display: block; border: 0; }
    .sd-sub, .sd-nav__toggle, .sd-nav__chev { display: none; }
  }
  @media (max-width: 760px) {
    :root { --header-h: 120px; }
  }
}

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