/* ==========================================================================
   PRBASE - Main Consolidated Stylesheet
   ========================================================================== */

/* ==========================================================================
   Section 1: Core Theme, Typography & Layout
   
	--pri-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--pri-serif: Georgia, "Times New Roman", serif;
	--pri-mono: Consolas, Menlo, monospace;

   ========================================================================== */

:root {
    --pri-ink: #161616;
    --pri-paper: #ffffff;
    --pri-muted: #585858;
    --pri-faint: #a2a2a2;
    --pri-pure: #eaeaea;
    --pri-rule: #d9d9d9;
    --pri-accent: #FFA200;
    --pri-accent-dark: #FFA200;
    --pri-accent-hover: #FFA200;
    --pri-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
    /* ── Bootstrap token overrides ────────────────────────────────────────────
       Bootstrap ships its own --bs-* palette. Its .text-secondary / .text-muted /
       .text-dark helpers paint text with `!important` using these RGB triplets,
       so any site rule that sets `color` without `!important` silently loses and
       the text renders in Bootstrap's grey (which reads as washed-out / glowing
       against the white paper). Re-pointing the tokens here fixes every helper
       at once, instead of duplicating each utility with !important.
       ---------------------------------------------------------------------- 
    --bs-body-color: #161616;
    --bs-body-color-rgb: 22, 22, 22;
    --bs-emphasis-color: #000000;
    --bs-emphasis-color-rgb: 0, 0, 0;
    --bs-heading-color: #161616;
    --bs-secondary-color: #585858;
    --bs-secondary-rgb: 88, 88, 88;
    --bs-tertiary-color: #a2a2a2;
    --bs-dark-rgb: 22, 22, 22;
    --bs-body-bg: #ffffff;
    --bs-body-font-family: var(--pri-sans);
    --bs-link-color: #2798df;
    --bs-link-hover-color: #163e79;
*/

/* Belt-and-braces: pin the text helpers that Bootstrap declares with !important.
   Same specificity, but declared later, so these win over the CDN stylesheet. */
.text-body,
.text-dark,
.text-black {
    color: var(--pri-ink) !important;
}
.text-secondary,
.text-muted {
    color: var(--pri-muted) !important;
}
.text-secondary-emphasis {
    color: var(--pri-ink) !important;
}

body {
    color: var(--pri-ink);
    background-color: var(--pri-paper);
    font-family: var(--pri-sans);
    font-optical-sizing: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}
html {
    overflow-x: hidden;
}
main { flex: 1 0 auto; }

/* ---- Type system ---- */
h1, h2, h3, .pri-display {
    font-family: var(--pri-sans);
    letter-spacing: -0.015em;
    font-weight: 700;
}
.pri-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pri-ink);
}
.pri-meta {
    font-size: 0.75rem;
    color: var(--pri-muted);
}
.pri-meta a { color: inherit; text-decoration: none; }
.pri-meta a:hover { color: var(--pri-accent); }
.pri-header .nav-item .pri-sep { padding: 0 0.5rem; }
@media (max-width: 991.98px) {
    .pri-header .nav-item .pri-sep { display: none !important; }
}
.pri-cat {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pri-accent);
    text-decoration: none;
}
.pri-cat.pri-cat--sub { color: var(--pri-muted); }
/* Content-type label in the dateline reads in body ink, not the accent. */
.pri-cat.pri-cat--ink { color: var(--pri-ink); }

/* ---- Brand ---- */
.pri-brand {
    font-family: var(--pri-sans);
    font-weight: 400;
    font-size: 1.55rem;
    color: var(--pri-ink);
    text-decoration: none;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap !important;
}
.pri-brand:hover { color: var(--pri-ink); }
.pri-brand em { font-style: normal; color: var(--pri-accent); }

/* Logo scales down on small screens so the header never crowds the search
   button and hamburger. Uses clamp() so it shrinks smoothly rather than
   stepping at a single breakpoint. */
.pri-brand-logo {
    height: 59px;
    max-height: 59px;
    width: auto;
}
@media (max-width: 991.98px) {
    .pri-brand-logo {
        height: clamp(34px, 8vw, 48px);
        max-height: clamp(34px, 8vw, 48px);
    }
}
@media (max-width: 575.98px) {
    .pri-brand-logo {
        height: 34px;
        max-height: 34px;
    }
}

.pri-tagline { display: none; }
.pri-nav-side {
    width: 44px;
    flex-shrink: 0;
}
@media (max-width: 991.98px) {
    .pri-brand { font-size: clamp(1.08rem, 4.6vw, 1.35rem) !important; }
}
@media (min-width: 992px) {
    .pri-nav-side { min-width: 200px; width: auto; }
}

/* ---- Hairline structure ---- */
.pri-pure-top { border-top: 1px solid var(--pri-pure); }
.pri-rule-top { border-top: 1px solid var(--pri-rule); }
.pri-rule-bottom { border-bottom: 1px solid var(--pri-rule); }

