/*
Theme Name: SRDapat & Partners
Theme URI: https://srdapatandpartners.com
Author: SRDapat & Partners
Description: A clean, professional block theme for SRDapat & Partners, Certified Public Accountants — a modern brochure site for an accounting & assurance firm. Built for the WordPress Site Editor: staff edit pages by clicking blocks. No page builder, no external requests — Cabinet Grotesk ships with the theme.
Version: 0.26.3
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: srd
Tags: block-theme, business, professional, one-column, custom-colors, block-styles, full-site-editing
*/

/* ==========================================================================
   Design layer — polish that theme.json can't express.
   Most styling lives in theme.json; this file adds depth, motion and the
   brand wedge.

   v0.5.0 reverses the headline rule. The palette is now the firm's OWN
   (sampled from the logo — see BRAND_PALETTE.md), and the typographic
   direction follows DESIGN_DIRECTION_V2.md (grantthornton.com.ph), not the
   old vwc-cpa.com language. The three rules that matter:
     1. Weight contrast — the LARGEST type is the HEAVIEST (h1 is 900).
        The claim beneath it is `.srd-lead` at 700, one step lighter and
        two sizes smaller (it was 300 until the client asked for it bold,
        10 Oct 2026). This is the REVERSE of v0.4.0; do not reintroduce a
        light h1.
     2. One easing curve, everywhere: cubic-bezier(.4, 0, .2, 1). .3s for
        interface moves, .6s for anything large (images, panels).
     3. Hover barely moves anything. Cards step COLOUR and do not lift;
        images scale 1.01; nav links wipe an underline in from the left and
        out to the right. Nothing rotates, nothing flips, nothing jumps.
   ========================================================================== */

:root {
	/* Motion tokens. The curve is the reference site's master easing — one
	   curve for every interface move, so nothing feels like it came from a
	   different site. `slow` is for larger travel (images, panels). */
	--srd-ease: cubic-bezier(.4, 0, .2, 1);
	--srd-transition: .3s var(--srd-ease);
	--srd-transition-slow: .6s var(--srd-ease);
	--srd-transition-fast: .1s var(--srd-ease);

	/* The underline wipe runs LINEAR on purpose: it is a bar travelling a fixed
	   distance, and easing it makes the ends look like they stick. */
	--srd-underline: .35s linear;

	/* Scroll-reveal travel. The reference site moves elements a long way
	   (150% of their own height, 300px on banner titles); 40px is the most
	   that stays calm on a SHORT scroll range — see section 7. */
	--srd-reveal-y: 40px;

	/* Shadow scale — mirrors theme.json's shadow presets so plain CSS can use it.
	   Rule: elevate against imagery, stay FLAT against white. */
	--srd-shadow-sm: 0 3px 6px rgba(0, 0, 0, .16);   /* pills resting on imagery */
	--srd-shadow-md: 0 5px 10px rgba(0, 0, 0, .2);   /* small hover lift */
	--srd-shadow-lg: 0 8px 25px rgba(0, 0, 0, .15);  /* overlay panels */
	--srd-shadow-xl: 0 8px 30px rgba(0, 0, 0, .3);   /* card hover */

	/* Shape language. Permanent content 30px, transient overlays 8px, and
	   CONTROLS 4px — buttons and inputs are near-square in the reference
	   system, which is what keeps a professional-services site from reading
	   as consumer software. Deliberately not a pill. */
	--srd-radius-panel: 30px;
	--srd-radius-overlay: 8px;
	--srd-radius-control: 4px;

	/* BUTTON TOKENS — every button on the site reads from these, so a variant
	   cannot quietly drift. It had: an audit across six pages found the ghost
	   button at 56px/20px/no-tracking while everything else was
	   54px/16px/0.8px, because it inherited its font-size from whatever it
	   happened to sit next to. Buttons now set their own size explicitly. */
	--srd-btn-height: 54px;
	--srd-btn-pad-x: 40px;
	--srd-btn-size: 1rem;
	--srd-btn-weight: 600;
	--srd-btn-tracking: .8px;
	--srd-btn-border: 2px;
}

/* Native smooth scrolling for in-page anchors — the reference site sets this
   on html and body and loads no scroll library. The reduced-motion block at
   the end of this file resets it to `auto`. */
html {
	scroll-behavior: smooth;
}

/* --- Remove the white seam between full-bleed sections ------------------- */
.wp-site-blocks > header,
.wp-site-blocks > main { margin-block: 0; }
.wp-site-blocks > footer { margin-block-start: 0; }

/* ==========================================================================
   1. HEADER & NAVIGATION
   Two stacked strips, as on the reference site: a slim navy utility bar with
   the firm's phone/email, then the main white bar with the wordmark and nav.
   ========================================================================== */

/* Slim navy utility strip. */
.srd-utility {
	font-size: .875rem;
	line-height: 1.5;
}
.srd-utility a { text-decoration: none; transition: opacity var(--srd-transition); }
.srd-utility a:hover { opacity: .8; }

/* Main bar sits below the utility strip and sticks to the top on scroll. */
.srd-header {
	position: sticky;
	top: 0;
	z-index: 100;
	transition: box-shadow var(--srd-transition);
}
/* A hairline under the pinned bar, so it separates from content it overlays. */
.srd-header { box-shadow: 0 1px 0 var(--wp--preset--color--line); }

.wp-block-site-title a {
	text-decoration: none;
	/* The wordmark measured 169x19 — wide enough, but under WCAG 2.5.8's 24px
	   minimum height for a pointer target. */
	display: inline-block;
	padding-block: 3px;
	min-height: 24px;
}

/* BRAND LOCKUP — the firm's square mark beside the live-text wordmark.

   The wordmark stays as `wp:site-title`, not an image. Live text is sharp at
   every DPI, recolours with the palette, reflows at 390px and is selectable
   and readable by a screen reader. The supplied logo files are raster with a
   baked white background (no alpha), so shipping them as the header brand
   would have been a downgrade on all four counts.

   The mark is a CSS background on a pseudo-element rather than inline SVG or
   an image block, for two reasons. KSES strips <svg> from post content, so an
   inline mark vanishes the moment this header is edited in the Site Editor;
   and a pseudo-element cannot be deleted by a stray click in the editor.

   It is decorative and deliberately OUT of the accessibility tree: the site
   title beside it already names the firm, so exposing the mark as an image
   would just make a screen reader say the name twice.

   Mark geometry is the firm's own: three identical squares, side 53.85 and
   rotation -16.12deg, at three offsets, rebuilt as vector from the supplied
   raster at 98.8% pixel agreement. Source art is 83.28x100, hence the ratio.

   Blue is capped here on purpose. Rule 4 keeps blue to the footer and CTA
   band; the mark is 52% blue / 48% warm by area, but at 58px it contributes
   roughly 1750px^2 of blue to a 1440x102 header — about 1.2% of the bar,
   small enough not to tip the page blue, which the full lockup (85% blue)
   would have done.

   Height matches the two-line text stack (measured 61.9px), which is the
   proportion the firm's own lockup uses — mark and text block the same
   height. At 46px it read as a bullet beside the name rather than part of
   it; the squares carry a lot of internal white space, so the mark needs
   the full stack height to hold equal optical weight. */
.srd-brand::before {
	content: "";
	flex: none;
	height: 58px;
	aspect-ratio: 83.28 / 100;
	background: url(assets/img/srd-mark.svg) center / contain no-repeat;
}

/* THE OFFICIAL LOCKUP (v0.19.0) — supersedes the mark + live-text wordmark
   above. The firm supplied its final HD logo (2000x600, 29 Sep 2026; master in
   `brand and logo/srd-logo-final-hd-with-slogan.png`). The header shows it
   WITHOUT the slogan line: at header height the slogan renders about 6px
   tall, which is unreadable, not merely small. `assets/img/srd-logo.png` is
   that lockup trimmed and exported at 1000px — 4x its 1440px display width.

   It is painted on the site-title LINK, not placed as an image block, for the
   same two reasons the mark was a pseudo-element: KSES and the Site Editor
   cannot strip or misplace it. The link keeps its real text ("SRDapat &
   Partners") for screen readers and as the accessible name; the text is
   transparent, not removed. The tagline block is visually hidden because the
   lockup already carries it — it stays in the accessibility tree as the
   site's description.

   The ribbon's sky band is painted OPAQUE on purpose: at 90% it mixed with the
   yellow beneath it into a green-teal — the same blue + yellow trap the
   gradients avoid.

   The source has a white ground and no alpha, so it belongs on the white
   header only. A transparent or reversed file is needed before it can sit on
   any coloured band (see PROGRESS.md). */
.srd-brand::before { content: none; }
:root { --srd-logo-h: 60px; }
.srd-brand .wp-block-site-title a {
	display: block;
	height: var(--srd-logo-h);
	aspect-ratio: 1000 / 231;
	min-height: 0;
	padding: 0;
	background: url(assets/img/srd-logo.png) left center / contain no-repeat;
	color: transparent !important;
	overflow: hidden;
	white-space: nowrap;
}
.srd-brand .wp-block-site-tagline {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ===================================================================
   WORDMARK COLOUR — ONE SWITCH, TWO OPTIONS

   Colour for the header wordmark and tagline is set ONLY here. The two
   blocks carry no colour of their own in `parts/header.html` any more,
   so this is the single place that decides it. To change the look, move
   the comment markers below — nothing else needs editing.

   OPTION A (active) — LOGO TRUE.
     Wordmark takes the logo's own blue. The tagline CANNOT take the
     logo's light blue #2e99d4: it is 3.17:1 on white and fails AA for
     normal text at any size. #2276a5 is that colour darkened along an
     unchanged hue (201.2 vs the logo's 201.3) until it clears both
     grounds — 5.00 on white, 4.60 on cream. Picking the first value
     that merely cleared 4.5 gave #247eaf, which computes 4.51 in float
     and 4.49 once quantised to hex; that is the #bb5502 trap in RULE 4,
     so this takes headroom instead.

     Be aware this pushes against RULE 4. Blue is meant to live in the
     footer and CTA band only, because a blue header once made the whole
     page read blue. The mark alone was small enough not to; a blue
     WORDMARK is the largest blue element above the fold. It was asked
     for deliberately, and Option B is the documented way back.

   OPTION B — THEME MATCHED. Exactly how the header looked before this
     change: wordmark in `deep`, tagline in `muted`. Keeps blue out of
     the header entirely and satisfies RULE 4 as originally written.

   TO SWITCH: change the two values below. Both spellings are written out
   so it is a straight substitution — no comment markers to move, which is
   its own source of bugs.

       Option A (active)   #0d4e9b  /  #2276a5
       Option B (fallback) var(--wp--preset--color--deep)
                           var(--wp--preset--color--muted)
   =================================================================== */
:root {
	--srd-wordmark:     #004aad;
	--srd-wordmark-sub: #2d9ccc;
}

/* Specificity note: the site-title link has to beat WordPress's own
   `a:where(:not(.wp-element-button))` global link rule, which paints
   links `primary` (burnt orange). `.srd-brand .wp-block-site-title a`
   is 0,2,1 against that rule's 0,0,1, so it wins without !important. */
.srd-brand .wp-block-site-title a { color: var(--srd-wordmark); }
.srd-brand .wp-block-site-tagline { color: var(--srd-wordmark-sub); }

/* Nav underline — the reference site's signature micro-interaction, rebuilt.
   It uses no pseudo-element: the link's OWN background-image is a flat
   gradient sized `0 2px`, grown to `100% 2px` on hover.

   The direction trick is the whole point. `background-position-x` transitions
   in 0s while the SIZE takes .35s, so the anchor flips instantly and the bar
   therefore grows from the LEFT on hover (anchored -10%) and retreats to the
   RIGHT on leave (anchored 110%). It never rubber-bands back the way it came.

   The colour is `interact` — the logo's burnt orange, darkened to clear AA.
   That retires the old orange `::after` bar: `accent` proper is now reserved
   for decoration on dark grounds (hero rule, bio-card roles), and `interact`
   carries interaction, which is the reference site's division of labour. */
.srd-header .wp-block-navigation .wp-block-navigation-item > a {
	padding-block: 4px;
	text-decoration: none;
	background-image: linear-gradient(var(--wp--preset--color--interact), var(--wp--preset--color--interact));
	background-repeat: no-repeat;
	background-size: 0 2px;
	background-position: 110% 100%;
	transition: background-size var(--srd-underline),
	            background-position-x 0s linear;
}
/* NO colour change on hover. The label stays exactly as it is and only the rule
   under it moves. Recolouring the text as well made two things happen at once
   for a single intent, which reads as busy on a nav of six items — the line
   alone is enough to say "this one". */
.srd-header .wp-block-navigation .wp-block-navigation-item > a:hover,
.srd-header .wp-block-navigation .wp-block-navigation-item > a:focus-visible {
	background-size: 100% 2px;
	background-position-x: -10%;
}
/* The current page keeps a static bar AND takes the interaction colour — the
   reference marks its active section both ways, so the state survives for
   anyone who cannot separate the two hues. A bar alone would be the only cue
   at 2px, which is easy to miss. */
/* The current page keeps its rule permanently. It is the same mark as hover,
   which is the point: one signal, two states, nothing extra to learn. Weight
   carries the difference instead of colour. */
.srd-header .wp-block-navigation .current-menu-item > a,
.srd-header .wp-block-navigation .current-menu-ancestor > a {
	background-size: 100% 2px;
	background-position-x: -10%;
	font-weight: 600;
}
/* Dropdown caret flips when its menu is open, so the control says what state
   it is in rather than only what it does. */
.srd-header .wp-block-navigation__submenu-icon {
	transition: transform var(--srd-transition);
}
.srd-header .wp-block-navigation-item:hover > .wp-block-navigation-item__content .wp-block-navigation__submenu-icon,
.srd-header .wp-block-navigation-item[aria-expanded="true"] .wp-block-navigation__submenu-icon {
	transform: rotate(180deg);
}

/* The header "Contact" pill must not grow an underline. */
.srd-header .wp-block-button__link { background-image: none; }

/* --- Links inside prose ---------------------------------------------------
   MEASURED DEFECT (found during the motion pass, pre-existing): `primary`
   #10519b against body text #333131 is only **1.65:1**. WCAG 1.4.1 requires
   3:1 when colour is the ONLY thing marking a link inside a block of text, so
   an in-sentence link here was effectively invisible to anyone who does not
   perceive the hue — the privacy-policy link in the footer note is one.

   So prose links carry a PERSISTENT underline, not a hover-only one. They
   deliberately do NOT get the nav's wipe: a bar animating across a line that
   is already underlined reads as two competing rules. They get the colour
   shift alone, on the shared curve.

   Nav links are exempt from 1.4.1 (they are not inside a block of text) and
   keep the wipe. */
.wp-block-post-content :is(p, li) a:not(.wp-element-button):not(.srd-card a):not(.srd-post-card a):not(.srd-job-row a):not(.srd-ghost-btn) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color var(--srd-transition), text-decoration-color var(--srd-transition);
}
.wp-block-post-content :is(p, li) a:not(.wp-element-button):not(.srd-card a):not(.srd-post-card a):not(.srd-job-row a):not(.srd-ghost-btn):hover {
	color: var(--wp--preset--color--interact);
	text-decoration-color: var(--wp--preset--color--interact);
}

/* Submenus: transient UI, so the quieter 8px radius + the overlay shadow. */
.srd-header .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: var(--srd-radius-overlay);
	box-shadow: var(--srd-shadow-lg);
	padding-block: .35rem;
	min-width: 230px;
	overflow: hidden;
}
.srd-header .wp-block-navigation__submenu-container a {
	padding: 12px 20px !important;
	font-size: .9375rem;
	font-weight: 500;
}
.srd-header .wp-block-navigation__submenu-container a { background-image: none; }

