/*
Theme Name: AffiliateCMS Child
Theme URI: https://lat.vn/
Description: Child theme for AffiliateCMS Theme. Add your custom styles and overrides here.
Author: AffiliateCMS Team
Author URI: https://lat.vn/
Template: affiliateCMS-theme
Version: 1.0.36
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: affiliatecms-child
*/

/* ==========================================================================
   Custom Styles - Add your overrides below
   ========================================================================== */

/* ==========================================================================
   Site-wide default font — Plus Jakarta Sans
   Overrides the theme's --font-sans token (default: Inter). Every
   component that uses var(--font-sans) — body text, nav, buttons,
   headings via the .ui helper, etc. — picks this up automatically.
   Loaded via Google Fonts in functions.php (pg-font-jakarta handle).
   ========================================================================== */

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Header — dark "always-black" redesign
   Overrides template-parts/header/site-header.php (copied into this child
   theme). Uses fixed hex colors on purpose so the header stays black in
   both light and dark site-wide modes — it is a fixed brand bar, not a
   themed surface. The hamburger here opens the PARENT theme's default
   mobile nav side-drawer (not modified) — no custom dropdown panel.
   ========================================================================== */

:root {
    --pg-header-bg: #0a0a0a;
    --pg-header-border: #262626;
    --pg-yellow: #fdce48;
    --pg-yellow-hover: #f3bd27;
}

.site-header--dark {
    background-color: var(--pg-header-bg) !important;
    border-bottom: 1px solid var(--pg-header-border) !important;
}

/* 3-column grid: left group | search (true center) | right group.
   Using minmax() for the center column (instead of relying on the search
   button's own width) is what keeps it visually centered even though the
   left and right groups are different widths. */
.header__inner--dark {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 490px) 1fr;
    align-items: center;
    gap: var(--space-3);
}

/* Center group: hamburger + search bar, side by side */
.header__search-group--dark {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    min-width: 0;
}

/* Hamburger — always visible (replaces the old mobile-only icon + desktop
   inline menu). Opens the parent theme's default mobile nav side-drawer. */
.header__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: #f5f5f5;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background-color var(--duration-150) var(--ease-out);
}

.header__hamburger:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.header__hamburger i {
    font-size: 22px;
}

.header__hamburger .icon-close {
    display: none;
}

.header__hamburger[aria-expanded="true"] .icon-menu {
    display: none;
}

.header__hamburger[aria-expanded="true"] .icon-close {
    display: block;
}

/* Logo */
.header__logo--dark {
    flex-shrink: 0;
    max-width: 150px;
}

.header__logo-link {
    display: flex;
    align-items: center;
}

.header__logo--dark img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .header__logo--dark {
        max-width: 190px;
    }

    .header__logo--dark img {
        height: 34px;
        max-width: 190px;
    }
}

/* Fake search bar — a button styled like an input; clicking it opens the
   theme's existing search modal via [data-search-toggle], no new JS needed */
.header__searchbar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1 1 auto;
    width: 100%;
    max-width: 440px;
    min-width: 0;
    height: 42px;
    padding: 0 var(--space-4);
    background-color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: box-shadow var(--duration-150) var(--ease-out);
}

.header__searchbar:hover,
.header__searchbar:focus-visible {
    box-shadow: 0 0 0 2px var(--pg-yellow);
    outline: none;
}

.header__searchbar-icon {
    font-size: 18px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.header__searchbar-placeholder {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: #6b6b6b;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 639px) {
    .header__searchbar-placeholder {
        display: none;
    }

    .header__searchbar {
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }
}

/* Right group: text link + CTA button, right-aligned in its grid column */
.header__actions--dark {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-4);
    min-width: 0;
}

.header__link--dark {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: #f5f5f5;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--duration-150) var(--ease-out);
}

.header__link--dark:hover {
    opacity: 0.75;
}

@media (max-width: 639px) {
    .header__link--dark {
        display: none;
    }
}

.header__cta--dark {
    background-color: var(--pg-yellow);
    color: #1a1a1a;
    border-color: var(--pg-yellow);
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
}

.header__cta--dark:hover {
    background-color: var(--pg-yellow-hover);
    border-color: var(--pg-yellow-hover);
    color: #1a1a1a;
}

@media (max-width: 480px) {
    .header__cta--dark {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }
}

