/* CSS variables and default colours for tenant themes */
:root {
    /* Hero paragraph measure. One value for every design, because a ch-based
       measure resolves against each theme's own font and produced a 480-694px
       spread across the nine — visibly inconsistent side by side in the design
       gallery. 590px is Bold's rendered width, which is the reference. */
    --hero-text-measure: 590px;

    /* Hero content span. Every design lays its hero out across this width, so
       the nine line up in the design gallery: a full-text design fills it with
       the headline, an image design fills it with the text and picture columns
       together. 1296px is the Bootstrap container's inner width
       (1320px container less the 24px gutter), which most of the designs
       already resolve to through .container. */
    --hero-span: 1296px;

    /* A hero that breaks out of .container to a 100vw bleed sizes itself with
       max-width instead, which only produces a gutter once the viewport is
       wider than the max-width. Those heroes pad by --hero-bleed-gutter and
       add it back to the max-width, so the content box still resolves to
       --hero-span on a wide screen and never touches the edge on a narrow
       one. */
    --hero-bleed-gutter: 1.5rem;
    /* The room Marquee and Reel keep under their picture for the gap, headline, introduction and
       buttons, so those fit in the first screen below the header (see "Reel and Marquee" below). */
    --hero-text-room: 17rem;

    /* Hero sub-heading indent. The paragraph and the buttons step in together,
       so the headline alone holds the left edge; indenting the paragraph on its
       own leaves the buttons flush and reads as a misalignment. Zeroed on
       phones, where the page gutter is already most of the width available. */
    --hero-text-indent: 1.5rem;

    --brand-primary:   #1e3a8a;
    --brand-secondary: #1e3a8a;
    --brand-accent:    var(--brand-secondary);
    --hero-overlay-strength: 1;
    /* The size and line height of the main text on every page of every design: Home's
       text and lower text, About's, and the Premium pages'. The testimonial reads at
       this size too, so a quote is never bigger than the page's own text. */
    --body-text-size: 1.05rem;
    --body-line-height: 1.8;
    /* The vertical padding, above and below, of every section of the Home page on every
       design, so the same two sections are the same distance apart whichever design
       shows them. A hero keeps its own padding. */
    --section-space: 3rem;
    --brand-bg:        #ffffff;
    --brand-font:      'Inter', sans-serif;
    --brand-hero-bg:   var(--brand-primary);  /* alias — keeps old references working */

    /* 30 July 2026 — replaces hero-contrast.js's computed variables.
       These three are genuine tenant choices (CompanyProfile.hero_text_color,
       highlight_bg_color, highlight_text_color), set directly per-tenant by
       base_tenant.html's own inline <style> block. The values below are just
       static safety-net fallbacks in case that block ever fails to render —
       not real defaults anyone should expect to see live. */
    --brand-hero-text:      #ffffff;
    --brand-highlight-bg:   #f8f9fa;
    --brand-highlight-text: #0f172a;
    /* Also set by base_tenant.html; used by Bold and Scout only (below). */
    --brand-headline-text:  #ffffff;
    --brand-on-primary:     #ffffff;
}

/* Executive — corporate navy */
.theme-executive {
    --brand-primary:   #0f172a;
    --brand-secondary: #0f172a;
    --brand-bg:        #ffffff;
    --brand-font:      'Inter', sans-serif;
    --brand-hero-bg:   var(--brand-primary);
}

/* Executive — restrained, authoritative, zero decoration */
/* Executive — restrained, authoritative, zero decoration.
   No navbar border needed any more — the navbar now matches the hero
   colour by default (see the base .agency-site .navbar rule below), so
   a border-bottom using --brand-primary would be invisible against a
   background using the same variable. */

.theme-executive .hero-section {
    --hero-pad-top: 5rem;
    --hero-pad-bottom: 5rem;
    padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
}

.theme-executive .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
}

.theme-executive .hero-text {
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: var(--hero-text-measure);
}

/* Executive job cards — sharp corners, strong left border accent */
.theme-executive .job-card,
.theme-executive .job-card-preview {
    border-radius: 0;
    border-left: 3px solid var(--brand-primary);
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent);
    border-right: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent);
}

.theme-executive .job-card:hover,
.theme-executive .job-card-preview:hover {
    transform: translateX(3px) translateY(-2px);
}

/* Executive highlight cards — filled with the tenant's own highlight
   colour (30 July 2026, replaces the old transparent/outlined-only
   treatment), keeping the distinctive border accent on top. */
.theme-executive .why-work-card {
    background-color: var(--brand-highlight-bg);
    border: 2px solid var(--brand-primary);
    border-radius: 0;
}

.theme-executive .why-work-card.why-work-card,
.theme-executive .why-work-card.why-work-card h3,
.theme-executive .why-work-card.why-work-card p {
    color: var(--brand-highlight-text);
}

/* Marquee — photography leads; the welcome follows as ordinary site copy.
   The hero band takes its colours from the shared `.agency-site .hero-section`
   rules (hero colour and text on hero colour), so the wizard's hero colour
   controls it. A design-level background or text colour here would lose to
   those rules and misstate what the design does. */
.theme-marquee {
    --brand-primary: #5a3a32;
    --brand-secondary: #5a3a32;
    --brand-bg: #fffaf5;
    --brand-font: 'DM Sans', sans-serif;
    --brand-hero-bg: var(--brand-primary);
}

/* Reel is Marquee's single-page sibling: photography still leads, then the
   copy and vacancies form one continuous journey. */
.theme-reel {
    --brand-primary: #123e44;
    --brand-secondary: #123e44;
    --brand-bg: #f4f8f8;
    --brand-font: 'DM Sans', sans-serif;
    --brand-hero-bg: var(--brand-primary);
}

/* Reel and Marquee open with a picture the full width of the page, edge to edge
   like Bold's: the picture box sits outside .container in the template, so it
   needs no 100vw breakout, and the section has no top padding, so it meets the
   navbar. The headline sits under the picture, not over it, so there is no
   overlay. */
.theme-reel .reel-hero-section {
    padding: 0 0 4rem;
}

.theme-reel .reel-hero-media {
    margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
    max-height: 38rem;
    overflow: hidden;
}

/* The picture of Reel and Marquee (one rule for both): as tall as it was, but giving way
   so the headline, introduction and buttons under it end inside the first screen on a laptop
   or wider. What is left of the screen below the header after --hero-text-room is its
   height, never under 35% of the screen (or 16rem) so it stays a picture; a headline longer
   than --hero-text-room allows pushes the buttons, not the headline, below the fold.
   Phones show the whole picture instead (see "On a phone" below). */
.theme-reel .reel-hero-media img,
.theme-marquee .marquee-hero-media img {
    display: block;
    height: min(
        clamp(16rem, 42vw, min(38rem, 62vh)),
        max(35svh, calc(100svh - var(--pp-sticky-offset, 8rem) - var(--hero-text-room)))
    );
    object-fit: cover;
    width: 100%;
}

.theme-reel .reel-hero-content {
    max-width: var(--hero-span);
}

.theme-reel .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.08;
}

.theme-reel .hero-text {
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: var(--hero-text-measure);
}

.theme-reel .reel-jobs-section,
.theme-reel .reel-about-section {
    background: var(--brand-bg);
}

.theme-reel .reel-section-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.theme-reel .reel-section-heading h2,
.theme-reel .reel-about-section h2 {
    color: var(--brand-secondary);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 0;
}

.theme-reel .reel-jobs-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 26rem));
}

@media (max-width: 767.98px) {
    .theme-reel .reel-hero-section { padding: 0 0 3rem; }
    .theme-reel .reel-hero-content { padding-inline: 1.5rem; }
    .theme-reel .reel-hero-media { margin-bottom: 1.5rem; }
    .theme-reel .reel-section-heading { align-items: stretch; flex-direction: column; }
}

/* Full width and meeting the navbar, as Reel's above. */
.theme-marquee .marquee-hero-section {
    padding: 0 0 5rem;
}

.theme-marquee .marquee-hero-media {
    margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
    max-height: 38rem;
    overflow: hidden;
}

.theme-marquee .marquee-hero-content {
    max-width: var(--hero-span);
}

.theme-marquee .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.08;
}

.theme-marquee .hero-text {
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: var(--hero-text-measure);
}

.theme-marquee .marquee-jobs-section {
    background: var(--brand-bg);
}

.theme-marquee .marquee-section-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.theme-marquee .marquee-section-heading h2 {
    color: var(--brand-secondary);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 0;
}

@media (max-width: 767.98px) {
    .theme-marquee .marquee-hero-section { padding: 0 0 3.5rem; }
    .theme-marquee .marquee-hero-content { padding-inline: 1.5rem; }
    .theme-marquee .marquee-hero-media { margin-bottom: 1.5rem; }
    .theme-marquee .marquee-section-heading { align-items: stretch; flex-direction: column; }
}

/* On a phone the band of Reel and Marquee takes the title picture's own shape at the full width,
   so the whole picture shows above the headline; a picture taller than 70% of the screen is held
   to that and loses its bottom (its top is kept, see .hero-focus-top). The further pictures fill
   the same box. */
@media (max-width: 767.98px) {
    .theme-reel .reel-hero-media,
    .theme-marquee .marquee-hero-media {
        max-height: none;
    }

    .theme-reel .reel-hero-media img:not(.hero-extra),
    .theme-marquee .marquee-hero-media img:not(.hero-extra) {
        height: auto;
        max-height: 70svh;
    }

    .theme-reel .reel-hero-media img.hero-extra,
    .theme-marquee .marquee-hero-media img.hero-extra {
        height: 100%;
    }
}

/* Startup — bold modern */
.theme-startup {
    --brand-primary:   #1c1917;
    --brand-secondary: #1c1917;
    --brand-bg:        #ffffff;
    --brand-font:      'Plus Jakarta Sans', sans-serif;
    --brand-hero-bg:   var(--brand-primary);
}

/* Startup — energetic, oversized type, punchy accents */
/* Startup — energetic, oversized type, punchy accents.
   No navbar shadow needed — matches the hero colour by default now
   (see the base .agency-site .navbar rule below), so there's no seam
   between navbar and hero left to visually separate. */

.theme-startup .hero-section {
    --hero-pad-top: 5rem;
    --hero-pad-bottom: 4rem;
    padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
}

/* Matches .theme-executive above. This was an oversized stacked headline
   (clamp(2.8rem, 7vw, 5.5rem), line-height 1.0, letter-spacing -2px) — the
   design's personality came from sheer scale. Brought into line 25 August 2026
   so the Layout step reads cleanly: "Picture to the left" selects Startup and
   "to the right" selects Executive, and a question about photo placement
   should not also jump the headline size. Changes any live tenant on this
   template that has not overridden it; confirmed with Christina that none
   currently use it. */
.theme-startup .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
}

.theme-startup .hero-text {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: var(--hero-text-measure);
    font-weight: 300;
}

/* Startup — pill buttons to contrast the sharp headline */
.theme-startup .hero-actions .site-button {
    border-radius: 100px;
    padding-left: 2rem;
    padding-right: 2rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Startup job cards — rounded, card-like, with hover lift */
.theme-startup .job-card,
.theme-startup .job-card-preview {
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 7%, transparent);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-primary) 4%, transparent);
}

.theme-startup .job-card:hover,
.theme-startup .job-card-preview:hover {
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-primary) 10%, transparent);
    transform: translateY(-4px);
    border-color: transparent;
}

/* Startup highlight cards — pill shape, brand fill */
.theme-startup .why-work-card {
    border-radius: 16px;
    background-color: var(--brand-highlight-bg);
}

/* Startup — image gets a rounded clip to match card style */
.theme-startup .hero-img-styled {
    border-radius: 16px;
}

/* wrapper - resets colours from. picker  */

