/*
 * Plain CSS. No framework, no build step — constitution v1.5.0.
 *
 * DESIGN PASS (Sept 2026, branch design-review). The site restyled to the
 * Fairstone Brand Guide (Nov 2022) for structure and type; the colours are the
 * firm's own since October 2026 (navy #1D2638, Copper Coin #B47D64, from Advies
 * via Fairstone). Brand navy carries the
 * header, hero, dark bands and footer (the 80% tint had that job before and
 * read as a different brand); the eight-petal icon is the recurring visual
 * device (guide p25); photography takes a navy multiply overlay (p23);
 * Montserrat headings at Medium/Bold, Open Sans body (p18-19). Every class
 * the templates and the mu-plugin emit is kept; only its treatment changes.
 *
 * Rules are deliberately UNLAYERED. WordPress emits its own styles
 * (global-styles, core block CSS) unlayered, and an unlayered rule beats
 * every @layer regardless of specificity — which is how core's grey
 * .wp-element-button overrode the hero buttons once already. Staying out
 * of layers keeps precedence decided by specificity and source order,
 * both of which this file controls. Satisfies constitution v1.6.0
 * condition (c).
 */

/**
 * T012 — Design tokens.
 *
 * Plain custom properties on :root. There is no framework configuration and no
 * build step: what is written here is what the browser receives.
 *
 * Palette sampled from the live Fairstone site (fairstone.co.uk) so the rebuild
 * reads as Fairstone rather than as a neutral placeholder. Swap these values —
 * and brand.php — to produce the next partner-firm site.
 *
 * TODO: replace the font stack once Fairstone supplies their webfont files.
 * The stack below is a system fallback chosen to sit close in tone.
 */
:root {
  /* ===================================================================
     BRAND PALETTE — Fairstone Brand Guide (November 2022), p17.
     Values quoted verbatim. If one disagrees with the guide, the guide
     wins; tests/unit/test-brand-contrast.php asserts they match.

     ⚠️ THREE COLOURS CANNOT BE USED THE OBVIOUS WAY.
     Measured against white, both directions:
       copper #B47D64 — 3.5:1  decoration or large text only; buttons use a
                               lifted tint (--color-accent-500) so navy text clears AA
       blue  #71C5E8 — 1.9:1   background only, dark text
       pink  #EF426F — 3.7:1   large text or decoration only
     Use the component classes below rather than these tokens directly
     for foreground/background pairs; they bake in a compliant pairing.
     =================================================================== */

  /*
   * T014 — the nine palette entries are DECLARED IN theme.json, not here.
   *
   * WordPress emits them as --wp--preset--color--<slug> (the `global-styles`
   * handle, which inc/blocks.php deliberately keeps enqueued). Aliasing them
   * to the theme's own names keeps 1,400 lines of component CSS unchanged
   * while leaving exactly one place where a brand hex is written down.
   *
   * To rebrand: edit theme.json. Do not reintroduce a hex below — a second
   * declaration is what tests/unit/test-brand-contrast.php exists to catch,
   * and what let the editor's colour picker and the rendered site disagree.
   */

  /* Navy #1D2638 (the firm's own, Oct 2026). Unrestricted: 15.2:1 against white. */
  --color-brand-900: var(--wp--preset--color--brand);

  /* Light navy. Unrestricted: 5.4:1 against white. */
  --color-brand-500: var(--wp--preset--color--brand-light);

  /* Copper Coin #B47D64 (Pantone 8023C). DECORATION OR LARGE TEXT ONLY: 3.5:1 on
     white, and navy on it is 4.4:1 — just short of AA for body text. Buttons use
     the lifted --color-accent-500 below; small labels on navy use -40. */
  --color-accent-copper: var(--wp--preset--color--accent-copper);

  /* Gold #9B814A, from the Advies Apex diagram (Sep 2026). DECORATION ONLY: 3.7:1
     on white, and navy on it is 4.1:1. Text on gold uses -80 below. */
  --color-accent-gold: var(--wp--preset--color--accent-gold);

  /* Blue. BACKGROUND ONLY — never white text (1.9:1). Navy on it: 7.9:1. */
  --color-accent-blue: var(--wp--preset--color--accent-blue);

  /* Pink — Pantone 191C. Large text or decoration only (3.7:1). */
  --color-accent-pink: var(--wp--preset--color--accent-pink);

  /* Neutrals. Slate and near-black are unrestricted. */
  --color-ink-900: var(--wp--preset--color--ink);
  --color-ink-700: var(--wp--preset--color--slate);
  --color-white:   var(--wp--preset--color--white);
  --color-brand-50: var(--wp--preset--color--brand-tint);

  /*
   * DERIVED VALUES — tints and shades of the entries above.
   *
   * These are NOT palette entries: they have no theme.json equivalent and must
   * NOT be offered to editors as colour choices (contracts/design-tokens.md).
   *
   * The navy ramp is drawn in HSL at the navy's hue and saturation (220°, 32%)
   * with the lightness stepped up — the firm supplied one navy, not a ramp —
   * and the copper tints are straight mixes toward white. Every pairing the
   * stylesheet ships is asserted in tests/unit/test-brand-contrast.php.
   *
   * ⚠️ Rebranding therefore edits TWO places: the palette in theme.json and
   * this ramp. Headings use --color-brand-800, so changing only theme.json
   * leaves every heading on the previous firm's colour. See findings.md F-009.
   */
  --color-brand-800: #2a3751;  /* headings; white on it 11.9:1 */
  --color-brand-700: #37496c;  /* white on it 9.0:1 */
  --color-brand-600: #4e6797;
  --color-brand-100: #d0d4dc;  /* hairlines, body copy on navy (8.0:1 on brand-800) */

  --color-accent-copper-80: #966c5b;  /* copper toward navy */
  --color-accent-copper-40: #dabeb2;  /* labels and hover text on navy: 5.1:1 on brand-700 */
  --color-accent-copper-20: #f0e5e0;

  --color-accent-gold-80: #826f46;  /* gold toward navy, same 20% as copper-80; white on it 4.9:1 */

  --color-accent-blue-40: #c6e8f5;
  --color-accent-blue-20: #e2f3fa;

  --color-accent-pink-40: #f8b3c5;
  --color-accent-pink-20: #fcd9e2;

  --color-ink-500: #667380;
  --color-ink-200: #dcdde3;
  --color-ink-50:  #f6f6f8;

  /* Button fills. The palette copper carries navy text at only 4.4:1, so the
     fill is copper lifted 5% toward white (4.7:1) and the hover 20% (5.8:1):
     both read as the same copper, both clear AA. */
  --color-accent-500: #b8846c;
  --color-accent-600: #c39783;
  --color-accent-100: var(--color-accent-copper-20);

  /* ===================================================================
     TYPOGRAPHY — brand guide p18.
     Montserrat for headings, Open Sans for body. Self-hosted variable
     woff2, Latin subset. No third-party font service (FR-011).
     =================================================================== */
  --font-sans: "Open Sans", "Open Sans Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Montserrat", "Montserrat Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Rhythm */
  /* Logo (41px) + .site-header__bar padding (2 x 1rem) + 1px border. The mobile
     nav overlay opens below this so the wordmark stays visible; keep the two in
     step if the header's padding or logo size changes. */
  --fs-header-height: 4.5rem;
  --spacing-section: clamp(4.5rem, 3rem + 4.5vw, 8rem);
  /* Title bands: the photograph drops below the band by the overhang, and its
     corner cut starts exactly at the band's edge (.page-header__media, .hero__media). */
  --page-header-pad: 4.5rem;
  --page-header-overhang: 3.5rem;
  --radius-card: 1rem;
  --radius-ui: 0.375rem;      /* buttons, inputs — Fairstone uses a small radius, not pills */
  --shadow-card: 0 1px 2px rgb(29 38 56 / 0.06), 0 18px 40px -22px rgb(29 38 56 / 0.35);
  --overlay-brand: rgb(29 38 56 / 0.72); /* guide p23: brand multiply at ~80% */
}
@media (min-width: 48rem) {
  :root { --page-header-overhang: 5rem; } /* 5.5rem until November 2026 */
}

