/* ==========================================================================
   RSA Automatic: design system v2

   Loaded INSTEAD of unified.css, never alongside it. A page is either fully
   on the old stylesheet or fully on this one, which is why there are no
   overrides here and no selector fights.

   Pairs with tokens.css, which must load first.
   Vocabulary follows the locked Leinster system and the Cork build of it.
   Class names in the `au-` namespace are ours to move. Class names from any
   other namespace that appear below (prnd-, lead-, loc-tx) are JavaScript
   contracts: they are re-provided here, never renamed.

   The per-family accent colours this site used to carry (teal for
   neighbourhoods, mint for local authorities, amber for counties) retire with
   unified.css. One system, one palette. Families are told apart by
   composition and by their own content, not by hue.
   ========================================================================== */

/* ---------- 1. Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-body);
  font: var(--fw-regular) var(--fs-body-lg)/var(--lh-relaxed) var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[id] { scroll-margin-top: var(--scroll-offset); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  color: var(--color-text);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-heading);
  text-transform: uppercase;
}
h1 { font-size: var(--fs-hero-a); line-height: var(--lh-display); letter-spacing: var(--ls-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.02em; }
h4 { font-size: var(--fs-h4); letter-spacing: -.01em; text-transform: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.au-accent { color: var(--color-accent); }

/* Page Quality Rule 15: every interactive element keeps a visible focus ring. */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* Page Quality Rule 14: motion is opt-out, sitewide and unconditional. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- 2. Layout primitives ---------- */
.au-wrap { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.au-section { padding: var(--space-section) 0; position: relative; }
.au-section--tight { padding: 64px 0; }
.au-section--surface { background: var(--color-panel); }
.au-section--deep { background: var(--color-bg-deep); }
.au-section + .au-section:not(.au-section--surface):not(.au-section--deep) { border-top: 1px solid var(--rsa-line-08); }

.au-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: var(--space-12);
  font: var(--fw-bold) var(--fs-eyebrow)/1.4 var(--font-body);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent);
}
.au-eyebrow__marker {
  background: var(--color-accent); color: var(--color-on-accent);
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: 11px; padding: 6px 12px 5px 8px; height: 29px;
  display: inline-flex; align-items: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.au-lede { font-size: var(--fs-lede); line-height: var(--lh-lede); color: var(--color-text-lede); max-width: 54ch; }
.au-prose { max-width: 62ch; }
.au-prose a { color: var(--color-accent); text-underline-offset: 3px; }
.au-prose a:hover { color: var(--color-text-strong); }
/* Page Quality Rule 20: an intro never sits flush against the heading above. */
.au-section-intro { margin-top: var(--space-12); color: var(--color-text-lede); max-width: 60ch; }

/* ---------- 3. Buttons ---------- */
.au-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: var(--pad-btn);
  border: 1px solid transparent; border-radius: var(--radius-xs);
  background: var(--color-action); color: var(--color-on-action);
  font: var(--fw-black) var(--fs-label)/1.4 var(--font-display);
  letter-spacing: var(--ls-button); text-transform: uppercase; text-decoration: none;
  transition: background var(--dur-fast);
  cursor: pointer;
}
.au-btn:hover { background: var(--color-action-hover); color: var(--color-on-action); }
.au-btn--action { background: var(--color-action); color: var(--color-on-action); }
.au-btn--ghost { background: transparent; border-color: var(--rsa-line-25); color: var(--color-text); }
.au-btn--ghost:hover { background: var(--rsa-line-08); border-color: var(--color-text); }
.au-btn--block { width: 100%; }
.au-btn--sm { min-height: 40px; padding: 10px 16px; font-size: var(--fs-small); }
.au-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: var(--space-14) 0 var(--space-9); }
/* Page Quality Rule 5: a CTA group can always offer the phone as an alternative. */
.au-or-call { font-size: var(--fs-small); color: var(--color-text-muted); align-self: center; }
.au-or-call a { color: var(--color-accent); text-decoration: none; }

/* ---------- 4. Objects ---------- */
.au-plate {
  display: grid; place-items: center; flex: none;
  width: 50px; height: 50px; border-radius: var(--radius-lg);
  background: var(--rsa-chalk); color: var(--rsa-plate-red);
  font: 900 30px/1 var(--font-display);
  box-shadow: var(--inset-red);
}
.au-seal {
  display: grid; place-items: center; flex: none;
  width: 50px; height: 50px; border-radius: var(--radius-xs);
  background: var(--color-accent); color: var(--color-on-accent);
  font: 900 26px/1 var(--font-display);
  box-shadow: inset 0 0 0 3px rgba(11,11,12,.15);
}
/* The automatic badge: this site's own object, an A struck on a selector tile. */
.au-badge {
  display: grid; place-items: center; flex: none;
  width: 50px; height: 50px; border-radius: var(--radius-xs);
  background: var(--rsa-chalk); color: var(--rsa-road-black);
  font: 900 26px/1 var(--font-display);
  box-shadow: inset 0 -4px 0 rgba(11,11,12,.18);
}

/* ---------- 5. Proof bar ---------- */
/* Cells wrap rather than squeeze. Four of them in a narrow column left the
   label about 50px wide, so "overall pass rate" set one word per line; giving
   each cell a sensible basis makes the bar fold to two rows instead. */
.au-proof { display: flex; flex-wrap: wrap; align-items: stretch; border-top: 1px solid var(--rsa-line-16); }
.au-proof__cell {
  flex: 1 1 240px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 28px 32px; border-left: 1px solid var(--rsa-line-16);
}
.au-proof__cell:first-child { border-left: 0; padding-left: 0; }
.au-proof__num {
  font: var(--fw-black) clamp(34px, 3.6vw, 48px)/1 var(--font-display);
  letter-spacing: var(--ls-tighter); color: var(--color-eyebrow);
}
.au-proof__num--green { color: var(--color-accent); }
.au-proof__num--chalk { color: var(--color-text); }
/* The label takes what the numeral leaves, rather than being squeezed to fit:
   without this, "overall pass rate" sets in a 49px column, one word per line. */
.au-proof__num, .au-badge, .au-seal, .au-plate { flex: none; }
/* The label needs a working minimum: when the numeral is a price rather
   than a figure it eats most of the cell, so the label drops below it
   instead of setting one word per line. */
.au-proof__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 120px; }
.au-proof__label { font: var(--fw-bold) 15px/1.3 var(--font-body); color: var(--color-text); }
.au-proof__sub { font-size: var(--fs-small); color: var(--color-text-muted); }
.au-proof__stars { color: var(--color-star); letter-spacing: var(--ls-stars); font-size: 15px; }