/* The parent theme hides its mobile nav side-drawer at >=1024px by default
   (desktop used to show an inline menu instead of a hamburger). Since this
   header always shows the hamburger — at every width — the default
   side-drawer needs to stay toggleable at desktop too. No other part of
   the drawer (position/colors/content) is touched — it is 100% the
   parent theme's default panel, just made visible here. */
@media (min-width: 1024px) {
    .mobile-nav {
        display: flex;
    }
}

/* ==========================================================================
   Affiliate disclosure bar — brand it instead of the default light strip
   The parent's .post-disclosure background is transparent, so it just
   inherits the page's light bg and sits awkwardly right under the black
   header. Making it dark continues the header visually instead of
   looking like an unrelated, bolted-on notice.
   ========================================================================== */

.post-disclosure {
    background-color: var(--pg-header-bg) !important;
}

.post-disclosure__icon {
    color: var(--pg-yellow) !important;
}

.post-disclosure__text {
    color: #d4d4d4 !important;
}

.post-disclosure__link {
    color: var(--pg-yellow) !important;
}

.post-disclosure__link:hover {
    color: var(--pg-yellow-hover) !important;
}

.post-disclosure__promos {
    border-top-color: var(--pg-header-border) !important;
}

.post-disclosure__promo {
    color: #d4d4d4 !important;
}

.post-disclosure__promo a {
    color: var(--pg-yellow) !important;
}

/* ==========================================================================
   Homepage hero — dark, brand black/yellow
   New section (template-parts/sections/hero.php, child theme only),
   added before the parent's existing featured-posts/latest-posts sections
   via a front-page.php override. Same --pg-* brand variables as the header.
   ========================================================================== */

.hero--dark {
    background-color: var(--pg-header-bg);
    padding: var(--space-16) 0;
}

.hero--dark__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero--dark__inner {
        grid-template-columns: 1.3fr 1fr;
        gap: var(--space-16);
    }
}

/* Sizes below are measured off consumerreports.org's real hero (computed
   styles, not guessed): H1 70px/72px line-height weight 700, subtitle
   20px/28px weight 400. Their font is Averta (a paid, licensed webfont we
   don't have rights to serve) — so this uses their own fallback stack,
   Helvetica/Arial/sans-serif, which is what actually renders for anyone
   without the Averta license anyway. */
.hero--dark__title {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 70px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: normal;
    color: #ffffff;
    margin: 0 0 var(--space-4);
}

.hero--dark__subtitle {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    color: #c9c9c9;
    max-width: 46ch;
    margin: 0 0 var(--space-8);
}

.hero--dark__stats {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

@media (max-width: 480px) {
    .hero--dark__stats {
        flex-wrap: wrap;
    }
}

.hero--dark__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 0 auto;
    padding-left: var(--space-5);
    border-left: 1px solid var(--pg-header-border);
}

.hero--dark__stat:first-child {
    padding-left: 0;
    border-left: none;
}

/* Kept deliberately smaller than the heading (70px) — these are
   supporting stats, not a second headline. */
.hero--dark__stat-num {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: clamp(1.5rem, 2vw, 2.25rem);
    font-weight: 700;
    color: var(--pg-yellow);
    line-height: 1.15;
    white-space: nowrap;
}

.hero--dark__stat-label {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a3a3a3;
    max-width: 16ch;
}

/* CTA: measured 16px weight 700 ("Become a Member") */
.hero--dark__cta {
    background-color: var(--pg-yellow);
    color: #1a1a1a;
    border-color: var(--pg-yellow);
    border-radius: var(--radius-full);
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    padding: var(--space-4) var(--space-7);
    font-size: 16px;
}

.hero--dark__cta:hover {
    background-color: var(--pg-yellow-hover);
    border-color: var(--pg-yellow-hover);
    color: #1a1a1a;
}

/* Right: white "Latest Posts" card */
.hero--dark__card {
    background-color: #ffffff;
    border-radius: var(--radius-2xl);
    padding: var(--space-6) var(--space-7);
    box-shadow: var(--shadow-xl);
}

.hero--dark__card-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b8860b;
    margin-bottom: var(--space-3);
}

.hero--dark__card-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero--dark__card-list li {
    border-bottom: 1px solid var(--color-border-subtle);
}

.hero--dark__card-list li:last-child {
    border-bottom: none;
}

.hero--dark__card-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) 0;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.4;
    transition: color var(--duration-150) var(--ease-out);
}

.hero--dark__card-list a:hover {
    color: var(--pg-yellow-hover);
}