/* Mobile overlay menu — full-screen navy, matching the reference. */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--navy) !important;
	padding-top: var(--wp--preset--spacing--60);
}
.wp-block-navigation__responsive-container.is-menu-open a { background-image: none; }

/* THE OPEN MENU IS A LIST, SET LEFT. It inherited the desktop nav's
   right-justification, so every label sat flush against the right edge of
   the screen with no inset, in a column of empty navy. Now: the page's own
   20px gutter, labels left-aligned at a size you can hit with a thumb, and a
   hairline between items so five links read as one list rather than five
   floating words. The justification is a custom property core reads, so it
   is overridden at the source rather than fought item by item. */
.srd-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) var(--wp--preset--spacing--60) !important;
}
.srd-header .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important;
	padding-top: var(--wp--preset--spacing--50) !important;
}
.srd-header .is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	gap: 0 !important;
	width: 100%;
}
.srd-header .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.srd-header .is-menu-open .wp-block-navigation-item > a {
	display: block;
	width: 100%;
	padding-block: 16px !important;
	font-size: 1.5rem;
	font-weight: 600;
	text-align: left;
}
.srd-header .is-menu-open .current-menu-item > a { color: var(--wp--preset--color--secondary) !important; }

/* "Contact us" lives in the menu only. The bar already shows a Contact button
   from 600px up; below 600px that button is hidden for room, and until now
   nothing replaced it — the old note here claimed Contact was "already in the
   overlay", and it was not. */
.srd-header .wp-block-navigation__responsive-container:not(.is-menu-open) .srd-nav-contact { display: none; }

/* The reference site cascades its mega-menu items in on a 0.035s step. SRD has
   eight flat pages and no sub-navigation, so there is no mega-menu to build —
   but the mobile overlay is the one place the same idea has something to hold.
   Items settle from -15px / opacity 0, one 35ms behind the last. */
@media (prefers-reduced-motion: no-preference) {
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		animation: srd-menu-in .3s var(--srd-ease) both;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(1) { animation-delay: .035s; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: .07s; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: .105s; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: .14s; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: .175s; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(n+6) { animation-delay: .21s; }
}
@keyframes srd-menu-in { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: none; } }

/* --- Responsive header ---------------------------------------------------
   Measured problem: the header is a wrapping flex row, and the title group
   (244px, mostly the tracked tagline) plus the nav group would not fit, so it
   wrapped to two rows — 161px tall at 390px and 228px at 768px. On an 844px
   phone that is a fifth of the screen permanently pinned. Both fixes below
   keep it to a single row.
------------------------------------------------------------------------- */

/* WordPress collapses its nav to a hamburger only below 600px, so above that
   the full menu renders whether or not it fits. Extend the overlay upwards.
   These two rules deliberately mirror core's own breakpoint rules in order to
   override them.

   THE CEILING IS 1199px, MEASURED. The bar needs 1061px for one row: lockup
   260 + gap 30 + nav-and-Contact 731 + 2 x 20 padding. The old 1023px ceiling
   left 1024-1060px showing the full nav with nowhere to go — the header
   wrapped to two rows (100px -> 184px, pinned) — and 1064-1100px fitting with
   3-40px to spare, which reads as crammed. The v0.19.0 lockup (260px) is what
   exposed it. 1200px gave the row ~140px of air, and puts tablets in
   landscape (1024, 1180) on the overlay, which suits touch anyway.

   RAISED TO 1279px in v0.20.0, when "Our Founder" became a sixth item. The
   row still fit at 1200, but the space between the lockup and the nav fell
   from ~140px to 45px (measured) — crammed. At 1280 it is 120px again. */
@media (min-width: 600px) and (max-width: 1279px) {
	.srd-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.srd-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (max-width: 599px) {
	/* Below 600px even the collapsed nav plus the pill will not fit beside the
	   wordmark. The pill goes: "Contact us" is in the overlay menu (the
	   `.srd-nav-contact` item, added v0.19.0), and the utility strip above
	   carries the phone number and email. */
	.srd-header .wp-block-buttons { display: none; }

	/* Tighter bar, and a slightly larger tagline — 0.72rem renders at 11.5px,
	   which is uncomfortably small on a phone. */
	.srd-header { padding-top: var(--wp--preset--spacing--30) !important;
	              padding-bottom: var(--wp--preset--spacing--30) !important; }
	.srd-header .wp-block-site-tagline { font-size: .8rem !important; }

	/* The mark steps down with the bar. At 390px the wordmark wraps to two
	   lines, so a 46px mark would out-measure the type beside it. */
	.srd-brand::before { height: 36px; }
	/* 42px tall = 182px wide, which leaves the hamburger its room at 390px
	   (the single-row fix above). The wordmark's caps land near 10px. */
	:root { --srd-logo-h: 42px; }
}

/* Utility-strip links are standalone targets (email, phone), not words inside a
   sentence, so WCAG 2.5.8's inline exception does not cover them. They measured
   18px tall; pad them to a 24px minimum. */
.srd-utility a {
	display: inline-block;
	padding-block: 3px;
	min-height: 24px;
}

/* Pages on the "Page (no title)" template open directly with the headline
   block, and `page-no-title.html` gives <main> no top spacing — so the
   headline would sit tight under the sticky header. Give it room.
   Scoped to a non-full-bleed first child on purpose: a full-width section
   (srd/services, for one) already carries its own 80px section padding and
   must not be pushed down twice. */
.wp-block-post-content > .srd-reveal:first-child:not(.alignfull) {
	margin-top: var(--wp--preset--spacing--60);
}

/* The lead line beneath the heavy h1 (see srd_headline() in inc/setup.php).
   Bold (700) and in the heading navy on every interior page: the client
   asked for it bold on About Us (10 Oct 2026), and one component set two
   ways reads as a mistake. Bold also separates it from the intro paragraph
   that follows it on most pages, which is light and nearly the same size.
   The headline rule still holds: the h1 above is 900 and far larger. */
/* A long intro paragraph under the lead keeps a readable measure (~65
   characters) instead of running the full 1268px column. */
.srd-measure { max-width: 62ch; text-wrap: pretty; }

.srd-lead {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.45;
	color: var(--wp--preset--color--deep);
	max-width: 46ch;          /* keeps the claim to ~2 lines beside a 56px h1 */
	text-wrap: balance;
}

/* ==========================================================================
   2. HERO — the homepage photograph, and the interior-page gradient panel
   The homepage keeps a full-bleed photograph under a brand scrim. Every
   INTERIOR page opens with a rounded gradient panel instead — the reference
   site's strongest and most reusable device, and the one that suits SRD best:
   it needs no photography, and the firm has seven headshots and one city
   photo, not a library.
   ========================================================================== */

.srd-hero { position: relative; isolation: isolate; overflow: hidden; }

/* The firm's own team portrait (v0.22.3, client's choice) replaces the Cebu
   cityscape carried over from the old site. !important is deliberate: the
   hero pattern sets its background as an INLINE style, which a normal
   stylesheet rule cannot override.

   The photo is bright — white walls, white floor — so the text needs a
   scrim. Like the reference (grantthornton.com.ph), the photo shows across
   the WHOLE hero under an even tint, deepening only toward the left where
   the text sits (it never runs past ~58% of the width). Contrast is measured
   against the worst case, the photo's pure-white areas: white text clears
   5.2:1 at the text column's right edge and 8:1 at the left. Never blend
   toward the logo yellow — blue over yellow reads green (BRAND_PALETTE.md). */
.srd-hero {
	background-image:
		linear-gradient(90deg,
			rgba(0, 30, 72, .84) 0%,
			rgba(0, 35, 82, .74) 48%,
			rgba(0, 40, 96, .62) 62%,
			rgba(0, 46, 110, .42) 100%),
		url("assets/img/hero-team.webp") !important;
	background-size: cover !important;
	background-position: center 38% !important;
	background-repeat: no-repeat !important;
}
/* The hero fills the first screen (client, 12 Oct 2026): with the
   accreditation band peeking in under it, the two read as one view. The
   header (utility bar + main bar) is ~146px at desktop and ~129px on a
   phone; svh keeps mobile browsers' collapsing toolbars from making it jump.
   The words stay vertically centred in the photo. */
.srd-hero {
	min-height: max(560px, calc(100svh - 146px));
	display: flex;
	flex-direction: column;
	justify-content: center;
}
/* In a flex column, the layout's auto side margins shrink the content box
   to its text and centre it; full width keeps it on the page's left edge. */
.srd-hero > * { width: 100%; }
@media (max-width: 781px) {
	.srd-hero { min-height: max(520px, calc(100svh - 129px)); }
}
/* Over a photograph every hero word is white. The pale `line` grey-blue the
   pattern gives the eyebrow and paragraph drops to 3.9:1 where the scrim
   thins at the text's right edge; white holds 5.1:1 there. A class rule
   rather than a pattern edit, so the live page (whose content is saved in
   the database) changes with the theme. */
.srd-hero .has-line-color { color: var(--wp--preset--color--base) !important; }
/* Below the two-column width the text spans the whole hero, so the photo
   becomes texture under an even scrim, and a 1200px file keeps phones fast. */
@media (max-width: 781px) {
	.srd-hero {
		background-image:
			linear-gradient(180deg, rgba(0, 30, 72, .80) 0%, rgba(0, 35, 82, .76) 100%),
			url("assets/img/hero-team-1200.webp") !important;
		background-position: 62% 40% !important;
	}
}

/* THE WEDGE IS RETIRED (v0.8.0). It was a v0.4.0 signature carried over from
   the vwc-cpa.com language; the current reference closes sections with rounded
   panels and never with a diagonal. Running both meant two competing
   section-closers. The hero now simply ends, and the rounded page-hero panel
   below is the shape that carries the identity. */

/* --- Interior page hero: the rounded gradient panel -----------------------
   Measured off the reference at 1440px: the panel is 1268x349, inset 86px a
   side, 40px radius with overflow hidden, a 135deg two-stop gradient, and the
   headline sitting 64px in and vertically centred.

   Ours uses navy -> primary rather than their aubergine -> purple. White on
   navy is 12.25:1 and on primary 7.86:1, so the headline clears AA across the
   WHOLE sweep — worth checking on any gradient, because a mid-point can fail
   while both end stops pass. `secondary` is deliberately not a stop: at 3.17:1
   it would drop the sweep below the floor.

   The decorative motif is NOT the reference site's. Theirs is a hand-drawn
   loop that is part of their brand mark; copying it would be lifting their
   identity. Ours is three overlapping rounded squares — SRD's own logo
   geometry, enlarged and outlined, so the ornament says SRD rather than
   somebody else. Inline SVG, so it costs no request. */
/* WordPress's constrained-layout rule for `.alignwide` (`.wp-container-x >
   .alignwide`, specificity 0,2,0) sets max-width to the theme's 1440px wide
   size and beat a plain `.srd-page-hero { max-width }`. Scoping to the content
   wrapper takes it to 0,3,0 so the measured 1268px wins.

   The parent already supplies 20px of global padding, so `100%` is 1400px at a
   1440 viewport; capping at 1268 and centring leaves 66px + 20px = the 86px
   inset measured on the reference. No magic numbers beyond the 1268 itself. */
/* ONE COLUMN PER PAGE.
   The interior pages had three different left edges: the hero panel at 86px,
   a profile block at 170px and the prose at 340px, because each element was
   taking a different max-width and centring itself. Three alignments in a
   column of text is what reads as "the margins are off" — it is not the
   spacing, it is that nothing lines up with anything above it.

   The reference uses a single container for a whole page: heading, imagery and
   body all start on the same left edge, and long copy is limited by a MEASURE
   (max-width on the paragraph) rather than by narrowing its container. That is
   what this does. Full-bleed sections are excluded — they are meant to break
   out — as is anything that has opted into a width of its own. */
.wp-block-post-content > *:not(.alignfull):not(.wp-block-spacer) {
	max-width: min(1268px, 100%);
	margin-inline: auto;
}
/* Two coloured full-width bands that meet must TOUCH. Core puts its 24px
   block gap between every pair of top-level blocks, which left a white strip
   between the pale "Stay in the know" band and the pale SFAI band below it on
   the home page — the same white-sliver bug as 2026-09-07. */
.wp-block-post-content > .alignfull.has-background + .alignfull.has-background {
	margin-block-start: 0;
}
/* Prose is limited by measure, not by container, so it keeps the page's left
   edge instead of centring itself into a narrower column. */
.wp-block-post-content > :is(p, ul, ol):not(.alignfull) {
	max-width: min(1268px, 100%);
}
.wp-block-post-content > :is(p, ul, ol):not(.alignfull) { --srd-measure: 68ch; }
.wp-block-post-content > p:not(.alignfull) > * { max-width: var(--srd-measure); }
/* The breadcrumb is now the first thing on an interior page, so it owns the
   clearance under the sticky header that the headline block used to. */
.wp-block-post-content > .srd-breadcrumb:first-child {
	margin-top: var(--wp--preset--spacing--40);
}

.srd-page-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: 40px;
	min-height: 349px;
	display: flex;
	align-items: center;
	padding: 64px;
	/* DARKER, at the client's request (v0.20.0): was pale yellow -> yellow.
	   Now the logo's yellow square #f7c127 into a LIGHT gradient: the end stop
	   is #f5b727, only 30% of the way to the logo orange #ef9f28 — the client
	   found the full yellow -> orange sweep too strong. Navy headline: 9.26 at
	   the yellow stop, 8.58 at the end. Never blend this toward blue — that
	   passes through green. */
	background-image: linear-gradient(135deg, var(--wp--preset--color--secondary) 0%, #f5b727 100%);
}
.srd-page-hero::after {
	content: "";
	position: absolute;
	inset: 0 0 0 auto;
	width: 620px;
	max-width: 62%;
	background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 349' fill='none'><rect x='318' y='34' width='196' height='196' rx='16' transform='rotate(-14 416 132)' stroke='%23002352' stroke-width='1.5' opacity='.30'/><rect x='392' y='86' width='196' height='196' rx='16' transform='rotate(8 490 184)' stroke='%23002352' stroke-width='1.5' opacity='.22'/><rect x='286' y='116' width='196' height='196' rx='16' transform='rotate(26 384 214)' stroke='%23002352' stroke-width='1.5' opacity='.15'/></svg>");
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
	pointer-events: none;
	z-index: -1;
}
.srd-page-hero > * { max-width: 62ch; }
.srd-page-hero :is(h1, h2, h3, p) { color: var(--wp--preset--color--deep); }
/* The lead sits BELOW the panel, sharing its left edge. The reference keeps
   body copy narrower than the panel rather than matching its full width, so
   `.srd-lead` keeps its own 46ch measure and simply left-aligns inside this
   wrapper instead of centring. */
.srd-page-intro {
	margin-inline: auto;
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
}

@media (max-width: 781px) {
	.srd-page-hero {
		border-radius: 24px;
		min-height: 220px;
		padding: 36px 28px;
	}
	.srd-page-hero::after { max-width: 78%; opacity: .8; }
}

/* --- Breadcrumb ----------------------------------------------------------
   The reference pairs a circular outlined home icon with an underlined page
   name. It sits above the panel, not inside it. */
.srd-breadcrumb {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0 auto var(--wp--preset--spacing--30);
	font-size: .875rem;
}
.srd-breadcrumb a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color var(--srd-transition);
}
.srd-breadcrumb a:hover { color: var(--wp--preset--color--interact); }
.srd-breadcrumb .srd-crumb-home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--line);
	text-decoration: none;
	flex: 0 0 auto;
}
.srd-breadcrumb .srd-crumb-home::before {
	content: "";
	width: 13px;
	height: 13px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2.6 2.4 10.3V21a1 1 0 0 0 1 1h5.6v-6.8h6V22h5.6a1 1 0 0 0 1-1V10.3z'/></svg>") center / contain no-repeat;
	        mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2.6 2.4 10.3V21a1 1 0 0 0 1 1h5.6v-6.8h6V22h5.6a1 1 0 0 0 1-1V10.3z'/></svg>") center / contain no-repeat;
}
.srd-breadcrumb .srd-crumb-home:hover { border-color: var(--wp--preset--color--interact); }
.srd-breadcrumb .srd-crumb-sep { color: var(--wp--preset--color--muted); }
.srd-breadcrumb [aria-current="page"] { color: var(--wp--preset--color--muted); }