.agency-site {
    background-color: var(--brand-bg);
    font-family: var(--brand-font);
    color: var(--brand-secondary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* hero section */

.agency-site .hero-section {
    background-color: var(--brand-primary);
    color: var(--brand-hero-text);
}

.agency-site .hero-section h1,
.agency-site .hero-section h2,
.agency-site .hero-section h3,
.agency-site .hero-section h4,
.agency-site .hero-section h5,
.agency-site .hero-section h6,
.agency-site .hero-section p,
.agency-site .hero-section .lead,
.agency-site .hero-section .hero-title,
.agency-site .hero-section .hero-text,
.agency-site .hero-section .display-3 {
    color: var(--brand-hero-text);
}

/* Margin rather than padding: the box is border-box, so padding would come out
   of --hero-text-measure and narrow the text instead of moving it. */
.agency-site .hero-section .hero-text,
.agency-site .hero-section .hero-actions {
    margin-inline-start: var(--hero-text-indent);
}

@media (max-width: 575.98px) {
    .agency-site .hero-section .hero-text,
    .agency-site .hero-section .hero-actions {
        margin-inline-start: 0;
    }
}

.agency-site .hero-section .site-button-primary {
    background-color: var(--brand-accent);
    border-color: currentColor;
    color: var(--button-text, var(--brand-bg));
}
.agency-site .hero-section .site-button-primary:hover {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    opacity: 0.88;
}

.agency-site .hero-section .site-button-secondary {
    border-color: var(--brand-hero-text);
    color: var(--brand-hero-text);
    background-color: transparent;
}
.agency-site .hero-section .site-button-secondary:hover {
    background-color: color-mix(in srgb, var(--brand-hero-text) 15%, transparent);
    border-color: var(--brand-hero-text);
}


/* Homepage text.

   Sections that set their own background and colour are excluded below. This
   rule is heavier than a panel's own declaration — even an explicit
   `color: inherit` — so without the exclusion it repaints headings inside a
   dark panel with --brand-secondary, which is black on black wherever a tenant
   has both set dark. Add any new self-coloured section to the :not() list
   rather than fighting this with specificity. */

.agency-site section:not(.hero-section, .contact-form-panel, .contact-cta, .list-page-header, .proof-testimonial) h1,
.agency-site section:not(.hero-section, .contact-form-panel, .contact-cta, .list-page-header, .proof-testimonial) h2,
.agency-site section:not(.hero-section, .contact-form-panel, .contact-cta, .list-page-header, .proof-testimonial) h3,
.agency-site section:not(.hero-section, .contact-form-panel, .contact-cta, .list-page-header, .proof-testimonial) h4,
.agency-site section:not(.hero-section, .contact-form-panel, .contact-cta, .list-page-header, .proof-testimonial) h5,
.agency-site section:not(.hero-section, .contact-form-panel, .contact-cta, .list-page-header, .proof-testimonial) h6,
.agency-site section:not(.hero-section, .contact-form-panel, .contact-cta, .list-page-header, .proof-testimonial) p,
.agency-site section:not(.hero-section, .contact-form-panel, .contact-cta, .list-page-header, .proof-testimonial) li,
.agency-site section:not(.hero-section, .contact-form-panel, .contact-cta, .list-page-header, .proof-testimonial) .lead,
.agency-site .card h1,
.agency-site .card h2,
.agency-site .card h3,
.agency-site .card h4,
.agency-site .card p {
    color: var(--section-text-colour, var(--brand-secondary));
}


/* Tenant buttons use semantic classes so Bootstrap never supplies fixed colours. */

.agency-site .site-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--sharp-radius, 6px);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    line-height: 1.5;
    padding: .65rem 1.25rem;
    text-align: center;
    text-decoration: none;
    transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}

.agency-site .site-button-large { font-size: 1.1rem; padding: .75rem 1.5rem; }
.agency-site .site-button-small { font-size: .875rem; padding: .4rem .8rem; }
.agency-site .site-button-block { width: 100%; }

/* The text of a filled button is the site's page background colour, which pairs
   with the Buttons & Accents fill. It is declared on the body only, so a page
   or panel that sets its own --brand-bg (a page's colours in the editor) does
   not change what a button's text reads against.
   --site-button-bg and --site-button-text are the site's button colours for the
   small controls that have no colour of their own (Skip animation, Pause
   pictures): the design's own buttons, or the Buttons colours the owner chose,
   which colour_overrides sets on the body.
   --pp-error-red is the hue a field in error mixes with its area's text colour. */
body.agency-site { --button-text: var(--brand-bg); }
body.agency-site {
    --site-button-bg: var(--brand-accent);
    --site-button-text: var(--button-text);
    --pp-error-red: #d92d20;
}

.agency-site .site-button-primary {
    background-color: var(--brand-accent);
    /* currentColor, not the fill. The border then matches the button's own
       text, which is guaranteed to contrast with the fill behind it — so the
       button keeps a visible edge on a dark section or a busy banner instead
       of dissolving into whatever sits behind it. */
    border-color: currentColor;
    color: var(--button-text, var(--brand-bg));
}
.agency-site .site-button-primary:hover {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    opacity: 0.88;
}

.agency-site .site-button-secondary {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    background-color: transparent;
}
.agency-site .site-button-secondary:hover {
    background-color: var(--brand-accent);
    color: var(--button-text, var(--brand-bg));
}

/* A disabled button (a preview's Send) looks switched off, and keeps that look on hover:
   this comes after the hover rules, which have the same weight. */
.agency-site .site-button:disabled,
.agency-site .contact-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}



/* hero buttons */

.agency-site .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}


/* navbar — matches the hero colour by default across every theme, so
   there's no seam between navbar and hero to visually separate (the
   root cause of the recurring Pulse "line" issue). Uses --brand-hero-bg
   (an existing alias for --brand-primary) and --brand-hero-text — the
   exact same variables the hero section itself already uses, not new
   ones, so navbar and hero are always guaranteed to match, not just
   coincidentally similar.

   These rules win on specificity alone. Bootstrap's .navbar component
   sets its colours through --bs-navbar-* custom properties rather than
   declarations, so a two-class selector here beats it without needing
   !important on any property. */

.agency-site .navbar {
    padding: 1rem 0;
    border-bottom: none;
    background-color: var(--brand-hero-bg);
}

/* The header's 1rem is the whole gap above and below the logo: Bootstrap's own vertical
   padding on the brand is not added to it. */
.agency-site .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--brand-hero-text);
    gap: 0.6rem;
}

/* On a phone the brand is the company's name, which can be long and has no short name to
   fall back on: let it wrap inside the space beside the menu button, so it never widens
   the page or pushes the button onto a line of its own. */