.hero--dark__card-list a i {
    flex-shrink: 0;
    font-size: var(--text-base);
    color: #9a9a9a;
}

/* ==========================================================================
   "Trusted Advice" post carousel — dark, brand black/yellow
   New section (template-parts/sections/trusted-advice.php, child theme
   only), a horizontal scroll-snap track of the 5 latest posts with
   prev/next arrow controls (assets/js/trusted-advice.js).
   ========================================================================== */

.trusted-advice--dark {
    background-color: var(--pg-header-bg);
    padding: var(--space-16) 0;
    overflow: hidden;
}

.trusted-advice__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-10);
    padding: 0 var(--space-5);
}

.trusted-advice__title {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 var(--space-3);
}

.trusted-advice__subtitle {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: var(--text-base);
    color: #c9c9c9;
    margin: 0;
}

.trusted-advice__track {
    display: flex;
    gap: var(--space-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 8vw var(--space-2);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.trusted-advice__track::-webkit-scrollbar {
    display: none;
}

@media (max-width: 640px) {
    .trusted-advice__track {
        padding: 0 var(--space-5) var(--space-2);
    }
}

.trusted-advice__card {
    flex: 0 0 auto;
    width: min(560px, 78vw);
    scroll-snap-align: center;
    text-decoration: none;
    color: inherit;
}

.trusted-advice__card-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: var(--pg-header-border);
}

.trusted-advice__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-300) var(--ease-out);
}

.trusted-advice__card:hover .trusted-advice__card-media img {
    transform: scale(1.04);
}

.trusted-advice__card-tag {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pg-yellow);
    margin-top: var(--space-4);
}

.trusted-advice__card-title {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: var(--space-1) 0 0;
    transition: color var(--duration-150) var(--ease-out);
}

.trusted-advice__card:hover .trusted-advice__card-title {
    color: var(--pg-yellow);
}

.trusted-advice__card-meta {
    display: block;
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #a3a3a3;
    margin-top: var(--space-2);
}

.trusted-advice__nav {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.trusted-advice__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--duration-150) var(--ease-out);
}

.trusted-advice__nav-btn:hover {
    background-color: var(--pg-yellow);
    border-color: var(--pg-yellow);
    color: #1a1a1a;
}

/* ==========================================================================
   Value proposition bar — light strip
   New section (template-parts/sections/value-bar.php, child theme only).
   Breaks the dark run with a light bar, like the reference, before the
   lighter content sections further down the page.
   ========================================================================== */

.value-bar--light {
    background-color: #f3f1ec;
    border-top: 1px solid #e5e2db;
    border-bottom: 1px solid #e5e2db;
    padding: var(--space-5) 0;
}

.value-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-3) var(--space-6);
}

.value-bar__statement {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #1a1a1a;
}

.value-bar__items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-5);
}

.value-bar__item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 500;
    color: #3a3a3a;
    white-space: nowrap;
}

.value-bar__item i {
    font-style: normal;
    color: var(--pg-yellow-hover);
    font-size: 15px;
}

.value-bar__cta {
    background-color: var(--pg-yellow);
    color: #1a1a1a;
    border-color: var(--pg-yellow);
    border-radius: var(--radius-full);
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: var(--space-2) var(--space-5);
}

.value-bar__cta:hover {
    background-color: var(--pg-yellow-hover);
    border-color: var(--pg-yellow-hover);
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .value-bar__inner {
        justify-content: flex-start;
        text-align: left;
    }
}

/* ==========================================================================
   Category spotlight — light section
   New section (template-parts/sections/category-spotlight.php, child
   theme only): category tabs + one big featured post + a 4-card grid.
   Tabs link to real category archives; story/grid use real latest posts.
   ========================================================================== */

.category-spotlight--light {
    background-color: #ffffff;
    padding: var(--space-16) 0;
}

.category-spotlight__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-bottom: var(--space-10);
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: var(--space-4);
}

.category-spotlight__tab {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-decoration: none;
    padding-bottom: var(--space-2);
    border-bottom: 2px solid transparent;
    transition: color var(--duration-150) var(--ease-out);
}

.category-spotlight__tab:hover {
    color: var(--color-text);
}

.category-spotlight__tab.is-active {
    color: #1a1a1a;
    border-bottom-color: var(--pg-yellow);
}

.category-spotlight__story {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-decoration: none;
    color: inherit;
    margin-bottom: var(--space-10);
}