/* =====================================================================
   BRAND WEBFONTS
   Variable fonts: one file per family covers every weight, which is
   both smaller and simpler than shipping a static face per weight.
   font-display: swap so text is never invisible (FR-012).
   ===================================================================== */
@font-face {
  font-family: "Montserrat";
  src: url("./brand/fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./brand/fonts/open-sans-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------
   Metric-matched fallbacks.

   font-display: swap keeps text visible but reflows when the real face
   arrives. These override the local fallback's metrics so it occupies
   almost exactly the same space, making that reflow imperceptible.
   Without them the requirement "text visible AND no layout shift" cannot
   both hold (FR-012).
   --------------------------------------------------------------------- */
/* size-adjust values are MEASURED, not estimated.
   The first version of this block used 106% / 104%, which rendered the
   Montserrat fallback 7.5% narrower than the real face — so the mechanism whose
   whole purpose is preventing layout shift was causing one. These come from
   comparing rendered line widths in Chrome; see tools/measure-font-metrics.js. */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  size-adjust: 112.2%;
  ascent-override: 85%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Open Sans Fallback";
  src: local("Arial");
  size-adjust: 106.6%;
  ascent-override: 99%;
  descent-override: 27%;
  line-gap-override: 0%;
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
/* =====================================================================
   RESET

   Replaces Tailwind's Preflight, which this stylesheet was written against
   and which disappeared with the framework. Only the parts the theme
   actually relies on are kept — border-box sizing, zeroed margins, headings
   and lists stripped back so .rich-text/.page-content can style them, and
   form controls inheriting the page font.

   Deliberately NOT a full normalize: a reset for rules nobody depends on is
   bytes with no reader (Principle I). If a component starts fighting a
   browser default, add the line here rather than patching the component.
   ===================================================================== */

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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body { margin: 0; line-height: inherit; }

/* Headings are sized by component, never by the browser's default scale. */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* .rich-text and .page-content put list markers back where content needs
   them; everywhere else a list is a layout device. */
ul, ol, menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

p, h1, h2, h3, h4, h5, h6,
blockquote, figure, figcaption, hr, dl, dd, pre { margin: 0; }

/* Links take their colour from the component, not from the UA stylesheet —
   without this every unstyled link reverts to #0000EE. */
a { color: inherit; text-decoration: inherit; }

b, strong { font-weight: bolder; }

code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1em;
}

small { font-size: 80%; }

table {
  border-collapse: collapse;
  border-color: inherit;
  text-indent: 0;
}

/* Form controls inherit the page font instead of the OS one. The enquiry
   form depends on this — without it Gravity Forms' inputs render in the
   browser default face while their labels use Open Sans. */
button, input, optgroup, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
}

button, [type="button"], [type="submit"], [type="reset"] {
  appearance: button;
  background-image: none;
}

button, [role="button"] { cursor: pointer; }

::placeholder { color: var(--color-ink-500); opacity: 1; }

textarea { resize: vertical; }

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background-color: var(--color-white);
  color: var(--color-ink-700);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-brand-900);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
/* Guide p19: document titles are Montserrat Medium, chapter titles Bold. */
h1 { font-weight: 500; }

/* FR-028 — a visible focus indicator on every interactive element.
   Restyling components is the usual way these get removed, so it is set
   globally rather than per component. */
/* Two-tone focus ring.
   WCAG 2.2 requires a focus indicator to reach 3:1 against adjacent colours.
   No single brand colour does that on every background this site uses — copper
   on a copper button is 1:1, navy on a navy section is 1:1. A dark outline
   with a white halo means at least one of the two is always visible. */
:focus-visible {
  outline: 3px solid var(--color-brand-900);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--color-white);
  border-radius: 2px;
}

/* Never rely on colour alone for link affordance. */
.prose a,
.rich-text a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------------------------------------------------------------------------
   Components
   --------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-brand-900);
  color: #fff;
}
.skip-link:focus { left: 0; }

.container-page {
  width: 100%;
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 64rem) {
  .container-page { padding-inline: 2rem; }
}

/* Buttons.
   Small radius (guide UI examples p32, fairstone.co.uk), not pills. The pairing
   rules from T014 are unchanged: copper carries NAVY text, never white. */
.btn,
.page-content .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-ui);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
/* The .editor-styles-wrapper selectors exist because the block editor's canvas
   has no .page-content wrapper (FR-002). Kept separate so front-end precedence
   over core's unlayered .wp-element-button is unchanged. */

.btn-primary,
.page-content .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
  background: var(--color-accent-500);
  color: var(--color-brand-900);
}
.btn-primary:hover,
.page-content .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button__link:hover {
  /* Lighter copper (darker fails 4.5 with navy text); white on copper is 3.5:1. */
  background: var(--color-accent-600);
  color: var(--color-brand-900);
}

.btn-secondary,
.page-content .wp-block-button.is-outline .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-outline .wp-block-button__link {
  background: transparent;
  color: var(--color-brand-900);
  box-shadow: inset 0 0 0 1px var(--color-brand-900);
}
.btn-secondary:hover,
.page-content .wp-block-button.is-outline .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button.is-outline .wp-block-button__link:hover {
  background: var(--color-brand-900);
  color: #fff;
}

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9375rem; }

/* Blue cannot carry white text (1.9:1). Navy on blue is 7.9:1. */
.panel-info {
  background: var(--color-accent-blue);
  color: var(--color-brand-900);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

/* Pink is decoration or large text only (3.7:1) — never body copy. */
.accent-rule { border-block-start: 4px solid var(--color-accent-pink); }

/* Editor-authored content (FR-016) */
.rich-text { max-width: 70ch; }
.rich-text > * + *,
.rich-text > :where(.wp-block-post-content) > * + *,
.page-content > * + *,
.page-content > :where(.wp-block-post-content) > * + *,
.page-content .wp-block-group > * + * { margin-top: 1.2em; }
/* An article that opens on a heading would otherwise stack the h2's 2.8em on
   top of the section padding. */
.rich-text > :where(.wp-block-post-content) > :first-child { margin-top: 0; }

.rich-text h2, .page-content h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  line-height: 1.2;
  margin-top: 2.8em;
}
.rich-text h3, .page-content h3 { font-size: 1.1875rem; line-height: 1.3; margin-top: 2.2em; }

