:root {
    --color-primary: #081a2b;
    --color-primary-light: #13304a;
    --color-secondary: #d8873a;
    --color-accent: #f0a44f;
    --color-accent-hover: #c77428;
    --color-teal: #22546d;
    --color-teal-dark: #183f55;
    --color-navy: #07131f;
    --color-navy-light: #102538;
    --color-text: #213344;
    --color-text-light: #5f7282;
    --color-text-muted: #8696a3;
    --color-text-inverse: #f7fbff;
    --color-heading: #061320;
    --color-bg: #fefcf9;
    --color-bg-alt: #fdf8f2;
    --color-bg-light: #f5ede0;
    --color-bg-dark: #081521;
    --color-bg-darker: #050d16;
    --color-bg-card: rgba(255, 255, 255, 0.92);
    --color-border: rgba(9, 34, 52, 0.12);
    --color-border-light: rgba(9, 34, 52, 0.08);
    --font-heading: 'Sora', 'Segoe UI', sans-serif;
    --font-display: 'Sora', 'Segoe UI', sans-serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --shadow-sm: 0 10px 30px rgba(7, 19, 31, 0.06);
    --shadow-md: 0 18px 50px rgba(7, 19, 31, 0.1);
    --shadow-lg: 0 24px 70px rgba(7, 19, 31, 0.12);
    --shadow-xl: 0 34px 90px rgba(7, 19, 31, 0.16);
    --shadow-card: 0 20px 45px rgba(11, 29, 45, 0.08);
    --shadow-card-hover: 0 28px 65px rgba(11, 29, 45, 0.14);
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 34px;
    --container-max: 1240px;
    --container-wide: 1420px;
}

html {
    background:
        radial-gradient(circle at top, rgba(216, 135, 58, 0.05), transparent 28%),
        linear-gradient(180deg, #fefcf9 0%, #fdf8f2 40%, #fefcf9 100%);
}

/* ── Global text selection ── */
::selection {
    background: rgba(216, 135, 58, 0.25);
    color: inherit;
}

::-moz-selection {
    background: rgba(216, 135, 58, 0.25);
    color: inherit;
}

/* Dark sections — white selection so text stays readable */
.tool-review-hero::selection,
.tool-review-hero *::selection,
.tool-review-panel--dark::selection,
.tool-review-panel--dark *::selection,
.site-footer::selection,
.site-footer *::selection,
.site-header::selection,
.site-header *::selection,
.tool-review-hero::selection,
.tool-review-hero *::selection {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.tool-review-hero::-moz-selection,
.tool-review-hero *::-moz-selection,
.tool-review-panel--dark::-moz-selection,
.tool-review-panel--dark *::-moz-selection,
.site-footer::-moz-selection,
.site-footer *::-moz-selection,
.site-header::-moz-selection,
.site-header *::-moz-selection {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

body {
    color: var(--color-text);
    background: transparent;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(9, 34, 52, 0.03) 0, rgba(9, 34, 52, 0.03) 1px, transparent 1px, transparent 100px),
        linear-gradient(rgba(9, 34, 52, 0.03) 0, rgba(9, 34, 52, 0.03) 1px, transparent 1px, transparent 100px),
        linear-gradient(90deg, rgba(9, 34, 52, 0.015) 0, rgba(9, 34, 52, 0.015) 1px, transparent 1px, transparent 20px),
        linear-gradient(rgba(9, 34, 52, 0.015) 0, rgba(9, 34, 52, 0.015) 1px, transparent 1px, transparent 20px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    z-index: -1;
}

main#main-content {
    position: relative;
    flex: 1;
    padding-bottom: 4rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

a {
    color: var(--color-primary);
}

a:hover {
    color: var(--color-secondary);
}

::selection,
::-moz-selection {
    background: var(--color-accent);
    color: #fff;
}

.animate-in {
    opacity: 0.001;
    transform: translate3d(0, 28px, 0);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.section-kicker,
.editorial-kicker,
.editorial-panel__label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.78rem;
    font-weight: 800;
    /* Extra bold for visibility */
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary);
    /* Use high-contrast primary navy */
}

.section-kicker::before,
.editorial-kicker::before,
.editorial-panel__label::before {
    content: "";
    width: 2.75rem;
    height: 1px;
    background: rgba(216, 135, 58, 0.42);
}

/* On dark hero backgrounds, kicker must be white — !important beats the generic orange rule */
.editorial-hero .editorial-kicker,
.editorial-hero .section-kicker,
.editorial-hero--archive .editorial-kicker,
.editorial-hero--search .editorial-kicker,
.editorial-hero--blog .editorial-kicker,
.story-hero .editorial-kicker,
.story-hero .section-kicker,
.about-hero .editorial-kicker,
.about-hero .section-kicker,
.page-hero .editorial-kicker,
.page-hero .section-kicker {
    color: rgba(255, 255, 255, 0.78) !important;
}

.editorial-hero .editorial-kicker::before,
.editorial-hero .section-kicker::before,
.editorial-hero--archive .editorial-kicker::before,
.editorial-hero--search .editorial-kicker::before,
.editorial-hero--blog .editorial-kicker::before,
.story-hero .editorial-kicker::before,
.story-hero .section-kicker::before,
.about-hero .editorial-kicker::before,
.page-hero .editorial-kicker::before {
    background: rgba(255, 255, 255, 0.45) !important;
}

/* Search hero text colors */
.editorial-hero--search .editorial-hero__content h1,
.editorial-hero--search .editorial-hero__content h2,
.editorial-hero--search .editorial-hero__content p {
    color: #ffffff !important;
}

.editorial-hero--search .editorial-hero__content p {
    color: rgba(255, 255, 255, 0.75) !important;
}

.editorial-hero--search .editorial-stat__value {
    color: #ffffff !important;
}

.editorial-hero--search .editorial-stat__label {
    color: rgba(255, 255, 255, 0.6) !important;
}

.editorial-hero--search .editorial-stat {
    border-top-color: rgba(255, 255, 255, 0.18) !important;
}

/* Restore dark hero background on single post pages (style.css line 4365 overrides to light) */
.story-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 127, 107, 0.22), transparent 30%),
        radial-gradient(circle at bottom left, rgba(0, 150, 183, 0.18), transparent 30%),
        linear-gradient(135deg, #091121 0%, #112444 52%, #17335c 100%) !important;
    color: #fff !important;
}

.story-hero::before {
    display: block !important;
}

.editorial-hero__content h1,
.editorial-hero__content h2,
.story-hero__content h1,
.story-hero h1,
.story-hero h2 {
    color: #ffffff !important;
}

.editorial-hero__content p,
.story-hero__deck,
.story-hero p {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Eyebrow: category link + read time */
.story-hero .story-hero__eyebrow,
.story-hero .story-hero__eyebrow span,
.story-hero .story-hero__category {
    color: rgba(255, 255, 255, 0.75) !important;
    white-space: nowrap;
}

.story-hero .story-hero__category:hover {
    color: #ffffff !important;
}

/* Meta board inside story hero */
.story-hero .story-meta-board__item span {
    color: rgba(255, 255, 255, 0.55) !important;
}

.story-hero .story-meta-board__item strong {
    color: #ffffff !important;
}

/* Stat numbers & labels inside dark hero — ensure white */
.editorial-hero .editorial-stat__value,
.editorial-hero .story-meta-board__item strong {
    color: #ffffff !important;
}

.editorial-hero .editorial-stat__label,
.editorial-hero .story-meta-board__item span {
    color: rgba(255, 255, 255, 0.6) !important;
}

.editorial-hero .editorial-stat,
.editorial-hero .story-meta-board__item {
    border-top-color: rgba(255, 255, 255, 0.18) !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.1rem;
    padding: 0.9rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
    box-shadow: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--sm {
    min-height: 2.7rem;
    padding: 0.72rem 1.1rem;
}

.btn--lg {
    min-height: 3.35rem;
    padding: 1rem 1.55rem;
}

.btn--primary {
    background: linear-gradient(135deg, #c8792d 0%, #e0a154 100%);
    color: #fff;
    box-shadow: 0 10px 25px rgba(200, 121, 45, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn--primary:hover {
    color: #fff;
    box-shadow: 0 16px 36px rgba(200, 121, 45, 0.35), 0 0 20px rgba(216, 135, 58, 0.3);
}

.btn--secondary,
.btn--white {
    border-color: rgba(8, 26, 43, 0.12);
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-heading);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover,
.btn--white:hover {
    border-color: rgba(216, 135, 58, 0.35);
    background: #fff;
    color: var(--color-heading);
}

.btn--dark {
    background: linear-gradient(135deg, #07131f 0%, #14314a 100%);
    color: #fff;
    box-shadow: 0 18px 38px rgba(7, 19, 31, 0.26);
}

.btn--dark:hover {
    color: #fff;
}

.site-announcement {
    display: none !important;
}

.site-announcement__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding-block: 0.75rem;
}

.site-announcement__copy {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.site-announcement__label {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-announcement__copy p {
    margin: 0;
    max-width: 54rem;
    color: rgba(247, 251, 255, 0.72);
    font-size: 0.92rem;
}

.site-announcement__links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.site-announcement__links a {
    white-space: nowrap;
}

.site-announcement__links a,
.site-announcement__links a:link,
.site-announcement__links a:visited {
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.site-announcement__links a:hover {
    color: #ffd09d !important;
}

.site-announcement__links a+a::before {
    content: '·';
    margin-right: 0.5rem;
    opacity: 0.4;
    font-weight: 400;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    padding: 0;
    background: linear-gradient(90deg, #050d16 0%, #0a1b2a 55%, #14314a 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25) !important;
    transition: background 0.3s ease;
}

.site-header.is-sticky {
    background: rgba(10, 27, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(216, 135, 58, 0.3) !important;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0;
    width: 100%;
}

.site-header.is-sticky {
    padding-top: 0;
}

.site-header.is-sticky .site-header__inner {
    box-shadow: none;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.site-header__logo img {
    width: auto;
    max-width: 182px;
    height: auto;
}

.site-header__tagline {
    display: none;
    /* hidden to give nav + CTA room inside the pill */
}

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    /* This centers the nav */
}

.main-nav>li {
    position: relative;
}

.main-nav>li>a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.7rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav>li>a:hover,
.main-nav>li.is-open>a,
.main-nav>li.current-menu-item>a,
.main-nav>li.current-menu-ancestor>a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.main-nav .sub-menu {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 0;
    min-width: 16rem;
    padding: 0.75rem;
    border: 1px solid rgba(8, 26, 43, 0.1);
    border-radius: 20px;
    background: rgba(250, 252, 255, 0.96);
    box-shadow: 0 24px 44px rgba(7, 19, 31, 0.13);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.main-nav .sub-menu li+li {
    margin-top: 0.22rem;
}

.main-nav .sub-menu a {
    display: block;
    padding: 0.72rem 0.82rem;
    border-radius: 14px;
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 700;
}

.main-nav .sub-menu a:hover {
    background: rgba(8, 26, 43, 0.06);
    color: var(--color-heading);
}

.main-nav>li:hover>.sub-menu,
.main-nav>li.is-open>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.header-cta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-cta .btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
    line-height: 1;
    border-radius: 20px;
}

.site-header__social {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.site-header__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header__social a:hover {
    border-color: rgba(216, 135, 58, 0.6);
    background: rgba(216, 135, 58, 0.15);
    color: #ffd09d;
}

.header-search {
    position: relative;
}

.header-search__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.header-search__toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.header-search__form {
    position: absolute;
    top: calc(100% + 0.9rem);
    right: 0;
    width: min(24rem, calc(100vw - 2rem));
    padding: 0.9rem;
    border: 1px solid rgba(8, 26, 43, 0.1);
    border-radius: 22px;
    background: rgba(250, 252, 255, 0.98);
    box-shadow: 0 24px 48px rgba(7, 19, 31, 0.14);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.header-search__form.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.24rem;
    width: 3rem;
    height: 3rem;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
    width: 1.05rem;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-overlay) - 1);
    background: rgba(5, 13, 22, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
    max-width: 100%;
}

.search-form__input,
input[type="search"],
input[type="text"],
input[type="email"],
.search-field,
.form-group input,
.form-group textarea,
.form-group select,
.contact-form input,
.contact-form textarea,
.contact-form select {
    min-height: 3.25rem;
    width: 100%;
    padding: 0.92rem 1.05rem;
    border: 1px solid rgba(8, 26, 43, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86) !important;
    color: #0f1c3f !important;
    font-family: var(--font-body);
    font-size: 0.96rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

/* Placeholder text */
.search-form__input::placeholder,
input[type="search"]::placeholder,
.search-field::placeholder {
    color: rgba(15, 28, 63, 0.45) !important;
}

/* Caret (cursor) color */
.search-form__input,
input[type="search"],
.search-field {
    caret-color: #0f1c3f !important;
}

.search-form__input:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: rgba(216, 135, 58, 0.42);
    box-shadow: 0 0 0 4px rgba(216, 135, 58, 0.12);
    background: #fff;
}

.search-form__button {
    min-width: 7rem;
    padding-inline: 1.2rem;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #081521 0%, #14314a 100%);
    color: #fff;
    font-weight: 800;
}

.search-form__button:hover {
    background: linear-gradient(135deg, #102538 0%, #22546d 100%);
}

.home-hero {
    position: relative;
    padding-block: clamp(3.25rem, 5vw, 5.6rem) clamp(2.75rem, 4vw, 4.4rem);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 12%, rgba(216, 135, 58, 0.12), transparent 24%),
        radial-gradient(circle at 78% 24%, rgba(34, 84, 109, 0.12), transparent 30%);
    pointer-events: none;
}

.home-hero__grid,
.coverage-grid,
.dual-channel,
.signal-section__grid,
.site-footer__base,
.signup-panel__grid {
    display: grid;
    gap: 1.35rem;
}

.home-hero__grid {
    position: relative;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(1.5rem, 3vw, 2.6rem);
    align-items: stretch;
}

.home-hero__content,
.home-hero__visual,
.signal-board__lead,
.signal-board__rail {
    position: relative;
}

.home-hero__content,
.coverage-lead,
.coverage-stack__item,
.podcast-stack__item,
.expert-list__item,
.site-footer__frame,
.story-tools__block,
.story-article,
.story-author,
.story-nav__item,
.editorial-panel,
.story-strip,
.featured-story,
.resource-card,
.contact-form-wrapper,
.contact-info,
.article-card,
.signup-panel,
.error-404__shell,
.page-header,
.about-hero {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.home-hero__content {
    padding: clamp(2rem, 3vw, 3rem);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 251, 254, 0.84) 100%);
}

.home-hero__content h1 {
    max-width: 13ch;
    margin: 0.8rem 0 1.1rem;
    font-size: clamp(2.7rem, 4vw, 5rem);
    line-height: 0.96;
}

.home-hero__lede {
    max-width: 40rem;
    margin-bottom: 1rem;
    color: var(--color-heading);
    font-size: clamp(1.08rem, 1rem + 0.35vw, 1.32rem);
    line-height: 1.6;
}

.home-hero__support {
    max-width: 37rem;
    margin-bottom: 1.8rem;
    color: var(--color-text-light);
    font-size: 1rem;
}

.home-hero__actions,
.story-hero__actions,
.editorial-hero__actions,
.error-404__actions,
.podcast-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.home-hero__actions {
    margin-bottom: 2rem;
}

.home-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.home-hero__metric {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(8, 26, 43, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.home-hero__metric strong {
    display: block;
    margin-bottom: 0.32rem;
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1;
}

.home-hero__metric span {
    display: block;
    color: var(--color-text-light);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signal-board {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 100%;
    overflow: hidden;
    padding: clamp(1.4rem, 2.2vw, 2rem);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(10, 27, 42, 0.98) 0%, rgba(7, 19, 31, 1) 100%);
    box-shadow: var(--shadow-xl);
}

/* When no lead article exists, collapse the first grid row */
.signal-board--rail-only {
    grid-template-rows: auto;
    align-content: center;
    min-height: 0;
}

.signal-board__mesh {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0, rgba(255, 255, 255, 0.07) 1px, transparent 1px, transparent 72px),
        linear-gradient(rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 72px);
    background-size: 72px 72px;
    opacity: 0.12;
}

.signal-board__lead {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.4rem;
    min-height: 22rem;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.signal-board__lead-meta,
.coverage-lead__meta,
.coverage-stack__meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.signal-board__lead-meta a,
.signal-board__lead-meta span,
.coverage-lead__meta a,
.coverage-lead__meta span,
.coverage-stack__meta a,
.coverage-stack__meta span {
    color: rgba(255, 244, 232, 0.76);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.signal-board__lead h2 {
    margin: 0;
    max-width: 12ch;
    color: #fff;
    font-size: clamp(2rem, 2.9vw, 3.1rem);
    line-height: 1.02;
}

.signal-board__lead p {
    margin: 0;
    max-width: 36rem;
    color: rgba(247, 251, 255, 0.74);
    font-size: 1rem;
}

.signal-board__cta,
.coverage-lead__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd09d;
    font-weight: 800;
}

.signal-board__rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
    align-items: start;
}

.signal-board__topic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.92rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    height: auto;
    align-self: start;
}

.signal-board__topic strong {
    color: #ffd09d;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.proof-band__grid,
.pillar-grid,
.topic-system__grid {
    display: grid;
    gap: 1rem;
}

.proof-band__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-band__item,
.pillar-block,
.topic-system__link {
    padding: 1.25rem 1.3rem;
    border: 1px solid rgba(8, 26, 43, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
}

.proof-band__item span,
.signal-section__label,
.site-footer__eyebrow,
.site-footer__column h2,
.site-footer__brands-label {
    display: inline-block;
    color: var(--color-secondary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.proof-band__item p,
.pillar-block p {
    margin: 0;
    color: var(--color-text-light);
}

.pillar-grid,
.topic-system__grid,
.dual-channel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pillar-block__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(216, 135, 58, 0.14) 0%, rgba(34, 84, 109, 0.12) 100%);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
}

.section-intro,
.topic-system__header {
    max-width: 50rem;
    margin-bottom: clamp(1.6rem, 3vw, 2.2rem);
}

.section-intro h2,
.topic-system__header h2,
.signal-section__content h2,
.story-feed__header h2,
.editorial-panel h2,
.page-header__title {
    margin: 0.8rem 0 0.95rem;
    font-size: clamp(1.85rem, 2.5vw, 3.2rem);
    line-height: 1.04;
}

.section-intro p,
.topic-system__header p,
.signal-section__content p,
.story-feed__header p,
.editorial-panel p,
.page-header__description {
    margin: 0;
    color: var(--color-text-light);
}

.section-intro--row,
.story-feed__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.2rem;
}

.section-intro--center {
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
}

.section-intro--center .section-kicker {
    justify-content: center;
}

.coverage-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.coverage-lead {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.4rem, 2vw, 1.8rem);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 251, 254, 0.82) 100%);
}

.coverage-lead h3,
.coverage-stack__item h3,
.podcast-stack__item h3,
.expert-list__item h3 {
    margin: 0;
    font-size: clamp(1.3rem, 1.8vw, 2rem);
}

.coverage-lead p,
.coverage-stack__item p,
.podcast-stack__item p,
.expert-list__item p {
    margin: 0;
    color: var(--color-text-light);
}

.coverage-stack,
.podcast-stack,
.expert-list {
    display: grid;
    gap: 1rem;
}

.coverage-stack__item,
.podcast-stack__item,
.expert-list__item {
    padding: 1.35rem 1.4rem;
    border-radius: 24px;
}

.topic-system__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-system__column {
    display: grid;
    gap: 0.9rem;
}

.topic-system__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 5.6rem;
    color: var(--color-heading);
    font-size: 1rem;
    font-weight: 800;
}

.topic-system__link svg {
    flex-shrink: 0;
    color: var(--color-secondary);
}

.signal-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(216, 135, 58, 0.22), transparent 20%), radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.08), transparent 22%), linear-gradient(135deg, #07131f 0%, #102538 44%, #14314a 100%);
    color: #fff;
}

.signal-section__grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 24rem);
    align-items: center;
}

.signal-section__content p {
    color: rgba(247, 251, 255, 0.76);
    max-width: 38rem;
}

.signal-section__rail {
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
}

.tool-rail,
.topic-cluster,
.site-footer__brands-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tool-rail a,
.topic-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.78rem 1rem;
    border: 1px solid rgba(8, 26, 43, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tool-rail a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.dual-channel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.signup-panel {
    padding: clamp(1.5rem, 2.4vw, 2.4rem);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 250, 252, 0.88) 100%);
}

.signup-panel__content {
    margin-bottom: 1.3rem;
}