@media (min-width: 900px) {
    .category-spotlight__story {
        grid-template-columns: 1.1fr 1fr;
        align-items: center;
        gap: var(--space-10);
    }
}

.category-spotlight__story-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: var(--color-bg-alt);
}

.category-spotlight__story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-300) var(--ease-out);
}

.category-spotlight__story:hover .category-spotlight__story-media img {
    transform: scale(1.03);
}

.category-spotlight__eyebrow {
    display: block;
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pg-yellow-hover);
    margin-bottom: var(--space-3);
}

.category-spotlight__story-title {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0 0 var(--space-4);
    transition: color var(--duration-150) var(--ease-out);
}

.category-spotlight__story:hover .category-spotlight__story-title {
    color: var(--pg-yellow-hover);
}

.category-spotlight__story-excerpt {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

.category-spotlight__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
}

@media (min-width: 768px) {
    .category-spotlight__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-spotlight__card {
    text-decoration: none;
    color: inherit;
}

.category-spotlight__card-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--color-bg-alt);
    margin-bottom: var(--space-3);
}

.category-spotlight__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-300) var(--ease-out);
}

.category-spotlight__card:hover .category-spotlight__card-media img {
    transform: scale(1.04);
}

.category-spotlight__card-title {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    transition: color var(--duration-150) var(--ease-out);
}

.category-spotlight__card:hover .category-spotlight__card-title {
    color: var(--pg-yellow-hover);
}

/* ==========================================================================
   Footer — dense multi-column, brand black/yellow
   Overrides template-parts/footer/footer-minimal.php (copied into this
   child theme). Columns are real pages/categories on this site only — no
   fabricated "For Businesses"/"Resources" links, no social icons (none
   configured yet; the parent default showed dead "#" placeholders).
   ========================================================================== */

.site-footer--dark {
    background-color: var(--pg-header-bg);
    padding: var(--space-16) 0 var(--space-8);
}

.footer--dark__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding-bottom: var(--space-10);
    border-bottom: 1px solid var(--pg-header-border);
}

@media (min-width: 768px) {
    .footer--dark__grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: var(--space-8);
    }
}

.footer--dark__logo {
    display: inline-block;
}

.footer--dark__logo img {
    display: block;
    height: 32px;
    width: auto;
}

.footer--dark__description {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #a3a3a3;
    max-width: 34ch;
    margin: var(--space-4) 0 0;
}

.footer--dark__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer--dark__col-title {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: var(--space-1);
}

.footer--dark__col a {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #a3a3a3;
    text-decoration: none;
    transition: color var(--duration-150) var(--ease-out);
}

.footer--dark__col a:hover {
    color: var(--pg-yellow);
}

.footer--dark__disclosure {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: #7a7a7a;
    max-width: 70ch;
    margin: var(--space-6) 0 0;
}

.footer--dark__bottom {
    margin-top: var(--space-6);
}

.footer--dark__copyright {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #7a7a7a;
    margin: 0;
}

/* ==========================================================================
   Remove the theme's default teal/coral gradient banners
   These sat behind the title on single posts, pages, the contact page and
   category headers (post-hero__gradient, page-header__gradient,
   contact-hero__gradient, cat1-header--gradient) — all plain white now.
   ========================================================================== */

.post-hero__gradient,
.page-header__gradient,
.contact-hero__gradient,
[data-theme="dark"] .post-hero__gradient,
[data-theme="dark"] .page-header__gradient,
[data-theme="dark"] .contact-hero__gradient {
    background: #ffffff !important;
}

.cat1-header--gradient {
    background: #ffffff !important;
}

.cat1-header--gradient .cat1-header__title {
    color: var(--color-text) !important;
}

.cat1-header--gradient .cat1-header__meta {
    color: var(--color-text-muted) !important;
}

/* ==========================================================================
   Post hero — left-aligned instead of centered
   Overrides single.php (copied into this child theme). Only the hero
   block's alignment/author-role line changed; content/footer/comments
   markup is untouched.
   ========================================================================== */

/* Pull the hero's top padding way in so the breadcrumb sits right under
   the header/disclosure bar, then push the title down away from it. */
.post-hero--left {
    padding-top: var(--space-4) !important;
}

/* Smaller, bolder title — reference uses a heavier/denser weight at a
   more modest size than the theme's default clamp up to 3rem. */