@media (max-width: 991.98px) {
    .agency-site .navbar-brand {
        flex: 1 1 0;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    /* A name too long for two lines is cut with an ellipsis; the full name is the span's title. */
    .agency-site .navbar-brand .brand-text.d-lg-none {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        line-height: 1.25;
    }
}

/* The menu is in a row from 1200px and behind the menu button below that, so the same rule for
   the brand holds up to there. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .agency-site .navbar-brand {
        flex: 1 1 0;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
/* The full name shows from 992px (the short name, or the full name again, shows below it) and
   takes at most two lines, so a long one never makes the header taller than the logo; it is cut
   with an ellipsis and the span's title carries all of it. */
.agency-site .navbar-brand .brand-text-full {
    display: none;
}
@media (min-width: 992px) {
    .agency-site .navbar-brand .brand-text-full {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        line-height: 1.25;
    }
}

/* The menu is behind the menu button until 1200px wide, then a row. Bootstrap's own
   navbar-expand-lg would put it in a row at 992px, where the longest menus do not fit beside
   the business name, so the row is set here: the rules Bootstrap's navbar-expand-xl holds.
   The button still opens and closes the menu below 1200px (Bootstrap's collapse). */
@media (min-width: 1200px) {
    .agency-site .navbar {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .agency-site .navbar .navbar-nav {
        flex-direction: row;
    }
    .agency-site .navbar .navbar-collapse {
        display: flex;
        flex-basis: auto;
    }
    .agency-site .navbar .navbar-toggler {
        display: none;
    }
}

/* A menu too long for the row (nav-fit.js marks it nav-overflows) goes behind the menu
   button as it does below 1200px, rather than running off the side of the page. */
@media (min-width: 1200px) {
    .agency-site .navbar.nav-overflows {
        flex-wrap: wrap;
    }
    .agency-site .navbar.nav-overflows .navbar-toggler {
        display: block;
    }
    .agency-site .navbar.nav-overflows .navbar-collapse {
        flex-basis: 100%;
    }
    .agency-site .navbar.nav-overflows .navbar-collapse:not(.show) {
        display: none;
    }
    .agency-site .navbar.nav-overflows .navbar-nav {
        flex-direction: column;
    }
}

/* With the menu in a row, a menu label never wraps onto a second line: the brand, whose name
   can be as long as the company's, gives way instead and wraps inside what the menu leaves. */
@media (min-width: 1200px) {
    .agency-site .navbar-brand {
        min-width: 0;
        white-space: normal;
    }
    .agency-site .navbar-nav .nav-link {
        white-space: nowrap;
    }
}

/* Hierarchy from size and weight, never from lowered contrast. An opacity here
   dims the link against the navbar it sits on and makes hover buy that contrast
   back; the underline carries the hover instead, so the resting state is already
   at full strength. Reserved with a transparent colour so nothing reflows. */
.agency-site .nav-link {
    color: var(--brand-hero-text);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.2s ease;
}
.agency-site .nav-link:hover {
    color: var(--brand-hero-text);
    text-decoration-color: currentColor;
}

/* Hamburger toggler icon — matches the hero text colour on every theme
   by default, EXCEPT Impact and Pulse. Bootstrap's toggler icon is a
   background SVG with the line colour baked into the data URI itself,
   so it can't pick up --brand-hero-text directly. Using the same SVG
   as a mask instead of a background image means only its shape is
   used; the actual colour comes from background-color below, which is
   free to reference the CSS variable and always matches whatever
   hero_text_color is set to for that tenant.

   Impact and Pulse are deliberately excluded — impact-navbar.js
   (marketing/static/marketing/js/impact-navbar.js, loaded by both
   templates) already handles this for them, and it works by writing
   --bs-navbar-toggler-icon-bg as an INLINE style directly onto the
   .navbar-toggler-icon element with the colour baked into the SVG
   stroke itself. Since this rule's mask-image also reads
   var(--bs-navbar-toggler-icon-bg) on that same element, an inline
   value would flow straight into the mask source — and depending on
   whether the browser treats that mask as alpha or luminance (not
   something to assume either way), a dark hero_text_color could make
   the icon read as mostly transparent and disappear. Rather than rely
   on browser mask-mode behaviour holding one way, this rule simply
   never applies to the two themes the script already owns. */
.agency-site:not(.theme-impact):not(.theme-pulse) .navbar-toggler-icon {
    background-image: none;
    -webkit-mask-image: var(--bs-navbar-toggler-icon-bg);
    mask-image: var(--bs-navbar-toggler-icon-bg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    background-color: var(--brand-hero-text);
}

/* pics */

.hero-img-styled, .about-image, .preview-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* About photo above or below the text. It has the full content width to itself,
   so uncapped it fills the screen. Width and height stay auto, not a percentage:
   with a percentage width, max-height clips the box and distorts the photo
   instead of scaling it (see .pageslot-image below). Left and right placements
   follow one rule for the About photo and a Premium page's picture, see "Pictures
   beside the text" below. */
.about-image.about-image-banner {
    width: auto;
    height: auto;
    max-width: min(600px, 100%);
    max-height: 450px;
    margin: 0 auto;
}

/* Premium page slots only (TICKET-140/141) — deliberately smaller and
   centred within its column, unlike About's own photo (.about-image
   above), which stays full width. A full-bleed photo read as too
   heavy/dominant next to body text on these three pages specifically;
   About's photo was tried with the same cap and it looked squashed, so
   it was reverted — these are now two fully independent classes, not a
   shared one with an override, precisely so a future change to one
   can't accidentally affect the other again.

   Both max-width AND max-height are set (not just max-width) so a tall
   portrait photo is capped on its height too, not just a wide landscape
   one on its width. This combination is standard, spec-defined
   replaced-element sizing (CSS2.1 §10.4): when width is definite and
   height is auto, if the height computed from width+aspect-ratio would
   exceed max-height, the browser uses max-height and recomputes width
   from that — so the image still shrinks correctly on narrow mobile
   columns (via width:100%) and stays within its caps on both orientations,
   with no distortion and no JS. */
/* Premium page slots only (TICKET-140/141) — deliberately smaller and
   centred within its column, unlike About's own photo (.about-image
   above), which stays full width.

   width/height are both 'auto' here, NOT a percentage — this is the
   part that actually matters and was wrong in an earlier version of
   this rule (width: 100% + max-height together). A percentage width is
   a DEFINITE value to the browser, not open for renegotiation — so
   combining it with max-height just clips the rendered box at
   max-height while width stays at whatever the percentage resolved to,
   which stretches/distorts the image rather than scaling it cleanly.
   The aspect-ratio-preserving recomputation this rule actually relies
   on (CSS2.1 §10.4's replaced-element algorithm: if the auto-computed
   height would exceed max-height, use max-height and recompute width
   from that) only triggers when width itself is genuinely 'auto'.
   Found the hard way — reported back as "still looking a bit squashed"
   after the first version of this rule shipped, which was this exact
   distortion, not a matter of taste about size.

   max-width uses min() to combine an absolute cap with a
   responsive one (100% of the column) into the single value max-width
   can hold — without the 100% term, a narrow mobile column would
   overflow, since max-width alone only ever shrinks, never grows to
   fill available space. */
.pageslot-image {
    width: auto;
    height: auto;
    max-width: min(380px, 100%);
    max-height: 380px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* Top/bottom placement variant — applied as an ADDITIONAL class
   alongside .pageslot-image (e.g. class="pageslot-image
   pageslot-image-banner"), not a replacement for it. Top/bottom rows
   have no text sharing the row — unlike left/right, which sits in a
   half-width column next to body text — so a much wider cap reads as a
   deliberate banner rather than a small photo floating in empty space.
   "Bottom" gets the exact same allowances as "top". Explicit
   double-class selector (not relying on source order alone) matches
   the .why-work-card.why-work-card-inverted pattern further down this
   file for the same reason: guarantees the override regardless of
   where either rule ends up relative to the other. */
.pageslot-image.pageslot-image-banner {
    max-width: min(600px, 100%);
    max-height: 450px;
}

/* "Part of the picture": the About photo or a Premium page's image fills a frame the shape of
   its placement, 4 / 3 beside the text and 16 / 9 above or below it, and the part that stays
   in view is the owner's (object-position, from a .pic-pos-<picture> rule in the generated
   style block). Without .picture-fill a picture is shown whole, as above. The frame takes the
   widths the whole picture was capped at, so a page's layout does not change. */
.about-image.picture-fill,
.pageslot-image.picture-fill {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.about-image.picture-fill.picture-fill-banner,
.pageslot-image.picture-fill.picture-fill-banner {
    aspect-ratio: 16 / 9;
}
.about-image.about-image-banner.picture-fill,
.pageslot-image.pageslot-image-banner.picture-fill {
    max-width: min(600px, 100%);
    max-height: none;
}

/* Pictures beside the text: the About photo (on its page, or in a one-page design's About
   section) and a Premium page's picture, on every design. The templates mark the picture's
   column with .side-photo. Width and height stay auto for the same reason as .pageslot-image
   above, so the picture keeps its proportions. The sizes written by cms/image_renditions.py
   (SIDE_BY_SIDE_COLUMNS, about_side_sizes) state the same numbers.

   Below 992px the picture sits above the text and has a banner's caps, 600px wide and 450px
   tall, centred, so a portrait does not push the text off a phone's first screen. */
.side-photo .about-image,
.side-photo .pageslot-image {
    width: auto;
    height: auto;
    max-width: min(600px, 100%);
    max-height: 450px;
    margin: 0 auto;
}

/* On a phone (below 768px) a picture shown whole above, below or stacked over the text is at
   most 320px tall, on every design, so a portrait leaves the text in view on the first screen.
   Tablets keep 450px. A picture shown in part keeps its frame (the .picture-fill rules win). */
@media (max-width: 767.98px) {
    .about-image.about-image-banner,
    .pageslot-image.pageslot-image-banner,
    .side-photo .about-image,
    .side-photo .pageslot-image {
        max-height: 320px;
    }
}

/* Shown in part it fills a 4 / 3 frame (see .picture-fill above) within the same caps. */
.side-photo .about-image.picture-fill,
.side-photo .pageslot-image.picture-fill {
    width: 100%;
    max-height: none;
}

/* From 992px the picture is beside the text and follows it: its column stretches to the
   text's height, and the picture is as large as that column allows, by height or by width,
   whichever runs out first. The column is a size container, so the picture's caps are its
   own column's width and height (cqw, cqh) and it never sets the row's height itself. It
   sits on the side facing the text, centred against it, with 4rem more than the gutter
   between them.

   With short text the column is still as tall as the picture at its column's width, up to
   25rem, so short text keeps a usable picture and a wide picture leaves no empty band. That
   height comes from the picture's proportions (--side-photo-ratio, width over height) and,
   for a picture smaller than its column and so shown at its own size, its height
   (--side-photo-height): the page's generated style block states them for a picture whose size is known
   (side_photo_ratio_rules in cms_tags.py), a picture shown in part has its 4 / 3 frame, and
   one of unknown size gets the full 25rem. The column's width is half the row (an
   inline-size container) less the gutter and the 4rem. */
@media (min-width: 992px) {
    .row:has(> .side-photo) {
        container-type: inline-size;
    }

    .row > .side-photo {
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: min(25rem, (50cqw - var(--bs-gutter-x) - 4rem) / var(--side-photo-ratio, 0.0001),
                        var(--side-photo-height, 25rem));
        container-type: size;
        padding-left: calc(var(--bs-gutter-x) * 0.5 + 4rem);
    }

    .row > .side-photo:has(.picture-fill) {
        --side-photo-ratio: 1.3333;
    }

    .row.flex-row-reverse > .side-photo {
        justify-content: flex-end;
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5 + 4rem);
    }

    .side-photo .about-image,
    .side-photo .pageslot-image {
        max-width: 100cqw;
        max-height: 100cqh;
        margin: 0;
    }

    .side-photo .about-image.picture-fill,
    .side-photo .pageslot-image.picture-fill {
        width: min(100cqw, 100cqh * 4 / 3);
    }
}

.agency-site .about-header {
    padding: 4rem 0 2rem;
}

.agency-site .about-content-section {
    padding: 3rem 0 5rem;
}

/* The title's own bottom padding already separates it from the text below. */
.agency-site .about-header + .about-content-section {
    padding-top: 1rem;
}

.agency-site .page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-secondary);
    letter-spacing: -0.5px;
}

.agency-site .lead-text {
    font-size: var(--body-text-size);
    line-height: var(--body-line-height);
    color: var(--brand-secondary);
    margin-bottom: 2rem;
}

/* On a phone the lower text that follows the About or a Premium page's text boxes starts at the
   boxes' own bottom padding, so the space between them matches the space above the boxes rather
   than adding two paddings together. Home keeps its own section spacing. */
@media (max-width: 767.98px) {
    .agency-site [data-boxes]:not([data-boxes="home"]) + [data-text-block$="-lower"] {
        padding-top: 0;
    }
}

.agency-site .about-cta {
    margin-top: 2rem;
}

/* The jobs and Contact buttons under the About text and a Premium page's main
   text (partials/page_buttons.html): side by side, wrapping on a narrow screen,
   and centred where the text above them is. */
.agency-site .page-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.agency-site .text-center .page-buttons {
    justify-content: center;
}

.agency-site .pageslot-image-placeholder {
    background-color: color-mix(in srgb, var(--brand-primary) 8%, var(--brand-bg));
    border: 1px solid color-mix(in srgb, var(--brand-primary) 20%, transparent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 380px;
    min-height: 220px;
    margin: 0 auto;
}

/* Top/bottom placement variant for the premium-page empty-state
   placeholder — same reasoning and numbers as .pageslot-image.pageslot-
   image-banner above, so an un-uploaded slot looks proportionate to
   what the real banner-sized image will look like once one is added. */
.agency-site .pageslot-image-placeholder.pageslot-image-placeholder-banner {
    max-width: 600px;
    min-height: 320px;
}

/* The empty slot beside the text is as wide as the picture will be (see "Pictures beside the text"). */
@media (min-width: 768px) {
    .agency-site .pageslot-image-placeholder {
        max-width: 400px;
    }
}

/* jobs */

.job-card, .job-card-preview {
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, transparent);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    background: var(--brand-bg);
}

.job-card:hover, .job-card-preview:hover {
    border-color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--brand-primary) 5%, transparent);
}
/* Card headings */
.agency-site .job-card h3,
.agency-site .job-card h4,
.agency-site .job-card-preview h3,
.agency-site .job-card-preview h4 {
    color: var(--brand-secondary);
}

/* card-brand — job list cards and job detail card */
.agency-site .card-brand {
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 15%, transparent);
    border-radius: var(--sharp-radius, 2px);
    transition: all 0.3s ease;
    background: var(--brand-bg);
    color: var(--brand-secondary);
}

.agency-site .card-brand:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px color-mix(in srgb, var(--brand-primary) 8%, transparent);
}




.agency-site .job-description-content {
    padding-bottom: 1rem;
}

.agency-site .job-main-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--brand-secondary);
    overflow-wrap: break-word;
}

.agency-site .job-summary {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--brand-secondary);
}


/* Every use of this class in the templates also carries .small, so the size
   difference already de-emphasises it. An opacity on top only costs contrast. */
.agency-site .muted-text {
    color: var(--brand-secondary);
}


/* Why Work With Us cards — specificity (0,3,0) beats section:not(.hero-section) p at (0,2,2) */

.agency-site .why-work-card {
    --section-text-colour: var(--brand-highlight-text);
    /* Was p-4 on the element, same reason as the sections above. */
    padding: 1.5rem;
    background-color: var(--brand-highlight-bg);
}

.agency-site .why-work-card.why-work-card,
.agency-site .why-work-card.why-work-card h3,
.agency-site .why-work-card.why-work-card p {
    color: var(--brand-highlight-text);
}


/* PREVIEW*/

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--brand-bg); }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

#preview-window, .preview-container, .preview-frame {
    height: calc(100vh - 120px);
    overflow-y: auto;
    display: block;
}

/* Links. Links that set their own colour are excluded. A new exclusion
   joins an existing :not() list rather than adding another :not(), which
   would make this rule heavier and override more than intended. */

.agency-site a:not(.site-button):not(.nav-link):not(.navbar-brand):not(.social-link-item):not(.pp-demo-back):not(.pp-demo-cta):not(.pp-cookie-link, .pp-concept-fresh, .pp-demo-premium-link) {
    color: var(--brand-secondary);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--brand-secondary) 35%, transparent);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}
.agency-site a:not(.site-button):not(.nav-link):not(.navbar-brand):not(.social-link-item):not(.pp-demo-back):not(.pp-demo-cta):not(.pp-cookie-link, .pp-concept-fresh, .pp-demo-premium-link):hover {
    color: var(--brand-secondary);
    text-decoration-color: var(--brand-secondary);
}

.footer-contact-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, currentColor 45%, transparent);
    transition: border-bottom-color 0.2s ease;
}
.footer-contact-link:hover {
    border-bottom-color: currentColor;
    color: inherit;
}

/* Footer Heading Styling */
.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: inherit;
}

/* Pillar & Post branding link — shown on Eco plan, hidden on Agency/Pro.
   Quiet by size, not by opacity: 0.7rem against the footer's own text is the
   whole de-emphasis, consistent with the rest of this file. */
.pp-branding-link {
    font-size: 0.7rem;
    color: inherit;
    text-decoration: none;
}
.pp-branding-link:hover {
    color: inherit;
    text-decoration: none;
}


/* jobs page */