/* ---- Buttons ---- */
.pri-btn {
    display: inline-block;
    padding: 0.375rem 1rem;
    border: 1px solid var(--pri-ink);
    border-radius: 2px;
    background: transparent;
    color: var(--pri-ink);
    font-family: var(--pri-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}
.pri-btn:hover { background: var(--pri-accent); border-color: var(--pri-accent); color: #fff; }

.pri-btn--solid,
.pri-btn--accent {
    background-color: var(--pri-accent) !important;
    border-color: var(--pri-accent) !important;
    color: #ffffff !important;
}
.pri-btn--solid:hover,
.pri-btn--accent:hover {
    background-color: var(--pri-accent-hover) !important;
    border-color: var(--pri-accent-hover) !important;
    color: #ffffff !important;
}
.pri-btn--secondary { background: #686868; border-color: #686868; color: #fff; }
.pri-btn--secondary:hover { background: #505050; border-color: #505050; color: #fff; }

.btn-primary {
    background-color: var(--pri-accent) !important;
    border-color: var(--pri-accent) !important;
    color: #ffffff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--pri-accent-hover) !important;
    border-color: var(--pri-accent-hover) !important;
    color: #ffffff !important;
}
.pri-btn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--pri-accent);
    outline-offset: 2px;
}

/* ---- Header ---- */
/* Two surfaces live inside the header:
     1. .pri-top-bar  — brand green #00673E. Every label, link and Font Awesome
        glyph on it must be white; nothing dark is allowed there.
     2. .pri-cat-bar  — the light #f6f6f6 category strip under the logo. Its
        text stays near-black, with green reserved for the hover state.
   Keeping those two palettes separate is the whole point of this block. */
.pri-header {
    background-color: #ffffff;
    color: var(--pri-ink) !important;
    border-bottom: 1px solid var(--pri-rule);
    overflow: visible !important;
}
.pri-header.pri-header--hidden {
    transform: translateY(-100%) !important;
}
.pri-top-bar {
    position: relative;
    z-index: 1050;
    background: #00673E;
}

/* The bar was pinned to 88px to fit the 59px logo. Once the logo shrinks on
   small screens that height becomes dead space, so the bar follows it down. */
.pri-top-bar__inner {
    min-height: 88px;
}
@media (max-width: 991.98px) {
    .pri-top-bar__inner { min-height: 68px; }
}
@media (max-width: 575.98px) {
    .pri-top-bar__inner { min-height: 56px; }
}

/* Compact header (interior pages, i.e. $compact_header is set).
   The homepage keeps the full-height bar; every other page halves it and
   swaps to the shorter wordmark so content starts higher up the fold. */
.pri-header:not(.pri-header--home) .pri-top-bar__inner {
    min-height: 44px;
}
@media (max-width: 991.98px) {
    .pri-header:not(.pri-header--home) .pri-top-bar__inner { min-height: 34px; }
}
@media (max-width: 575.98px) {
    .pri-header:not(.pri-header--home) .pri-top-bar__inner { min-height: 28px; }
}

/* The compact wordmark is roughly half the height of the full logo. */
.pri-header:not(.pri-header--home) .pri-brand-logo {
    height: 30px;
    max-height: 30px;
}
@media (max-width: 991.98px) {
    .pri-header:not(.pri-header--home) .pri-brand-logo {
        height: clamp(18px, 4vw, 24px);
        max-height: clamp(18px, 4vw, 24px);
    }
}
@media (max-width: 575.98px) {
    .pri-header:not(.pri-header--home) .pri-brand-logo {
        height: 18px;
        max-height: 18px;
    }
}
.pri-header .pri-brand,
.pri-header .pri-brand em {
    color: #ffffff !important;
}
.pri-header .nav-link {
    font-size: var(--pri-fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff !important;
    padding: 0.4rem 0.8rem;
}
/* Logged-in header links injected by site.js (Submit Release / My Account).
   Stated explicitly so they don't inherit an unthemed colour. */
.pri-header .pri-header-link {
    color: #ffffff !important;
}
.pri-header .pri-header-link:hover {
    color: rgba(255, 255, 255, 0.78) !important;
}
.pri-header .nav-link:hover { color: rgba(255, 255, 255, 0.78) !important; }
.pri-header .pri-sep { color: rgba(255, 255, 255, 0.45) !important; }
.pri-header-quicklink {
    padding: 0.2rem 0;
    color: rgba(255, 255, 255, 0.88) !important;
    border-bottom: 2px solid transparent;
}
.pri-header-quicklink:hover {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
}

/* Icon buttons (search trigger, hamburger) inside the dark green header. */
.pri-header .btn-link,
.pri-header .btn-link i {
    color: #ffffff !important;
}
.pri-header .btn-link:hover,
.pri-header .btn-link:hover i {
    color: rgba(255, 255, 255, 0.78) !important;
}
/* Header top bar text/icon sweep. The bar carries the #00673E surface, so every
   direct descendant text node, anchor and Font Awesome glyph must be white —
   including the JS-injected auth links that never declare a colour of their own. */
.pri-top-bar,
.pri-top-bar a:not(.pri-btn),
.pri-top-bar button,
.pri-top-bar span,
.pri-top-bar i,
.pri-top-bar .fa-solid,
.pri-top-bar .fa-regular,
.pri-top-bar .fa-brands {
    color: #ffffff !important;
}
.pri-footer .pri-sep { padding: 0 0.5rem; }

/* ---- Fullscreen / Topbar Search Overlay Layer ---- */
.pri-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 24, 38, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}
.pri-search-overlay__box {
    width: 100%;
    max-width: 720px;
    padding: 0 1rem;
    position: relative;
}
.pri-search-overlay .input-group {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}
.pri-search-overlay .form-control {
    border: none !important;
    border-radius: 4px 0 0 4px !important;
    font-size: 1.05rem !important;
    padding: 0.9rem 1.25rem !important;
    box-shadow: none !important;
}
.pri-search-overlay .btn-dark {
    border-radius: 0 4px 4px 0 !important;
    background-color: var(--pri-ink) !important;
    border: none !important;
}
.pri-search-overlay__close {
    position: absolute;
    top: -42px;
    right: 1rem;
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1;
    background: transparent;
    border: none;
    cursor: pointer;
}
.pri-search-overlay__close:hover {
    color: var(--pri-accent);
}
.pri-search-overlay .pri-search-suggest {
    top: calc(100% + 4px);
    border-radius: 4px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
/* ---- Category sub-menu bar (White Background Nav) ---- */
.pri-cat-bar {
    position: relative;
    z-index: 1030;
    overflow: visible !important;
    background-color: #f6f6f6 !important;
}
.pri-cat-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 6px;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
}
.pri-cat-dropdown { position: relative; }
/* Nav bar text is black on the light strip; the brand green only appears as
   the hover affordance so the bar never reads as a second accent surface. */
.pri-cat-link {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: var(--pri-ink) !important;
    padding: 0.35rem 0.65rem !important;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 2px;
}
.pri-cat-link:hover,
.pri-cat-dropdown:hover > .pri-cat-link,
.pri-cat-dropdown.is-open > .pri-cat-link {
    color: #00673E !important;
    background-color: rgba(0, 103, 62, 0.08);
}
.pri-cat-link i,
#moreCategoriesBtn i { color: #8c98a4 !important; }
.pri-cat-link:hover i,
.pri-cat-dropdown:hover > .pri-cat-link i,
#moreCategoriesBtn:hover i { color: #00673E !important; }
#moreCategoriesBtn { color: var(--pri-ink) !important; font-weight: 600; }
#moreCategoriesBtn:hover { color: #00673E !important; }

/* ---- Nav Dropdown Popups ---- */
.pri-cat-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff !important;
    border: 1px solid var(--pri-rule) !important;
    border-radius: 2px;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18) !important;
    z-index: 1080;
    padding: 0.85rem;
    min-width: 260px;
    color: var(--pri-ink) !important;
}
.pri-cat-submenu .pri-eyebrow {
    color: var(--pri-ink) !important;
    border-bottom: 1px solid #e9ecef !important;
    font-weight: 700;
}
.pri-cat-submenu a,
.pri-cat-submenu .dropdown-item {
    color: var(--pri-ink) !important;
    font-weight: 600;
    font-size: 0.8125rem;
}
.pri-cat-submenu a:hover,
.pri-cat-submenu .dropdown-item:hover,
.pri-cat-submenu .dropdown-item:focus {
    color: #00673E !important;
    background-color: rgba(0, 103, 62, 0.08) !important;
}
.pri-cat-submenu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.pri-cat-dropdown:hover > .pri-cat-submenu,
.pri-cat-dropdown:focus-within > .pri-cat-submenu,
.pri-cat-dropdown.is-open > .pri-cat-submenu {
    display: block !important;
}
.drawer-rotate { transform: rotate(180deg); }