/* Short accent rule under the hero eyebrow — the other demoted orange use. */
.srd-hero .srd-eyebrow::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	border-radius: 2px;
	background: var(--wp--preset--color--secondary);
	margin-top: .9rem;
}

/* --- Footer columns -----------------------------------------------------
   The reference runs four labelled link columns — CONNECT / ABOUT / LEGAL /
   OUR CORE SERVICES — each with a small tracked heading over a hairline, and
   renders its service list as PILLS rather than plain links. The pills are the
   detail that stops a four-column footer reading as a sitemap dump: they mark
   the services as things you can buy, not just pages you can visit.

   Ours keeps the firm's address block, which the reference has no equivalent
   for — SRD is one office in Cebu and the address is a credibility signal. */
.srd-foot-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}
@media (max-width: 899px) { .srd-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .srd-foot-grid { grid-template-columns: 1fr; } }

.srd-foot-col h2 {
	margin: 0 0 1rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid rgba(255, 255, 255, .28);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: #fff;
}
.srd-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.srd-foot-col a {
	color: #fff;
	text-decoration: none;
	transition: color var(--srd-transition);
}
.srd-foot-col a:hover { color: var(--wp--preset--color--secondary); }
.srd-foot-col p { margin: 0 0 .6rem; color: #fff; }

/* Service pills. Amber on the navy footer is 4.67:1 as a surface, and the deep
   warm label on amber is 6.97:1 — both clear AA, which the reference's own
   violet-on-purple pills do not manage for text. */
.srd-foot-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.srd-foot-pills a {
	display: inline-block;
	border-radius: 20px;
	padding: 6px 16px;
	font-size: .875rem;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--deep);
	text-decoration: none;
	transition: background-color var(--srd-transition), color var(--srd-transition);
}
.srd-foot-pills a:hover {
	background: var(--wp--preset--color--accent-warm);
	color: var(--wp--preset--color--deep);
}

/* --- Numbered statement columns ------------------------------------------
   The reference sets three claims under oversized numerals. The numbers are
   doing real work here: they mark a SEQUENCE the reader is meant to take in
   order, which is the only case where numbered markers earn their place. Ours
   carries the firm's accreditation story, which genuinely reads 1-2-3:
   who regulates us, who we belong to, what that means for you. */
.srd-stat-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--60);
	margin-block: var(--wp--preset--spacing--60);
}
@media (max-width: 899px) { .srd-stat-row { grid-template-columns: 1fr; gap: var(--wp--preset--spacing--50); } }
.srd-stat-num {
	margin: 0 0 .35rem;
	font-size: clamp(3rem, 5vw, 4.5rem);
	line-height: .95;
	font-weight: 900;
	color: var(--wp--preset--color--primary);
}
.srd-stat h3 {
	margin: 0 0 .6rem;
	font-size: clamp(1.25rem, 1.9vw, 1.6rem);
	line-height: 1.15;
	font-weight: 900;
	color: var(--wp--preset--color--deep);
}
.srd-stat p { margin: 0; max-width: 36ch; }

/* --- Awards carousel ------------------------------------------------------
   A scroll-snap track, NOT a JavaScript slider. It scrolls natively with a
   trackpad, a touch swipe or the keyboard before any script loads, so the
   content is reachable even if the enhancement never runs. The arrows are
   progressive enhancement (assets/js/carousel.js) and are hidden until that
   script marks the track as ready — a dead arrow is worse than no arrow. */
.srd-awards {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 4px;
	scrollbar-width: thin;
}
.srd-award {
	flex: 0 0 clamp(220px, 24%, 300px);
	scroll-snap-align: start;
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	gap: .75rem;
	padding: 28px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 32px;
	background: var(--wp--preset--color--base);
	text-align: center;
	transition: border-color var(--srd-transition);
}
.srd-award:hover { border-color: var(--wp--preset--color--primary); }
.srd-award img { max-width: 70%; height: auto; }
.srd-award-label {
	margin: 0;
	font-size: .8125rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.srd-award.is-placeholder {
	border-style: dashed;
	border-color: var(--wp--preset--color--accent);
}
.srd-award-mark {
	width: 76px; height: 76px;
	border-radius: 50%;
	display: grid; place-items: center;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	font-size: 1.6rem; font-weight: 900;
}

.srd-carousel-nav { display: none; gap: .6rem; justify-content: flex-end; margin-top: 1.25rem; }
.srd-carousel-nav.is-ready { display: flex; }
.srd-carousel-nav button {
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--line);
	background: transparent;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	display: grid; place-items: center;
	transition: border-color var(--srd-transition), background-color var(--srd-transition), color var(--srd-transition);
}
.srd-carousel-nav button:hover:not(:disabled) {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
.srd-carousel-nav button:disabled { opacity: .35; cursor: default; }

/* --- Quote card ----------------------------------------------------------
   Portrait left, the words at display size on the right. The reference sets
   the quote itself as the largest type on the page and keeps the attribution
   small and grey — the person supports the claim, they are not the headline. */
.srd-quote {
	display: grid;
	grid-template-columns: 38fr 62fr;
	gap: var(--wp--preset--spacing--60);
	align-items: center;
	margin-block: var(--wp--preset--spacing--70);
}
@media (max-width: 899px) { .srd-quote { grid-template-columns: 1fr; } }
/* One sentence a line at width; on a phone the column is too narrow for
   that and the break would strand a single word, so it is dropped. */
@media (max-width: 899px) { .srd-quote-br { display: none; } }
.srd-quote-photo {
	border-radius: 32px;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	aspect-ratio: 1 / 1;
}
.srd-quote-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.srd-quote blockquote {
	margin: 0 0 1.25rem;
	font-size: clamp(1.4rem, 2.5vw, 2.1rem);
	line-height: 1.22;
	font-weight: 900;
	color: var(--wp--preset--color--deep);
}
.srd-quote-attrib { margin: 0 0 var(--wp--preset--spacing--40); color: var(--wp--preset--color--muted); }

/* --- Partner profile ----------------------------------------------------
   The reference lays a person out as ONE two-column block: a large rounded
   headshot on a tinted ground at left, and EVERYTHING else — name, role, bio —
   in the right column. Ours previously split the identity into a coloured card
   and then dumped the biography full-width underneath it, so the photo, the
   name and the prose each sat on a different left edge. That mismatch is what
   read as "the margins are off"; it was three alignments where there should be
   two.

   SRD's bios are far longer than the reference's three-line summaries (they run
   to ~2,000 characters across several subheadings), so the right column simply
   grows. That is fine — it keeps one alignment down the whole page, which is
   the thing that was broken. */
.srd-profile {
	display: grid;
	grid-template-columns: 38fr 62fr;
	gap: var(--wp--preset--spacing--60);
	/* Centred, not top-aligned (v0.20.0): with 4:5 portraits and one-
	   paragraph summaries, top alignment left a tall empty column under the
	   text — one partner's summary is a single line. */
	align-items: center;
	margin-block: var(--wp--preset--spacing--70);
}
@media (max-width: 899px) {
	.srd-profile { grid-template-columns: 1fr; gap: var(--wp--preset--spacing--40); }
}

/* The photo sits on a tinted ground rather than bleeding to the edge, exactly
   as the reference does — a portrait shot against a studio background needs a
   frame or it reads as a floating cut-out.

   4:5 PORTRAIT, NOT SQUARE (v0.20.0). The firm's new photographs are seated,
   head-to-lap office portraits, supplied as full-length 2:3 frames and
   cropped to 4:5 for the site. A square frame cut them off at the chest and
   left mostly chair. All profiles — leaders and founder — now share 4:5, so
   the set still lines up. */
.srd-profile-photo {
	display: block;
	border-radius: 32px;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	aspect-ratio: 4 / 5;
	/* NO sticky. It was pinned while a 2,000-character biography scrolled past,
	   which left a photograph hanging in an empty column — the thing that looked
	   broken while scrolling. The listing now carries a one-paragraph summary,
	   so the two columns are a similar height and nothing needs to stick. */
}
@media (max-width: 899px) {
	.srd-profile-photo { aspect-ratio: 4 / 5; max-width: 360px; }
}
.srd-profile-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	display: block;
}