.signup-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
    position: relative;
    margin-top: auto;
    padding-block: 3rem 2rem;
    border-top: 0;
    background: transparent;
}

.site-footer__frame {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: clamp(1.6rem, 2.6vw, 2.4rem);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(7, 19, 31, 0.98) 0%, rgba(16, 37, 56, 0.98) 100%);
    box-shadow: 0 28px 80px rgba(7, 19, 31, 0.22);
}

.site-footer__description,
.site-footer__base p {
    color: rgba(247, 251, 255, 0.7);
}

.site-footer__description {
    max-width: 26rem;
}

.site-footer__column h2 {
    margin-bottom: 1rem;
}

.site-footer__list {
    display: grid;
    gap: 0.7rem;
}

.site-footer__list a,
.site-footer__brands-links a,
.site-footer__legal a {
    color: rgba(247, 251, 255, 0.88);
    font-size: 0.98rem;
    font-weight: 700;
}

.site-footer__list a:hover,
.site-footer__brands-links a:hover,
.site-footer__legal a:hover {
    color: #ffd09d;
}

.site-footer__brands {
    margin-top: 1.4rem;
}

.site-footer__base {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0 0;
}

.site-footer__legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */

/* ============================================
   BLOG INDEX PAGE — alignment fixes
   ============================================ */

/* When a story strip has no featured image, content spans full width */
.story-strip__content:only-child {
    grid-column: 1 / -1;
}

/* Story strip without image: tighten layout */
.story-strip:not(:has(.story-strip__visual)) {
    grid-template-columns: 1fr;
}

/* Hub section: ensure consistent container padding */
.editorial-hub__grid {
    padding-block: clamp(3rem, 5vw, 5rem);
}

/* Story feed: give the list a cleaner visual separation */
.story-strip {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 28, 63, 0.07) !important;
    padding: 1.4rem 1.4rem !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.story-strip:first-child {
    border-top: 1px solid rgba(15, 28, 63, 0.07) !important;
    padding-top: 1.4rem !important;
}

.story-strip:hover {
    box-shadow: 0 12px 36px rgba(7, 19, 31, 0.1);
    transform: translateY(-2px);
}

/* Category badge colouring */
.story-strip__category {
    background: rgba(34, 84, 109, 0.08);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    color: var(--color-teal-dark) !important;
    font-size: 0.68rem !important;
    white-space: nowrap;
}

/* Editorial hero section background */
.editorial-hero--blog {
    background: linear-gradient(135deg, #07131f 0%, #13304a 60%, #183f55 100%);
}

/* Ensure editorial hub matches page bg */
.editorial-hub {
    background: var(--color-bg) !important;
}

/* Story feed header spacing */
.story-feed__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(15, 28, 63, 0.08);
    flex-wrap: wrap;
}

/* Author avatar alignment in strip */
.story-strip__author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.story-strip__author-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    object-fit: cover;
}

/* "Read article →" link */
.story-strip__cta {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--color-secondary) !important;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.story-strip__cta:hover {
    color: var(--color-accent-hover) !important;
}

/* ── Sidebar: label colour & heading size ── */
/* Force panel labels to teal (beats the generic .editorial-panel__label orange) */
.editorial-panel .editorial-panel__label,
.editorial-sidebar .editorial-panel__label,
.story-feed__header .editorial-panel__label {
    color: var(--color-teal-dark) !important;
}

.editorial-panel .editorial-panel__label::before,
.editorial-sidebar .editorial-panel__label::before,
.story-feed__header .editorial-panel__label::before {
    background: var(--color-teal-dark) !important;
    opacity: 0.35;
}

/* Accent (dark) panel label stays white */
.editorial-panel--accent .editorial-panel__label {
    color: rgba(255, 255, 255, 0.82) !important;
}

.editorial-panel--accent .editorial-panel__label::before {
    background: rgba(255, 255, 255, 0.5) !important;
}

/* Sidebar h2 is too large — scale it down */
.editorial-sidebar .editorial-panel h2 {
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.3rem) !important;
    line-height: 1.3;
    margin-top: 0.6rem;
}

/* Topic pills: better style */
.topic-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(9, 17, 33, 0.05);
    border: 1px solid rgba(9, 17, 33, 0.1);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.topic-pill:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.topic-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(9, 17, 33, 0.08);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    transition: background 0.2s ease;
}

.topic-pill:hover span {
    background: rgba(255, 255, 255, 0.2);
}

/* Story feed header label & h2 */
.story-feed__header h2 {
    font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.85rem) !important;
    margin-top: 0.4rem;
    line-height: 1.1;
}

/* Date · read-time detail styling in strips */
.story-strip__detail {
    color: var(--color-text-muted);
    font-size: 0.72rem !important;
}

/* Eyebrow row: category + date spread */
.story-strip__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Footer row: author + CTA at opposite ends */
.story-strip__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 28, 63, 0.07);
}

/* ============================================================
   PAGE ENTRANCE ANIMATION — runs once per page load
   ============================================================ */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main#main-content {
    animation: pageEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ============================================================
   ANNOUNCEMENT BAR — fix wrapping
   ============================================================ */
.site-announcement__copy p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 44rem;
}

/* ============================================================
   DARK HERO — shared base for About, Archive, Default pages
   ============================================================ */
.about-hero,
.page-hero,
.editorial-hero--archive,
.editorial-hero--search,
.editorial-hero--blog,
.single-post-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #07131f 0%, #13304a 58%, #183f55 100%);
    color: #fff;
    padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.about-hero::before,
.page-hero::before,
.editorial-hero--archive::before,
.editorial-hero--search::before,
.editorial-hero--blog::before,
.single-post-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.18;
    pointer-events: none;
}

/* Decorative glow */
.about-hero::after,
.single-post-header::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 60%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(216, 135, 58, 0.14) 0%, transparent 65%);
    pointer-events: none;
}

.about-hero h1,
.page-hero h1,
.single-post-header h1 {
    color: #fff !important;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 18ch;
    margin-bottom: 1rem;
}

.about-hero .section__subtitle,
.page-hero .section__subtitle,
.single-post-header .section__subtitle {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
    max-width: 52ch;
    line-height: 1.6;
}

/* ============================================================
   PAGE-HEADER — Resources & Contact hero band
   ============================================================ */
.page-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #07131f 0%, #13304a 58%, #183f55 100%);
    padding: clamp(3rem, 5vw, 5rem) 0;
    color: #fff;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.18;
    pointer-events: none;
}

.page-header__title {
    color: #fff !important;
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
}

.page-header__description {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
    max-width: 56ch;
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   RESOURCES GRID & CARDS
   ============================================================ */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.resource-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 28, 63, 0.08);
    border-radius: 1.5rem;
    box-shadow: 0 8px 28px rgba(7, 19, 31, 0.07);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(7, 19, 31, 0.12);
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.85rem;
    background: rgba(216, 135, 58, 0.1);
    color: var(--color-secondary);
    flex-shrink: 0;
}

.resource-card__type {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(34, 84, 109, 0.08);
    color: var(--color-teal-dark);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: fit-content;
}

.resource-card__title {
    margin: 0;
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
    line-height: 1.2;
    color: var(--color-heading);
}

.resource-card__description {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.resource-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--color-secondary) !important;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.resource-card__cta:hover {
    gap: 0.65rem;
    color: var(--color-accent-hover) !important;
}

/* Resources filter buttons */
.resources-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.resources-filter__btn {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 28, 63, 0.12);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.resources-filter__btn:hover,
.resources-filter__btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ============================================================
   ABOUT PAGE CONTENT
   ============================================================ */
.about-content {
    max-width: 72ch;
    margin-inline: auto;
}

.about-content h2 {
    font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-heading);
}

.about-content p {
    color: var(--color-text-light);
    line-height: 1.75;
    font-size: 1.05rem;
}

/* Values cards grid on About page */
.section--alt {
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%) !important;
}

.section__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section__header h2 {
    font-size: clamp(1.6rem, 1.2rem + 1vw, 2.4rem);
    color: var(--color-heading);
}

/* ============================================================
   404 PAGE — kicker color fix
   ============================================================ */
.error-404 .editorial-kicker,
.error-404 .section-kicker {
    color: var(--color-secondary) !important;
}

/* ============================================================
   SINGLE POST HEADER
   ============================================================ */