/* Two separate hardcoded Bootstrap utility classes were found directly in
   public_job_detail.html, both causing the same underlying problem —
   fixed backgrounds disconnected from the tenant's own theme, while text
   correctly inherited the theme's own colour. Bootstrap's utility classes
   carry !important by design, so both silently overrode this file's own
   already-correct theme-variable rules for these same elements:
     - .apply-container had bg-light — fixed 5 August 2026
     - .card-brand had bg-white — fixed same day, same root cause, found
       after the first fix alone still left white-on-white text on
       Talent Plazer's dark theme, since .card-brand's own CSS below was
       always correct, just always losing to bg-white's !important.
   Both removed from the template entirely — the components already
   paired background and colour correctly from theme variables; they
   just needed the competing hardcoded class gone, not a new override. */
.agency-site .apply-container {
    background: var(--brand-bg);
    color: var(--brand-secondary);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 15%, transparent);
}

/* No .text-muted override lives here any more, and none should be added.
   Bootstrap's .text-muted is a fixed #6c757d carrying !important, so it
   beats this file's own correct rules — and it is a contrast value nothing
   checks, which is exactly what breaks on a dark background. The class is
   gone from every public tenant template instead. Secondary text inherits
   --brand-secondary from .agency-site, putting its contrast under the
   background/secondary pairing contrast-checker.js already validates in
   the editor. De-emphasis comes from .small and font weight, never from
   lowering contrast. A dimmed color-mix was tried here and rejected as
   still too hard to read even on a light background. */

/* Footer — uses brand variables so tenant colour choices are respected. */

.agency-site footer {
    background-color: var(--brand-bg);
    color: var(--brand-secondary);
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
}

/* No opacity here. This selector matches nested elements at both levels — a
   <p> inside a .small block was dimmed twice and rendered at 0.56, not 0.75 —
   and .small already provides the size difference the de-emphasis needs.
   Footer links keep their hover through the shared link rule's underline. */
.agency-site footer .small,
.agency-site footer p,
.agency-site footer li,
.agency-site footer a {
    color: var(--brand-secondary);
}

.agency-site footer .footer-heading {
    color: var(--brand-secondary);
}


/* responsive */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .agency-site .site-button {
        font-size: 0.875rem;
        padding: 0.5rem 1.25rem;
    }
    .agency-site .site-button-large {
        font-size: 0.95rem;
        padding: 0.6rem 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .agency-site .site-button {
        font-size: 0.9rem;
        padding: 0.5rem 1.25rem;
    }
    .agency-site .site-button-large {
        font-size: 1rem;
        padding: 0.65rem 1.75rem;
    }
}

/* Bootstrap sizes a .row's negative side margins from --bs-gutter-x, and .g-5
   raises it to 3rem, so the row pulls 24px wider than its column box on each
   side. A .container keeps its own 1.5rem, so its 12px padding cannot absorb
   that, and below 576px — where the container is full-bleed and has no slack —
   the page scrolls sideways by 12px. Every row carrying .g-5 here holds
   col-lg-6 pairs that stack at this width, so the horizontal gutter is doing
   nothing; .g-5's vertical gutter is untouched and still separates the stacked
   columns. */
@media (max-width: 575.98px) {
    .agency-site .container > .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }
}

/* Mobile-specific Hero Padding.
   The only !important left in this file, and it is deliberate. Every theme
   sets its own .hero-section padding at a higher specificity than this rule,
   and home_minimal.html's hero also carries Bootstrap's py-5. Without
   !important all nine designs lose the 1.5rem side padding — hero text runs
   to the screen edge — and Scout and Bold lose their vertical padding
   entirely. Restating mobile padding per theme would be nine rules instead
   of one, so the override stays. Marquee, Reel, Bold and Scout are left out of the
   padding: their picture runs the full width of the screen and meets the navbar
   (.bleed-hero-section is Bold's and Scout's), so they set their own phone padding
   and gutter the headline instead; padding here would leave a plain band of the
   brand colour between the header and the picture. */
@media (max-width: 768px) {
    .hero-section:not(.marquee-hero-section, .reel-hero-section, .bleed-hero-section) {
        padding: 4rem 1.5rem !important;
    }

    .hero-section {
        background-color: var(--brand-primary);
        text-align: center;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Minimal — clean, airy job board */
.theme-minimal {
    --brand-primary:   #1a1a1a;
    --brand-secondary: #1a1a1a;
    --brand-bg:        #f8f8f8;
    --brand-font:      'DM Sans', sans-serif;
    --brand-hero-bg:   var(--brand-primary);
}
/* ------------------------------------------------------------------ */
/* MINIMAL template overrides                                          */
/* ------------------------------------------------------------------ */

/* Minimal has no hero section — strapline sits in a simple header band */
.theme-minimal .hero-section {
    padding: 5rem 0 4rem;
    background-color: var(--brand-primary);
}

.theme-minimal .hero-image-wrapper {
    display: none;
}

.theme-minimal .hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -3px;
    color: var(--brand-hero-text);
    margin-bottom: 1.5rem;
}

.theme-minimal .hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: var(--hero-text-measure);
    color: var(--brand-hero-text);
}

/* Minimal body sections — sharp, clean, well-spaced */
.theme-minimal .minimal-body-section {
    border-top: 2px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
}

.theme-minimal .minimal-body-section p {
    font-size: var(--body-text-size);
    line-height: var(--body-line-height);
    font-weight: 300;
}

/* Minimal highlight cards — sharp corners, generous padding, explicit text */
.theme-minimal .why-work-card {
    border-radius: 0;
    padding: 2.5rem;
}

.theme-minimal .why-work-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.theme-minimal .why-work-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Large inverted CTA button for the Minimal homepage hero.
   Background and text use brand variables so tenant colour
   choices are respected — no hardcoded colours. */
.theme-minimal .site-button-minimal {
    background-color: var(--brand-hero-text);
    color: var(--brand-primary);
    border: 2px solid var(--brand-hero-text);
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 1rem 2rem;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-minimal .site-button-minimal:hover {
    background-color: transparent;
    color: var(--brand-hero-text);
}

/* CTA block sits below the hero on a brand-bg background,
   creating a clear visual break between the two sections */
.theme-minimal .minimal-cta-section {
    background-color: var(--brand-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* The wide jobs button, with the Contact button beside it on a wide screen and
   under it on a phone. The jobs button takes the remaining width. */
.theme-minimal .minimal-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.theme-minimal .minimal-cta-actions .site-button-minimal {
    flex: 1 1 auto;
    width: auto;
}

@media (min-width: 768px) {
    .theme-minimal .minimal-cta-actions {
        flex-direction: row;
        align-items: stretch;
    }
}

/* Bold — high contrast, cinematic */
.theme-bold {
    --brand-primary:   #0a0a0a;
    --brand-secondary: #0a0a0a;
    --brand-bg:        #ffffff;
    --brand-font:      'Poppins', sans-serif;
    --brand-hero-bg:   var(--brand-primary);
}

/* ------------------------------------------------------------------ */
/* Photo heroes (Bold, Scout)                                          */
/* ------------------------------------------------------------------ */

/* These two designs put the hero text over a photo, a black overlay and the
   dark backing layer below, while the navigation bar, contact band and cookie
   button sit on the plain brand colour. --brand-hero-text plays both roles on
   every other design, so here it is split: outside the hero it is black or
   white, whichever reads on the brand colour (--brand-on-primary, worked out
   in base_tenant.html); inside the hero it is the tenant's own Banner Text
   colour (--brand-headline-text), which new sites start as white
   (cms.utils.starting_hero_text_colour). Two classes on body, so this
   outranks the per-tenant variables block in base_tenant.html. */
body.theme-bold.agency-site,
body.theme-scout.agency-site {
    --brand-hero-text: var(--brand-on-primary);
    /* Under the photo: a quarter brand colour, the rest black. At the overlay
       slider's lowest setting white text still reads at 4.5:1 or more over a
       pure white photo on a white or yellow brand colour; the photo is shown
       at 30-35% opacity, so a full-strength brand colour here left a pale one
       too light for any text colour. */
    --brand-photo-backing: color-mix(in srgb, var(--brand-primary) 25%, #000000);
}

.theme-bold .hero-bleed,
.theme-scout .sp-scout-bleed {
    --brand-hero-text: var(--brand-headline-text);
    color: var(--brand-hero-text);
}

/* A full-width photo hero is as tall as its design's own minimum (--hero-bleed-min, set per
   design and screen width below) and grows towards the photo's 16:9 shape, 56.25vw, so less of
   the photo is cut, but never past the screen left below the sticky header, minimum included:
   the offset sticky-header-offset.js measures, in small-viewport units so a phone's browser bars
   do not push the headline off the screen. A hero whose text is taller than that grows to fit
   its text, as a minimum height always does. Both designs take this one rule. */
.theme-bold .hero-bleed,
.theme-scout .sp-scout-bleed {
    min-height: min(calc(100svh - var(--pp-sticky-offset, 8rem)), max(var(--hero-bleed-min), 56.25vw));
}

/* ------------------------------------------------------------------ */
/* BOLD template overrides                                             */
/* ------------------------------------------------------------------ */

/* Full-width hero breaks out of Bootstrap container */
.theme-bold .hero-section {
    padding: 0;
    overflow: hidden;
}

.theme-bold .hero-bleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    --hero-bleed-min: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--brand-photo-backing);
}

.theme-bold .hero-bleed .hero-content {
    padding: 5rem var(--hero-bleed-gutter);
    max-width: calc(var(--hero-span) + 2 * var(--hero-bleed-gutter));
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .theme-bold .hero-bleed {
        --hero-bleed-min: 55vh;
    }
    .theme-bold .hero-bleed .hero-content {
        padding: 3rem 1.5rem;
    }
    /* With a picture sequence the Pause pictures button sits in the photo's bottom
       corner, and on a phone the headline fills the photo: keep room below the
       headline's buttons for it (44px tall, .75rem from the edge, .5rem clear). */
    .theme-bold .hero-bleed:has(> .hero-extra) .hero-content {
        padding-bottom: 4.25rem;
    }
    .theme-bold .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        letter-spacing: -1.5px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .theme-bold .hero-bleed {
        --hero-bleed-min: 60vh;
    }
    .theme-bold .hero-bleed .hero-content {
        padding: 3rem 2rem;
    }
}

.theme-bold .hero-title {
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -2px;
}

.theme-bold .hero-img-styled {
    --hero-picture-opacity: 0.35;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: var(--hero-picture-opacity);
    border-radius: 0;
    max-height: none;
}

/* Semi-transparent overlay ensures text is always readable over the image. It is
   dark on every site (HERO_OVERLAY_COLOUR in cms/utils.py): the editor's headline
   readability warning measures the headline text against it. */
.theme-bold .hero-bleed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, calc(0.82 * var(--hero-overlay-strength))) 0%,
        rgba(0, 0, 0, calc(0.50 * var(--hero-overlay-strength))) 55%,
        rgba(0, 0, 0, calc(0.15 * var(--hero-overlay-strength))) 100%
    );
    pointer-events: none;
}

/* hero-content sits above the overlay */
.theme-bold .hero-content {
    position: relative;
    z-index: 1;
}

/* The tenant's Banner Text colour, over the photo — see "Photo heroes". */
.theme-bold .hero-title,
.theme-bold .hero-text,
.theme-bold .hero-section .site-button-secondary {
    color: var(--brand-hero-text);
}

.theme-bold .hero-section .site-button-secondary {
    border-color: var(--brand-hero-text);
}