/* More Categories Wide Panel */
#moreCategoriesPanel {
    background-color: #ffffff !important;
    color: var(--pri-ink) !important;
    border-bottom: 1px solid var(--pri-rule) !important;
}
#moreCategoriesPanel a {
    color: var(--pri-ink) !important;
    font-weight: 500;
}
#moreCategoriesPanel a:hover {
    color: #00673E !important;
    text-decoration: underline;
}
#moreCategoriesPanel .fw-bold a { font-weight: 700; }

/* Header User/Newsroom Dropdown Menus */
.pri-header .dropdown-menu {
    background-color: #ffffff !important;
    color: var(--pri-ink) !important;
    border: 1px solid var(--pri-rule) !important;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18) !important;
    z-index: 1060 !important;
}
.pri-header .dropdown-menu a.dropdown-item {
    color: var(--pri-ink) !important;
    font-weight: 500;
}
.pri-header .dropdown-menu a.dropdown-item:hover,
.pri-header .dropdown-menu a.dropdown-item:focus {
    color: #00673E !important;
    background-color: rgba(0, 103, 62, 0.08) !important;
}
.pri-header .dropdown-menu .dropdown-header,
.pri-header .dropdown-menu .fw-bold,
.pri-header .dropdown-menu i {
    color: var(--pri-ink) !important;
}
/* The user menu is a white panel that overlays the dark-green .pri-top-bar, so the
   broad `.pri-top-bar a:not(.pri-btn)` white sweep would erase the @username link
   against that white surface. Pin it to the muted ink the other themes use. */
.pri-header .dropdown-menu .header-1,
.pri-header .dropdown-menu .header-1 a {
    color: var(--pri-muted) !important;
}
.pri-header .dropdown-menu .header-1 a:hover {
    color: #00673E !important;
}