.srd-profile-body > *:first-child { margin-top: 0; }
.srd-profile-name {
	margin: 0 0 .35rem;
	font-size: clamp(1.75rem, 2.6vw, 2.4rem);
	line-height: 1.12;
	font-weight: 900;
	color: var(--wp--preset--color--deep);
}
.srd-profile-role {
	margin: 0 0 var(--wp--preset--spacing--40);
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
.srd-profile-body h3 {
	margin: var(--wp--preset--spacing--40) 0 .45rem;
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
.srd-profile-body p { margin: 0 0 .9rem; max-width: 62ch; }

/* Listing summary + the ghost button that carries you to the full profile.
   This pair is the reference's whole answer to long biographies: show one
   paragraph, then get out of the way. */
.srd-profile-summary { margin: 0 0 var(--wp--preset--spacing--40); max-width: 58ch; }

/* --- Our Founder (v0.20.0) ----------------------------------------------
   The founder page reuses the profile grid above and the numbered columns
   from the About page, so it reads as part of the same system rather than a
   one-off memorial template.

   The 4:5 frame and the centred text now come from the base profile rules.
   The founder's portrait is a <figure>, not the leaders' link — there is no
   further page to go to — so the browser's default figure margin is cleared. */
.srd-profile.is-founder .srd-profile-photo { margin: 0; }
.srd-profile.is-founder .srd-profile-photo img { object-position: 50% 30%; }
/* The milestones sit under a hairline so the three dated events read as one
   chronology following the portrait, not as a second, unrelated section. */
.srd-founder-timeline {
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--line);
}
.srd-founder-next { margin-block: 0 var(--wp--preset--spacing--40); }


/* --- Individual partner page -------------------------------------------
   The reference opens a person page with a card: circular photo, a small
   "GET IN TOUCH" eyebrow, the name at display size, the role, and one
   outlined action. Ours uses the amber panel already established for interior
   heroes so the person page belongs to the same system as every other page,
   rather than introducing a third hero treatment. */
.srd-person-hero {
	/* border-box: the panel takes the page column's 1268px max-width, and with
	   the default content-box its 56px padding was ADDED to that — 1380px wide,
	   so it started 56px left of the breadcrumb and, at mid widths, spilled
	   past the page edge. */
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--wp--preset--spacing--50);
	align-items: center;
	padding: clamp(28px, 4vw, 56px);
	border-radius: 40px;
	background-image: linear-gradient(135deg, var(--wp--preset--color--deep) 0%, var(--wp--preset--color--primary-mid) 100%);
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
}
@media (max-width: 781px) {
	.srd-person-hero { grid-template-columns: 1fr; border-radius: 24px; text-align: left; }
}
.srd-person-hero-photo {
	width: clamp(140px, 18vw, 220px);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	flex: 0 0 auto;
}
.srd-person-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
/* The circle takes a dedicated square HEADSHOT ('headshot' in
   inc/leaders-data.php), cropped per person with the face centred. It used to
   zoom the 4:5 seated portrait 1.75x about one shared point (50% 19%), but
   each person sits at a different spot in their frame: it cut the top off
   Dexter's hair and pushed Sarah off-centre. One CSS zoom cannot fit every
   photograph; one crop per person can. */
/* `accent-warm`, not `secondary`. The eyebrow sits on a gradient and has to
   clear BOTH stops: amber #f0ba5a is 6.97 on the deep end but only 3.49 on the
   light end, so it passed where the panel was darkest and failed where it was
   not. #f6de90 is 9.26 / 4.63 — the whole sweep. Same trap as the hero gradient
   in v0.9.1: on a gradient, test the stops, never just one of them. */
.srd-person-eyebrow {
	margin: 0 0 .5rem;
	font-size: .8125rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
	color: var(--wp--preset--color--accent-warm);
}
.srd-person-name {
	margin: 0 0 .35rem;
	font-size: clamp(1.9rem, 3.4vw, 3rem);
	line-height: 1.08; font-weight: 900; color: #fff;
}
.srd-person-role { margin: 0 0 var(--wp--preset--spacing--40); color: #fff; opacity: .92; }

/* The biography gets the full column here — no photograph beside it to match. */
.srd-person-body { max-width: 68ch; }
.srd-person-body h2 {
	margin: var(--wp--preset--spacing--50) 0 .5rem;
	font-size: .9375rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
.srd-person-body p { margin: 0 0 1rem; }

/* --- Promo panel: the signature asymmetric shape ------------------------
   Measured off the reference: 570x637, border-radius **32px 32px 32px 160px**.
   Three normal corners and one enormously rounded bottom-left. It is the shape
   idea the whole system rests on, echoed at 32px on article tiles and 40px on
   the interior page hero.

   Holds the team photograph on the office staircase — the client's choice
   (20 Oct 2026, mockups/about-panel/), replacing both the squares motif and
   the blue-and-yellow artwork that had been tried here.

   The 160px corner is deliberately on the BOTTOM-LEFT: it points back into the
   text column beside it, which is why the reference puts the panel on the right
   and the copy on the left. Mirroring the layout without mirroring the corner
   breaks the relationship. */
.srd-promo-panel {
	position: relative;
	overflow: hidden;
	aspect-ratio: 570 / 637;
	border-radius: 32px 32px 32px 160px;
	margin: 0;
	background: var(--wp--preset--color--surface);
}
/* The photo fills the shaped panel; the 160px corner is cut by the panel's
   own radius and overflow, so the image needs no shape of its own. The file
   is the wider framing used in the approved mockup (B2-team-photo.jpg: the
   whole chandelier, the group centred, the steps at the foot), not the
   tighter IMG_20250919_145812.jpg, which cut the chandelier and sat the group
   right of centre. 3:4 against a 570:637 panel, anchored at 80% like the
   mockup: chandelier at the top edge, the steps and shoes at the foot. */
.srd-promo-panel img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 80%;
}
@media (max-width: 781px) {
	.srd-promo-panel { border-radius: 24px 24px 24px 96px; aspect-ratio: 4 / 5; }
}

/* Arrow links under the promo copy — a stacked list separated by hairlines,
   each row a whole target. The reference appends a bare arrow glyph to the
   label; ours puts it in its own span so the label stays selectable text and
   the arrow can move on hover without dragging the text with it. */
.srd-arrow-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-decoration: none !important;
	color: var(--wp--preset--color--deep);
	font-weight: 600;
	transition: color var(--srd-transition);
}
.srd-arrow-link:first-of-type { border-top: 1px solid var(--wp--preset--color--line); }
.srd-arrow-link span { transition: transform var(--srd-transition); }
.srd-arrow-link:hover { color: var(--wp--preset--color--primary); }
.srd-arrow-link:hover span { transform: translateX(6px); }

/* ==========================================================================
   BLOG — Events and publications (v0.21.0)
   Real posts, listed by the theme (logic and rationale in inc/blog.php):
     .srd-insights   home page, latest five: one large card beside a 2x2
     .srd-post-band  the Posts page and category archives: 3-up, paged
     .srd-article    a single post
   ONE card component, .srd-post-card, serves both lists. (Not `.srd-card` —
   that name is the home page's coloured service cards, with white links.) It replaces the v0.7
   `.srd-tile` grid, which was static placeholder HTML and could not show a
   post. Same anatomy as before — 32px tile, white body pulled up over the
   image — so the home page looks as approved, now with real content.
   ========================================================================== */

/* --- Template column ------------------------------------------------------
   Templates have no post-content wrapper, so the 1268px single column the
   pages get from `.wp-block-post-content > *` is restated here for them. */
main.srd-blog > * { margin-block: 0; }
.srd-blog-head {
	padding-inline: var(--wp--preset--spacing--30);
}
.srd-blog-head > * {
	max-width: min(1268px, 100%);
	margin-inline: auto;
}
.srd-blog-head > .srd-breadcrumb:first-child {
	margin-top: var(--wp--preset--spacing--40);
}
/* The intro is the head's LAST child here (on pages it is not), and core
   zeroes a flow container's last-child bottom margin at equal specificity —
   which put the lead line flush against the pale band. */
.srd-blog-head > .srd-page-intro { margin-bottom: var(--wp--preset--spacing--60); }

/* --- Section head: heading left, "see all" link right ------------------- */
.srd-section-head {
	gap: 12px 32px;
	margin-bottom: var(--wp--preset--spacing--40);
}
.srd-see-all { margin: 0; }
.srd-see-all a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: color var(--srd-transition);
}
.srd-see-all a:hover { color: var(--wp--preset--color--interact); }

/* --- Category pills --------------------------------------------------------
   Inactive white with `deep` text (12.33), current a solid `deep` fill with
   white text (12.33). Rendered by a filter on core/categories. */
.srd-cat-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: var(--wp--preset--spacing--50);
}
.srd-cat-pills a {
	border-radius: 20px;
	padding: 7px 16px;
	font-size: .875rem;
	line-height: 1.5;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--deep);
	border: 1px solid var(--wp--preset--color--line);
	text-decoration: none;
	transition: background-color var(--srd-transition), color var(--srd-transition), border-color var(--srd-transition);
}
.srd-cat-pills a:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.srd-cat-pills a[aria-current="page"] {
	background: var(--wp--preset--color--deep);
	border-color: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--base);
}

/* --- Grid --------------------------------------------------------------- */
/* Selector carries the element so it outranks core's flow-layout sibling
   margin (`:root :where(.is-layout-flow) > *`, 0,1,0), which would otherwise
   push every card after the first down by the block gap. */
ul.srd-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
ul.srd-post-grid > li { margin: 0; }
@media (max-width: 1023px) {
	ul.srd-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
	ul.srd-post-grid { grid-template-columns: 1fr; }
}

/* Home page: the newest post large, spanning two rows, beside a 2x2 —
   the proportions measured on the reference (570 : 313 : 313). With fewer
   than five posts the grid simply has gaps on the right, never a hole in
   the middle. */
.srd-insight-loop ul.srd-post-grid { grid-template-columns: 570fr 313fr 313fr; }
.srd-insight-loop ul.srd-post-grid > li:first-child { grid-row: span 2; }
.srd-insight-loop li:first-child .srd-post-card-media { aspect-ratio: 570 / 430; }
.srd-insight-loop li:first-child .srd-post-card-title { font-size: 1.75rem; }
.srd-insight-loop li:not(:first-child) .srd-post-card-excerpt { display: none; }
@media (max-width: 1023px) {
	.srd-insight-loop ul.srd-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.srd-insight-loop ul.srd-post-grid > li:first-child { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 599px) {
	.srd-insight-loop ul.srd-post-grid { grid-template-columns: 1fr; }
}

/* --- Card ---------------------------------------------------------------- */
.srd-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 32px;
	overflow: hidden;              /* clips the image AND the stretched link */
	background: var(--wp--preset--color--base);
}
.srd-post-card > .srd-post-card-media {
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	flex: 0 0 auto;
}
.srd-post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--srd-transition-slow);
}
.srd-post-card:hover .srd-post-card-media img { transform: scale(1.04); }

/* No featured image: the logo's three squares on a blue gradient. Blue grades
   to blue only — never toward the yellow (that passes through green). */