.single-post-header {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.single-post-header h1 {
    color: #fff !important;
    margin: 0;
}

/* ============================================================
   GLOBAL CONTENT WRAPPING FIX
   ============================================================ */

/* Prevent announcement bar copy from breaking layout */
.site-announcement__inner {
    flex-wrap: nowrap;
}

/* Ensure page sections don't overflow viewport */
.section,
.editorial-hub,
.editorial-hero,
.about-hero,
.page-header {
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsive: resources grid */
@media (max-width: 960px) {
    .resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .site-announcement__copy p {
        display: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 0.4;
    }

    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes loadingBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ============================================
   PAGE LOAD ANIMATIONS (staggered)
   ============================================ */

/* Hero content elements — applied via JS adding .anim-loaded to body */
.home-hero__content .section-kicker {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0s both;
}

.home-hero__content h1 {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.home-hero__lede,
.home-hero__support {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.home-hero__actions {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.home-hero__metrics {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.home-hero__visual {
    opacity: 0;
    animation: scaleIn 0.8s ease-out 0.15s both;
}

.site-header__logo {
    opacity: 0;
    animation: fadeInUp 0.4s ease 0s both;
}

.main-nav>li:nth-child(1) {
    opacity: 0;
    animation: fadeInUp 0.4s ease 0.05s both;
}

.main-nav>li:nth-child(2) {
    opacity: 0;
    animation: fadeInUp 0.4s ease 0.10s both;
}

.main-nav>li:nth-child(3) {
    opacity: 0;
    animation: fadeInUp 0.4s ease 0.15s both;
}

.main-nav>li:nth-child(4) {
    opacity: 0;
    animation: fadeInUp 0.4s ease 0.20s both;
}

.main-nav>li:nth-child(5) {
    opacity: 0;
    animation: fadeInUp 0.4s ease 0.25s both;
}

.main-nav>li:nth-child(6) {
    opacity: 0;
    animation: fadeInUp 0.4s ease 0.30s both;
}

.site-header__meta {
    opacity: 0;
    animation: fadeInUp 0.4s ease 0.3s both;
}

/* ============================================
   SCROLL-TRIGGERED ANIMATION CLASSES
   (IntersectionObserver adds .is-visible)
   ============================================ */

.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: transform, opacity;
}

.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: transform, opacity;
}

.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: transform, opacity;
}

.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: transform, opacity;
}

.animate-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for grid children */
.animate-stagger>*:nth-child(1) {
    transition-delay: 0s;
}

.animate-stagger>*:nth-child(2) {
    transition-delay: 0.08s;
}

.animate-stagger>*:nth-child(3) {
    transition-delay: 0.16s;
}

.animate-stagger>*:nth-child(4) {
    transition-delay: 0.24s;
}

.animate-stagger>*:nth-child(5) {
    transition-delay: 0.32s;
}

.animate-stagger>*:nth-child(6) {
    transition-delay: 0.40s;
}

/* ============================================
   MICRO-INTERACTIONS
   ============================================ */

/* Post/article cards — spring hover lift */
.article-card,
.coverage-stack__item,
.coverage-lead,
.pillar-block,
.resource-card,
.featured-story,
.story-strip {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-card:hover,
.coverage-stack__item:hover,
.coverage-lead:hover,
.pillar-block:hover,
.resource-card:hover,
.featured-story:hover,
.story-strip:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

/* Subscribe / primary button hover */
.btn--primary:hover {
    transform: translateY(-2px) scale(1.03);
}

/* Category / topic pill — fill from left */
.topic-pill,
.tool-rail a {
    position: relative;
    overflow: hidden;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* Tag cloud hover — invert */
.topic-cluster .topic-pill:hover,
.topic-system__link:hover {
    background: var(--color-secondary);
    color: #fff;
    border-color: transparent;
}

/* Author avatar hover */
.story-author__avatar img,
.coverage-lead .author-avatar {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-author__avatar img:hover,
.coverage-lead .author-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--color-secondary);
}

/* Read more / CTA arrow slide */
.signal-board__cta svg,
.coverage-lead__cta svg {
    transition: transform 0.2s ease;
}

.signal-board__cta:hover svg,
.coverage-lead__cta:hover svg {
    transform: translateX(4px);
}

/* Ripple container for category pills */
.topic-pill {
    position: relative;
    overflow: hidden;
}

.topic-pill .ripple {
    position: absolute;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: rgba(216, 135, 58, 0.35);
    transform: scale(0);
    animation: ripple 0.4s linear;
    pointer-events: none;
}

/* Nav link underline slide-in */
.main-nav>li>a {
    position: relative;
}

.main-nav>li>a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    border-radius: 999px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-nav>li>a:hover::after,
.main-nav>li.current-menu-item>a::after {
    transform: scaleX(1);
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ============================================
   STICKY NAV — blur on scroll
   ============================================ */

.site-header.is-sticky .site-header__inner {
    backdrop-filter: none;
    box-shadow: none;
}

/* ============================================
   REDUCED MOTION OVERRIDE
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   MOBILE RESPONSIVE — BREAKPOINTS
   ============================================ */

/* ── Laptop / small desktop (≤1100px) ── */
@media (max-width: 1100px) {
    .home-hero__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__visual {
        order: -1;
        max-height: 420px;
        overflow: hidden;
        border-radius: 28px;
    }

    .home-hero__visual img,
    .home-hero__visual .signal-board {
        max-height: 420px;
    }

    .proof-band__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pillar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__frame {
        grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
    }

    .signal-section__grid {
        grid-template-columns: 1fr;
    }
}

/* ── Tablet (≤768px) ── */
@media (max-width: 768px) {

    /* Header: brand + spacer + hamburger, nav becomes fixed drawer */
    .site-header__inner {
        gap: 1rem;
    }

    .mobile-menu-toggle {
        margin-left: auto;
    }

    /* Nav: hide links, show hamburger */
    .site-header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: min(280px, 85vw);
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 1.5rem 2rem;
        background: rgba(250, 252, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 4px 0 40px rgba(7, 19, 31, 0.14);
        transform: translateX(calc(-280px - 10px));
        transition: transform 0.3s ease-out;
        z-index: var(--z-overlay);
        overflow-y: auto;
        gap: 0;
    }

    .site-header__nav.is-open {
        transform: translateX(0);
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .main-nav>li {
        width: 100%;
    }

    .main-nav>li>a {
        display: flex;
        width: 100%;
        padding: 0.9rem 0.5rem;
        border-radius: 12px;
        font-size: 1rem;
        letter-spacing: 0.04em;
        text-transform: none;
        color: var(--color-heading);
    }

    .main-nav>li>a::after {
        display: none;
    }

    .main-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(8, 26, 43, 0.04);
        border: none;
        border-radius: 12px;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        display: none;
    }

    .main-nav>li.is-open>.sub-menu {
        display: block;
    }

    .site-header__meta {
        width: 100%;
        justify-content: flex-start;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(8, 26, 43, 0.08);
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .site-header__tagline {
        display: none;
    }

    /* Announcement bar: single column */
    .site-announcement__inner {
        flex-direction: column;
        gap: 0.6rem;
        padding-block: 0.6rem;
    }

    .site-announcement__links {
        display: none;
    }

    /* Hero */
    .home-hero__content h1 {
        font-size: clamp(1.9rem, 5vw, 2.8rem);
    }

    .home-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .home-hero__metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.6rem;
    }

    /* Grids collapse */
    .coverage-grid,
    .dual-channel,
    .topic-system__grid,
    .signup-panel__grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .site-footer__frame {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.2rem;
    }

    .site-footer__base {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer__legal {
        justify-content: center;
    }
}

/* ── Phablet (≤640px) ── */
@media (max-width: 640px) {
    .pillar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-system__grid {
        grid-template-columns: 1fr;
    }

    .proof-band__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__metrics {
        grid-template-columns: 1fr;
    }

    .signal-board__rail {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile (≤480px) ── */
@media (max-width: 480px) {
    .site-header__inner {
        padding: 0.75rem 1rem;
        border-radius: 18px;
    }

    .site-header {
        padding: 0.5rem 0 0;
    }

    .home-hero__content {
        padding: 1.5rem 1.25rem;
        border-radius: 22px;
    }

    .home-hero__content h1 {
        font-size: 1.75rem;
    }

    .home-hero__lede {
        font-size: 1rem;
    }

    .site-footer__frame {
        grid-template-columns: 1fr;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .site-announcement__copy p {
        font-size: 0.82rem;
    }

    /* Remove parallax & blur on mobile for performance */
    .home-hero__visual {
        /* parallax disabled via JS on mobile */
    }

    .site-header__inner,
    .main-nav .sub-menu,
    .header-search__form {
        backdrop-filter: none;
    }

    /* Touch targets */
    .btn {
        min-height: 3rem;
        padding: 0.9rem 1.2rem;
    }

    .main-nav>li>a {
        padding: 1rem 0.5rem;
        min-height: 44px;
    }
}

/* ── Category bar horizontal scroll ── */
@media (max-width: 768px) {

    .topic-cluster,
    .tool-rail {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .topic-cluster::-webkit-scrollbar,
    .tool-rail::-webkit-scrollbar {
        display: none;
    }

    .topic-pill,
    .tool-rail a {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* =============================================
   LIVE SEARCH DROPDOWN
   ============================================= */
.live-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(15, 28, 63, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(7, 19, 31, 0.18), 0 4px 16px rgba(7, 19, 31, 0.08);
    z-index: 9999;
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}

.live-search-dropdown.is-open {
    display: block;
    animation: dropdownFadeIn 0.18s ease both;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-search-item {
    display: block;
    padding: 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(15, 28, 63, 0.06);
    transition: background 0.12s ease;
}

.live-search-item:last-of-type {
    border-bottom: none;
}

.live-search-item__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.live-search-item__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.live-search-item__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f1c3f;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-search-item__title mark {
    background: rgba(216, 135, 58, 0.2);
    color: #b45a0f;
    border-radius: 3px;
    padding: 0 2px;
}

.live-search-item__cat {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(15, 28, 63, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-search-item:hover,
.live-search-item.is-active {
    background: #f5f7ff;
}

.live-search-item.is-active .live-search-item__title {
    color: #1d4ed8;
}

.live-search-empty {
    padding: 16px 18px;
    font-size: 0.9rem;
    color: rgba(15, 28, 63, 0.5);
}

.live-search-empty strong {
    color: #0f1c3f;
}

.live-search-footer {
    padding: 8px 16px;
    font-size: 0.75rem;
    color: rgba(15, 28, 63, 0.35);
    background: #f9fafb;
    border-top: 1px solid rgba(15, 28, 63, 0.06);
    text-align: center;
}

/* ============================================================
   COMPREHENSIVE SITE-WIDE CSS OVERHAUL
   Covers: editorial hero, featured stories, article layout,
   sidebar, pagination, breadcrumbs, cards, typography, mobile
   ============================================================ */

/* ── SECTION SPACING ── */
.section {
    padding-block: clamp(3rem, 5vw, 5rem);
}

.section--alt {
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%) !important;
}

/* ── CONTAINER ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.container--wide {
    max-width: var(--container-wide);
}

/* ============================================================
   EDITORIAL HERO — grid, content, featured card
   ============================================================ */
.editorial-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.editorial-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.editorial-hero__content {
    position: relative;
    z-index: 1;
}

.editorial-hero__content h1 {
    margin: 0.75rem 0 1rem;
    font-size: clamp(2rem, 3.5vw, 3.8rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #fff !important;
}

.editorial-hero__content>p {
    margin: 0 0 1.75rem;
    max-width: 46ch;
    font-size: clamp(1rem, 0.9rem + 0.35vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75) !important;
}

.editorial-hero__stats {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.editorial-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.5rem 1rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.18);
    margin-top: -1px;
    margin-right: 2rem;
}

.editorial-stat__value {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    color: #fff !important;
}

.editorial-stat__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55) !important;
}

.editorial-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.editorial-hero__search {
    margin-top: 1.5rem;
    max-width: 36rem;
}

.editorial-hero__search--wide {
    max-width: 100%;
}

/* ── FEATURED STORY CARD (inside dark hero) ── */
.featured-story {
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 42px 100px rgba(7, 19, 31, 0.35) !important;
    backdrop-filter: blur(20px);
    will-change: transform;
}

.featured-story__visual {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #0d2236 0%, #183f55 100%);
}

.featured-story__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.featured-story__visual:hover img {
    transform: scale(1.04);
}

.featured-story__visual--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d2236 0%, #22546d 100%);
}

.featured-story__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.featured-story__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.featured-story__eyebrow a,
.featured-story__eyebrow span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary) !important;
    text-decoration: none;
}

.featured-story__eyebrow a:hover {
    color: var(--color-accent-hover) !important;
}

.featured-story__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.15rem, 0.9rem + 0.9vw, 1.7rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.featured-story__title a {
    color: var(--color-heading) !important;
    text-decoration: none;
}

.featured-story__title a:hover {
    color: var(--color-secondary) !important;
}

.featured-story__excerpt {
    margin: 0 0 1.25rem;
    color: var(--color-text-light) !important;
    font-size: 0.95rem;
    line-height: 1.65;
    flex: 1;
}

.featured-story__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 28, 63, 0.08);
    flex-wrap: wrap;
}

.featured-story__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.85rem 0.5rem 0.5rem;
    background: rgba(8, 26, 43, 0.04);
    border-radius: 99px;
    border: 1px solid rgba(8, 26, 43, 0.05);
}

.featured-story__author-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.featured-story__author-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--color-heading) !important;
    line-height: 1.1;
    margin-bottom: 2px;
}

.featured-story__author time {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.featured-story__cta {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-secondary) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-story__cta:hover {
    color: var(--color-accent-hover) !important;
}

.featured-story--empty .featured-story__content {
    min-height: 14rem;
    justify-content: center;
}

/* ============================================================
   EDITORIAL HUB — archive/search content area
   ============================================================ */
.editorial-hub {
    padding-block: clamp(3rem, 5vw, 5rem);
}

.editorial-hub__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

/* ── EDITORIAL SIDEBAR ── */
.editorial-sidebar {
    position: sticky;
    top: calc(5rem + 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.editorial-panel {
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 28, 63, 0.08) !important;
    box-shadow: 0 10px 32px rgba(7, 19, 31, 0.07) !important;
    backdrop-filter: blur(10px);
}

.editorial-panel h2 {
    margin: 0.6rem 0 1rem;
    font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.35rem);
    /* Slightly larger */
    line-height: 1.25;
    font-weight: 800;
    color: var(--color-heading);
}

.editorial-panel p {
    margin: 0 0 1.25rem;
    color: var(--color-text);
    /* Darker text for visibility */
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.editorial-panel--accent {
    background: linear-gradient(135deg, #07131f 0%, #14314a 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 18px 48px rgba(7, 19, 31, 0.22) !important;
    color: #fff;
}

.editorial-panel--accent h2 {
    color: #fff !important;
}

.editorial-panel--accent p {
    color: rgba(255, 255, 255, 0.82) !important;
    /* Brighter for dark background */
}

/* ── SEARCH FORM IN SIDEBAR ── */
.editorial-panel .search-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.editorial-panel .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1rem !important;
    border-radius: 12px !important;
    background: #fff !important;
    border: 2px solid rgba(8, 26, 43, 0.1) !important;
    color: var(--color-primary) !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
}

.editorial-panel .search-field::placeholder {
    color: var(--color-text-muted) !important;
    opacity: 1 !important;
}

.editorial-panel .search-submit {
    padding: 0.8rem 1.25rem !important;
    border-radius: 12px !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.editorial-panel .search-submit:hover {
    background: var(--color-secondary) !important;
}

/* ── SIDEBAR TOPIC PILLS ── */
.topic-cluster .topic-pill {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    background: #fff !important;
    border: 2px solid rgba(8, 26, 43, 0.1) !important;
    border-radius: 99px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    /* Maximum visibility */
    color: var(--color-primary) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 0.5rem !important;
    gap: 0.5rem !important;
}

.topic-cluster .topic-pill span {
    background: rgba(8, 26, 43, 0.06);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.topic-cluster .topic-pill:hover {
    border-color: var(--color-secondary) !important;
    color: var(--color-secondary) !important;
}

.story-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.story-feed__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-feed__list--compact .story-strip {
    padding: 1rem 1.1rem !important;
}

.story-feed__empty {
    padding: 3rem 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 28, 63, 0.07);
    text-align: center;
}

.story-feed__empty h2 {
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.story-feed__empty p {
    color: var(--color-text-light);
}

/* ── STORY STRIP (individual article row) ── */
.story-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.story-strip__visual {
    width: clamp(5.5rem, 10vw, 8rem);
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0d2236 0%, #22546d 100%);
}

.story-strip__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.story-strip:hover .story-strip__visual img {
    transform: scale(1.06);
}

.story-strip__content {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.story-strip__title {
    margin: 0;
    font-size: clamp(1rem, 0.88rem + 0.45vw, 1.3rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.story-strip__title a {
    color: var(--color-heading) !important;
    text-decoration: none;
}

.story-strip__title a:hover {
    color: var(--color-secondary) !important;
}

.story-strip__summary {
    margin: 0;
    color: var(--color-text-light) !important;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   SINGLE POST — story shell, article body, sidebar, nav
   ============================================================ */
.story-shell {
    padding-block: clamp(2.5rem, 4vw, 4rem);
    background: var(--color-bg);
}

/* ── Fix for empty spaces: hide empty paragraphs often generated by wpautop ── */
.story-article__body p:empty,
.story-article__body p:has(br:only-child) {
    display: none;
}

.story-shell__grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    /* fixed TOC width, article fills rest */
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    /* CRITICAL: prevents column stretching that breaks sticky */
}

/* ── STICKY SIDEBAR — CitationZen-style ── */
/* position:sticky only works when:
   1. align-items:start is set on the grid parent
   2. NO ancestor has overflow:hidden or overflow:auto
   3. The sidebar has align-self:start (not stretch)
*/
.story-tools,
.tool-review-sidebar,
.sidebar-sticky {
    position: sticky;
    top: 6.5rem;
    align-self: start;
    /* CRITICAL */
    z-index: 10;
    height: fit-content;
    /* Don't stretch to fill column height */
    will-change: transform;
    /* GPU layer hint for smoother sticking */
}

/* Guarantee no ancestor breaks sticky — overflow MUST be visible */
.story-shell,
.tool-review-layout,
.site-content,
#content,
.entry-content,
main {
    overflow: visible !important;
}

/* The container div itself (story-shell__grid parent) must also not clip */
.container.story-shell__grid,
.container--wide.story-shell__grid {
    overflow: visible !important;
}

/* Rounded card style for TOC and other blocks */
.story-tools__block {
    padding: 1.5rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(216, 135, 58, 0.12) !important;
    box-shadow: 0 12px 36px rgba(15, 28, 63, 0.08) !important;
}

.story-facts {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.story-facts li {
    font-size: 0.88rem;
    color: var(--color-text-light);
    padding-left: 1rem;
    position: relative;
}

.story-facts li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-secondary);
}

.story-toc__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    position: relative;
    padding-bottom: 0.5rem;
}

.story-toc__header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.story-toc__header span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-toc {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    position: relative;
    padding-left: 0.75rem;
    /* Room for the line */
    margin-bottom: 2rem;
}

/* CitationZen style vertical line */
.story-toc::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(216, 135, 58, 0.1);
    border-radius: 1px;
}

.story-toc__link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0 12px 12px 0;
    color: var(--color-text-light) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-toc__link svg {
    flex-shrink: 0;
    margin-top: 0.28rem;
    opacity: 0.3;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.story-toc__link::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background 0.3s ease;
}

.story-toc__link:hover,
.story-toc__link.is-active {
    background: rgba(216, 135, 58, 0.08);
    color: var(--color-secondary) !important;
}

.story-toc__link.is-active::before {
    background: var(--color-secondary);
}

.story-toc__link:hover svg,
.story-toc__link.is-active svg {
    opacity: 1;
    transform: translateX(2px);
    color: var(--color-secondary);
}

.story-toc__link--h3 {
    padding-left: 1.8rem;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Hide any hardcoded or lingering tool boxes in the content */
.story-article__body .story-tools__block--tools,
.story-article__body .tool-comparison-box,
.story-article__body .injected-tool-cta {
    display: none !important;
}

/* ── SHARE LINKS ── */
.story-share {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.story-share a {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.story-share a:hover {
    color: var(--color-secondary) !important;
}

/* ── ARTICLE BODY TYPOGRAPHY ── */
.story-article {
    padding: clamp(2rem, 3.5vw, 3rem);
    border-radius: 28px;
    background: #ffffff !important;
    border: 1px solid rgba(15, 28, 63, 0.07) !important;
    box-shadow: 0 8px 48px rgba(7, 19, 31, 0.07) !important;
    min-width: 0;
}

.story-article__body {
    color: var(--color-text) !important;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
    line-height: 1.8;
    font-weight: 500;
    /* Richer body text */
}

/* ── H2: Section dividers ── */
.story-article__body h2 {
    font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.04em;
    margin: 4.5rem 0 1.5rem;
    color: var(--color-heading) !important;
    position: relative;
    padding-left: 1.25rem;
}

.story-article__body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 6px;
    background: var(--color-secondary);
    border-radius: 4px;
    box-shadow: 2px 0 12px rgba(216, 135, 58, 0.2);
}

/* ── H3: Sub-headings ── */
.story-article__body h3 {
    font-size: clamp(1.1rem, 0.95rem + 0.75vw, 1.7rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.025em;
    margin: 3.5rem 0 1.25rem;
    color: var(--color-heading) !important;
    position: relative;
    padding-left: 1.5rem;
}

.story-article__body h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-secondary);
    box-shadow: 0 0 0 5px rgba(216, 135, 58, 0.1);
}

.story-article__body h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 1.75rem 0 0.6rem;
    color: var(--color-heading) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    color: var(--color-secondary) !important;
}

.story-article__body p {
    margin: 0 0 1.5rem;
    color: var(--color-text) !important;
}

/* ── KEYWORD HIGHLIGHTING ── */
.story-article__body strong,
.story-article__body b {
    font-weight: 800;
    color: var(--color-heading) !important;
    background: linear-gradient(to bottom, transparent 65%, rgba(216, 135, 58, 0.22) 65%, rgba(216, 135, 58, 0.18) 95%, transparent 95%);
    background-size: 100% 100%;
    padding: 0 2px;
    display: inline;
    /* CRITICAL: Must be inline to prevent overlap */
    line-height: inherit;
}

/* ── EM tags: soft italic highlight ── */
.story-article__body em {
    font-style: italic;
    color: var(--color-secondary) !important;
    font-weight: 500;
}

.story-article__body a {
    color: var(--color-secondary) !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.story-article__body a:hover {
    color: var(--color-accent-hover) !important;
}

/* ── Lists: perfectly replicated CitationZen green dots ── */
.story-article__body ul {
    margin: 0 0 2.5rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.story-article__body ul li {
    position: relative !important;
    margin-left: 2.25rem !important;
    /* Force a left-side margin for the dot */
    padding-left: 0 !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.65 !important;
    font-size: 1.05rem !important;
    color: var(--color-text) !important;
    list-style: none !important;
}

.story-article__body ul li::before {
    content: '' !important;
    position: absolute !important;
    left: -1.75rem !important;
    /* Move the dot into the margin space */
    top: 0.55em !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12) !important;
}

/* Fix for H2/H3 markers if they are overlap too */
.story-article__body h2,
.story-article__body h3 {
    padding-left: 1.75rem !important;
    /* Dedicated left space */
}

.story-article__body h2::before {
    left: 0 !important;
}

.story-article__body h3::before {
    left: 0 !important;
}

.story-article__body ol {
    margin: 0 0 2.5rem 2.25rem !important;
    color: var(--color-text) !important;
    padding: 0 !important;
}

.story-article__body ol li {
    margin-bottom: 1.25rem !important;
    line-height: 1.65 !important;
    font-size: 1.05rem !important;
    padding-left: 0.5rem !important;
}

/* Ensure sub-lists also align correctly */
.story-article__body ul ul,
.story-article__body ol ol {
    margin-top: 1.25rem !important;
    margin-bottom: 0 !important;
    margin-left: 1.5rem !important;
}

/* ── Blockquote: pull-quote style ── */
.story-article__body blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid var(--color-secondary);
    border-radius: 0 20px 20px 0;
    background: linear-gradient(135deg, rgba(216, 135, 58, 0.06) 0%, rgba(216, 135, 58, 0.02) 100%);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    color: var(--color-heading) !important;
    line-height: 1.7;
}

.story-article__body blockquote p {
    margin: 0;
}

.story-article__body code {
    padding: 0.18rem 0.45rem;
    border-radius: 6px;
    background: rgba(15, 28, 63, 0.07);
    font-size: 0.88em;
    color: var(--color-teal-dark) !important;
    font-family: 'Menlo', 'Monaco', monospace;
}

.story-article__body pre {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    background: var(--color-bg-dark);
    overflow-x: auto;
}

.story-article__body pre code {
    background: transparent;
    color: rgba(247, 251, 255, 0.9) !important;
    font-size: 0.9rem;
    padding: 0;
}

.story-article__body img {
    max-width: 100%;
    border-radius: 18px;
    margin: 1.5rem 0;
}

.story-article__body hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 1px solid rgba(15, 28, 63, 0.1);
}

.story-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.92rem;
}

.story-article__body th {
    background: rgba(15, 28, 63, 0.06);
    color: var(--color-heading) !important;
    font-weight: 800;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(15, 28, 63, 0.1);
    text-align: left;
}

.story-article__body td {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(15, 28, 63, 0.08);
    color: var(--color-text) !important;
}

/* Tags below article */
.story-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 28, 63, 0.08);
}

/* ── STORY HERO AUTHOR PILL (Single Post) ── */
.story-hero__author {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 2rem;
    padding: 0.6rem 1.2rem 0.6rem 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    /* Sophisticated glass capsule */
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.story-hero__author:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.story-hero__author-avatar {
    flex-shrink: 0;
    line-height: 0;
}

.story-hero__author-avatar img {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.story-hero__author-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.1;
    margin-bottom: 2px;
}

.story-hero__author-title {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Header Join Community Button - Make it POP */
.site-header .btn--primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25) !important;
}

.site-header .btn--primary:hover {
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.4), 0 0 15px rgba(34, 197, 94, 0.3) !important;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%) !important;
}

/* ── AUTHOR SECTION ── */
.story-author-section {
    padding-block: clamp(2.5rem, 4vw, 4rem);
    background: var(--color-bg-alt);
}

.story-author {
    display: flex;
    align-items: flex-start;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(15, 28, 63, 0.08) !important;
    box-shadow: 0 12px 40px rgba(7, 19, 31, 0.08) !important;
}

.story-author__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(216, 135, 58, 0.25);
}

.story-author__content {
    min-width: 0;
}

.story-author__content h2 {
    margin: 0.5rem 0 0.65rem;
    font-size: clamp(1.15rem, 0.9rem + 0.7vw, 1.55rem);
    color: var(--color-heading) !important;
}

.story-author__content p {
    color: var(--color-text-light) !important;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 1rem;
}

.story-author__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--color-secondary) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.story-author__link:hover {
    color: var(--color-accent-hover) !important;
}

/* ── PREV / NEXT NAVIGATION ── */
.story-nav-section {
    padding-block: clamp(2rem, 3vw, 3rem);
    background: var(--color-bg);
    border-top: 1px solid rgba(15, 28, 63, 0.07);
}

.story-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.story-nav__item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.35rem 1.5rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 28, 63, 0.08);
    box-shadow: 0 6px 20px rgba(7, 19, 31, 0.06);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-nav__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(7, 19, 31, 0.12);
}

.story-nav__item--next {
    text-align: right;
}

.story-nav__item strong {
    display: block;
    font-size: clamp(0.92rem, 0.82rem + 0.35vw, 1.1rem);
    line-height: 1.3;
    color: var(--color-heading) !important;
}

.story-nav__item .editorial-panel__label {
    color: var(--color-text-muted) !important;
}

/* ── RELATED STORIES ── */
.story-related {
    padding-block: clamp(2.5rem, 4vw, 4.5rem);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

/* ── READING PROGRESS BAR ── */
[data-reading-progress] {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 28, 63, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text) !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-numbers:hover {
    background: var(--color-primary);
    color: #fff !important;
    border-color: var(--color-primary);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #c8792d 0%, #e0a154 100%);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(200, 121, 45, 0.28);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    pointer-events: none;
    color: var(--color-text-muted) !important;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.hropslab-breadcrumbs {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(8, 26, 43, 0.05);
    background: rgba(255, 255, 255, 0.5);
}

.hropslab-breadcrumbs__inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hropslab-breadcrumbs a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hropslab-breadcrumbs a:hover {
    color: var(--color-secondary);
}

.hropslab-breadcrumbs__sep {
    opacity: 0.4;
    font-weight: 400;
}

.breadcrumbs,
.breadcrumb-trail {
    padding: 0.85rem 0;
    background: transparent;
}

.breadcrumbs .container,
.breadcrumb-trail .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumbs a,
.breadcrumb-trail a,
.breadcrumb-trail .breadcrumb-item a {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted) !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover,
.breadcrumb-trail a:hover {
    color: var(--color-secondary) !important;
}

.breadcrumbs span,
.breadcrumb-trail span,
.breadcrumb-trail .sep {
    font-size: 0.72rem;
    color: var(--color-text-muted) !important;
}

.breadcrumbs .current,
.breadcrumb-trail .current {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-light) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   404 PAGE & ARTICLE CARDS
   ============================================================ */
.error-404__shell {
    max-width: 52rem;
    margin-inline: auto;
    padding: clamp(2.5rem, 4vw, 4rem);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(15, 28, 63, 0.08) !important;
    box-shadow: 0 16px 50px rgba(7, 19, 31, 0.1) !important;
    text-align: center;
}

.error-404__shell h1 {
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 1;
    color: var(--color-heading) !important;
    margin: 0.5rem 0 0;
}

.error-404__shell h2 {
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
    color: var(--color-heading) !important;
    margin: 0.75rem 0 1rem;
}

.error-404__shell p {
    color: var(--color-text-light) !important;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 46ch;
    margin-inline: auto;
    margin-bottom: 1.75rem;
}

.error-404__search {
    max-width: 28rem;
    margin: 0 auto 2rem;
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

/* Article cards grid (used on 404 popular section) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.article-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(15, 28, 63, 0.08) !important;
    box-shadow: 0 10px 30px rgba(7, 19, 31, 0.07) !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(7, 19, 31, 0.12) !important;
}

.article-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.05);
}

.article-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.article-card__title {
    margin: 0;
    font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.2rem);
    line-height: 1.3;
}

.article-card__title a {
    color: var(--color-heading) !important;
    text-decoration: none;
}

.article-card__title a:hover {
    color: var(--color-secondary) !important;
}

.article-card__excerpt {
    margin: 0;
    color: var(--color-text-light) !important;
    font-size: 0.88rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   PAGE TEMPLATE (page.php)
   ============================================================ */
.page-content {
    max-width: 78ch;
    margin-inline: auto;
    padding-block: clamp(3rem, 5vw, 5rem);
    color: var(--color-text);
}

.page-content h2 {
    color: var(--color-heading) !important;
    margin-top: 2.5rem;
}

.page-content p {
    color: var(--color-text) !important;
    line-height: 1.75;
}

/* ============================================================
   GLOBAL LINK COLORS — body content only
   ============================================================ */
.story-article__body a:not(.btn):not(.article-newsletter-cta__btn),
.editorial-panel a:not(.btn):not(.article-newsletter-cta__btn),
.about-content a:not(.btn):not(.article-newsletter-cta__btn) {
    color: var(--color-secondary) !important;
}

/* ============================================================
   MOBILE RESPONSIVE — editorial hero & article
   ============================================================ */
@media (max-width: 960px) {
    .editorial-hero__grid {
        grid-template-columns: 1fr;
    }

    .featured-story {
        max-height: 28rem;
        flex-direction: row;
    }

    .featured-story__visual {
        aspect-ratio: 4 / 3;
        width: 38%;
        flex-shrink: 0;
    }

    .featured-story__content {
        overflow: auto;
    }

    .editorial-hub__grid {
        grid-template-columns: 1fr;
    }

    .editorial-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .editorial-sidebar .editorial-panel {
        flex: 1 1 16rem;
    }

    .story-shell__grid {
        grid-template-columns: 1fr;
    }

    .story-tools {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .story-tools .story-tools__block {
        flex: 1 1 14rem;
    }

    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .editorial-hero__grid {
        grid-template-columns: 1fr;
    }

    .featured-story {
        flex-direction: column;
        max-height: none;
    }

    .featured-story__visual {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .editorial-hero__stats {
        flex-wrap: wrap;
    }

    .story-nav {
        grid-template-columns: 1fr;
    }

    .story-author {
        flex-direction: column;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .story-strip {
        grid-template-columns: 1fr;
    }

    .story-strip__visual {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

/* ============================================================
   GLOBAL FIXES — prevent invisible text everywhere
   ============================================================ */

/* Body / card areas — ensure text is always dark */
.home-hero__content h1,
.home-hero__content .section-kicker,
.home-hero__lede,
.home-hero__support {
    color: var(--color-heading) !important;
}

/* Coverage / homepage cards */
.coverage-lead h3,
.coverage-stack__item h3 {
    color: var(--color-heading) !important;
}

.coverage-lead p,
.coverage-stack__item p {
    color: var(--color-text-light) !important;
}

/* Signal section headings (dark bg, need white) */
.signal-section h2,
.signal-section .signal-section__label {
    color: #fff !important;
}

/* Footer link text already white from existing rules */

/* Ensure all card/white-bg text is readable */
.coverage-stack__item,
.podcast-stack__item,
.expert-list__item {
    color: var(--color-text) !important;
}

/* Proof band */
.proof-band__item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    color: var(--color-heading) !important;
    margin-bottom: 0.25rem;
}

/* Topic system links */
.topic-system__link {
    color: var(--color-heading) !important;
}

/* Ensure signup panel labels & headings are dark (white card) */
.signup-panel h2 {
    color: var(--color-heading) !important;
}

.signup-panel p {
    color: var(--color-text-light) !important;
}

/* ============================================================
   ARTICLE READABILITY & KEY TERM HIGHLIGHTING
   ============================================================ */

/* Drop cap on first paragraph */
.story-article__body>p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 0.78;
    margin: 0.08em 0.1em 0 0;
    color: var(--color-secondary);
}

/* Strong tags = highlighted key terms (amber tint, not bold-only) */
.story-article__body strong,
.story-article__body b {
    font-weight: 800;
    color: var(--color-heading) !important;
    background: linear-gradient(120deg, rgba(216, 135, 58, 0.14) 0%, rgba(216, 135, 58, 0.08) 100%);
    border-radius: 3px;
    padding: 0 3px;
}

/* H2 with decorative left accent */
.story-article__body h2 {
    position: relative;
    padding-left: 1rem;
    margin-left: -1rem;
}

.story-article__body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-accent) 100%);
}

/* Callout-style first paragraph (lead-in) */
.story-article__body>p:first-of-type {
    font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.22rem);
    color: var(--color-text) !important;
    font-weight: 500;
    line-height: 1.75;
}

/* Inline code + mark highlights */
.story-article__body mark {
    background: rgba(216, 135, 58, 0.2);
    color: var(--color-heading) !important;
    border-radius: 3px;
    padding: 0 3px;
}

/* Blockquote — pull-quote style */
.story-article__body blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.5rem 1.75rem 1.5rem 2rem;
    border-left: 4px solid var(--color-secondary);
    border-radius: 0 18px 18px 0;
    background: linear-gradient(135deg, rgba(216, 135, 58, 0.06) 0%, rgba(34, 84, 109, 0.04) 100%);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text) !important;
}