.pri-drawer {
    width: 320px !important;
    max-width: 85vw !important;
    background-color: var(--pri-paper);
    z-index: 1060;
}
.pri-drawer .list-group-item {
    background-color: transparent;
    color: var(--pri-ink);
    font-size: 0.875rem;
}
.pri-drawer .list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: #00673E;
}
/* Drawer quick-link glyphs carry the brand green instead of Bootstrap blue,
   so the mobile panel reads as the same family as the #00673E top bar. */
.pri-drawer .pri-drawer-ico { color: #00673E; }
.pri-drawer a.bg-light:hover .pri-drawer-ico { color: #00673E; }
/* Drawer auth CTA wears the brand green, not the amber page accent. */
.pri-drawer .pri-btn--accent,
.pri-drawer .pri-btn--solid {
    background-color: #00673E !important;
    border-color: #00673E !important;
    color: #ffffff !important;
}
.pri-drawer .pri-btn--accent:hover,
.pri-drawer .pri-btn--solid:hover {
    background-color: #00532f !important;
    border-color: #00532f !important;
    color: #ffffff !important;
}

/* Trending companies strip */
#trendingPrevBtn:hover,
#trendingNextBtn:hover { color: var(--pri-accent) !important; }
.pri-company-chip:hover span { color: var(--pri-accent) !important; }
.pri-company-chip:hover .object-fit-contain {
    transform: scale(1.04);
}

/* ---- PR Listing Item ---- */
.pri-pr-item {
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.pri-pr-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0.25rem;
}
.pri-tags-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}
.pri-tag-marker {
    flex-shrink: 0;
    fill: var(--pri-ink);
}
.pri-tag-link {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pri-ink);
    text-decoration: none;
}
.pri-tag-link:hover { color: var(--pri-accent); }
.pri-tag-link--accent { color: var(--pri-accent) !important; }
.pri-pr-title {
    font-size: 1.1rem;
    line-height: 1.28;
    margin: 0 0 0.5rem 0;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.pri-pr-title a {
    color: var(--pri-ink);
    text-decoration: none;
}
.pri-pr-title a:hover { color: var(--pri-accent); }
.pri-post-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--pri-muted);
}
.pri-post-info__author-start {
    color: #888;
    font-style: italic;
}
.pri-post-info__author-link {
    color: var(--pri-ink);
    text-decoration: none;
    font-weight: 600;
}
.pri-post-info__author-link:hover { color: var(--pri-accent); }
.pri-post-info__date { color: var(--pri-muted); }

/* Newspaper vertical divider columns */
.pri-col-border {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.pri-col-border:first-child { padding-left: 0; }
.pri-col-border:last-child { border-right: none; padding-right: 0; }
@media (max-width: 991.98px) {
    .pri-col-border {
        border-right: none;
        border-bottom: 1px solid var(--pri-rule);
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .pri-col-border:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* ---- Hero (home) ---- */
.pri-hero { padding: 3rem 0; }
.pri-hero h1 {
    font-size: clamp(2rem, 1.2rem + 3.2vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 0.75rem;
}
.pri-hero p { color: var(--pri-muted); font-size: 1.0625rem; max-width: 38em; }

/* Value points under the hero headline — one item per line at every width. */
.pri-hero-list {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-width: 46rem;
}
.pri-hero-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: var(--pri-fs-base);
    line-height: 1.55;
    color: var(--pri-muted);
}
.pri-hero-list li i {
    flex-shrink: 0;
    margin-top: 0.3em;
    font-size: var(--pri-fs-xs);
    color: var(--pri-accent);
}
.pri-search { max-width: 640px; }
.pri-search .form-control {
    border: 1px solid var(--pri-ink);
    border-radius: 2px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    box-shadow: none;
}
.pri-search .form-control:focus {
    border-color: var(--pri-accent);
    box-shadow: 0 0 0 3px rgba(36, 86, 198, 0.12);
}
.pri-search .btn { border-radius: 2px; }
.pri-bg-vr { background: var(--pri-paper); }

/* Live Auto-Suggest Popup for Homepage Search */
.pri-search-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--pri-rule);
    border-radius: 4px;
    z-index: 1070;
    max-height: 480px;
    overflow-y: auto;
    text-align: left;
}
.pri-search-suggest__group-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pri-muted);
    padding: 0.5rem 0.85rem 0.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #f1f3f5;
}
.pri-search-suggest__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
    color: var(--pri-ink);
    border-bottom: 1px solid #f8f9fa;
}
.pri-search-suggest__item:hover,
.pri-search-suggest__item:focus,
.pri-search-suggest__item.is-selected {
    background-color: rgba(36, 89, 169, 0.06);
    color: var(--pri-accent);
}
.pri-search-suggest__footer {
    padding: 0.6rem 0.85rem;
    background: #fdfdfd;
    border-top: 1px solid var(--pri-rule);
    text-align: center;
    font-size: 0.8125rem;
}
.pri-search-suggest__footer a {
    color: var(--pri-accent);
    font-weight: 600;
    text-decoration: none;
}
.pri-search-suggest__footer a:hover {
    text-decoration: underline;
}

/* ---- Article body ---- */
.article-content p {
    line-height: 1.8;
    font-size: 1.0625rem;
    margin-bottom: 1.375rem;
    color: #2A2D34;
}
.article-content p:first-of-type { font-size: 1.1875rem; line-height: 1.65; color: var(--pri-ink); }