/* Stronger text shadow for legibility on busy images */
.theme-bold .hero-title,
.theme-bold .hero-text {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.theme-bold .hero-text {
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: var(--hero-text-measure);
}

/* Bold body sections — clean rhythm below the cinematic hero */
.theme-bold .bold-body-section {
    border-top: 2px solid color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.theme-bold .bold-body-section p {
    font-size: var(--body-text-size);
    line-height: var(--body-line-height);
    font-weight: 300;
}

/* Bold highlight cards — brand-primary fill, strong and confident */
.theme-bold .why-work-card {
    background-color: var(--brand-highlight-bg);
    border: none;
    border-radius: 0;
    padding: 2.5rem;
}

.theme-bold .why-work-card.why-work-card h3 {
    color: var(--brand-highlight-text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 0.75rem;
}

.theme-bold .why-work-card.why-work-card p {
    color: var(--brand-highlight-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ------------------------------------------------------------------ */
/* PREVIEW BLANK STATE                                                 */
/* ------------------------------------------------------------------ */

/* Shown in the editor preview iframe when a page is toggled off */
.preview-blank-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    opacity: 0.4;
}

.preview-blank-label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.preview-blank-hint {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* .job-search-hidden and .form-honeypot live in tenant_essentials.css,
   which loads outside {% block theme_stylesheet %} so a bespoke theme that
   replaces this file still gets them. */

.public-policy-container {
    max-width: 780px;
}

.public-policy-heading {
    font-size: 2rem;
    font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* CLIENT BRANDING (TICKET-058)                                        */
/* ------------------------------------------------------------------ */

/* Client logo displayed on job detail page and job form editor */
.client-logo-img {
    max-height: 72px;
    max-width: 180px;
    object-fit: contain;
}

/* Client logo thumbnail in job form editor (slightly taller) */
.client-logo-thumb {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

/* Client badge — top-right of job detail header */
.client-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 18%, transparent);
    border-radius: 8px;
    background: var(--brand-bg);
    max-width: 160px;
}

.client-badge-logo {
    max-height: 48px;
    max-width: 120px;
    object-fit: contain;
}

.client-badge-name {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-secondary);
    text-align: right;
    line-height: 1.3;
}
/* ------------------------------------------------------------------ */
/* NAVBAR LOGO — moved from inline style in base_tenant.html           */
/* ------------------------------------------------------------------ */

/* The logo keeps its own proportions and is never drawn larger than its file. The sticky
   header grows with it; the anchor offset below is measured from the header itself. */
.agency-site .navbar .navbar-logo {
    max-height: 56px;
    max-width: 180px;
    width: auto;
    height: auto;
}
@media (min-width: 992px) {
    .agency-site .navbar .navbar-logo {
        max-height: 72px;
        max-width: 260px;
    }
}

/* ------------------------------------------------------------------ */
/* SINGLE-PAGE SCROLL TEMPLATES — shared classes                       */
/* (Flow, Drift, Scout, Pulse)                                         */
/* ------------------------------------------------------------------ */

/* Scroll reveal. A section starts visible and is hidden only once
   scroll-reveal.js has armed the page, so a blocked or failed script leaves
   it showing. Printing, and a section holding keyboard focus, show it too. */
@media screen {
    .reveal-armed .reveal {
        transition: opacity 0.65s ease, transform 0.65s ease;
    }

    .reveal-armed .reveal:where(:not(.is-visible):not(:focus-within)) {
        opacity: 0;
        transform: translateY(22px);
    }
}

/* A visitor who turns on reduced motion after the page has loaded */
@media (prefers-reduced-motion: reduce) {
    .reveal-armed .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Drift and Scout show every section from the start */
.reveal-armed .theme-drift .reveal,
.reveal-armed .theme-scout .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Shared single-page section spacing */
/* Every section of the Home page (and the single-page designs' About section) takes its
   vertical padding from --section-space, one rule for every design. */
.agency-site .home-section,
.agency-site .sp-body-section,
.agency-site .sp-about-section,
.agency-site .sp-highlights-section,
.agency-site .sp-featured-section,
.agency-site .sp-body-lower-section,
.agency-site .home-jobs-section,
.agency-site .marquee-jobs-section,
.agency-site .reel-jobs-section,
.agency-site .reel-about-section,
.agency-site .bold-body-section,
.agency-site .minimal-body-section {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.sp-body-section {
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.sp-body-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--brand-secondary);
}

.sp-about-section {
    background-color: color-mix(in srgb, var(--brand-primary) 4%, var(--brand-bg));
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 10%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.sp-about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--brand-secondary);
}

.sp-jobs-section {
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.sp-highlights-section {
    background-color: color-mix(in srgb, var(--brand-primary) 4%, var(--brand-bg));
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.sp-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--brand-secondary);
    margin-bottom: 1.5rem;
}

/* Single-page job preview cards */
.sp-job-card {
    border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
    border-radius: 6px;
    padding: 1.5rem;
    background: var(--brand-bg);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.sp-job-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -4px color-mix(in srgb, var(--brand-primary) 8%, transparent);
}

.sp-job-card h3 {
    color: var(--brand-secondary);
}

/* A Premium page's two text sections, when nothing sits between them, read as one
   passage. Each keeps some padding because either can have its own colours. */
.agency-site .about-content-section[data-text-block^="page"]:has(+ .sp-body-lower-section) {
    padding-bottom: 1.5rem;
}
/* The main text of About or a Premium page runs on into text boxes straight after it with a
   small gap, as it does into its lower text. The boxes carry Bootstrap's py-5, whose padding is
   !important, so their top is set the same way. */
.agency-site .about-content-section:has(+ [data-boxes]) {
    padding-bottom: 1.5rem;
}
.agency-site .about-content-section + [data-boxes] {
    padding-top: 1.5rem !important;
}
.agency-site .about-content-section[data-text-block^="page"] + .sp-body-lower-section {
    padding-top: 1.5rem;
}

/* A jump to any in-page anchor lands below the sticky header. sticky-header-offset.js sets
   --pp-sticky-offset to the stuck header's bottom edge (its height plus its top, so a demo's
   bar above it counts); the rem values are the offset before the script runs or without it. The
   padding sits on the scroller, so no target also needs a scroll-margin. A concept's bar stays
   above the header, and on a phone it sits at the foot of the screen instead. */
html:has(body.agency-site) {
    scroll-padding-top: calc(var(--pp-sticky-offset, 8rem) + 0.5rem);
}
html:has(body.agency-site > .pp-concept-bar) {
    scroll-padding-top: calc(var(--pp-sticky-offset, 11rem) + 0.5rem);
}

/* The main text and lower text of Home read as the main text of About and of the Premium pages
   (.lead-text): the same size and line height, aligned to the left like it, on every design. */
[data-text-block="home-body"] .container,
.sp-body-lower-section .container,
[data-text-block="about-lower"] .container,
[data-text-block="page1-lower"] .container,
[data-text-block="page2-lower"] .container,
[data-text-block="page3-lower"] .container {
    font-size: var(--body-text-size);
    line-height: var(--body-line-height);
}

/* Clean, high-contrast, modern. DM Sans.                             */
/* ------------------------------------------------------------------ */

.theme-flow {
    --brand-primary:   #1d3557;
    --brand-secondary: #1d3557;
    --brand-bg:        #ffffff;
    --brand-font:      'DM Sans', sans-serif;
    --brand-hero-bg:   var(--brand-primary);
}

.theme-flow .sp-hero-section {
    --hero-pad-top: 6rem;
    --hero-pad-bottom: 5rem;
    padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
}

.theme-flow .hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -1.5px;
}

.theme-flow .hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: var(--hero-text-measure);
}

/* Flow — stagger reveal delays for a cascaded entrance */
.theme-flow .hero-content .hero-title  { transition-delay: 0s; }
.theme-flow .hero-content .hero-text   { transition-delay: 0.1s; }
.theme-flow .hero-content .hero-actions { transition-delay: 0.2s; }
.theme-flow .hero-image-wrapper        { transition-delay: 0.15s; }

/* Flow section dividers — strong horizontal rule */
.theme-flow .sp-about-section,
.theme-flow .sp-jobs-section,
.theme-flow .sp-highlights-section,
.theme-flow .sp-featured-section,
.theme-flow .sp-body-section {
    border-top-width: 2px;
}

.theme-flow .sp-body-text {
    font-size: 1.15rem;
    line-height: 1.85;
    font-weight: 300;
}

/* ------------------------------------------------------------------ */
/* DRIFT template                                                       */
/* Warm, editorial, generous whitespace. Playfair Display.            */
/* ------------------------------------------------------------------ */

.theme-drift {
    --brand-primary:   #4a7c59;
    --brand-secondary: #4a7c59;
    --brand-bg:        #f5f0e8;
    --brand-font:      'Playfair Display', serif;
    --brand-hero-bg:   var(--brand-primary);
}

.theme-drift .sp-hero-section {
    --hero-pad-top: 7rem;
    --hero-pad-bottom: 6rem;
    padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
}

.theme-drift .hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
}

.theme-drift .hero-text {
    font-size: 1.15rem;
    line-height: 1.95;
    font-weight: 300;
    max-width: var(--hero-text-measure);
}

/* Drift — softer card borders */
.theme-drift .sp-job-card,
.theme-drift .why-work-card {
    border-radius: 10px;
}

.theme-drift .sp-about-section {
    background-color: color-mix(in srgb, var(--brand-primary) 6%, var(--brand-bg));
}

.theme-drift .sp-body-text {
    font-size: 1.15rem;
    line-height: 1.95;
    font-weight: 300;
}

.theme-drift .sp-featured-section {
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

/* Drift highlight cards — more internal breathing room */
.theme-drift .why-work-card {
    padding: 2.5rem;
}

/* ------------------------------------------------------------------ */
/* SCOUT template                                                       */
/* Personal, consultant feel. Understated. Merriweather.              */
/* ------------------------------------------------------------------ */

.theme-scout {
    --brand-primary:   #2d2d2d;
    --brand-secondary: #2d2d2d;
    --brand-bg:        #f8f6f2;
    --brand-font:      'Merriweather', serif;
    --brand-hero-bg:   var(--brand-primary);
}

/* Scout — minimal borders, feels handcrafted */
.theme-scout .sp-job-card {
    border-left-width: 3px;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    padding-left: 1.25rem;
    background: transparent;
}

.theme-scout .sp-job-card:hover {
    transform: translateX(4px);
    box-shadow: none;
    border-color: var(--brand-primary);
}

.theme-scout .sp-about-section {
    background-color: var(--brand-bg);
    border-top: 2px solid var(--brand-primary);
}

/* Scout — section titles */
.theme-scout .sp-section-title {
    font-weight: 400;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

/* Scout — full-bleed cinematic hero (same technique as Bold) */
.theme-scout .sp-hero-section {
    padding: 0;
    overflow: hidden;
}

.theme-scout .sp-scout-bleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    --hero-bleed-min: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--brand-photo-backing);
}

/* The tenant's Banner Text colour, over the photo — see "Photo heroes". */
.theme-scout .sp-scout-hero-content .site-button-secondary {
    color: var(--brand-hero-text);
    border-color: var(--brand-hero-text);
}

.theme-scout .sp-scout-hero-img {
    --hero-picture-opacity: 0.3;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: var(--hero-picture-opacity);
    border-radius: 0;
    max-height: none;
}

/* Dark gradient overlay — text always readable over the image (see Bold's above) */
.theme-scout .sp-scout-bleed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, calc(0.78 * var(--hero-overlay-strength))) 0%,
        rgba(0, 0, 0, calc(0.50 * var(--hero-overlay-strength))) 55%,
        rgba(0, 0, 0, calc(0.20 * var(--hero-overlay-strength))) 100%
    );
    pointer-events: none;
}

.theme-scout .sp-scout-hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem var(--hero-bleed-gutter);
    max-width: calc(var(--hero-span) + 2 * var(--hero-bleed-gutter));
    margin: 0 auto;
}

.theme-scout .hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--brand-hero-text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.theme-scout .hero-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--brand-hero-text);
    font-weight: 300;
    max-width: var(--hero-text-measure);
}