/* ---------- 6. Header ---------- */
.au-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--color-bg-deep); border-bottom: var(--rule-header);
  box-shadow: var(--shadow-header);
}
.au-header__inner { display: flex; align-items: center; gap: var(--space-16); height: 84px; }
.au-header__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.au-header__logo { width: 112px; }
.au-header__tag {
  font: var(--fw-black) 13px/1 var(--font-display); letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--color-accent);
  padding: 5px 9px; border: 1px solid var(--color-accent); border-radius: var(--radius-xs);
}
.au-nav { display: flex; align-items: center; gap: var(--space-14); margin-left: auto; }
.au-nav a {
  font: var(--fw-bold) var(--fs-label)/1 var(--font-body);
  letter-spacing: var(--ls-nav); text-transform: uppercase;
  color: var(--color-text-body); text-decoration: none;
}
.au-nav a:hover { color: var(--color-text); }
.au-header__cta { display: flex; align-items: center; gap: 12px; }
/* Page Quality Rule 2: the phone never disappears. It shrinks, it does not hide. */
.au-header__phone {
  font: var(--fw-black) var(--fs-label)/1 var(--font-display);
  letter-spacing: var(--ls-nav); color: var(--color-text); text-decoration: none;
  white-space: nowrap;
}
.au-header__phone:hover { color: var(--color-accent); }
.au-menu-btn {
  display: none; background: var(--color-panel); border: 1px solid var(--rsa-line-16);
  width: 46px; height: 46px; border-radius: var(--radius-xs); cursor: pointer; padding: 0;
}
.au-menu-btn__bar { display: block; width: 20px; height: 2px; background: var(--color-text); margin: 4px auto; }
.au-mobile-menu { display: none; border-top: 1px solid var(--rsa-line-12); background: var(--color-bg-deep); }
.au-mobile-menu--open { display: grid; gap: 2px; padding: 14px var(--gutter) 20px; }
.au-mobile-menu a {
  padding: 13px 0; border-bottom: 1px solid var(--rsa-line-08);
  color: var(--color-text); text-decoration: none;
  font: var(--fw-bold) var(--fs-body-sm)/1 var(--font-body);
}
.au-mobile-menu .au-btn { margin-top: 12px; border-bottom: 0; }

/* ---------- 7. Footer ---------- */
.au-footer { background: var(--color-bg-deep); border-top: 1px solid var(--rsa-line-12); padding-top: 72px; }
.au-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
.au-footer__logo img { width: 112px; margin-bottom: 16px; }
.au-footer__heading {
  font: var(--fw-bold) var(--fs-eyebrow)/1.4 var(--font-body);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--color-accent); margin-bottom: var(--space-12);
}
.au-footer__tagline { color: var(--color-text); font: var(--fw-bold) var(--fs-body-sm)/1.5 var(--font-body); }
.au-footer__sig, .au-footer__contact { color: var(--color-text-muted); font-size: var(--fs-body-sm); }
.au-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-body-sm); }
.au-footer a { color: var(--color-text-muted); text-decoration: none; }
.au-footer a:hover { color: var(--color-text); }
.au-footer__bottom {
  margin-top: 64px; padding: 24px 0; border-top: 1px solid var(--rsa-line-08);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: var(--fs-caption); color: var(--color-text-faint);
}
.au-footer__legal { display: flex; gap: 18px; }

/* ---------- 8. Hero ---------- */
.au-hero { position: relative; isolation: isolate; padding-top: 72px; overflow: hidden; background: var(--color-bg-deep); }
.au-hero__photo { position: absolute; inset: 0; z-index: -2; }
.au-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.au-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--overlay-hero-a); }
.au-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: 56px; align-items: center; min-height: 520px; padding-bottom: 64px;
}
.au-hero h1 { max-width: 16ch; }
.au-hero .au-lede { margin-top: var(--space-12); }
.au-hero__aside { justify-self: end; align-self: center; display: grid; gap: 24px; }
.au-hero__hook { font-size: var(--fs-small); color: var(--color-text-muted); }
.au-hero__hook a { color: var(--color-accent); }
/* Page Quality Rule 1: the first conversion element is in the hero, not below it.
   Rule 17: nothing in here starts at opacity 0. */
.au-hero .au-btn-row { margin-bottom: var(--space-12); }

/* The neighbourhood hero carries the lead form in its right column, so the
   columns are closer to even than on a hero whose aside is a small object. */
.au-hero__grid--form { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: start; padding-top: 8px; }
.au-hero__form { justify-self: stretch; }
.au-hero--nb .au-hero__photo img { object-position: 58% 38%; }
/* In the hero the proof bar sits on the hero ground, not on a section edge. */
.au-proof--hero { margin-top: var(--space-14); border-top-color: var(--rsa-line-22); }
.au-proof--hero .au-proof__cell { padding: 22px 26px; }

@media (max-width: 1100px) {
  .au-hero__grid--form { grid-template-columns: 1fr; }
}

/* A short hero, for pages whose job is one statement and two choices. */
.au-hero--short .au-hero__grid { min-height: 340px; padding-bottom: 48px; }
.au-hero__grid--single { grid-template-columns: minmax(0, 1fr); }

/* ---------- 9. Split story ---------- */
.au-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.au-story--flip > :first-child { order: 2; }
.au-offset { position: relative; isolation: isolate; }
.au-offset::before { content: ''; position: absolute; inset: 20px -18px -18px 20px; background: var(--color-accent); z-index: -1; }
/* The photo library ships transparent cutouts, so the picture needs its own
   ground or the green block shows through it. */
.au-offset picture, .au-offset > img { display: block; background: var(--color-panel); }
.au-offset img { width: 100%; height: 440px; object-fit: cover; box-shadow: var(--shadow-card-hover); }

/* ---------- 10. Numbered steps ---------- */
.au-stops { display: grid; gap: 0; border-left: 3px dashed var(--rsa-line-22); margin: 32px 0 0 14px; }
/* It is often an <ol>, so the browser's own list furniture goes. */
ol.au-stops, ul.au-stops { list-style: none; padding-left: 0; }
.au-stop { position: relative; padding: 10px 0 28px 38px; }
.au-stop:last-child { padding-bottom: 0; }
.au-stop__n {
  position: absolute; left: -17px; top: 8px;
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--color-accent); color: var(--color-on-accent);
  border: 5px solid var(--color-bg);
  font: var(--fw-black) 10px/1 var(--font-display);
}
.au-stop h3 { font-size: 21px; margin-bottom: 6px; text-transform: none; }
.au-stop p { color: var(--color-text-muted); font-size: var(--fs-body); }