/* Prose sections on inner pages. A hairline opens each one; the heading holds
   the left column and stays put while its copy scrolls on the right. An editor
   makes one by putting a heading and its paragraphs in a Group block with the
   class section-row — ungrouped content still reads as plain prose. */
.page-content > .section-row,
.page-content > :where(.wp-block-post-content) > .section-row {
  display: grid;
  max-width: none;
  row-gap: 0;
  column-gap: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--color-brand-100);
}
.page-content > * + .section-row,
.page-content > :where(.wp-block-post-content) > * + .section-row { margin-top: 4rem; }
.page-content .section-row > h2 {
  margin: 0;
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.625rem);
  line-height: 1.25;
}
.page-content .section-row > h2 + * { margin-top: 1.25rem; }
.page-content .section-row > :not(h2) { max-width: 60ch; }

/* Regulatory small print under investment copy — feature 011. */
.page-content .risk-warning {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-brand-100);
  color: var(--color-ink-700);
  font-size: 0.875rem;
  max-width: 70ch;
}
@media (min-width: 48rem) {
  .page-content > .section-row,
  .page-content > :where(.wp-block-post-content) > .section-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 4rem;
    padding-top: 3rem;
  }
  .page-content .section-row > h2 {
    grid-column: 1;
    grid-row: 1 / span 60; /* the heading's cell is the whole section, so sticky has room to work */
    align-self: start;
    position: sticky;
    top: calc(var(--fs-header-height) + 2rem);
    padding-right: 2rem;
  }
  .page-content .section-row > :not(h2) { grid-column: 2; }
  .page-content .section-row > h2 + * { margin-top: 0; }
}
@media (min-width: 64rem) {
  .page-content > .section-row,
  .page-content > :where(.wp-block-post-content) > .section-row { column-gap: 6rem; }
}


.rich-text ul, .page-content ul { list-style: disc; padding-left: 1.4em; }
.rich-text ol, .page-content ol { list-style: decimal; padding-left: 1.4em; }
.rich-text img, .page-content img { border-radius: var(--radius-card); height: auto; max-width: 100%; }

/* Tables are the one thing allowed to scroll horizontally. */
.rich-text .table-scroll, .page-content .wp-block-table { overflow-x: auto; }
.rich-text .wp-block-table thead,
.page-content .wp-block-table thead { border-bottom: 0; }
.rich-text table, .page-content table { width: 100%; border-collapse: collapse; }
.rich-text th, .rich-text td, .page-content th, .page-content td {
  border: 1px solid var(--color-ink-200);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.rich-text th, .page-content th { background: var(--color-brand-50); color: var(--color-brand-900); }

/* ---------------------------------------------------------------------------
   Gravity Forms
   Default plugin CSS is dequeued (inc/enqueue.php), so the enquiry form is
   styled here. Focus indicators come from the global :focus-visible rule —
   restyling a form is the usual way those get lost.
   --------------------------------------------------------------------------- */
.fairstone-form .gform_fields {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fairstone-form .gfield_label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--color-brand-900);
}

/* Required is stated in text, never by colour or a bare asterisk alone. */
.fairstone-form .gfield_required {
  margin-left: 0.25rem;
  font-weight: 400;
  color: var(--color-ink-500);
}

.fairstone-form input[type="text"],
.fairstone-form input[type="email"],
.fairstone-form input[type="tel"],
.fairstone-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-ink-200);
  border-radius: var(--radius-ui);
  background: #fff;
  color: var(--color-ink-900);
  font: inherit;
}

.fairstone-form textarea { min-height: 9rem; resize: vertical; }

.fairstone-form input:hover,
.fairstone-form textarea:hover { border-color: var(--color-brand-500); }

/* Error state: a red border AND an icon-free text message below the field,
   so colour is never the only signal. */
.fairstone-form .gfield_error input,
.fairstone-form .gfield_error textarea {
  border-color: #b3261e;
  border-width: 2px;
}

.fairstone-form .validation_message {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #b3261e;
}

/* The error summary at the top of the form — focused on failure. */
.fairstone-form .gform_submission_error,
.fairstone-form .gform_validation_errors {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid #b3261e;
  border-radius: var(--radius-ui);
  background: #fdf3f2;
  color: #7a1b15;
}

.fairstone-form .gform_validation_errors h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #7a1b15;
}

.fairstone-form .gform_validation_errors a { text-decoration: underline; }

.fairstone-form .gform_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.85rem 2rem;
  border: 0;
  border-radius: var(--radius-ui);
  background: var(--color-accent-500);
  color: var(--color-brand-900);
  font-weight: 600;
  cursor: pointer;
}

.fairstone-form .gform_button:hover { background: var(--color-accent-600); color: var(--color-brand-900); }

/* The honeypot must be hidden from sight AND from assistive technology, but
   never with display:none on a labelled field a screen-reader user might
   otherwise fill in and be classified as a bot. */
.fairstone-form .gform_validation_container,
.fairstone-form .gfield--type-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/*
 * T078 — layout for CMS-edited page content (unchanged mechanics).
 * core/post-content wraps every block in one div; display:contents removes
 * that wrapper from layout, and every rule reaching through it is wrapped in
 * :where() so it contributes zero specificity. See feature 007.
 */
.page-content > :where(.wp-block-post-content),
.rich-text > .wp-block-post-content { display: contents; }

.page-content {
  display: grid;
  grid-template-columns:
    [full-start] minmax(1.25rem, 1fr)
    [wide-start] minmax(0, 72.5rem) [wide-end]
    minmax(1.25rem, 1fr) [full-end];
  padding-block: var(--spacing-section);
}
/* After a title band whose photograph drops into the page, the copy starts
   below the photograph: 2rem under it since November 2026 (was 3.5rem), when
   the client found the gap after the band too big on most pages. From 48rem
   the copy sits beside the drop rather than under it, so it starts closer
   still, and a band without a photograph gets the same distance so the pages
   line up. */
.page-header:has(.page-header__media img) + .page-content,
.page-header:has(.page-header__media img) + .page-section {
  padding-top: calc(var(--page-header-overhang) + 2rem);
}
@media (min-width: 48rem) {
  .page-header + .page-content,
  .page-header + .page-section { padding-top: 6rem; }
  .page-header:has(.page-header__media img) + .page-content,
  .page-header:has(.page-header__media img) + .page-section {
    padding-top: calc(var(--page-header-overhang) + 1rem);
  }
}

/* Prose column: the default home for anything the editor adds. */
.page-content > *,
.page-content > :where(.wp-block-post-content) > * {
  grid-column: wide;
  max-width: 70ch;
}

/* Opt-outs: the container's full width, and edge to edge. */
.page-content > .is-wide,
.page-content > :where(.wp-block-post-content) > .is-wide { max-width: none; }
.page-content > .is-band,
.page-content > :where(.wp-block-post-content) > .is-band {
  grid-column: full;
  max-width: none;
  padding: var(--spacing-section) 1.25rem;
}
.page-content > .is-band:first-child,
.page-content > :where(.wp-block-post-content) > .is-band:first-child { margin-top: calc(-1 * var(--spacing-section)); }
.page-content > .is-band:last-child,
.page-content > :where(.wp-block-post-content) > .is-band:last-child { margin-bottom: calc(-1 * var(--spacing-section)); }

