/* =====================================================================
   Area landing page ("scoped home page") prototype styles
   Namespace: .ovl- (OVerlay Landing)

   Loaded ALONGSIDE page-prototype.css, never instead of it: this file
   deliberately owns no tokens, no hero and no breadcrumb. Those come from
   .ovp-page in page-prototype.css so a landing page and a normal content
   page share one banner treatment and one palette. Everything here is the
   stuff a landing page needs that an article page does not - bands, card
   grids, an accordion, a media wall.

   Why a separate namespace instead of extending .ovp-: .ovp- describes the
   inside of a single CMS article (one column, prose, a TOC rail). A landing
   page is a sequence of full-bleed bands. Mixing the two would mean every
   .ovp- rule needs a "but not on landing pages" escape hatch.
   ===================================================================== */

.ovp-page .ovl-landing { --ovl-gap: 24px; }

/* ---------- Shell ----------
   Two-layer horizontal alignment, matching .ovp-hero / .ovp-body / the
   breadcrumb band in page-prototype.css exactly: the OUTER element (.ovl-band)
   carries the screen margin (2.1vw) and the INNER one carries the centred cap
   (--ovp-shell-max, 1800px). Putting the vw padding inside a narrower cap is
   what made the content sit offset from the hero title above it.

   Long prose stays readable via ch caps on .ovl-head / .ovl-lead rather than by
   narrowing the shell, so the page still lines up with every other page. */
.ovp-page .ovl-landing .ovl-band-inner {
    max-width: var(--ovp-shell-max, 1800px);
    margin: 0 auto;
}

/* ---------- Admin bar: staff/admin only, between the hero and the content ----------
   Emitted by _LandingShell when CanEdit is set (public render only -- the builder canvas
   and the style guide leave it false). The whole row is admin chrome: actions and audit
   meta alike.

   Palette is the LEGACY admin purple from main.css, so this reads the same as the
   .admin-box on a /Page content page -- light lavender face with dark purple text, not
   the white-on-solid-purple of /Page2's in-article .ovp-admin-bar:
       .admin-box   bg #CBC3E3  text #433473  border #ada4c7  link #5032ab   (main.css:1106)
       .btn-admin   bg #a698d1  text #433473  hover bg #b195cf              (main.css:611)
   Those are hard-coded rather than referenced because main.css is bundled into
   site.min.css and exposes no custom properties for them.

   The lavender face is on the OUTER element so it bleeds the full width of the viewport
   and sits flush under the hero, with no gap for the hero colour to show through. The
   outer keeps 2.1vw of side padding and the inner is capped at --ovp-shell-max and
   centred -- the same band convention .ovl-band-inner and the breadcrumb band above use --
   which is what lines the row's CONTENT up with the hero title and the content below
   while the band itself still runs edge to edge. */
.ovp-page .ovl-admin-bar {
    background-color: #CBC3E3;
    border-bottom: 1px solid #ada4c7;
    padding: 0 2.1vw;
}
.ovp-page .ovl-admin-bar .ovl-admin-inner {
    max-width: var(--ovp-shell-max, 1800px);
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.88rem;
    line-height: 1.3;
}
/* The article's own `a`/`strong` colours do not reach here, but the hero band's do, so
   the text colour is set on the descendants too rather than left to inherit. */
.ovp-page .ovl-admin-bar .ovl-admin-inner,
.ovp-page .ovl-admin-bar .ovl-admin-inner * {
    color: #433473;
}
.ovp-page .ovl-admin-bar .ovl-admin-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background-color: #a698d1;
    border: 1px solid #ada4c7;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 120ms ease, border-color 120ms ease;
}
.ovp-page .ovl-admin-bar .ovl-admin-action:hover,
.ovp-page .ovl-admin-bar .ovl-admin-action:focus {
    background-color: #b195cf;
    border-color: #5032ab;
    text-decoration: none;
}
.ovp-page .ovl-admin-bar .ovl-admin-divider {
    width: 1px;
    height: 20px;
    background: #ada4c7;
}
.ovp-page .ovl-admin-bar .ovl-admin-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ovp-page .ovl-admin-bar .ovl-admin-meta i { opacity: 0.75; }
.ovp-page .ovl-admin-bar .ovl-admin-meta strong { font-weight: 700; }

/* Mirrors page-prototype.css's mobile treatment of the custom-page bar: tighter padding,
   smaller type, divider dropped once the row starts wrapping. */
@media (max-width: 767px) {
    .ovp-page .ovl-admin-bar { padding: 0 2.1vw; }
    .ovp-page .ovl-admin-bar .ovl-admin-inner {
        padding: 10px 0;
        gap: 10px 14px;
        font-size: 0.82rem;
    }
    .ovp-page .ovl-admin-bar .ovl-admin-divider { display: none; }
}

/* ---------- On-this-page rail ----------
   A solid white card so it stays legible wherever it happens to overlap - the
   blue --ink band and the orange accents included.

   Positioning: .ovl-body is the positioning context, .ovl-toc-track is a
   full-height absolute column inside it, and the rail is position:sticky within
   that track. Sticky is constrained by its containing block, which gives all
   three phases for free: static at the track's top, sticky through the scroll,
   then parked at the track's bottom instead of riding on into the footer. This
   is the same mechanism /Page2 gets from its grid column; an earlier attempt
   used position:fixed, which cannot do the first or third phase. */
.ovp-page .ovl-landing .ovl-toc {
    background: var(--ovp-card);
    border: 1px solid var(--ovp-rule);
    border-radius: 10px;
    box-shadow: var(--ovp-shadow);
    margin: 0 2.1vw 24px;
    /* It is an <aside>, and site.min.css gives every bare aside 50px top/bottom
       padding - which made the collapsed mobile box ~150px tall. The 1200px+ rail
       sets its own padding below. */
    padding: 0;
}
.ovp-page .ovl-landing .ovl-toc-head {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ovp-muted);
    margin-bottom: 10px;
}
.ovp-page .ovl-landing .ovl-toc-list { list-style: none; margin: 0; padding: 0; }
.ovp-page .ovl-landing .ovl-toc-list li { margin: 0; }
.ovp-page .ovl-landing .ovl-toc-link {
    display: block;
    padding: 7px 0 7px 12px;
    border-left: 2px solid var(--ovp-rule);
    font-size: .88rem;
    line-height: 1.35;
    color: var(--ovp-ink-soft);
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease;
}
.ovp-page .ovl-landing .ovl-toc-link:hover { color: var(--ovp-link); border-left-color: var(--ovp-link); }
.ovp-page .ovl-landing .ovl-toc-link.is-active {
    color: var(--ovp-link);
    border-left-color: var(--ovp-orange);
    font-weight: 700;
}

/* Small screens: collapsible box in normal flow, matching /Page2's mobile TOC. */
.ovp-page .ovl-landing .ovl-toc-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: 0;
    font-weight: 700;
    font-size: .92rem;
    color: var(--ovp-blue);
    cursor: pointer;
}
.ovp-page .ovl-landing .ovl-toc-chevron { margin-left: auto; transition: transform 200ms ease; }
.ovp-page .ovl-landing .ovl-toc.is-open .ovl-toc-chevron { transform: rotate(180deg); }
.ovp-page .ovl-landing .ovl-toc-sticky { display: none; padding: 0 14px 14px; }
.ovp-page .ovl-landing .ovl-toc.is-open .ovl-toc-sticky { display: block; }
.ovp-page .ovl-landing .ovl-toc-head { display: none; }

/* "This page | Related pages" tabs, only when the page has related pages. Styled as
   the rail's own uppercase head so a page with them looks like one without, plus an
   underline on the active tab. No sliding panes here: the inactive one is simply hidden. */