/* ---------- 11. Cards ---------- */
.au-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.au-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--color-panel); border: 1px solid var(--rsa-line-08);
  border-radius: var(--radius-xs); padding: var(--pad-card);
}
.au-card h3 { text-transform: none; font-size: 19px; }
.au-card p { color: var(--color-text-muted); font-size: var(--fs-body-sm); margin: 0; }
.au-card--lead { border-left: 3px solid var(--color-accent); }

/* Sign-styled place links, for neighbourhood and county walls. */
.au-places { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.au-place {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: var(--color-panel);
  border: 1px solid var(--rsa-line-16); border-radius: var(--radius-md);
  color: var(--color-text); text-decoration: none;
  font: var(--fw-bold) var(--fs-body-sm)/1 var(--font-body);
}
.au-place::after { content: '\2192'; color: var(--color-accent); }
.au-place:hover { background: var(--color-panel-raised); border-color: var(--color-accent); }

.au-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.au-pill {
  padding: 8px 14px; border: 1px solid var(--rsa-line-12); border-radius: 100px;
  font-size: var(--fs-small); color: var(--color-text-muted);
}

/* ---------- 12. Price tickets ---------- */
.au-tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 36px; }
.au-ticket {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--rsa-chalk); color: var(--rsa-road-black);
  border-top: 10px solid var(--color-action); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-card);
}
/* Headings are chalk by default, which is right on the dark ground and wrong
   the moment a module turns light. The ticket is chalk and the best-value one
   is green: an h3 inside either was rendering near-white, so the package name
   was invisible on the pale cards and barely readable on the green one.
   Anything inside a ticket takes the ticket's own colour. */
.au-ticket :is(h1, h2, h3, h4) { color: inherit; }
.au-ticket--best { color: var(--color-on-accent); }
.au-ticket--best .au-ticket__per { opacity: .8; }

.au-ticket--best { background: var(--color-accent); border-top-color: var(--rsa-road-black); }
.au-ticket__name { font: var(--fw-black) 13px/1.3 var(--font-display); letter-spacing: var(--ls-label); text-transform: uppercase; }
.au-ticket__price { font: var(--fw-black) 46px/1 var(--font-display); letter-spacing: var(--ls-tighter); }
.au-ticket__per { font-size: var(--fs-small); opacity: .75; }
.au-ticket__rule { border: 0; border-top: 2px dashed rgba(11,11,12,.25); margin: 4px 0; }
/* Page Quality Rule 4: every price card carries its own CTA. */
/* A ghost button inside a light card would be chalk on chalk: invisible.
   The ticket is a pale object, so anything on it takes the ticket's own ink. */
.au-ticket .au-btn--ghost {
  border-color: rgba(11,11,12,.32); color: var(--rsa-road-black); background: transparent;
}
.au-ticket .au-btn--ghost:hover { background: rgba(11,11,12,.08); border-color: var(--rsa-road-black); color: var(--rsa-road-black); }
.au-ticket--best .au-btn--ghost { border-color: rgba(11,11,12,.4); }
.au-ticket .au-btn { margin-top: auto; }
/* Page Quality Rule 6: a review signal sits beside the prices, not only in the hero. */
.au-price-proof {
  display: flex; align-items: center; gap: 10px; margin-top: 20px;
  font-size: var(--fs-body-sm); color: var(--color-text-muted);
}
.au-price-proof strong { color: var(--color-text); }
.au-price-proof .au-proof__stars { font-size: 14px; }

/* ---------- 13. Review wall ---------- */
.au-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 36px; }
.au-review { display: flex; flex-direction: column; gap: 16px; }
.au-review__body { background: var(--color-panel-raised); border-radius: var(--radius-xs); padding: 28px; }
.au-review--feature .au-review__body { background: var(--color-action); color: var(--color-on-action); }
.au-review__quote { display: block; font: 900 72px/.6 var(--font-display); height: 34px; color: var(--color-bg-deep); }
.au-review blockquote { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-text); }
.au-review--feature blockquote { color: var(--color-on-action); }
.au-review__who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.au-review__avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-avatar-blue); color: var(--rsa-white);
  font: var(--fw-black) 16px/1 var(--font-display);
}
.au-review__name { font: var(--fw-bold) var(--fs-body-sm)/1.3 var(--font-body); color: var(--color-text); }
.au-review__meta { font-size: var(--fs-caption); color: var(--color-text-muted); }
.au-review--feature .au-review__name, .au-review--feature .au-review__meta { color: var(--color-on-action); }
.au-review__stars { color: var(--color-star); letter-spacing: var(--ls-stars); font-size: 14px; }
.au-review--feature .au-review__stars { color: var(--rsa-white); }

.au-rating { display: flex; align-items: center; gap: 20px; }
.au-rating__value { font: var(--fw-black) clamp(56px, 7vw, 104px)/.8 var(--font-display); letter-spacing: var(--ls-tighter); color: var(--color-star); }
.au-rating__caption { font-size: var(--fs-body-sm); color: var(--color-text-muted); max-width: 18ch; }

/* ---------- 14. FAQ ---------- */
/* Native disclosures: they open without JavaScript, and Page Quality Rule 16
   is satisfied by the element itself rather than by a script keeping two
   attributes in step. */
.au-faq { margin-top: 32px; border-top: 1px solid var(--rsa-line-12); }
.au-faq__item { border-bottom: 1px solid var(--rsa-line-12); }
.au-faq__q {
  display: grid; grid-template-columns: 1fr 32px; align-items: center; gap: 16px;
  width: 100%; padding: 24px 0; background: none; border: 0; cursor: pointer;
  text-align: left; color: var(--color-text);
  font: var(--fw-bold) 17px/1.4 var(--font-body);
  list-style: none;
}
.au-faq__q::-webkit-details-marker { display: none; }
/* The toggle is drawn, not written. A span holding a "+" puts a stray text
   node inside the question, which a content-parity check reads as the
   question text having changed. Nothing in the system should make the
   wording of a heading depend on its decoration. */
.au-faq__q::after {
  content: '+';
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-panel); color: var(--color-accent);
  font: var(--fw-black) 18px/1 var(--font-display); transition: background var(--dur-fast);
}
.au-faq__item[open] .au-faq__q::after { content: '\2212'; background: var(--color-accent); color: var(--color-on-accent); }
/* Kept so a stray icon span from an earlier draft cannot draw twice. */
.au-faq__icon { display: none; }
.au-faq__a { padding: 0 48px 26px 0; color: var(--color-text-muted); font-size: var(--fs-body); }