/* A band is a section: a section's worth of air either side of it, and none
   between two bands that meet. */
.page-content > * + .is-band,
.page-content > :where(.wp-block-post-content) > * + .is-band,
.page-content > .is-band + *,
.page-content > :where(.wp-block-post-content) > .is-band + * { margin-top: var(--spacing-section); }
.page-content > .is-band + .is-band,
.page-content > :where(.wp-block-post-content) > .is-band + .is-band { margin-top: 0; }
@media (min-width: 64rem) {
  .page-content > .is-band,
  .page-content > :where(.wp-block-post-content) > .is-band { padding-inline: 2rem; }
}

/* A band's own contents re-align to the readable container. */
.page-content > .is-band > *,
.page-content > :where(.wp-block-post-content) > .is-band > * {
  max-width: 71rem;
  margin-inline: auto;
}

/* Dark band: brand navy with the icon as a watermark (guide p25:
   "used in different ways throughout the branding as a subtle callback"). */
.band-dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-brand-900);
  color: #fff;
}
/* The guide's cover device (p3, p7): two petals of the mark enlarged far past
   the frame, so what remains is the gap between them — a wide diagonal band
   running edge to edge — and one rounded corner at the top left. The band
   itself stays the true navy; the device is a shade darker (the guide has
   it the other way round, base darker and petals lighter). The SVG is square
   so the band's width follows the section's width, not its height, and the
   stripe crosses the full height of every section it sits on. Used on the
   home hero, the title bands, "Ready to talk" and the contact panel; the
   footer and the values band are plain navy. */
.hero-band::before,
.page-header::before,
.cta-band::before,
.contact-direct::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("./brand/fairstone-petal-edge.svg") center top / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
}
.band-dark h2, .band-dark h3, .band-dark p { color: #fff; }
.band-dark .lead, .page-content .band-dark .lead { color: var(--color-brand-100); }
.band-tint {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-brand-50);
}
/* The same device, a shade lighter, on the pale navy band. */
.band-tint::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("./brand/fairstone-petal-edge-white.svg") center top / cover no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

/* Headings that open a section or a card should not inherit prose leading. */
.page-content > :first-child,
.page-content > :where(.wp-block-post-content) > :first-child,
.page-content > .is-band > :first-child,
.page-content > :where(.wp-block-post-content) > .is-band > :first-child,
.card > :first-child,
.step > :first-child,
.value > :first-child,
.feature-row__text > :first-child { margin-top: 0; }

/* Card grid — the "where to start" panels. Auto-fit means the editor can add
   or remove a card without anyone touching a column count. */
.card-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 3rem;
}
.page-content .card-grid > * + * { margin-top: 0; }

.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2.25rem 2rem 2.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card::before {
  /* one petal, the guide's smallest unit of the mark */
  content: "";
  display: block;
  width: 2.25rem;
  height: 1.3rem;
  margin-bottom: 1.25rem;
  background: url("./brand/fairstone-petal-copper.svg") left center / contain no-repeat;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgb(36 23 76 / 0.06), 0 24px 48px -24px rgb(36 23 76 / 0.45); }
.card h3 { font-size: 1.125rem; margin-top: 0; }
.card p { color: var(--color-ink-700); font-size: 0.9375rem; line-height: 1.6; }
.band-tint .card { background: #fff; }
.card a { color: var(--color-brand-900); font-weight: 600; }

/* ------------------------------------------------------------ Advies Apex
 * The service-model wheel (feature 010). Structure contract:
 * specs/010-advies-apex-page/contracts/page-content.md
 *
 * The wheel is a plain four-item list. Phones get a 2×2 grid of tiles; from
 * 40rem it becomes a circle whose segments are one conic gradient, with each
 * item placed over its segment. Position and colour come from the --{role}
 * modifier, never from item order, so an editor reordering the list cannot
 * swap two roles' colours.
 *
 * Segment fills are the -80 shades: white on the true copper (3.5:1) and gold
 * (3.7:1) fails AA. The true colours are decoration only (dots, rules).
 */
.apex-wheel__role--lead      { --apex-fill: var(--color-accent-copper-80); }
.apex-wheel__role--associate { --apex-fill: var(--color-brand-500); }
.apex-wheel__role--admin     { --apex-fill: var(--color-accent-gold-80); }
.apex-wheel__role--technical { --apex-fill: var(--color-brand-900); }
.apex-role--lead      { --apex-accent: var(--color-accent-copper); }
.apex-role--associate { --apex-accent: var(--color-brand-500); }
.apex-role--technical { --apex-accent: var(--color-brand-900); }
.apex-role--admin     { --apex-accent: var(--color-accent-gold); }

.apex {
  display: grid;
  gap: 2.5rem;
  grid-template-areas: "strap" "wheel" "lead" "associate" "technical" "admin";
}
.page-content .apex > *,
.page-content .apex .wp-block-group > * + * { margin-top: 0; }
.apex-wheel     { grid-area: wheel; position: relative; }
.apex-role--lead      { grid-area: lead; }
.apex-role--associate { grid-area: associate; }
.apex-role--technical { grid-area: technical; }
.apex-role--admin     { grid-area: admin; }
.apex__strapline      { grid-area: strap; }

/* Wheel, phone: tiles clockwise from top-left, YOU over the middle. */
.page-content .apex-wheel__roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.apex-wheel__role {
  background: var(--apex-fill);
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.35;
  padding: 1.25rem 1rem;
  text-align: center;
}
.apex-wheel__role strong { font-family: var(--font-display); font-size: 1rem; }
/* Safari stops announcing a list-style:none list as a list; any ::before
   content keeps the semantics. Zero-width and out of flow. */
.apex-wheel__role::before { content: "\200B"; position: absolute; }
.apex-wheel__role--lead      { grid-area: 1 / 1; border-top-left-radius: var(--radius-card); padding-bottom: 3.5rem; }
.apex-wheel__role--associate { grid-area: 1 / 2; border-top-right-radius: var(--radius-card); padding-bottom: 3.5rem; }
.apex-wheel__role--admin     { grid-area: 2 / 2; border-bottom-right-radius: var(--radius-card); padding-top: 3.5rem; }
.apex-wheel__role--technical { grid-area: 2 / 1; border-bottom-left-radius: var(--radius-card); padding-top: 3.5rem; }

.page-content .apex-wheel__you {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 5.5rem;
  aspect-ratio: 1;
  margin: 0;
  border: 0.375rem solid #fff;
  border-radius: 50%;
  background: var(--color-brand-900);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Role sections. */
.page-content .apex-role h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  margin-top: 0;
}
.apex-role h2::before {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--apex-accent);
}
.page-content .apex-role > * + * { margin-top: 0.75rem; }
.apex-role__eyebrow {
  color: var(--color-ink-700);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.page-content .apex-role .apex-role__benefit {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-ink-200);
  border-left: 4px solid var(--apex-accent);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
}