@media (max-width: 767.98px) {
    .theme-scout .sp-scout-bleed {
        --hero-bleed-min: 55vh;
    }
    .theme-scout .sp-scout-hero-content {
        padding: 2.5rem 1.5rem;
    }
    /* Room for the Pause pictures button, as on Bold. */
    .theme-scout .sp-scout-bleed:has(> .hero-extra) .sp-scout-hero-content {
        padding-bottom: 4.25rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .theme-scout .sp-scout-bleed {
        --hero-bleed-min: 65vh;
    }
}

.theme-scout .sp-body-section {
    border-top: 2px solid var(--brand-primary);
}

.theme-scout .sp-body-text {
    font-size: 1.15rem;
    line-height: 1.9;
}

.theme-scout .sp-featured-section {
    border-top: 2px solid var(--brand-primary);
}

/* Scout highlight cards — more internal space, sharp corners */
.theme-scout .why-work-card {
    padding: 2.5rem;
    border-radius: 0;
}

/* Impact — full-bleed brand-colour hero, no image required */
.theme-impact {
    --brand-primary:   #e11d48;
    --brand-secondary: #9f1239;
    --brand-bg:        #ffffff;
    --brand-font:      'Inter', sans-serif;
    --brand-hero-bg:   var(--brand-primary);
}

/* Impact premium page slots — sharp corners match the template's no-decoration aesthetic */
.theme-impact .pageslot-image-placeholder {
    border-radius: 0;
    border-color: color-mix(in srgb, var(--brand-primary) 30%, transparent);
}

/* Impact job cards — sharp, left-accent border like Executive but stronger */
.theme-impact .job-card,
.theme-impact .job-card-preview {
    border-radius: 0;
    border-left: 4px solid var(--brand-primary);
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 7%, transparent);
    border-right: 1px solid color-mix(in srgb, var(--brand-primary) 7%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 7%, transparent);
}
.theme-impact .job-card:hover,
.theme-impact .job-card-preview:hover {
    border-left-color: var(--brand-secondary);
    transform: translateX(4px) translateY(-2px);
}

/* Impact card-brand */
.theme-impact .agency-site .card-brand,
.theme-impact.agency-site .card-brand {
    border-radius: 0;
    border-color: color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

/* ------------------------------------------------------------------ */
/* IMPACT template                                                      */
/* Full-bleed brand-colour hero. No image required. Type-led design.  */
/* ------------------------------------------------------------------ */

/* Navbar — continuous with the hero, not a white bar cutting across it */
.theme-impact .navbar,
.theme-impact.agency-site .navbar {
    background: var(--brand-primary);
    background-color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
    box-shadow: none;
    /* Override Bootstrap navbar-light colour variables */
    --bs-navbar-color: var(--brand-hero-text);
    --bs-navbar-hover-color: var(--brand-hero-text);
    --bs-navbar-active-color: var(--brand-hero-text);
    --bs-navbar-brand-color: var(--brand-hero-text);
    --bs-navbar-brand-hover-color: var(--brand-hero-text);
    --bs-navbar-toggler-border-color: color-mix(in srgb, var(--brand-hero-text) 30%, transparent);
}

.theme-impact .navbar .navbar-brand,
.theme-impact .navbar .brand-text {
    color: var(--brand-hero-text);
}

.theme-impact .navbar .nav-link {
    color: var(--brand-hero-text);
}

.theme-impact .navbar .nav-link:hover {
    color: var(--brand-hero-text);
}

/* Hamburger toggler — border driven by hero text variable */
.theme-impact .navbar-toggler {
    border-color: color-mix(in srgb, var(--brand-hero-text) 30%, transparent);
}

/* Hero — full viewport, brand colour as background, flush with navbar */
.theme-impact .hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Oversized headline — the type is the design */
.theme-impact .hero-title {
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -4px;
    color: var(--brand-hero-text);
    max-width: var(--hero-span);
    margin-bottom: 2rem;
}

.theme-impact .hero-text {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: var(--hero-text-measure);
    color: var(--brand-hero-text);
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* CTA buttons — outline style, always readable on any brand colour */
.theme-impact .hero-actions .site-button-primary {
    background-color: transparent;
    border: 2px solid var(--brand-hero-text);
    color: var(--brand-hero-text);
    border-radius: 0;
    padding: 0.9rem 3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.theme-impact .hero-actions .site-button-primary:hover {
    background-color: var(--brand-hero-text);
    color: var(--brand-primary);
    opacity: 1;
}

.theme-impact .hero-actions .site-button-secondary {
    border: 2px solid color-mix(in srgb, var(--brand-hero-text) 30%, transparent);
    color: var(--brand-hero-text);
    border-radius: 0;
    padding: 0.9rem 3rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.theme-impact .hero-actions .site-button-secondary:hover {
    background-color: color-mix(in srgb, var(--brand-hero-text) 10%, transparent);
    border-color: color-mix(in srgb, var(--brand-hero-text) 70%, transparent);
}

/* Hide the hero image column — Impact doesn't use an image in the hero */
.theme-impact .hero-image-wrapper {
    display: none;
}

/* Remove section dividers — the colour contrast does the work instead */
.theme-impact section:not(.hero-section) {
    border-top: none;
}

.theme-impact section p.mb-0 {
    font-size: 1.2rem;
    line-height: 1.85;
    color: var(--brand-secondary);
    font-weight: 300;
}

/* Featured job section on the other pages — more breathing room. Home's sections take
   --section-space like every other design's. */
.theme-impact section:has(.job-card):not(.home-section, .home-jobs-section) {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Body text section on the other pages — generous padding. */
.theme-impact section:has(> .container > p):not(.home-section, .sp-body-lower-section) {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.theme-impact .sp-featured-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-secondary);
    margin-bottom: 2rem;
}

/* Highlight cards section: the other pages' keep generous vertical rhythm. */
.theme-impact .sp-highlights-section,
.theme-impact section:has(.why-work-card) {
    background-color: var(--brand-bg);
}

.theme-impact section:has(.why-work-card):not(.home-section) {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Highlight cards — brand-primary fill, page background colour text */
.theme-impact .why-work-card {
    background-color: var(--brand-highlight-bg);
    border: none;
    border-radius: 0;
    padding: 2.5rem;
}

.theme-impact .why-work-card.why-work-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 0.75rem;
    color: var(--brand-highlight-text);
    opacity: 1;
}

.theme-impact .why-work-card.why-work-card p {
    color: var(--brand-highlight-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Featured job — full border, crisp and intentional */
.theme-impact .job-card,
.theme-impact .job-card-preview {
    border-radius: 0;
    border: 2px solid var(--brand-primary);
    background: var(--brand-bg);
    padding: 2rem;
}

.theme-impact .job-card:hover,
.theme-impact .job-card-preview:hover {
    border-color: var(--brand-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-primary) 8%, transparent);
}

/* Impact card-brand */
.theme-impact .agency-site .card-brand,
.theme-impact.agency-site .card-brand {
    border-radius: 0;
    border-color: color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

/* ------------------------------------------------------------------ */
/* PULSE template                                                       */
/* Full-bleed brand-colour hero, no image needed. Single-page scroll. */
/* Bold, brandable. Inter. Electric lime defaults.                    */
/* ------------------------------------------------------------------ */

.theme-pulse {
    --brand-primary:   #84cc16;
    --brand-secondary: #1a2e05;
    --brand-bg:        #ffffff;
    --brand-font:      'Inter', sans-serif;
    --brand-hero-bg:   var(--brand-primary);
}

/* Pulse navbar — inverted: sits on brand-primary, white text */
.theme-pulse .navbar {
    background-color: var(--brand-primary);
    border-bottom: none;
}

.theme-pulse .navbar .navbar-brand,
.theme-pulse .navbar .nav-link {
    color: var(--brand-hero-text);
}

/* Pulse hero — full-bleed colour band, generous vertical rhythm */
.theme-pulse .sp-hero-section {
    background-color: var(--brand-primary);
    color: var(--brand-hero-text);
    padding: 8rem 0 7rem;
}

.theme-pulse .sp-hero-section .hero-title,
.theme-pulse .sp-hero-section .hero-text,
.theme-pulse .sp-hero-section p {
    color: var(--brand-hero-text);
}

.theme-pulse .hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 2rem;
}

.theme-pulse .hero-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: var(--hero-text-measure);
    text-align: left;
    margin-right: auto;
    font-weight: 300;
}

/* Pulse hero CTA — secondary colour for primary button, outlined ghost for secondary */
.theme-pulse .sp-hero-section .site-button-primary {
    background-color: var(--brand-hero-text);
    border-color: var(--brand-hero-text);
    color: var(--brand-primary);
    font-weight: 700;
}

.theme-pulse .sp-hero-section .site-button-primary:hover {
    opacity: 0.9;
}

/* Pulse body sections — clean white, accent dividers, generous spacing */
.theme-pulse .sp-about-section,
.theme-pulse .sp-jobs-section,
.theme-pulse .sp-highlights-section,
.theme-pulse .sp-featured-section {
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
}

.theme-pulse .sp-body-section {
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
}

.theme-pulse .sp-body-text {
    font-size: 1.2rem;
    line-height: 1.85;
    font-weight: 300;
}

/* Pulse section titles — strong, left-anchored */
.theme-pulse .sp-section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--brand-secondary);
}

/* Pulse job cards — sharp left-accent, matching Impact's card style */
.theme-pulse .sp-job-card {
    border-radius: 0;
    border-left: 4px solid var(--brand-primary);
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 7%, transparent);
    border-right: 1px solid color-mix(in srgb, var(--brand-primary) 7%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 7%, transparent);
    background: var(--brand-bg);
    transition: all 0.25s ease;
}

.theme-pulse .sp-job-card:hover {
    border-left-color: var(--brand-secondary);
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.theme-pulse .why-work-card,
.theme-pulse .why-work-card.why-work-card {
    background-color: var(--brand-highlight-bg);
    border: none;
    border-radius: 0;
    padding: 2.5rem;
}

.theme-pulse .why-work-card.why-work-card h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 0.75rem;
    color: var(--brand-highlight-text);
    opacity: 1;
}

.theme-pulse .why-work-card.why-work-card p {
    color: var(--brand-highlight-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .theme-impact .hero-section {
        min-height: auto;
        padding: 5rem 0 4rem;
    }

    .theme-impact .hero-title {
        font-size: clamp(2.8rem, 13vw, 4.5rem);
        letter-spacing: -2px;
        margin-bottom: 1.5rem;
    }

    .theme-impact section p.mb-0 {
        font-size: 1.05rem;
    }

    .theme-pulse .sp-hero-section {
        padding: 5rem 0 4rem;
    }

    .theme-pulse .hero-title {
        font-size: clamp(2.5rem, 11vw, 4rem);
        letter-spacing: -2px;
    }

    .theme-flow .sp-hero-section {
        padding: 4rem 0 3rem;
    }

    .theme-flow .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        letter-spacing: -1px;
    }

    .theme-drift .sp-hero-section {
        padding: 5rem 0 4rem;
    }

    .theme-drift .hero-title {
        font-size: clamp(2rem, 9vw, 3rem);
        letter-spacing: -0.5px;
    }

    .theme-minimal .hero-section {
        padding: 3rem 0 2.5rem;
    }

    .theme-minimal .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        letter-spacing: -2px;
    }
}
/* ──────────────────────────────────────────────────────────────────── */
/* Demo bar — injected on /choose-template/preview/ pages only.         */
/* Sticky in document flow so content scrolls naturally below it.       */
/* The adjacent tenant nav is offset here; no inline style is injected. */
/* ──────────────────────────────────────────────────────────────────── */

.pp-demo-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 44px;
    background-color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    /* Platform chrome, not tenant type. Inter when the page already has it,
       otherwise the visitor's own UI font rather than a generic fallback —
       this bar is injected onto previews of designs that use other faces. */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    flex-shrink: 0;
}

.pp-demo-bar ~ .sticky-top {
    top: 44px;
}

.pp-demo-bar a {
    text-decoration: none;
}

/* The Premium pages group of a demo that has them: a closed list the summary opens,
   centred between the two links. */
.pp-demo-premium {
    position: relative;
    margin: 0 1rem;
}

.pp-demo-premium > summary {
    list-style: none;
    cursor: pointer;
    color: #ffffff;
    opacity: 0.85;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50rem;
    padding: 0.25rem 0.85rem;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.pp-demo-premium > summary::-webkit-details-marker {
    display: none;
}

.pp-demo-premium > summary::after {
    content: "\25BE";
    margin-left: 0.4rem;
}

.pp-demo-premium > summary:hover,
.pp-demo-premium[open] > summary {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.7);
}

.pp-demo-premium > summary:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.pp-demo-premium-list {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 15rem;
    max-width: calc(100vw - 2rem);
    padding: 0.5rem;
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
}

.pp-demo-premium-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #ffffff;
}