.ovp-page .ovl-landing .ovl-toc-tabs { display: flex; gap: 14px; margin-bottom: 10px; }
.ovp-page .ovl-landing .ovl-toc-tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0 0 4px;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ovp-muted);
    cursor: pointer;
}
.ovp-page .ovl-landing .ovl-toc-tab:hover { color: var(--ovp-ink); }
.ovp-page .ovl-landing .ovl-toc-tab.is-active { color: var(--ovp-blue); border-bottom-color: var(--ovp-orange); }
.ovp-page .ovl-landing .ovl-toc-pane:not(.is-active) { display: none; }
.ovp-page .ovl-landing .ovl-toc-related {
    display: block;
    padding: 7px 0 7px 12px;
    border-left: 2px solid var(--ovp-rule);
    font-size: .88rem;
    line-height: 1.35;
    color: var(--ovp-ink-soft);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.ovp-page .ovl-landing .ovl-toc-related:hover { color: var(--ovp-link); border-left-color: var(--ovp-link); }

/* ---------- Page tags row + tag swap ----------
   The tag row sits directly under the banner (or at the top of the content when
   there is no banner), outside the swap viewport so it stays put while a tag's page
   list slides in (page-tags.js, shared with the custom page). Under an inset photo
   card the row itself clears the card's overhang -- 48px desktop / 24px phones --
   and the body falls back to its ordinary padding (_LandingShell drops the body's
   136px clearance when this row exists). */
.ovp-page .ovl-landing .ovl-tagbar { padding: 24px 2.1vw 0; background: var(--ovp-card); }
.ovp-page .ovl-landing .ovl-tagbar--undercard { padding-top: 72px; }
.ovp-page .ovl-landing .ovl-tagbar .ovp-page-tags { margin: 0; }
@media (max-width: 767px) {
    .ovp-page .ovl-landing .ovl-tagbar { padding-left: 5vw; padding-right: 5vw; }
    .ovp-page .ovl-landing .ovl-tagbar--undercard { padding-top: 44px; }
}

/* .ovl-body is the default swap pane. The custom page's will-change on panes would
   make the whole body its own compositing layer for no gain (the slide sets its
   transitions inline), so it is dropped here. */
.ovp-page .ovl-landing .ovl-body.ovp-article-pane { will-change: auto; }

/* A tag's page list, laid out like a band so it lines up with the content. */
.ovp-page .ovl-landing .ovl-viewport > .ovp-tag-results { padding: 40px 2.1vw 56px; background: var(--ovp-card); }
.ovp-page .ovl-landing .ovl-viewport > .ovp-tag-results > * {
    max-width: var(--ovp-shell-max, 1800px);
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 767px) {
    .ovp-page .ovl-landing .ovl-viewport > .ovp-tag-results { padding: 32px 5vw 40px; }
}

/* Footer strip: the public "Last updated" date (a custom page shows it at the end of
   its article). Last band in .ovl-body, so it shares the bands' rail gutter. */
.ovp-page .ovl-landing .ovl-pagefoot .ovl-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    color: var(--ovp-muted);
    font-size: .9rem;
}
.ovp-page .ovl-landing .ovl-pagefoot .ovl-band-inner > * + * { margin-top: 0; }

@media (min-width: 1200px) {
    .ovp-page .ovl-landing .ovl-body { position: relative; }
    .ovp-page .ovl-landing .ovl-toc-track {
        position: absolute;
        /* Matches the first band's padding-top so the box's top edge lines up
           with the "Our services" kicker beside it. */
        top: 136px;
        bottom: 56px;
        left: max(2.1vw, calc((100% - var(--ovp-shell-max, 1800px)) / 2));
        width: 240px;
        pointer-events: none;
        /* .ovl-band is position:relative, and the track is an earlier sibling, so
           with auto z-index the bands' opaque backgrounds paint straight over the
           rail. Lift the track above them. */
        z-index: 5;
    }
    .ovp-page .ovl-landing .ovl-toc {
        position: sticky;
        top: 145px;
        width: 240px;
        max-height: calc(100vh - 175px);
        overflow-y: auto;
        margin: 0;
        padding: 16px 18px;
        pointer-events: auto;
    }
    .ovp-page .ovl-landing .ovl-toc-toggle { display: none; }
    .ovp-page .ovl-landing .ovl-toc-sticky { display: block; padding: 0; }
    .ovp-page .ovl-landing .ovl-toc-head { display: block; }
    /* Gutter for the rail: 240px column + 48px gap, matching /Page2's spacing.
       The photo band sits above the rail, so its card keeps the shell's edge. */
    .ovp-page .ovl-landing .ovl-body .ovl-band-inner { padding-left: 288px; }
    .ovp-page .ovl-landing.has-no-toc .ovl-body .ovl-band-inner { padding-left: 0; }
}

/* ---------- Bands ----------
   A band is one full-bleed horizontal stripe. Backgrounds alternate so the
   page reads as distinct sections rather than one long scroll. */
.ovp-page .ovl-landing .ovl-band { padding: 56px 2.1vw; position: relative; }
.ovp-page .ovl-landing .ovl-band--tight { padding: 36px 2.1vw; }
.ovp-page .ovl-landing .ovl-band--plain { background: var(--ovp-card); }
.ovp-page .ovl-landing .ovl-band--alt { background: var(--ovp-bg); }
.ovp-page .ovl-landing .ovl-band--ink {
    background: var(--ovp-blue);
    color: #fff;
}
.ovp-page .ovl-landing .ovl-band + .ovl-band { border-top: 1px solid var(--ovp-rule); }
.ovp-page .ovl-landing .ovl-band--ink + .ovl-band,
.ovp-page .ovl-landing .ovl-band + .ovl-band--ink { border-top: 0; }

/* ---------- Section headers ---------- */
/* Text runs the full content width everywhere on a landing page — no ch caps on
   headers, intros, leads, text, custom HTML or the FAQ list. */
.ovp-page .ovl-landing .ovl-head { margin-bottom: 28px; }
.ovp-page .ovl-landing .ovl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ovp-link);
    margin-bottom: 10px;
}
.ovp-page .ovl-landing .ovl-band--ink .ovl-eyebrow { color: var(--ovp-orange); }
.ovp-page .ovl-landing .ovl-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
    color: var(--ovp-blue);
}
.ovp-page .ovl-landing .ovl-band--ink .ovl-title { color: #fff; }
.ovp-page .ovl-landing .ovl-title::after {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    margin-top: 12px;
    background: var(--ovp-orange);
    border-radius: 2px;
}
.ovp-page .ovl-landing .ovl-intro {
    font-size: 1.02rem;
    color: var(--ovp-ink-soft);
    margin: 0;
}
.ovp-page .ovl-landing .ovl-band--ink .ovl-intro { color: rgba(255,255,255,.85); }

/* ---------- Hero pull quote ----------
   Opt-in via data-has-quote so the hero is otherwise byte-identical to every
   other prototype page: title left, quote right, wrapping below on narrow
   screens. Scoped to .ovp-page so it also applies to the hero, which sits
   outside .ovl-landing (exactly as it does on a real content page). */
.ovp-page .ovp-hero-inner[data-has-quote="true"] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 48px;
    flex-wrap: wrap;
}
.ovp-page .ovp-hero-quote {
    margin: 0 0 2px;
    max-width: 46ch;
    text-align: right;
    color: rgba(255, 255, 255, .9);
    font-size: 1.02rem;
    line-height: 1.45;
    font-style: italic;
}
.ovp-page .ovp-hero-quote cite {
    display: block;
    margin-top: 7px;
    font-style: normal;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ovp-orange);
}
/* Right-aligned text at phone width reads as a mistake. */
@media (max-width: 767px) {
    .ovp-page .ovp-hero-quote { text-align: left; max-width: none; }
}

/* Button row. Named generically because the hero no longer carries one - the
   training band does. */
.ovp-page .ovl-landing .ovl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

/* ---------- Photo band ----------
   A wide, short photo rectangle sitting directly under the blue hero, carrying
   the page's opening paragraph on an opaque white card in front of it.

   The photo is a BACKGROUND, not an <img>, and the band sets its own height:
   that is the whole point. The page this replaces dropped a 6789x4441 image in
   as content and let it render at native size, eating 57% of the page. Here the
   rectangle is fixed and the image crops to it at any viewport. */
.ovp-page .ovl-landing .ovl-photoband {
    position: relative;
    min-height: clamp(300px, 32vw, 440px);
    padding: 48px 2.1vw 0;
    display: flex;
    /* flex-end + zero bottom padding puts the card flush on the band's bottom
       edge, so its white face joins the white band below with no seam. */
    align-items: flex-end;
    background-image: var(--ovl-photo);
    background-size: cover;
    background-position: var(--ovl-photo-pos, center 15%);
    background-repeat: no-repeat;
}
/* The band is a flex container, so the inner shell would otherwise shrink to the
   card's width and get centred by its own `margin: 0 auto` - putting the card in
   the middle of the band instead of on the shell's left edge. */