/* ---------- 15. Rail, tabs and panels ---------- */
.au-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin: 28px 0; }
.au-rail button {
  padding: 14px 12px; min-height: 62px; cursor: pointer;
  background: var(--color-panel); border: 1px solid var(--rsa-line-08);
  border-radius: var(--radius-xs); color: var(--color-text-muted);
  font: var(--fw-bold) var(--fs-small)/1.35 var(--font-body); text-align: left;
}
.au-rail button[aria-selected="true"] {
  border-color: var(--color-accent); background: rgba(142,219,79,.06); color: var(--color-text);
}
/* Panels are hidden with an inline display and aria-hidden, never with the
   `hidden` attribute: the shared initTabs clears the inline style but never
   the attribute, so a panel carrying it would stay invisible for ever. */
.au-panel { background: var(--color-panel); border-top: 4px solid var(--color-accent); padding: 32px; }
.au-panel h3 { text-transform: none; margin-bottom: 10px; }
.au-panel p { color: var(--color-text-muted); }

.au-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.au-tile {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--radius-xs);
  background: var(--rsa-track); color: var(--color-track-text);
  font: var(--fw-black) 13px/1 var(--font-display);
}
.au-tile--on { box-shadow: inset 0 0 0 2px var(--color-accent); color: var(--color-accent); }

/* ---------- 16. Map ---------- */
.au-map { border: 1px solid var(--rsa-line-16); border-radius: var(--radius-xs); overflow: hidden; background: var(--color-panel); }
.au-map > div { min-height: 320px; }

/* The map legend. nb-map.js hardcodes its two marker colours, so these two
   swatches match the SCRIPT rather than the palette. If the markers are ever
   retokenised, these move with them, not with the design system. */
.au-map-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  vertical-align: baseline; flex: none;
}
.au-map-dot--centre, .au-map__key--centre { background: #e04535; }
.au-map-dot--pickup, .au-map__key--pickup { background: #8fc820; }
.au-pill .au-map-dot, .au-pill .au-map__key { margin-right: 8px; }
/* Two families asked for this swatch under two names. Both are honoured here
   rather than editing three templates to agree after the fact. */
.au-map__key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: baseline; flex: none; }

/* Measured figures. One module, three shapes, because three families asked
   for the same thing in three vocabularies and one of them has to win:
     au-meters          a stack of rows
       au-meter         one row: label, track or pips, value
         au-meter__label
         au-meter__track   a bare track also works on its own
           au-meter__fill  width set in markup or by script
         au-meter__pips    pips instead of a track
           au-meter__pip, --on
         au-meter__val
   The quiz sets its fill width from JavaScript after a frame at zero, so the
   transition lives here. The global reduced-motion reset neutralises it for
   anyone who asks. */
.au-meters { display: grid; gap: 12px; margin-top: 18px; }
.au-meters--wide { gap: 16px; }
/* A row, not a grid: one family fills it with a track, another with five
   pips, and a fixed column template gives the pips 600px and the value none. */
.au-meter { display: flex; align-items: center; gap: 14px; }
.au-meter__label { flex: 0 1 auto; min-width: 0; font-size: var(--fs-small); color: var(--color-text-muted); }
.au-meter__val { flex: none; font: var(--fw-bold) var(--fs-small)/1 var(--font-body); color: var(--color-text); }
.au-meter > .au-meter__track { flex: 1 1 auto; min-width: 80px; }
.au-meter > .au-meter__pips { flex: none; margin-left: auto; }
.au-meter__track, .progress-bar {
  position: relative; display: block;
  width: 100%; height: 8px; border-radius: 100px; overflow: hidden;
  background: var(--color-panel-raised);
}
.au-meter__fill, .progress-fill {
  display: block; height: 100%; width: 0;
  background: var(--color-accent); border-radius: inherit;
  transition: width var(--dur-slow, .6s) ease;
}
/* The weaker of two figures. A green bar under "heavy mental load" argues
   against its own caption. */
.au-meter__fill--low { background: var(--color-eyebrow); }
/* A reference mark laid over a track, and its key. */
.au-meter__mark { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--color-text); opacity: .8; }
.au-meter__key { display: inline-block; width: 2px; height: 12px; background: var(--color-text); vertical-align: -2px; }
/* Pips, for a five-step intensity rather than a continuous value. */
.au-meter__pips { display: flex; gap: 5px; align-items: center; }
.au-meter__pip { width: 14px; height: 8px; border-radius: 2px; background: var(--rsa-track); }
.au-meter__pip--on { background: var(--color-accent); }

/* A breakdown list: label left, figure right, hairline between. */
.au-rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.au-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--rsa-line-08);
  font-size: var(--fs-body-sm); color: var(--color-text-muted);
}
.au-row b, .au-row strong, .au-row span:last-child { color: var(--color-text); font-weight: var(--fw-bold); }
.au-row--accent { color: var(--color-accent); border-bottom: 0; }
.au-row--accent b, .au-row--accent strong, .au-row--accent span:last-child { color: var(--color-accent); }

/* A comparison matrix. The system has no table module and one family needs
   one: the stub column labels are visible content, so the table cannot be
   folded into cards without losing them. It scrolls rather than overflowing. */
.au-matrix {
  margin-top: 36px; overflow-x: auto;
  background: var(--color-panel); border: 1px solid var(--rsa-line-08);
  border-radius: var(--radius-xs);
}
.au-matrix table { width: 100%; border-collapse: collapse; min-width: 680px; }
.au-matrix th, .au-matrix td {
  text-align: left; vertical-align: top; padding: 14px 16px;
  border-bottom: 1px solid var(--rsa-line-08); font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
}
.au-matrix thead th {
  color: var(--color-text);
  font: var(--fw-black) 13px/1.3 var(--font-display);
  letter-spacing: var(--ls-label); text-transform: uppercase;
}
.au-matrix tbody th[scope="row"] {
  position: sticky; left: 0; background: var(--color-panel);
  color: var(--color-text); font-weight: var(--fw-bold);
}
.au-matrix strong { color: var(--color-text); font: var(--fw-black) 24px/1 var(--font-display); }
.au-matrix small { display: block; margin-top: 4px; font-size: var(--fs-caption); color: var(--color-text-faint); }
.au-matrix tr:last-child th, .au-matrix tr:last-child td { border-bottom: 0; }