/* "Value. Built." opens the page (the client, November 2026; it closed it before). */
.apex__strapline {
  color: var(--color-brand-900);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  text-align: center;
}

/* Wheel, 40rem+: a circle. Two diagonal hairlines split the segments. */
@media (min-width: 40rem) {
  .apex { grid-template-columns: 1fr 1fr; grid-template-areas: "strap strap" "wheel wheel" "lead associate" "technical admin"; }

  .apex-wheel {
    justify-self: center;
    width: min(100%, 30rem);
    aspect-ratio: 1;
    border-radius: 50%;
    outline: 1px solid var(--color-ink-200);
    outline-offset: 1.25rem;
    background:
      linear-gradient(45deg, transparent calc(50% - 3px), #fff calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
      linear-gradient(-45deg, transparent calc(50% - 3px), #fff calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
      conic-gradient(from -45deg,
        var(--color-accent-copper-80) 0 90deg,
        var(--color-brand-500) 90deg 180deg,
        var(--color-accent-gold-80) 180deg 270deg,
        var(--color-brand-900) 270deg 360deg);
  }
  .page-content .apex-wheel__roles {
    position: absolute;
    inset: 0;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
  }
  .apex-wheel__role {
    align-self: center;
    background: none;
    border-radius: 0;
    padding: 0.5rem;
  }
  .apex-wheel__role--lead      { grid-area: 1 / 2; padding: 1rem 0 0; }
  .apex-wheel__role--associate { grid-area: 2 / 3; padding: 0 0.75rem 0 0; }
  .apex-wheel__role--admin     { grid-area: 3 / 2; padding: 0 0 1rem; }
  .apex-wheel__role--technical { grid-area: 2 / 1; padding: 0 0 0 0.75rem; }
  /* 33% of the wheel (36% until November 2026): at the 26rem desktop wheel the
     larger disc ran into the side labels. */
  .page-content .apex-wheel__you { width: 33%; font-size: clamp(1.75rem, 1rem + 2.25vw, 2.75rem); border-width: 0.6rem; }
}

/* 64rem+: roles either side of the wheel, as in the source diagram. Row by
   row this reads Lead, Associates, Technical, Administration: the DOM order.
   The wheel was 30rem between 4rem gaps until November 2026; 26rem and 3rem
   give the role columns the width they were short of, so each role reads in
   fewer lines and the whole block sits closer to one screen. */
@media (min-width: 64rem) {
  .apex {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem) minmax(0, 1fr);
    grid-template-areas: "strap strap strap" "lead wheel associate" "technical wheel admin";
    column-gap: 3rem;
    align-items: center;
  }
}

@media print {
  .apex-wheel { width: auto; aspect-ratio: auto; }
  .apex-wheel, .apex-wheel__role { background: none; outline: 0; color: #000; }
  .page-content .apex-wheel__roles { position: static; display: block; }
  .page-content .apex-wheel__you { position: static; translate: none; width: auto; border: 0; background: none; color: #000; }
}

/* Numbered steps (CSS counter, not typed copy). */
.step-list { counter-reset: fairstone-step; }
.page-content .step-list > * + * { margin-top: 1.5rem; }
.step {
  counter-increment: fairstone-step;
  position: relative;
  background: var(--color-brand-50);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.75rem 1.75rem 5rem;
}
.step::before {
  content: counter(fairstone-step);
  position: absolute;
  left: 1.75rem;
  top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--color-brand-900);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}
.step h2, .step h3 { font-size: 1.125rem; margin-top: 0; }

/* ------------------------------------------------------------------ hero */

/*
 * The home page opens the way the inner pages do — copy on the navy, the
 * photograph beside it dropping out of the band with its corner cut on the
 * petal angle — but at a larger scale: an even split, the photograph running
 * to the edge of the screen, a deeper drop. No type sits over the photograph.
 * The photo is an image block in the page content, so it can be swapped in
 * the editor.
 */
.home {
  --page-header-overhang: 4rem;
}
@media (min-width: 48rem) {
  .home { --page-header-overhang: 6rem; } /* 7rem until November 2026 */
}
.home .page-content > :where(.wp-block-post-content) > .hero-band,
.home .page-content > .hero-band {
  overflow-x: clip;                                               /* nothing widens the page … */
  overflow-y: visible;                                            /* … but the photograph may leave the band … */
  clip-path: inset(0 0 calc(-1 * var(--page-header-overhang)) 0); /* … downwards only */
  padding-bottom: var(--page-header-pad);
}
/* What follows the hero clears the photograph. The gap under it was 4.5rem
   until November 2026, when the client found the About us section too far
   below the band (the drop above was trimmed at the same time). */
.home .page-content > :where(.wp-block-post-content) > .hero-band + *,
.home .page-content > .hero-band + * { margin-top: calc(var(--page-header-overhang) + 2.5rem); }

.hero { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 48rem) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; }
}
@media (min-width: 64rem) {
  .hero { gap: 5rem; }
}
.page-content .hero > * + * { margin-top: 0; }

.hero h2 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero .lead, .page-content .hero .lead { margin-top: 1.5rem; max-width: 30em; }
.page-content .hero .wp-block-buttons { margin-top: 2.25rem; }

.hero__media,
.page-content .hero__media {
  margin: 0 -1.25rem calc(-1 * (var(--page-header-pad) + var(--page-header-overhang)));
  align-self: end;
}
.hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  box-shadow: var(--shadow-card);
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(var(--page-header-overhang) * 1.55) 100%, 0 calc(100% - var(--page-header-overhang)));
}
@media (min-width: 48rem) {
  .hero__media,
  .page-content .hero__media {
    /* to the right-hand edge of the screen: the band's padding plus whatever
       is left over once the readable width is centred */
    margin-inline: 0 calc(-1 * max(1.25rem, (100vw - 71rem) / 2));
  }
  .hero__media img { border-radius: var(--radius-card) 0 0 var(--radius-card); }
}
@media (min-width: 64rem) {
  .hero__media,
  .page-content .hero__media { margin-right: calc(-1 * max(2rem, (100vw - 71rem) / 2)); }
}

/* Signpost links — a list of destinations, one to a row, with a hairline
   between and a chevron at the end. Used where the old site had a row of pills. */
.page-content .link-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  max-width: 26rem;
  border-top: 1px solid var(--color-brand-100);
}
.page-content .link-list li { margin: 0; border-bottom: 1px solid var(--color-brand-100); }
.page-content .link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-brand-900);
  text-decoration: none;
}
.page-content .link-list a::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-top: 2px solid var(--color-accent-copper);
  border-right: 2px solid var(--color-accent-copper);
  transform: rotate(45deg);
  transition: transform 150ms ease;
}
.page-content .link-list a:hover,
.page-content .link-list a:focus-visible { color: var(--color-brand-500); text-decoration: underline; text-underline-offset: 0.2em; }
.page-content .link-list a:hover::after { transform: translateX(4px) rotate(45deg); }

/* FT Adviser Top 100 badges — the firm's own recognition, shown as the old
   site showed them, beside About us. */
.awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.page-content .awards > * + * { margin-top: 0; }
.awards img,
.page-content .awards img,
.feature-row__media.awards img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  clip-path: none;
  border-radius: 0;
  box-shadow: var(--shadow-card);
}