.pp-demo-premium-link:hover,
.pp-demo-premium-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.pp-demo-premium-hint {
    margin: 0.25rem 0.75rem;
    color: #ffffff;
    opacity: 0.7;
    font-size: 0.75rem;
    font-weight: 400;
}

/* Concept previews (TICKET-254): a note, then the two ways on. */
.pp-concept-note {
    color: #ffffff;
    opacity: 0.9;
    min-width: 0;
    margin-right: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The trial and who replies, between the note and the ways on, where there is room. */
.pp-concept-reassure {
    color: #ffffff;
    opacity: 0.75;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 1rem;
}

@media (max-width: 1199.98px) {
    .pp-concept-reassure {
        display: none;
    }
}

.pp-concept-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* The strip under the bar on a Premium concept's Candidates and Clients pages. */
.pp-concept-pages-note {
    padding: 0.5rem 1.25rem;
    background-color: #f1f5f9;
    border-bottom: 1px solid #cbd5e1;
    color: #0f172a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.4;
    text-align: center;
}

/* What a Premium concept's "Use this design myself" opens first (concept-premium.js). Our
   chrome, not the tenant's, so its colours and font are fixed like the bar's. The body
   carries the padding, so a click on the dialog element itself is a click on the backdrop. */
.pp-premium-dialog {
    width: min(32rem, calc(100vw - 2rem));
    padding: 0;
    border: 0;
    border-radius: 0.75rem;
    background-color: #ffffff;
    color: #0f172a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.3);
}

.pp-premium-dialog::backdrop {
    background-color: rgba(15, 23, 42, 0.6);
}

.pp-premium-dialog-body {
    padding: 1.5rem;
}

.pp-premium-dialog h2 {
    margin: 0 0 0.75rem;
    color: #0f172a;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.pp-premium-dialog p {
    margin: 0 0 0.75rem;
    color: #0f172a;
}

/* The plans side by side: a feature column, then one column a plan, Premium marked. */
.pp-premium-compare {
    width: 100%;
    margin: 0 0 1.25rem;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: #0f172a;
}

.pp-premium-compare th,
.pp-premium-compare td {
    padding: 0.45rem 0.4rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
}

.pp-premium-compare tbody th {
    text-align: left;
    font-weight: 500;
}

.pp-premium-compare thead th {
    font-weight: 700;
    line-height: 1.25;
}

.pp-premium-price {
    display: block;
    color: #475569;
    font-weight: 500;
    font-size: 0.8125rem;
}

.pp-premium-compare .pp-premium-this {
    background-color: #f1f5f9;
}

.pp-premium-yes {
    color: #15803d;
}

.pp-premium-no {
    color: #64748b;
}

.pp-premium-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.pp-premium-dialog-actions button {
    border-radius: 50rem;
    padding: 0.5rem 1.1rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.pp-premium-dialog-continue {
    border: 1px solid #0f172a;
    background-color: #0f172a;
    color: #ffffff;
}

.pp-premium-dialog-continue:hover {
    background-color: #1e293b;
}

.pp-premium-dialog-close {
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
}

.pp-premium-dialog-close:hover {
    background-color: #f1f5f9;
}

.pp-premium-dialog-actions button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* "Use this design myself" is a POST form, so link checkers never start a wizard; the
   button takes the outlined look of the demo bar's link. */
.pp-concept-form {
    display: inline;
    margin: 0;
}

button.pp-concept-secondary {
    background: transparent;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

/* A quieter way on: the wizard from the start, nothing carried over. */
.pp-concept-fresh {
    color: #ffffff;
    opacity: 0.85;
    font-size: 0.85em;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pp-concept-fresh:hover,
.pp-concept-fresh:focus {
    color: #ffffff;
    opacity: 1;
}

.pp-demo-bar a:hover {
    text-decoration: none;
}

.pp-demo-back {
    color: #ffffff;
    opacity: 0.85;
    /* Stays on one line beside the Premium pages group (a phone hides the main button). */
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50rem;
    padding: 0.25rem 0.85rem;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.pp-demo-back:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.pp-demo-cta {
    background-color: #ffffff;
    color: #0f172a;
    border-radius: 50rem;
    padding: 0.25rem 0.85rem;
    font-weight: 700;
    opacity: 1;
    transition: background-color 0.15s ease;
}

.pp-demo-cta:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

@media (max-width: 575.98px) {
    .pp-demo-bar {
        height: 48px;
    }
    .pp-demo-bar ~ .sticky-top {
        top: 48px;
    }
    .pp-demo-cta {
        display: none;
    }
    /* The group's list opens under its button, aligned to the screen's edge, not centred. */
    .pp-demo-premium {
        margin: 0;
    }
    .pp-demo-premium-list {
        left: auto;
        right: 0;
        transform: none;
    }
    /* On a phone a concept's bar sits at the foot of the screen, within reach of a thumb,
       with both ways on and the trial line above them; the note and the quieter link go. */
    .pp-concept-bar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.375rem;
        padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom));
    }
    .pp-concept-bar ~ .sticky-top {
        top: 0;
    }
    .pp-concept-reassure {
        display: block;
        width: 100%;
        margin: 0;
        text-align: center;
        font-size: 0.75rem;
    }
    .pp-concept-actions {
        width: 100%;
        justify-content: center;
    }
    .pp-concept-bar .pp-demo-cta {
        display: inline-block;
    }
    .pp-concept-note,
    .pp-concept-fresh,
    .pp-concept-cta-lead {
        display: none;
    }
    html:has(body.agency-site > .pp-concept-bar) {
        scroll-padding-top: calc(var(--pp-sticky-offset, 8rem) + 0.5rem);
    }
    /* The page ends above the bar, and the cookie notice sits above it rather than under it. */
    body:has(> .pp-concept-bar) {
        padding-bottom: 6rem;
    }
    body:has(> .pp-concept-bar) #pp-cookie-banner {
        bottom: calc(6rem + env(safe-area-inset-bottom));
    }
}
/* Contact page and tenant messages */
.contact-page,
.contact-success-page {
    background: var(--brand-bg);
    color: var(--brand-secondary);
    padding: clamp(3rem, 7vw, 6rem) 0;
}
.contact-page-container { max-width: 760px; }
.contact-page-header { max-width: 720px; margin-bottom: 2.5rem; }
.contact-page-header h1 { color: var(--brand-secondary); }
.contact-form-panel,
.contact-form-panel h2 { color: var(--brand-highlight-text); }
.contact-success-panel,
.contact-success-panel h1 { color: var(--brand-secondary); }
.contact-page-eyebrow {
    color: var(--brand-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.contact-form-panel,
.contact-success-panel {
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 18%, transparent);
    border-radius: var(--sharp-radius, 10px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}
.contact-form-panel { background: var(--brand-highlight-bg); }
.contact-form-panel { box-shadow: 0 18px 50px color-mix(in srgb, var(--brand-primary) 10%, transparent); }
.contact-field { margin-top: 1.15rem; }
.contact-field label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 650; margin-bottom: .4rem; }
.contact-field label span { font-size: .75rem; font-weight: 500; }
.contact-field input,
.contact-field textarea {
    background: var(--brand-bg);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 32%, transparent);
    border-radius: var(--sharp-radius, 6px);
    color: var(--brand-secondary);
    padding: .8rem .9rem;
    width: 100%;
}
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 20%, transparent); outline: 0; }
/* A field in error: the red mixed with the area's own text colour, so it is a deep
   red on a light page and a light red on a dark one, and always stands out from
   the field (test_small_control_colours checks the contrast on light and dark
   palettes). The icon and the wording carry the meaning as well as the colour. */
.contact-field-error {
    --pp-error: color-mix(in srgb, var(--pp-error-red) 60%, var(--brand-secondary));
}
.contact-field-error input,
.contact-field-error textarea {
    background: color-mix(in srgb, var(--pp-error) 8%, var(--brand-bg));
    border-color: var(--pp-error);
    border-width: 2px;
}
/* The line under the attachment box saying which files it takes. It keeps the
   panel's own text colour, so it reads wherever the contact panel's colours do. */
.contact-field-hint { font-size: .8125rem; margin: .35rem 0 0; }
.contact-field-error-text { align-items: flex-start; color: var(--brand-highlight-text); display: flex; font-size: .875rem; font-weight: 700; gap: .4rem; margin-top: .45rem; }
.contact-field-error-text > span[aria-hidden="true"] { align-items: center; background: var(--pp-error); border-radius: 50%; color: var(--brand-bg); display: inline-flex; flex: 0 0 1.1rem; font-size: .75rem; height: 1.1rem; justify-content: center; line-height: 1; margin-top: .05rem; }
.contact-submit,
.contact-secondary-action {
    align-items: center;
    border-radius: var(--sharp-radius, 6px);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    padding: .8rem 1.25rem;
    text-decoration: none;
}
.contact-submit { background: var(--brand-highlight-text); border: 1px solid var(--brand-highlight-text); color: var(--brand-highlight-bg); }
.contact-form-panel .contact-submit { margin-top: 1.4rem; }
.contact-secondary-action { border: 1px solid var(--brand-highlight-text); color: var(--brand-highlight-text); }
.contact-notice { font-size: .82rem; margin: 1rem 0 0; }
.contact-preview-note { font-size: .82rem; font-weight: 700; margin: 0 0 1rem; }
.site-message { align-items: flex-start; background: var(--brand-highlight-bg); border: 1px solid var(--brand-secondary); border-left: 5px solid var(--brand-accent); color: var(--brand-highlight-text); display: flex; gap: 1rem; justify-content: space-between; padding: 1rem 1.25rem; }
.site-message-success { border-left-color: var(--brand-primary); }
.site-message-error,
.site-message-danger { border-left-color: var(--brand-accent); font-weight: 650; }
.site-message-close { background: transparent; border: 0; color: inherit; cursor: pointer; font-size: 1.35rem; line-height: 1; padding: 0; }
.contact-success-panel { background: var(--brand-bg); border-color: color-mix(in srgb, var(--brand-primary) 30%, transparent); box-shadow: 0 14px 40px color-mix(in srgb, var(--brand-secondary) 8%, transparent); margin: 0 auto; max-width: 720px; text-align: center; }
.public-feedback-copy { font-size: 1.05rem; }
.contact-success-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.theme-minimal .contact-form-panel { box-shadow: none; }
.theme-impact .contact-form-panel,
.theme-impact .contact-success-panel { border-radius: 0; }

@media (max-width: 767px) {
    .contact-page-header { margin-bottom: 1.5rem; }
    .contact-submit { width: 100%; }
}

/* ── Signup-wizard copy placeholders (TICKET-192) ───────────────────────────
   Applied only to text the signup wizard letters while the visitor has not
   yet reached the Content step. The class reaches the page solely through
   marketing/text_placeholders.py, which runs against the wizard's throwaway
   preview profile — never a real CompanyProfile — so no live tenant site and
   no /choose-template/ demo page can carry it. Inert here for everyone else.

   Starts at full contrast so the visitor first sees the template's real text
   colour, then quickly softens to show that the copy is unfinished. The calm
   alternating loop keeps that distinction visible as the preview develops.

   Unlike an animation inside an <img>-loaded SVG (measured: the media query
   there is ignored), this is ordinary CSS in an ordinary stylesheet, so
   prefers-reduced-motion is honoured properly. */
.pp-copy-placeholder {
    opacity: 0.34;
    animation: pp-copy-soften 1.2s ease-in-out infinite alternate;
}

@keyframes pp-copy-soften {
    from { opacity: 1; }
    to   { opacity: 0.34; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-copy-placeholder {
        animation: none;
        opacity: 0.34;
    }
}
.contact-cta {
    padding: clamp(3rem, 7vw, 5rem) 0;
    background: var(--brand-primary);
    color: var(--brand-hero-text);
}

.contact-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.contact-cta h2 {
    color: inherit;
    margin-bottom: .5rem;
}

.contact-cta-text > :last-child {
    margin-bottom: 0;
}

.contact-cta-button {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .contact-cta-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-cta-button {
        width: 100%;
    }
}

/* Optional proof content uses the same tenant colour roles as the wizard. */
.proof-figures { background: var(--brand-primary); color: var(--brand-hero-text); padding: 3rem 0; }
/* The figures share the band's width equally (auto-fit, so two or three figures
   fill the row rather than leaving an empty column) and are centred, like the
   testimonial below them, so figures of different lengths still look balanced. */
.proof-figures-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); max-width: 58rem; text-align: center; }
.proof-figure strong { display: block; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; text-wrap: balance; }
.proof-figure span { display: block; margin-top: .6rem; }
/* The count-up (proof-countup.js): the full value is kept for assistive technology
   and print, and the counting copy is for the eye. */