.story-article__body blockquote::before {
    content: '"';
    position: absolute;
    top: -0.4rem;
    left: 1rem;
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-secondary);
    opacity: 0.3;
    line-height: 1;
}

/* Key stats / call-out boxes — when Claude wraps content in <ul> after an h3 */
.story-article__body ul {
    list-style: none;
    padding: 0;
}

.story-article__body ul li {
    position: relative;
    padding: 0.5rem 0.5rem 0.5rem 1.6rem;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.story-article__body ul li::before {
    content: '→';
    position: absolute;
    left: 0.4rem;
    top: 0.5rem;
    color: var(--color-secondary);
    font-weight: 800;
    font-size: 0.85rem;
}

.story-article__body ul li:hover {
    background: rgba(216, 135, 58, 0.05);
}

/* Numbered lists */
.story-article__body ol {
    padding-left: 1.5rem;
    counter-reset: ol-counter;
    list-style: none;
}

.story-article__body ol li {
    position: relative;
    padding-left: 0.5rem;
    counter-increment: ol-counter;
}

.story-article__body ol li::before {
    content: counter(ol-counter) '.';
    position: absolute;
    left: -1.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 0.92rem;
}

/* Featured image in article */
.story-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.story-hero__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0d2236 0%, #22546d 100%);
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Story hero grid layout */
.story-hero .story-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    padding-block: clamp(3rem, 5vw, 5rem);
}

@media (max-width: 860px) {
    .story-hero .story-hero__grid {
        grid-template-columns: 1fr;
    }

    .story-hero__visual {
        order: -1;
        max-height: 320px;
        overflow: hidden;
        border-radius: 20px;
    }
}

/* ── Subscribe page form ── */
.mc4wp-form input[type="email"],
.subscribe-form input[type="email"],
form input[type="email"] {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0f1c3f !important;
    border: 1px solid rgba(15, 28, 63, 0.14) !important;
}

/* Green subscribe button → theme primary color */
.mc4wp-form input[type="submit"],
.mc4wp-form button[type="submit"],
.subscribe-form input[type="submit"],
form input[type="submit"] {
    background: linear-gradient(135deg, #c8792d 0%, #e0a154 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

/* =============================================================
   BLOG CARD GRID SYSTEM
   ============================================================= */

.blog-hero-simple {
    background: linear-gradient(135deg, #081a2b 0%, #13304a 100%);
    padding: 60px 0 48px;
    color: #fff;
}

.blog-hero-simple__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.blog-hero-simple__text {
    flex: 1;
    min-width: 280px;
}

.blog-hero-simple__text .editorial-kicker {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #d8873a;
    margin-bottom: 12px;
}

.blog-hero-simple__text h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    color: #fff !important;
    margin: 0 0 12px;
    line-height: 1.15;
}

.blog-hero-simple__text p {
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    max-width: 520px;
    margin: 0;
}

.blog-hero-simple__search {
    flex-shrink: 0;
    min-width: 260px;
}

.blog-hero-simple__search .search-form {
    display: flex;
    gap: 8px;
}

.blog-hero-simple__search .search-field {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .9rem;
    outline: none;
}

.blog-hero-simple__search .search-field::placeholder {
    color: rgba(255, 255, 255, .5);
}

.blog-hero-simple__search .search-submit {
    padding: 10px 18px;
    background: #d8873a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
}

.blog-index-section {
    padding: 52px 0 80px;
    background: #f5f7fa;
    min-height: 60vh;
}

.blog-topic-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    align-items: center;
}

.blog-topic-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    /* Better padding */
    border-radius: 999px;
    border: 2px solid rgba(8, 26, 43, 0.15);
    /* More visible border */
    background: #fff;
    color: var(--color-primary);
    /* Darker text */
    font-size: .82rem;
    font-weight: 700;
    /* Bolder */
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}

.blog-topic-pill:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: #fff8f2;
}

.blog-topic-pill--active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ── Topic pill per-category colors ─────────────────────────── */
.blog-topic-pill--hr-operations {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.blog-topic-pill--hr-strategy {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #5b21b6;
}

.blog-topic-pill--ai-spotlight,
.blog-topic-pill--ai-and-technology,
.blog-topic-pill--ai-technology {
    background: #cffafe;
    border-color: #67e8f9;
    color: #0e7490;
}

.blog-topic-pill--recruitment,
.blog-topic-pill--recruitment-hiring {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.blog-topic-pill--employee-retention {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.blog-topic-pill--payroll-compensation {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.blog-topic-pill--global-hr {
    background: #ccfbf1;
    border-color: #5eead4;
    color: #0f766e;
}

.blog-topic-pill--leadership-culture {
    background: #fce7f3;
    border-color: #f9a8d4;
    color: #9d174d;
}

.blog-topic-pill--eor-services {
    background: #e0e7ff;
    border-color: #a5b4fc;
    color: #3730a3;
}

.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.blog-cards-grid--archive {
    grid-template-columns: repeat(2, 1fr);
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06), 0 0 0 1px rgba(0, 0, 0, .04);
    transition: box-shadow .28s ease, transform .28s ease;
    text-decoration: none;
    position: relative;
}

.blog-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, .15), 0 2px 8px rgba(0, 0, 0, .06);
    transform: translateY(-6px);
}

.blog-card__image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #0f1c3f 0%, #1a3a5c 100%);
    text-decoration: none;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.06);
}

.blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1c3f 0%, #22546d 60%, #d8873a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card__image-placeholder::after {
    content: 'hropslab';
    color: rgba(255, 255, 255, .25);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.blog-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(216, 135, 58, .92);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

.blog-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    color: #0f1c3f;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-card__title a:hover {
    color: #d8873a;
}

.blog-card__excerpt {
    font-size: .85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    gap: 8px;
}

.blog-card__date {
    font-size: .75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.blog-card__read-time {
    color: #c4cdd6;
}

.blog-card__read-more {
    font-size: .8rem;
    font-weight: 700;
    color: #d8873a;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s;
    flex-shrink: 0;
}

.blog-card__read-more:hover {
    color: #b8692a;
}

.blog-pagination {
    text-align: center;
    padding: 12px 0;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    text-decoration: none;
    transition: all .15s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #d8873a;
    border-color: #d8873a;
    color: #fff;
}

.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.blog-empty h2 {
    color: #374151;
    margin-bottom: 10px;
}

.story-hero__placeholder {
    background: linear-gradient(135deg, #0f1c3f 0%, #22546d 60%, #d8873a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    min-height: 200px;
}

.story-hero__placeholder span {
    color: rgba(255, 255, 255, .3);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-cards-grid--archive {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .blog-cards-grid,
    .blog-cards-grid--archive {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .blog-hero-simple {
        padding: 40px 0 32px;
    }

    .blog-hero-simple__text h1 {
        font-size: 1.8rem;
    }

    .blog-topic-filter {
        gap: 6px;
    }

    .blog-index-section {
        padding: 32px 0 60px;
    }
}

/* ── SINGLE POST: ELEGANT HERO REFINEMENTS ── */

/* Smaller, sharper title — was clamp(2.7rem, 5vw, 5rem) */
.story-hero__content h1,
.story-hero h1 {
    font-size: clamp(1.65rem, 2.8vw, 2.6rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    max-width: 28ch !important;
    margin-top: 0.6rem !important;
    margin-bottom: 0.6rem !important;
}

/* Tighter deck text */
.story-hero .story-hero__deck {
    font-size: clamp(0.93rem, 0.88rem + 0.28vw, 1.08rem) !important;
    line-height: 1.65 !important;
    max-width: 54ch !important;
    margin-top: 0.5rem !important;
}

/* Compact meta board values */
.story-hero .story-meta-board__item strong {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.4rem) !important;
    line-height: 1.1 !important;
}

/* Reduce hero vertical padding slightly */
.story-hero .story-hero__grid {
    padding-top: clamp(2.5rem, 4.5vw, 4.5rem) !important;
    padding-bottom: clamp(2.5rem, 4.5vw, 4.5rem) !important;
}

/* Visual: absolutely-positioned image fills full card — no blank gap */
.story-hero__visual {
    position: relative !important;
    display: block !important;
    align-self: stretch !important;
    min-height: 400px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #0f1c3f 0%, #1a3a5c 100%);
}

/* Image fills 100% of container via absolute positioning */
.story-hero__visual img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
}

/* Blog card images — same fix via aspect-ratio container */
.blog-card__image-link {
    aspect-ratio: 16 / 9 !important;
    background: linear-gradient(135deg, #0f1c3f 0%, #1a3a5c 100%) !important;
}

.blog-card__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Featured story visual in archive hero */
.featured-story__visual {
    overflow: hidden !important;
    background: linear-gradient(135deg, #0d2236 0%, #183f55 100%) !important;
}

.featured-story__visual img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

@media (max-width: 860px) {

    .story-hero__content h1,
    .story-hero h1 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        max-width: 100% !important;
    }

    .story-hero__visual {
        min-height: 260px !important;
    }
}

/* ================================================================
   SINGLE POST — ELEGANT REDESIGN (Remoasset-inspired)
   ================================================================ */

/* ── 0. Smooth scroll globally ── */
html {
    scroll-behavior: smooth;
}

/* ── 1. HERO: author row polish ── */
.story-hero .story-hero__author {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    margin-top: 1.25rem !important;
    padding: 0.8rem 1rem !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 999px !important;
    backdrop-filter: blur(8px) !important;
    width: fit-content !important;
}

.story-hero .story-hero__author-avatar img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
}

.story-hero .story-hero__author>div {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    flex-wrap: wrap !important;
}

.story-hero .story-hero__author-name {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.story-hero .story-hero__author div>a {
    font-size: 0.78rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    padding-left: 0.6rem !important;
    border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* ── 2. HERO: meta board compact row ── */
.story-hero .story-meta-board {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    margin-top: 1.1rem !important;
}

.story-hero .story-meta-board__item {
    padding: 0.55rem 1.1rem !important;
    border-top: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.story-hero .story-meta-board__item:first-child {
    padding-left: 0 !important;
}

.story-hero .story-meta-board__item:last-child {
    border-right: none !important;
}

.story-hero .story-meta-board__item span {
    font-size: 0.68rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.5) !important;
    display: block !important;
    margin-bottom: 0.2rem !important;
}

.story-hero .story-meta-board__item strong {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}

/* ── 3. TABLE OF CONTENTS — hide sub-topics (H3) ── */
.story-toc__link--h3 {
    display: none !important;
}

/* ── 4. TOC: Remoasset-style chevron + active state ── */
.story-tools__block .editorial-panel__label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.13em !important;
    color: var(--color-text-light) !important;
}

.story-toc {
    gap: 0.08rem !important;
    margin-top: 0.6rem !important;
}

.story-toc__link {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.7rem !important;
    border-radius: 8px !important;
    border-left: none !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: var(--color-text-light) !important;
    line-height: 1.45 !important;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease !important;
    position: relative !important;
}

/* Chevron icon via pseudo-element */
.story-toc__link::before {
    content: '\203A';
    /* › */
    flex-shrink: 0 !important;
    margin-top: 0.05em !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    color: rgba(15, 28, 63, 0.25) !important;
    transition: color 0.18s ease, transform 0.18s ease !important;
}

.story-toc__link:hover {
    background: rgba(15, 28, 63, 0.05) !important;
    color: var(--color-heading) !important;
    transform: translateX(2px) !important;
}

.story-toc__link:hover::before {
    color: var(--color-secondary) !important;
}

.story-toc__link.is-active {
    background: rgba(216, 135, 58, 0.1) !important;
    color: var(--color-secondary) !important;
    font-weight: 700 !important;
    transform: translateX(3px) !important;
}

.story-toc__link.is-active::before {
    color: var(--color-secondary) !important;
    transform: scale(1.2) !important;
}

/* ── 5. SIDEBAR BLOCK: tighter heading label ── */
.story-tools__block {
    padding: 1.1rem 1.2rem !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 1px solid rgba(15, 28, 63, 0.07) !important;
    box-shadow: 0 4px 20px rgba(15, 28, 63, 0.06) !important;
}

/* ── 6. ARTICLE BODY: heading accent line ── */
.story-article__body h2 {
    position: relative !important;
    padding-bottom: 0.6rem !important;
    margin-top: 2.8rem !important;
}

.story-article__body h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 2.5rem !important;
    height: 3px !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent, #0096b7)) !important;
}

/* ── 7. READING PROGRESS BAR ── */
.reading-progress {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: rgba(15, 28, 63, 0.08) !important;
    z-index: 9999 !important;
}

/* JS drives this with scaleX — needs transform-origin: left */
.reading-progress span,
[data-reading-progress] {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, var(--color-secondary, #d8873a) 0%, #ff9f5a 50%, var(--color-accent, #0096b7) 100%) !important;
    transform-origin: left center !important;
    transform: scaleX(0) !important;
    transition: transform 0.1s linear !important;
}

/* ── 8. GLOBAL ANIMATIONS ── */
@keyframes pohq-fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pohq-slide-left {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Default: animate-in fires immediately (for hero / above-fold content) */
.animate-in {
    animation: pohq-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* scroll-reveal: hidden until JS adds .is-visible */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sidebar blocks slide in from the left */
.story-tools__block.scroll-reveal {
    transform: translateX(-18px);
    transition-delay: 0.08s;
}

.story-tools__block.scroll-reveal:nth-child(2) {
    transition-delay: 0.16s;
}

.story-tools__block.scroll-reveal:nth-child(3) {
    transition-delay: 0.24s;
}

.story-tools__block.scroll-reveal.is-visible {
    transform: translateX(0);
}

/* Article body slides in from right */
.story-article.scroll-reveal {
    transform: translateX(16px);
}

.story-article.scroll-reveal.is-visible {
    transform: translateX(0);
}

/* Stagger delays for grid children */
.blog-cards-grid .animate-in:nth-child(1) {
    animation-delay: 0.05s;
}

.blog-cards-grid .animate-in:nth-child(2) {
    animation-delay: 0.12s;
}

.blog-cards-grid .animate-in:nth-child(3) {
    animation-delay: 0.19s;
}

.blog-cards-grid .animate-in:nth-child(4) {
    animation-delay: 0.26s;
}

.blog-cards-grid .animate-in:nth-child(5) {
    animation-delay: 0.33s;
}

.blog-cards-grid .animate-in:nth-child(6) {
    animation-delay: 0.40s;
}

.story-feed__list .animate-in:nth-child(1) {
    animation-delay: 0.05s;
}

.story-feed__list .animate-in:nth-child(2) {
    animation-delay: 0.14s;
}

.story-feed__list .animate-in:nth-child(3) {
    animation-delay: 0.23s;
}

/* ── 9. SMOOTH CARD HOVER TRANSITIONS ── */
.blog-card {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.blog-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 48px rgba(7, 19, 31, 0.14) !important;
}

.featured-story {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.featured-story:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 24px 56px rgba(7, 19, 31, 0.2) !important;
}

/* Buttons */
.btn {
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        background 0.18s ease, color 0.18s ease,
        border-color 0.18s ease !important;
}

.btn:hover {
    transform: translateY(-1px) !important;
}

.btn:active {
    transform: translateY(0) !important;
}

/* Nav links */
.main-nav>li>a,
.sub-menu a,
.story-share a,
.story-toc__link,
.topic-pill {
    transition: color 0.18s ease, background 0.18s ease,
        border-color 0.18s ease, transform 0.15s ease !important;
}

/* ── 10. STORY AUTHOR SECTION ── */
.story-author {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 1.75rem 2rem !important;
    border-radius: 20px !important;
    background: #fff !important;
    border: 1px solid rgba(15, 28, 63, 0.08) !important;
    box-shadow: 0 6px 24px rgba(15, 28, 63, 0.07) !important;
}

.story-author__avatar img {
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid rgba(216, 135, 58, 0.3) !important;
    transition: border-color 0.2s ease !important;
}

.story-author__avatar img:hover {
    border-color: var(--color-secondary) !important;
}

/* ── 11. STORY NAV SECTION ── */
.story-nav {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 1rem !important;
}

.story-nav__item {
    padding: 1.25rem 1.5rem !important;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(15, 28, 63, 0.08) !important;
    box-shadow: 0 4px 16px rgba(15, 28, 63, 0.06) !important;
    text-decoration: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease,
        border-color 0.22s ease !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
}

.story-nav__item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 36px rgba(15, 28, 63, 0.12) !important;
    border-color: rgba(216, 135, 58, 0.3) !important;
}

.story-nav__item strong {
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
    color: var(--color-heading) !important;
}

/* ── 12. STORY ARTICLE LINK HOVER ── */
.story-article__body a {
    transition: color 0.15s ease, text-decoration-color 0.15s ease !important;
}

/* ── Hero: author title tag ── */
.story-hero .story-hero__author-title {
    display: block !important;
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-weight: 500 !important;
    margin-top: 1px !important;
}

/* ── Author section: role tag ── */
.story-author__role {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.story-author__content h2 {
    margin: 0.25rem 0 0.2rem !important;
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem) !important;
}

/* ── Blog card: author row ── */
.blog-card__footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

.blog-card__author {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    min-width: 0 !important;
}

.blog-card__author-avatar {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border: 1.5px solid rgba(15, 28, 63, 0.12) !important;
}

.blog-card__author-name {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--color-heading) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.blog-card__sep,
.blog-card__date {
    font-size: 0.74rem !important;
    color: var(--color-text-light) !important;
    white-space: nowrap !important;
}

/* ── Mobile ── */
@media (max-width: 860px) {
    .story-hero .story-meta-board {
        gap: 0 !important;
    }

    .story-hero .story-meta-board__item {
        padding: 0.4rem 0.8rem !important;
    }

    .story-author {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1.5rem !important;
    }
}

/* ================================================================
   TOPIC CLUSTER — Sidebar Tools Block + Mid-Article CTA
   ================================================================ */

/* ── SIDEBAR tools block ── */
.story-tools__block--tools {
    background: linear-gradient(135deg, #0f1c3f 0%, #17335c 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.story-tools__block--tools .editorial-panel__label {
    color: rgba(255, 255, 255, 0.55) !important;
}

.sidebar-tools-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.sidebar-tool-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.sidebar-tool-item:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(216, 135, 58, 0.5);
    transform: translateX(3px);
}

.sidebar-tool-item__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 1.6rem;
    text-align: center;
}

.sidebar-tool-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-tool-item__info strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.sidebar-tool-item__info span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.2;
}

.sidebar-tool-item__arrow {
    font-size: 0.8rem;
    color: rgba(216, 135, 58, 0.7);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.sidebar-tool-item:hover .sidebar-tool-item__arrow {
    transform: translateX(3px);
    color: #d8873a;
}

.sidebar-tools-more {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: rgba(216, 135, 58, 0.15);
    border: 1px solid rgba(216, 135, 58, 0.3);
    color: #d8873a !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.sidebar-tools-more:hover {
    background: rgba(216, 135, 58, 0.25);
    border-color: rgba(216, 135, 58, 0.6);
}

/* ── MID-ARTICLE inline tool CTA ── */
.topic-cluster-cta {
    margin: 2.2rem 0;
    padding: 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8f4ee 0%, #fef9f3 100%);
    border: 1px solid rgba(216, 135, 58, 0.2);
    box-shadow: 0 4px 20px rgba(216, 135, 58, 0.08);
}

.topic-cluster-cta__header {
    margin-bottom: 1rem;
}

.topic-cluster-cta__label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d8873a;
    margin-bottom: 0.3rem;
}

.topic-cluster-cta__title {
    font-size: 0.95rem;
    color: #374151;
    margin: 0;
}

.topic-cluster-cta__title strong {
    color: #0f1c3f;
}

.topic-cluster-cta__tools {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.topic-cluster-cta__tool {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(15, 28, 63, 0.08);
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    box-shadow: 0 2px 8px rgba(15, 28, 63, 0.04);
}

.topic-cluster-cta__tool:hover {
    border-color: rgba(216, 135, 58, 0.4);
    box-shadow: 0 4px 16px rgba(216, 135, 58, 0.12);
    transform: translateX(4px);
}

.topic-cluster-cta__tool-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.topic-cluster-cta__tool-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.topic-cluster-cta__tool-info strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f1c3f;
}

.topic-cluster-cta__tool-info span {
    font-size: 0.75rem;
    color: #6b7280;
}

.topic-cluster-cta__tool-arrow {
    font-size: 0.9rem;
    color: #d8873a;
    flex-shrink: 0;
    font-weight: 700;
    transition: transform 0.15s ease;
}

.topic-cluster-cta__tool:hover .topic-cluster-cta__tool-arrow {
    transform: translateX(4px);
}

.topic-cluster-cta__view-all {
    display: block;
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    background: #0f1c3f;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.topic-cluster-cta__view-all:hover {
    background: #17335c;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .topic-cluster-cta {
        padding: 1.1rem;
        border-radius: 14px;
    }
}

/* ================================================================
   PMP-STYLE STRUCTURAL ELEMENTS
   ================================================================ */

/* ── 1. POPULAR POSTS SIDEBAR ── */
.popular-posts-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.popular-posts-list__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 28, 63, 0.07);
    transition: background 0.15s ease;
}