/* A single filter input above the grid it filters. */
.au-filter { max-width: 420px; margin: 24px 0 8px; }

/* A pill the data flags as featured. */
.au-pill--featured { border-color: var(--color-accent); color: var(--color-text); }

/* A wider floor, for cards that carry a heading, a map, figures and two CTAs. */
.au-cards--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }

/* Buttons written by scripts, not by templates. nb-quiz.js builds its result
   actions with `btn.className = "btn btn-" + variant`, and hero-search.js does
   the same in its chat cards, so no au- class can reach them. These three are
   the system's buttons under the names the scripts use. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: var(--pad-btn); cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-xs);
  background: var(--color-action); color: var(--color-on-action);
  font: var(--fw-black) var(--fs-label)/1.4 var(--font-display);
  letter-spacing: var(--ls-button); text-transform: uppercase; text-decoration: none;
}
.btn:hover, .btn-primary:hover { background: var(--color-action-hover); color: var(--color-on-action); }
.btn-primary { background: var(--color-action); color: var(--color-on-action); }
.btn-secondary { background: transparent; border-color: var(--rsa-line-25); color: var(--color-text); }
.btn-secondary:hover { background: var(--rsa-line-08); border-color: var(--color-text); }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: var(--fs-small); }
.btn-lg { min-height: 54px; }

/* ---------- 17. Call band ---------- */
.au-band { background: var(--color-action); color: var(--color-on-action); padding: 56px 0; }
.au-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.au-band h2 { color: var(--color-on-action); max-width: 20ch; }
.au-band p { color: var(--color-on-action); opacity: .9; }
.au-band .au-eyebrow { color: var(--color-on-action); }
.au-band .au-btn { background: var(--color-bg-deep); color: var(--color-text); }
.au-band .au-btn:hover { background: var(--rsa-road-black); }
/* A ghost button on the red band needs its own edge, or it reads as text. */
.au-band .au-btn--ghost { background: transparent; border-color: var(--color-on-action); color: var(--color-on-action); }
.au-band .au-btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--color-on-action); }

/* ---------- 18. Breadcrumb ---------- */
.au-crumb { padding: 20px 0 0; font-size: var(--fs-caption); color: var(--color-text-faint); }
.au-crumb a { color: var(--color-text-muted); text-decoration: none; }
.au-crumb a:hover { color: var(--color-text); }
.au-crumb span { margin: 0 8px; }

/* ---------- 19. Dashboard and sidebar ---------- */
.au-dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.au-aside { position: sticky; top: var(--scroll-offset); display: grid; gap: 16px; }
.au-aside__card { background: var(--color-panel); border: 1px solid var(--rsa-line-08); border-left: 3px solid var(--color-accent); padding: 20px; }
.au-aside__card h4 { color: var(--color-text); margin-bottom: 6px; }
.au-aside__card p { color: var(--color-text-muted); font-size: var(--fs-body-sm); margin: 0; }
.au-aside__card small { display: block; margin-top: 8px; color: var(--color-text-faint); font-size: var(--fs-caption); }

/* ---------- 20. Comparison: automatic against manual ---------- */
/* This site's argument is a comparison, so the comparison is a module rather
   than a one-off on each page that makes it. */
.au-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 32px; }
.au-vs__col {
  background: var(--color-panel); border: 1px solid var(--rsa-line-08);
  border-radius: var(--radius-xs); padding: var(--pad-card);
}
.au-vs__col--win { border-top: 4px solid var(--color-accent); }
.au-vs__col--lose { border-top: 4px solid var(--rsa-line-25); }
.au-vs__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font: var(--fw-black) 15px/1 var(--font-display);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--color-text);
}
.au-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: var(--fs-body-sm); color: var(--color-text-muted); }
/* A hanging indent, not a grid. A grid makes every inline child of the item
   its own cell, so an item like "<strong>Theory test fee</strong>, set by the
   provider (see <a>theorytest.ie</a>)" lands word by word in a 20px column.
   With the marker absolutely positioned, any inline markup flows as prose. */
.au-checklist li { position: relative; padding-left: 28px; }
.au-checklist li::before {
  content: '\2713'; position: absolute; left: 0; top: 0;
  color: var(--color-accent); font-weight: var(--fw-black);
}
/* Page Quality Rule 19: the disadvantage side gets crosses, not ticks. */
.au-checklist--negative li::before { content: '\2715'; color: var(--color-text-red); }

/* ---------- 21. PRND gear selector ---------- */
/* interactions.js binds to [data-prnd] and toggles .is-active on marks,
   readout cards and caption lines. Every class name below is that contract,
   re-provided on the new palette. Nothing here may be renamed. */
.prnd-stage { display: grid; gap: 20px; }
.prnd-stage--hero { grid-template-columns: 1fr; max-width: 220px; }
.prnd-stage--full { grid-template-columns: 200px minmax(0, 1fr); align-items: start; gap: 36px; }
.prnd-lever-wrap {
  position: relative; background: var(--color-panel);
  border: 1px solid var(--rsa-line-16); border-radius: var(--radius-md);
  padding: 18px 16px; display: grid; gap: 10px;
}
.prnd-rail { display: grid; gap: 6px; }
.prnd-mark {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: var(--radius-xs); cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--color-text-muted);
  font: var(--fw-bold) var(--fs-small)/1 var(--font-body); text-align: left; width: 100%;
}
.prnd-mark:hover { border-color: var(--rsa-line-16); }
.prnd-mark-letter {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-xs);
  background: var(--rsa-track); color: var(--color-track-text);
  font: var(--fw-black) 17px/1 var(--font-display);
}
.prnd-mark-name { letter-spacing: var(--ls-label); text-transform: uppercase; }
.prnd-mark.is-active { background: rgba(142,219,79,.07); border-color: var(--color-accent); color: var(--color-text); }
.prnd-mark.is-active .prnd-mark-letter { background: var(--color-accent); color: var(--color-on-accent); }
.prnd-indicator { height: 4px; border-radius: 100px; background: var(--color-accent); }
.prnd-caption-block { display: grid; gap: 8px; }
.prnd-caption-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: var(--fw-black) var(--fs-caption)/1 var(--font-display);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--color-accent);
}
.prnd-caption-eyebrow-pos {
  background: var(--color-accent); color: var(--color-on-accent);
  padding: 4px 8px; border-radius: 2px;
}
.prnd-caption-eyebrow-name { color: var(--color-text-muted); }
.prnd-caption { font-size: var(--fs-body-sm); color: var(--color-text-muted); min-height: 3em; }
.prnd-caption-line { display: none; }
.prnd-caption-line.is-active { display: block; }
.prnd-readout { display: grid; gap: 14px; }
.prnd-readout-card {
  display: none; background: var(--color-panel); border: 1px solid var(--rsa-line-08);
  border-left: 3px solid var(--color-accent); border-radius: var(--radius-xs); padding: 22px;
}
.prnd-readout-card.is-active { display: block; }
.prnd-readout-card h3, .prnd-readout-card h4 { text-transform: none; margin-bottom: 8px; color: var(--color-text); }
.prnd-readout-card p { color: var(--color-text-muted); font-size: var(--fs-body-sm); }
.prnd-cues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.prnd-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 100px;
  background: var(--color-bg-deep); border: 1px solid var(--rsa-line-16);
  font-size: var(--fs-caption); color: var(--color-text-muted);
}
.prnd-tag .ph { color: var(--color-accent); }