/* Values — three columns on a dark band, each led by a petal. */
.values-grid { display: grid; gap: 2.5rem; margin-top: 3.5rem; }
@media (min-width: 48rem) {
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}
.page-content .values-grid > * + * { margin-top: 0; }
.value { padding-top: 1.75rem; border-top: 1px solid rgb(255 255 255 / 0.2); }
.value::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1.3rem;
  margin-bottom: 1.25rem;
  background: url("./brand/fairstone-petal-copper.svg") left center / contain no-repeat;
}
.value h3 { font-size: 1.125rem; margin: 0; }
.value p { color: var(--color-brand-100); font-size: 0.9375rem; line-height: 1.6; }

/* Feature rows — copy beside an image or a placeholder, alternating sides. */
.feature-row { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 48rem) {
  .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
  .feature-row--flip .feature-row__media { order: -1; }
  .feature-row--awards { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
@media (min-width: 64rem) {
  .feature-row { gap: 5rem; }
}
.page-content .feature-row > * + * { margin-top: 0; }
.page-content > .feature-row + .feature-row,
.page-content > :where(.wp-block-post-content) > .feature-row + .feature-row { margin-top: var(--spacing-section); }
.feature-row__text h2 { margin-top: 0; }

/* Placeholder shown in place of an image that is not yet supplied — visibly
   a placeholder (dashed, tinted, marked), so it cannot pass as finished. */
.image-placeholder {
  display: grid;
  place-items: end start;
  aspect-ratio: 4 / 3;
  padding: 1.25rem;
  border: 1px dashed var(--color-brand-100);
  border-radius: var(--radius-card);
  background: var(--color-brand-50) url("./brand/fairstone-icon.svg") center / 26% no-repeat;
}
.image-placeholder__label,
.page-content .image-placeholder__label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink-500);
}
.image-placeholder--phone {
  aspect-ratio: 9 / 17;
  max-width: 17rem;
  margin-inline: auto;
  border: 6px solid var(--color-brand-900);
  border-radius: 2.25rem;
  background-color: var(--color-brand-100);
  background-size: 40%;
  box-shadow: var(--shadow-card);
}
/* The mid grey is 3.2:1 on the phone's pale navy; brand-800 on brand-100 is asserted. */
.image-placeholder--phone .image-placeholder__label,
.page-content .image-placeholder--phone .image-placeholder__label { color: var(--color-brand-800); }

/* Blocks we allow but core no longer styles for us. */
.page-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}
/* On a dark band the outline button inverts — navy on navy is invisible. */
.band-dark .wp-block-button.is-outline .wp-block-button__link {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.85);
}
.band-dark .wp-block-button.is-outline .wp-block-button__link:hover {
  background: #fff;
  color: var(--color-brand-900);
}
.page-content figure { margin: 0; }
.page-content figcaption {
  font-size: 0.875rem;
  color: var(--color-ink-500);
  margin-top: 0.6rem;
}
.page-content blockquote {
  border-left: 4px solid var(--color-accent-copper);
  padding-left: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-brand-900);
}
.page-content hr {
  border: 0;
  border-top: 1px solid var(--color-brand-100);
  margin-block: 2.5rem;
}

/* Links in editor content are underlined — colour alone is not enough (1.4.1). */
.page-content a {
  color: var(--color-brand-900);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.page-content a:hover { color: var(--color-brand-500); }
.band-dark a { color: #fff; }
.band-dark a:hover { color: var(--color-accent-copper-40); }
.page-content .wp-block-button__link { text-decoration: none; }

.page-content .lead, .rich-text .lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-ink-700);
}

/* Pages whose template renders its own section after the content. */
.page-content.is-intro { padding-bottom: 0; }

/* The Gravity Forms block reuses .fairstone-form (render_block filter). */
.page-content .wp-block-gravityforms-form,
.page-content .fairstone-form {
  margin-top: 2.5rem;
  max-width: none;
}

/* Embeds — a 16:9 box reserved up front so the video never shifts layout. */
.page-content .wp-block-embed { margin-block: 2.5rem; }
.page-content .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.page-content .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Visually hidden but available to a screen reader (accessibility primitive). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: auto;
  background: var(--color-brand-900);
  padding-block: var(--spacing-section) 2rem;
  color: var(--color-brand-100);
  border-top: 1px solid rgb(255 255 255 / 0.14); /* the CTA band above is the same navy */
}

.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Three blocks in two columns: regulatory takes the second row whole. */
  .site-footer__regulatory { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .site-footer__grid { grid-template-columns: 1.35fr 0.8fr 1.45fr; gap: 3.5rem; }
  .site-footer__regulatory { grid-column: auto; }
}

.site-footer__logo { margin-bottom: 1.25rem; }
.site-footer__address {
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.65;
}
.site-footer__contact { margin-top: 1rem; font-size: 0.9rem; line-height: 1.7; }
.site-footer__heading {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}
.site-footer__links { margin-top: 1.1rem; font-size: 0.9rem; line-height: 1.5; }
.site-footer__links li + li { margin-top: 0.6rem; }
.site-footer a { color: var(--color-brand-100); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.site-footer a:hover { color: #fff; }
.site-footer__regulatory { font-size: 0.875rem; line-height: 1.65; }
.site-footer__regulatory > * + * { margin-top: 0.6rem; }
.site-footer__regulatory > p:first-of-type { margin-top: 1.1rem; }

.site-footer__legal {
  margin-top: 3.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------- site header */

/*
 * Navy bar, white mark, white nav (guide p14: on a dark background the whole
 * logo goes white). A solid background, not a backdrop-filter: the filter made
 * the header the containing block for core/navigation's fixed overlay and
 * sized it to 74px (see feature 007).
 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-brand-900);
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.site-header__bar {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  padding-block: 0.9rem;
}
.site-header__home, .site-header__actions { align-self: center; }

/* The menu runs the full height of the bar — through its padding, to the
   header's bottom edge — so the current page's copper rule sits on the
   header's own dividing line rather than under the word. */
.site-header nav.primary-nav { display: flex; align-items: stretch; margin-block: -0.9rem; } /* nav. — core puts the class on the inner list too */
/* Only where the menu is a row beside the mark. Below that the overlay must
   keep core's display: none while closed. */
@media (min-width: 80rem) {
  .site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open),
  .site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-close,
  .site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-dialog,
  .site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content,
  .site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container,
  .site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item {
    display: flex;
    flex-wrap: nowrap; /* a multi-line flex container sizes its line to content, and stretch fills only the line */
    align-items: stretch;
    height: 100%;
  }
  .site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
    height: 100%;
    padding-block: 0;
  }
  .site-header .primary-nav .wp-block-navigation__submenu-icon { align-self: center; }
}
/* At every width, not only beside the menu row: the nav stretches to the bar's
   full height, so below 80rem the menu button otherwise sits at its top edge. */
.site-header .primary-nav .wp-block-navigation__responsive-container-open { align-self: center; }
.site-header .container-page { max-width: 90rem; }
.site-header__home { display: flex; flex: 0 0 auto; align-items: center; margin-right: auto; }
/* 160px since November 2026 (the client asked for a larger mark; it was 148px). The
   mark is 41px tall at this width, which --fs-header-height above is built on. */
.site-header__home img { flex: 0 0 auto; width: 160px !important; max-width: none; height: auto; }
.site-header .wp-block-navigation { flex: 0 1 auto; min-width: 0; }

.site-header__actions { display: none; flex: 0 0 auto; align-items: center; gap: 1.25rem; }
@media (min-width: 80rem) {
  .site-header__actions { display: flex; }
  .site-header__phone { display: none; }
  /* the header button already says it; the menu item stays for the phone menu */
  .site-header .primary-nav .wp-block-navigation-item:has(> .wp-block-navigation-item__content[href$="/contact"]) { display: none; }
}
@media (min-width: 90rem) {
  .site-header__phone { display: inline; }
}
.site-header__actions .btn { white-space: nowrap; }

/* Below 80rem the eight-item menu does not fit beside the mark, so core's
   overlay (which it only applies under 600px) is asked to stay on until then.
   It was 64rem until Advies Apex became a top-level item (feature 013): eight
   items overflowed at 1024px and pushed Contact off the screen. */
@media (min-width: 600px) and (max-width: 79.99rem) {
  .site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.site-header__phone {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__phone:hover { color: var(--color-accent-copper-40); }
.site-header__phone::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 0.6rem;
  margin-right: 0.5rem;
  vertical-align: -0.05em;
  background: url("./brand/fairstone-petal-copper.svg") center / contain no-repeat;
}

/* ------------------------------------------------------ primary nav */

/*
 * core/navigation restyled for a navy bar. Horizontal row from the block's
 * own breakpoint up, an overlay panel below it, a 2px copper underline on the
 * current page, submenus that open on hover OR focus (keyboard users).
 */
.wp-block-navigation .wp-block-navigation-item__content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.5rem 0.7rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--color-accent-copper-40); }
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content,
.wp-block-navigation .current-menu-parent > .wp-block-navigation-item__content {
  border-bottom-color: var(--color-accent-copper);
  font-weight: 600;
}