.popular-posts-list__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-posts-list__num {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 6px;
    background: rgba(15, 28, 63, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
}

.popular-posts-list__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.popular-posts-list__cat {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.popular-posts-list__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-heading) !important;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s ease;
}

.popular-posts-list__title:hover {
    color: var(--color-secondary) !important;
}

/* ── 2. ARCHIVE CATEGORY FILTER PILLS ── */
.archive-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(15, 28, 63, 0.08);
}

.archive-cat-filter__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 28, 63, 0.12);
    background: #fff;
    color: var(--color-text-light) !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.archive-cat-filter__pill span {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(15, 28, 63, 0.35);
    background: rgba(15, 28, 63, 0.06);
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
}

.archive-cat-filter__pill:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary) !important;
    background: rgba(216, 135, 58, 0.05);
}

.archive-cat-filter__pill.is-active {
    background: var(--color-primary, #0f1c3f);
    border-color: var(--color-primary, #0f1c3f);
    color: #fff !important;
}

.archive-cat-filter__pill.is-active span {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* ── 3. MID-ARTICLE NEWSLETTER CTA ── */
.article-newsletter-cta {
    margin: 2.5rem 0;
    border-radius: 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.article-newsletter-cta::before {
    display: none;
}

.article-newsletter-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    flex-wrap: wrap;
}

.article-newsletter-cta__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.article-newsletter-cta__label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d8873a;
}

.article-newsletter-cta__text strong {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f1c3f;
    line-height: 1.3;
}

.article-newsletter-cta__text p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.article-newsletter-cta__btn,
.article-newsletter-cta__btn:link,
.article-newsletter-cta__btn:visited,
.article-newsletter-cta__btn:hover,
.article-newsletter-cta__btn:active,
.story-article__body .article-newsletter-cta__btn,
.story-article__body .article-newsletter-cta__btn:hover {
    color: #fff !important;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
}

.article-newsletter-cta__btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: #d8873a;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 16px rgba(216, 135, 58, 0.35);
}

.article-newsletter-cta__btn:hover {
    background: #c47830;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(216, 135, 58, 0.45);
}

@media (max-width: 600px) {
    .article-newsletter-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }

    .article-newsletter-cta__btn {
        width: 100%;
        text-align: center;
    }

    .archive-cat-filter {
        gap: 0.4rem;
    }
}

/* ================================================================
   BEST TOOLS PAGE
   ================================================================ */

/* Hero */
.tools-page-hero {
    background: linear-gradient(135deg, #091121 0%, #112444 52%, #17335c 100%);
    padding: clamp(3rem, 5vw, 5rem) 0 clamp(2.5rem, 4vw, 4rem);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tools-page-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 135, 58, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.tools-page-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.tools-page-hero .editorial-panel__label {
    color: rgba(216, 135, 58, 0.9) !important;
    margin-bottom: 0.5rem;
    display: block;
}

.tools-page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    margin: 0.3rem 0 0.8rem;
    letter-spacing: -0.025em;
}

.tools-page-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.12rem);
    max-width: 52ch;
    margin: 0;
}

.tools-page-hero__stats {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

.tools-page-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.tools-page-hero__stat:first-child {
    border-left: none;
}

.tools-page-hero__stat strong {
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.tools-page-hero__stat span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.3rem;
    letter-spacing: 0.04em;
}

/* Jump nav */
.tools-jump-nav {
    background: #fff;
    border-bottom: 1px solid rgba(15, 28, 63, 0.08);
    position: sticky;
    top: 76px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(15, 28, 63, 0.06);
}

.tools-jump-nav__inner {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0;
}

.tools-jump-nav__inner::-webkit-scrollbar {
    display: none;
}

.tools-jump-nav__inner>span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    padding: 0 1rem 0 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.tools-jump-nav__inner>a {
    display: inline-block;
    padding: 0.9rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light) !important;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
    flex-shrink: 0;
}

.tools-jump-nav__inner>a:hover {
    color: var(--color-secondary) !important;
    border-bottom-color: var(--color-secondary);
}

/* Body */
.tools-page-body {
    padding: clamp(2rem, 4vw, 4rem) 0;
    background: var(--color-bg, #f7f4ee);
}

/* Category section */
.tools-category-section {
    margin-bottom: clamp(3rem, 5vw, 5rem);
    scroll-margin-top: 130px;
}

.tools-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(15, 28, 63, 0.08);
}

.tools-category-header__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tools-category-header__icon {
    font-size: 1.75rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 28, 63, 0.1);
    flex-shrink: 0;
}

.tools-category-header h2 {
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
    margin: 0 0 0.2rem;
    color: var(--color-heading);
}

.tools-category-header__blog-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-secondary) !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tools-category-header__blog-link:hover {
    color: var(--color-primary) !important;
}

.tools-category-header__count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-light);
    background: rgba(15, 28, 63, 0.06);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    flex-shrink: 0;
}

/* Tools grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* Tool card */
.tool-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 28, 63, 0.08);
    box-shadow: 0 4px 20px rgba(15, 28, 63, 0.06);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.22s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 28, 63, 0.12);
    border-color: rgba(216, 135, 58, 0.3);
}

.tool-card__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.tool-card__emoji {
    font-size: 1.75rem;
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.tool-card__title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tool-card__name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-heading);
    margin: 0;
    line-height: 1.2;
}

.tool-card__tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-secondary);
    background: rgba(216, 135, 58, 0.1);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.tool-card__desc {
    font-size: 0.84rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.tool-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border-top: 1px solid rgba(15, 28, 63, 0.07);
    padding-top: 0.85rem;
}

.tool-card__features li {
    font-size: 0.78rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.tool-card__features li::before {
    content: '✓';
    color: #22c55e;
    font-weight: 800;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.tool-card__footer {
    border-top: 1px solid rgba(15, 28, 63, 0.07);
    padding-top: 0.85rem;
}

.tool-card__cta {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-secondary) !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tool-card__cta:hover {
    color: var(--color-primary) !important;
}

/* Bottom CTA */
.tools-page-cta {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.tools-page-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.tools-page-cta__inner h2 {
    font-size: clamp(1.4rem, 2vw, 2rem);
    color: #fff;
    margin: 0.4rem 0 0.5rem;
}

.tools-page-cta__inner p {
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 860px) {
    .tools-page-hero__inner {
        flex-direction: column;
    }

    .tools-page-hero__stats {
        width: 100%;
        justify-content: center;
    }

    .tools-jump-nav {
        position: static;
    }

    .tools-category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tools-page-cta__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tools-page-hero__stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tools-page-hero__stat {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }
}

/* ================================================================
   GLOBAL DESIGN POLISH — unified, premium feel across all pages
   ================================================================ */

/* ── 1. GLOBAL BODY & TEXT ── */
body {
    font-family: var(--font-body) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    color: var(--color-text) !important;
    background: var(--color-bg) !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading) !important;
    color: var(--color-heading) !important;
    letter-spacing: -0.02em;
    line-height: 1.18;
}

p {
    line-height: 1.78;
}

/* ── 2. SITE HEADER — glassmorphism polish ── */
.site-header {
    background: rgba(6, 14, 26, 0.88) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 4px 24px rgba(4, 10, 20, 0.25) !important;
}

.main-nav>li>a {
    font-family: var(--font-body) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    color: rgba(255, 255, 255, 0.82) !important;
    padding: 0.45rem 0.1rem !important;
    position: relative !important;
}

.main-nav>li>a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--color-secondary) !important;
    border-radius: 2px !important;
    transition: width 0.22s ease !important;
}

.main-nav>li>a:hover::after,
.main-nav>li.current-menu-item>a::after {
    width: 100% !important;
}

.main-nav>li>a:hover {
    color: #fff !important;
}

/* Sub menu */
.sub-menu {
    background: rgba(8, 18, 34, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 20px 60px rgba(4, 10, 20, 0.4) !important;
    padding: 0.5rem !important;
    min-width: 220px !important;
}

.sub-menu a {
    border-radius: 8px !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.84rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500 !important;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease !important;
}

.sub-menu a:hover {
    background: rgba(216, 135, 58, 0.12) !important;
    color: #fff !important;
    padding-left: 1.1rem !important;
}

/* ── 3. SITE ANNOUNCEMENT BAR ── */
.site-announcement {
    background: linear-gradient(90deg, #061524 0%, #0f2540 50%, #061524 100%) !important;
    border-bottom: 1px solid rgba(216, 135, 58, 0.2) !important;
}

.site-announcement__label {
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.site-announcement__links a {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    transition: color 0.18s ease !important;
    padding: 0.2rem 0.6rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.site-announcement__links a:hover {
    color: #fff !important;
    border-color: rgba(216, 135, 58, 0.4) !important;
    background: rgba(216, 135, 58, 0.08) !important;
}

/* ── 4. BUTTONS — premium pill style ── */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.01em !important;
    border-radius: 999px !important;
    padding: 0.65rem 1.4rem !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(216, 135, 58, 0.3) !important;
}

.btn--primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px rgba(216, 135, 58, 0.45) !important;
    color: #fff !important;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.btn--white {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    backdrop-filter: blur(8px) !important;
}

.btn--white:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
}

.btn--lg {
    padding: 0.85rem 2rem !important;
    font-size: 0.96rem !important;
}

.btn--sm {
    padding: 0.45rem 1rem !important;
    font-size: 0.8rem !important;
}

/* ── 5. BLOG CARDS — unified premium cards ── */
.blog-card {
    background: #fff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(9, 34, 52, 0.08) !important;
    box-shadow: 0 4px 24px rgba(7, 19, 31, 0.07) !important;
    overflow: hidden !important;
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.26s ease,
        border-color 0.26s ease !important;
}

.blog-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 50px rgba(7, 19, 31, 0.14) !important;
    border-color: rgba(216, 135, 58, 0.25) !important;
}

.blog-card__body {
    padding: 1.25rem 1.35rem 1.35rem !important;
}

.blog-card__title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin: 0 0 0.6rem !important;
}

.blog-card__title a {
    color: var(--color-heading) !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.blog-card__title a:hover {
    color: var(--color-secondary) !important;
}

.blog-card__excerpt {
    font-size: 0.83rem !important;
    color: var(--color-text-light) !important;
    line-height: 1.65 !important;
    margin: 0 0 1rem !important;
}

.blog-card__badge {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    background: rgba(216, 135, 58, .92);
    color: #fff !important;
    padding: 0.25rem 0.7rem !important;
    border-radius: 999px !important;
    position: absolute !important;
    top: 0.85rem !important;
    left: 0.85rem !important;
}

.blog-card__badge--hr-operations {
    background: rgba(37, 99, 235, .95) !important;
}

.blog-card__badge--hr-strategy {
    background: rgba(124, 58, 237, .95) !important;
}

.blog-card__badge--ai-spotlight,
.blog-card__badge--ai-and-technology,
.blog-card__badge--ai-technology {
    background: rgba(6, 182, 212, .95) !important;
}

.blog-card__badge--recruitment,
.blog-card__badge--recruitment-hiring {
    background: rgba(16, 185, 129, .95) !important;
}

.blog-card__badge--employee-retention {
    background: rgba(245, 158, 11, .95) !important;
}

.blog-card__badge--payroll-compensation {
    background: rgba(239, 68, 68, .95) !important;
}

.blog-card__badge--global-hr {
    background: rgba(20, 184, 166, .95) !important;
}

.blog-card__badge--leadership-culture {
    background: rgba(236, 72, 153, .95) !important;
}

.blog-card__badge--eor-services {
    background: rgba(99, 102, 241, .95) !important;
}

.blog-card__read-more {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--color-secondary) !important;
    text-decoration: none !important;
    transition: color 0.15s ease, letter-spacing 0.15s ease !important;
}

.blog-card__read-more:hover {
    color: var(--color-accent-hover) !important;
    letter-spacing: 0.02em !important;
}

/* ── 6. TOPIC PILLS — across the site ── */
.topic-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    padding: 0.35rem 0.9rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(9, 34, 52, 0.12) !important;
    background: #fff !important;
    color: var(--color-text) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.18s ease, border-color 0.18s ease,
        color 0.18s ease, transform 0.15s ease,
        box-shadow 0.18s ease !important;
    box-shadow: 0 2px 8px rgba(7, 19, 31, 0.05) !important;
}

.topic-pill:hover {
    background: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(216, 135, 58, 0.25) !important;
}

.topic-pill span {
    font-size: 0.68rem !important;
    background: rgba(9, 34, 52, 0.08) !important;
    padding: 0.1rem 0.4rem !important;
    border-radius: 999px !important;
    color: var(--color-text-light) !important;
    transition: background 0.18s ease, color 0.18s ease !important;
}

.topic-pill:hover span {
    background: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ── 7. EDITORIAL KICKER / LABELS ── */
.editorial-kicker,
.editorial-panel__label,
.section-kicker,
.story-hero__eyebrow,
.story-hero .editorial-kicker {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
}

/* ── 8. SECTION BACKGROUNDS ── */
.section--alt {
    background: linear-gradient(180deg, #fff 0%, var(--color-bg) 100%) !important;
}

.section--dark {
    background: linear-gradient(135deg, #061524 0%, #0f2540 60%, #17335c 100%) !important;
}

.section--dark h2,
.section--dark p {
    color: #fff !important;
}

.section--dark p {
    color: rgba(255, 255, 255, 0.68) !important;
}

/* ── 9. EDITORIAL PANELS (sidebar blocks) ── */
.editorial-panel,
.story-tools__block {
    background: #fff !important;
    border-radius: 18px !important;
    border: 1px solid rgba(9, 34, 52, 0.07) !important;
    box-shadow: 0 4px 20px rgba(7, 19, 31, 0.06) !important;
    padding: 1.2rem 1.3rem !important;
    transition: box-shadow 0.22s ease !important;
}

/* ── 10. SEARCH FORM ── */
.search-form {
    display: flex !important;
    gap: 0 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    border: 1.5px solid rgba(9, 34, 52, 0.14) !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(7, 19, 31, 0.06) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.search-form:focus-within {
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 0 3px rgba(216, 135, 58, 0.12) !important;
}

.search-form__input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.88rem !important;
    background: transparent !important;
    color: var(--color-text) !important;
    min-width: 0 !important;
}

.search-form__input::placeholder {
    color: var(--color-text-muted) !important;
}

.search-form__submit {
    padding: 0.55rem 1rem !important;
    background: var(--color-secondary) !important;
    border: none !important;
    cursor: pointer !important;
    color: #fff !important;
    border-radius: 0 999px 999px 0 !important;
    transition: background 0.18s ease !important;
}

.search-form__submit:hover {
    background: var(--color-accent-hover) !important;
}

/* ── 11. HOMEPAGE HERO polish ── */
.home-hero {
    background:
        radial-gradient(ellipse at 70% 10%, rgba(216, 135, 58, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 5% 90%, rgba(216, 135, 58, 0.04) 0%, transparent 40%),
        linear-gradient(160deg, #fefcf9 0%, #fdf8f2 50%, #fefcf9 100%) !important;
}

.home-hero h1 {
    color: var(--color-heading) !important;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem) !important;
    letter-spacing: -0.03em !important;
    line-height: 1.08 !important;
}

/* ── 12. BREADCRUMBS ── */
.breadcrumbs,
.pohq-breadcrumbs {
    padding: 0.85rem 0 !important;
    font-size: 0.78rem !important;
    color: var(--color-text-light) !important;
}

.breadcrumbs a,
.pohq-breadcrumbs a {
    color: var(--color-text-light) !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.breadcrumbs a:hover,
.pohq-breadcrumbs a:hover {
    color: var(--color-secondary) !important;
}

.breadcrumbs span,
.pohq-breadcrumbs span {
    color: var(--color-text-muted) !important;
}

/* ── 13. PAGINATION ── */
.blog-pagination .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin-top: 2.5rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(9, 34, 52, 0.08) !important;
}

.blog-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.4rem !important;
    height: 2.4rem !important;
    border-radius: 10px !important;
    border: 1px solid rgba(9, 34, 52, 0.1) !important;
    background: #fff !important;
    color: var(--color-text) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
    box-shadow: 0 2px 8px rgba(7, 19, 31, 0.05) !important;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(216, 135, 58, 0.3) !important;
}

.blog-pagination .page-numbers.dots {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* ── 14. FOOTER ── */
.site-footer {
    background: linear-gradient(180deg, #04101e 0%, #020c18 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: auto !important;
    padding-top: 3rem !important;
}

.site-footer a:not(.btn):hover {
    color: var(--color-secondary) !important;
}

/* ── 15. FORMS (contact, signup) ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    font-family: var(--font-body) !important;
    font-size: 0.92rem !important;
    border: 1.5px solid rgba(9, 34, 52, 0.14) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    background: #fff !important;
    color: var(--color-text) !important;
    width: 100% !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
    outline: none !important;
    -webkit-appearance: none !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 0 3px rgba(216, 135, 58, 0.12) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted) !important;
}

/* ── 16. SIGNAL BOARD (homepage hero card) ── */
.signal-board__lead {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(12px) !important;
    padding: 1.5rem !important;
    transition: background 0.22s ease !important;
}

.signal-board__lead:hover {
    background: rgba(255, 255, 255, 0.09) !important;
}

.signal-board__topic {
    border-radius: 10px !important;
    padding: 0.55rem 0.85rem !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    transition: background 0.18s ease, border-color 0.18s ease,
        transform 0.18s ease !important;
}

.signal-board__topic:hover {
    background: rgba(216, 135, 58, 0.15) !important;
    border-color: rgba(216, 135, 58, 0.3) !important;
    transform: translateX(3px) !important;
}

/* ── 17. PROOF BAND (homepage stats strip) ── */
.proof-band {
    background: #fff !important;
    border-top: 1px solid rgba(9, 34, 52, 0.07) !important;
    border-bottom: 1px solid rgba(9, 34, 52, 0.07) !important;
    box-shadow: 0 4px 20px rgba(7, 19, 31, 0.05) !important;
}

.proof-band__item {
    padding: 1.5rem 1.25rem !important;
    border-left: 1px solid rgba(9, 34, 52, 0.07) !important;
    transition: background 0.18s ease !important;
}

.proof-band__item:first-child {
    border-left: none !important;
}

.proof-band__item:hover {
    background: rgba(216, 135, 58, 0.04) !important;
}

.proof-band__item span {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--color-secondary) !important;
}

.proof-band__item p {
    font-size: 0.88rem !important;
    color: var(--color-text) !important;
    margin: 0.3rem 0 0 !important;
    font-weight: 500 !important;
}

/* ── 18. RELATED / STORY STRIP cards ── */
.story-strip {
    background: #fff !important;
    border-radius: 18px !important;
    border: 1px solid rgba(9, 34, 52, 0.08) !important;
    box-shadow: 0 4px 20px rgba(7, 19, 31, 0.06) !important;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s ease !important;
    overflow: hidden !important;
}

.story-strip:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(7, 19, 31, 0.12) !important;
}

/* ── 19. FOCUS STYLES (accessibility) ── */
:focus-visible {
    outline: 2px solid var(--color-secondary) !important;
    outline-offset: 3px !important;
    border-radius: 4px !important;
}

/* ── 20. SELECTION colour ── */
::selection {
    background: rgba(216, 135, 58, 0.25) !important;
    color: var(--color-heading) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .btn--lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    .proof-band__grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .proof-band__item {
        border-left: none !important;
        border-top: 1px solid rgba(9, 34, 52, 0.07) !important;
    }

    .proof-band__item:first-child,
    .proof-band__item:nth-child(2) {
        border-top: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   MEGA-MENU — Tools navigation dropdown
═══════════════════════════════════════════════════════════ */

/* Trigger item */
.menu-item-mega {
    position: static !important;
}

.menu-item-mega>a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu-item-mega>a .chevron-down {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Mega-menu panel — absolute from the li (which is position:relative via .main-nav > li) */
.mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: min(700px, 92vw);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(7, 19, 31, 0.22), 0 4px 16px rgba(7, 19, 31, 0.1);
    border: 1px solid rgba(9, 34, 52, 0.08);
    z-index: 99999;
    overflow: hidden;
}

/* Arrow pointer */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #fff;
    border: 1px solid rgba(9, 34, 52, 0.08);
    border-bottom: none;
    border-right: none;
}

/* Show on hover / focus-within */
.menu-item-mega:hover>.mega-menu,
.menu-item-mega:focus-within>.mega-menu {
    display: block;
    animation: megaFadeIn 0.18s ease forwards;
}

.menu-item-mega:hover>a .chevron-down,
.menu-item-mega:focus-within>a .chevron-down {
    transform: rotate(180deg);
}

@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mega-menu__inner {
    padding: 24px 24px 0;
}

/* 2-column grid of tool categories */
.mega-menu__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.mega-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-body);
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.2;
}

.mega-menu__item:hover {
    background: rgba(216, 135, 58, 0.08);
    color: var(--color-secondary);
    text-decoration: none;
}

.mega-menu__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(9, 34, 52, 0.05);
    border-radius: 8px;
    flex-shrink: 0;
    color: var(--color-primary);
    transition: background 0.15s ease, color 0.15s ease;
}

.mega-menu__item:hover .mega-menu__icon {
    background: rgba(216, 135, 58, 0.12);
    color: var(--color-secondary);
}

.mega-menu__label {
    flex: 1;
}

/* Footer explore link */
.mega-menu__footer {
    margin-top: 16px;
    padding: 14px 14px;
    border-top: 1px solid rgba(9, 34, 52, 0.07);
    display: flex;
    justify-content: flex-end;
}

.mega-menu__explore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: var(--font-body);
    color: var(--color-secondary);
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: gap 0.2s ease, color 0.15s ease;
}