/* ---- Link hierarchy ---- */
a.pri-link-nav {
    color: var(--pri-accent);
    text-decoration: none;
    font-weight: 500;
}
a.pri-link-nav:hover { text-decoration: underline; }

a.pri-link-external {
    font-family: var(--pri-sans);
    font-size: 0.75rem;
    color: var(--pri-muted);
    text-decoration: none;
    padding-bottom: 1px;
    word-break: break-all;
}
a.pri-link-external::after {
    content: '\00a0↗';
    font-style: normal;
    font-size: 0.65rem;
    color: var(--pri-faint);
}
a.pri-link-external:hover { color: var(--pri-accent); border-color: var(--pri-accent); }

a.pri-link-cta {
    color: var(--pri-ink);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    border-bottom: 1px solid var(--pri-ink);
    padding-bottom: 1px;
}
a.pri-link-cta:hover { color: var(--pri-accent); border-color: var(--pri-accent); }

/* ---- Tag pills ---- */
.pri-tag {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--pri-muted);
    text-decoration: none;
    border: 1px solid var(--pri-rule);
    padding: 0.2em 0.6em;
    border-radius: 2px;
    line-height: 1.6;
    white-space: nowrap;
}
.pri-tag:hover { color: var(--pri-accent); border-color: var(--pri-accent); }

/* ---- Homepage Hot Topics Cloud (Border-free Pills) ---- */
.pri-topic-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
}
.pri-topic-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--pri-muted);
    background-color: #f1f3f5;
    border: none !important;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}
.pri-topic-badge:hover {
    color: var(--pri-accent) !important;
    background-color: rgba(36, 89, 169, 0.12) !important;
}

/* ---- Verified badge ---- */
.pri-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    margin-left: 0.5rem;
    padding: 0.15em 0.55em;
    border: 1px solid var(--pri-accent);
    border-radius: 999px;
    background: rgba(36, 89, 169, 0.08);
    color: var(--pri-accent);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
}
.pri-verified-badge i { font-size: 0.85em; }

/* ---- Pagination ---- */
.pri-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    color: var(--pri-muted);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 2px;
}
.pri-page-btn:hover { color: var(--pri-ink); border-color: var(--pri-rule); }
.pri-page-btn--active { color: var(--pri-ink); border-color: var(--pri-ink); font-weight: 600; }
.pri-page-btn--active:hover { color: var(--pri-ink); border-color: var(--pri-ink); }
.pri-page-btn--gap { cursor: default; color: var(--pri-faint); }

/* ---- Footer ---- */
.pri-footer { background: var(--pri-paper); }
.pri-footer h6 {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--pri-faint);
}
.pri-footer a { color: var(--pri-muted); text-decoration: none; font-size: 0.8125rem; }
.pri-footer a:hover { color: var(--pri-accent); }

/* ==========================================================================
   Section 2: Press Release Detail Page
   ========================================================================== */

.pri-inline-share a,
.pri-inline-share button {
    color: var(--pri-muted);
    text-decoration: none;
    padding: 4px 6px;
    line-height: 1;
    font-size: 0.95rem;
}
.pri-inline-share a:hover,
.pri-inline-share button:hover { color: var(--pri-accent) !important; }

/* Wrapped Lead Image inside article body */
.pri-lead-figure {
    position: relative;
    border-radius: 3px;
    margin: 0.25rem 0 1rem 0;
    width: 100%;
    clear: both;
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .pri-lead-figure {
        float: right;
        width: 45%;
        margin: 0.25rem 0 1rem 1.5rem;
        clear: right;
    }
}
@media (min-width: 992px) {
    .pri-lead-figure {
        float: right;
        width: 38%;
        max-width: 340px;
        margin: 0.25rem 0 1.25rem 1.75rem;
        clear: right;
    }
}
.pri-lead-img-wrapper {
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 3px;
    display: block;
}
.pri-lead-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}
.pri-lead-img-wrapper:hover .pri-lead-img { transform: scale(1.025); }
.pri-img-zoom-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #666666;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 5px 8px;
    font-size: 0.8125rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.pri-lead-img-wrapper:hover .pri-img-zoom-btn {
    background: var(--pri-accent);
    transform: scale(1.08);
}

/* Lightbox Modal */
.pri-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.pri-lightbox__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1;
}
.pri-lightbox__content {
    position: relative;
    z-index: 2;
    width: 90vw;
    height: 85vh;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.pri-lightbox__img {
    display: block;
    width: 100%;
    max-width: 1050px;
    max-height: 82vh;
    height: auto;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.95);
    pointer-events: auto;
    cursor: zoom-out;
}
.pri-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pri-lightbox__close:hover {
    background: var(--pri-accent);
    color: #ffffff;
    transform: scale(1.08);
}

/* ==========================================================================
   Section 3: Categories Directory Page
   ========================================================================== */

.pri-category-grid .col-12 a:hover {
    color: var(--pri-accent) !important;
    border-color: var(--pri-accent) !important;
}

/* ==========================================================================
   Section 4: Auth Header Hydration Utilities
   ========================================================================== */
/* Outline button for the light header: accent border + accent text on the
   white surface. The old white-on-transparent version was invisible here. */