.proof-figure strong { position: relative; }
.proof-count-final { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.proof-count-live { font-variant-numeric: tabular-nums; }
@media print {
    .proof-count-final { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
    .proof-count-live { display: none; }
}
.proof-testimonial { background: var(--brand-highlight-bg); color: var(--brand-highlight-text); padding: 3.5rem 0; }
.proof-testimonial { text-align: center; }
.proof-testimonial figure { margin: 0 auto; max-width: 46rem; }
.proof-testimonial-label { margin: 0 0 1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.proof-testimonial blockquote { font-size: var(--body-text-size); margin: 0 0 1rem; }
.proof-testimonial figcaption { font-weight: 700; }
@media (max-width: 767.98px) { .proof-figures, .proof-testimonial { padding: 2.5rem 0; } }

/* Moving words: a line under the headline. The complete sentence and the
   rotating words share one grid cell, so the line keeps its height while the
   words step through once. Colour and indent come from the hero rules. */
.agency-site .hero-words { font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin: 0 0 1rem; }
.agency-site .hero-section .hero-words { color: var(--brand-hero-text); margin-inline-start: var(--hero-text-indent, 0); }
.hero-words-stack { display: inline-grid; vertical-align: top; }
.hero-words-static, .hero-words-rotator { grid-area: 1 / 1; }
.hero-words-rotator { display: grid; visibility: hidden; }
.hero-word { grid-area: 1 / 1; opacity: 0; }
.hero-words.is-subtle .hero-word, .hero-words.is-subtle .hero-words-static { transition: opacity .6s ease; }
.hero-words.is-expressive .hero-word, .hero-words.is-expressive .hero-words-static { transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.hero-words.is-expressive .hero-word { transform: translateY(.7em); }
.hero-words.is-rotating .hero-words-rotator { visibility: visible; }
.hero-words.is-rotating .hero-words-static { opacity: 0; }
.hero-words .hero-word.is-active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .hero-words-rotator { display: none; }
}
.hero-words-strapline { font-weight: 600; }

/* Headline reveal: the words fade in one after another (hero-reveal.js). The
   headline is hidden only where scripts run and motion is allowed, and a
   failsafe shows it after three and a quarter seconds even if the script never
   runs, so it can never be left invisible. Gentle is a slow fade; Lively is a
   quicker fade that rises into place and sharpens. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    .hero-title[data-reveal] { opacity: 0; animation: pp-reveal-failsafe .01s linear 3.2s forwards; }
    .hero-title[data-reveal].is-revealing { opacity: 1; animation: none; }
}
@keyframes pp-reveal-failsafe { to { opacity: 1; } }
.hero-title.is-revealing .reveal-word { opacity: 0; }
.hero-title.is-revealing.is-subtle .reveal-word { transition: opacity .7s ease; }
.hero-title.is-revealing.is-expressive .reveal-word {
    display: inline-block;
    filter: blur(6px);
    transform: translateY(.6em);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1), filter .55s ease;
}
.hero-title.is-revealing .reveal-word.is-in { opacity: 1; filter: none; transform: none; }
/* Cinematic: slow, one word at a time. It runs past five seconds, so a Skip
   animation button (below) is always offered while it plays. */
.hero-title.is-revealing.is-cinematic .reveal-word { transition: opacity 1.2s ease; }
.hero-title.is-skipped .reveal-word { transition: none; }
.hero-words.is-cinematic .hero-word, .hero-words.is-cinematic .hero-words-static { transition: opacity .9s ease; }

/* The skip button is the page's own control: it wears the site's button colours,
   with a border in the button text colour, so it matches the site and reads on
   any palette, and it never moves the layout. The focus ring has two bands, the
   button's fill inside its text colour, so one of them always contrasts with
   whatever is behind it. */
.pp-skip-animation {
    background: var(--site-button-bg);
    border: 2px solid var(--site-button-text);
    border-radius: 999px;
    bottom: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    color: var(--site-button-text);
    cursor: pointer;
    font: 600 .95rem/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif;
    left: 50%;
    min-height: 44px;
    padding: .6rem 1.4rem;
    position: fixed;
    transform: translateX(-50%);
    z-index: 2147483000;
}
.pp-skip-animation:hover { background: color-mix(in srgb, var(--site-button-bg) 85%, var(--site-button-text)); }
.pp-skip-animation:focus-visible,
.pp-pictures-pause:focus-visible {
    box-shadow: 0 0 0 3px var(--site-button-bg), 0 0 0 6px var(--site-button-text);
    outline: 2px solid transparent;
}


/* Opening picture sequence (hero-sequence.js). The extra pictures lie over the
   main one at the same size and are invisible until the script fades them in
   one after another; each picture returns to the design's own resting opacity
   (--hero-picture-opacity, set where a design dims its picture). */
.hero-image-wrapper, .marquee-hero-media, .reel-hero-media { position: relative; }
.agency-site .hero-extra {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}
.agency-site .is-sequenced { transition: opacity var(--hero-fade, .8s) ease; }
.agency-site .is-sequenced:not(.is-active) { opacity: 0; transition: none; }
.agency-site .is-sequenced.is-active { opacity: var(--hero-picture-opacity, 1); }
/* The picture being replaced stays fully visible under the one fading in, then
   drops out once that has finished, so a change is a crossfade with no dip.
   Going back to the main picture (never hidden), the picture on top fades out
   over it instead. A design that dims its picture fades each one out as the
   next fades in (hero-sequence.js). */
.agency-site .is-sequenced.is-leaving { opacity: var(--hero-picture-opacity, 1); transition: none; }
.agency-site .is-sequenced.is-fading-out { opacity: 0; transition: opacity var(--hero-fade, .8s) ease; }

/* Latest jobs under the opening picture, for the designs that have no list of their own
   (Marquee and Reel style theirs above). The section carries the Latest jobs colours
   through [data-band="jobs"]; the cards are the site's own .job-card, so each design's
   card styling applies. */
.agency-site .home-jobs-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.agency-site .home-jobs-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 0;
}
.agency-site .home-jobs-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
@media (max-width: 767.98px) {
    .agency-site .home-jobs-heading { align-items: stretch; flex-direction: column; }
}

/* The slideshow's own Pause pictures button (hero-sequence.js): in the corner of
   the picture, in the site's button colours with a border in the button text
   colour so it reads over any photograph, the same two-band focus ring as Skip,
   and it never changes the layout. */
.pp-picture-host { position: relative; }
.pp-pictures-pause {
    background: var(--site-button-bg);
    border: 2px solid var(--site-button-text);
    border-radius: 999px;
    bottom: .75rem;
    color: var(--site-button-text);
    cursor: pointer;
    font: 600 .85rem/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif;
    min-height: 44px;
    padding: .5rem 1rem;
    position: absolute;
    right: .75rem;
    z-index: 5;
}
.pp-pictures-pause:hover { background: color-mix(in srgb, var(--site-button-bg) 85%, var(--site-button-text)); }

/* The picture of a hero with its text beside it, or under it on a narrower screen (Executive,
   Startup, Flow and Drift), gives way so the whole hero, pause button included, ends inside
   the first screen below the sticky header, as the full-width heroes of Bold and Scout do:
   its height is what is left of the screen after --hero-picture-room, never under 12rem so
   it stays a picture. The room is the hero's own vertical padding, and on a narrower screen
   the headline, introduction and buttons stacked above the picture (--hero-stack-room); a
   headline longer than that room allows pushes the picture to its minimum, not the buttons
   below the fold. A picture shorter than that keeps its own shape; a taller one is cropped from
   its centre (or the owner's position) like every other cropped hero picture. */
.agency-site .hero-section {
    --hero-pad: calc(var(--hero-pad-top, 0rem) + var(--hero-pad-bottom, 0rem));
    --hero-stack-room: 0rem;
    --hero-picture-room: calc(var(--hero-pad) + var(--hero-stack-room));
}
@media (max-width: 991.98px) {
    .agency-site .hero-section { --hero-stack-room: 21rem; }
}
@media (max-width: 768px) {
    .agency-site .hero-section {
        --hero-pad-top: 4rem;
        --hero-pad-bottom: 4rem;
        --hero-stack-room: 24rem;
    }
}
.hero-image-wrapper > img.hero-img-styled:not(.hero-extra) {
    max-height: max(12rem, calc(100svh - var(--pp-sticky-offset, 8rem) - var(--hero-picture-room)));
    object-fit: cover;
}

/* What stays in view where a design crops a picture to its box (the tenant's
   choice, nine positions; the centre is the default and needs no class). The
   same picture classes the designs already use carry it, including the opening
   pictures that fade over the main one. */
.hero-focus-top-left     { object-position: 0% 0%; }
.hero-focus-top          { object-position: 50% 0%; }
.hero-focus-top-right    { object-position: 100% 0%; }
.hero-focus-left         { object-position: 0% 50%; }
.hero-focus-right        { object-position: 100% 50%; }
.hero-focus-bottom-left  { object-position: 0% 100%; }
.hero-focus-bottom       { object-position: 50% 100%; }
.hero-focus-bottom-right { object-position: 100% 100%; }


/* ── Home page bands with a style of their own ───────────────────────────
   A band carries data-band-style when its owner chose something other than the
   page's own look (cms_tags.band_attrs); a band left on Page has no attribute
   and is untouched. A band with its own colours reads the two the owner
   picked (--band-<band>-bg and -text, written by band_variables).
   The text inside is set to follow the band, over the theme's own heading and
   paragraph colours, except in cards and buttons, which keep theirs. */
.agency-site [data-band="figures"][data-band-style="custom"] { background: var(--band-figures-bg); color: var(--band-figures-text); }
.agency-site [data-band="testimonial"][data-band-style="custom"] { background: var(--band-testimonial-bg); color: var(--band-testimonial-text); }
.agency-site [data-band="featured"][data-band-style="custom"] { background: var(--band-featured-bg); color: var(--band-featured-text); }
.agency-site [data-band="touch"][data-band-style="custom"] { background: var(--band-touch-bg); color: var(--band-touch-text); }
.agency-site [data-band="jobs"][data-band-style="custom"] { background: var(--band-jobs-bg); color: var(--band-jobs-text); }

.agency-site [data-band-style] :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, em, small, blockquote, figcaption, div):not(.job-card *, .sp-job-card, .sp-job-card *, .site-button, .btn, .contact-cta-button) {
    color: inherit;
}

/* An outlined button in a styled band (View all jobs) takes the band's text
   colour for its text and outline, so it stays visible on a dark, brand,
   accent or custom background. */
.agency-site [data-band-style] .site-button-secondary {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

/* A link that wraps a band's content (a featured job on the one-page designs)
   passes the band's text colour down. The theme's own link rule is long
   (it excludes the navigation, social and demo links one by one), so this one
   repeats its exclusions to be at least as specific, and comes after it. */
.agency-site [data-band-style] a:not(.site-button):not(.nav-link):not(.navbar-brand):not(.social-link-item):not(.btn):not(.contact-cta-button):not(.job-card) {
    color: inherit;
}

/* A one-page design's featured job is a card with a background of its own
   (Scout's is open, with no background), so its text keeps the colour it has
   on the page unless the card is open, where it follows the band. */
.agency-site [data-band-style] .sp-job-card,
.agency-site [data-band-style] .sp-job-card h3 {
    color: var(--brand-secondary);
}

.theme-scout.agency-site [data-band-style] .sp-job-card,
.theme-scout.agency-site [data-band-style] .sp-job-card * {
    color: inherit;
}