.ovp-page .ovl-landing .ovl-photoband .ovl-band-inner { position: relative; width: 100%; }

.ovp-page .ovl-landing .ovl-photocard {
    background: var(--ovp-card);
    max-width: 720px;
    padding: 30px 34px;
    border-radius: 0;
    border-top: 4px solid var(--ovp-orange);
    /* The card hangs 48px past the bottom of the photo band so it straddles the
       seam and reads as belonging to both areas. It needs to paint above the
       band below, hence position/z-index. */
    position: relative;
    z-index: 1;
    margin-bottom: -48px;
    /* A full surrounding shadow: over the photo it is invisible, but on the
       overhang - white card on white content - it is the only thing drawing the
       card's edge, which is what sells the overlap. */
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .09);
}
.ovp-page .ovl-landing .ovl-photocard .ovl-lead { margin: 0; }

/* Clears the card's 48px overhang with a comfortable gap below it; also the
   figure .ovl-toc-track's top offset is matched to.

   :not(.has-no-photocard) because the statement card is optional on an assembled
   page — see the no-card block below. Written as an exclusion rather than as a
   later override so the no-card case simply falls back to the band's own padding
   and there is no second copy of 56px / 36px / 38px to keep in step with it. */
.ovp-page .ovl-landing:not(.has-no-photocard) .ovl-body > .ovl-band:first-of-type { padding-top: 136px; }

/* Phones: photo then card, stacked. The band drops its own background and
   draws the photo in ::before at 16:9 so the whole frame width is visible; the
   card overlaps the bottom 32px of the photo and hangs 24px into the next
   section (half the desktop overhang), so the first body band clears 24px +
   the 38px mobile band padding. The band-inner's side padding keeps the card
   inset from the photo's edges, so the overlap reads as a card on the image. */
@media (max-width: 767px) {
    .ovp-page .ovl-landing .ovl-photoband,
    .ovp-page .ovl-landing .ovl-photoband.ovl-photoband--nocard {
        display: block;
        min-height: 0;
        padding: 0;
        background-image: none;
    }
    /* [style] = a photo is set; an empty band (editor only) draws nothing. */
    .ovp-page .ovl-landing .ovl-photoband[style]::before {
        content: "";
        display: block;
        aspect-ratio: 16 / 9;
        background-image: var(--ovl-photo);
        background-size: cover;
        background-position: var(--ovl-photo-pos, center 15%);
        background-repeat: no-repeat;
    }
    .ovp-page .ovl-landing .ovl-photoband .ovl-band-inner { padding: 0 2.1vw; }
    .ovp-page .ovl-landing .ovl-photocard,
    .ovp-page .ovl-landing .ovl-photocard.ovl-photocard--right {
        max-width: none;
        /* Top edge rides 32px up into the photo; bottom hangs 24px into the next section. */
        margin: -32px 0 -24px;
        padding: 22px 24px;
    }
    /* Clearance goes on whatever comes FIRST under the card. On phones the "On this
       page" box sits above the first section (it is a side rail only at 1200px+), so
       :first-of-type alone would pad the section below it instead. */
    .ovp-page .ovl-landing:not(.has-no-photocard) .ovl-body > .ovl-band:first-of-type { padding-top: 38px; }
    .ovp-page .ovl-landing:not(.has-no-photocard) .ovl-body > .ovl-band:first-child { padding-top: 62px; }
    .ovp-page .ovl-landing:not(.has-no-photocard) .ovl-body > .ovl-toc-track:first-child { padding-top: 36px; }
}

/* ---------- Photo band: statement side, and the plain-banner case ----------
   The card sits on the left by default and can be moved to the right, to clear
   the subject of the photo. Right is margin-left:auto rather than a flex or
   text-align change so the card keeps its 720px cap instead of stretching to the
   full band.

   With no statement there is no card, so nothing overhangs the seam: the band
   closes normally, and _LandingShell puts .has-no-photocard on .ovl-landing so
   the first body band and the rail stop reserving room for an overhang that is
   not there. The flag also covers a page with no banner at all, which the
   hand-authored page could not have and an assembled one can.

   Both are scoped to .ovl-landing / .ovl-photoband generally rather than to
   --blocks: they are new states, not re-spacings of existing ones, so they
   cannot change how PrototypeLanding.cshtml renders — it has neither class. */
.ovp-page .ovl-landing .ovl-photocard--right { margin-left: auto; }
.ovp-page .ovl-landing .ovl-photoband--nocard { padding: 0 2.1vw; align-items: stretch; }

@media (min-width: 1200px) {
    /* 56px is .ovl-band's own padding, which is what the first band now falls back
       to. The track is only positioned at this breakpoint, so unlike the padding
       above there is no narrow-viewport value to track. */
    .ovp-page .ovl-landing.has-no-photocard .ovl-toc-track { top: 56px; }

    /* No banner (a content page): the rail is a direct child of .ovl-landing
       (_LandingShell, railAtTop), so it runs beside the tag row and the body
       together, like a custom page's sidebar beside its article. Its top lines up
       with the tag row (the bar's 24px padding), or with the first band's 56px
       when there are no tags; the tag row takes the same rail gutter as the bands. */
    .ovp-page .ovl-landing.has-rail-top { position: relative; }
    .ovp-page .ovl-landing.has-rail-top.has-tagbar > .ovl-toc-track { top: 24px; }
    .ovp-page .ovl-landing.has-rail-top:not(.has-no-toc) > .ovl-tagbar .ovl-band-inner { padding-left: 288px; }
    /* The rail stays while a tag's page list is shown, so the list keeps the gutter too. */
    .ovp-page .ovl-landing.has-rail-top:not(.has-no-toc) .ovl-viewport > .ovp-tag-results > * { padding-left: 288px; }
}

/* Below 1200px the rail is the collapsible "On this page" box in normal flow,
   above the tag row -- the same order as a custom page on a phone. */
@media (max-width: 1199px) {
    .ovp-page .ovl-landing.has-rail-top > .ovl-toc-track { padding-top: 24px; background: var(--ovp-card); }
}

/* ---------- Page lead ----------
   The opening paragraph, moved out of the banner into the body. Full width,
   like all landing-page text. */
.ovp-page .ovl-landing .ovl-lead {
    margin: 0 0 34px;
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--ovp-ink-soft);
}

/* ---------- Buttons ----------
   page-prototype.css scopes .ovp-btn under .ovp-article, which does not exist
   on this page, so landing pages carry their own button. Same shape, same
   tokens. Orange is a fill only - the label on it is near-black, because
   white on #FF5F05 is 3.05:1 and fails AA. */