/* ---------- 22. Lead form ---------- */
/* The lead form markup is reused VERBATIM from the v1 include. It is the one
   surface on this site that writes to the Streak CRM, nb-lead-form.js finds
   its step pills through `form.parentElement`, and it toggles stage
   visibility with the `hidden` property. Re-composing that markup buys
   nothing and risks a silent lead loss, so only the styling is new and every
   class name below is the original.
   Nothing here sets `display` on a stage, so `[hidden]` keeps working. */
/* The card is the one the other RSA sites use, measurement for measurement,
   so a learner meets the same object on Cork, Leinster and here. */
.lead-form-card {
  background: var(--color-panel); border: 1px solid var(--rsa-line-08);
  border-top: 4px solid var(--color-action);
  border-radius: var(--radius-xs); padding: 36px;
  max-width: 980px; margin-inline: auto;
}
.lead-form-header { margin-bottom: 24px; }
.lead-form-header h2, .lead-form-card h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; }
.lead-form-header p { color: var(--color-text-muted); font-size: var(--fs-body-sm); margin: 0; }

/* The step indicator must stay a sibling of the form inside .lead-form-card:
   nb-lead-form.js reaches it with form.parentElement.querySelector. */
.lead-form-steps { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.lead-form-step {
  display: flex; align-items: center; gap: 9px;
  font: var(--fw-bold) var(--fs-small)/1 var(--font-body); color: var(--color-text-muted);
}
.lead-form-step.active { color: var(--color-text); }
.lead-form-step-num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-panel-raised); color: var(--color-text-muted);
  font: var(--fw-black) 12px/1 var(--font-display);
}
.lead-form-step.active .lead-form-step-num { background: var(--color-accent); color: var(--color-on-accent); }
.lead-form-step-line { flex: 1; height: 2px; background: var(--rsa-line-12); }

/* The reassurance above the fields. Two tight columns so four short lines read
   as one block rather than a long ladder, and a hanging indent rather than a
   grid: a grid makes every inline child its own cell, which put the phone
   number in the 18px tick column, one word per line. */
.lead-form-points {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
}
.lead-form-points li {
  position: relative; padding-left: 22px;
  font-size: var(--fs-small); line-height: 1.5; color: var(--color-text-muted);
}
.lead-form-points li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--color-accent); font-weight: var(--fw-black);
}
/* The phone is an offer, not another tick. It sits under the block, on one
   line, and its link stays a link. */
.lead-form-call { margin: 14px 0 0; font-size: var(--fs-small); color: var(--color-text-muted); }
.lead-form-call a { color: var(--color-accent); text-decoration: none; white-space: nowrap; }
.lead-form-call a:hover { color: var(--color-text); text-decoration: underline; }

@media (max-width: 600px) {
  .lead-form-points { grid-template-columns: 1fr; }
}

.lead-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lead-form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.lead-form-field.full { grid-column: 1 / -1; }
.lead-form-label {
  font: var(--fw-bold) var(--fs-caption)/1.3 var(--font-body);
  letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted);
}
.lead-form-input, .lead-form-select, .lead-form-textarea {
  width: 100%; padding: 13px 14px; min-height: 48px;
  background: var(--color-bg-deep); color: var(--color-text);
  /* Chrome paints the native date picker's calendar glyph from color-scheme,
     not from any property the sheet sets. With no scheme declared it assumes
     light and draws a DARK glyph, which is invisible on this dark field: the
     control is still there and still clickable, you just cannot see it. The
     scheme is declared next to the background so the two cannot drift apart.
     Tallaght never had the bug because it sets color-scheme globally. */
  color-scheme: dark;
  border: 1px solid var(--color-field-border); border-radius: var(--radius-xs);
}
.lead-form-input::placeholder, .lead-form-textarea::placeholder { color: var(--color-placeholder); }
.lead-form-input:focus, .lead-form-select:focus, .lead-form-textarea:focus { border-color: var(--color-accent); outline: none; }
.lead-form-textarea { min-height: 90px; resize: vertical; }
.lead-form-select { appearance: none; background-image: none; }

.lead-form-radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.lead-form-radio {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 16px; border-radius: var(--radius-xs);
  background: var(--color-bg-deep); border: 1px solid var(--rsa-line-16);
  font-size: var(--fs-body-sm); color: var(--color-text);
}
.lead-form-radio:hover { border-color: var(--color-accent); }
.lead-form-radio input { accent-color: var(--color-accent); }

.lead-form-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 50px; padding: var(--pad-btn); cursor: pointer;
  background: var(--color-action); color: var(--color-on-action);
  border: 1px solid transparent; border-radius: var(--radius-xs);
  font: var(--fw-black) var(--fs-label)/1 var(--font-display);
  letter-spacing: var(--ls-button); text-transform: uppercase;
}
.lead-form-submit:hover { background: var(--color-action-hover); }
.lead-form-submit:disabled { opacity: .6; cursor: default; }
.lead-form-back {
  cursor: pointer; padding: 13px 18px; min-height: 50px;
  background: transparent; border: 1px solid var(--rsa-line-25);
  border-radius: var(--radius-xs); color: var(--color-text);
  font: var(--fw-bold) var(--fs-small)/1 var(--font-body);
}
.lead-form-back:hover { background: var(--rsa-line-08); }
.lead-form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lead-form-actions .lead-form-submit { width: auto; flex: 1; }
.lead-form-fineprint { grid-column: 1 / -1; margin: 0; font-size: var(--fs-caption); color: var(--color-text-faint); }
.lead-form-status { margin-top: 14px; font-size: var(--fs-body-sm); color: var(--color-text-muted); }
.lead-form-status.is-error, .cn-lead-status.is-error { color: var(--color-text-red); }