.srd-post-card-media.is-placeholder {
	background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 570 380' fill='none'><rect x='300' y='40' width='210' height='210' rx='20' transform='rotate(-18 405 145)' stroke='%23ffffff' stroke-width='1.5' opacity='.42'/><rect x='250' y='110' width='210' height='210' rx='20' transform='rotate(6 355 215)' stroke='%23ffffff' stroke-width='1.5' opacity='.30'/><rect x='350' y='150' width='210' height='210' rx='20' transform='rotate(24 455 255)' stroke='%23ffffff' stroke-width='1.5' opacity='.20'/></svg>") center / cover no-repeat,
	            linear-gradient(150deg, var(--wp--preset--color--primary), var(--wp--preset--color--deep));
}
ul.srd-post-grid > li:nth-child(3n+2) .srd-post-card-media.is-placeholder {
	background-color: var(--wp--preset--color--deep);
	background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 570 380' fill='none'><rect x='300' y='40' width='210' height='210' rx='20' transform='rotate(-7 405 145)' stroke='%23ffffff' stroke-width='1.5' opacity='.42'/><rect x='250' y='110' width='210' height='210' rx='20' transform='rotate(15 355 215)' stroke='%23ffffff' stroke-width='1.5' opacity='.30'/><rect x='350' y='150' width='210' height='210' rx='20' transform='rotate(31 455 255)' stroke='%23ffffff' stroke-width='1.5' opacity='.20'/></svg>"),
	                  linear-gradient(160deg, var(--wp--preset--color--deep), var(--wp--preset--color--primary-mid));
}
ul.srd-post-grid > li:nth-child(3n) .srd-post-card-media.is-placeholder {
	background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 570 380' fill='none'><rect x='300' y='40' width='210' height='210' rx='20' transform='rotate(4 405 145)' stroke='%23ffffff' stroke-width='1.5' opacity='.42'/><rect x='250' y='110' width='210' height='210' rx='20' transform='rotate(24 355 215)' stroke='%23ffffff' stroke-width='1.5' opacity='.30'/><rect x='350' y='150' width='210' height='210' rx='20' transform='rotate(38 455 255)' stroke='%23ffffff' stroke-width='1.5' opacity='.20'/></svg>"),
	                  linear-gradient(140deg, var(--wp--preset--color--primary-mid), var(--wp--preset--color--accent));
}

/* The white body is pulled UP over the base of the image (the reference's
   layered look). It needs its own stacking context to sit above the image,
   and selectors that carry the parent to outrank core's flow-layout margins. */
.srd-post-card > .srd-post-card-body {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin: -34px 0 0;
	padding: 28px 28px 24px;
	border-radius: 24px 24px 0 0;
	background: var(--wp--preset--color--base);
}
.srd-post-card .srd-post-card-body > * { margin: 0; }

.srd-post-card-cat {
	position: relative;
	z-index: 2;                    /* above the stretched title link */
	font-size: .875rem;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}
.srd-post-card-cat a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.srd-post-card-cat a:hover { color: var(--wp--preset--color--interact); text-decoration: underline; }

.srd-post-card-title {
	font-size: 1.375rem;
	line-height: 1.3;
	font-weight: 700;
	text-wrap: balance;
}
.srd-post-card-title a {
	color: var(--wp--preset--color--deep);
	text-decoration: none;
	transition: color var(--srd-transition);
}
/* The whole card is the title link. Its ::after is positioned against the
   card BODY (the nearest positioned box) but over-sized in every direction,
   so it reaches back over the image; the card's overflow:hidden trims it to
   the card's rounded outline. One link per card, the whole card clickable. */
.srd-post-card-title a::after {
	content: "";
	position: absolute;
	inset: -800px;
}
.srd-post-card:hover .srd-post-card-title a,
.srd-post-card-title a:focus-visible {
	color: var(--wp--preset--color--interact);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.srd-post-card:has(.srd-post-card-title a:focus-visible) {
	outline: 3px solid var(--wp--preset--color--deep);
	outline-offset: 3px;
}
.srd-post-card-title a:focus-visible { outline: none; }

.srd-post-card-excerpt p { margin: 0; color: var(--wp--preset--color--contrast); }
.srd-post-card-date {
	margin-top: auto !important;   /* pins the date to the card's foot */
	padding-top: 1rem;
	font-size: .875rem;
	color: var(--wp--preset--color--muted);
}

/* --- Pagination and the empty state -------------------------------------- */
.srd-pagination {
	margin-top: var(--wp--preset--spacing--50);
	gap: 8px;
	font-weight: 600;
}
.srd-pagination a,
.srd-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 22px;
	color: var(--wp--preset--color--deep);
	text-decoration: none;
}
.srd-pagination a:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--primary); }
.srd-pagination .page-numbers.current {
	background: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--base);
}
.srd-empty {
	margin: 0;
	padding: 32px;
	border-radius: 24px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	max-width: 68ch;
}

/* --- Single article ------------------------------------------------------
   Everything starts on the page's one left edge (the 1268px column). The
   text is held to a reading measure; the image takes the full column. */
.srd-article-head { margin-top: var(--wp--preset--spacing--50); }
.srd-article .srd-article-meta { gap: 8px 16px; }
.srd-article-meta > * { margin: 0; }
.srd-article-cat a {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	background: var(--wp--preset--color--accent-warm);   /* navy on pale yellow */
	color: var(--wp--preset--color--deep);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
}
.srd-article-cat a:hover { background: var(--wp--preset--color--secondary); }
.srd-article-date { font-size: .9375rem; color: var(--wp--preset--color--muted); }
.srd-article-head .srd-article-title {
	margin: 20px 0 0;
	max-width: 24ch;
	font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
	font-weight: 900;
	line-height: 1.06;
	letter-spacing: -.01em;
	color: var(--wp--preset--color--deep);
	text-wrap: balance;
}
/* The whole photo, never cropped (12 Oct 2026): a forced 2:1 frame cut the
   top and bottom off event photos — heads, banners, the award itself. The
   image keeps its own shape; a tall photo is capped in height instead of
   cropped. The cards in the lists still crop, so the grid stays even. */
.srd-blog-head > .srd-article-image { margin-top: var(--wp--preset--spacing--50); }
.srd-article-image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: min(80vh, 860px);
	border-radius: 32px;
}
@media (max-width: 781px) {
	.srd-article-image img { border-radius: 24px; }
}

/* The body. Outranks the page rule `.wp-block-post-content > *:not(…)`,
   which centres every child in 1268px — here children keep the left edge. */
.srd-blog-head > .srd-article-body { margin-top: var(--wp--preset--spacing--50); }
.srd-blog .srd-article-body.wp-block-post-content > *:not(.alignwide):not(.alignfull) {
	max-width: 68ch;
	margin-inline: 0;
}
.srd-blog .srd-article-body.wp-block-post-content > :is(.alignwide, .alignfull) {
	max-width: 100%;
	margin-inline: 0;
}
.srd-article-body {
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--wp--preset--color--contrast);
}
.srd-article-body > * + * { margin-top: 1.25em; }
.srd-article-body :is(h2, h3, h4) {
	color: var(--wp--preset--color--deep);
	line-height: 1.2;
	margin-top: 2em;
	margin-bottom: 0;
}
.srd-article-body h2 { font-size: 1.875rem; font-weight: 800; }
.srd-article-body h3 { font-size: 1.375rem; font-weight: 700; }
.srd-article-body :is(h2, h3, h4) + * { margin-top: .6em; }
.srd-article-body a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.srd-article-body a:hover { color: var(--wp--preset--color--interact); }
.srd-article-body :is(ul, ol) { padding-left: 1.25em; }
.srd-article-body li + li { margin-top: .4em; }
.srd-article-body .wp-block-image img { border-radius: 16px; }
.srd-article-body figcaption { font-size: .875rem; color: var(--wp--preset--color--muted); }
/* Quotes: a yellow rule is decoration on white (never text), navy words. */
.srd-article-body blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--deep);
	font-size: 1.25rem;
	font-weight: 600;
}
.srd-article-body blockquote cite { display: block; margin-top: .5em; font-size: .875rem; font-weight: 400; font-style: normal; color: var(--wp--preset--color--muted); }
.srd-article-body table { width: 100%; border-collapse: collapse; font-size: 1rem; }
/* Core's table style boxes every cell (0,1,1); carrying .wp-block-table
   outranks it, leaving the site's hairline rows. */
.srd-article-body .wp-block-table :is(th, td) { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); text-align: left; }
.srd-article-body .wp-block-table thead { border-bottom: 2px solid var(--wp--preset--color--deep); }
.srd-article-body th { color: var(--wp--preset--color--deep); }
.srd-article-body .wp-block-table { overflow-x: auto; }

.srd-blog-head > .srd-article-foot {
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--70);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
}
.srd-article-foot p { margin: 0; }
.srd-article-foot a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.srd-article-foot a:hover { color: var(--wp--preset--color--interact); }

/* --- 404 ----------------------------------------------------------------- */
.srd-notfound { padding-top: var(--wp--preset--spacing--50); }
.srd-notfound .srd-page-intro { margin-bottom: var(--wp--preset--spacing--70); }
.srd-btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: var(--wp--preset--spacing--40); }

/* ==========================================================================
   CAREERS — Job Openings (v0.22.0)
   Roles come from Job Openings in wp-admin (inc/jobs.php). The Career page
   lists them as ROWS, not cards: a role has no photograph, and the site's
   own device for a list of destinations is the hairline-separated arrow
   row (.srd-arrow-link). A role's page reuses the article layout above.
   ========================================================================== */
.srd-careers-intro {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast);
}
.wp-block-post-content > .srd-jobs {
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--70);
}
.srd-jobs > .srd-jobs-title { margin: 0 0 var(--wp--preset--spacing--40); }

ul.srd-job-rows {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--wp--preset--color--line);
}
ul.srd-job-rows > li {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
/* Title + summary | type and department | arrow. The whole row is the
   title's link (stretched ::after); the row is the positioned box. */
.srd-job-rows .srd-job-row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 24px;
	align-items: center;
	gap: 12px 40px;
	padding: 28px 0;
}
.srd-job-rows .srd-job-row > *,
.srd-job-rows .srd-job-main > * { margin: 0; }
.srd-job-row::after {
	content: "";
	width: 20px;
	height: 20px;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 5.5 19.5 12 13 18.5'/></svg>") center / contain no-repeat;
	        mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 5.5 19.5 12 13 18.5'/></svg>") center / contain no-repeat;
	transition: transform var(--srd-transition);
}
.srd-job-row:hover::after { transform: translateX(6px); }

.srd-job-title {
	font-size: 1.5rem;
	line-height: 1.25;
	font-weight: 700;
}
.srd-job-title a {
	color: var(--wp--preset--color--deep);
	text-decoration: none;
	transition: color var(--srd-transition);
}
.srd-job-title a::after { content: ""; position: absolute; inset: 0; }
.srd-job-row:hover .srd-job-title a,
.srd-job-title a:focus-visible {
	color: var(--wp--preset--color--interact);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.srd-job-title a:focus-visible { outline: none; }
.srd-job-row:has(.srd-job-title a:focus-visible) {
	outline: 3px solid var(--wp--preset--color--deep);
	outline-offset: 4px;
	border-radius: 4px;
}
.srd-job-rows .srd-job-main > .srd-job-summary {
	margin-top: .4rem;
	max-width: 68ch;
	color: var(--wp--preset--color--contrast);
}

/* Type and department labels. Type is the pale-yellow pill (navy text, the
   logo's warm note); department is outlined. Plain spans — no links. */
.srd-job-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}
.srd-job-meta > * { margin: 0; }
.srd-job-tags { display: contents; }
.srd-job-tag {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--deep);
	font-size: .875rem;
	font-weight: 600;
	white-space: nowrap;
}
@media (max-width: 781px) {
	.srd-job-rows .srd-job-row { grid-template-columns: minmax(0, 1fr) 24px; gap: 14px 16px; }
	.srd-job-row .srd-job-meta { grid-column: 1; grid-row: 2; justify-content: flex-start; }
	.srd-job-row::after { grid-column: 2; grid-row: 1; }
}
.srd-jobs .srd-empty { background: var(--wp--preset--color--surface); }