.mega-menu__explore:hover {
    color: var(--color-accent-hover);
    gap: 10px;
    text-decoration: none;
}

/* ── Mobile: collapse mega-menu to simple link list ── */
@media (max-width: 1024px) {
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        margin-top: 0 !important;
        background: rgba(9, 34, 52, 0.04);
    }

    .mega-menu::before {
        display: none;
    }

    .menu-item-mega:hover>.mega-menu,
    .menu-item-mega:focus-within>.mega-menu {
        display: block;
        animation: none;
    }

    .mega-menu__inner {
        padding: 8px 8px 0;
    }

    .mega-menu__grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .mega-menu__item {
        padding: 10px 12px;
        font-size: 0.825rem;
    }

    .mega-menu__icon {
        width: 28px;
        height: 28px;
    }

    .mega-menu__footer {
        margin-top: 8px;
        padding: 10px 12px;
    }
}

/* ═══════════════════════════════════════════════════════════
   TOOL REVIEW PAGE — template-tool-review.php
═══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.tool-review-hero {
    background: linear-gradient(135deg, #091121 0%, #112444 52%, #17335c 100%);
    padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
    position: relative;
    overflow: hidden;
}

/* Force all text white inside hero — override any theme/global h1 color rules */
.tool-review-hero,
.tool-review-hero h1,
.tool-review-hero h2,
.tool-review-hero h3,
.tool-review-hero p,
.tool-review-hero span,
.tool-review-hero__title,
.tool-review-hero__intro,
.tool-review-hero__meta {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Fix text selection highlight inside dark hero */
.tool-review-hero ::selection {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.tool-review-hero ::-moz-selection {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Subtle radial glow accents — matches blog hero style */
.tool-review-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 127, 107, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 150, 183, 0.12), transparent 40%);
    pointer-events: none;
}

.tool-review-hero__inner {
    max-width: 760px;
}

.tool-review-hero__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tool-review-hero__breadcrumb {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.tool-review-hero__breadcrumb:hover {
    color: #fff;
}

.tool-review-hero__sep {
    color: rgba(255, 255, 255, 0.3);
}

.tool-review-hero__category {
    color: var(--color-accent) !important;
    -webkit-text-fill-color: var(--color-accent) !important;
}

.tool-review-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}

.tool-review-hero__intro {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    margin: 0 0 2rem;
    max-width: 640px;
}

.tool-review-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
}

/* ── Jump nav ── */
.tool-review-jumpnav {
    background: #fff;
    border-bottom: 1px solid var(--color-border-light);
    padding: 0.75rem 0;
    overflow-x: auto;
    position: static;
    scrollbar-width: none;
}

.tool-review-jumpnav::-webkit-scrollbar {
    display: none;
}

.tool-review-jumpnav .container--wide {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tool-review-jumpnav__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    flex-shrink: 0;
    margin-right: 6px;
}

.tool-review-jumpnav__link {
    padding: 5px 14px;
    border: 1px solid var(--color-border-light);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tool-review-jumpnav__link:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ── Page layout ── */
.tool-review-section,
.tool-review-section.section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

main#main-content {
    flex: 1 !important;
    padding-bottom: 4rem !important;
    margin-bottom: 0 !important;
}

.tool-review-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
    padding-top: 2.5rem;
    padding-bottom: 0;
}

/* ── Tool card ── */
.tool-card-review {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--color-border-light);
    padding: 28px 28px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.tool-card-review:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tool-card-review__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.tool-card-review__rank {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-card-review__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-card-review__emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.tool-card-review__initials {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.tool-card-review__identity {
    flex: 1;
    min-width: 0;
}

.tool-card-review__name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-heading);
    margin: 0 0 3px;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.tool-card-review__tagline {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin: 0;
    font-weight: 500;
}

.tool-card-review__rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

/* Star ratings */
.star-rating {
    display: flex;
    gap: 2px;
}

.star--full {
    color: #f59e0b;
}

.star--half {
    color: #f59e0b;
}

.star--empty {
    color: #d1d5db;
}

.tool-card-review__score {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.tool-card-review__description {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0 0 22px;
}

/* Pros & cons */
.tool-card-review__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}

.tool-card-review__pros,
.tool-card-review__cons {
    padding: 16px;
    border-radius: 12px;
}

.tool-card-review__pros {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.tool-card-review__cons {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.tool-card-review__pros h3,
.tool-card-review__cons h3 {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
    font-family: var(--font-body);
}

.tool-card-review__pros h3 {
    color: #16a34a;
}

.tool-card-review__cons h3 {
    color: #dc2626;
}

.tool-card-review__pros ul,
.tool-card-review__cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tool-card-review__pros li,
.tool-card-review__cons li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.825rem;
    line-height: 1.45;
    color: var(--color-text);
}

.tool-card-review__pros li svg {
    color: #16a34a;
    margin-top: 2px;
    flex-shrink: 0;
}

.tool-card-review__cons li svg {
    color: #dc2626;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Footer */
.tool-card-review__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border-light);
    flex-wrap: wrap;
}

.tool-card-review__footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #e8edf2;
    border-radius: 999px;
    font-size: 0.775rem;
    font-weight: 700;
    color: #1a2e42 !important;
    -webkit-text-fill-color: #1a2e42 !important;
}

.tool-meta-chip svg {
    color: #1a2e42 !important;
    opacity: 1 !important;
}

.tool-meta-chip--accent {
    background: rgba(216, 135, 58, 0.15);
    color: #a05a10 !important;
    -webkit-text-fill-color: #a05a10 !important;
}

.tool-meta-chip--accent svg {
    color: #a05a10 !important;
}

/* ── Methodology block ── */
.tool-review-methodology {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
}

.tool-review-methodology h2 {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-heading);
    margin: 0 0 12px;
}

.tool-review-methodology p {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

/* ── FAQ block ── */
.tool-review-faq {
    margin-bottom: 32px;
}

.tool-review-faq h2 {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-heading);
    margin: 0 0 20px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border-light);
    padding: 4px 0;
}

.faq-item summary {
    padding: 16px 4px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-heading);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text);
    padding: 0 4px 18px;
    margin: 0;
}

/* ── Sidebar panels ── */
.tool-review-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-review-panel {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.tool-review-panel h3 {
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-heading);
    margin: 0 0 14px;
}

.tool-review-panel--dark {
    background: linear-gradient(135deg, #091121 0%, #112444 55%, #17335c 100%);
    border-color: transparent;
}


.tool-review-panel--dark .tool-review-panel__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    display: block;
    margin-bottom: 6px;
}

.tool-review-panel--dark h3,
.tool-review-panel--dark h3 * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    margin-bottom: 8px;
}

.tool-review-panel--dark p {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 14px;
    line-height: 1.6;
}

/* Quick pick list */
.tool-quicklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tool-quicklist a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}

.tool-quicklist a:hover {
    background: var(--color-bg-light);
}

.tool-quicklist__num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--color-bg-light);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-quicklist__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    flex: 1;
}

.tool-quicklist__score {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-secondary);
    flex-shrink: 0;
}

/* Subscribe form in sidebar */
.tool-review-subscribe {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-review-subscribe input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.tool-review-subscribe input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.tool-review-subscribe input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 2px var(--color-accent);
}

.tool-review-subscribe .btn {
    width: 100%;
    justify-content: center;
}

/* Categories list */
.tool-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tool-categories-list a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.tool-categories-list a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

/* Empty state */
.tool-review-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-bg-alt);
    border-radius: 16px;
    border: 1px solid var(--color-border-light);
}

.tool-review-empty h2 {
    font-size: 1.4rem;
    color: var(--color-heading);
    margin-bottom: 0.75rem;
}

.tool-review-empty p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tool-review-layout {
        grid-template-columns: 1fr;
    }

    .tool-review-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .tool-card-review__details {
        grid-template-columns: 1fr;
    }

    .tool-card-review__header {
        flex-wrap: wrap;
    }

    .tool-card-review__rating {
        align-items: flex-start;
    }

    .tool-card-review__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .tool-review-sidebar {
        grid-template-columns: 1fr;
    }

    .tool-review-jumpnav {
        position: static;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE PAGE FULL REDESIGN  — applied on top of all prior rules
   (10-point overhaul requested April 2026)
═══════════════════════════════════════════════════════════════════ */

/* ── 1. REFINED COLOR TOKENS for article context ─────────────────── */
:root {
    --art-text: #1e2d3d;
    --art-text-soft: #4a6278;
    --art-text-muted: #7a93a6;
    --art-heading: #0d1f2d;
    --art-accent: #e07b2a;
    --art-accent-soft: rgba(224, 123, 42, 0.08);
    --art-border: rgba(14, 28, 50, 0.08);
    --art-surface: #ffffff;
    --art-bg: #f3f6fa;
}

/* ── 2. ANIMATED BACKGROUND — story shell ────────────────────────── */
.story-shell {
    position: relative;
    background: var(--art-bg) !important;
    overflow: hidden;
    padding-block: clamp(3rem, 5vw, 5rem) !important;
}

/* Animated gradient orbs behind content */
.story-shell::before,
.story-shell::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
    opacity: 0.35;
}

.story-shell::before {
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, rgba(216, 135, 58, 0.22) 0%, rgba(34, 84, 109, 0.12) 60%, transparent 80%);
    top: -20%;
    right: -15%;
    animation: orbDrift 18s ease-in-out infinite alternate;
}

.story-shell::after {
    width: 50vw;
    height: 50vw;
    max-width: 580px;
    max-height: 580px;
    background: radial-gradient(circle, rgba(8, 26, 43, 0.15) 0%, rgba(34, 84, 109, 0.08) 55%, transparent 80%);
    bottom: -15%;
    left: -10%;
    animation: orbDrift 24s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(3%, -4%) scale(1.04);
    }

    66% {
        transform: translate(-2%, 3%) scale(0.97);
    }

    100% {
        transform: translate(2%, -2%) scale(1.02);
    }
}

/* Ensure grid children sit above the orbs */
.story-shell__grid {
    position: relative;
    z-index: 1;
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 2rem !important;
    align-items: start;
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
}

/* ── 3. ARTICLE CENTERING + REFINED SURFACE ──────────────────────── */
.story-article {
    background: var(--art-surface) !important;
    border-radius: 24px !important;
    border: 1px solid var(--art-border) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 16px 48px rgba(14, 28, 50, 0.07) !important;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.75rem, 5vw, 4rem) !important;
}

/* Article body — centered, readable max-width */
.story-article__body {
    max-width: 68ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: var(--art-text) !important;
    font-size: clamp(1.0125rem, 0.95rem + 0.22vw, 1.125rem) !important;
    line-height: 1.82 !important;
}

/* ── 4. REFINED TEXT COLORS — consistent palette ─────────────────── */
.story-article__body p {
    color: var(--art-text) !important;
    margin-bottom: 1.65rem !important;
}

.story-article__body h2 {
    color: var(--art-heading) !important;
    font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.1rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    margin: 3rem 0 1.1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid var(--art-accent-soft) !important;
    line-height: 1.18 !important;
}

.story-article__body h3 {
    color: var(--art-heading) !important;
    font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.55rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    margin: 2.25rem 0 0.9rem !important;
    line-height: 1.25 !important;
}

.story-article__body h4 {
    color: var(--art-heading) !important;
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    margin: 1.85rem 0 0.65rem !important;
}

.story-article__body strong,
.story-article__body b {
    color: var(--art-heading) !important;
    font-weight: 700 !important;
}

.story-article__body a:not(.article-newsletter-cta__btn) {
    color: var(--art-accent) !important;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(224, 123, 42, 0.4) !important;
    transition: color 0.2s, text-decoration-color 0.2s !important;
}

.story-article__body a:not(.article-newsletter-cta__btn):hover {
    color: #c46820 !important;
    text-decoration-color: rgba(196, 104, 32, 0.7) !important;
}

.story-article__body ul li,
.story-article__body ol li {
    color: var(--art-text) !important;
    margin-bottom: 0.55rem !important;
    padding-left: 0.25rem !important;
}

.story-article__body blockquote {
    border-left: 3px solid var(--art-accent) !important;
    background: var(--art-accent-soft) !important;
    color: var(--art-text-soft) !important;
    border-radius: 0 16px 16px 0 !important;
    padding: 1.25rem 1.75rem !important;
    margin: 2.25rem 0 !important;
    font-size: 1.06rem !important;
    font-style: italic !important;
}

/* ── 5. STICKY SIDEBAR — proper scroll containment ────────────────── */
.story-tools {
    position: sticky !important;
    top: 88px !important;
    max-height: calc(100vh - 110px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(216, 135, 58, 0.3) transparent !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.story-tools::-webkit-scrollbar {
    width: 3px;
}

.story-tools::-webkit-scrollbar-thumb {
    background: rgba(216, 135, 58, 0.35);
    border-radius: 3px;
}

.story-tools::-webkit-scrollbar-track {
    background: transparent;
}

/* ── 6. SIDEBAR BLOCK — refined card design ──────────────────────── */
.story-tools__block {
    background: var(--art-surface) !important;
    border-radius: 18px !important;
    border: 1px solid var(--art-border) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(14, 28, 50, 0.06) !important;
    padding: 1.25rem 1.35rem !important;
    backdrop-filter: none !important;
    transition: box-shadow 0.25s ease !important;
}

.story-tools__block:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04), 0 14px 36px rgba(14, 28, 50, 0.1) !important;
}

/* ── 7. TABLE OF CONTENTS — clean alignment ──────────────────────── */
.story-toc {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin-top: 0.85rem !important;
}

.story-toc__link {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 10px !important;
    color: var(--art-text-soft) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
    border-left: 2px solid transparent !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
    position: relative !important;
}

.story-toc__link::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--art-text-muted);
    flex-shrink: 0;
    margin-top: 6px;
    transition: background 0.15s ease;
}

.story-toc__link:hover {
    background: var(--art-accent-soft) !important;
    color: var(--art-accent) !important;
    border-left-color: var(--art-accent) !important;
}

.story-toc__link:hover::before {
    background: var(--art-accent);
}

.story-toc__link.is-active {
    background: var(--art-accent-soft) !important;
    color: var(--art-accent) !important;
    border-left-color: var(--art-accent) !important;
    font-weight: 700 !important;
}

.story-toc__link.is-active::before {
    background: var(--art-accent);
}

/* ── 8. POPULAR POSTS — aligned and refined ───────────────────────── */
.editorial-panel__label {
    display: block;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: var(--art-accent) !important;
    margin-bottom: 0.75rem !important;
}

.popular-posts-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.popular-posts-list__item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 9px 8px !important;
    border-radius: 10px !important;
    transition: background 0.15s !important;
}

.popular-posts-list__item:hover {
    background: var(--art-accent-soft) !important;
}

.popular-posts-list__num {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    border-radius: 7px !important;
    background: linear-gradient(135deg, var(--color-primary), var(--color-teal)) !important;
    color: #fff !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 1px !important;
}

.popular-posts-list__content {
    flex: 1 !important;
    min-width: 0 !important;
}

.popular-posts-list__cat {
    display: block !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.09em !important;
    color: var(--art-accent) !important;
    margin-bottom: 2px !important;
}

.popular-posts-list__title {
    display: block !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--art-text) !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: color 0.15s !important;
}

.popular-posts-list__title:hover {
    color: var(--art-accent) !important;
}

/* Quick scan facts */
.story-facts li {
    font-size: 0.82rem !important;
    color: var(--art-text-soft) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
}

.story-facts li::before {
    background: var(--art-accent) !important;
}

/* ── 9. HEADER NAV — expanded spacing ───────────────────────────── */
.main-nav {
    gap: 0.5rem !important;
}

.main-nav>li>a {
    padding: 0.6rem 1.05rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.06em !important;
    gap: 5px !important;
}

.site-header__brand {
    margin-right: 1rem !important;
}

.site-header__meta {
    gap: 0.75rem !important;
}

/* ── 10. SECTION HEADING SPACING — more breathing room ───────────── */
.story-article__body h2+p,
.story-article__body h3+p,
.story-article__body h4+p {
    margin-top: 0 !important;
}

.story-article__body h2:first-child {
    margin-top: 0 !important;
}