/* The county form and the homepage form share these two names. */
.cn-lead-status { margin-top: 14px; font-size: var(--fs-body-sm); color: var(--color-text-muted); }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1100px) {
  .au-dash { grid-template-columns: 1fr; }
  .au-aside { position: static; }
  .au-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .au-hero__aside { justify-self: start; }
  .au-story { grid-template-columns: 1fr; gap: 40px; }
  .au-story--flip > :first-child { order: 0; }
  .au-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .prnd-stage--full { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  :root { --gutter: var(--gutter-mobile); }
  body { font-size: var(--fs-body); }
  .au-section { padding: 64px 0; }
  /* The display floor overflows at 375px on the longest place names, so it
     scales to the viewport with a floor that fits. */
  h1 { font-size: clamp(31px, 8.6vw, 52px); }
  .au-header__inner { height: 72px; }
  .au-nav { display: none; }
  .au-header__cta .au-btn { display: none; }
  .au-menu-btn { display: block; margin-left: auto; }
  .au-proof { display: grid; grid-template-columns: 1fr; }
  .au-proof__cell { border-left: 0; border-top: 1px solid var(--rsa-line-16); padding: 20px 0; }
  .au-proof__cell:first-child { border-top: 0; }
  .au-offset img { height: 300px; }
  .au-tickets, .au-reviews, .au-cards, .au-vs { grid-template-columns: 1fr; }
  .au-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .au-band__inner { flex-direction: column; align-items: flex-start; }
  .au-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .au-footer__bottom { flex-direction: column; }
  .au-rail { grid-template-columns: 1fr 1fr; }
  .lead-form-card { padding: 22px; }
  .lead-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .au-btn-row { display: grid; grid-template-columns: 1fr; }
  .au-rating__value { font-size: 64px; }
}

/* ---------- 24. Shared furniture ---------- */
/* Markup these rules style lives in includes shared with the old design, so
   the class names are fixed. They are re-provided here because v2 replaces
   unified.css outright and an undefined class is an unstyled one. */

/* AI search bar. hero-search.js binds by id; the classes are its styling. */
.hero-search-bar { margin-top: var(--space-12); max-width: 560px; }
.hero-search-input-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 52px; align-items: stretch;
  background: var(--color-panel); border: 1px solid var(--rsa-line-16);
  border-radius: var(--radius-xs); overflow: hidden;
}
.hero-search-input {
  border: 0; background: none; color: var(--color-text);
  padding: 15px 16px; min-height: 52px; min-width: 0;
}
.hero-search-input::placeholder { color: var(--color-placeholder); }
.hero-search-input:focus { outline: none; }
.hero-search-btn {
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--color-action); color: var(--color-on-action);
}
.hero-search-btn:hover { background: var(--color-action-hover); }
.hero-search-results { margin-top: 10px; font-size: var(--fs-body-sm); color: var(--color-text-muted); }
.hero-search-results:empty { display: none; }

/* The breadcrumb include. */
.breadcrumb, .c-breadcrumb { padding: 20px 0 0; font-size: var(--fs-caption); color: var(--color-text-faint); }
.breadcrumb a, .c-breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover, .c-breadcrumb a:hover { color: var(--color-text); }

/* The injected container from shared includes. unified.css defined this and
   v2 does not inherit it, so without this a shared block has no gutter. */
.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }

/* Screen-reader-only text used by shared includes. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Legal pages. Their bodies are plain semantic markup inside .policy-content
   or .terms-content, so they keep their own structure and get the system's
   typography here instead of a page-local stylesheet. */
.policy-content, .terms-content { padding: var(--space-section) 0; background: var(--color-bg); }
.policy-content .container, .terms-content .container { max-width: 900px; }
.prose { color: var(--color-text-body); font-size: var(--fs-body); line-height: var(--lh-relaxed); }
.prose h2, .prose h3 { margin: 40px 0 12px; text-transform: none; }
.prose h2 { font-size: var(--fs-h3); }
.prose h3 { font-size: 21px; }
.prose h3:first-child, .prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 22px; display: grid; gap: 9px; }
.prose li { color: var(--color-text-muted); }
.prose strong { color: var(--color-text); }
.prose a { color: var(--color-accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--color-text-strong); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: var(--fs-body-sm); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rsa-line-12); }
.prose th { color: var(--color-text); font-weight: var(--fw-bold); }
.terms-version, .policy-version { margin-top: 36px; font-size: var(--fs-caption); color: var(--color-text-faint); }
/* The cancellation form schedule is a quoted document, so it reads as one. */
.terms-content .prose > div { background: var(--color-panel); border-left: 3px solid var(--color-accent); padding: 22px 24px; margin: 0 0 1.4em; }

/* ---------- 24b. Furniture the rebuild found missing ---------- */
/* Everything here is a class name a shared include or a script owns, so none
   of it can be renamed into the au- namespace. Each one was reported by the
   person rebuilding the page that needed it, and each had a visible symptom. */

/* Tabs. This site has no initTabs: interactions.js finds .tabs, .tab-btn and
   .tab-panel, matches a panel by data-tab-panel and toggles .active only. It
   never clears an inline style and never touches aria-hidden, so visibility
   has to key off .active or every panel shows at once. */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.au-rail button.active {
  border-color: var(--color-accent); background: rgba(142,219,79,.06); color: var(--color-text);
}

/* The breadcrumb include renders nav.breadcrumb > ol.breadcrumb-list > li.
   v2 resets no list, so without this the trail reads "1. Home 2. Counties". */
.breadcrumb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before { content: '/'; color: var(--color-text-faint); }

/* The contact form. It is reused verbatim because it writes to the CRM, so
   these names are fixed. Without them its inputs inherit near-white text onto
   the browser's default white field and nobody can read what they type. */
.contact-form-section { padding: var(--space-section) 0; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-group label {
  font: var(--fw-bold) var(--fs-caption)/1.3 var(--font-body);
  letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 14px; min-height: 48px;
  background: var(--color-bg-deep); color: var(--color-text);
  border: 1px solid var(--color-field-border); border-radius: var(--radius-xs);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--color-placeholder); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--color-accent); outline: none; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-body-sm); color: var(--color-text-muted); }
.form-checkbox input { accent-color: var(--color-accent); margin-top: 3px; }
/* The include's own script writes these three. */
.form-status { margin-top: 12px; font-size: var(--fs-body-sm); color: var(--color-text-muted); }
.form-status--loading { color: var(--color-text-muted); }
.form-status--success { color: var(--color-accent); }
.form-status--error { color: var(--color-text-red); }