/* --- A role's page ------------------------------------------------------- */
.srd-article-head > .srd-job-meta { justify-content: flex-start; }
/* The first paragraph is the summary — set as a lead. */
.srd-blog .srd-job-body.wp-block-post-content > p:first-child {
	font-size: 1.375rem;
	line-height: 1.5;
	color: var(--wp--preset--color--deep);
}
.srd-blog-head > .srd-apply {
	box-sizing: border-box;     /* panel edges on the column, like every panel */
	margin-top: var(--wp--preset--spacing--60);
	padding: 40px;
	border-radius: 32px;
	background: var(--wp--preset--color--accent-warm);   /* navy text 13+ */
}
.srd-apply > * { margin: 0; }
.srd-apply .srd-apply-title {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--wp--preset--color--deep);
}
.srd-apply p {
	margin-top: .75rem;
	max-width: 60ch;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--wp--preset--color--contrast);
}
.srd-apply p a:not(.wp-element-button) { color: var(--wp--preset--color--primary); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.srd-apply p a:not(.wp-element-button):hover { color: var(--wp--preset--color--interact); }
/* WordPress auto-wraps the shortcode's button in its own <p>. */
.srd-apply p:has(> .wp-element-button) { margin-top: var(--wp--preset--spacing--40); }
@media (max-width: 781px) {
	.srd-blog-head > .srd-apply { padding: 28px 24px; border-radius: 24px; }
}

/* ==========================================================================
   FLUENT FORMS — the Contact Us form (v0.22.1)
   The plugin ships its own look (bright #1a7efb button, Arial, 7px corners,
   42px tall) and sets the button colour INLINE from its form settings, so
   colour needs !important. Everything else reads the theme's tokens, so the
   form's button is the same object as every other button on the site.
   ========================================================================== */
.fluentform,
.fluentform :is(input, textarea, select, button, label) { font-family: inherit; }
.fluentform .ff-el-input--label label {
	font-weight: 600;
	color: var(--wp--preset--color--deep);
}
.fluentform .ff-el-form-control {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--srd-radius-control);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	min-height: 48px;
	font-size: 1rem;
}
.fluentform .ff-el-form-control:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(0, 74, 173, .15);
	outline: none;
}
.fluentform .ff-el-form-check-label { color: var(--wp--preset--color--contrast); line-height: 1.5; }
.fluentform .ff-btn-submit,
.fluentform .ff-btn-submit:not(.ff_btn_no_style) {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--srd-btn-height);
	padding: 0 var(--srd-btn-pad-x);
	border: var(--srd-btn-border) solid transparent !important;
	border-radius: var(--srd-radius-control) !important;
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--base) !important;
	font-size: var(--srd-btn-size);
	font-weight: var(--srd-btn-weight);
	letter-spacing: var(--srd-btn-tracking);
	line-height: 1.2;
	box-shadow: none !important;
	opacity: 1 !important;
	transition: color var(--srd-transition), background-color var(--srd-transition);
}
/* Same hover as every theme button: the arrow (see ARROW ON HOVER). */
.fluentform .ff-btn-submit { transition: padding .32s var(--srd-ease); }
.fluentform .ff-btn-submit::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 5.5 19.5 12 13 18.5'/></svg>") center / contain no-repeat;
	        mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 5.5 19.5 12 13 18.5'/></svg>") center / contain no-repeat;
	opacity: 0;
	transform: translateX(-10px);
	transition: opacity .28s var(--srd-ease), transform .32s var(--srd-ease);
	pointer-events: none;
}
.fluentform .ff-btn-submit:is(:hover, :focus-visible) {
	padding-left: calc(var(--srd-btn-pad-x) - 14px);
	padding-right: calc(var(--srd-btn-pad-x) + 14px);
}
.fluentform .ff-btn-submit:is(:hover, :focus-visible)::after { opacity: 1; transform: none; }
.fluentform .ff-btn-submit:focus-visible {
	outline: 3px solid var(--wp--preset--color--base);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--wp--preset--color--navy) !important;
}
/* Consent checkbox: a gap before its text, ticked in the logo blue. Needs
   the extra class: the plugin's `.fluentform input[type="checkbox"]`
   (0,2,1) zeroes the margin and outranks a two-class selector. */
.fluentform .ff-el-form-check input.ff-el-form-check-input {
	margin: 0 10px 0 0;
	accent-color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   OFFICE MAP — [srd_map] on Contact Us (v0.22.2)
   A Google Maps embed in the same 32px-radius panel the form sits in, so the
   map reads as part of the page rather than a pasted-in frame.
   ========================================================================== */
.srd-map {
	margin: 0;
	border-radius: 32px;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	line-height: 0;
}
/* The map is the page's last block: room before the footer band, as every
   other page leaves under its last section. */
.wp-block-post-content > .srd-map:last-child,
.wp-block-post-content > p:last-child > .srd-map { margin-bottom: var(--wp--preset--spacing--70); }
.srd-map iframe {
	display: block;
	width: 100%;
	height: 440px;
	border: 0;
}
@media (max-width: 781px) {
	.srd-map { border-radius: 24px; }
	.srd-map iframe { height: 320px; }
}

/* ==========================================================================
   HOMEPAGE HERO — load sequence (v0.22.4)
   The photo is there from the first paint; the words follow it, one after
   another, each rising 24px as it fades in — the reference site's hero does
   the same. Time-based, not scroll-driven: the hero is on screen at load, so
   the scroll reveal (.srd-reveal) is switched off here. With reduced motion
   asked for, or no animation support, everything simply shows.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.srd-hero .srd-reveal { animation: none; }
	.srd-hero .srd-reveal > * {
		animation: srd-hero-in .9s cubic-bezier(.22, .61, .36, 1) both;
	}
	.srd-hero .srd-reveal > :nth-child(1) { animation-delay: .35s; }
	.srd-hero .srd-reveal > :nth-child(2) { animation-delay: .55s; }
	.srd-hero .srd-reveal > :nth-child(3) { animation-delay: .8s; }
	.srd-hero .srd-reveal > :nth-child(4) { animation-delay: 1.05s; }
}
@keyframes srd-hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   ACCREDITATIONS — seals of the four regulators (v0.22.6)
   Modelled on the reference site's awards row: one quiet tile per body, a
   1px line and a 24px radius, the mark centred with air around it. The name
   sits under each seal in text, so the row reads without the images and the
   seals can carry alt="" (they would only repeat the name).
   ========================================================================== */
.srd-accred .srd-accred-title {
	margin: 0 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 900;
	color: var(--wp--preset--color--deep);
}
.srd-accred-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.srd-accred-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 0;
	padding: 36px 20px 28px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 24px;
	background: var(--wp--preset--color--base);
	text-align: center;
}
/* The round seals and the wide SEC lockup carry the same visual weight at
   different boxes: a 112px circle beside a 232x104 wordmark (its file is
   rendered 480x216, tight to the mark, so it is not shrunk by empty space). */
.srd-accred-seal {
	display: block;
	width: 112px;
	height: 112px;
	object-fit: contain;
}
.srd-accred-seal.is-sec { width: 232px; height: 104px; margin-block: 4px; }
.srd-accred-name {
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wp--preset--color--deep);
	text-wrap: balance;
}
@media (max-width: 899px) {
	.srd-accred-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.srd-accred-item { padding: 28px 14px 22px; gap: 14px; }
	.srd-accred-seal { width: 88px; height: 88px; }
	.srd-accred-seal.is-sec { width: 150px; height: 68px; margin-block: 10px; }
}

/* --- Privacy Policy (patterns/privacy-policy.php) ----------------------
   A legal page is read, not scanned: one column at a reading measure, plain
   numbered headings, generous line height. */
/* Same 760px centred column as the page title above it (page.html sets the
   title in a 760px constrained group), so heading and text share one edge. */
.wp-block-post-content > .srd-policy:not(.alignfull):not(.wp-block-spacer) { max-width: min(760px, 100%); margin-inline: auto; }
.srd-policy > * { max-width: 100%; }
.srd-policy .srd-policy-date { color: var(--wp--preset--color--muted); font-size: .9375rem; margin-top: 0; }
.srd-policy p, .srd-policy li { line-height: 1.7; color: var(--wp--preset--color--contrast); }
.srd-policy h2 {
	margin: 2.2em 0 .6em;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--wp--preset--color--deep);
}
.srd-policy ul { padding-left: 1.25em; }
.srd-policy li + li { margin-top: .45em; }
.srd-policy a { color: var(--wp--preset--color--primary); text-decoration: underline; text-underline-offset: 3px; }
.wp-block-post-content > .srd-policy { margin-bottom: var(--wp--preset--spacing--70); }

/* --- Home cards: the whole card is the link (v0.22.7) --------------------
   The "View services" link is stretched over its card, so the card shows a
   pointer and takes the click anywhere; on hover the card steps darker (the
   existing rung rule) and the arrow slides right. One link per card for
   screen readers — the stretch is a pseudo-element, not a second link. */
.srd-card:has(.srd-card-more) { position: relative; cursor: pointer; }
.srd-card .srd-card-more a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.srd-card .srd-card-more a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.srd-card-arrow {
	display: inline-block;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 5.5 19.5 12 13 18.5'/></svg>") center / contain no-repeat;
	        mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 5.5 19.5 12 13 18.5'/></svg>") center / contain no-repeat;
	transition: transform .32s var(--srd-ease);
}
.srd-card:hover .srd-card-arrow,
.srd-card:has(a:focus-visible) .srd-card-arrow { transform: translateX(8px); }
.srd-card:hover .srd-card-more a { text-decoration: underline; text-underline-offset: 4px; }
.srd-card:has(.srd-card-more a:focus-visible) {
	outline: 3px solid var(--wp--preset--color--deep);
	outline-offset: 4px;
}
.srd-card .srd-card-more a:focus-visible { outline: none; }

/* --- Domino reveal (assets/js/domino.js) ----------------------------------
   Any list marked data-srd-domino: its items fade up one after another when
   it comes into view — the accreditation tiles, and (v0.23.3) the article
   cards on the home page and on Events and Publications.
   A keyframe ANIMATION, not a transition (v0.23.2): a transition needs the
   hidden state to have been rendered first, and on a reload the browser
   restores the scroll position so early that hidden and shown arrived in the
   same frame. An animation always plays from its first keyframe. */
[data-srd-domino].is-armed:not(.is-in) > *,
.srd-motion [data-srd-domino]:not(.is-in) > * { opacity: 0; }
[data-srd-domino].is-in > * {
	animation: srd-domino-in .7s var(--srd-ease) both;
}
[data-srd-domino].is-in > :nth-child(2) { animation-delay: .12s; }
[data-srd-domino].is-in > :nth-child(3) { animation-delay: .24s; }
[data-srd-domino].is-in > :nth-child(4) { animation-delay: .36s; }
[data-srd-domino].is-in > :nth-child(5) { animation-delay: .48s; }
[data-srd-domino].is-in > :nth-child(6) { animation-delay: .6s; }
[data-srd-domino].is-in > :nth-child(n+7) { animation-delay: .72s; }
@keyframes srd-domino-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   INTERIOR PAGE HEADER — load sequence (v0.22.7)
   After the reference site's page heads: the yellow panel settles in, the
   logo's three squares swing into place behind the title, then the title
   rises and the lead line follows. Time-based, because the panel is on
   screen at load; the scroll reveal it also carries is switched off here.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.srd-page-hero.srd-reveal {
		animation: srd-panel-in .7s var(--srd-ease) both;
		animation-timeline: auto;
		animation-range: normal;
	}
	.srd-page-hero::after {
		transform-origin: 80% 50%;
		animation: srd-mark-in 1.5s cubic-bezier(.22, .61, .36, 1) .15s both;
	}
	.srd-page-hero h1 { animation: srd-hero-in .9s cubic-bezier(.22, .61, .36, 1) .3s both; }
	.srd-page-hero + .srd-page-intro,
	.srd-page-hero ~ .srd-page-intro { animation: srd-hero-in .9s cubic-bezier(.22, .61, .36, 1) .55s both; }
}
@keyframes srd-panel-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes srd-mark-in {
	from { opacity: 0; transform: translateX(60px) rotate(-10deg) scale(1.12); }
	to   { opacity: 1; transform: none; }
}

/* CONTRAST NOTE — `primary` is measured against TWO grounds, not one.
   The theme has a white base AND a cream `surface` #faf5ec, and cream is the
   harder of the two. A first attempt at a more vivid primary (#bb5502) cleared
   white at 4.76 but only reached 4.38 on cream — it passed the desktop audit
   and failed at 390px, where the accreditation labels shrink below the
   large-text threshold. #b65302 is the most saturated value (98%) that clears
   both: 4.97 on white, 4.57 on cream. Check any future primary against cream. */

/* CONTRAST NOTE — warm tones on the navy footer.
   `accent` #ea8a3c on navy #0c4e96 is only 3.22:1 and FAILS AA for text; the
   footer tagline used it and was the one failure the audit caught after the
   repaint. `secondary` #f0ba5a on the same navy is 4.67:1 and passes. So on
   the blue footer the warm tone is ALWAYS the lighter amber, never the orange. */

/* --- The ribbon: RETIRED (v0.23.0, client decision) ----------------------
   The three-band wave (sky, yellow, orange) between sections was removed:
   it read as a 2015-era page-builder divider, was louder than the call to
   action it introduced, and repeated on every page. Sections are now divided
   by what the rest of the design already uses — a change of ground (white,
   pale surface, navy) and generous spacing. Hidden rather than only deleted,
   because a page saved before the change may still hold the markup. */
.srd-ribbon { display: none !important; }

/* With the wave gone, the call-to-action band follows a white section
   directly; give it the same room every other section boundary has. A band
   with its own background (e.g. the pale "Stay in the know") already touches
   it, so that case keeps margin 0. The band is now the logo blue (primary),
   not navy: against the navy footer below, the colour step is what divides
   the two — white text is 8.13:1 on it. */