.pri-btn--ghost-white {
    padding: 0.35rem 1rem;
    font-size: var(--pri-fs-xs);
    color: var(--pri-accent);
    border: 1px solid var(--pri-accent);
    background-color: transparent;
    text-decoration: none;
}
.pri-btn--ghost-white:hover {
    background-color: var(--pri-accent);
    color: #ffffff;
}
.pri-nav-link-sm { font-size: 0.8125rem; }
.pri-dropdown-sm { font-size: 0.875rem; }
.pri-dropdown-user { min-width: 220px; }
.pri-dropdown-item-nr { max-width: 200px; }
.pri-icon-xs { font-size: 0.65rem; }
.pri-eyebrow-xs { font-size: 0.625rem; }
.pri-suggest-logo { width: 28px; height: 28px; }
.pri-suggest-meta { font-size: 0.6875rem; }
.pri-suggest-tag { font-size: 0.72rem; font-weight: 500; }

/* Ensure rich-text images never blow out page container */
.pri-article-body img,
.pri-pr-content img,
article img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}


/* ==========================================================================
   Homepage "how it works" steps (prfree)
   --------------------------------------------------------------------------
   Four-step process row. Uses the site's own vocabulary: hairline rules between
   steps, square corners, the shared 8-step type scale. The arrow image is the
   visual anchor between a step's illustration and its text.
   ========================================================================== */
.pri-stars {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 0;
}

.pri-stars__head {
    max-width: 68rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    /* Centre the intro heading block within the full-width section. */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.pri-stars__title {
    font-family: var(--pri-serif);
    font-size: var(--pri-fs-2xl);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--pri-ink);
    margin-bottom: 0.875rem;
}