.wp-block-navigation .wp-block-navigation__submenu-icon { color: #fff; padding: 0 0.25rem; }

/* Dropdowns: a navy drawer hanging from the bar's divider line, white text,
   hairline dividers between the items, the current page marked with a copper
   rule on its left (the vertical cousin of the bar's underline). The block
   carries the brand background and white text in parts/header.html so that
   core's defaults (a white panel, a white overlay, black text) never apply;
   these selectors still outrank core's `inherit` on the container. Scoped to
   the closed responsive container so the phone menu's rules below are left
   alone. */
.wp-block-navigation__responsive-container:not(.is-menu-open) .has-child .wp-block-navigation__submenu-container {
  border: 1px solid rgb(255 255 255 / 0.14);
  border-top: 0;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: var(--color-brand-900);
  padding: 0;
  min-width: 16rem;
  box-shadow: 0 24px 32px -16px rgb(0 0 0 / 0.45);
}
.wp-block-navigation__responsive-container:not(.is-menu-open) .has-child .wp-block-navigation__submenu-container > li + li {
  border-top: 1px solid rgb(255 255 255 / 0.14);
}
.wp-block-navigation__responsive-container:not(.is-menu-open) .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  padding: 0.85rem 1.25rem;
  color: #fff;
  font-weight: 500;
  border-bottom: 0;
}
.wp-block-navigation__responsive-container:not(.is-menu-open) .has-child .wp-block-navigation__submenu-container > li:last-child .wp-block-navigation-item__content {
  border-radius: 0 0 calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px);
}
.wp-block-navigation__responsive-container:not(.is-menu-open) .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: rgb(255 255 255 / 0.06);
  color: var(--color-accent-copper-40);
}
.wp-block-navigation__responsive-container:not(.is-menu-open) .has-child .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
  box-shadow: inset 3px 0 0 var(--color-accent-copper);
  font-weight: 600;
}
.wp-block-navigation .has-child:focus-within > .wp-block-navigation__submenu-container {
  visibility: visible;
  opacity: 1;
  overflow: visible;
}

/* No-JavaScript fallback (FR-010, SC-007): plain list until `js` is on <html>. */
html:not(.js) .wp-block-navigation__responsive-container-open { display: none; }
html:not(.js) .wp-block-navigation__responsive-container {
  display: block;
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  padding: 0;
  opacity: 1;
  visibility: visible;
  overflow: visible;
}
html:not(.js) .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-close { display: none; }
html:not(.js) .wp-block-navigation__responsive-container-content { display: flex; flex-wrap: wrap; gap: 0.25rem; }

/* The mobile overlay: core's own responsive behaviour, restyled. Opens BELOW
   the header so the wordmark stays visible (feature 007). */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--color-brand-900);
  padding: 1.5rem 1.25rem;
  inset-block-start: var(--fs-header-height);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  width: 100%;
  align-items: flex-start;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 0.7rem 0;
  border-bottom: 0;
}
/* Sub-items in the overlay: an indented list under their parent. Core pads
   these with the block gap on three sides at five classes of specificity, so
   the selectors here are longer than they look like they need to be. */
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
  position: static;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 0.5rem 1rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  color: var(--color-brand-100);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  padding: 0.5rem 0;
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close { color: #fff; }
html.has-modal-open .wp-block-navigation__responsive-container-open { visibility: hidden; }

/* ------------------------------------------------------------------ cta */

/* Navy band, plain. */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-brand-900);
  color: #fff;
  padding-block: var(--spacing-section);
}
.cta-band__inner { text-align: center; }
.cta-band__heading {
  font-size: clamp(1.625rem, 1.25rem + 1.3vw, 2.25rem);
  line-height: 1.1;
  font-weight: 600;
  color: #fff;
}
.cta-band__body {
  margin-inline: auto;
  margin-top: 1rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-brand-100);
}
.cta-band__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta-band .btn-secondary { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.85); }
.cta-band .btn-secondary:hover { background: #fff; color: var(--color-brand-900); }

/* ---------------------------------------------------------------- cards */

/* Article teasers, laid out the way fairstone.co.uk lays out its guides:
   the picture, a small line, the title, a hairline beneath. No box. */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-brand-100);
}
.article-card__media { margin-bottom: 1.25rem; }
.article-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 250ms ease;
}
.article-card:hover .article-card__media img { transform: translateY(-3px); }
/* Until an article has its picture, the slot is visibly a placeholder. */
.article-card__media:not(:has(img)) {
  display: grid;
  place-items: end start;
  aspect-ratio: 3 / 2;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--color-brand-100);
  border-radius: var(--radius-card);
  background: var(--color-brand-50);
}
.article-card__media:not(:has(img))::after {
  content: "Image to follow";
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink-500);
}
.article-card__date {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-500);
}
.article-card__title {
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-brand-900);
}
.article-card__title a { color: inherit; text-decoration: none; }
.article-card:hover .article-card__title a { text-decoration: underline; text-underline-offset: 0.2em; }

/* Team — the firm's own square photography, shown square as the old site did.
   The template asks for WordPress's uncropped `medium_large` size rather than
   the 3:2 card crop, so heads are not cut off before the CSS ever sees them. */