.ovp-page .ovl-landing .ovl-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: .95rem;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 150ms ease;
}
.ovp-page .ovl-landing .ovl-btn--accent { background: var(--ovp-orange); color: #17191c; border-color: var(--ovp-orange); }
.ovp-page .ovl-landing .ovl-btn--accent:hover,
.ovp-page .ovl-landing .ovl-btn--accent:focus-visible { background: #ff7a2f; border-color: #ff7a2f; color: #17191c; transform: translateY(-2px); }
.ovp-page .ovl-landing .ovl-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.ovp-page .ovl-landing .ovl-btn--ghost:hover,
.ovp-page .ovl-landing .ovl-btn--ghost:focus-visible { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; transform: translateY(-2px); }
.ovp-page .ovl-landing .ovl-btn--solid { background: var(--ovp-blue); color: #fff; border-color: var(--ovp-blue); }
.ovp-page .ovl-landing .ovl-btn--solid:hover,
.ovp-page .ovl-landing .ovl-btn--solid:focus-visible { background: var(--il-industrial-darker-2, #1F3D7B); color: #fff; transform: translateY(-2px); }
.ovp-page .ovl-landing .ovl-btn--outline { background: #fff; color: var(--ovp-link); border-color: var(--ovp-link); }
.ovp-page .ovl-landing .ovl-btn--outline:hover,
.ovp-page .ovl-landing .ovl-btn--outline:focus-visible { background: var(--ovp-link); color: #fff; transform: translateY(-2px); }

/* ---------- Generic auto-fit card grid ---------- */
.ovp-page .ovl-landing .ovl-grid { display: grid; gap: var(--ovl-gap); }
.ovp-page .ovl-landing .ovl-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.ovp-page .ovl-landing .ovl-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.ovp-page .ovl-landing .ovl-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
/* Service cards sit on a wider track than topic cards so the nine of them land
   as a clean 3x3 at full width instead of 4 + 4 + one orphan on its own row. */
.ovp-page .ovl-landing .ovl-grid--svc { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }

/* ---------- Audience triage cards ---------- */
.ovp-page .ovl-landing .ovl-aud {
    display: flex;
    flex-direction: column;
    background: var(--ovp-card);
    border: 1px solid var(--ovp-rule);
    border-top: 4px solid var(--ovp-orange);
    border-radius: 10px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--ovp-shadow);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.ovp-page .ovl-landing .ovl-aud:hover,
.ovp-page .ovl-landing .ovl-aud:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(15,23,42,.08), 0 16px 36px rgba(15,23,42,.12);
}
.ovp-page .ovl-landing .ovl-aud-icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--ovp-orange-soft);
    color: var(--il-orange-40, #A72F10);
    font-size: 1.15rem;
    margin-bottom: 14px;
}
.ovp-page .ovl-landing .ovl-aud-title { font-size: 1.16rem; font-weight: 700; color: var(--ovp-blue); margin: 0 0 8px; }
.ovp-page .ovl-landing .ovl-aud-text { color: var(--ovp-ink-soft); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.ovp-page .ovl-landing .ovl-aud-cta { font-weight: 700; color: var(--ovp-link); font-size: .93rem; }
.ovp-page .ovl-landing .ovl-aud:hover .ovl-aud-cta { text-decoration: underline; }
.ovp-page .ovl-landing .ovl-aud-cta i, .ovl-aud-cta em { transition: transform 180ms ease; }
.ovp-page .ovl-landing .ovl-aud:hover .ovl-aud-cta i, .ovl-aud-cta em { transform: translateX(4px); }

/* ---------- Service cards ("what DRS provides") ---------- */
.ovp-page .ovl-landing .ovl-svc {
    display: flex;
    gap: 16px;
    background: var(--ovp-card);
    border: 1px solid var(--ovp-rule);
    border-radius: 10px;
    padding: 20px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.ovp-page .ovl-landing .ovl-svc:hover { transform: translateY(-3px); box-shadow: var(--ovp-shadow); }
.ovp-page .ovl-landing .ovl-svc-icon {
    flex: 0 0 42px;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: var(--ovp-orange-soft);
    /* --il-orange-40 rather than brand orange: #FF5F05 on a light fill is 3.05:1
       and fails AA, this passes. */
    color: var(--il-orange-40, #A72F10);
    font-size: 1.05rem;
}
.ovp-page .ovl-landing .ovl-svc-body { min-width: 0; }
.ovp-page .ovl-landing .ovl-svc-title { font-size: 1.03rem; font-weight: 700; color: var(--ovp-blue); margin: 0 0 5px; }
.ovp-page .ovl-landing .ovl-svc-text { font-size: .92rem; color: var(--ovp-ink-soft); margin: 0 0 10px; }
/* One link per line with a trailing arrow. The arrow is a ::after rather than
   markup so all eighteen anchors pick it up without editing each one. \f061 is
   Font Awesome 5 Free Solid's arrow-right, hence font-weight 900. */
.ovp-page .ovl-landing .ovl-svc-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.ovp-page .ovl-landing .ovl-svc-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .89rem;
    font-weight: 700;
    color: var(--ovp-link);
    text-decoration: none;
}
.ovp-page .ovl-landing .ovl-svc-links a::after {
    content: "\f061";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: .82em;
    transition: transform 180ms ease;
}
.ovp-page .ovl-landing .ovl-svc-links a:hover { color: var(--ovp-link-hover); }
.ovp-page .ovl-landing .ovl-svc-links a:hover::after { transform: translateX(4px); }

/* ---------- Split section head (text left, search right) ---------- */
.ovp-page .ovl-landing .ovl-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    flex-wrap: wrap;
    max-width: none;
}
.ovp-page .ovl-landing .ovl-head-text { flex: 1 1 auto; min-width: 0; }

.ovp-page .ovl-landing .ovl-topicsearch { flex: 0 1 320px; min-width: 240px; }
.ovp-page .ovl-landing .ovl-topicsearch-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ovp-muted);
    margin-bottom: 6px;
}
.ovp-page .ovl-landing .ovl-topicsearch-field { position: relative; display: flex; align-items: center; }
.ovp-page .ovl-landing .ovl-topicsearch-icon {
    position: absolute;
    left: 13px;
    color: var(--ovp-muted);
    font-size: .9rem;
    pointer-events: none;
}
.ovp-page .ovl-landing .ovl-topicsearch-input {
    width: 100%;
    padding: 10px 38px 10px 36px;
    border: 1px solid var(--ovp-rule);
    border-radius: 8px;
    background: var(--ovp-card);
    font-size: .94rem;
    color: var(--ovp-ink);
}
.ovp-page .ovl-landing .ovl-topicsearch-input:focus {
    outline: none;
    border-color: var(--ovp-link);
    box-shadow: 0 0 0 3px rgba(200, 65, 19, .15);
}
/* The type=search UA clear button would sit alongside our own. */
.ovp-page .ovl-landing .ovl-topicsearch-input::-webkit-search-decoration,
.ovp-page .ovl-landing .ovl-topicsearch-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ovp-page .ovl-landing .ovl-topicsearch-clear {
    position: absolute;
    right: 6px;
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ovp-muted);
    cursor: pointer;
}
.ovp-page .ovl-landing .ovl-topicsearch-clear:hover { background: var(--ovp-bg); color: var(--ovp-ink); }
.ovp-page .ovl-landing .ovl-topicsearch-status {
    margin: 7px 0 0;
    font-size: .82rem;
    color: var(--ovp-muted);
    min-height: 1.2em;
}

/* Hidden by filtering. A plain attribute so the JS never fights inline styles. */
.ovp-page .ovl-landing [data-filtered="out"] { display: none !important; }

/* Descriptions can arrive from the page index and vary a lot in length; the
   clamp keeps a row of cards from being dragged tall by one long entry. */
.ovp-page .ovl-landing .ovl-topic-desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .ovp-page .ovl-landing .ovl-topicsearch { flex: 1 1 100%; }
}

/* ---------- Topic groups ----------
   The long tail. Every item carries a one-line descriptor: that descriptor is
   the entire reason this section is not just a duplicate of the nav menu. */
.ovp-page .ovl-landing .ovl-topicgroup { margin-bottom: 34px; }
.ovp-page .ovl-landing .ovl-topicgroup:last-child { margin-bottom: 0; }
.ovp-page .ovl-landing .ovl-topicgroup-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ovp-rule);
}
.ovp-page .ovl-landing .ovl-topicgroup-title {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--ovp-blue);
    margin: 0;
    display: flex; align-items: center; gap: 9px;
}
.ovp-page .ovl-landing .ovl-topicgroup-title i, .ovl-topicgroup-title em { color: var(--il-orange-40, #A72F10); font-size: .95rem; }
.ovp-page .ovl-landing .ovl-topicgroup-count { font-size: .82rem; color: var(--ovp-muted); margin-left: auto; }

.ovp-page .ovl-landing .ovl-topic {
    display: block;
    padding: 13px 15px;
    border: 1px solid var(--ovp-rule);
    /* Always a 3px left rule, grey at rest, orange on hover. Keeping the width
       constant means the card never changes size or position on hover. */
    border-left: 3px solid var(--ovp-rule);
    border-radius: 8px;
    background: var(--ovp-card);
    text-decoration: none;
    color: inherit;
    transition: border-color 160ms ease, background 160ms ease;
}
.ovp-page .ovl-landing .ovl-topic:hover,
.ovp-page .ovl-landing .ovl-topic:focus-visible {
    border-left-color: var(--ovp-orange);
    background: #fff;
}
.ovp-page .ovl-landing .ovl-topic-name {
    display: block;
    font-weight: 700;
    font-size: .95rem;
    color: var(--ovp-link);
    margin-bottom: 3px;
}
.ovp-page .ovl-landing .ovl-topic-desc { display: block; font-size: .86rem; color: var(--ovp-muted); line-height: 1.45; }

/* Placeholder state - content that has no destination yet. Deliberately looks
   unfinished (dashed, muted, "link needed" chip) so an empty slot reads as a
   gap to fill rather than a link that silently does nothing. */
.ovp-page .ovl-landing .ovl-topic--todo,
.ovp-page .ovl-landing .ovl-media--todo {
    border-style: dashed;
    background: repeating-linear-gradient(45deg, #fbfbfc, #fbfbfc 9px, #f4f5f7 9px, #f4f5f7 18px);
    cursor: not-allowed;
}
.ovp-page .ovl-landing .ovl-topic--todo .ovl-topic-name { color: var(--ovp-muted); }
.ovp-page .ovl-landing .ovl-topic--todo:hover { border-left-color: var(--ovp-rule); }
.ovp-page .ovl-landing .ovl-todo-chip {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 20px;
    background: #e9eaee;
    color: #5b6470;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* ---------- FAQ ----------
   Native <details>/<summary>: no JS, keyboard and screen-reader behaviour for
   free, and it still works if a script on the page throws. */
/* Sized to its content: at least the original 900px (or the full width on a
   narrower screen), growing with longer questions/answers up to the full
   content width. */
.ovp-page .ovl-landing .ovl-faq {
    display: grid;
    gap: 12px;
    width: fit-content;
    min-width: min(900px, 100%);
    max-width: 100%;
}
.ovp-page .ovl-landing .ovl-faq-item {
    background: var(--ovp-card);
    border: 1px solid var(--ovp-rule);
    border-radius: 9px;
    overflow: hidden;
}
.ovp-page .ovl-landing .ovl-faq-item[open] { border-color: #c9ced8; box-shadow: var(--ovp-shadow); }
.ovp-page .ovl-landing .ovl-faq-q {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    font-weight: 700;
    font-size: .99rem;
    color: var(--ovp-blue);
    cursor: pointer;
    list-style: none;
}
.ovp-page .ovl-landing .ovl-faq-q::-webkit-details-marker { display: none; }
.ovp-page .ovl-landing .ovl-faq-q:hover { background: var(--ovp-bg); }
.ovp-page .ovl-landing .ovl-faq-q::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: auto;
    font-size: .8rem;
    color: var(--ovp-muted);
    transition: transform 200ms ease;
}
.ovp-page .ovl-landing .ovl-faq-item[open] .ovl-faq-q::after { transform: rotate(180deg); }
.ovp-page .ovl-landing .ovl-faq-q i, .ovl-faq-q em { color: var(--il-orange-40, #A72F10); }
.ovp-page .ovl-landing .ovl-faq-a {
    padding: 0 18px 17px 47px;
    font-size: .94rem;
    color: var(--ovp-ink-soft);
    line-height: 1.62;
}
.ovp-page .ovl-landing .ovl-faq-a p { margin: 0 0 9px; }
.ovp-page .ovl-landing .ovl-faq-a p:last-child { margin-bottom: 0; }
.ovp-page .ovl-landing .ovl-faq-a a { color: var(--ovp-link); font-weight: 600; }

/* ---------- Dark-band overrides ----------
   The media band runs on the blue --ink surface, where the defaults inherited
   from the light bands are unreadable: .ovl-topicgroup-title is --ovp-blue
   (navy on navy) and its icon is --il-orange-40, which is tuned for contrast
   against white, not against navy. The white media cards need no changes. */
.ovp-page .ovl-landing .ovl-band--ink .ovl-topicgroup-title { color: #fff; }
.ovp-page .ovl-landing .ovl-band--ink .ovl-topicgroup-title i,
.ovp-page .ovl-landing .ovl-band--ink .ovl-topicgroup-title em { color: var(--ovp-orange); }
.ovp-page .ovl-landing .ovl-band--ink .ovl-todo-chip {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

/* ---------- Media wall ---------- */
.ovp-page .ovl-landing .ovl-media {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ovp-rule);
    border-radius: 10px;
    background: var(--ovp-card);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.ovp-page .ovl-landing a.ovl-media:hover { transform: translateY(-4px); box-shadow: var(--ovp-shadow); }
.ovp-page .ovl-landing .ovl-media-thumb {
    height: 96px;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ovp-blue), var(--ovp-blue-soft));
}
.ovp-page .ovl-landing .ovl-media--video .ovl-media-thumb { background: linear-gradient(135deg, #7a2d0c, var(--il-altgeld, #C84113)); }
/* A card with a still (chosen thumbnail, or YouTube's own frame) swaps the 96px
   icon tile for a 16:9 picture. The play badge is visual only; the "(video)"
   text for screen readers lives in the title. */
.ovp-page .ovl-landing .ovl-media--still .ovl-media-thumb {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    background: #1d2433;
    overflow: hidden;
}
.ovp-page .ovl-landing .ovl-media--still .ovl-media-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ovp-page .ovl-landing .ovl-media-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(19, 41, 75, .82);
    color: #fff;
    font-size: 1.1rem;
    padding-left: 3px;
    transition: background 180ms ease, transform 180ms ease;
}
.ovp-page .ovl-landing a.ovl-media:hover .ovl-media-play,
.ovp-page .ovl-landing a.ovl-media:focus-visible .ovl-media-play { background: var(--ovp-orange); transform: scale(1.08); }
.ovp-page .ovl-landing .ovl-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* "Unfinished" has to beat "is a video": a placeholder must read the same way
   everywhere, so this is deliberately ordered after (and specific enough to
   win over) the type-colour rules above. */
.ovp-page .ovl-landing .ovl-media--todo .ovl-media-thumb,
.ovp-page .ovl-landing .ovl-media--todo.ovl-media--video .ovl-media-thumb { background: #dfe2e8; color: #9aa1ad; }
/* These three are <span>s, not divs, because a placeholder card is not a link
   and must not be an <a>. Blockify explicitly or the padding and margins below
   are silently dropped on an inline box. */
.ovp-page .ovl-landing .ovl-media-body { display: block; padding: 14px 15px; flex: 1; }
.ovp-page .ovl-landing .ovl-media-title { display: block; font-weight: 700; font-size: .93rem; color: var(--ovp-blue); margin: 0 0 5px; line-height: 1.35; }
.ovp-page .ovl-landing .ovl-media--todo .ovl-media-title { color: var(--ovp-muted); }
.ovp-page .ovl-landing .ovl-media-meta { display: block; font-size: .78rem; color: var(--ovp-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

/* ---------- Training table ---------- */
.ovp-page .ovl-landing .ovl-tablewrap { overflow-x: auto; border: 1px solid var(--ovp-rule); border-radius: 10px; background: var(--ovp-card); }
.ovp-page .ovl-landing .ovl-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ovp-page .ovl-landing .ovl-table th {
    text-align: left;
    padding: 13px 16px;
    background: var(--ovp-blue);
    color: #fff;
    font-size: .81rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.ovp-page .ovl-landing .ovl-table td { padding: 13px 16px; border-top: 1px solid var(--ovp-rule); font-size: .93rem; vertical-align: top; }
.ovp-page .ovl-landing .ovl-table tbody tr:hover { background: var(--ovp-bg); }
.ovp-page .ovl-landing .ovl-table a { color: var(--ovp-link); font-weight: 700; text-decoration: none; }
.ovp-page .ovl-landing .ovl-table a:hover { text-decoration: underline; }
.ovp-page .ovl-landing .ovl-who { font-size: .82rem; color: var(--ovp-muted); }

/* ---------- Contact / closing band ---------- */
.ovp-page .ovl-landing .ovl-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--ovl-gap); }
.ovp-page .ovl-landing .ovl-contact-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    padding: 20px;
}
.ovp-page .ovl-landing .ovl-contact-icon { font-size: 1.2rem; color: var(--ovp-orange); margin-bottom: 10px; }
.ovp-page .ovl-landing .ovl-contact-label { font-size: .77rem; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.62); font-weight: 700; margin-bottom: 5px; }
.ovp-page .ovl-landing .ovl-contact-value { font-size: 1.02rem; font-weight: 700; color: #fff; }
.ovp-page .ovl-landing .ovl-contact-value a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--ovp-orange); }
.ovp-page .ovl-landing .ovl-contact-value a:hover { color: var(--ovp-orange-soft); }
.ovp-page .ovl-landing .ovl-contact-note { font-size: .87rem; color: rgba(255,255,255,.72); margin-top: 6px; }

/* ---------- Stat strip ---------- */
.ovp-page .ovl-landing .ovl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--ovl-gap); }
.ovp-page .ovl-landing .ovl-stat { text-align: center; padding: 8px; }
.ovp-page .ovl-landing .ovl-stat-num { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--ovp-orange); line-height: 1; }
.ovp-page .ovl-landing .ovl-stat-label { font-size: .87rem; color: rgba(255,255,255,.8); margin-top: 7px; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    /* 5vw sides = page-prototype.css's mobile gutter (.ovp-body / hero / breadcrumb),
       so content lines up with the header above instead of touching the screen edge. */
    .ovp-page .ovl-landing .ovl-band { padding: 38px 5vw; }
    .ovp-page .ovl-landing .ovl-photoband .ovl-band-inner { padding: 0 5vw; }
    .ovp-page .ovl-landing .ovl-toc { margin-left: 5vw; margin-right: 5vw; }
    .ovp-page .ovl-admin-bar { padding: 0 5vw; }
    .ovp-page .ovl-landing .ovl-actions .ovl-btn { width: 100%; justify-content: center; }
    .ovp-page .ovl-landing .ovl-faq-a { padding-left: 18px; }
    .ovp-page .ovl-landing .ovl-topicgroup-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    .ovp-page .ovl-landing * { transition: none !important; }
}

@media print {
    .ovp-page .ovl-landing .ovl-faq-a { display: block !important; }
    .ovp-page .ovl-admin-bar { display: none; }
}

/* ===========================================================================
   BLOCK RENDERER ADDITIONS
   ---------------------------------------------------------------------------
   Everything below exists because these bands can now be assembled by an author
   through the page editor rather than hand-authored in a view.

   The hand-authored page pinned its vertical rhythm with inline style="" on five
   individual elements. Blocks are independent siblings inside .ovl-band-inner and
   an author can put them in any order, so the spacing has to be a rule about
   ADJACENCY instead of a property of one element. Flow runs on margin-top only:
   bottom margins on direct children are zeroed so two blocks can never stack
   their gaps and double up.

   Scoped to .ovl-landing--blocks on purpose. Applied to .ovl-landing generally it
   would also re-space Views/StyleGuide/PrototypeLanding.cshtml, whose inline
   margins would then win on some elements and lose on others — and that page is
   the baseline the block render is compared against, so it has to stay untouched.
   =========================================================================== */

.ovp-page .ovl-landing--blocks .ovl-band-inner > * { margin-bottom: 0; }
.ovp-page .ovl-landing--blocks .ovl-band-inner > * + * { margin-top: 28px; }

/* ...except the banner's statement card, which is ALSO a direct child of a
   band-inner (the photo band's). Its negative bottom margin IS the overhang into
   the first section; zeroed by the reset above it sat flush with the bottom of
   the photo on every block-built page. Restated with enough weight to win. */
.ovp-page .ovl-landing--blocks .ovl-photoband .ovl-band-inner > .ovl-photocard { margin-bottom: -48px; }
@media (max-width: 767px) {
    .ovp-page .ovl-landing--blocks .ovl-photoband .ovl-band-inner > .ovl-photocard { margin-bottom: -24px; }
}

/* Topic groups keep the larger rhythm they were authored with. */
.ovp-page .ovl-landing--blocks .ovl-band-inner > * + .ovl-topicgroup { margin-top: 34px; }

/* A sub-heading pulls away from what precedes it and hugs what it introduces. */
.ovp-page .ovl-landing--blocks .ovl-band-inner > * + .ovl-sub { margin-top: 34px; }
.ovp-page .ovl-landing--blocks .ovl-band-inner > .ovl-sub + * { margin-top: 14px; }

/* ...except straight after the section header, which already sets the distance
   between itself and whatever follows. Without this a sub-heading would sit 34px
   below the header where every other block sits 28px below it, which is exactly
   the gap the media band opens with. */
.ovp-page .ovl-landing--blocks .ovl-band-inner > .ovl-head + .ovl-sub { margin-top: 28px; }

/* A button row already declares its own 22px lead-in, and the generic rule above
   would silently stomp it. Where a component states its own spacing, that wins. */
.ovp-page .ovl-landing--blocks .ovl-band-inner > * + .ovl-actions { margin-top: 22px; }

/* ---------- Text block ----------
   A generic prose container. .ovl-lead and .ovl-intro both read as "body copy"
   but neither is portable: .ovl-intro belongs to a section header and .ovl-lead
   changes behaviour inside .ovl-photocard. This is the one that can go anywhere. */
.ovp-page .ovl-landing .ovl-text {
    color: var(--ovp-ink-soft);
    line-height: 1.65;
}
.ovp-page .ovl-landing .ovl-text p { margin: 0 0 1em; }
.ovp-page .ovl-landing .ovl-text p:last-child { margin-bottom: 0; }
.ovp-page .ovl-landing .ovl-band--ink .ovl-text { color: rgba(255,255,255,.85); }
.ovp-page .ovl-landing .ovl-band--ink .ovl-text a { color: var(--ovp-orange); }

/* ---------- Rich-text containers ----------
   .ovl-lead, .ovl-intro, .ovl-svc-text and .ovl-aud-text used to BE the paragraph.
   They are now divs holding one or more, because their fields are edited with the
   light rich-text editor (bold / italic / link) and an author who presses Enter
   should get a paragraph rather than a run-on line. Same spacing contract as
   .ovl-text above: 1em between, nothing trailing the last one. */
.ovp-page .ovl-landing .ovl-lead > p,
.ovp-page .ovl-landing .ovl-intro > p,
.ovp-page .ovl-landing .ovl-svc-text > p,
.ovp-page .ovl-landing .ovl-aud-text > p { margin: 0 0 1em; }

.ovp-page .ovl-landing .ovl-lead > p:last-child,
.ovp-page .ovl-landing .ovl-intro > p:last-child,
.ovp-page .ovl-landing .ovl-svc-text > p:last-child,
.ovp-page .ovl-landing .ovl-aud-text > p:last-child { margin-bottom: 0; }

/* An audience card is itself a link, so an anchor inside its description would be
   nested and unclickable — the editor can still produce one, and this at least
   keeps it from looking like a separate target. The topic descriptor is the same
   case. Links in the standalone prose blocks are left to the normal anchor rules. */
.ovp-page .ovl-landing .ovl-aud-text a,
.ovp-page .ovl-landing .ovl-topic-desc a { color: inherit; text-decoration: underline; }

/* ---------- Rich-text structure ----------
   Lists, the h4 subheading and images that the block editor's toolbar can now
   produce (PageBlockRichText.CleanBlock allows exactly these). Shared by every
   RichText slot; the Custom HTML block already gets them from .page-html. */
.ovp-page .ovl-landing .ovl-intro ul,
.ovp-page .ovl-landing .ovl-text ul,
.ovp-page .ovl-landing .ovl-lead ul,
.ovp-page .ovl-landing .ovl-faq-a ul,
.ovp-page .ovl-landing .ovl-svc-text ul,
.ovp-page .ovl-landing .ovl-aud-text ul,
.ovp-page .ovl-landing .ovl-intro ol,
.ovp-page .ovl-landing .ovl-text ol,
.ovp-page .ovl-landing .ovl-lead ol,
.ovp-page .ovl-landing .ovl-faq-a ol,
.ovp-page .ovl-landing .ovl-svc-text ol,
.ovp-page .ovl-landing .ovl-aud-text ol {
    margin: 0 0 1em;
    padding-left: 1.35em;
}
.ovp-page .ovl-landing .ovl-intro li,
.ovp-page .ovl-landing .ovl-text li,
.ovp-page .ovl-landing .ovl-lead li,
.ovp-page .ovl-landing .ovl-faq-a li,
.ovp-page .ovl-landing .ovl-svc-text li,
.ovp-page .ovl-landing .ovl-aud-text li { margin: 0 0 .35em; }
.ovp-page .ovl-landing .ovl-intro li::marker,
.ovp-page .ovl-landing .ovl-text li::marker,
.ovp-page .ovl-landing .ovl-lead li::marker,
.ovp-page .ovl-landing .ovl-faq-a li::marker,
.ovp-page .ovl-landing .ovl-svc-text li::marker,
.ovp-page .ovl-landing .ovl-aud-text li::marker { color: var(--ovp-orange); }
.ovp-page .ovl-landing .ovl-intro h4,
.ovp-page .ovl-landing .ovl-text h4,
.ovp-page .ovl-landing .ovl-lead h4,
.ovp-page .ovl-landing .ovl-faq-a h4,
.ovp-page .ovl-landing .ovl-svc-text h4,
.ovp-page .ovl-landing .ovl-aud-text h4 {
    margin: 1.1em 0 .4em;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ovp-blue);
}
.ovp-page .ovl-landing .ovl-intro h4:first-child,
.ovp-page .ovl-landing .ovl-text h4:first-child,
.ovp-page .ovl-landing .ovl-lead h4:first-child,
.ovp-page .ovl-landing .ovl-faq-a h4:first-child,
.ovp-page .ovl-landing .ovl-svc-text h4:first-child,
.ovp-page .ovl-landing .ovl-aud-text h4:first-child { margin-top: 0; }
.ovp-page .ovl-landing .ovl-intro img,
.ovp-page .ovl-landing .ovl-text img,
.ovp-page .ovl-landing .ovl-lead img,
.ovp-page .ovl-landing .ovl-faq-a img,
.ovp-page .ovl-landing .ovl-svc-text img,
.ovp-page .ovl-landing .ovl-aud-text img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: .6em 0 1em;
    border-radius: 6px;
}
.ovp-page .ovl-landing .ovl-intro :is(ul, ol):last-child,
.ovp-page .ovl-landing .ovl-text :is(ul, ol):last-child,
.ovp-page .ovl-landing .ovl-lead :is(ul, ol):last-child,
.ovp-page .ovl-landing .ovl-faq-a :is(ul, ol):last-child,
.ovp-page .ovl-landing .ovl-svc-text :is(ul, ol):last-child,
.ovp-page .ovl-landing .ovl-aud-text :is(ul, ol):last-child { margin-bottom: 0; }
.ovp-page .ovl-landing .ovl-band--ink .ovl-intro h4,
.ovp-page .ovl-landing .ovl-band--ink .ovl-text h4,
.ovp-page .ovl-landing .ovl-band--ink .ovl-lead h4 { color: #fff; }

/* ---------- Custom HTML block ----------
   The escape hatch. Inherits the authored-content treatment /Page2 gives .page-html,
   so a pasted table or list looks the same here as it does on a content page. */
.ovp-page .ovl-landing .ovl-band--ink .ovl-richhtml { color: rgba(255,255,255,.85); }
.ovp-page .ovl-landing .ovl-band--ink .ovl-richhtml a { color: var(--ovp-orange); }

/* ---------- Editor-only affordances ----------
   Never rendered on a live page: the dispatcher emits these solely in edit mode,
   so an author can see a block that exists in their outline but produces nothing. */
.ovp-page .ovl-landing .ovl-blockempty {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--ovp-rule);
    border-radius: 8px;
    color: var(--ovp-muted);
    font-size: .9rem;
    text-align: center;
}
.ovp-page .ovl-landing .ovl-blockempty--page { margin: 40px auto; max-width: 520px; }

.ovp-page .ovl-landing .ovl-blockmissing {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border: 1px dashed #b45309;
    border-left-width: 4px;
    border-radius: 8px;
    background: #fffbeb;
    color: #7c2d12;
    font-size: .88rem;
}
.ovp-page .ovl-landing .ovl-blockmissing i { color: #b45309; }

/* The topic filter as a standalone block (block-rendered pages only).
   In the hand-authored page it is the right-hand child of .ovl-head--split, where
   `flex: 0 1 320px` sizes it. On its own line those flex properties are inert and
   it would stretch the full band width, which reads as a page-wide search rather
   than a filter for the cards under it — so cap it here. Scoped to --blocks so the
   hand-authored PrototypeLanding split header is untouched. Vertical spacing comes
   from the existing `.ovl-band-inner > * + *` adjacency rule. */
.ovp-page .ovl-landing--blocks .ovl-band-inner > .ovl-topicsearch {
    flex: none;
    max-width: 420px;
}

/* ---------- Callout block ----------
   Same four styles and colours as the custom-page .ovp-callout (page-prototype.css),
   which is scoped to .ovp-article and so never reaches a landing page. The box keeps
   its own light face on every section surface, so its text colour is set here rather
   than inherited (a blue section would otherwise make it white-on-pale). */
.ovp-page .ovl-landing .ovl-callout {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid var(--ovp-rule);
    border-left-width: 4px;
    background: #fff;
    color: var(--ovp-ink);
    line-height: 1.55;
}
.ovp-page .ovl-landing .ovl-callout > i { font-size: 1.3rem; line-height: 1.5; margin-top: 1px; }
.ovp-page .ovl-landing .ovl-callout-body { min-width: 0; }
.ovp-page .ovl-landing .ovl-callout-title { font-weight: 700; margin-bottom: 2px; }
.ovp-page .ovl-landing .ovl-callout-body > p:last-child,
.ovp-page .ovl-landing .ovl-callout-body > ul:last-child,
.ovp-page .ovl-landing .ovl-callout-body > ol:last-child { margin-bottom: 0; }
.ovp-page .ovl-landing .ovl-callout a { color: var(--ovp-link); }
.ovp-page .ovl-landing .ovl-callout--info { border-left-color: #1D58A7; background: #eff5fc; }
.ovp-page .ovl-landing .ovl-callout--info > i { color: #1D58A7; }
.ovp-page .ovl-landing .ovl-callout--note { border-left-color: #2f8d6e; background: #eef7f3; }
.ovp-page .ovl-landing .ovl-callout--note > i { color: #2f8d6e; }
.ovp-page .ovl-landing .ovl-callout--warning { border-left-color: #c97a17; background: #fdf3e3; }
.ovp-page .ovl-landing .ovl-callout--warning > i { color: #c97a17; }
.ovp-page .ovl-landing .ovl-callout--danger { border-left-color: #b3261e; background: #fbeaea; }
.ovp-page .ovl-landing .ovl-callout--danger > i { color: #b3261e; }

/* ---------- Video block ----------
   A 16:9 player. Capped at 960px like the other media components (a full 1800px
   shell would make a single video taller than the screen); text stays full width. */
.ovp-page .ovl-landing .ovl-video { margin: 0; max-width: 960px; }
.ovp-page .ovl-landing .ovl-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--ovp-shadow);
}
.ovp-page .ovl-landing .ovl-video-frame iframe,
.ovp-page .ovl-landing .ovl-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.ovp-page .ovl-landing .ovl-video-caption { margin-top: 10px; font-size: .9rem; color: var(--ovp-muted); }
/* Tall (9:16) videos: phone-shot clips and Shorts, kept narrow so they don't fill the column. */
.ovp-page .ovl-landing .ovl-video--tall { max-width: 340px; }
.ovp-page .ovl-landing .ovl-video--tall .ovl-video-frame { aspect-ratio: 9 / 16; }
/* Video grid block: the tiles size to the grid track, not the single-video caps above. */
.ovp-page .ovl-landing .ovl-video-grid {
    display: grid;
    gap: var(--ovl-gap);
    grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
    align-items: start;
}
.ovp-page .ovl-landing .ovl-video-grid--tall { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.ovp-page .ovl-landing .ovl-video-grid .ovl-video { max-width: none; }
.ovp-page .ovl-landing .ovl-video-fallback { display: flex; align-items: center; gap: 8px; margin: 0; }
.ovp-page .ovl-landing .ovl-video-fallback a { color: var(--ovp-link); font-weight: 700; }
.ovp-page .ovl-landing .ovl-band--ink .ovl-video-caption { color: rgba(255,255,255,.75); }
.ovp-page .ovl-landing .ovl-band--ink .ovl-video-fallback a { color: var(--ovp-orange); }

/* ---------- Data table block ----------
   Bootstrap 3 does the styling (.table + the striped / bordered / hover / condensed
   modifiers and the active / success / info / warning / danger row colours the
   author picks). These rules only fit it into the landing shell: a sideways-scroll
   wrapper with no border of its own (Bordered decides that), no trailing margin, and
   a minimum cell width so a wide table scrolls on phones instead of crushing to one
   word per line. */
.ovp-page .ovl-landing .ovl-bstablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ovp-page .ovl-landing .ovl-bstable { margin-bottom: 0; background: var(--ovp-card); color: var(--ovp-ink); }
.ovp-page .ovl-landing .ovl-bstable th,
.ovp-page .ovl-landing .ovl-bstable td { min-width: 8em; }
.ovp-page .ovl-landing .ovl-bstable td > p,
.ovp-page .ovl-landing .ovl-bstable th > p { margin: 0; }
.ovp-page .ovl-landing .ovl-bstable td > p + p { margin-top: .5em; }
.ovp-page .ovl-landing .ovl-bstable td ul,
.ovp-page .ovl-landing .ovl-bstable td ol { margin: 0; padding-left: 1.2em; }
.ovp-page .ovl-landing .ovl-bstable caption {
    caption-side: top;
    text-align: left;
    padding: 0 0 10px;
    font-weight: 700;
    color: var(--ovp-ink);
}

/* ---------- Text + image block ----------
   The figure FLOATS so long text wraps under it, like a floated image on a custom
   page. flow-root contains the float, so the next block never rides up beside it.
   The body must NOT become a block formatting context of its own (no overflow /
   flow-root / flex on it), or the text would stop wrapping and sit in a column. */
.ovp-page .ovl-landing .ovl-textimage { display: flow-root; }
.ovp-page .ovl-landing .ovl-textimage-figure { margin: 0 0 16px; }
.ovp-page .ovl-landing .ovl-textimage-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.ovp-page .ovl-landing .ovl-textimage--w25 .ovl-textimage-figure { width: 25%; }
.ovp-page .ovl-landing .ovl-textimage--w50 .ovl-textimage-figure { width: 50%; }
.ovp-page .ovl-landing .ovl-textimage--w75 .ovl-textimage-figure { width: 75%; }
.ovp-page .ovl-landing .ovl-textimage--left .ovl-textimage-figure { float: left; margin-right: 28px; }
.ovp-page .ovl-landing .ovl-textimage--right .ovl-textimage-figure { float: right; margin-left: 28px; }
.ovp-page .ovl-landing .ovl-textimage-caption {
    margin-top: 8px;
    font-size: .85rem;
    line-height: 1.4;
    color: var(--ovp-muted);
}
.ovp-page .ovl-landing .ovl-band--ink .ovl-textimage-caption { color: rgba(255,255,255,.7); }

/* Phones: no float, image full width above the text, whatever width was chosen. */
@media (max-width: 767px) {
    .ovp-page .ovl-landing .ovl-textimage .ovl-textimage-figure {
        float: none;
        width: 100%;
        margin: 0 0 16px;
    }
}

/* ---------- Image block ----------
   No float (there is no text to wrap): the figure is a block at the chosen width,
   pushed left / centre / right with auto margins. */
.ovp-page .ovl-landing .ovl-image-figure { margin: 0; }
.ovp-page .ovl-landing .ovl-image-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.ovp-page .ovl-landing .ovl-image--w25 .ovl-image-figure { width: 25%; }
.ovp-page .ovl-landing .ovl-image--w50 .ovl-image-figure { width: 50%; }
.ovp-page .ovl-landing .ovl-image--w75 .ovl-image-figure { width: 75%; }
.ovp-page .ovl-landing .ovl-image--center .ovl-image-figure { margin-left: auto; margin-right: auto; }
.ovp-page .ovl-landing .ovl-image--right .ovl-image-figure { margin-left: auto; }
.ovp-page .ovl-landing .ovl-image-caption {
    margin-top: 8px;
    font-size: .85rem;
    line-height: 1.4;
    color: var(--ovp-muted);
}
.ovp-page .ovl-landing .ovl-band--ink .ovl-image-caption { color: rgba(255,255,255,.7); }

@media (max-width: 767px) {
    .ovp-page .ovl-landing .ovl-image .ovl-image-figure { width: 100%; margin: 0; }
}

/* ---------- List block ----------
   Deeper indent than a list typed into a text block, and markers drawn here rather
   than by the browser: a small orange dot for bulleted, a navy numbered disc for
   numbered. Items are RichText, so each arrives as <p>…</p> (possibly with its own
   sub-list), and the paragraph margin is zeroed so a one-liner sits like a plain item. */
.ovp-page .ovl-landing .ovl-list {
    list-style: none;
    margin: 0 0 4px;
    padding: 0 0 0 12px;
    counter-reset: ovl-list;
    color: var(--ovp-ink);
    line-height: 1.6;
}
.ovp-page .ovl-landing .ovl-list > li {
    position: relative;
    margin: 0 0 .6em;
    padding-left: 2em;
}
.ovp-page .ovl-landing .ovl-list > li:last-child { margin-bottom: 0; }
.ovp-page .ovl-landing .ovl-list--bulleted > li::before {
    content: "";
    position: absolute;
    left: .55em;
    top: .62em;
    width: .45em;
    height: .45em;
    border-radius: 50%;
    background: var(--ovp-orange);
}
.ovp-page .ovl-landing .ovl-list--numbered > li { counter-increment: ovl-list; }
.ovp-page .ovl-landing .ovl-list--numbered > li::before {
    content: counter(ovl-list);
    position: absolute;
    left: 0;
    top: .1em;
    width: 1.45em;
    height: 1.45em;
    border-radius: 50%;
    background: var(--ovp-blue);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.45em;
    text-align: center;
}
.ovp-page .ovl-landing .ovl-list > li > p { margin: 0; }
.ovp-page .ovl-landing .ovl-list > li > p + p { margin-top: .4em; }
.ovp-page .ovl-landing .ovl-list li ul,
.ovp-page .ovl-landing .ovl-list li ol { margin: .35em 0 0; padding-left: 1.3em; }
.ovp-page .ovl-landing .ovl-list li li { margin: 0 0 .25em; }
.ovp-page .ovl-landing .ovl-list li li::marker { color: var(--ovp-orange); }
.ovp-page .ovl-landing .ovl-list a { color: var(--ovp-link); }
.ovp-page .ovl-landing .ovl-band--ink .ovl-list { color: rgba(255,255,255,.88); }
.ovp-page .ovl-landing .ovl-band--ink .ovl-list--numbered > li::before { background: #fff; color: var(--ovp-blue); }
.ovp-page .ovl-landing .ovl-band--ink .ovl-list a { color: var(--ovp-orange); }

/* ---------- Definition list block ----------
   One ruled row per term: term left, definition right from 768px; stacked below. */
.ovp-page .ovl-landing .ovl-deflist {
    margin: 0;
    padding: 4px 22px;
    background: var(--ovp-card);
    border: 1px solid var(--ovp-rule);
    border-left: 3px solid var(--ovp-blue);
    border-radius: 0 8px 8px 0;
}
.ovp-page .ovl-landing .ovl-deflist-row {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 6px 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ovp-rule);
}
.ovp-page .ovl-landing .ovl-deflist-row:last-child { border-bottom: 0; }
.ovp-page .ovl-landing .ovl-deflist dt { font-weight: 700; color: var(--ovp-blue); line-height: 1.5; }
.ovp-page .ovl-landing .ovl-deflist dd { margin: 0; color: var(--ovp-ink-soft); line-height: 1.6; }
.ovp-page .ovl-landing .ovl-deflist dd > p { margin: 0 0 .5em; }
.ovp-page .ovl-landing .ovl-deflist dd > :last-child { margin-bottom: 0; }
.ovp-page .ovl-landing .ovl-deflist dd ul,
.ovp-page .ovl-landing .ovl-deflist dd ol { margin: 0 0 .5em; padding-left: 1.3em; }
.ovp-page .ovl-landing .ovl-deflist dd li::marker { color: var(--ovp-orange); }
.ovp-page .ovl-landing .ovl-deflist a { color: var(--ovp-link); }
@media (max-width: 767px) {
    .ovp-page .ovl-landing .ovl-deflist { padding: 2px 16px; }
    .ovp-page .ovl-landing .ovl-deflist-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
}