.wp-block-post-content > :not(.has-background):not(.srd-ribbon) + .alignfull:is(.has-navy-background-color, .has-primary-background-color),
.wp-block-post-content > :not(.has-background) + .srd-ribbon + .alignfull:is(.has-navy-background-color, .has-primary-background-color) {
	margin-top: var(--wp--preset--spacing--70) !important;
}
/* The logo-colour stripe (v0.23.1, client choice) — ONE accent, at the top
   of the footer on every page. With the waves retired the pages were nearly
   all blue; this restores the logo's warm end as a signature rather than a
   divider. Hard colour stops, never a blend: blue faded into yellow passes
   through green (BRAND_PALETTE.md). Proportions follow the logo, mostly
   blue with a yellow-orange end. No `primary` segment: the call-to-action
   band directly above is primary, so that stretch vanished into it. */
footer.wp-block-group.has-navy-background-color { position: relative; }
footer.wp-block-group.has-navy-background-color::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	background: linear-gradient(90deg,
		var(--wp--preset--color--deep) 0 36%,
		var(--wp--preset--color--accent) 36% 72%,
		var(--wp--preset--color--secondary) 72% 90%,
		#ef9f28 90% 100%);
	pointer-events: none;
}

/* Balanced lines in the call-to-action heading — unbalanced, it left
   "Service" alone on the second line at desktop width. */
.alignfull.has-primary-background-color > .wp-block-heading { text-wrap: balance; }
.wp-block-post-content > .has-background + .srd-ribbon + .alignfull:is(.has-navy-background-color, .has-primary-background-color) {
	margin-top: 0 !important;
}

/* ==========================================================================
   3. CARDS & PANELS
   Permanent content gets the 30px radius. Panels lift on hover; they never
   scale. Blue cards lighten rather than darken.
   ========================================================================== */

.srd-card {
	border-radius: var(--srd-radius-panel);
	transition: background-color var(--srd-transition);
}

/* NO hover lift, and no hover shadow. The reference site's cards do not move
   at all — the only thing that happens is a colour step (and, where there is
   a photograph, a 1.01 scale on the image inside). A translate plus a 30px
   shadow was the v0.4.0 vocabulary and it reads as a different, busier site.
   Removing it also removes the one place where a card could overlap its
   neighbour mid-transition.

   Every rung now answers on colour, so nothing depends on the lift:
     deep        #532a09 (12.33) -> #3c1e07 (15.21)  darker
     primary-mid #984d10  (6.17) -> #81410e (7.79)   darker
     primary     #af5913  (4.93) -> #984d11 (6.17)   darker
     navy        #0c4e96  (8.25) -> #0a427e (10.03)  darker
   Every rung now DARKENS on hover, so contrast only ever rises.

   primary-mid is the interesting one. The old note said it "cannot hover by
   colour" because lightening it would break the 4.5:1 floor for white text —
   true, but only for LIGHTENING. Darkening raises contrast, so it is always
   safe; it just was not considered. It now steps down instead of up, which is
   why it needs no lift either. */
.srd-card.has-deep-background-color:hover        { background-color: #001c42 !important; } /* 15.42 -> 16.87 */
.srd-card.has-primary-background-color:hover     { background-color: #003b8a !important; } /*  8.13 -> 10.54 */
.srd-card.has-primary-mid-background-color:hover { background-color: #154983 !important; } /*  6.83 ->  9.08 */
.srd-card.has-navy-background-color:hover        { background-color: #002a66 !important; } /* 11.53 -> 13.79 */

/* Cards keep their headings white — theme.json defaults them to navy. */
.srd-card :is(h2, h3, h4),
.srd-bio-card :is(h2, h3, h4) { color: #fff; }

/* Card CTAs ("View services →") are the card's action, not a word inside a
   sentence, so WCAG 2.5.8's inline exception does not really cover them. They
   measured 18px tall; pad to the 24px minimum. */
.srd-card a {
	color: #fff;
	display: inline-block;
	padding-block: 3px;
	min-height: 24px;
}

/* Square-cornered variant for full-width service bands. */
.srd-card.is-band { border-radius: 0; }

/* EQUAL-HEIGHT CARDS, CTAs ON ONE LINE. A card in a Columns row fills its
   column (columns stretch to the tallest), and its link is pushed to the
   bottom edge. Without this, "Services Provided" — whose copy wraps to three
   lines — stood 22px taller than its neighbours with its link 22px lower,
   at every width from 900px up.

   Flex column, not grid: the card is a CONSTRAINED layout, whose children
   carry `margin-inline: auto`. In a flex column that would shrink each child
   to its content and centre it, so they are held at full width; the auto
   margins then have no free space to take. The free vertical space goes to
   the paragraph above the link (`margin-block-end: auto`), so the link keeps
   its own top margin as the minimum gap. Scoped with :has() to cards whose
   last child holds a link — the service cards have no link and keep their
   natural stack. */
.wp-block-column > .srd-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}
.wp-block-column > .srd-card > * { width: 100%; }
.wp-block-column > .srd-card:has(> :last-child a) > :nth-last-child(2) { margin-block-end: auto; }

/* ---- Partner bio card (Our Leaders) --------------------------------------
   The reference site's bio panel, adapted. Two deliberate differences:

   1. NAVY, not primary blue. The role line is the firm's orange accent, and
      orange on primary #10519b measures only 3.49:1 — it fails even WCAG
      AA-large. On navy it is 4.96:1 and passes AA outright, while the white
      name goes from 6.18:1 to 11.52:1. Navy is also the system's "authority"
      colour, which suits partners at an accountancy firm.
   2. It holds the identity block ONLY — headshot, name, role — and the long
      biography flows beneath it on white. SRD's bios run ~2,000 characters
      each across several sub-headed sections; wrapping all of that in blue
      would turn the page into a wall of colour.

   No hover state: unlike .srd-card this is not a link, so there is nothing to
   invite a click on.
--------------------------------------------------------------------------- */
.srd-bio-card {
	border-radius: var(--srd-radius-panel);
}

/* White frame around the headshot, matching the panel's own radius — the
   reference site's trick for making a portrait read as a component rather
   than a photo dropped on the page. */
.srd-bio-card .srd-headshot img {
	border: 5px solid var(--wp--preset--color--base);
	box-shadow: none;
}

/* ==========================================================================
   4. BUTTONS
   Controls are NEAR-SQUARE (4px), not pills. theme.json carries the shape,
   the 0.8px tracking and the 14px/32px padding; this file adds the variants.
   On hover a button keeps its colours and shows an arrow (see ARROW ON
   HOVER below); it never changes size.
   ========================================================================== */

.wp-element-button,
.srd-ghost-btn {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--srd-btn-height);
	padding-block: 0;
	padding-inline: var(--srd-btn-pad-x);
	border: var(--srd-btn-border) solid transparent;
	border-radius: var(--srd-radius-control);
	font-size: var(--srd-btn-size);
	font-weight: var(--srd-btn-weight);
	letter-spacing: var(--srd-btn-tracking);
	line-height: 1.2;
	text-decoration: none !important;
	transition: color var(--srd-transition), border-color var(--srd-transition),
	            background-color var(--srd-transition);
}
/* Every button carries a 2px border, transparent on the solid ones. That is
   what makes solid and ghost the same outer size — the previous ghost variant
   compensated with hand-tuned padding, which is exactly how the two drifted
   apart. `box-sizing: border-box` does the arithmetic instead. */

/* ORDER MATTERS. This variant MUST come after the shared base above: both are
   single-class selectors, so the later one wins, and while it sat earlier in
   the file the base's `border-color: transparent` was overriding it and every
   ghost button rendered borderless. */

/* Ghost: transparent with a visible border. Only the colours differ from the
   solid button — size, type and radius all come from the shared tokens. */
.srd-ghost-btn {
	background: transparent;
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}
.srd-ghost-btn.is-on-dark {
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--base);
}


/* ARROW ON HOVER (v0.22.7, client request, after the reference site).
   Replaces the old colour sweep: a button keeps its colours, and on hover or
   keyboard focus the label slides 14px left while an arrow fades in where it
   was. The padding trades left for right, so the button never changes size
   and nothing beside it moves. The arrow is a CSS mask filled with
   currentColor, so it always matches the label on any ground. */
.wp-element-button,
.srd-ghost-btn {
	transition: color var(--srd-transition), border-color var(--srd-transition),
	            background-color var(--srd-transition),
	            padding .32s var(--srd-ease);
}
.wp-element-button::after,
.srd-ghost-btn::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 5.5 19.5 12 13 18.5'/></svg>") center / contain no-repeat;
	        mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 5.5 19.5 12 13 18.5'/></svg>") center / contain no-repeat;
	opacity: 0;
	transform: translateX(-10px);
	transition: opacity .28s var(--srd-ease), transform .32s var(--srd-ease);
	pointer-events: none;
}
:is(.wp-element-button, .srd-ghost-btn):is(:hover, :focus-visible) {
	padding-left: calc(var(--srd-btn-pad-x) - 14px) !important;
	padding-right: calc(var(--srd-btn-pad-x) + 14px) !important;
}
:is(.wp-element-button, .srd-ghost-btn):is(:hover, :focus-visible)::after {
	opacity: 1;
	transform: none;
}
/* The header's Contact button is navigation, not a call to action: no arrow,
   just a step darker on hover. */
.srd-header .wp-element-button::after { content: none; }
.srd-header .wp-element-button:is(:hover, :focus-visible) {
	padding-left: var(--srd-btn-pad-x) !important;
	padding-right: var(--srd-btn-pad-x) !important;
	background-color: var(--wp--preset--color--interact) !important;
}
@media (prefers-reduced-motion: reduce) {
	.wp-element-button, .srd-ghost-btn,
	.wp-element-button::after, .srd-ghost-btn::after { transition: none; }
}

/* Inverse: white fill, blue text — for use ON blue or ON imagery. The only
   button carrying a resting shadow, because it is the only one on a busy
   ground. */
.is-style-srd-inverse > .wp-element-button,
.wp-block-button.is-style-srd-inverse .wp-element-button {
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--primary) !important;
	border-radius: var(--srd-radius-control);
	box-shadow: var(--srd-shadow-sm);
}

/* WordPress core's outline style ships its own padding (10.67/21.28). The base
   rule above already sets padding, border and box-sizing for every button, so
   core's values just need overriding — no per-variant arithmetic. */
.wp-block-button.is-style-outline > .wp-element-button {
	background-color: transparent !important;
	padding-inline: var(--srd-btn-pad-x) !important;
	padding-block: 0 !important;
}
/* The padding above is !important at 0,3,0, so the arrow hover's padding
   trade has to be restated at that weight or the label never moves. */
.wp-block-button.is-style-outline > .wp-element-button:is(:hover, :focus-visible) {
	padding-left: calc(var(--srd-btn-pad-x) - 14px) !important;
	padding-right: calc(var(--srd-btn-pad-x) + 14px) !important;
}
/* on imagery / dark bands */
.srd-hero .is-style-outline > .wp-element-button,
.has-navy-background-color .is-style-outline > .wp-element-button,
.has-primary-background-color .is-style-outline > .wp-element-button {
	border-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--base) !important;
}
/* default ground (white / stone). The dark-ground rules above carry
   !important and win wherever they apply, so this is just the fallback. */
.wp-block-button.is-style-outline > .wp-element-button {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

/* Outline buttons: the arrow PLUS a faint tint (client choice, v0.22.9).
   An outline button has little colour of its own, so the arrow alone read
   as light; a full fill would make it look like the primary button for a
   moment. The tint is the logo blue at 7% on light grounds and white at 14%
   on dark ones — enough to answer the pointer, still clearly the second
   choice. The background rule above carries !important, so these must too. */
.wp-block-button.is-style-outline > .wp-element-button:is(:hover, :focus-visible),
.srd-ghost-btn:is(:hover, :focus-visible) {
	background-color: rgba(0, 74, 173, .07) !important;
}
:is(.srd-hero, .has-navy-background-color, .has-primary-background-color, .has-deep-background-color) .is-style-outline > .wp-element-button:is(:hover, :focus-visible),
.srd-ghost-btn.is-on-dark:is(:hover, :focus-visible) {
	background-color: rgba(255, 255, 255, .14) !important;
}

/* FOCUS RING — the reference site has effectively none (a 1px border change),
   which is the one thing from it not worth copying. No SINGLE colour clears
   3:1 on every ground a button sits on here (measured: interact drops to
   1.03:1 on primary-mid), so the ring is TWO-TONE: a white outline with a navy
   halo outside it. Whichever ground it lands on, one of the two contrasts.
   `:focus-visible`, so it appears for keyboard users and not on mouse click. */
.wp-element-button:focus-visible,
.srd-header .wp-block-navigation-item > a:focus-visible {
	outline: 3px solid var(--wp--preset--color--base);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--wp--preset--color--navy);
}

/* ==========================================================================
   5. IMAGERY
   Round the WRAPPER, never the image — so the same asset can be square in one
   slot and rounded in another. Everything covers; nothing stretches.
   ========================================================================== */

.srd-figure,
.srd-figure img {
	border-radius: var(--srd-radius-panel);
}
.srd-figure {
	overflow: hidden;
	line-height: 0;
}
.srd-figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}
.srd-figure.is-ratio-16-9 { aspect-ratio: 16 / 9; }
.srd-figure.is-ratio-3-4  { aspect-ratio: 3 / 4; }