/* ── SMOOTH PAGE TRANSITIONS ─────────────────────────────────────── */
.story-tools__block,
.story-article,
.story-tools__block *,
.main-nav>li>a,
.story-toc__link,
.popular-posts-list__item {
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── READING PROGRESS BAR — refined ────────────────────────────── */
.reading-progress {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    z-index: 100001 !important;
    background: rgba(14, 28, 50, 0.1) !important;
}

.reading-progress>span {
    display: block !important;
    height: 100% !important;
    background: linear-gradient(90deg, var(--art-accent) 0%, #f59e0b 100%) !important;
    transform-origin: left center !important;
    transform: scaleX(0) !important;
    transition: transform 0.08s linear !important;
    border-radius: 0 3px 3px 0 !important;
}

/* ── SHARE BUTTONS — styled ─────────────────────────────────────── */
.story-share {
    margin-top: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.story-share a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--art-text) !important;
    background: var(--art-bg) !important;
    text-decoration: none !important;
    border: 1px solid var(--art-border) !important;
    transition: background 0.15s, color 0.15s !important;
}

.story-share a:hover {
    background: var(--art-accent) !important;
    color: #fff !important;
    border-color: var(--art-accent) !important;
}

/* ── TAGS (filed under) ──────────────────────────────────────────── */
.topic-cluster--left {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 0.75rem !important;
    justify-content: flex-start !important;
}

/* ── AUTHOR SECTION — refined ────────────────────────────────────── */
.story-author {
    background: var(--art-surface) !important;
    border: 1px solid var(--art-border) !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 16px 48px rgba(14, 28, 50, 0.06) !important;
}

.story-author-section {
    background: var(--art-bg) !important;
}

/* ── PREV/NEXT NAV ───────────────────────────────────────────────── */
.story-nav-section {
    background: var(--art-bg) !important;
    padding-block: 2rem !important;
}

.story-nav__item {
    background: var(--art-surface) !important;
    border: 1px solid var(--art-border) !important;
    border-radius: 16px !important;
    padding: 1.25rem 1.5rem !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.story-nav__item:hover {
    box-shadow: 0 8px 32px rgba(14, 28, 50, 0.1) !important;
    transform: translateY(-2px) !important;
}

.story-nav__item strong {
    color: var(--art-heading) !important;
}

/* ── HERO TEXT COLORS — refined ──────────────────────────────────── */
.story-hero .story-meta-board__item span {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-weight: 600 !important;
}

.story-hero .story-meta-board__item strong {
    color: #fff !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
}

/* ── MOBILE OVERRIDES ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .story-shell__grid {
        grid-template-columns: 1fr !important;
    }

    .story-tools {
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .story-tools .story-tools__block {
        flex: 1 1 220px !important;
    }

    .main-nav>li>a {
        padding: 0.55rem 0.75rem !important;
        font-size: 0.76rem !important;
    }
}

@media (max-width: 640px) {
    .story-tools .story-tools__block {
        flex: 1 1 100% !important;
    }

    .story-article {
        padding: 1.5rem 1.25rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   BEST TOOLS PAGE — UI FIXES (April 2026)
═══════════════════════════════════════════════════════════════════ */

/* Fix H1 dark selection background on hero — remove any text highlight */
.tools-page-hero h1 {
    background: transparent !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    text-shadow: none !important;
}

/* Remove white gap between CTA section and footer */
.tools-page-cta {
    margin-bottom: 0 !important;
}

.tools-page-body {
    padding-bottom: clamp(2rem, 4vw, 4rem) !important;
}

/* Fix jump-to nav — correct top offset for sticky header + allow horizontal scroll gracefully */
.tools-jump-nav {
    top: 72px !important;
    padding: 0 !important;
}

.tools-jump-nav__inner {
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
}

.tools-jump-nav__inner>span {
    display: flex;
    align-items: center;
    padding: 0 1.25rem 0 0;
    border-right: 1px solid rgba(15, 28, 63, 0.08);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.tools-jump-nav__inner>a {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
}

/* Ensure tool sections anchor scroll offset accounts for sticky header + jump nav */
.tools-category-section {
    scroll-margin-top: 145px !important;
}

/* ── MEGA-MENU — click-safe trigger (no navigation) ── */
.mega-menu-trigger {
    cursor: default !important;
}

/* Mobile: on small screens, allow normal tap to toggle */
@media (max-width: 1024px) {
    .mega-menu-trigger {
        cursor: pointer !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE TRANSITIONS & TOOL REVIEW ANIMATIONS (April 2026)
═══════════════════════════════════════════════════════════════════ */

/* ── Page entry transition — applied on <body> ── */
@keyframes pageReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: pageReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Page exit — triggered via JS before navigation ── */
body.page-exit {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

/* ── Scroll-reveal: elements with .animate-in start invisible ── */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Tool card stagger delays via --stagger custom property ── */
.tool-card-review.animate-in {
    transition-delay: calc(var(--stagger, 0) * 0.1s);
}

/* ── Tool card hover: lift + shadow + left accent bar ── */
.tool-card-review {
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
    overflow: hidden;
}

.tool-card-review::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #d8873a 0%, #b06820 100%);
    border-radius: 4px 0 0 4px;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tool-card-review:hover {
    box-shadow: 0 16px 48px rgba(14, 28, 63, 0.12), 0 4px 16px rgba(14, 28, 63, 0.07) !important;
    transform: translateY(-4px) !important;
}

.tool-card-review:hover::before {
    transform: scaleY(1);
}

/* ── Rank badge pulse on hover ── */
.tool-card-review__rank {
    transition: transform 0.25s ease, background 0.25s ease;
}

.tool-card-review:hover .tool-card-review__rank {
    transform: scale(1.1);
    background: linear-gradient(135deg, #d8873a, #b06820);
}

/* ── Star rating shimmer on hover ── */
.tool-card-review:hover .star--full {
    color: #f59e0b;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.45));
    transition: color 0.2s, filter 0.2s;
}

/* ── Jump nav links — smooth hover underline ── */
.tool-review-jumpnav__link {
    position: relative;
    transition: color 0.2s ease, background 0.2s ease !important;
}

.tool-review-jumpnav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: #d8873a;
    transition: left 0.25s ease, right 0.25s ease;
}

.tool-review-jumpnav__link:hover::after,
.tool-review-jumpnav__link.is-active::after {
    left: 0;
    right: 0;
}

/* ── Sidebar panels — slide in from right ── */
.tool-review-sidebar .tool-review-panel.animate-in {
    transform: translateX(20px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.tool-review-sidebar .tool-review-panel.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Sidebar panel hover ── */
.tool-review-panel {
    transition: box-shadow 0.25s ease !important;
}

.tool-review-panel:hover {
    box-shadow: 0 8px 32px rgba(14, 28, 63, 0.1) !important;
}

/* ── Quick list items — hover highlight ── */
.tool-quicklist a {
    transition: background 0.18s ease, padding-left 0.18s ease !important;
    border-radius: 8px;
    padding: 0.5rem 0.75rem !important;
}

.tool-quicklist a:hover {
    background: rgba(59, 126, 250, 0.07) !important;
    padding-left: 1rem !important;
}

/* ── FAQ accordion — smooth expand ── */
.faq-item {
    transition: box-shadow 0.2s ease !important;
}

.faq-item[open] {
    box-shadow: 0 4px 20px rgba(14, 28, 63, 0.08) !important;
}

.faq-item summary {
    transition: color 0.2s ease !important;
}

.faq-item[open] summary {
    color: var(--color-secondary) !important;
}

/* ── Hero badges — stagger pop in ── */
.tool-review-badge {
    animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tool-review-badge:nth-child(1) {
    animation-delay: 0.5s;
}

.tool-review-badge:nth-child(2) {
    animation-delay: 0.65s;
}

.tool-review-badge:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes badgePop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(6px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── Mega-menu items — cascade fade on open ── */
.mega-menu__col-item {
    transition: background 0.18s ease, transform 0.18s ease !important;
}

.mega-menu__col-item:hover {
    transform: translateX(4px) !important;
}

/* ── Category links in sidebar ── */
.tool-categories-list a {
    display: block;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease !important;
    text-decoration: none !important;
}

.tool-categories-list a:hover {
    background: rgba(216, 135, 58, 0.08) !important;
    color: var(--color-secondary) !important;
    padding-left: 1.1rem !important;
}

.tool-categories-list li+li {
    border-top: 1px solid rgba(14, 28, 63, 0.06);
}

/* ── Auto-interlink styling ── */
.story-article__body .auto-interlink,
.auto-interlink {
    color: var(--art-accent, #e07b2a) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 3px !important;
    text-decoration-color: rgba(224, 123, 42, 0.35) !important;
    font-weight: 600 !important;
    transition: color 0.2s, text-decoration-color 0.2s !important;
}

.story-article__body .auto-interlink:hover,
.auto-interlink:hover {
    color: #c46820 !important;
    text-decoration-color: rgba(196, 104, 32, 0.65) !important;
}

/* ── Blog Card Badge — per-category colors ─────────────────── */
.blog-card__badge--hr-operations {
    background: rgba(37, 99, 235, .88);
}

/* blue */
.blog-card__badge--hr-strategy {
    background: rgba(124, 58, 237, .88);
}

/* purple */
.blog-card__badge--ai-spotlight,
.blog-card__badge--ai-and-technology,
.blog-card__badge--ai-technology {
    background: rgba(6, 182, 212, .88);
}

/* cyan */
.blog-card__badge--recruitment,
.blog-card__badge--recruitment-hiring {
    background: rgba(16, 185, 129, .88);
}

/* emerald */
.blog-card__badge--employee-retention {
    background: rgba(245, 158, 11, .88);
}

/* amber */
.blog-card__badge--payroll-compensation {
    background: rgba(239, 68, 68, .88);
}

/* red */
.blog-card__badge--global-hr {
    background: rgba(20, 184, 166, .88);
}

/* teal */
.blog-card__badge--leadership-culture {
    background: rgba(236, 72, 153, .88);
}

/* pink */
.blog-card__badge--eor-services {
    background: rgba(99, 102, 241, .88);
}

/* ============================================================
   CONTACT PAGE — Elegant UI Enhancement
   ============================================================ */

/* Keyframe animations */
@keyframes contactFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contactFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(216, 135, 58, 0.25); }
    50%       { box-shadow: 0 0 0 8px rgba(216, 135, 58, 0); }
}

/* ── Page-header: ambient glow orbs ── */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 8% 50%, rgba(216, 135, 58, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 70% at 92% 30%, rgba(34, 84, 109, 0.18), transparent 50%);
    pointer-events: none;
    animation: contactFadeIn 1.2s ease both;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header__title {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.page-header__description {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

/* ── Section background: subtle texture ── */
.section:has(.contact-layout) {
    position: relative;
    background:
        radial-gradient(circle at 5% 20%, rgba(216, 135, 58, 0.04), transparent 40%),
        radial-gradient(circle at 95% 80%, rgba(34, 84, 109, 0.05), transparent 40%);
}

/* ── Contact layout grid ── */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

/* ── Contact Info panel ── */
.contact-info {
    position: sticky;
    top: 5.5rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(216, 135, 58, 0.12) !important;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 248, 242, 0.9) 100%) !important;
    box-shadow:
        0 4px 6px rgba(11, 29, 45, 0.04),
        0 12px 32px rgba(11, 29, 45, 0.08),
        0 32px 64px rgba(11, 29, 45, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    animation: contactFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
    overflow: hidden;
}

/* Accent top bar */
.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent), var(--color-teal));
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.contact-info h2 {
    font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
    color: var(--color-heading);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* ── Contact info items ── */
.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    margin-bottom: 0.65rem;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.22s ease;
    cursor: default;
}

.contact-info__item:last-child {
    margin-bottom: 0;
}

.contact-info__item:hover {
    background: rgba(216, 135, 58, 0.05);
    border-color: rgba(216, 135, 58, 0.15);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(216, 135, 58, 0.08);
}

/* ── Contact info icon ── */
.contact-info__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: rgba(216, 135, 58, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(216, 135, 58, 0.18);
    transition:
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-info__item:hover .contact-info__icon {
    background: rgba(216, 135, 58, 0.18);
    transform: scale(1.1) rotate(-4deg);
    animation: iconPulse 1.2s ease infinite;
}

.contact-info__item h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 0.2rem;
    letter-spacing: -0.01em;
}

.contact-info__item p {
    font-size: 0.86rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.55;
}

/* ── Contact form wrapper ── */
.contact-form-wrapper {
    padding: clamp(1.75rem, 3vw, 2.5rem) !important;
    border-radius: var(--radius-2xl) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow:
        0 4px 6px rgba(11, 29, 45, 0.04),
        0 16px 40px rgba(11, 29, 45, 0.1),
        0 40px 80px rgba(11, 29, 45, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(16px) !important;
    animation: contactFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-form-wrapper:hover {
    box-shadow:
        0 4px 6px rgba(11, 29, 45, 0.04),
        0 20px 50px rgba(11, 29, 45, 0.13),
        0 50px 100px rgba(11, 29, 45, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    transform: translateY(-2px);
}

/* ── Form field groups ── */
.contact-form > div {
    position: relative;
    margin-bottom: 1rem;
}

.contact-form > div:last-child {
    margin-bottom: 0;
}

/* ── Form inputs: refined styling ── */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    min-height: 3.1rem !important;
    padding: 0.875rem 1.1rem !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(9, 34, 52, 0.1) !important;
    background: rgba(250, 251, 253, 0.8) !important;
    font-size: 0.94rem !important;
    color: var(--color-text) !important;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.15s ease !important;
    box-shadow: 0 1px 3px rgba(9, 34, 52, 0.04) inset !important;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: rgba(9, 34, 52, 0.2) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-secondary) !important;
    background: #fff !important;
    box-shadow:
        0 0 0 4px rgba(216, 135, 58, 0.1),
        0 2px 8px rgba(216, 135, 58, 0.08) !important;
    transform: translateY(-1px) !important;
}

.contact-form textarea {
    min-height: 8rem !important;
    resize: vertical;
    line-height: 1.6 !important;
}

/* ── Submit button: shine animation ── */
.contact-form .btn--primary {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease,
        background 0.2s ease !important;
}

.contact-form .btn--primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.28) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: none;
}

.contact-form .btn--primary:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 8px 28px rgba(216, 135, 58, 0.4) !important;
}

.contact-form .btn--primary:hover::after {
    animation: shimmer 0.7s ease forwards;
}

.contact-form .btn--primary:active {
    transform: translateY(0) scale(0.99) !important;
    box-shadow: 0 3px 10px rgba(216, 135, 58, 0.3) !important;
}

/* ── Staggered animation for contact info items ── */
.contact-info__item:nth-child(1) { animation: contactFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
.contact-info__item:nth-child(2) { animation: contactFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; }
.contact-info__item:nth-child(3) { animation: contactFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both; }
.contact-info__item:nth-child(4) { animation: contactFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both; }

/* ── Responsive: stack on mobile ── */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info {
        position: static;
        padding: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .contact-info__item {
        padding: 0.75rem 0.85rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form select,
    .contact-form textarea {
        font-size: 1rem !important;
    }
}

/* indigo */

/* ============================================================
   ABOUT PAGE — Elegant UI Enhancement
   ============================================================ */

/* ── Hero: animated entrance ── */
.about-hero h1 {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.about-hero .section__subtitle {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

/* Extra left glow orb — use ::after (already exists for right glow, override for about only) */
.about-hero .container::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -8%;
    width: 55%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(216, 135, 58, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

/* ── Mission / content section: card treatment ── */
.section:has(.about-content) {
    position: relative;
    padding-block: clamp(2rem, 4vw, 3.5rem);
}

.about-content {
    position: relative;
    overflow: hidden;
    animation: contactFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(216, 135, 58, 0.1);
    border-radius: 24px;
    box-shadow:
        0 4px 6px rgba(11, 29, 45, 0.03),
        0 12px 32px rgba(11, 29, 45, 0.07),
        0 28px 64px rgba(11, 29, 45, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Amber accent top bar on the content card */
.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent), transparent 80%);
    border-radius: 24px 24px 0 0;
}

/* First h2 needs no top margin — it's at the top of the card */
.about-content h2:first-of-type {
    margin-top: 0;
}

/* Decorative accent on all h2s */
.about-content h2 {
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid #d8873a;
    transition: border-color 0.2s ease, padding-left 0.2s ease;
}

.about-content h2:hover {
    border-color: #f0a44f;
    padding-left: 1.3rem;
}

.about-content p {
    animation: contactFadeIn 0.6s ease both;
}

/* Stagger each paragraph */
.about-content > p:nth-of-type(1) { animation-delay: 0.3s; }
.about-content > p:nth-of-type(2) { animation-delay: 0.4s; }
.about-content > p:nth-of-type(3) { animation-delay: 0.5s; }

/* ── Values section (section--alt) ── */
.section--alt {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg,
        rgba(253, 248, 242, 0.98) 0%,
        rgba(248, 244, 238, 0.95) 50%,
        rgba(255, 252, 249, 1) 100%) !important;
}

/* Subtle decorative grid overlay */
.section--alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(216, 135, 58, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(216, 135, 58, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Ambient corner orbs */
.section--alt::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 60% at 0% 100%, rgba(216, 135, 58, 0.06), transparent 55%),
        radial-gradient(ellipse 40% 50% at 100% 0%, rgba(34, 84, 109, 0.06), transparent 50%);
    pointer-events: none;
}

.section--alt .container {
    position: relative;
    z-index: 1;
}

/* ── Section header animation ── */
.section__header {
    animation: contactFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.section__header h2 {
    position: relative;
    display: inline-block;
}

/* Amber underline accent on "What We Believe" */
.section__header h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2.8rem;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    opacity: 0.85;
}

/* ── Resource / Values cards: staggered entrance ── */
.section--alt .resource-card:nth-child(1) {
    animation: contactFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.section--alt .resource-card:nth-child(2) {
    animation: contactFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}
.section--alt .resource-card:nth-child(3) {
    animation: contactFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

/* Enhanced card shadows */
.section--alt .resource-card {
    box-shadow:
        0 2px 4px rgba(11, 29, 45, 0.04),
        0 8px 24px rgba(11, 29, 45, 0.07),
        0 20px 48px rgba(11, 29, 45, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(216, 135, 58, 0.08);
    transition:
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.section--alt .resource-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 8px rgba(11, 29, 45, 0.05),
        0 16px 40px rgba(11, 29, 45, 0.12),
        0 36px 72px rgba(11, 29, 45, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(216, 135, 58, 0.2);
}

/* Icon animation on card hover */
.resource-card__icon {
    transition:
        background 0.22s ease,
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.22s ease;
}

.resource-card:hover .resource-card__icon {
    background: rgba(216, 135, 58, 0.18);
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 4px 14px rgba(216, 135, 58, 0.2);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .about-content {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .about-content h2 {
        padding-left: 0.85rem;
    }
}

/* ============================================================
   RESOURCES PAGE — Elegant UI Enhancement
   ============================================================ */

/* Hero band — reuses .page-header, already enhanced in Contact section */
/* Animate page header title/desc on Resources too */
.page-header__title,
.page-header__description {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.page-header__description {
    animation-delay: 0.22s;
}

/* ── Resources section background ── */
.section:has(.resources-grid) {
    position: relative;
}

.section:has(.resources-grid)::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(34, 84, 109, 0.05), transparent 55%),
        radial-gradient(ellipse 50% 40% at 5% 90%, rgba(216, 135, 58, 0.04), transparent 50%);
    pointer-events: none;
}

/* ── Filter buttons ── */
.resources-filter__btn {
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease;
}

.resources-filter__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 29, 45, 0.1);
}

.resources-filter__btn.active {
    transform: none;
    box-shadow: 0 4px 16px rgba(11, 29, 45, 0.15);
}

/* ── Resource cards: staggered entrance ── */
.resources-grid .resource-card.animate-in {
    animation: contactFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.resources-grid .resource-card:nth-child(1) { animation-delay: 0.1s; }
.resources-grid .resource-card:nth-child(2) { animation-delay: 0.2s; }
.resources-grid .resource-card:nth-child(3) { animation-delay: 0.3s; }
.resources-grid .resource-card:nth-child(4) { animation-delay: 0.4s; }
.resources-grid .resource-card:nth-child(5) { animation-delay: 0.5s; }
.resources-grid .resource-card:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced shadows for resource cards */
.resources-grid .resource-card {
    box-shadow:
        0 2px 4px rgba(11, 29, 45, 0.04),
        0 8px 24px rgba(11, 29, 45, 0.07),
        0 20px 48px rgba(11, 29, 45, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 28, 63, 0.07);
    transition:
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.resources-grid .resource-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 8px rgba(11, 29, 45, 0.05),
        0 16px 40px rgba(11, 29, 45, 0.12),
        0 36px 72px rgba(11, 29, 45, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(216, 135, 58, 0.18);
}

/* ── CTA link animation ── */
.resource-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.22s ease, color 0.22s ease !important;
}

.resource-card:hover .resource-card__cta {
    gap: 0.7rem;
}

/* ============================================================
   BEST TOOLS PAGE — Elegant UI Enhancement
   ============================================================ */

/* ── Hero: animated text entrance ── */
.tools-page-hero .editorial-panel__label {
    animation: contactFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.tools-page-hero h1 {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.tools-page-hero p {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.tools-page-hero__stats {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

/* Extra left glow on hero */
.tools-page-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 84, 109, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* Stat dividers with glow on hover */
.tools-page-hero__stat {
    transition: background 0.2s ease;
}

.tools-page-hero__stat:hover {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.tools-page-hero__stat strong {
    transition: color 0.2s ease;
}

.tools-page-hero__stat:hover strong {
    color: var(--color-accent);
}

/* ── Jump nav: remove sticky so it doesn't cover content while scrolling ── */
.tools-jump-nav {
    position: static !important;
    top: auto !important;
}

/* ── Jump nav links: enhanced hover (uses existing border-bottom, no duplicate ::after) ── */
.tools-jump-nav__inner > a {
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.tools-jump-nav__inner > a:hover {
    transform: translateY(-1px) !important;
}

/* ── Category sections: subtle separator only (no animation — off-screen fade causes flicker) ── */
.tools-category-section {
    border-top: 1px solid rgba(9, 34, 52, 0.07);
}

.tools-category-section:first-child {
    border-top: none;
}

/* ── Category header ── */
.tools-category-header {
    transition: none;
}

.tools-category-header__icon {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.tools-category-header:hover .tools-category-header__icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ── Tool cards ── */
.tool-card.animate-in {
    animation: contactFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tools-grid .tool-card:nth-child(1) { animation-delay: 0.05s; }
.tools-grid .tool-card:nth-child(2) { animation-delay: 0.15s; }
.tools-grid .tool-card:nth-child(3) { animation-delay: 0.25s; }
.tools-grid .tool-card:nth-child(4) { animation-delay: 0.35s; }

.tool-card {
    box-shadow:
        0 2px 4px rgba(11, 29, 45, 0.04),
        0 8px 24px rgba(11, 29, 45, 0.07),
        0 20px 48px rgba(11, 29, 45, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(15, 28, 63, 0.08) !important;
    transition:
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease !important;
}

.tool-card:hover {
    transform: translateY(-6px) !important;
    box-shadow:
        0 4px 8px rgba(11, 29, 45, 0.05),
        0 16px 40px rgba(11, 29, 45, 0.12),
        0 36px 72px rgba(11, 29, 45, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    border-color: rgba(216, 135, 58, 0.2) !important;
}

/* Emoji icon: scale + bounce on hover */
.tool-card__emoji {
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.tool-card:hover .tool-card__emoji {
    transform: scale(1.2) rotate(-8deg) !important;
}

/* Feature list items: subtle stagger reveal */
.tool-card__features li {
    transition: color 0.2s ease, transform 0.2s ease;
}

.tool-card:hover .tool-card__features li {
    color: var(--color-text);
}

/* CTA link arrow slide */
.tool-card__cta {
    transition: gap 0.22s ease, color 0.22s ease !important;
}

.tool-card:hover .tool-card__cta {
    gap: 0.5rem;
}

/* ── Bottom CTA section ── */
.tools-page-cta {
    position: relative;
    overflow: hidden;
}

.tools-page-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 5% 50%, rgba(216, 135, 58, 0.1), transparent 55%),
        radial-gradient(ellipse 40% 60% at 95% 50%, rgba(34, 84, 109, 0.12), transparent 50%);
    pointer-events: none;
}

.tools-page-cta .container {
    position: relative;
    z-index: 1;
}

.tools-page-cta__inner.animate-in {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* ============================================================
   FOOTER — Elegant UI Enhancement
   ============================================================ */

/* Entrance animation for the footer frame */
.site-footer__frame {
    animation: contactFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
    transition:
        box-shadow 0.3s ease !important;
    box-shadow:
        0 8px 20px rgba(7, 19, 31, 0.15),
        0 28px 80px rgba(7, 19, 31, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.site-footer__frame:hover {
    box-shadow:
        0 12px 30px rgba(7, 19, 31, 0.2),
        0 40px 100px rgba(7, 19, 31, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Footer nav links: smooth color + underline slide */
.site-footer__list a,
.site-footer__brands-links a,
.site-footer__legal a {
    position: relative;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.site-footer__list a:not(.btn):hover,
.site-footer__brands-links a:not(.btn):hover,
.site-footer__legal a:not(.btn):hover {
    transform: translateX(3px);
}

/* Footer button: preserve white text */
.site-footer .btn:hover {
    color: #fff !important;
}

/* Eyebrow & column headings: subtle shimmer on load */
.site-footer__eyebrow {
    animation: contactFadeIn 0.8s ease 0.2s both;
}

/* Base strip */
.site-footer__base {
    animation: contactFadeIn 0.6s ease 0.4s both;
}

/* ============================================================
   HOMEPAGE — Elegant UI Enhancement
   ============================================================ */

/* ── Hero section: animated entrance ── */
.home-hero__content.animate-in {
    transition-delay: 0s;
}

.home-hero__visual.animate-in {
    transition-delay: 0.12s;
}

/* Hero content card: layered shadow + hover lift */
.home-hero__content {
    box-shadow:
        0 4px 6px rgba(11, 29, 45, 0.04),
        0 12px 36px rgba(11, 29, 45, 0.09),
        0 32px 72px rgba(11, 29, 45, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.home-hero__content:hover {
    box-shadow:
        0 6px 10px rgba(11, 29, 45, 0.05),
        0 20px 50px rgba(11, 29, 45, 0.12),
        0 44px 88px rgba(11, 29, 45, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    transform: translateY(-3px) !important;
}

/* Signal board: enhanced glow */
.signal-board {
    box-shadow:
        0 8px 20px rgba(4, 10, 20, 0.2),
        0 28px 72px rgba(4, 10, 20, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
    transition: box-shadow 0.3s ease !important;
}

.signal-board:hover {
    box-shadow:
        0 12px 30px rgba(4, 10, 20, 0.25),
        0 40px 90px rgba(4, 10, 20, 0.35),
        0 0 0 1px rgba(216, 135, 58, 0.12) inset !important;
}

/* Signal board lead article hover */
.signal-board__lead {
    transition: background 0.25s ease, box-shadow 0.25s ease !important;
}

.signal-board__lead:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Signal board h2 title: subtle colour on hover */
.signal-board__lead h2 a {
    transition: color 0.2s ease !important;
}

.signal-board__lead h2 a:hover {
    color: #ffd09d !important;
}

/* CTA link: arrow slide */
.signal-board__cta,
.coverage-lead__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: gap 0.22s ease, color 0.22s ease !important;
}

.signal-board__cta:hover,
.coverage-lead__cta:hover {
    gap: 0.75rem;
    color: #ffd09d !important;
}

/* Topic rail tiles: enhanced hover */
.signal-board__topic {
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.signal-board__topic:hover {
    background: rgba(216, 135, 58, 0.14) !important;
    border-color: rgba(216, 135, 58, 0.28) !important;
    transform: translateX(4px) !important;
}

/* Metric cards: stagger entrance + hover glow */
.home-hero__metric {
    transition:
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-hero__metric:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 20px rgba(216, 135, 58, 0.1);
    transform: translateY(-3px);
}

.home-hero__metrics .home-hero__metric:nth-child(1) { animation: contactFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both; }
.home-hero__metrics .home-hero__metric:nth-child(2) { animation: contactFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both; }
.home-hero__metrics .home-hero__metric:nth-child(3) { animation: contactFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.74s both; }

/* ── Proof band items: enhanced shadow + hover ── */
.proof-band__item {
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    box-shadow:
        0 2px 4px rgba(11, 29, 45, 0.04),
        0 6px 18px rgba(11, 29, 45, 0.06);
}

.proof-band__item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 8px rgba(11, 29, 45, 0.06),
        0 14px 36px rgba(11, 29, 45, 0.1);
    border-color: rgba(216, 135, 58, 0.15);
}

/* ── Pillar blocks: enhanced shadow + hover ── */
.pillar-block {
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(11, 29, 45, 0.04),
        0 8px 24px rgba(11, 29, 45, 0.06);
    transition:
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.pillar-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pillar-block:hover {
    transform: translateY(-5px);
    box-shadow:
        0 4px 8px rgba(11, 29, 45, 0.06),
        0 18px 42px rgba(11, 29, 45, 0.11);
    border-color: rgba(216, 135, 58, 0.14);
}

.pillar-block:hover::before {
    opacity: 1;
}

.pillar-block__index {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillar-block:hover .pillar-block__index {
    transform: scale(1.1) rotate(-6deg);
}

/* ── Coverage lead card: layered shadow ── */
.coverage-lead {
    box-shadow:
        0 2px 4px rgba(11, 29, 45, 0.04),
        0 10px 28px rgba(11, 29, 45, 0.08),
        0 24px 56px rgba(11, 29, 45, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition:
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.28s ease !important;
}

.coverage-lead:hover {
    transform: translateY(-5px) !important;
    box-shadow:
        0 4px 8px rgba(11, 29, 45, 0.05),
        0 18px 44px rgba(11, 29, 45, 0.12),
        0 36px 72px rgba(11, 29, 45, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

/* Coverage stack items */
.coverage-stack__item {
    box-shadow:
        0 2px 6px rgba(11, 29, 45, 0.05),
        0 8px 20px rgba(11, 29, 45, 0.06);
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        border-color 0.25s ease !important;
}

.coverage-stack__item:hover {
    transform: translateY(-3px) translateX(3px) !important;
    box-shadow:
        0 4px 12px rgba(11, 29, 45, 0.08),
        0 16px 36px rgba(11, 29, 45, 0.1) !important;
    border-color: rgba(216, 135, 58, 0.15) !important;
}

/* ── Topic system links: enhanced hover ── */
.topic-system__link {
    position: relative;
    overflow: hidden;
    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.22s ease,
        border-color 0.22s ease !important;
}

.topic-system__link:hover {
    background: var(--color-secondary) !important;
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(216, 135, 58, 0.3) !important;
}

.topic-system__link svg {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.topic-system__link:hover svg {
    transform: translate(3px, -3px) !important;
}

/* ── Signal section (dark band): ambient glow ── */
.signal-section {
    position: relative;
    overflow: hidden;
}

.signal-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 80% at 5% 50%, rgba(216, 135, 58, 0.08), transparent 55%),
        radial-gradient(ellipse 40% 60% at 95% 50%, rgba(34, 84, 109, 0.1), transparent 50%);
    pointer-events: none;
}

.signal-section .container {
    position: relative;
    z-index: 1;
}

/* ============================================================
   SUBSCRIBE PAGE — Elegant UI Enhancement
   ============================================================ */

/* Hero */
.about-hero + * .subscribe-layout,
.section:has(.subscribe-form),
.section:has([class*="newsletter"]) {
    position: relative;
}

/* Benefit item cards */
.subscribe-benefit {
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.22s ease;
}

.subscribe-benefit:hover {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(216, 135, 58, 0.2) !important;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(216, 135, 58, 0.08);
}

/* Newsletter form wrapper (shortcode + subscribe page) */
.newsletter-cta {
    padding: 0 !important;
}

.newsletter-cta .container {
    padding: 0 !important;
    max-width: none !important;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.9rem 1.1rem !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(9, 34, 52, 0.12) !important;
    background: rgba(250, 251, 253, 0.9) !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 0 4px rgba(216, 135, 58, 0.1) !important;
    background: #fff !important;
}

.newsletter-form .btn {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease !important;
}

.newsletter-form .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(216, 135, 58, 0.4) !important;
}

/* Subscribe fallback form */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.subscribe-form input {
    padding: 0.9rem 1.1rem !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(9, 34, 52, 0.12) !important;
    background: rgba(250, 251, 253, 0.9) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}

.subscribe-form input:focus {
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 0 4px rgba(216, 135, 58, 0.1) !important;
    transform: translateY(-1px) !important;
    background: #fff !important;
}

.subscribe-form .btn {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease !important;
}

.subscribe-form .btn:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 8px 28px rgba(216, 135, 58, 0.4) !important;
}

/* ── Global: btn--accent alias → same as btn--primary ── */
.btn--accent {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(216, 135, 58, 0.3);
}

.btn--accent:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(216, 135, 58, 0.45);
}

/* =============================================================
   BLOG INDEX & LISTING PAGES — Elegant UI Enhancement
   ============================================================= */

/* ── Blog hero: entrance animations ── */
.blog-hero-simple .editorial-kicker,
.blog-hero-simple__text .editorial-kicker {
    animation: contactFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.blog-hero-simple__text h1 {
    animation: contactFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.blog-hero-simple__text p {
    animation: contactFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.blog-hero-simple__search {
    animation: contactFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* ── Blog hero: ambient glow orb ── */
.blog-hero-simple {
    position: relative;
    overflow: hidden;
}

.blog-hero-simple::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -8%;
    width: 55%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(216, 135, 58, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.blog-hero-simple .container {
    position: relative;
    z-index: 1;
}

/* ── Blog topic pills: enhanced hover ── */
.blog-topic-pill {
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.blog-topic-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(216, 135, 58, 0.18) !important;
}

.blog-topic-pill--active {
    box-shadow: 0 4px 14px rgba(8, 26, 43, 0.25);
}

/* ── Blog cards: layered 3-depth shadow + enhanced hover ── */
.blog-card {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(7, 19, 31, 0.07),
        0 12px 32px rgba(7, 19, 31, 0.05) !important;
    transition:
        box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    border: 1px solid rgba(15, 28, 63, 0.06) !important;
}

.blog-card:hover {
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 10px 28px rgba(7, 19, 31, 0.12),
        0 24px 56px rgba(7, 19, 31, 0.1) !important;
    transform: translateY(-7px) !important;
    border-color: rgba(216, 135, 58, 0.15) !important;
}

/* ── Blog cards: staggered entrance via nth-child ── */
.blog-cards-grid .blog-card.animate-in:nth-child(1) { transition-delay: 0.05s; }
.blog-cards-grid .blog-card.animate-in:nth-child(2) { transition-delay: 0.12s; }
.blog-cards-grid .blog-card.animate-in:nth-child(3) { transition-delay: 0.19s; }
.blog-cards-grid .blog-card.animate-in:nth-child(4) { transition-delay: 0.05s; }
.blog-cards-grid .blog-card.animate-in:nth-child(5) { transition-delay: 0.12s; }
.blog-cards-grid .blog-card.animate-in:nth-child(6) { transition-delay: 0.19s; }
.blog-cards-grid .blog-card.animate-in:nth-child(7) { transition-delay: 0.05s; }
.blog-cards-grid .blog-card.animate-in:nth-child(8) { transition-delay: 0.12s; }
.blog-cards-grid .blog-card.animate-in:nth-child(9) { transition-delay: 0.19s; }

/* ── Blog cards: amber accent line on hover ── */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 16px 16px 0 0;
    z-index: 2;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

/* ── Featured story: hover lift transition ── */
.featured-story {
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.32s ease !important;
}

.featured-story:hover {
    transform: translateY(-5px);
    box-shadow: 0 56px 120px rgba(7, 19, 31, 0.42) !important;
}

/* ── Featured story: entrance animation ── */
.featured-story.animate-in {
    opacity: 0;
    transform: translateY(24px);
}

.featured-story.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ── Story strips: hover lift + border highlight ── */
.story-strip {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-strip:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(216, 135, 58, 0.14);
    box-shadow: 0 6px 20px rgba(7, 19, 31, 0.08);
    transform: translateX(3px);
}

/* ── Topic cluster pills: enhanced hover ── */
.topic-cluster .topic-pill {
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease !important;
}

.topic-cluster .topic-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(216, 135, 58, 0.18) !important;
}

/* ── Story tools block: enhanced card presentation ── */
.story-tools__block {
    transition:
        box-shadow 0.25s ease,
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.story-tools__block:hover {
    box-shadow: 0 16px 48px rgba(7, 19, 31, 0.12) !important;
}

/* =============================================================
   SINGLE POST PAGE — Elegant UI Enhancement
   ============================================================= */

/* ── Single post hero: entrance animations ── */
.single-post-header .editorial-panel__label,
.single-post-header .editorial-kicker {
    animation: contactFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.single-post-header h1 {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.single-post-header .section__subtitle,
.single-post-header .story-meta {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.single-post-header .editorial-hero__tags,
.single-post-header .story-tags {
    animation: contactFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* ── Story article: enhanced shadow ── */
.story-article {
    box-shadow:
        0 2px 6px rgba(7, 19, 31, 0.04),
        0 8px 28px rgba(7, 19, 31, 0.07),
        0 24px 64px rgba(7, 19, 31, 0.05) !important;
    transition: box-shadow 0.3s ease;
}

.story-article:hover {
    box-shadow:
        0 2px 6px rgba(7, 19, 31, 0.05),
        0 12px 36px rgba(7, 19, 31, 0.1),
        0 32px 80px rgba(7, 19, 31, 0.07) !important;
}

/* ── TOC block: animate-in entrance ── */
.story-tools__block.animate-in {
    opacity: 0;
    transform: translateX(-16px);
}

.story-tools__block.is-visible {
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ── TOC links: smooth slide indicator on hover ── */
.story-toc__link {
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.story-toc__link:hover {
    padding-left: 1.1rem !important;
    background: rgba(216, 135, 58, 0.08) !important;
}

/* ── Story author: deeper shadow + avatar glow on hover ── */
.story-author {
    transition:
        box-shadow 0.3s ease,
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.story-author:hover {
    box-shadow:
        0 4px 12px rgba(7, 19, 31, 0.06),
        0 16px 48px rgba(7, 19, 31, 0.12) !important;
    transform: translateY(-3px);
}

.story-author:hover .story-author__avatar img {
    border-color: rgba(216, 135, 58, 0.6);
    box-shadow: 0 0 0 4px rgba(216, 135, 58, 0.12);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── Story nav items: deeper shadow + stronger lift ── */
.story-nav__item {
    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease,
        border-color 0.25s ease !important;
    border: 1px solid rgba(15, 28, 63, 0.08) !important;
}

.story-nav__item:hover {
    transform: translateY(-5px) !important;
    box-shadow:
        0 6px 18px rgba(7, 19, 31, 0.08),
        0 18px 48px rgba(7, 19, 31, 0.12) !important;
    border-color: rgba(216, 135, 58, 0.2) !important;
}

/* ── Story nav items: animate-in entrance ── */
.story-nav__item.animate-in {
    opacity: 0;
    transform: translateY(20px);
}

.story-nav__item.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.story-nav__item.animate-in:nth-child(1) { transition-delay: 0.05s; }
.story-nav__item.animate-in:nth-child(2) { transition-delay: 0.15s; }

/* =============================================================
   TOOL REVIEW PAGES — Elegant UI Enhancement
   ============================================================= */

/* ── Tool review hero: entrance animations ── */
.tool-review-hero__meta {
    animation: contactFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.tool-review-hero__title {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.tool-review-hero__intro {
    animation: contactFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.tool-review-hero__badges {
    animation: contactFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

/* ── Tool review hero: second glow orb (left side) ── */
.tool-review-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 45%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(0, 150, 183, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

/* ── Tool review badges: hover lift ── */
.tool-review-badge {
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.tool-review-badge:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-2px);
}

/* ── Tool review panels: layered shadow ── */
.tool-review-panel {
    box-shadow:
        0 1px 3px rgba(7, 19, 31, 0.05),
        0 4px 14px rgba(7, 19, 31, 0.07),
        0 12px 28px rgba(7, 19, 31, 0.05) !important;
    transition:
        box-shadow 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.28s ease !important;
}

.tool-review-panel:not(.tool-review-panel--dark):hover {
    box-shadow:
        0 2px 6px rgba(7, 19, 31, 0.06),
        0 10px 28px rgba(7, 19, 31, 0.12),
        0 20px 48px rgba(7, 19, 31, 0.08) !important;
    transform: translateY(-3px);
    border-color: rgba(216, 135, 58, 0.18) !important;
}

/* ── Tool review jump nav links: enhanced hover ── */
.tool-review-jumpnav__link {
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.tool-review-jumpnav__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 26, 43, 0.15) !important;
}

/* ── Tool review main panel sections: animate-in ── */
.tool-review-panel.animate-in {
    opacity: 0;
    transform: translateY(20px);
}

.tool-review-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Staggered delays for panels in main content */
.tool-review-main .tool-review-panel.animate-in:nth-child(1) { transition-delay: 0.05s; }
.tool-review-main .tool-review-panel.animate-in:nth-child(2) { transition-delay: 0.12s; }
.tool-review-main .tool-review-panel.animate-in:nth-child(3) { transition-delay: 0.19s; }
.tool-review-main .tool-review-panel.animate-in:nth-child(4) { transition-delay: 0.26s; }