.pri-stars__sub {
    font-size: var(--pri-fs-lg);
    line-height: 1.7;
    color: var(--pri-muted);
    margin-bottom: 0;
    /* Keep the centred paragraph to a comfortable measure — centred text runs
       long becomes hard to track back to the line start. */
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

/* Four across on desktop, two on tablet, one on mobile. */
.pri-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.pri-step {
    display: flex;
    flex-direction: column;
    padding-top: 1.25rem;
}

/* Illustration sits in a fixed-ratio box so the four cards stay aligned
   regardless of each source image's intrinsic dimensions. */
.pri-step__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 1.125rem;
    /* Centre the illustration inside its box. */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pri-step__img {
    display: block;
    /* Fill the box width but keep the intrinsic ratio; the parent flex-centres
       it, so shorter images sit in the middle instead of hugging the top. */
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.pri-step__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    /* Arrow and heading are centred; the copy stays left-aligned because
       centred paragraphs of this length are hard to scan. */
    align-items: center;
    text-align: center;
}

.pri-step__arrow {
    width: auto;
    height: 21px;
    max-width: 72px;
    margin-bottom: 1rem;
}

.pri-step__title {
    font-family: var(--pri-serif);
    font-size: var(--pri-fs-lg);
    font-weight: 700;
    line-height: 1.35;
    color: var(--pri-ink);
    margin-bottom: 0.5rem;
}

.pri-step__copy {
    font-size: var(--pri-fs-base);
    line-height: 1.7;
    color: var(--pri-muted);
    margin-bottom: 0;
    text-align: left;
}

@media (max-width: 991.98px) {
    .pri-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .pri-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Media syndication network
   --------------------------------------------------------------------------
   Lead sentence at the same scale as the section heading above it, followed by
   a single horizontally scrolling row of outlet logos. No borders or cells —
   the logos sit directly on the page, spaced by whitespace alone.
   ========================================================================== */
.pri-media {
    padding-top: clamp(2rem, 4vw, 3rem);
}

/* Matches .pri-stars__title so the two sections read as one typographic run. */
.pri-media__lead {
    max-width: 62rem;
    margin: 0 auto clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    font-family: var(--pri-serif);
    font-size: var(--pri-fs-2xl);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--pri-ink);
}

/* Seamless horizontal marquee. The track is duplicated in the DOM (site.js
   clones the list once) and translated by exactly -50%, so the second copy
   lands where the first started and the loop has no visible seam.
   overflow is hidden — no scrollbar, no manual scrolling. */
.pri-media__viewport {
    overflow: hidden;
    /* Fade the edges so logos enter and leave instead of being cut off. */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.pri-media__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    width: max-content;
    animation: pri-media-scroll 38s linear infinite;
}

/* Pause on hover so a visitor can actually read a logo they recognise. */
.pri-media__viewport:hover .pri-media__grid {
    animation-play-state: paused;
}

@keyframes pri-media-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .pri-media__grid {
        animation: none;
    }
    .pri-media__viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

.pri-media__item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pri-media__item img {
    display: block;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Final item closes the row with copy instead of a logo. */
.pri-media__item--more {
    color: var(--pri-muted);
    font-size: var(--pri-fs-base);
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .pri-media__item img {
        max-height: 34px;
    }
}

/* ==========================================================================
   Homepage intro — compound rows (prfree)
   --------------------------------------------------------------------------
   Ported from the instantpress compound-row pattern, re-skinned onto this
   theme's tokens (--pri-*) and 8-step type scale (--pri-fs-*). Square corners,
   hairline rules, no shadows on text — only the mock browser/chat panels carry
   depth, which is what makes the visuals read as real UI.
   ========================================================================== */
.pri-intro {
	border-radius: 10px;
    padding: 0;
    margin-bottom: 1.125rem;
}
.pri-intro-d{
}
.pri-compound {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding: clamp(3rem, 6vw, 5rem) 1rem;
}

.pri-compound--reverse .pri-compound__text { order: 2; }
.pri-compound--reverse .pri-compound__viz  { order: 1; }

.pri-compound__num {
    font-family: var(--pri-serif);
    font-size: var(--pri-fs-md);
    letter-spacing: 0.2em;
    color: var(--pri-faint);
    margin-bottom: 1.125rem;
}

.pri-compound__title {
    font-family: var(--pri-serif);
    font-weight: 400;
    /* 2.2rem = --pri-fs-2xl, the "page hero" step of the shared scale. The
       original compound pattern used a clamp() up to 2.8rem; that sits above
       the scale and would out-shout the hero h1, so it maps to 2xl. */
    font-size: var(--pri-fs-2xl);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--pri-ink);
    margin-bottom: 1.5rem;
}

@media (max-width: 880px) {
    /* Drop one step on narrow screens so three-line headings don't dominate. */
    .pri-compound__title {
        font-size: var(--pri-fs-xl);
    }
}

.pri-compound__copy {
    color: var(--pri-muted);
    font-size: var(--pri-fs-lg);
    line-height: 1.75;
    max-width: 29rem;
    margin-bottom: 0;
}

.pri-compound__viz {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- 01: browser mock with "As Seen In" badge ---- */
.pri-auth {
    width: 100%;
    max-width: 460px;
    background: var(--pri-paper);
    border: 1px solid var(--pri-rule);
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
}

.pri-auth__chrome {
    background: #f3f0e8;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--pri-rule);
}

.pri-auth__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.pri-auth__dot--red    { background: #b22; }
.pri-auth__dot--yellow { background: #e0a800; }
.pri-auth__dot--green  { background: #1a6b1a; }

.pri-auth__url {
    font-size: var(--pri-fs-xs);
    color: var(--pri-muted);
    padding: 3px 12px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pri-auth__body {
    padding: 22px 20px 24px;
    background: var(--pri-paper);
}

.pri-auth__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.pri-auth__logo {
    font-family: var(--pri-serif);
    font-weight: 700;
    font-size: var(--pri-fs-sm);
    letter-spacing: 0.18em;
    color: var(--pri-ink);
}

.pri-auth__links {
    display: flex;
    gap: 12px;
}
.pri-auth__links span {
    display: block;
    width: 28px;
    height: 5px;
    background: #e6e1d8;
    border-radius: 3px;
}

.pri-auth__hl {
    height: 16px;
    background: #1f1f1f;
    width: 75%;
    border-radius: 3px;
    margin-bottom: 12px;
}

.pri-auth__sub {
    height: 6px;
    background: #e6e1d8;
    border-radius: 3px;
    margin-bottom: 7px;
}
.pri-auth__sub--short {
    width: 50%;
    margin-bottom: 22px;
}

.pri-auth__asin {
    border-top: 1px solid #ede8df;
    padding-top: 18px;
}

.pri-auth__asin-label,
.pri-auth__zoom-label {
    font-size: var(--pri-fs-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pri-muted);
    margin-bottom: 10px;
}

.pri-auth__asin-row {
    display: flex;
    gap: 14px;
    align-items: center;
    opacity: 0.65;
}
.pri-auth__asin-row img {
    height: 18px;
    width: auto;
    object-fit: contain;
}

/* Floating zoomed badge */
.pri-auth__zoom {
    position: absolute;
    right: 8%;
    bottom: -18px;
    background: var(--pri-paper);
    border: 2px solid var(--pri-accent);
    padding: 16px 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.pri-auth__zoom-row {
    display: flex;
    gap: 16px;
    align-items: center;
}
.pri-auth__zoom-row img {
    height: 26px;
    width: auto;
    object-fit: contain;
}

/* ---- 03: SERP mock ---- */
.pri-serp {
    width: 100%;
    max-width: 480px;
    background: var(--pri-paper);
    border: 1px solid var(--pri-rule);
    padding: 20px 22px 22px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.pri-serp__bar {
    margin-bottom: 22px;
}

.pri-serp__search {
    display: inline-block;
    font-size: var(--pri-fs-base);
    color: var(--pri-ink);
    background: #f3f0e8;
    border: 1px solid var(--pri-rule);
    border-radius: 999px;
    padding: 9px 18px;
}

.pri-serp__results {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Each result is a self-contained block. The source site staggered these in;
   this theme now does the same, rising from below with a soft fade. */
.pri-serp__result {
    display: block;
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pri-compound.is-in-view .pri-serp__result {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger so the SERP "builds" top to bottom like a real results page. */
.pri-compound.is-in-view .pri-serp__result:nth-child(1) { transition-delay: 120ms; }
.pri-compound.is-in-view .pri-serp__result:nth-child(2) { transition-delay: 300ms; }
.pri-compound.is-in-view .pri-serp__result:nth-child(3) { transition-delay: 480ms; }
.pri-compound.is-in-view .pri-serp__result:nth-child(4) { transition-delay: 660ms; }

/* The search pill that frames the results settles first. */
.pri-serp__search {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 480ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pri-compound.is-in-view .pri-serp__search {
    opacity: 1;
    transform: translateY(0);
}

.pri-serp__url {
    font-size: var(--pri-fs-xs);
    color: #5f6368;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pri-serp__title {
    font-size: var(--pri-fs-md);
    font-weight: 500;
    color: #1a0dab;
    line-height: 1.3;
    margin-bottom: 5px;
}

.pri-serp__snippet {
    height: 5px;
    background: #e6e1d8;
    border-radius: 3px;
    width: 90%;
}

.pri-serp__da {
    display: inline-block;
    font-size: var(--pri-fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: var(--pri-accent);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ---- 04: AI chat mock ---- */
.pri-ai {
    width: 100%;
    max-width: 480px;
    background: var(--pri-paper);
    border: 1px solid var(--pri-rule);
    padding: 22px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pri-ai__msg {
    font-size: var(--pri-fs-base);
    line-height: 1.55;
    /* Hidden until the row scrolls in; JS adds .is-in-view to .pri-compound. */
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* The conversation plays out in order: the user's question lands first, then
   the answer, then the source citation — so it reads like a real exchange. */
.pri-compound.is-in-view .pri-ai__msg { opacity: 1; transform: translateY(0); }
.pri-compound.is-in-view .pri-ai__msg--user { transition-delay: 140ms; }
.pri-compound.is-in-view .pri-ai__msg--bot  { transition-delay: 460ms; }

/* The citation pill is the payoff, so it arrives last and gets a slightly
   longer travel to draw the eye. */
.pri-ai__pill {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition:
        opacity 480ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pri-compound.is-in-view .pri-ai__pill {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 900ms;
}

/* Reference superscripts light up after the sentence they belong to. */
.pri-ai__cite {
    opacity: 0;
    transition: opacity 320ms ease;
}
.pri-compound.is-in-view .pri-ai__cite { opacity: 1; transition-delay: 1000ms; }

.pri-ai__msg--user {
    align-self: flex-end;
    max-width: 75%;
    background: #f3f0e8;
    color: var(--pri-ink);
    padding: 10px 16px;
    border-radius: 18px 18px 4px;
}

.pri-ai__msg--bot {
    align-self: flex-start;
    max-width: 92%;
    color: var(--pri-ink);
}

.pri-ai__text {
    margin-bottom: 8px;
}
.pri-ai__text:last-of-type {
    margin-bottom: 12px;
}

.pri-ai__cite {
    font-size: var(--pri-fs-xs);
    font-weight: 600;
    color: var(--pri-accent);
    background: #f3f0e8;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 2px;
    vertical-align: 0.2em;
}

.pri-ai__pill {
    background: #f3f0e8;
    border: 1px solid var(--pri-rule);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--pri-fs-xs);
    color: var(--pri-ink);
}

.pri-ai__pill-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pri-accent);
    color: #ffffff;
    border-radius: 6px;
    font-size: var(--pri-fs-xs);
    font-weight: 700;
}

.pri-ai__pill-src {
    color: var(--pri-muted);
}

@media (max-width: 880px) {
    .pri-compound {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3.5rem 1rem;
    }
    /* Stack image above copy on every block, including the reversed ones.
       Set explicitly rather than via `order: initial` so rows whose DOM order
       is text-first (blocks 01 and 03) don't flip to text-on-top. */
    .pri-compound__viz  { order: 1; min-height: 0; }
    .pri-compound__text { order: 2; }
    .pri-compound__copy {
        max-width: none;
    }
    .pri-auth__zoom {
        right: 4%;
        bottom: -12px;
    }
}

/* --------------------------------------------------------------------------
   Scroll-reveal fallbacks
   --------------------------------------------------------------------------
   The reveal animations start from opacity:0, so without these guards the
   content would stay invisible if JS never runs or the visitor has asked for
   reduced motion. Both cases must land on the fully visible end state.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .pri-serp__result,
    .pri-serp__search,
    .pri-ai__msg,
    .pri-ai__pill,
    .pri-ai__cite {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* No-JS guard: if the script never adds .is-in-view, show everything. The
   <html> element ships with class="no-js" and site.js flips it to "js". */
.no-js .pri-serp__result,
.no-js .pri-serp__search,
.no-js .pri-ai__msg,
.no-js .pri-ai__pill,
.no-js .pri-ai__cite {
    opacity: 1;
    transform: none;
}

/* ---- Press release detail footer ---------------------------------------
   The standard detail page and the ?mode=simple reading view end with the
   same archive footer. Styled here (not in a shared file) because each theme
   owns its colour tokens. */
.pri-detail-footer {
    border-top: 1px solid var(--pri-rule);
    margin-top: 3rem;
    padding: 1.5rem 0;
}
.pri-detail-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
}
.pri-detail-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    font-size: .8rem;
}
.pri-detail-footer__nav a {
    color: var(--pri-accent);
    text-decoration: none;
}
.pri-detail-footer__nav a:hover { text-decoration: underline; }

/* Current detail pages read these links in body ink: they are a quiet site
   map, not calls to action competing with the release. The archive footer
   keeps its accent colour. */
.pri-detail-footer--new .pri-detail-footer__nav a { color: var(--pri-muted); }
.pri-detail-footer--new .pri-detail-footer__nav a:hover { color: var(--pri-ink); }
.pri-detail-footer__sep { color: var(--pri-rule); }
.pri-detail-footer__copy {
    margin: 0;
    font-size: .8rem;
    color: var(--pri-muted);
}