.post-hero--left .post-hero__title {
    font-size: clamp(1.75rem, 3.2vw, 2.375rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

.post-hero--left .post-hero__content {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.post-hero--left .breadcrumb,
.post-hero--left .breadcrumb * {
    font-size: 12px !important;
}

.post-hero--left .breadcrumb {
    display: block;
    text-align: left;
    margin-bottom: var(--space-8);
}

.post-hero--left .breadcrumb nav,
.post-hero--left .breadcrumb p {
    text-align: left;
    justify-content: flex-start;
    width: auto;
}

/* Other post types (e.g. acms_reviews) use the theme's native breadcrumb
   markup (.breadcrumb__list) instead of the Rank Math wrapper above —
   its own CSS centers it with !important, so this needs to match. */
.post-hero--left .breadcrumb__list {
    justify-content: flex-start !important;
}

.post-hero--left .breadcrumb--rankmath {
    justify-content: flex-start !important;
    text-align: left !important;
}

.post-hero--left .breadcrumb__current,
.post-hero--left .breadcrumb__separator {
    display: inline-flex !important;
}

.post-hero--left .post-hero__excerpt {
    margin-left: 0;
    margin-right: 0;
    max-width: 650px;
}

.post-hero--left .post-hero__meta {
    justify-content: flex-start;
    align-items: center;
}

.post-hero--left .post-hero__author-info {
    text-align: left;
}

.post-hero--left .post-hero__details {
    justify-content: flex-start;
}

.post-hero--left .breadcrumb {
    justify-content: flex-start;
}

/* Bigger avatar + matching text sizes, with a subtle dark ring instead
   of the theme's default white border. */
.post-hero__author-avatar {
    width: 56px !important;
    height: 56px !important;
    border: 2px solid rgba(26, 29, 33, 0.18) !important;
    box-shadow: none !important;
}

.post-hero__author-name {
    display: block;
    font-size: 17px;
    text-decoration: underline;
    font-weight: var(--font-bold);
}

.post-hero__author-role {
    display: block;
    font-size: 14px;
    font-style: italic;
}

/* The theme's decorative hero background (dot-pattern layer) extends
   200px below the hero section by design (bottom:-200px), meant to fade
   into a colored gradient. With that gradient removed (now plain white),
   it was left overlapping/dulling the first ~200px of the article
   content instead. Hidden entirely for this left-aligned hero. */
.post-hero--left .post-hero__background {
    display: none;
}

/* Article/page content column was centered on the page (margin:0 auto
   with a 900px max-width) even though its text is already left-aligned.
   Flush it to the left edge instead of centering the whole column. */
.post-content {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* "Updated {date}" line under the author block, with a dashed divider
   below it, matching the reference style. */
.post-hero__updated-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin: var(--space-4) 0 0;
    padding-bottom: var(--space-4);
    border-bottom: 1px dashed var(--color-border);
}

.post-hero__updated-line {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

.post-hero__updated-sep {
    margin: 0 var(--space-2);
}

/* Decorative only — see comment in single.php */
.post-hero__save-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
}

.post-hero__save-badge i {
    color: var(--pg-yellow-hover);
    font-size: 14px;
}

/* ==========================================================================
   Review stat box — real 2nd column, acms_reviews posts only
   New (template-parts/single/review-stat-box.php, child theme). A true
   grid column next to .post-content (not floated/inline with the text) —
   they don't interact; the box just sits beside the article, pinned to
   the top of its column.
   ========================================================================== */

.post-article__grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--space-10);
}

@media (min-width: 900px) {
    .post-article__grid {
        grid-template-columns: 1fr 260px;
    }
}

.post-article__stat-col {
    position: sticky;
    top: var(--space-6);
}

.acms-stat-box {
    width: 100%;
    margin: 0;
    padding: var(--space-6) var(--space-5);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    text-align: center;
}

.acms-stat-box__image {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin: 0 0 var(--space-4);
}

.acms-stat-box__number {
    display: block;
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #1a1a1a;
}

.acms-stat-box__label {
    display: block;
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: var(--color-text-muted);
    margin: var(--space-2) 0 var(--space-5);
}

.acms-stat-box__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--pg-yellow);
    color: #1a1a1a;
    border-radius: var(--radius-full);
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: var(--space-3) var(--space-5);
    text-decoration: none;
    transition: background-color var(--duration-150) var(--ease-out);
}

.acms-stat-box__cta:hover {
    background-color: var(--pg-yellow-hover);
}

@media (max-width: 899px) {
    .post-article__stat-col {
        position: static;
        margin-bottom: var(--space-8);
    }
}