/* The reference site's ONE card motion: the wrapper clips, and the image
   inside grows a hair on hover. 1.01 is deliberately almost imperceptible —
   it reads as the image breathing, not as a zoom. .6s because a large element
   travelling a short distance needs longer than an interface control does.

   DORMANT TODAY, ON PURPOSE. It is scoped to images inside something you can
   actually click, and right now the theme has none: the only images are the
   seven partner headshots, which sit in a bio card that is not a link. Scaling
   a static portrait on hover would be motion with no meaning. The rule is kept
   because the moment a clickable photo card appears (an insights or events
   teaser, the obvious next content type) it should already behave correctly
   rather than being reinvented.

   NOTE: `.srd-figure` below is declared but currently unused by any pattern —
   the headshots use `.srd-headshot`. Both are covered here. */
:is(.srd-figure, .srd-headshot) img {
	transition: transform var(--srd-transition-slow);
}
a:hover :is(.srd-figure, .srd-headshot) img,
.srd-card:hover :is(.srd-figure, .srd-headshot) img {
	transform: scale(1.01);
}

/* Partner headshots — 3:4 in a rounded frame, matching the panel radius, so a
   portrait reads as a component rather than a photo dropped on the page.
   Photo filenames are NOT sequential; see inc/leaders-data.php for the
   verified photo-to-person mapping. */
.srd-headshot img {
	border-radius: var(--srd-radius-panel);
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: 50% 20%;   /* bias to the face, not the chest */
	box-shadow: var(--srd-shadow-sm);
}

/* `.srd-rule` (the grey divider that used to sit between partner profiles) was
   removed in v0.4.0 — the navy bio card is now the divider, so a hairline on
   top of it was redundant. Profiles are separated by spacing alone. */

/* Placeholder avatar for stub pages. */
.srd-avatar {
	width: 84px; height: 84px; border-radius: 50%;
	background: linear-gradient(135deg, #dde5f0, #f4f7fb);
	margin: 0 auto .9rem;
	border: 1px solid var(--wp--preset--color--line);
}

/* ==========================================================================
   6. FOOTER
   Navy, substantial, with a brand-blue hairline — the only hairline in the
   system that isn't grey. Social icons are circles filled with `secondary`.
   ========================================================================== */

.srd-footer-rule {
	height: 3px;
	background: var(--wp--preset--color--primary);
	border: 0;
	opacity: 1;
	margin-block: var(--wp--preset--spacing--50);
}

.wp-block-social-links .wp-social-link {
	background-color: var(--wp--preset--color--secondary) !important;
	border-radius: 50%;
	transition: transform var(--srd-transition), box-shadow var(--srd-transition);
}
.wp-block-social-links .wp-social-link:hover {
	transform: translateY(-3px);
	box-shadow: var(--srd-shadow-md);
}
.wp-block-social-links .wp-social-link svg { fill: var(--wp--preset--color--navy); }

/* Footer links fade rather than underline. */
footer a { transition: opacity var(--srd-transition); }
footer a:hover { opacity: .8; }

/* ==========================================================================
   7. MOTION — scroll reveals
   Pure CSS, no library and no JavaScript: scroll-driven animation via
   `animation-timeline: view()`. Wrapped in @supports so that browsers without
   it simply render the content visible — the content is NEVER hidden by
   default, which is the failure mode of every JS reveal library.

   Vocabulary is deliberately three directional fades: up, right, left. No
   zoom, flip, rotate or scale.

   WHAT WE TOOK FROM THE REFERENCE SITE, AND WHAT WE DID NOT
   It reveals with `block-element-fade-in`: opacity 0->1 plus a translate, over
   **1.2s cubic-bezier(.7,.05,.4,1)**, triggered by script when the element
   enters the viewport. We took the longer TRAVEL (--srd-reveal-y, 40px) but
   deliberately kept neither the duration nor the curve, because ours is a
   different mechanism:

     - Their animation is TIME-based, so 1.2s is meaningful. Ours is linked to
       scroll position, so `animation-duration` is ignored outright —
       `animation-range` is what governs it. "Make it 1.2s" has no meaning here.
     - Their dramatic curve works when time drives it. On a scroll-linked
       animation an aggressive curve decouples the element from the scroll
       wheel: you move the page a little and the content lurches. `linear` is
       the correct easing for a scroll-driven timeline and is kept on purpose.

   Their approach also hides content until script runs. Ours cannot, which is
   worth more on a site this size than matching the exact curve.
   ========================================================================== */

@keyframes srd-fade-up    { from { opacity: 0; transform: translateY(var(--srd-reveal-y)); } to { opacity: 1; transform: none; } }
@keyframes srd-fade-in    { from { opacity: 0; } to { opacity: 1; } }
@keyframes srd-fade-right { from { opacity: 0; transform: translateX(calc(var(--srd-reveal-y) * -1)); } to { opacity: 1; transform: none; } }
@keyframes srd-fade-left  { from { opacity: 0; transform: translateX(var(--srd-reveal-y)); }  to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		/* The range is deliberately SHORT. A long range leaves anything sitting
		   near the fold stuck at partial opacity, which reads as a washed-out
		   colour bug rather than as an animation. Reaching full opacity early
		   keeps the reveal a grace note instead of a rendering problem. */
		.srd-reveal,
		.srd-reveal-right,
		.srd-reveal-left {
			animation: srd-fade-up linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 14%;
		}
		.srd-reveal-right { animation-name: srd-fade-right; }
		.srd-reveal-left  { animation-name: srd-fade-left; }

		/* A full-bleed band with its own background FADES, it does not translate.
		   Sliding one down tears its seam with whatever butts against it above:
		   the amber ribbon sits flush on the navy CTA band, and a 40px translate
		   opened a white sliver between them for the whole length of the reveal.
		   Measured: transform matrix(1,0,0,1,0,40) while off-screen, 0 once
		   settled — so the bug was invisible in a static screenshot taken after
		   the animation finished, and obvious while scrolling. Any full-bleed
		   coloured section has this problem, so the rule is general. */
		.srd-reveal.alignfull.has-background { animation-name: srd-fade-in; }

		/* Cascade for grouped items — the scroll-driven equivalent of the
		   reference site's 100ms delay steps. */
		.srd-stagger > *              { animation: srd-fade-up linear both; animation-timeline: view(); animation-range: entry 0% cover 14%; }
		.srd-stagger > *:nth-child(2) { animation-range: entry 0% cover 17%; }
		.srd-stagger > *:nth-child(3) { animation-range: entry 0% cover 20%; }
		.srd-stagger > *:nth-child(4) { animation-range: entry 0% cover 23%; }

		/* Founder timeline: figure, heading and text fade up together,
		   cascading left to right. (Until 11 Oct 2026 the figures rolled
		   through random digits — scramble.js — which the client found
		   distracting; they now fade like everything else.) */
		.srd-founder-timeline.srd-stagger > * { animation: none; }
		.srd-founder-timeline .srd-stat > * {
			animation: srd-fade-up linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 14%;
		}
		.srd-founder-timeline .srd-stat > h3                                { animation-range: entry 0% cover 16%; }
		.srd-founder-timeline .srd-stat > p:not(.srd-stat-num)              { animation-range: entry 0% cover 20%; }
		.srd-founder-timeline .srd-stat:nth-child(2) > .srd-stat-num        { animation-range: entry 0% cover 17%; }
		.srd-founder-timeline .srd-stat:nth-child(2) > h3                   { animation-range: entry 0% cover 19%; }
		.srd-founder-timeline .srd-stat:nth-child(2) > p:not(.srd-stat-num) { animation-range: entry 0% cover 23%; }
		.srd-founder-timeline .srd-stat:nth-child(3) > .srd-stat-num        { animation-range: entry 0% cover 20%; }
		.srd-founder-timeline .srd-stat:nth-child(3) > h3                   { animation-range: entry 0% cover 22%; }
		.srd-founder-timeline .srd-stat:nth-child(3) > p:not(.srd-stat-num) { animation-range: entry 0% cover 26%; }
	}
}

/* Belt and braces: kill every transition and animation outright for anyone
   who has asked for reduced motion. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}


/* The CTA heading is client copy long enough to wrap; balance it so a lone
   word never sits on the second line ("...Professional / Service"). */
.has-navy-background-color > h2.has-text-align-center { text-wrap: balance; }

/* --- About Us: Our Story + Our Expertise (v0.20.0) ----------------------
   Modelled on the Grant Thornton careers page the client pointed to
   (grantthornton.com.ph/pa-careers/why-gt-is-a-great-place-to-work/):
   - Our Story: a large rounded photo left, heavy heading + text right;
   - Our Expertise: a statement heading and intro, then GT's scroll-spy —
     the service names pinned on the left, every service scrolling past.
   Both rows use the SAME 5:6 split and gap, so the story text and the
   expertise panels start on one column edge. (A 3-column grid shared with
   the stats row was tried first and rejected by the client as too busy.) */
.srd-about-h2 {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--deep);
}

.srd-story,
.srd-spy {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	column-gap: var(--wp--preset--spacing--70);
	align-items: start;
}
.srd-story { margin-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--80); }
.srd-story-text p { max-width: 62ch; line-height: 1.7; margin: 0 0 1rem; }
/* Our Commitment follows Our Story in the same column, so it reads as the
   next chapter beside the tall team photo rather than as a new band. */
.srd-story-text .srd-story-next { margin-top: var(--wp--preset--spacing--60); }
.srd-story-photo { margin: 0; }
/* 4:5, not the file's 2:3. Anchored near the TOP (22%), not the bottom: the
   top row's heads sit 21% down the file, and on a short laptop the height
   cap below crops much more than the 4:5 ratio does — anchored at 78% it was
   cutting through the top row's faces (client, 11 Oct 2026). Now any extra
   crop comes off the steps and shoes. The 30px radius matches the founder
   and leader portraits. */
.srd-story-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 22%;
	border-radius: 30px;
}
.srd-story-photo figcaption {
	margin-top: .75rem;
	font-size: .875rem;
	color: var(--wp--preset--color--muted);
}
/* The photo stays pinned while Our Story and Our Commitment scroll past it,
   the same GT behaviour as the expertise list below, so the long text column
   no longer leaves an empty gap under the photo. The height cap keeps the
   photo and its caption inside a short laptop screen; a cover crop takes
   the difference, anchored where the 4:5 crop already is. */
@media (min-width: 900px) {
	.srd-story-photo { position: sticky; top: 120px; }
	.srd-story-photo img { max-height: calc(100vh - 180px); }
}

.srd-expertise-head { max-width: 46rem; margin-bottom: var(--wp--preset--spacing--80); }
.srd-expertise-head > p {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}

/* Our Expertise — scroll-spy (the GT careers-page pattern). The service
   names stay pinned on the left; every service scrolls past on the right.
   The name of the one in view (aria-current, set by assets/js/scrollspy.js)
   keeps a heavy underline and the deep navy; like the header nav, hover only
   adds a line, never a colour. */
.srd-spy { margin-bottom: var(--wp--preset--spacing--80); }
.srd-spy-nav {
	position: sticky;
	/* Locks well below the header (78px) — ~120px clear above it, the GT
	   careers-page spacing — so it reads as a pinned side menu rather than a
	   list that happens to stop scrolling. Client request, 12 Oct 2026. */
	top: 200px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	/* 30px between names, GT's rhythm (~61px name to name at 1440). */
	gap: var(--wp--preset--spacing--40);
}
.srd-spy-nav a {
	font-size: clamp(1.25rem, 1.9vw, 1.6rem);
	font-weight: 800;
	line-height: 1.25;
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: .3em;
	text-decoration-color: transparent;
	transition: text-decoration-color var(--srd-transition), color var(--srd-transition);
}
.srd-spy-nav a:hover { text-decoration-color: currentColor; }
.srd-spy-nav a[aria-current="true"] {
	color: var(--wp--preset--color--deep);
	text-decoration-color: currentColor;
}

/* A clicked name brings its panel to the same line the menu is pinned at. */
.srd-spy-panel { scroll-margin-top: 200px; }
.srd-spy-panel + .srd-spy-panel { margin-top: var(--wp--preset--spacing--80); }
.srd-spy-media { margin-bottom: var(--wp--preset--spacing--40); }
.srd-spy-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 30px;
}
.srd-spy-panel > h3 {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: clamp(1.75rem, 2.6vw, 2.4rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--wp--preset--color--deep);
}
.srd-spy-panel > p { margin: 0; max-width: 62ch; line-height: 1.7; }

@media (max-width: 899px) {
	.srd-story,
	.srd-spy { grid-template-columns: 1fr; row-gap: var(--wp--preset--spacing--40); }
	.srd-story { margin-bottom: var(--wp--preset--spacing--60); }
	/* On a phone there is no room beside the services for a pinned list;
	   they simply stack, each under its own heading. */
	.srd-spy-nav { display: none; }
	.srd-spy-panel + .srd-spy-panel { margin-top: var(--wp--preset--spacing--60); }
}