.team-card { margin: 0; }
.team-card__media,
.team-card img {
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
  box-shadow: var(--shadow-card);
  transition: transform 250ms ease;
}
.team-card:hover img { transform: translateY(-3px); }
.team-card__name {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-brand-900);
}

/* --------------------------------------------------- page header & shell */

/*
 * Inner pages open on a navy band: the title left and, where the page has a
 * featured image, the photograph right, straddling the band's edge into the
 * page — the composition the old Advies site used, in Fairstone's clothes.
 * The image corner is cut on the petal's angle (guide p25).
 */
.page-header {
  position: relative;
  isolation: isolate;
  background: var(--color-brand-900);
  padding-block: 4rem var(--page-header-pad);
  color: #fff;
}
@media (min-width: 48rem) {
  .page-header { padding-top: 6rem; }
}
.page-header:has(.page-header__media img) > .container-page { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 48rem) {
  .page-header:has(.page-header__media img) > .container-page {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4rem;
  }
}
.page-header__title {
  max-width: 20ch;
  font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}
.page-header__standfirst {
  margin-top: 1.25rem;
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-brand-100);
}
/* The photograph drops out of the band by the overhang. Its corner cut runs
   from the band's edge to the bottom of the picture, so the point of the cut
   always sits on the line where navy meets white. */
.page-header__media {
  margin: 0 0 calc(-1 * (var(--page-header-pad) + var(--page-header-overhang)));
  align-self: end;
}
.page-header__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(var(--page-header-overhang) * 1.55) 100%, 0 calc(100% - var(--page-header-overhang)));
}
.page-header__media:empty { display: none; }

.page-section { padding-block: var(--spacing-section); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 3rem;
}
.section-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.2; }
.section-head__link { font-weight: 600; color: var(--color-brand-900); text-decoration: underline; text-underline-offset: 0.2em; }

/* Wordmark fallback when no logo asset is configured (FR-005). */
.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: inherit;
}

/* ------------------------------------------------------- listing grids */

.post-grid {
  display: grid;
  list-style: none;
  grid-template-columns: 1fr;
  gap: 3rem 2rem;
  padding: 0;
}
@media (min-width: 48rem) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-grid--team {
  gap: 1.75rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 48rem) { .post-grid--team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .post-grid--team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; } }
@media (min-width: 80rem) { .post-grid--team { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.listing-pagination { margin-top: 3rem; }
.listing-pagination a, .listing-pagination .page-numbers { color: var(--color-brand-900); font-weight: 600; }

.empty-state {
  border-radius: var(--radius-card);
  border: 1px dashed var(--color-brand-100);
  background: var(--color-brand-50);
  padding: 2.5rem;
  text-align: center;
}
.empty-state__heading { margin-top: 0; font-size: 1.125rem; font-weight: 600; }
.muted-note { color: var(--color-ink-500); }
/* On the pale navy box the mid grey only reaches 4.3:1, so notes inside it take
   the body slate (the contrast test asserts the pairing). */
.empty-state__body,
.empty-state .muted-note { margin-top: 0.75rem; color: var(--color-ink-700); }
.empty-state > :first-child { margin-top: 0; }

/* ------------------------------------------------------- single article */

.article-header__back { margin-bottom: 1rem; }
.article-header__back a {
  color: var(--color-brand-100);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.article-header__meta { margin-top: 1.25rem; color: var(--color-brand-100); font-size: 0.9375rem; }
.article-featured { margin-bottom: 2.5rem; }
.article-featured img,
.article-featured__image {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%, 0 74%);
}

/* ------------------------------------------------------------ 404 page */

.notfound__lead { font-size: 1.0625rem; line-height: 1.6; }
.notfound__links {
  margin-top: 2rem;
  display: grid;
  list-style: none;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0;
}
@media (min-width: 40rem) { .notfound__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .notfound__links { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.notfound__link {
  display: block;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-brand-900);
  text-decoration: none;
  transition: transform 200ms ease;
}
.notfound__link:hover { transform: translateY(-3px); text-decoration: underline; }

/* ---------------------------------------------- placeholder legal copy */

/* Amber, not brand: conspicuously NOT part of the design (feature 006). */
.awaiting-copy {
  border-radius: var(--radius-card);
  border: 2px dashed oklch(82.8% 0.189 84.429);
  background: oklch(98.7% 0.022 95.277);
  padding: 2rem;
}
.awaiting-copy h2 { margin-top: 0; color: oklch(41.4% 0.112 45.904); }
.awaiting-copy p { color: oklch(41.4% 0.112 45.904); }

/* ------------------------------------------------------- consent banner */

/* Ships hidden and stays hidden without JavaScript, consent denied (FR-021). */
.consent-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  border-top: 4px solid var(--color-accent-copper);
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 -12px 40px -16px rgb(36 23 76 / 0.35);
}
.consent-banner.is-hidden { display: none; }
.consent-banner__inner { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 48rem) {
  .consent-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.consent-banner__text { max-width: 42rem; font-size: 0.9rem; line-height: 1.5; color: var(--color-ink-700); }
.consent-banner__text a { text-decoration: underline; }
.consent-banner__actions { display: flex; flex-shrink: 0; gap: 0.75rem; }
.consent-banner__actions .btn { font-size: 0.9rem; padding: 0.7rem 1.2rem; }

/* --------------------------------------------------------- contact page */

.contact-layout { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .contact-layout { grid-template-columns: 3fr 2fr; gap: 4rem; } }

.contact-form__heading { font-size: 1.375rem; line-height: 1.25; font-weight: 600; }
.contact-form__mount { margin-top: 1.5rem; }

.form-fallback {
  border-radius: var(--radius-card);
  border: 2px dashed var(--color-brand-100);
  background: var(--color-brand-50);
  padding: 2rem;
}
.form-fallback__heading { margin-top: 0; font-size: 1.125rem; font-weight: 600; }
.form-fallback__body { margin-top: 0.5rem; color: var(--color-ink-700); }

.contact-form__privacy {
  margin-top: 1.5rem;
  max-width: 65ch;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-ink-500);
}
.contact-form__privacy a { text-decoration: underline; }

.contact-direct {
  position: relative;
  isolation: isolate; /* keeps the device (::before, z-index -1) above the panel's own background */
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-brand-900);
  color: var(--color-brand-100);
  padding: 2rem;
}
.contact-direct__heading { margin-top: 0; font-size: 1.125rem; font-weight: 600; color: #fff; }
.contact-direct__list { margin-top: 1.5rem; }
.contact-direct__list > div + div { margin-top: 1.5rem; }
.contact-direct__label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-copper-40);
}
.contact-direct__value { margin-top: 0.25rem; }
.contact-direct a { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.contact-direct a:hover { color: var(--color-accent-copper-40); }
.contact-direct__value--prominent a { font-size: 1.125rem; font-weight: 600; }
.contact-direct__address { font-style: normal; }

/* A photograph in a feature row fills its cell; corner cut on the petal angle. */
.feature-row__media.wp-block-image img,
.feature-row__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%, 0 82%);
}
.page-content .feature-row__media.wp-block-image { margin: 0; max-width: none; }