/* The lever actually moves. interactions.js sets --prnd-index on the
   indicator and the travel is pure CSS; without a consumer the cards and the
   captions change while the lever sits still. The rail is four 34px marks
   with a 6px gap, so the pitch is 40px. */
.prnd-indicator {
  position: absolute; left: 10px; width: 4px; height: 34px;
  border-radius: 100px; background: var(--color-accent);
  /* Driven by `top` rather than a transform: the indicator is a grid item in
     the rail, and a transform on it did not take in the browser even though
     the same rule moved a detached copy. `top` is unambiguous here. */
  top: calc(22px + 40px * var(--prnd-index, 0));
  transition: top var(--dur-base, .25s) ease;
}
.prnd-lever-wrap { position: relative; }
.prnd-rail { padding-left: 12px; }

/* The cue strip is a ul, so it needs the list reset the chip rule assumes. */
.prnd-cues { list-style: none; margin: 0; padding: 0; }
.prnd-cues li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 100px;
  background: var(--color-bg-deep); border: 1px solid var(--rsa-line-16);
  font-size: var(--fs-caption); color: var(--color-text-muted);
}

/* The two tones the progress markup still sets. One palette, so the strong
   side is the accent and the weak side is the amber, matching au-meter. */
.progress-fill--high { background: var(--color-accent); }
.progress-fill--low { background: var(--color-eyebrow); }

/* A flag on a price ticket, for the tier the page calls out. */
.au-ticket__flag {
  align-self: flex-start; padding: 5px 10px; border-radius: 2px;
  background: var(--rsa-road-black); color: var(--rsa-chalk);
  font: var(--fw-black) 10px/1 var(--font-display);
  letter-spacing: .08em; text-transform: uppercase;
}
.au-ticket--best .au-ticket__flag { background: var(--rsa-road-black); color: var(--rsa-chalk); }

/* A closing caption. au-section-intro is an intro and was being stretched. */
.au-note { margin-top: 16px; font-size: var(--fs-caption); color: var(--color-text-faint); max-width: 70ch; }

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- 25. Legacy variable shim ---------- */
/* pay-now and create-gift-voucher carry roughly 1,170 lines of page-local CSS
   that reference unified.css custom properties. Those properties do not exist
   in v2, so without this every rule using them silently falls back to nothing:
   transparent cards, invisible borders, unstyled buttons.
   Nine of these twenty names are not defined in unified.css either, so those
   rules already fall back on the LIVE site. They are given real values here,
   which makes the rebuilt pages better than the originals rather than worse.
   Remove this block only when those two pages are rebuilt properly. */
:root {
  --accent:           var(--color-accent);
  --accent-bright:    var(--color-accent);
  --accent-green:     var(--color-accent);
  --accent-red:       var(--color-action);
  --accent-amber:     var(--color-eyebrow);
  --bg-base:          var(--color-bg);
  --bg-deep:          var(--color-bg-deep);
  --bg-surface:       var(--color-panel);
  --bg-card:          var(--color-panel);
  --bg-warm:          var(--color-panel-raised);
  --border:           var(--rsa-line-16);
  --border-subtle:    var(--rsa-line-12);
  --text-primary:     var(--color-text);
  --text-secondary:   var(--color-text-body);
  --text-muted:       var(--color-text-muted);
  --font-heading:     var(--font-display);
  --space-lg:         2rem;
  --space-xl:         3rem;
}

/* Checkout furniture that only unified.css used to style.
   Found by listing every class the two checkout templates render and
   subtracting the ones their own page-local CSS defines: thirteen names had
   no rule at all under v2. `.pn-select-btn` was the one that mattered, since
   an unstyled Select button is a browser-default grey box on a dark card. */
.section-inner { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.lead-form-section { padding: var(--space-section) 0; background: var(--color-bg); }
.breadcrumb-sep { margin: 0 8px; color: var(--color-text-faint); }

.pn-checkout-main { display: grid; gap: 28px; }
.pn-select-btn {
  cursor: pointer; width: 100%; min-height: 46px; padding: 12px 16px;
  border: 1px solid transparent; border-radius: var(--radius-xs);
  background: var(--color-action); color: var(--color-on-action);
  font: var(--fw-black) var(--fs-label)/1 var(--font-display);
  letter-spacing: var(--ls-button); text-transform: uppercase;
}
.pn-select-btn:hover { background: var(--color-action-hover); }

.gv-details-form, .gv-personalise-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gv-details-form > .full, .gv-personalise-form > .full { grid-column: 1 / -1; }
.gv-voucher-logo { width: 96px; margin-bottom: 14px; }
.gv-voucher-package { font: var(--fw-bold) var(--fs-body-sm)/1.3 var(--font-body); }
.gv-voucher-value { font: var(--fw-black) clamp(34px, 5vw, 52px)/1 var(--font-display); letter-spacing: var(--ls-tighter); }

@media (max-width: 768px) {
  .gv-details-form, .gv-personalise-form { grid-template-columns: 1fr; }
}

/* ---------- 26. Sticky mobile call bar ---------- */
/* base.njk renders this on every page, so it needs a rule on every page.
   Page Quality Rule 3: visible by default on mobile, hidden by the script
   only while the hero is on screen, and correct with no JavaScript at all. */
.mobile-cta-bar { display: none; }

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: var(--z-sticky-cta);
    background: var(--color-bg-deep);
    border-top: 1px solid var(--rsa-line-16);
    /* Page Quality Rule 18: clear of the iOS home indicator. */
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px rgba(0,0,0,.45);
  }
  .mobile-cta-bar.hero-visible { display: none; }
  .mobile-cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 10px; border-radius: var(--radius-xs);
    font: var(--fw-black) var(--fs-label)/1 var(--font-display);
    letter-spacing: var(--ls-button); text-transform: uppercase; text-decoration: none;
  }
  .mobile-cta-call { background: transparent; border: 1px solid var(--rsa-line-25); color: var(--color-text); }
  .mobile-cta-book { background: var(--color-action); color: var(--color-on-action); }
  .mobile-cta-book:hover { background: var(--color-action-hover); }

  /* The bar covers the end of the page, so the footer gets room beneath it. */
  .au-footer { padding-bottom: 86px; }
}

/* It must never cover a field someone is typing into. */
body:has(input:focus, select:focus, textarea:focus) .mobile-cta-bar { display: none; }
