/* ============================================================
   NEWHOME CORNER EDITORIAL PORTAL — DESIGN SYSTEM
   Editorial / high-density / trustworthy / data-driven
   Namespaced tokens (--ep-*) so DB-injected :root vars never clash.
   ============================================================ */

:root {
    /* Backgrounds */
    --ep-bg-page: #FFFFFF;
    --ep-bg-soft: #F5F5F5;
    --ep-bg-dark: #151515;
    --ep-bg-footer: #0D0D0D;

    /* Text */
    --ep-text: #111111;
    --ep-text-secondary: #5F6368;
    --ep-text-muted: #666666;
    --ep-text-inverse: #FFFFFF;

    /* Brand */
    --ep-brand: #00D9B2;
    --ep-brand-dark: #007A68;
    --ep-accent-blue: #1677FF;
    --ep-warning: #F5A623;
    --ep-up: #0A8F5B;
    --ep-down: #D0342C;

    /* Borders */
    --ep-border-light: #E3E3E3;
    --ep-border-medium: #BDBDBD;
    --ep-border-dark: #333333;

    /* Typography */
    --ep-font-head: "Newsreader", Georgia, serif;
    --ep-font-body: "Manrope", Arial, sans-serif;

    /* Layout */
    --ep-max: 1180px;
    --ep-content: 1040px;
    --ep-pad: 24px;
    --ep-col-gap: 18px;
    --ep-row-gap: 24px;
    --ep-section-gap: 48px;
    --ep-card-gap: 16px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ep-bg-page);
    color: var(--ep-text);
    font-family: var(--ep-font-body);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--ep-font-head);
    font-weight: 700;
    color: var(--ep-text);
}

p { margin: 0; }

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--ep-accent-blue);
    outline-offset: 2px;
}

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */

.ep-container {
    width: 100%;
    max-width: var(--ep-max);
    margin: 0 auto;
    padding-left: var(--ep-pad);
    padding-right: var(--ep-pad);
}

main {
    display: block;
}

/* ============================================================
   HEADER — MAIN BAR
   ============================================================ */

.ep-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--ep-bg-footer);
}

.ep-header-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 64px;
    gap: 16px;
}

.ep-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
}

.ep-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.ep-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #FFFFFF;
    font-size: 22px;
}

.ep-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: center;
    font-family: var(--ep-font-head);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #FFFFFF;
}

.ep-logo .site-brand-logo { height: 38px; width: auto; }
.ep-logo i { color: var(--ep-brand); font-size: 26px; }
.ep-logo em { color: var(--ep-brand); font-style: normal; }

.ep-header-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    transition: color 180ms ease;
}

.ep-header-search:hover { color: var(--ep-brand); }

.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 2px;
    border: 0;
    font-family: var(--ep-font-body);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.ep-btn-primary {
    background: var(--ep-brand);
    color: var(--ep-text);
}
.ep-btn-primary:hover { background: var(--ep-brand-dark); }

.ep-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.ep-btn-ghost:hover { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }

.ep-header-auth-form { margin: 0; }

/* ============================================================
   HEADER — PRIMARY NAV
   ============================================================ */

.ep-nav-primary {
    background: var(--ep-bg-footer);
    border-top: 1px solid #262626;
}

.ep-nav-primary .ep-container {
    display: flex;
    justify-content: center;
}

.ep-nav-primary-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.ep-nav-primary-list > li > a {
    display: block;
    padding: 11px 13px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 160ms ease;
}

.ep-nav-primary-list > li > a:hover,
.ep-nav-primary-list > li > a.active {
    color: var(--ep-brand);
}

/* ============================================================
   HEADER — SECONDARY NAV
   ============================================================ */

.ep-nav-secondary {
    background: var(--ep-bg-page);
    border-bottom: 1px solid var(--ep-border-light);
}

.ep-nav-secondary-list {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.ep-nav-secondary-list::-webkit-scrollbar { display: none; }

.ep-nav-secondary-list > li > a {
    display: block;
    padding: 9px 14px;
    color: var(--ep-text-secondary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 160ms ease, border-color 160ms ease;
}

.ep-nav-secondary-list > li:first-child > a { padding-left: 0; }

.ep-nav-secondary-list > li > a:hover,
.ep-nav-secondary-list > li > a.active {
    color: var(--ep-text);
    border-bottom-color: var(--ep-brand);
}

/* ============================================================
   ADVERTISING SLOTS
   ============================================================ */

.ep-ad {
    background: var(--ep-bg-page);
}

.ep-ad-leaderboard { min-height: 90px; margin: 20px 0; }
.ep-ad-rectangle { min-height: 250px; }

/* ============================================================
   SECTION HEADER
   ============================================================ */

.ep-section {
    margin-top: var(--ep-section-gap);
}
.ep-section:first-of-type { margin-top: 28px; }

.ep-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 2px solid var(--ep-border-dark);
    padding-top: 10px;
    margin-bottom: 16px;
}

.ep-section-head h2 {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.ep-view-all {
    flex: 0 0 auto;
    font-family: var(--ep-font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ep-text-secondary);
    transition: color 160ms ease;
}
.ep-view-all:hover { color: var(--ep-brand-dark); }
.ep-view-all i { font-size: 12px; }

/* ============================================================
   HOME BRAND HERO
   ============================================================ */

.ep-home-hero {
    position: relative;
    min-height: 560px;
    margin-top: 28px;
    margin-bottom: 38px;
    padding-top: 70px;
    padding-bottom: 64px;
    overflow: hidden;
    background: var(--ep-surface);
    border-radius: 6px;
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.08);
}
.ep-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 24%, rgba(255, 255, 255, 0.5) 46%, rgba(255, 255, 255, 0.06) 72%);
    pointer-events: none;
}
.ep-home-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-home-hero-admin {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
}

.ep-home-hero-admin summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    background: rgba(17, 17, 17, 0.78);
    border-radius: 2px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
    transition: background 160ms ease;
}

.ep-home-hero-admin summary::-webkit-details-marker {
    display: none;
}

.ep-home-hero-admin summary:hover {
    background: var(--ep-bg-dark);
}

.ep-home-hero-admin-panel {
    width: min(380px, calc(100vw - 48px));
    margin-top: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--ep-border-light);
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.16);
}

.ep-home-hero-admin-panel label {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ep-text);
}

.ep-home-hero-admin-panel input,
.ep-home-hero-admin-panel textarea {
    width: 100%;
    border: 1px solid var(--ep-border-medium);
    border-radius: 2px;
    padding: 9px 10px;
    font-family: var(--ep-font-body);
    font-size: 13px;
    color: var(--ep-text);
    background: #FFFFFF;
}

.ep-home-hero-admin-panel textarea {
    resize: vertical;
}

.ep-home-hero-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 36px;
    margin-bottom: 12px;
    border: 0;
    border-radius: 2px;
    background: var(--ep-brand);
    color: var(--ep-text);
    font-size: 12px;
    font-weight: 800;
}

.ep-home-hero-admin-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.ep-home-hero-admin-msg {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--ep-text-secondary);
}

.ep-home-hero-admin-msg[data-type="success"] {
    color: var(--ep-up);
}

.ep-home-hero-admin-msg[data-type="error"] {
    color: var(--ep-down);
}

.ep-home-hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 520px;
}

.ep-home-hero-eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ep-brand-dark);
}

.ep-home-hero h1 {
    max-width: 12ch;
    font-family: var(--ep-font-body);
    font-size: 58px;
    line-height: 1.06;
    letter-spacing: 0;
}

.ep-home-hero h1 span {
    color: var(--ep-brand-dark);
}

.ep-home-hero-subtitle {
    max-width: 46ch;
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--ep-text-secondary);
}

.ep-home-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.ep-home-hero-actions .ep-btn {
    height: 44px;
    padding: 0 20px;
}

.ep-home-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border: 1px solid var(--ep-border-medium);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: var(--ep-text);
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.ep-home-hero-secondary:hover {
    background: var(--ep-bg-soft);
    border-color: var(--ep-text);
    color: var(--ep-text);
}

.ep-home-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.ep-home-hero-badges li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid var(--ep-border-light);
    border-radius: 2px;
    background: var(--ep-bg-page);
    font-size: 11px;
    font-weight: 700;
    color: var(--ep-text-secondary);
}

.ep-home-hero-badges i {
    color: var(--ep-brand-dark);
    font-size: 13px;
}

.ep-home-hero-trust {
    position: absolute;
    right: 46px;
    bottom: 42px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 420px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(227, 227, 227, 0.9);
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.12);
}

.ep-home-hero-trust i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    background: var(--ep-brand-dark);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 24px;
}

.ep-home-hero-trust strong,
.ep-home-hero-trust em {
    display: block;
    font-style: normal;
}

.ep-home-hero-trust strong {
    font-size: 15px;
    line-height: 1.25;
    color: var(--ep-text);
}

.ep-home-hero-trust em {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ep-text-secondary);
}

/* ============================================================
   CATEGORY BADGE / KICKER
   ============================================================ */

.ep-kicker {
    display: inline-block;
    font-family: var(--ep-font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--ep-brand-dark);
    transition: color 160ms ease;
}
.ep-kicker:hover { color: var(--ep-brand); }

.ep-badge-pro {
    display: inline-block;
    padding: 2px 7px;
    border: 1px solid var(--ep-brand-dark);
    border-radius: 2px;
    font-family: var(--ep-font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ep-brand-dark);
}

.ep-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--ep-text-muted);
}
.ep-meta i { font-size: 12px; }
.ep-meta + .ep-meta::before {
    content: "\2022";
    margin-right: 5px;
    color: var(--ep-border-medium);
}

/* ============================================================
   ARTICLE CARD — image top
   ============================================================ */

.ep-card {
    display: flex;
    flex-direction: column;
    background: transparent;
}

.ep-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--ep-bg-soft);
}

.ep-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}
.ep-card:hover .ep-card-media img { transform: scale(1.03); }

.ep-card-body { display: flex; flex-direction: column; gap: 6px; }

.ep-card-title {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}
.ep-card-title a { transition: color 160ms ease; }
.ep-card:hover .ep-card-title a { color: var(--ep-brand-dark); }

.ep-card-summary {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ep-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

/* Larger card title variant */
.ep-card-lg .ep-card-title { font-size: 20px; line-height: 1.25; }

/* ============================================================
   COMPACT ARTICLE — thumbnail + text
   ============================================================ */

.ep-compact {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 4px 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--ep-border-light);
}
.ep-compact:last-child { border-bottom: 0; }

.ep-compact-media {
    grid-row: span 2;
    width: 72px;
    height: 54px;
    overflow: hidden;
    background: var(--ep-bg-soft);
}
.ep-compact-media img { width: 100%; height: 100%; object-fit: cover; }

.ep-compact-title {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 160ms ease;
}
.ep-compact:hover .ep-compact-title { color: var(--ep-brand-dark); }

.ep-compact-meta { font-size: 11px; color: var(--ep-text-muted); }

/* Text-only compact (no thumb) */
.ep-compact-text {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--ep-border-light);
}
.ep-compact-text:last-child { border-bottom: 0; }

/* ============================================================
   RANKED HEADLINE LIST
   ============================================================ */

.ep-ranked {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--ep-border-light);
}
.ep-ranked:last-child { border-bottom: 0; }

.ep-ranked-num {
    font-family: var(--ep-font-head);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ep-brand-dark);
}

.ep-ranked-title {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 160ms ease;
}
.ep-ranked:hover .ep-ranked-title { color: var(--ep-brand-dark); }
.ep-ranked-meta { margin-top: 4px; font-size: 11px; color: var(--ep-text-muted); }

/* ============================================================
   GRIDS
   ============================================================ */

.ep-grid { display: grid; gap: var(--ep-col-gap); }
.ep-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ep-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ep-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   TOP NEWS HERO (3-column editorial)
   ============================================================ */

.ep-hero {
    display: grid;
    grid-template-columns: 3fr 6fr 3fr;
    gap: 24px;
    padding: 24px 0;
    border-top: 2px solid var(--ep-border-dark);
}

.ep-hero-col { min-width: 0; }
.ep-hero-col--divider {
    padding-left: 24px;
    border-left: 1px solid var(--ep-border-light);
}

.ep-hero-eyebrow {
    font-family: var(--ep-font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--ep-text-muted);
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--ep-border-light);
}

/* Main story (center) */
.ep-lead-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--ep-bg-soft);
}
.ep-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 200ms ease; }
.ep-lead-media:hover img { transform: scale(1.02); }

.ep-lead-title {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.4px;
    margin: 8px 0 10px;
}
.ep-lead-title a { transition: color 160ms ease; }
.ep-lead-title a:hover { color: var(--ep-brand-dark); }

.ep-lead-summary {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ep-text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ep-text-muted);
}
.ep-byline strong { color: var(--ep-text); font-weight: 700; }
.ep-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ep-bg-dark);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
}

@media (min-width: 1280px) {
    :root {
        --ep-max: 1380px;
    }

    .ep-hero {
        grid-template-columns: minmax(0, 21fr) minmax(0, 58fr) minmax(0, 21fr);
        column-gap: 20px;
        row-gap: 32px;
        padding: 28px 0 34px;
    }

    .ep-hero-col--divider {
        padding-left: 16px;
    }

    .ep-lead-media {
        margin-bottom: 16px;
    }

    .ep-lead-title {
        max-width: 23ch;
        font-size: 32px;
        line-height: 1.12;
        margin-bottom: 12px;
    }

    .ep-lead-summary {
        max-width: 66ch;
        margin-bottom: 16px;
    }
}

/* ============================================================
   FEATURED EDITORIAL MOSAIC
   ============================================================ */

.ep-mosaic {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: var(--ep-col-gap);
}

.ep-mosaic-secondary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--ep-border-light);
}

.ep-mosaic-bottom {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ep-col-gap);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ep-border-light);
}

/* Beside-image feature */
.ep-feature-split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
    align-items: start;
}
.ep-feature-split .ep-card-media { margin-bottom: 0; }
.ep-feature-split .ep-lead-title { font-size: 22px; margin-top: 0; }

/* ============================================================
   DARK SECTIONS (data strip / media)
   ============================================================ */

.ep-dark {
    background: var(--ep-bg-dark);
    color: var(--ep-text-inverse);
    padding: 40px 0;
    margin-top: var(--ep-section-gap);
}

.ep-dark .ep-section-head {
    border-top-color: #3A3A3A;
}
.ep-dark .ep-section-head h2 { color: #FFFFFF; }
.ep-dark .ep-view-all { color: rgba(255, 255, 255, 0.7); }
.ep-dark .ep-view-all:hover { color: var(--ep-brand); }
.ep-dark .ep-card-title,
.ep-dark .ep-compact-title { color: rgba(255, 255, 255, 0.94); }
.ep-dark .ep-card:hover .ep-card-title a { color: var(--ep-brand); }
.ep-dark .ep-card-summary { color: rgba(255, 255, 255, 0.62); }
.ep-dark .ep-kicker { color: var(--ep-brand); }

/* ============================================================
   TOPIC COLUMNS (3-column)
   ============================================================ */

.ep-topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.ep-topic-col { min-width: 0; }
.ep-topic-col + .ep-topic-col {
    padding-left: 28px;
    border-left: 1px solid var(--ep-border-light);
}

.ep-topic-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--ep-border-dark);
    padding-bottom: 8px;
    margin-bottom: 14px;
}
.ep-topic-head h3 { font-size: 18px; }

.ep-topic-lead-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--ep-bg-soft);
}
.ep-topic-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.ep-topic-lead-media:hover img { transform: scale(1.03); }
.ep-topic-lead-title { font-size: 17px; line-height: 1.28; margin-bottom: 12px; }
.ep-topic-lead-title a:hover { color: var(--ep-brand-dark); }

/* ============================================================
   RECENT ARTICLES + LOAD MORE
   ============================================================ */

.ep-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}
.ep-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 26px;
    background: transparent;
    border: 1px solid var(--ep-text);
    border-radius: 2px;
    color: var(--ep-text);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 160ms ease, color 160ms ease;
}
.ep-btn-outline:hover { background: var(--ep-text); color: #FFFFFF; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    margin-top: var(--ep-section-gap);
    background: var(--ep-bg-footer);
    color: var(--ep-text-inverse);
}

.ep-footer-top { padding: 48px 0 36px; }

.ep-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 32px;
}

.ep-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ep-font-head);
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}
.ep-footer-brand i { color: var(--ep-brand); }
.ep-footer-brand em { color: var(--ep-brand); font-style: normal; }
.ep-footer-tagline {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    max-width: 34ch;
}

.ep-footer-col-title {
    font-family: var(--ep-font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #FFFFFF;
    margin-bottom: 14px;
}
.ep-footer-col li { margin-bottom: 9px; }
.ep-footer-col a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    transition: color 160ms ease;
}
.ep-footer-col a:hover { color: var(--ep-brand); }

.ep-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid var(--ep-border-dark);
}
.ep-footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.ep-footer-bottom-links a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    transition: color 160ms ease;
}
.ep-footer-bottom-links a:hover { color: #FFFFFF; }
.ep-footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.68); }
.ep-footer-social { display: flex; gap: 14px; }
.ep-footer-social a,
.ep-footer-social span { position: relative; color: rgba(255, 255, 255, 0.72); font-size: 16px; transition: color 160ms ease; }
.ep-footer-social a::after {
    content: "";
    position: absolute;
    width: 44px;
    height: 44px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.ep-footer-social a:hover { color: var(--ep-brand); }

/* ============================================================
   NOTICES
   ============================================================ */

.notice {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: var(--ep-max);
    margin: 20px auto 0;
    padding: 12px 16px;
    background: #E9FBF5;
    border: 1px solid #A9E9D7;
    border-left: 3px solid var(--ep-brand-dark);
    color: #0A5C4A;
    font-size: 13px;
}
.notice.error {
    background: #FDECEA;
    border-color: #F5B7B1;
    border-left-color: var(--ep-down);
    color: #922B21;
    align-items: flex-start;
}
.notice i { font-size: 16px; }

/* ============================================================
   COOKIE CONSENT
   ============================================================ */

.ep-cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 500;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: min(80vw, calc(100vw - 36px));
    padding: 18px;
    background: #FFFFFF;
    border: 1px solid var(--ep-border-light);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(17, 17, 17, 0.18);
    transform: translateX(-50%);
}

.ep-cookie-consent[hidden] {
    display: none;
}

.ep-cookie-consent-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ep-cookie-consent-copy strong {
    font-family: var(--ep-font-head);
    font-size: 18px;
    line-height: 1.2;
    color: var(--ep-text);
}

.ep-cookie-consent-copy p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ep-text-secondary);
}

.ep-cookie-consent-copy a {
    color: var(--ep-brand-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ep-cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ep-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.ep-cookie-btn.primary {
    background: var(--ep-brand);
    border: 1px solid var(--ep-brand);
    color: var(--ep-text);
}

.ep-cookie-btn.secondary {
    background: #FFFFFF;
    border: 1px solid var(--ep-border-medium);
    color: var(--ep-text);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 12px;
    color: var(--ep-text-muted);
}
.breadcrumb a { color: var(--ep-text-secondary); transition: color 160ms ease; }
.breadcrumb a:hover { color: var(--ep-brand-dark); }
.breadcrumb-separator { color: var(--ep-border-medium); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

.article-page { padding-bottom: 40px; }
.article-page-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--ep-pad);
}

.article-header { margin-bottom: 28px; }
.article-header-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ep-brand-dark);
    margin-bottom: 12px;
}
.article-header h1 {
    font-size: 38px;
    line-height: 1.12;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
}
.article-summary {
    font-size: 18px;
    line-height: 1.5;
    color: var(--ep-text-secondary);
    margin-bottom: 22px;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--ep-border-light);
    border-bottom: 1px solid var(--ep-border-light);
}
.byline-item { display: flex; align-items: center; gap: 10px; }
.byline-item i { font-size: 20px; color: var(--ep-brand-dark); }
.byline-item strong { display: block; font-family: var(--ep-font-body); font-size: 13px; }
.byline-item small { color: var(--ep-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; }

/* Prose */
.prose {
    font-size: 17px;
    line-height: 1.7;
    color: #24282B;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; line-height: 1.25; margin-top: 1.6em; }
.prose h3 { font-size: 21px; line-height: 1.3; margin-top: 1.4em; }
.prose p { margin: 0; }
.prose a { color: var(--ep-brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--ep-brand); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 0.5em; }
.prose img { margin: 1.6em 0; }
.prose blockquote {
    margin: 1.6em 0;
    padding: 6px 0 6px 20px;
    border-left: 3px solid var(--ep-brand);
    font-family: var(--ep-font-head);
    font-size: 20px;
    font-style: italic;
    color: var(--ep-text);
}
.prose code {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.9em;
    background: var(--ep-bg-soft);
    padding: 2px 5px;
    border-radius: 2px;
}

/* TOC */
.toc {
    margin: 24px 0;
    padding: 18px 20px;
    background: var(--ep-bg-soft);
    border: 1px solid var(--ep-border-light);
}
.toc h3 { font-family: var(--ep-font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 10px; }
.toc a { display: block; padding: 4px 0; font-size: 14px; color: var(--ep-text-secondary); }
.toc a:hover { color: var(--ep-brand-dark); }

/* FAQ */
.faq { margin-top: 32px; }
.faq-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--ep-border-light);
}
.faq-item h3 { font-size: 18px; margin-bottom: 8px; }
.faq-content { font-size: 15px; line-height: 1.6; color: var(--ep-text-secondary); }

/* Project and safety note */
.project-disclaimer {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 32px 0;
    padding: 18px 20px;
    background: var(--ep-bg-soft);
    border: 1px solid var(--ep-border-light);
    border-left: 3px solid var(--ep-warning);
    font-size: 13px;
    line-height: 1.6;
    color: var(--ep-text-secondary);
}
.project-disclaimer i { font-size: 20px; color: var(--ep-warning); }

/* Trust / share links */
.trust-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ep-brand-dark);
    font-size: 13px;
    font-weight: 700;
}
.trust-link:hover { color: var(--ep-brand); }

/* Article sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-section {
    padding: 18px 20px;
    background: var(--ep-bg-soft);
    border: 1px solid var(--ep-border-light);
}
.sidebar-section h3 { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sidebar-section h3 i { color: var(--ep-brand-dark); }
.sidebar-section a { display: block; padding: 6px 0; font-size: 13px; color: var(--ep-text-secondary); border-bottom: 1px solid var(--ep-border-light); }
.sidebar-section a:last-child { border-bottom: 0; }
.sidebar-section a:hover { color: var(--ep-brand-dark); }

/* ============================================================
   ARTICLE CARD (partial) & ARTICLE ROW (partial)
   ============================================================ */

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ep-col-gap) var(--ep-col-gap);
}

.article-card { display: flex; flex-direction: column; }
.article-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--ep-bg-soft);
}
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.article-card:hover .article-card-image img { transform: scale(1.03); }
.article-card-body { display: flex; flex-direction: column; gap: 6px; }
.article-card-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--ep-brand-dark);
}
.article-card-title { font-size: 15px; line-height: 1.3; }
.article-card-title a:hover { color: var(--ep-brand-dark); }
.article-card-meta { font-size: 11px; color: var(--ep-text-muted); }
.article-card-meta i { font-size: 12px; }

.article-list { display: flex; flex-direction: column; }
.article-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ep-border-light);
}
.article-row-content { flex: 1; min-width: 0; }
.article-row-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--ep-brand-dark);
    margin-bottom: 6px;
}
.article-row-title { font-size: 18px; line-height: 1.3; margin-bottom: 6px; }
.article-row-title a:hover { color: var(--ep-brand-dark); }
.article-row-summary {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ep-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-row-meta { flex: 0 0 auto; font-size: 12px; color: var(--ep-text-muted); white-space: nowrap; }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */

.category-hero {
    padding: 8px 0 28px;
    border-bottom: 1px solid var(--ep-border-light);
    margin-bottom: 28px;
}
.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ep-brand-dark);
    margin-bottom: 10px;
}
.category-hero h1 { font-size: 38px; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 12px; }
.category-hero > p { font-size: 17px; line-height: 1.55; color: var(--ep-text-secondary); max-width: 70ch; margin-bottom: 20px; }

.hero-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 520px;
    padding: 6px 6px 6px 14px;
    background: var(--ep-bg-page);
    border: 1px solid var(--ep-border-medium);
    border-radius: 2px;
}
.hero-search-form i { color: var(--ep-text-muted); }
.hero-search-form input {
    flex: 1;
    border: 0;
    outline: none;
    font-family: var(--ep-font-body);
    font-size: 14px;
    background: transparent;
    color: var(--ep-text);
}
.hero-search-form button {
    height: 36px;
    padding: 0 18px;
    background: var(--ep-brand);
    border: 0;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-text);
    transition: background 160ms ease;
}
.hero-search-form button:hover { background: var(--ep-brand-dark); }

.category-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}
.category-intro { font-size: 16px; line-height: 1.7; color: #24282B; }
.category-intro > * + * { margin-top: 1em; }

.sidebar-card {
    padding: 20px;
    background: var(--ep-bg-soft);
    border: 1px solid var(--ep-border-light);
}
.sidebar-card h3 { font-size: 15px; margin-bottom: 14px; }
.sidebar-card span {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 10px;
    background: var(--ep-bg-page);
    border: 1px solid var(--ep-border-light);
    font-size: 12px;
    color: var(--ep-text-secondary);
}

.home-section { margin-top: 40px; }
.section-heading { font-size: 22px; margin-bottom: 18px; border-top: 2px solid var(--ep-border-dark); padding-top: 10px; }
.pagination-wrap { margin-top: 32px; }
.text-muted { color: var(--ep-text-muted); }
.pagination-wrap nav { display: flex; justify-content: center; }
.pagination-wrap svg,
.pagination svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */

.section { padding: 24px 0 40px; }
.search-page { background: var(--ep-bg-page); }
.search-page-container { max-width: var(--ep-content); }
.section-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}
.section-title h1 { font-size: 32px; letter-spacing: -0.4px; }
.section-title span { font-size: 13px; color: var(--ep-text-muted); }

.search-box {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin-bottom: 28px;
}
.search-box input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--ep-border-medium);
    border-radius: 2px;
    font-family: var(--ep-font-body);
    font-size: 14px;
    outline: none;
}
.search-box input:focus { border-color: var(--ep-brand-dark); }
.search-box button {
    height: 44px;
    padding: 0 22px;
    background: var(--ep-brand);
    border: 0;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-text);
    transition: background 160ms ease;
}
.search-box button:hover { background: var(--ep-brand-dark); }

/* ============================================================
   POLICY PAGES
   ============================================================ */

.policy-page { padding-bottom: 40px; }
.policy-page-container { max-width: var(--ep-content); margin: 0 auto; padding: 0 var(--ep-pad); }
.policy-header { margin-bottom: 32px; }
.policy-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}
.policy-content { font-size: 16px; line-height: 1.7; color: #24282B; }
.policy-content > * + * { margin-top: 1.1em; }
.policy-content h2 { font-size: 24px; margin-top: 1.5em; }
.policy-content h3 { font-size: 19px; margin-top: 1.3em; }
.policy-content a { color: var(--ep-brand-dark); text-decoration: underline; }
.policy-content ul, .policy-content ol { padding-left: 1.4em; }
.policy-content ul { list-style: disc; }
.policy-content ol { list-style: decimal; }
.policy-sidebar { position: sticky; top: 110px; }

/* ============================================================
   GENERIC BUTTONS (legacy classes kept for internal pages)
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    height: 40px;
    border-radius: 2px;
    background: var(--ep-brand);
    border: 1px solid var(--ep-brand);
    color: var(--ep-text);
    font-size: 13px;
    font-weight: 700;
    transition: background 160ms ease, color 160ms ease;
}
.btn:hover { background: var(--ep-brand-dark); border-color: var(--ep-brand-dark); }
.btn-outline { background: transparent; color: var(--ep-text); border-color: var(--ep-text); }
.btn-outline:hover { background: var(--ep-text); color: #FFFFFF; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }

/* Laravel pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
}
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--ep-border-light);
    color: var(--ep-text);
    font-size: 13px;
}
.pagination .page-item.active .page-link {
    background: var(--ep-brand);
    border-color: var(--ep-brand);
    color: var(--ep-text);
}
.pagination .page-item.disabled .page-link { color: var(--ep-border-medium); }

/* ============================================================
   MEGA MENU (mobile drawer categories — desktop hidden by default)
   ============================================================ */

.ep-drawer { display: none; }

/* ============================================================
   ARTICLE PAGE — 2-column layout (content + sidebar)
   Overrides the narrow single-column container above.
   ============================================================ */

.article-page .article-page-container { max-width: var(--ep-max); }

.ep-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
    margin-bottom: var(--ep-section-gap);
}
.ep-article-main { min-width: 0; }
.ep-article-main .prose { max-width: 720px; }

/* TOC uses <strong> + <ul> */
.toc strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ep-font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--ep-text);
    margin-bottom: 10px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc li a { display: block; padding: 4px 0; font-size: 14px; color: var(--ep-text-secondary); }
.toc li a:hover { color: var(--ep-brand-dark); }

/* FAQ uses <details>/<summary> */
.faq > h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    margin-bottom: 8px;
    border-top: 2px solid var(--ep-border-dark);
    padding-top: 10px;
}
.faq-item details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    font-family: var(--ep-font-head);
    font-size: 17px;
    font-weight: 700;
    color: var(--ep-text);
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary i {
    flex-shrink: 0;
    color: var(--ep-brand-dark);
    transition: transform 180ms ease;
}
.faq-item details[open] summary i { transform: rotate(180deg); }
.faq-item .faq-content { margin-top: 10px; }

/* Sidebar sticky within the article layout */
.ep-article-layout .sidebar { position: sticky; top: 110px; }

/* Share buttons */
.ep-share-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.ep-share-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 0;
    border: 1px solid #DDE4E8;
    border-bottom: 1px solid #DDE4E8;
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--ep-text);
    font-size: 16px;
    box-shadow: 0 1px 0 rgba(17, 17, 17, 0.04);
    overflow: hidden;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.sidebar-section .ep-share-btn {
    display: inline-flex;
    padding: 0;
    color: var(--ep-text);
    border-bottom: 1px solid #DDE4E8;
}
.ep-share-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    transition: opacity 160ms ease;
}
.ep-share-btn i {
    position: relative;
    z-index: 1;
}
.ep-share-btn[aria-label*="Facebook"]::before { background: #1877F2; }
.ep-share-btn[aria-label*="Facebook"]:hover { border-color: #1877F2; background: #1877F2; }
.ep-share-btn[aria-label*="X"]::before { background: #111111; }
.ep-share-btn[aria-label*="X"]:hover { border-color: #111111; background: #111111; }
.ep-share-btn[aria-label*="LinkedIn"]::before { background: #0A66C2; }
.ep-share-btn[aria-label*="LinkedIn"]:hover { border-color: #0A66C2; background: #0A66C2; }
.sidebar-section .ep-share-btn:hover,
.ep-share-btn:hover {
    transform: translateY(-2px);
    color: #FFFFFF;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.14);
}
.ep-share-btn:hover::before {
    opacity: 0;
}
.ep-share-btn:active { transform: translateY(0); }
.ep-share-btn:focus-visible {
    border-color: var(--ep-accent-blue);
    outline-offset: 3px;
}

/* ============================================================
   LOGIN / AUTH PAGE
   ============================================================ */

.login-page {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 520px;
    padding: 72px 24px;
   
}

.login-panel {
    width: 100%;
    max-width: 440px;
    padding: 34px;
    background: var(--ep-bg-page);
    border: 1px solid var(--ep-border-light);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(17, 17, 17, 0.09);
}

.login-panel-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: rgba(0, 217, 178, 0.12);
    color: var(--ep-brand-dark);
    font-size: 22px;
}

.login-panel .section-kicker {
    display: block;
    font-family: var(--ep-font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ep-brand-dark);
    margin-bottom: 5px;
}

.login-panel h1 {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: 0;
}

.login-error {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(208, 52, 44, 0.28);
    border-radius: 6px;
    background: rgba(208, 52, 44, 0.07);
    color: #8B1A12;
    font-size: 13px;
    line-height: 1.4;
}

.login-error i {
    margin-top: 1px;
    font-size: 15px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ep-text-secondary);
}

.login-form > label > input[type="email"],
.login-form > label > input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--ep-border-medium);
    border-radius: 6px;
    background: var(--ep-bg-page);
    font-family: var(--ep-font-body);
    font-size: 15px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--ep-text);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form > label > input[aria-invalid="true"] {
    border-color: var(--ep-down);
}

.login-form > label > input:focus {
    outline: none;
    border-color: var(--ep-brand-dark);
    box-shadow: 0 0 0 3px rgba(0, 217, 178, 0.15);
}

.login-remember {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--ep-text-secondary) !important;
    cursor: pointer;
}

.login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--ep-brand-dark);
    cursor: pointer;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    margin-top: 6px;
    padding: 0 20px;
    background: var(--ep-brand);
    border: 0;
    border-radius: 6px;
    color: var(--ep-text);
    font-family: var(--ep-font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}
.login-submit:hover {
    background: var(--ep-brand-dark);
    box-shadow: 0 8px 18px rgba(0, 169, 141, 0.22);
}
.login-submit:active { transform: translateY(1px); }
.login-submit i { font-size: 16px; }

/* ============================================================
   ARTICLE IMAGES (featured + inline figures injected at render)
   ============================================================ */

.article-hero-figure {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: var(--ep-radius-lg);
    background: var(--ep-bg-soft);
}
.article-hero-figure img { display: block; width: 100%; height: auto; }

/* NewHomeCorner editorial article */
.article-detail-page {
    background: #fff;
    color: #171c24;
}
.article-detail-page .ep-nav-secondary { display: none; }
.article-detail-page .article-page { display: none; }
.article-detail-page .ep-header {
    border-bottom: 1px solid #e2e5e8;
    box-shadow: none;
}
.article-detail-page .ep-header-main {
    min-height: 78px;
}
.nhc-article-page {
    padding: 0 0 72px;
    background: #fff;
}
.nhc-article-shell {
    width: min(calc(100% - 64px), 1240px);
    margin: 0 auto;
}
.nhc-article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 72px;
    color: #65707d;
    font-size: 12px;
}
.nhc-article-breadcrumb a { color: #53606e; }
.nhc-article-breadcrumb a:hover { color: #111923; }
.nhc-article-breadcrumb i { color: #9ca4ad; font-size: 9px; }
.nhc-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 860px) 300px;
    gap: 36px;
    align-items: start;
}
.nhc-article-main { min-width: 0; }
.nhc-article-header { margin: 0 0 30px; }
.nhc-article-header h1 {
    max-width: 850px;
    margin: 0;
    color: #151a21;
    font-family: var(--ep-font-heading);
    font-size: clamp(42px, 4.1vw, 59px);
    font-weight: 700;
    line-height: .99;
    letter-spacing: -1.5px;
}
.nhc-article-header > p {
    max-width: 760px;
    margin: 24px 0 26px;
    color: #505b67;
    font-size: 16px;
    line-height: 1.75;
}
.nhc-article-meta {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 38px;
    color: #606b77;
    font-size: 12px;
}
.nhc-article-meta a { color: #1f2933; font-weight: 600; }
.nhc-author {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #55606c;
}
.nhc-author img,
.nhc-author-avatar {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    object-fit: cover;
}
.nhc-author-avatar {
    color: #fff;
    background: #b98a54;
    font-size: 16px;
}
.nhc-author strong { color: #1c242d; }
.nhc-meta-divider {
    width: 1px;
    height: 14px;
    background: #d8dde2;
}
.nhc-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.nhc-share a,
.nhc-share button {
    display: inline-grid;
    width: 26px;
    height: 26px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #747d87;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
}
.nhc-share a:hover,
.nhc-share button:hover,
.nhc-share button.is-copied { color: #172330; background: #edf0f2; }
.nhc-article-hero {
    position: relative;
    width: 100%;
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: 7px;
    background: #eef0ec;
}
.nhc-article-hero > picture,
.nhc-article-hero > picture img,
.nhc-article-hero > img {
    width: 100%;
    aspect-ratio: 1.72 / 1;
    object-fit: cover;
}
.nhc-article-hero .article-figure-placeholder {
    min-height: 500px;
}
.nhc-toc {
    margin: 0 0 48px;
    padding: clamp(38px, 4vw, 64px);
    border: 1px solid rgba(16,44,22,.08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(16,44,22,.10);
}
.nhc-toc > strong {
    display: block;
    margin: 0;
    color: #151a21;
    font: 700 clamp(42px, 4vw, 58px)/1.05 var(--nhc-serif);
    letter-spacing: 0;
    text-transform: none;
}
.nhc-toc > strong::after {
    content: "";
    display: block;
    width: 62px;
    height: 5px;
    margin: 24px 0 26px;
    border-radius: 999px;
    background: var(--nhc-green);
}
.nhc-toc > p {
    margin: 0 0 34px;
    color: #626b76;
    font-size: clamp(1.125rem, .4vw + 1rem, 1.375rem);
    line-height: 1.6;
}
.nhc-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(52px, 6vw, 90px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.nhc-toc li {
    min-width: 0;
    color: #111922;
    border-bottom: 1px dashed #d9dee0;
    font-size: 18px;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: normal;
}
.nhc-toc a {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 24px;
    min-height: 86px;
    color: inherit;
    text-decoration: none;
}
.nhc-toc-badge {
    display: inline-grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #f2f6ef, #e9efe5);
    color: var(--nhc-green);
    font: 700 23px/1 var(--nhc-sans);
}
.nhc-toc-badge i {
    font-size: 25px;
    line-height: 1;
}
.nhc-toc-label {
    min-width: 0;
    color: #111922;
    font-size: clamp(1.125rem, .45vw + 1rem, 1.375rem);
    font-weight: 800;
    line-height: 1.35;
}
.nhc-toc-arrow {
    justify-self: end;
    color: #101820;
    font-size: 22px;
    transition: transform 160ms ease, color 160ms ease;
}
.nhc-toc a:hover .nhc-toc-label,
.nhc-toc a:hover .nhc-toc-arrow { color: var(--nhc-green); }
.nhc-toc a:hover .nhc-toc-arrow { transform: translateX(4px); }
.nhc-article-prose {
    max-width: 760px;
    color: #202730;
    font-size: 16px;
    line-height: 1.72;
}
.nhc-article-prose > * + * { margin-top: 1em; }
.nhc-article-prose h2 {
    margin-top: 1.65em;
    color: #151a21;
    font-family: var(--ep-font-heading);
    font-size: 30px;
    line-height: 1.18;
}
.nhc-article-prose h3 {
    margin-top: 1.45em;
    color: #1b222b;
    font-family: var(--ep-font-heading);
    font-size: 23px;
}
.nhc-article-prose .article-figure img {
    border-radius: 6px;
}
.nhc-faq {
    max-width: 760px;
    margin-top: 42px;
}
.nhc-article-conclusion { margin-top: 38px; }
.nhc-article-cta {
    display: flex;
    max-width: 760px;
    margin-top: 30px;
    padding: 26px 28px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid #dbe2df;
    border-radius: 7px;
    background: #f3f7f4;
}
.nhc-article-cta h2 {
    margin: 0 0 5px;
    font-size: 23px;
}
.nhc-article-cta p {
    margin: 0;
    color: #52605a;
    font-size: 14px;
}
.nhc-article-cta > a {
    flex: 0 0 auto;
    padding: 12px 17px;
    border-radius: 5px;
    color: #fff;
    background: #172431;
    font-size: 13px;
    font-weight: 700;
}
.nhc-article-sidebar {
    display: grid;
    gap: 20px;
}
.nhc-sidebar-card {
    padding: 24px 23px;
    border: 1px solid #e1e4e7;
    border-radius: 7px;
    background: #fff;
}
.nhc-sidebar-card h2 {
    margin: 0 0 15px;
    color: #171d25;
    font-family: var(--ep-font-heading);
    font-size: 20px;
    line-height: 1.2;
}
.nhc-sidebar-card > p {
    margin: 0 0 18px;
    color: #4f5a66;
    font-size: 14px;
    line-height: 1.65;
}
.nhc-outline-button {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dde1;
    border-radius: 5px;
    color: #18212b;
    font-size: 13px;
    font-weight: 600;
}
.nhc-outline-button:hover { border-color: #18212b; }
.nhc-popular-list {
    display: grid;
    gap: 15px;
}
.nhc-popular-list > a {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    color: #1d242c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.nhc-popular-list picture,
.nhc-popular-list img,
.nhc-popular-placeholder {
    display: grid;
    width: 68px;
    height: 50px;
    place-items: center;
    overflow: hidden;
    border-radius: 5px;
    color: #75806f;
    background: #e7e8e1;
    object-fit: cover;
}
.nhc-popular-list img { width: 100%; height: 100%; }
.nhc-sidebar-newsletter {
    display: grid;
    gap: 10px;
}
.nhc-sidebar-newsletter input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d9dee2;
    border-radius: 5px;
    color: #1f2730;
    background: #fff;
}
.nhc-sidebar-newsletter button {
    min-height: 42px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: #172431;
    font-weight: 600;
    cursor: pointer;
}
.nhc-sidebar-newsletter button:hover { background: #26394a; }
.nhc-sidebar-card > small {
    display: block;
    margin-top: 10px;
    color: #737d87;
    font-size: 10px;
}
.nhc-sidebar-links {
    display: grid;
    gap: 5px;
}
.nhc-sidebar-links a {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 13px;
    color: #28313b;
    font-size: 13px;
}
.nhc-sidebar-links i {
    width: 16px;
    color: #6f7984;
    text-align: center;
}
.nhc-sidebar-links a:hover { color: #a16e32; }
.nhc-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nhc-tag-cloud a {
    padding: 7px 10px;
    border-radius: 5px;
    color: #303943;
    background: #f2f3f4;
    font-size: 12px;
}
.nhc-tag-cloud a:hover { background: #e6e9eb; }

.prose .article-figure { margin: 1.8em 0; }
.prose .article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--ep-radius-lg);
    background: var(--ep-bg-soft);
}
.prose .article-figure figcaption {
    margin-top: 8px;
    color: var(--ep-text-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* ============================================================
   INLINE IMAGE EDITING (admin only, rendered server-side)
   ============================================================ */

.article-figure-editable {
    position: relative;
    outline: 1px dashed var(--ep-border-medium);
    outline-offset: 4px;
    transition: outline-color 160ms ease;
}
.article-figure-editable:hover { outline-color: var(--ep-brand-dark); }
.article-figure-editable.is-busy { opacity: 0.55; pointer-events: none; }

/* Discreet control bar, floats top-left over the figure */
.article-figure-controls {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
}
.article-figure-editable:hover .article-figure-controls,
.article-figure-editable.is-empty .article-figure-controls {
    opacity: 1;
    transform: translateY(0);
}

.article-figure-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    background: rgba(13, 13, 13, 0.88);
    color: #FFFFFF;
    border: 0;
    border-radius: var(--ep-radius);
    font-family: var(--ep-font-body);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease;
}
.article-figure-btn:hover { background: var(--ep-brand-dark); }
.article-figure-btn.danger { background: rgba(176, 40, 31, 0.9); }
.article-figure-btn.danger:hover { background: var(--ep-down); }
.article-figure-btn i { font-size: 13px; }

/* Empty-slot placeholder */
.article-figure-placeholder {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    min-height: 180px;
    padding: 28px 20px;
    background: var(--ep-bg-soft);
    border: 1px dashed var(--ep-border-medium);
    border-radius: var(--ep-radius-lg);
    text-align: center;
    color: var(--ep-text-secondary);
}
.article-figure-placeholder i { font-size: 30px; color: var(--ep-text-muted); }
.article-figure-placeholder strong { font-family: var(--ep-font-body); font-size: 13px; color: var(--ep-text); }
.article-figure-prompt {
    max-width: 60ch;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ep-text-muted);
}

/* ============================================================
   NEWHOME CORNER — EDITORIAL HOME & GARDEN
   ============================================================ */
:root {
    --nhc-green: #234D20;
    --nhc-green-dark: #102C16;
    --nhc-sage: #E7F0E2;
    --nhc-ivory: #F7F6F1;
    --nhc-text: #172019;
    --nhc-muted: #667067;
    --nhc-border: #E3E6DF;
    --nhc-serif: "Newsreader", Georgia, serif;
    --nhc-sans: "Manrope", Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body {
    color: var(--nhc-text);
    background: #fff;
    font-family: var(--nhc-sans);
}
.ep-ticker,
.ep-nav-secondary { display: none; }
.ep-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 136px;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--nhc-border);
    box-shadow: 0 1px 0 rgba(22,39,26,.08);
    backdrop-filter: blur(12px);
}
.ep-header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px clamp(18px, 1.8vw, 30px);
    width: min(100% - 64px, 1500px);
    max-width: none;
    min-height: 136px;
    padding-block: 16px 10px;
}
.ep-header-left { display: none; }
.ep-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    color: var(--nhc-green-dark);
    font-family: var(--nhc-serif);
    font-size: clamp(22px, 1.45vw, 24px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.ep-logo span {
    display: inline-flex;
    align-items: baseline;
    gap: .2em;
}
.ep-logo em { display: inline; font-style: normal; }
.ep-logo > i { color: var(--nhc-green); font-size: clamp(30px, 2vw, 34px); }
.ep-logo .site-brand-logo { width: auto; max-width: 190px; height: 54px; object-fit: contain; }
.ep-logo .site-brand-logo-menu {
    display: block;
    width: clamp(230px, 18vw, 300px);
    max-width: clamp(230px, 18vw, 300px);
    height: auto;
    max-height: 76px;
    object-fit: contain;
}
.ep-nav-primary {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    border: 0;
    background: transparent;
    min-width: 0;
}
.ep-nav-primary-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(12px, 1.25vw, 24px);
    margin: 0;
}
.ep-header-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}
.ep-header .ep-nav-primary-list > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    color: var(--nhc-text);
    gap: 7px;
    font: 600 13px/1 var(--nhc-sans);
    white-space: nowrap;
}
.ep-header .ep-nav-primary-list > li > a i { color: currentColor; font-size: 10px; }
.ep-header .ep-nav-primary-list > li > a:hover,
.ep-header .ep-nav-primary-list > li > a.active { color: #177539; }
.ep-header .ep-nav-primary-list > li > a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: #91b55a;
}
.ep-header-right { justify-self: end; gap: 10px; }
.ep-header-right .ep-btn-ghost,
.ep-header-auth-form { display: none; }
.ep-header-search { color: var(--nhc-text); }
.ep-header-right .ep-btn-primary,
.nhc-button {
    border: 1px solid var(--nhc-green);
    border-radius: 4px;
    background: var(--nhc-green);
    color: #fff;
    box-shadow: none;
    font-family: var(--nhc-sans);
}
.ep-header-right .ep-btn-primary:hover,
.nhc-button:hover { border-color: var(--nhc-green-dark); background: var(--nhc-green-dark); color: #fff; }

.nhc-home { overflow: hidden; padding-bottom: 0; }
.nhc-shell {
    width: min(100% - 112px, 1380px);
    margin-inline: auto;
}
.nhc-hero {
    --nhc-serif: "Cormorant Garamond", Georgia, serif;
    --nhc-sans: "Inter", Arial, sans-serif;
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    background: var(--nhc-green-dark);
    color: var(--nhc-green-dark);
}
.nhc-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.nhc-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 28%, rgba(255,255,255,.34) 48%, transparent 68%);
}
.nhc-hero-content {
    display: grid;
    grid-template-columns: minmax(270px, 330px) minmax(0, 540px);
    align-items: center;
    gap: 70px;
    width: min(100% - 96px, 1952px);
    padding-block: 72px 44px;
}
.nhc-hero-copy { min-width: 0; }
.nhc-hero-side {
    display: grid;
    align-content: center;
    gap: 18px;
}
.nhc-hero-side > .nhc-eyebrow { margin: 0; }
.nhc-hero-posts { display: grid; gap: 24px; }
.nhc-hero-post {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(16,44,22,.11);
    border-radius: 8px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 24px rgba(16,44,22,.08);
    color: var(--nhc-green-dark);
    backdrop-filter: blur(8px);
}
.nhc-hero-post:hover { background: rgba(255,255,255,.94); transform: translateX(4px); }
.nhc-hero-post img { width: 88px; height: 88px; border-radius: 5px; object-fit: cover; }
.nhc-hero-post > span { display: grid; gap: 5px; min-width: 0; }
.nhc-hero-post small {
    overflow: hidden;
    color: #47734d;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.nhc-hero-post strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--nhc-green-dark);
    font: 700 17px/1.05 var(--nhc-serif);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.nhc-hero-post em { color: #5d6d60; font-size: 9px; font-style: normal; }
.nhc-eyebrow,
.nhc-category {
    color: var(--nhc-green);
    font: 700 12px/1.2 var(--nhc-sans);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.nhc-hero h1 {
    max-width: 540px;
    margin: 24px 0 22px;
    color: var(--nhc-green-dark);
    font: 600 clamp(58px, 5vw, 76px)/.97 var(--nhc-serif);
    letter-spacing: -.035em;
    text-wrap: balance;
}
.nhc-hero-copy > p:not(.nhc-eyebrow) {
    max-width: 440px;
    color: #26342a;
    font-size: 15px;
    line-height: 1.6;
}
.nhc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: 18px;
    margin-top: 26px;
    padding: 0 24px;
    font-size: 13px;
    font-weight: 700;
}
.nhc-hero-benefits {
    display: flex;
    gap: 42px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
}
.nhc-hero-benefits li { display: grid; justify-items: center; gap: 8px; color: var(--nhc-green-dark); font-size: 10px; font-weight: 600; }
.nhc-hero-benefits i { color: var(--nhc-green); font-size: 27px; }
.nhc-hero-admin { z-index: 4; }
.nhc-hero-trust {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: -44px;
    padding: 32px 42px;
    border: 1px solid rgba(25,70,37,.1);
    border-radius: 8px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 8px 32px rgba(25,45,30,.08);
}
.nhc-hero-trust > div {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding-inline: 26px;
    border-right: 1px solid #dde3dc;
}
.nhc-hero-trust > div:first-child { padding-left: 0; }
.nhc-hero-trust > div:last-child { padding-right: 0; border-right: 0; }
.nhc-trust-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 50%;
    background: #eef3ec;
    color: var(--nhc-green-dark);
    font-size: 29px;
}
.nhc-hero-trust strong,
.nhc-hero-trust small { display: block; }
.nhc-hero-trust strong { margin-bottom: 7px; color: var(--nhc-green-dark); font-size: 14px; }
.nhc-hero-trust small { color: #27322a; font-size: 12px; line-height: 1.6; }

.nhc-section { padding-top: 88px; }
.nhc-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.nhc-section-head h2,
.nhc-newsletter h2 {
    margin: 0;
    color: var(--nhc-green-dark);
    font: 600 clamp(30px, 2.5vw, 42px)/1.05 var(--nhc-serif);
}
.nhc-section-head p { margin: 9px 0 0; color: var(--nhc-muted); font-size: 14px; line-height: 1.5; }
.nhc-section-head > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--nhc-text);
    font-size: 12px;
    font-weight: 600;
}
.nhc-section-head > a:hover { color: var(--nhc-green); }

.nhc-trending-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.nhc-overlay-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 35, .08);
    border-radius: 7px;
    background: var(--nhc-ivory);
    box-shadow: 0 12px 36px rgba(21, 44, 27, .055);
}
.nhc-overlay-card-featured { min-height: 520px; }
.nhc-overlay-card > a,
.nhc-category-card,
.nhc-collections > a { position: absolute; inset: 0; display: block; color: #fff; }
.nhc-overlay-card img,
.nhc-category-card img,
.nhc-collections img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}
.nhc-overlay-card:hover img,
.nhc-category-card:hover img,
.nhc-collections > a:hover img { transform: scale(1.045); }
.nhc-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 26%, rgba(5,12,7,.88) 100%);
}
.nhc-overlay-copy {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    display: grid;
    gap: 11px;
}
.nhc-overlay-copy strong {
    color: #fff;
    font: 600 34px/1.04 var(--nhc-serif);
    text-wrap: balance;
}
.nhc-overlay-card:not(.nhc-overlay-card-featured) .nhc-overlay-copy strong { font-size: 28px; }
.nhc-overlay-copy em {
    max-width: 50ch;
    color: rgba(255,255,255,.85);
    font: 400 13px/1.5 var(--nhc-sans);
}
.nhc-overlay-copy small { color: rgba(255,255,255,.88); font-size: 11px; }

.nhc-visual-grid,
.nhc-collections {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 12px;
}
.nhc-category-card {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 35, .08);
    border-radius: 7px;
    box-shadow: 0 10px 28px rgba(21, 44, 27, .045);
}
.nhc-category-card strong {
    position: absolute;
    right: 42px;
    bottom: 17px;
    left: 15px;
    color: #fff;
    font: 600 18px/1.05 var(--nhc-serif);
}
.nhc-category-card > i {
    position: absolute;
    right: 13px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: var(--nhc-green);
    font-size: 12px;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}
.nhc-category-card:hover > i { transform: translateX(3px); background: var(--nhc-green); color: #fff; }

.nhc-diy-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr); gap: 28px; }
.nhc-diy-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px 20px; }
.nhc-compact-card { min-width: 0; }
.nhc-compact-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(21, 44, 27, .05);
    transition: transform 250ms ease, box-shadow 250ms ease;
}
.nhc-compact-card a:hover img { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(21, 44, 27, .1); }
.nhc-compact-card strong {
    display: -webkit-box;
    margin-top: 12px;
    overflow: hidden;
    color: var(--nhc-text);
    font: 600 20px/1.2 var(--nhc-serif);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.nhc-compact-card small { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--nhc-muted); font-size: 11px; }
.nhc-compact-card small span { color: var(--nhc-green); font-weight: 700; }
.nhc-newsletter {
    position: relative;
    min-height: 100%;
    padding: 42px 36px;
    overflow: hidden;
    border: 1px solid rgba(46, 85, 49, .1);
    border-radius: 7px;
    background: var(--nhc-sage);
}
.nhc-newsletter > i {
    position: absolute;
    right: -4px;
    bottom: -10px;
    color: rgba(35,77,32,.38);
    font-size: 100px;
}
.nhc-newsletter p { max-width: 32ch; margin: 16px 0 26px; color: var(--nhc-muted); font-size: 13px; line-height: 1.65; }
.nhc-newsletter form { position: relative; z-index: 1; display: grid; gap: 9px; }
.nhc-newsletter input {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #D6DDCF;
    border-radius: 4px;
    background: #fff;
    font: 13px var(--nhc-sans);
}
.nhc-newsletter button {
    width: max-content;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    background: var(--nhc-green);
    color: #fff;
    font: 700 12px var(--nhc-sans);
}
.nhc-newsletter button:disabled { opacity: .65; }
.nhc-newsletter > small { position: relative; z-index: 1; display: block; margin-top: 10px; color: var(--nhc-muted); font-size: 9px; }

.nhc-room-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.nhc-room-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    border: 1px solid rgba(30, 58, 35, .08);
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(21, 44, 27, .045);
}
.nhc-room-media {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--nhc-ivory);
}
.nhc-room-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease;
}
.nhc-room-panel:hover .nhc-room-media img { transform: scale(1.04); }
.nhc-room-media span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 9px;
    border-radius: 4px;
    background: rgba(255,255,255,.92);
    color: var(--nhc-green-dark);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.nhc-room-copy {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
}
.nhc-room-copy h3 {
    color: var(--nhc-green-dark);
    font: 600 24px/1.05 var(--nhc-serif);
}
.nhc-room-copy ul { display: grid; gap: 10px; }
.nhc-room-copy li a {
    display: block;
    color: var(--nhc-muted);
    font-size: 12px;
    line-height: 1.45;
}
.nhc-room-copy a:hover { color: var(--nhc-green); }

.nhc-planner {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    padding: clamp(34px, 5vw, 62px);
    border: 1px solid rgba(46, 85, 49, .1);
    border-radius: 7px;
    background: #f8faf6;
}
.nhc-planner-copy h2 {
    max-width: 12ch;
    margin: 18px 0;
    color: var(--nhc-green-dark);
    font: 600 clamp(34px, 4vw, 56px)/1 var(--nhc-serif);
}
.nhc-planner-copy > p:not(.nhc-eyebrow) {
    max-width: 42ch;
    color: var(--nhc-muted);
    font-size: 14px;
    line-height: 1.7;
}
.nhc-planner-list {
    display: grid;
    border-top: 1px solid var(--nhc-border);
}
.nhc-planner-list a {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    gap: 6px 18px;
    padding: 21px 0;
    border-bottom: 1px solid var(--nhc-border);
}
.nhc-planner-list span {
    grid-row: span 2;
    color: #91a884;
    font: 600 24px/1 var(--nhc-serif);
}
.nhc-planner-list strong {
    color: var(--nhc-green-dark);
    font: 600 22px/1.12 var(--nhc-serif);
}
.nhc-planner-list small {
    color: var(--nhc-muted);
    font-size: 11px;
}
.nhc-planner-list a:hover strong { color: var(--nhc-green); }

.nhc-collections { gap: 14px; }
.nhc-collections > a {
    position: relative;
    aspect-ratio: 16/11;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 35, .08);
    border-radius: 7px;
    box-shadow: 0 9px 26px rgba(21, 44, 27, .05);
}
.nhc-collections strong,
.nhc-collections small { position: absolute; right: 13px; left: 13px; color: #fff; }
.nhc-collections strong { bottom: 31px; font: 600 18px/1.05 var(--nhc-serif); }
.nhc-collections small { bottom: 12px; font-size: 9px; }

.nhc-latest-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 38px;
    border-top: 1px solid var(--nhc-border);
}
.nhc-latest-list article {
    min-width: 0;
    border-bottom: 1px solid var(--nhc-border);
}
.nhc-latest-list a {
    display: grid;
    gap: 8px;
    min-height: 190px;
    align-content: start;
    padding: 22px 0;
}
.nhc-latest-list span {
    color: var(--nhc-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.nhc-latest-list strong {
    color: var(--nhc-green-dark);
    font: 600 25px/1.08 var(--nhc-serif);
}
.nhc-latest-list em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--nhc-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.nhc-latest-list small {
    color: var(--nhc-muted);
    font-size: 11px;
}
.nhc-latest-list a:hover strong { color: var(--nhc-green); }

.nhc-benefits {
    margin-top: 88px;
    padding: 44px 0;
    background: #f8faf6;
    border-top: 1px solid var(--nhc-border);
    border-bottom: 1px solid var(--nhc-border);
}
.nhc-benefits > div { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.nhc-benefits > div > div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 0 30px; border-right: 1px solid var(--nhc-border); }
.nhc-benefits > div > div:first-child { padding-left: 0; }
.nhc-benefits > div > div:last-child { padding-right: 0; border-right: 0; }
.nhc-benefits i { color: var(--nhc-green); font-size: 34px; }
.nhc-benefits span { display: grid; gap: 4px; }
.nhc-benefits strong { color: var(--nhc-green-dark); font: 600 16px/1.2 var(--nhc-serif); }
.nhc-benefits small { color: var(--nhc-muted); font-size: 11px; line-height: 1.55; }

.site-footer { background: #fff; color: var(--nhc-text); }
.ep-footer-top { padding-top: 64px; padding-bottom: 52px; }
.ep-footer-grid { grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(120px, 1fr)); gap: clamp(30px, 4vw, 68px); }
.ep-footer-brand,
.ep-footer-col-title { color: var(--nhc-green-dark); font-family: var(--nhc-serif); }
.ep-footer-brand { margin-bottom: 18px; }
.ep-footer-col-title { margin-bottom: 18px; font-size: 14px; }
.ep-footer-tagline,
.ep-footer-col a,
.ep-footer-copy,
.ep-footer-bottom-links a { color: var(--nhc-muted); }
.ep-footer-tagline { max-width: 30ch; font-size: 13px; line-height: 1.7; }
.ep-footer-col li { margin-bottom: 11px; }
.ep-footer-col a { font-size: 12px; line-height: 1.45; }
.ep-footer-col a:hover,
.ep-footer-bottom-links a:hover { color: var(--nhc-green); }
.ep-footer-bottom { min-height: 72px; border-color: var(--nhc-border); }
.ep-footer-social a,
.ep-footer-social span { color: var(--nhc-green); }

*:focus-visible { outline: 3px solid #7BA35B; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
   HOME REFERENCE LAYOUT
   Visual-only recreation for the Casa e Jardim homepage.
   ============================================================ */

.nhc-ref-home {
    --ref-yellow: #ffcc00;
    --ref-cream: #f6f0d6;
    --ref-paper: #f7f8f3;
    --ref-ink: #351706;
    --ref-muted: #7f817b;
    --ref-chip: #f1e7d3;
    --ref-radius: 10px;
    background: var(--ref-paper);
    color: var(--ref-ink);
    font-family: "Inter", Arial, sans-serif;
}

body:has(.nhc-ref-home) {
    background: var(--ref-paper);
}

body:has(.nhc-ref-home) .ep-header {
    min-height: 46px;
    background: var(--ref-yellow);
    border-bottom: 0;
    box-shadow: 0 1px 8px rgba(55, 35, 0, .12);
}

body:has(.nhc-ref-home) .ep-header-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    width: min(100% - 92px, 1760px);
    min-height: 46px;
    padding-block: 0;
    gap: 24px;
}

body:has(.nhc-ref-home) .ep-logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    color: var(--ref-ink);
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
}

body:has(.nhc-ref-home) .ep-logo::after {
    content: "Blog";
    margin-left: 8px;
}

body:has(.nhc-ref-home) .ep-logo .site-brand-logo,
body:has(.nhc-ref-home) .ep-logo .site-brand-logo-menu {
    width: 24px;
    max-width: 24px;
    height: 24px;
    object-fit: contain;
}

body:has(.nhc-ref-home) .ep-nav-primary {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    overflow: hidden;
}

body:has(.nhc-ref-home) .ep-nav-primary-list {
    gap: clamp(18px, 2.1vw, 42px);
}

body:has(.nhc-ref-home) .ep-header .ep-nav-primary-list > li > a {
    min-height: 46px;
    color: var(--ref-ink);
    font-size: 12px;
    font-weight: 700;
}

body:has(.nhc-ref-home) .ep-header .ep-nav-primary-list > li > a.active::after {
    display: none;
}

body:has(.nhc-ref-home) .ep-header-right {
    grid-column: 3;
    grid-row: 1;
}

body:has(.nhc-ref-home) .ep-header-search {
    width: 220px;
    height: 30px;
    justify-content: flex-end;
    padding-inline: 13px;
    border-radius: 999px;
    background: #fff6d6;
    color: var(--ref-ink);
    font-size: 13px;
}

body:has(.nhc-ref-home) .ep-header-search::before {
    content: "Buscar no blog...";
    margin-right: auto;
    color: #ab9c76;
    font-size: 11px;
    font-weight: 500;
}

body:has(.nhc-ref-home) .ep-header-right .ep-btn-primary {
    height: 30px;
    padding-inline: 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ref-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

body:has(.nhc-ref-home) .ep-header-right .ep-btn-primary::before {
    content: "Abrir conta";
}

body:has(.nhc-ref-home) .ep-header-right .ep-btn-primary {
    font-size: 0;
}

body:has(.nhc-ref-home) .ep-header-right .ep-btn-primary::before {
    font-size: 11px;
}

body:has(.nhc-ref-home) .ep-nav-secondary,
body:has(.nhc-ref-home) .ep-header-right .ep-btn-ghost,
body:has(.nhc-ref-home) .ep-header-auth-form {
    display: none;
}

.nhc-ref-shell {
    width: min(100% - 120px, 1770px);
    margin-inline: auto;
}

.nhc-ref-latest {
    padding: 72px 0 74px;
    background: var(--ref-cream);
}

.nhc-ref-latest h1 {
    margin: 0 0 30px;
    color: var(--ref-ink);
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(42px, 4.2vw, 64px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}

.nhc-ref-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.nhc-ref-news-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: var(--ref-radius);
    background: #ddd2b6;
}

.nhc-ref-news-card.is-large {
    grid-column: span 2;
    min-height: 640px;
}

.nhc-ref-news-card > a,
.nhc-ref-news-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.nhc-ref-news-card img {
    object-fit: cover;
    transition: transform 320ms ease;
}

.nhc-ref-news-card:hover img,
.nhc-ref-strip-card:hover img {
    transform: scale(1.035);
}

.nhc-ref-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 32%, rgba(0,0,0,.76) 100%);
}

.nhc-ref-news-title {
    position: absolute;
    right: 34px;
    bottom: 30px;
    left: 34px;
    color: #fff;
    font-size: clamp(22px, 2.15vw, 42px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
}

.nhc-ref-news-card.is-small .nhc-ref-news-title {
    right: 22px;
    bottom: 22px;
    left: 22px;
    font-size: clamp(19px, 1.35vw, 27px);
}

.nhc-ref-section {
    padding: 92px 0 18px;
    background: var(--ref-paper);
}

.nhc-ref-section-head {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-bottom: 58px;
    text-align: center;
}

.nhc-ref-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--ref-chip);
    color: #8b7248;
    font-size: 16px;
    font-weight: 800;
}

.nhc-ref-section-head h2 {
    max-width: 920px;
    color: var(--ref-ink);
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(38px, 4.1vw, 58px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: 0;
}

.nhc-ref-section-head p {
    max-width: 860px;
    color: var(--ref-muted);
    font-size: clamp(17px, 1.55vw, 24px);
    line-height: 1.45;
}

.nhc-ref-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.nhc-ref-strip-card {
    min-width: 0;
}

.nhc-ref-strip-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--ref-radius);
    background: #e0ded5;
}

.nhc-ref-strip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms ease;
}

.nhc-ref-strip-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 16px;
    align-items: center;
    padding-top: 22px;
}

.nhc-ref-strip-copy > a:first-child {
    color: var(--ref-ink);
    font-size: clamp(16px, 1.1vw, 20px);
    font-weight: 500;
    line-height: 1.24;
}

.nhc-ref-arrow {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: #f1eddf;
    color: var(--ref-ink);
    font-size: 20px;
    transition: background-color 180ms ease, transform 180ms ease;
}

.nhc-ref-arrow:hover {
    background: var(--ref-yellow);
    transform: translateX(3px);
}

body:has(.nhc-ref-home) .site-footer {
    background: var(--ref-paper);
}

@media (max-width: 1180px) {
    body:has(.nhc-ref-home) .ep-header-main {
        width: min(100% - 32px, 1770px);
        grid-template-columns: auto auto 1fr;
    }

    body:has(.nhc-ref-home) .ep-header-left {
        display: flex;
        grid-column: 1;
        grid-row: 1;
    }

    body:has(.nhc-ref-home) .ep-hamburger {
        display: inline-flex;
        color: var(--ref-ink);
    }

    body:has(.nhc-ref-home) .ep-logo {
        grid-column: 2;
    }

    body:has(.nhc-ref-home) .ep-nav-primary {
        display: none;
    }

    body:has(.nhc-ref-home) .ep-header-search {
        width: 44px;
        background: transparent;
    }

    body:has(.nhc-ref-home) .ep-header-search::before {
        display: none;
    }

    .nhc-ref-shell {
        width: min(100% - 48px, 1770px);
    }

    .nhc-ref-news-card.is-large {
        min-height: 440px;
    }

    .nhc-ref-news-card {
        min-height: 220px;
    }
}

/* Immutable global header. Keep every public page visually identical. */
html body .ep-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 300 !important;
    min-height: 164px !important;
    background: rgba(255, 255, 255, .97) !important;
    border-bottom: 1px solid #DDE7D8 !important;
    box-shadow: 0 10px 24px rgba(16, 44, 22, .08) !important;
    backdrop-filter: blur(12px) !important;
}

html body .ep-header-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    width: min(100% - 64px, 1500px) !important;
    max-width: none !important;
    min-height: 164px !important;
    padding: 34px 0 0 !important;
    gap: 24px clamp(18px, 1.8vw, 30px) !important;
}

html body .ep-header-left {
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-items: center !important;
}

html body .ep-hamburger {
    display: none !important;
}

html body .ep-header-social {
    display: inline-flex !important;
    align-items: center !important;
    gap: 26px !important;
}

html body .ep-header-social a,
html body .ep-header-social span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #234D20 !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

html body .ep-logo {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 0 !important;
    gap: 0 !important;
    color: #102C16 !important;
}

html body .ep-logo::after {
    content: none !important;
}

html body .ep-logo .site-brand-logo,
html body .ep-logo .site-brand-logo-menu {
    width: clamp(310px, 24vw, 430px) !important;
    max-width: clamp(310px, 24vw, 430px) !important;
    height: auto !important;
    max-height: 96px !important;
    object-fit: contain !important;
}

html body .ep-nav-primary {
    display: block !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
}

html body .ep-nav-primary-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: clamp(18px, 2.1vw, 42px) !important;
}

html body .ep-header .ep-nav-primary-list > li > a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 76px !important;
    padding: 0 !important;
    gap: 7px !important;
    color: #102C16 !important;
    font: 800 24px/1 "Inter", Arial, sans-serif !important;
    white-space: nowrap !important;
}

html body .ep-header .ep-nav-primary-list > li > a:hover,
html body .ep-header .ep-nav-primary-list > li > a.active {
    color: #177539 !important;
}

html body .ep-header .ep-nav-primary-list > li > a.active::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    bottom: 10px !important;
    left: 0 !important;
    display: block !important;
    height: 4px !important;
    background: #91B55A !important;
}

html body .ep-header-right {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 26px !important;
}

html body .ep-header-search {
    display: inline-flex !important;
    width: auto !important;
    height: 54px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #102C16 !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    gap: 14px !important;
}

html body .ep-header-search span {
    display: inline !important;
    color: #102C16 !important;
    font-size: 24px !important;
    font-weight: 500 !important;
}

html body .ep-header-right .ep-btn-ghost,
html body .ep-header-auth-form,
html body .ep-nav-secondary {
    display: none !important;
}

html body .ep-header-right .ep-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 46px !important;
    padding: 0 18px !important;
    border: 1px solid #234D20 !important;
    border-radius: 6px !important;
    background: #FFFFFF !important;
    color: #234D20 !important;
    font-size: 0 !important;
    font-weight: 900 !important;
}

html body .ep-header-right .ep-btn-primary::before {
    content: "Subscribe" !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

html body .ep-header-right .ep-btn-primary:hover {
    background: #234D20 !important;
    color: #FFFFFF !important;
}

html body .ep-header-right::before {
    content: "" !important;
    display: block !important;
    width: 1px !important;
    height: 48px !important;
    order: 2 !important;
    background: #D3D8D1 !important;
}

html body .ep-header-search {
    order: 1 !important;
}

html body .ep-header-right .ep-btn-primary {
    order: 3 !important;
}

@media (max-width: 1180px) {
    html body .ep-header {
        min-height: 76px !important;
    }

    html body .ep-header-main {
        grid-template-columns: auto auto 1fr !important;
        grid-template-rows: 1fr !important;
        width: min(100% - 32px, 1500px) !important;
        min-height: 76px !important;
        padding: 0 !important;
    }

    html body .ep-header-left {
        display: flex !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    html body .ep-hamburger {
        display: inline-flex !important;
        color: #102C16 !important;
    }

    html body .ep-header-social {
        display: none !important;
    }

    html body .ep-logo {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: start !important;
    }

    html body .ep-logo .site-brand-logo,
    html body .ep-logo .site-brand-logo-menu {
        width: clamp(138px, 24vw, 190px) !important;
        max-width: clamp(138px, 24vw, 190px) !important;
        max-height: 56px !important;
    }

    html body .ep-nav-primary {
        display: none !important;
    }

    html body .ep-header-search span,
    html body .ep-header-right::before {
        display: none !important;
    }

    html body .ep-header-search {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }

    html body .ep-header-right .ep-btn-primary {
        height: 46px !important;
        padding: 0 22px !important;
    }

    html body .ep-header-right .ep-btn-primary::before {
        content: "Subscribe" !important;
        font-family: "Inter", Arial, sans-serif !important;
        font-size: 15px !important;
    }
}

@media (max-width: 560px) {
    html body .ep-logo .site-brand-logo,
    html body .ep-logo .site-brand-logo-menu {
        width: 132px !important;
        max-width: 132px !important;
        max-height: 48px !important;
    }

    html body .ep-header-right .ep-btn-primary {
        display: none !important;
    }
}

/* Final nav tuning. */
html body .ep-header .ep-nav-primary-list > li > a {
    font-size: 18px !important;
    font-weight: 800 !important;
}

html body .ep-header .ep-nav-primary-list {
    gap: clamp(22px, 3vw, 54px) !important;
}

/* Search page reference layout. */
.nhc-search-page {
    background: #FFFFFF;
    color: #102C16;
}

.nhc-search-shell {
    width: min(100% - 56px, 1240px);
    margin-inline: auto;
}

.nhc-search-hero {
    min-height: 280px;
    padding: 60px 0 44px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 44%, rgba(255,255,255,.35) 72%),
        url("/images/newhomecorner-home-hero.png") right center / cover no-repeat,
        #F4F8F2;
    border-bottom: 1px solid #E6ECE2;
}

.nhc-search-hero h1 {
    margin: 0;
    color: #234D20;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(52px, 5.5vw, 78px);
    font-weight: 700;
    line-height: 1;
}

.nhc-search-hero p {
    max-width: 560px;
    margin-top: 16px;
    color: #3F4E43;
    font-size: 18px;
    line-height: 1.55;
}

.nhc-search-form {
    display: grid;
    grid-template-columns: minmax(320px, 560px) auto;
    gap: 10px;
    margin-top: 26px;
    align-items: center;
    justify-content: start;
    max-width: 720px;
}

.nhc-search-form .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.nhc-search-form input {
    width: 100%;
    height: 58px;
    border: 1px solid #DDE7D8;
    border-radius: 6px;
    padding: 0 20px;
    background: #FFFFFF;
    color: #102C16;
    font: 15px "Inter", Arial, sans-serif;
    box-shadow: 0 8px 20px rgba(16,44,22,.04);
}

.nhc-search-form button,
.nhc-search-newsletter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 58px;
    padding: 0 24px;
    border: 0;
    border-radius: 6px;
    background: #177539;
    color: #FFFFFF;
    font: 800 14px "Inter", Arial, sans-serif;
}

.nhc-search-content {
    padding: 42px 0 26px;
}

.nhc-search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 72px;
    align-items: start;
}

.nhc-search-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
}

.nhc-search-toolbar h2 {
    color: #243328;
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.nhc-search-toolbar h2 strong {
    color: #177539;
}

.nhc-search-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #243328;
    font-size: 14px;
}

.nhc-search-toolbar select {
    height: 42px;
    border: 1px solid #DDE7D8;
    border-radius: 6px;
    padding: 0 42px 0 16px;
    background: #FFFFFF;
    color: #243328;
}

.nhc-result-list {
    display: grid;
}

.nhc-result-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    padding: 22px 0;
    border-bottom: 1px solid #E1E8DE;
}

.nhc-result-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #E7ECE5;
}

.nhc-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nhc-result-category {
    color: #177539;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nhc-result-copy h3 {
    margin: 8px 0 8px;
    color: #102C16;
    font-family: "Newsreader", Georgia, serif;
    font-size: 28px;
    line-height: 1.12;
}

.nhc-result-copy h3 a:hover {
    color: #177539;
}

.nhc-result-copy p {
    max-width: 58ch;
    color: #3F4E43;
    font-size: 15px;
    line-height: 1.55;
}

.nhc-result-meta {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    color: #4F5F51;
    font-size: 13px;
}

.nhc-search-panel {
    padding: 26px;
    border: 1px solid #DDE7D8;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(16,44,22,.04);
}

.nhc-search-panel + .nhc-search-panel {
    margin-top: 22px;
}

.nhc-search-panel h2 {
    color: #102C16;
    font-family: "Newsreader", Georgia, serif;
    font-size: 24px;
    line-height: 1.1;
}

.nhc-panel-rule {
    width: 38px;
    height: 2px;
    margin: 14px 0 24px;
    background: #177539;
}

.nhc-search-panel h3 {
    margin: 20px 0 12px;
    color: #102C16;
    font: 800 14px "Inter", Arial, sans-serif;
}

.nhc-filter-list {
    display: grid;
    gap: 12px;
}

.nhc-filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #3F4E43;
    font-size: 14px;
}

.nhc-filter-list em {
    min-width: 26px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    background: #F1F5EF;
    color: #4F5F51;
    font-style: normal;
    font-size: 12px;
}

.nhc-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.nhc-search-tags a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #DDE7D8;
    border-radius: 999px;
    color: #3F4E43;
    font-size: 12px;
}

.nhc-search-popular {
    display: grid;
    gap: 15px;
}

.nhc-search-popular a {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.nhc-search-popular img {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
}

.nhc-search-popular strong {
    display: block;
    color: #102C16;
    font-size: 14px;
    line-height: 1.3;
}

.nhc-search-popular small {
    display: block;
    margin-top: 5px;
    color: #667368;
    font-size: 12px;
}

.nhc-search-newsletter {
    padding: 34px 0 28px;
}

.nhc-search-newsletter-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(320px, 520px);
    gap: 22px;
    align-items: center;
    padding: 22px;
    border: 1px solid #DDE7D8;
    border-radius: 10px;
    background: linear-gradient(90deg, #F6F8F1, #FFFFFF);
}

.nhc-search-newsletter-card > i {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border-radius: 50%;
    background: #177539;
    color: #FFFFFF;
    font-size: 30px;
}

.nhc-search-newsletter h2 {
    color: #102C16;
    font-family: "Newsreader", Georgia, serif;
    font-size: 26px;
}

.nhc-search-newsletter p {
    margin-top: 5px;
    color: #4F5F51;
}

.nhc-search-newsletter form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.nhc-search-newsletter input {
    height: 48px;
    border: 1px solid #DDE7D8;
    border-radius: 6px;
    padding: 0 16px;
}

.nhc-search-newsletter button {
    height: 48px;
}

@media (max-width: 980px) {
    .nhc-search-layout,
    .nhc-search-newsletter-card {
        grid-template-columns: 1fr;
    }

    .nhc-search-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .nhc-search-panel + .nhc-search-panel {
        margin-top: 0;
    }
}

@media (max-width: 680px) {
    .nhc-search-shell {
        width: min(100% - 28px, 1240px);
    }

    .nhc-search-form,
    .nhc-search-toolbar,
    .nhc-result-item,
    .nhc-search-newsletter form,
    .nhc-search-sidebar {
        grid-template-columns: 1fr;
    }

    .nhc-search-form {
        max-width: none;
    }

    .nhc-search-toolbar {
        display: grid;
    }

    .nhc-result-item {
        gap: 14px;
    }
}

/* Header spacing fix: reserve enough height so the nav never overlaps content. */
html body .ep-header {
    min-height: 196px !important;
}

html body .ep-header-main {
    min-height: 196px !important;
    padding: 34px 0 18px !important;
}

html body .ep-header .ep-nav-primary-list > li > a {
    min-height: 58px !important;
}

html body .ep-header .ep-nav-primary-list > li > a.active::after {
    bottom: 4px !important;
}

html body main {
    position: relative !important;
    z-index: 1 !important;
}

@media (max-width: 1180px) {
    html body .ep-header {
        min-height: 76px !important;
    }

    html body .ep-header-main {
        min-height: 76px !important;
        padding: 0 !important;
    }
}

@media (max-width: 820px) {
    .nhc-ref-latest {
        padding: 42px 0 48px;
    }

    .nhc-ref-news-grid,
    .nhc-ref-strip {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .nhc-ref-news-grid::-webkit-scrollbar,
    .nhc-ref-strip::-webkit-scrollbar {
        display: none;
    }

    .nhc-ref-news-card,
    .nhc-ref-news-card.is-large {
        flex: 0 0 min(84vw, 420px);
        min-height: 410px;
        scroll-snap-align: start;
    }

    .nhc-ref-strip-card {
        flex: 0 0 min(78vw, 360px);
        scroll-snap-align: start;
    }

    .nhc-ref-section {
        padding-top: 64px;
    }

    .nhc-ref-section-head {
        align-items: start;
        justify-items: start;
        margin-bottom: 32px;
        text-align: left;
    }

    .nhc-ref-section-head h2 {
        font-size: 34px;
    }

    .nhc-ref-section-head p {
        font-size: 16px;
    }
}

@media (max-width: 560px) {
    body:has(.nhc-ref-home) .ep-header-right .ep-btn-primary {
        display: none;
    }

    body:has(.nhc-ref-home) .ep-header-main,
    .nhc-ref-shell {
        width: min(100% - 28px, 1770px);
    }

    .nhc-ref-latest h1 {
        font-size: 38px;
    }

    .nhc-ref-news-card,
    .nhc-ref-news-card.is-large {
        flex-basis: 86vw;
        min-height: 360px;
    }

    .nhc-ref-news-title {
        right: 20px;
        bottom: 20px;
        left: 20px;
        font-size: 25px;
    }

    .nhc-ref-news-card.is-small .nhc-ref-news-title {
        font-size: 22px;
    }

    .nhc-ref-strip-copy {
        grid-template-columns: minmax(0, 1fr) 40px;
        gap: 12px;
    }

    .nhc-ref-arrow {
        width: 40px;
        height: 40px;
    }
}

/* ============================================================
   ARTICLE REFERENCE LAYOUT
   Matches the same visual direction used on the recreated Home.
   ============================================================ */

.article-detail-page {
    background: #f7f8f3;
}

.article-detail-page .ep-header {
    min-height: 46px;
    background: #ffcc00;
    border-bottom: 0;
    box-shadow: 0 1px 8px rgba(55, 35, 0, .12);
}

.article-detail-page .ep-header-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    width: min(100% - 92px, 1760px);
    max-width: none;
    min-height: 46px;
    padding-block: 0;
    gap: 24px;
}

.article-detail-page .ep-logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    color: #351706;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.article-detail-page .ep-logo::after {
    content: "Blog";
    margin-left: 8px;
}

.article-detail-page .ep-logo .site-brand-logo,
.article-detail-page .ep-logo .site-brand-logo-menu {
    width: 24px;
    max-width: 24px;
    height: 24px;
    object-fit: contain;
}

.article-detail-page .ep-nav-primary {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    overflow: hidden;
}

.article-detail-page .ep-nav-primary-list {
    gap: clamp(18px, 2.1vw, 42px);
}

.article-detail-page .ep-header .ep-nav-primary-list > li > a {
    min-height: 46px;
    color: #351706;
    font-size: 12px;
    font-weight: 700;
}

.article-detail-page .ep-header .ep-nav-primary-list > li > a.active::after {
    display: none;
}

.article-detail-page .ep-header-right {
    grid-column: 3;
    grid-row: 1;
}

.article-detail-page .ep-header-search {
    width: 220px;
    height: 30px;
    justify-content: flex-end;
    padding-inline: 13px;
    border-radius: 999px;
    background: #fff6d6;
    color: #351706;
    font-size: 13px;
}

.article-detail-page .ep-header-search::before {
    content: "Buscar no blog...";
    margin-right: auto;
    color: #ab9c76;
    font-size: 11px;
    font-weight: 500;
}

.article-detail-page .ep-header-right .ep-btn-primary {
    height: 30px;
    padding-inline: 18px;
    border: 0;
    border-radius: 999px;
    background: #351706;
    color: #fff;
    font-size: 0;
    font-weight: 800;
}

.article-detail-page .ep-header-right .ep-btn-primary::before {
    content: "Abrir conta";
    font-size: 11px;
}

.article-detail-page .ep-header-right .ep-btn-ghost,
.article-detail-page .ep-header-auth-form,
.article-detail-page .ep-header-right .ep-btn-primary,
.article-detail-page .ep-nav-secondary,
.article-detail-page .nhc-article-breadcrumb {
    display: none;
}

.article-detail-page .nhc-article-page {
    background: #f7f8f3;
    color: #351706;
    font-family: "Inter", Arial, sans-serif;
}

.article-detail-page .nhc-article-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.article-detail-page .nhc-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) 300px;
    gap: 44px;
    width: min(100% - 80px, 1200px);
    margin: 0 auto;
    align-items: start;
}

.article-detail-page .nhc-article-main {
    display: contents;
}

.article-detail-page .nhc-article-header,
.article-detail-page .nhc-article-hero {
    grid-column: 1 / -1;
    grid-row: 1;
}

.article-detail-page .nhc-article-hero {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    height: clamp(320px, 47vw, 560px);
    margin: 0 0 52px -50vw;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #d9d1b9;
}

.article-detail-page .nhc-article-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.2) 45%, rgba(0,0,0,.62) 100%);
    pointer-events: none;
}

.article-detail-page .nhc-article-hero > picture,
.article-detail-page .nhc-article-hero > picture img,
.article-detail-page .nhc-article-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-page .nhc-article-header {
    z-index: 3;
    align-self: end;
    width: min(100% - 80px, 980px);
    margin: 0 auto 78px;
    color: #fff;
    text-align: center;
}

.article-detail-page .nhc-article-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.article-detail-page .nhc-article-header h1 {
    max-width: 920px;
    margin: 0 auto;
    color: #fff;
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,.24);
}

.article-detail-page .nhc-article-header > p {
    max-width: 720px;
    margin: 16px auto 0;
    color: rgba(255,255,255,.9);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.5;
}

.article-detail-page .nhc-article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 18px;
    color: rgba(255,255,255,.88);
    font-size: 12px;
}

.article-detail-page .nhc-article-meta a,
.article-detail-page .nhc-article-meta strong {
    color: #fff;
}

.article-detail-page .nhc-author-avatar {
    display: none;
}

.article-detail-page .nhc-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-detail-page .nhc-share a,
.article-detail-page .nhc-share button {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
}

.article-detail-page .nhc-toc,
.article-detail-page .nhc-article-prose,
.article-detail-page .nhc-faq,
.article-detail-page .nhc-article-conclusion,
.article-detail-page .nhc-article-cta {
    grid-column: 1;
}

.article-detail-page .nhc-article-sidebar {
    grid-column: 2;
    grid-row: 2 / span 8;
    position: sticky;
    top: 72px;
    display: grid;
    gap: 18px;
}

.article-detail-page .nhc-toc,
.article-detail-page .nhc-faq,
.article-detail-page .nhc-article-cta,
.article-detail-page .nhc-sidebar-card {
    border: 1px solid #DDE7D8;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 8px 22px rgba(16, 44, 22, .045);
}

.article-detail-page .nhc-toc {
    padding: 24px;
}

.article-detail-page .nhc-toc strong,
.article-detail-page .nhc-sidebar-card h2 {
    color: #102C16;
    font-family: "Inter", Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.article-detail-page .nhc-toc p {
    margin: 6px 0 16px;
    color: #5f6c5f;
    font-size: 13px;
}

.article-detail-page .nhc-toc ol {
    display: grid;
    gap: 0;
    border-top: 1px solid #DDE7D8;
}

.article-detail-page .nhc-toc a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #DDE7D8;
    color: #102C16;
    font-size: 13px;
    font-weight: 700;
}

.article-detail-page .nhc-toc-badge {
    display: grid;
    width: 36px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: #EEF3EC;
    color: #234D20;
    font-size: 12px;
    font-weight: 900;
}

.article-detail-page .nhc-toc a:hover .nhc-toc-badge {
    background: #234D20;
    color: #FFFFFF;
}

.article-detail-page .nhc-article-prose {
    max-width: none;
    color: #352418;
    font-size: 16px;
    line-height: 1.78;
}

.article-detail-page .nhc-article-prose > * + * {
    margin-top: 1.05em;
}

.article-detail-page .nhc-article-prose h2,
.article-detail-page .nhc-article-prose h3 {
    color: #351706;
    font-family: "Inter", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0;
}

.article-detail-page .nhc-article-prose h2 {
    margin-top: 2em;
    padding-top: 4px;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.15;
}

.article-detail-page .nhc-article-prose h3 {
    margin-top: 1.55em;
    font-size: 22px;
    line-height: 1.25;
}

.article-detail-page .nhc-article-prose a {
    color: #846100;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-detail-page .nhc-article-prose ul,
.article-detail-page .nhc-article-prose ol {
    padding-left: 1.2em;
}

.article-detail-page .nhc-article-prose li + li {
    margin-top: .45em;
}

.article-detail-page .prose table {
    width: 100%;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e7d59a;
    border-radius: 8px;
    background: #fff8dd;
    font-size: 14px;
}

.article-detail-page .prose th {
    background: #ffcc00;
    color: #351706;
    font-weight: 900;
}

.article-detail-page .prose th,
.article-detail-page .prose td {
    padding: 13px 14px;
    border-right: 1px solid #e7d59a;
    border-bottom: 1px solid #e7d59a;
    vertical-align: top;
}

.article-detail-page .prose tr:last-child td {
    border-bottom: 0;
}

.article-detail-page .prose th:last-child,
.article-detail-page .prose td:last-child {
    border-right: 0;
}

.article-detail-page .prose .article-figure img {
    border-radius: 8px;
}

.article-detail-page .nhc-faq {
    padding: 24px;
}

.article-detail-page .nhc-faq h2 {
    margin: 0 0 16px;
    color: #351706;
    font-family: "Inter", Arial, sans-serif;
}

.article-detail-page .faq-item details {
    border-top: 1px solid #DDE7D8;
}

.article-detail-page .faq-item summary {
    padding: 15px 0;
    color: #351706;
    font-weight: 800;
}

.article-detail-page .nhc-sidebar-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.article-detail-page .nhc-sidebar-card h2 {
    margin-bottom: 16px;
    font-size: 16px;
}

.article-detail-page .nhc-popular-list {
    display: grid;
    gap: 18px;
}

.article-detail-page .nhc-popular-list a {
    display: grid;
    gap: 8px;
    color: #351706;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.article-detail-page .nhc-popular-list img,
.article-detail-page .nhc-popular-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    object-fit: cover;
    background: #efe6cc;
}

.article-detail-page .nhc-sidebar-card p,
.article-detail-page .nhc-sidebar-card small {
    color: #7f817b;
    font-size: 13px;
    line-height: 1.55;
}

.article-detail-page .nhc-outline-button,
.article-detail-page .nhc-sidebar-newsletter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 14px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #351706;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.article-detail-page .nhc-sidebar-newsletter {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.article-detail-page .nhc-sidebar-newsletter input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #eadfbe;
    border-radius: 999px;
    padding: 0 14px;
    background: #fffdf6;
}

.article-detail-page .nhc-sidebar-links,
.article-detail-page .nhc-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-detail-page .nhc-sidebar-links a,
.article-detail-page .nhc-tag-cloud a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f1e7d3;
    color: #745b2f;
    font-size: 12px;
    font-weight: 800;
}

.article-detail-page .site-footer {
    margin-top: 72px;
    background: #f7f8f3;
}

@media (max-width: 1180px) {
    .article-detail-page .ep-header-main {
        width: min(100% - 32px, 1770px);
        grid-template-columns: auto auto 1fr;
    }

    .article-detail-page .ep-header-left {
        display: flex;
        grid-column: 1;
        grid-row: 1;
    }

    .article-detail-page .ep-hamburger {
        display: inline-flex;
        color: #351706;
    }

    .article-detail-page .ep-logo {
        grid-column: 2;
    }

    .article-detail-page .ep-nav-primary {
        display: none;
    }

    .article-detail-page .ep-header-search {
        width: 44px;
        background: transparent;
    }

    .article-detail-page .ep-header-search::before {
        display: none;
    }

    .article-detail-page .nhc-article-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        width: min(100% - 48px, 1040px);
        gap: 32px;
    }
}

@media (max-width: 860px) {
    .article-detail-page .nhc-article-layout {
        display: block;
        width: min(100% - 32px, 720px);
    }

    .article-detail-page .nhc-article-header {
        width: min(100% - 32px, 720px);
        margin-bottom: 44px;
    }

    .article-detail-page .nhc-article-hero {
        height: 430px;
        margin-bottom: 36px;
    }

    .article-detail-page .nhc-article-header h1 {
        font-size: 32px;
    }

    .article-detail-page .nhc-article-meta {
        font-size: 11px;
    }

    .article-detail-page .nhc-toc,
    .article-detail-page .nhc-article-prose,
    .article-detail-page .nhc-faq,
    .article-detail-page .nhc-article-cta {
        margin-bottom: 28px;
    }

    .article-detail-page .nhc-article-sidebar {
        position: static;
        margin-top: 44px;
    }

    .article-detail-page .nhc-popular-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .article-detail-page .ep-header-right .ep-btn-primary {
        display: none;
    }

    .article-detail-page .nhc-article-hero {
        height: 380px;
    }

    .article-detail-page .nhc-article-header {
        margin-bottom: 30px;
    }

    .article-detail-page .nhc-article-header h1 {
        font-size: 27px;
    }

    .article-detail-page .nhc-article-header > p,
    .article-detail-page .nhc-share span,
    .article-detail-page .nhc-meta-divider {
        display: none;
    }

    .article-detail-page .nhc-article-prose {
        font-size: 15px;
    }

    .article-detail-page .prose table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .article-detail-page .nhc-popular-list {
        grid-template-columns: 1fr;
    }
}

/* Keep the site identity palette in the shared header. */
body:has(.nhc-ref-home) .ep-header,
.article-detail-page .ep-header {
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #DDE7D8;
    box-shadow: 0 1px 0 rgba(22, 39, 26, .08);
    backdrop-filter: blur(12px);
}

body:has(.nhc-ref-home) .ep-logo,
.article-detail-page .ep-logo,
body:has(.nhc-ref-home) .ep-header .ep-nav-primary-list > li > a,
.article-detail-page .ep-header .ep-nav-primary-list > li > a {
    color: #102C16;
}

body:has(.nhc-ref-home) .ep-header .ep-nav-primary-list > li > a:hover,
body:has(.nhc-ref-home) .ep-header .ep-nav-primary-list > li > a.active,
.article-detail-page .ep-header .ep-nav-primary-list > li > a:hover,
.article-detail-page .ep-header .ep-nav-primary-list > li > a.active {
    color: #177539;
}

body:has(.nhc-ref-home) .ep-header .ep-nav-primary-list > li > a.active::after,
.article-detail-page .ep-header .ep-nav-primary-list > li > a.active::after {
    display: block;
    background: #91b55a;
}

body:has(.nhc-ref-home) .ep-header-search,
.article-detail-page .ep-header-search {
    border: 1px solid #DDE7D8;
    background: #FFFFFF;
    color: #102C16;
}

body:has(.nhc-ref-home) .ep-header-search::before,
.article-detail-page .ep-header-search::before {
    color: #75806f;
}

body:has(.nhc-ref-home) .ep-header-search:hover,
.article-detail-page .ep-header-search:hover {
    color: #234D20;
}

body:has(.nhc-ref-home) .ep-header-right .ep-btn-primary,
.article-detail-page .ep-header-right .ep-btn-primary {
    border: 1px solid #234D20;
    background: #234D20;
    color: #FFFFFF;
}

body:has(.nhc-ref-home) .ep-header-right .ep-btn-primary:hover,
.article-detail-page .ep-header-right .ep-btn-primary:hover {
    border-color: #102C16;
    background: #102C16;
}

body:has(.nhc-ref-home) .ep-hamburger,
.article-detail-page .ep-hamburger {
    color: #102C16;
}

/* Article page identity palette override. */
.article-detail-page,
.article-detail-page .nhc-article-page,
.article-detail-page .site-footer {
    background: #F8FAF6;
    color: #1F2D22;
}

.article-detail-page .nhc-article-hero {
    background: #EEF3EC;
}

.article-detail-page .nhc-article-kicker,
.article-detail-page .nhc-article-header h1,
.article-detail-page .nhc-article-header > p,
.article-detail-page .nhc-article-meta,
.article-detail-page .nhc-article-meta a,
.article-detail-page .nhc-article-meta strong {
    color: #FFFFFF;
}

.article-detail-page .nhc-toc,
.article-detail-page .nhc-faq,
.article-detail-page .nhc-article-cta {
    border-color: #DDE7D8;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(16, 44, 22, .055);
}

.article-detail-page .nhc-toc strong,
.article-detail-page .nhc-faq h2,
.article-detail-page .nhc-article-prose h2,
.article-detail-page .nhc-article-prose h3,
.article-detail-page .nhc-sidebar-card h2,
.article-detail-page .faq-item summary,
.article-detail-page .nhc-popular-list a {
    color: #102C16;
}

.article-detail-page .nhc-toc p,
.article-detail-page .nhc-sidebar-card p,
.article-detail-page .nhc-sidebar-card small {
    color: #5F6C5F;
}

.article-detail-page .nhc-toc ol,
.article-detail-page .nhc-toc a,
.article-detail-page .faq-item details {
    border-color: #DDE7D8;
}

.article-detail-page .nhc-toc-badge {
    background: #EEF3EC;
    color: #234D20;
}

.article-detail-page .nhc-toc a:hover .nhc-toc-badge,
.article-detail-page .nhc-outline-button,
.article-detail-page .nhc-sidebar-newsletter button {
    background: #234D20;
    color: #FFFFFF;
}

.article-detail-page .nhc-article-prose {
    color: #243328;
}

.article-detail-page .nhc-article-prose a {
    color: #234D20;
}

.article-detail-page .prose table {
    border-color: #C8D8C2;
    background: #FFFFFF;
}

.article-detail-page .prose th {
    background: #234D20;
    color: #FFFFFF;
}

.article-detail-page .prose th,
.article-detail-page .prose td {
    border-color: #C8D8C2;
}

.article-detail-page .prose tr:nth-child(even) td {
    background: #F4F8F2;
}

.article-detail-page .nhc-popular-placeholder {
    background: #EEF3EC;
    color: #234D20;
}

.article-detail-page .nhc-sidebar-newsletter input {
    border-color: #DDE7D8;
    background: #FFFFFF;
    color: #102C16;
}

.article-detail-page .nhc-sidebar-links a,
.article-detail-page .nhc-tag-cloud a {
    background: #EEF3EC;
    color: #234D20;
}

.article-detail-page .nhc-sidebar-links a:hover,
.article-detail-page .nhc-tag-cloud a:hover {
    background: #234D20;
    color: #FFFFFF;
}

/* Category reference layout using the blog identity palette. */
.nhc-category-page {
    background: #F8FAF6;
    color: #102C16;
}

body:has(.nhc-category-page) .ep-header {
    background: #FFFFFF;
}

.nhc-category-shell {
    width: min(100% - 56px, 1360px);
    margin-inline: auto;
}

.nhc-category-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(72px, 6vw, 104px) 0 clamp(64px, 7vw, 108px);
    background: linear-gradient(180deg, #EEF3EC 0%, #E4EDDF 100%);
    border-bottom: 1px solid #DDE7D8;
}

.nhc-category-hero.has-hero-image {
    min-height: clamp(360px, 34vw, 520px);
    display: flex;
    align-items: center;
    background-image: var(--nhc-category-hero-image);
    background-position: center;
    background-size: cover;
}

.nhc-category-hero.has-hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--nhc-category-hero-image) center / cover no-repeat;
    transform: scale(1.02);
}

.nhc-category-hero.has-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(248, 250, 246, .96) 0%, rgba(248, 250, 246, .82) 42%, rgba(248, 250, 246, .38) 100%),
        linear-gradient(180deg, rgba(16, 44, 22, .12) 0%, rgba(16, 44, 22, .2) 100%);
}

.nhc-category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #4F5F51;
    font-size: 13px;
    font-weight: 600;
}

.nhc-category-breadcrumb a {
    color: #234D20;
}

.nhc-category-breadcrumb i {
    font-size: 10px;
    color: #75806F;
}

.nhc-category-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: #177539;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nhc-category-hero h1 {
    margin: 0;
    color: #102C16;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(52px, 6vw, 92px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: 0;
}

.nhc-category-hero p {
    max-width: 1180px;
    margin-top: clamp(26px, 3vw, 42px);
    color: #25362A;
    font-size: clamp(17px, 1.35vw, 22px);
    line-height: 1.55;
}

.nhc-category-page .category-layout {
    margin-top: 56px;
    margin-bottom: 10px;
}

.nhc-category-listing {
    padding: clamp(70px, 7vw, 112px) 0 48px;
}

.nhc-category-listing h2 {
    max-width: 1120px;
    margin: 0 0 clamp(44px, 5vw, 70px);
    color: #102C16;
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(40px, 4.7vw, 72px);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: 0;
}

.nhc-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(34px, 4vw, 58px) clamp(30px, 3vw, 48px);
}

.nhc-category-card-v2 {
    min-width: 0;
}

.nhc-category-card-image {
    display: block;
    aspect-ratio: 16 / 8.4;
    overflow: hidden;
    border-radius: 18px;
    background: #E7ECE5;
}

.nhc-category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease;
}

.nhc-category-card-v2:hover .nhc-category-card-image img {
    transform: scale(1.035);
}

.nhc-category-card-kicker {
    display: inline-flex;
    margin-top: 18px;
    color: #177539;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nhc-category-card-v2 h3 {
    margin-top: 8px;
    color: #102C16;
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0;
}

.nhc-category-card-v2 h3 a:hover {
    color: #177539;
}

@media (max-width: 860px) {
    .nhc-category-shell {
        width: min(100% - 32px, 720px);
    }

    .nhc-category-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .nhc-category-hero {
        padding-top: 38px;
        padding-bottom: 62px;
    }
}

@media (max-width: 560px) {
    .nhc-category-shell {
        width: min(100% - 26px, 720px);
    }

    .nhc-category-hero h1,
    .nhc-category-listing h2 {
        font-size: 38px;
    }

    .nhc-category-card-v2 h3 {
        font-size: 25px;
    }
}

/* Universal blog header: one shared component across Home, categories and articles. */
.ep-header {
    position: sticky;
    top: 0;
    z-index: 300;
    min-height: 76px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #DDE7D8;
    box-shadow: 0 1px 0 rgba(22, 39, 26, .08);
    backdrop-filter: blur(12px);
}

.ep-header-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    align-items: center;
    width: min(100% - 92px, 1760px);
    max-width: none;
    min-height: 76px;
    padding-block: 0;
    gap: 24px;
}

.ep-header-left {
    display: none;
}

.ep-logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    color: #102C16;
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.ep-logo::after {
    content: none;
}

.ep-logo .site-brand-logo,
.ep-logo .site-brand-logo-menu {
    width: clamp(180px, 13vw, 240px);
    max-width: clamp(180px, 13vw, 240px);
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.ep-nav-primary {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    min-width: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.ep-nav-primary-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(18px, 2.1vw, 42px);
}

.ep-header .ep-nav-primary-list > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 76px;
    padding: 0;
    gap: 7px;
    color: #102C16;
    font: 700 13px/1 "Inter", Arial, sans-serif;
    white-space: nowrap;
}

.ep-header .ep-nav-primary-list > li > a:hover,
.ep-header .ep-nav-primary-list > li > a.active {
    color: #177539;
}

.ep-header .ep-nav-primary-list > li > a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 2px;
    background: #91B55A;
}

.ep-header-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ep-header-search {
    display: inline-flex;
    width: 220px;
    height: 34px;
    align-items: center;
    justify-content: flex-end;
    padding-inline: 13px;
    border: 1px solid #DDE7D8;
    border-radius: 999px;
    background: #FFFFFF;
    color: #102C16;
    font-size: 13px;
}

.ep-header-search::before {
    content: "Buscar no blog...";
    margin-right: auto;
    color: #75806F;
    font-size: 12px;
    font-weight: 500;
}

.ep-header-search:hover {
    color: #234D20;
}

.ep-header-right .ep-btn-ghost,
.ep-header-auth-form,
.ep-nav-secondary {
    display: none;
}

.ep-header-right .ep-btn-primary {
    display: inline-flex !important;
    height: 46px;
    padding: 0 22px;
    border: 1px solid #234D20;
    border-radius: 4px;
    background: #234D20;
    color: #FFFFFF;
    font-size: 0;
    font-weight: 900;
}

.ep-header-right .ep-btn-primary::before {
    content: "Subscribe";
    font-size: 15px;
}

.ep-header-right .ep-btn-primary:hover {
    border-color: #102C16;
    background: #102C16;
}

@media (max-width: 1180px) {
    .ep-header-main {
        width: min(100% - 32px, 1760px);
        grid-template-columns: auto auto 1fr;
    }

    .ep-header-left {
        display: flex;
        grid-column: 1;
        grid-row: 1;
    }

    .ep-hamburger {
        display: inline-flex;
        color: #102C16;
    }

    .ep-logo {
        grid-column: 2;
    }

    .ep-logo .site-brand-logo,
    .ep-logo .site-brand-logo-menu {
        width: clamp(138px, 24vw, 190px);
        max-width: clamp(138px, 24vw, 190px);
        max-height: 56px;
    }

    .ep-nav-primary {
        display: none;
    }

    .ep-header-search {
        width: 44px;
        border-color: transparent;
        background: transparent;
    }

    .ep-header-search::before {
        display: none;
    }
}

@media (max-width: 560px) {
    .ep-logo .site-brand-logo,
    .ep-logo .site-brand-logo-menu {
        width: 132px;
        max-width: 132px;
        max-height: 48px;
    }

    .ep-header-right .ep-btn-primary {
        display: none !important;
    }
}

/* Final universal header shape: match the category header everywhere. */
body .ep-header,
body:has(.nhc-ref-home) .ep-header,
.article-detail-page .ep-header,
body:has(.nhc-category-page) .ep-header {
    min-height: 136px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #DDE7D8;
    box-shadow: 0 1px 0 rgba(22, 39, 26, .08);
    backdrop-filter: blur(12px);
}

body .ep-header-main,
body:has(.nhc-ref-home) .ep-header-main,
.article-detail-page .ep-header-main,
body:has(.nhc-category-page) .ep-header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    width: min(100% - 64px, 1500px);
    max-width: none;
    min-height: 136px;
    padding-block: 16px 10px;
    gap: 8px clamp(18px, 1.8vw, 30px);
}

body .ep-logo,
body:has(.nhc-ref-home) .ep-logo,
.article-detail-page .ep-logo,
body:has(.nhc-category-page) .ep-logo {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    min-height: 0;
    gap: 0;
}

body .ep-logo::after,
body:has(.nhc-ref-home) .ep-logo::after,
.article-detail-page .ep-logo::after,
body:has(.nhc-category-page) .ep-logo::after {
    content: none !important;
}

body .ep-logo .site-brand-logo,
body .ep-logo .site-brand-logo-menu,
body:has(.nhc-ref-home) .ep-logo .site-brand-logo,
body:has(.nhc-ref-home) .ep-logo .site-brand-logo-menu,
.article-detail-page .ep-logo .site-brand-logo,
.article-detail-page .ep-logo .site-brand-logo-menu,
body:has(.nhc-category-page) .ep-logo .site-brand-logo,
body:has(.nhc-category-page) .ep-logo .site-brand-logo-menu {
    width: clamp(180px, 14vw, 250px);
    max-width: clamp(180px, 14vw, 250px);
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

body .ep-nav-primary,
body:has(.nhc-ref-home) .ep-nav-primary,
.article-detail-page .ep-nav-primary,
body:has(.nhc-category-page) .ep-nav-primary {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    border: 0;
    background: transparent;
}

body .ep-header .ep-nav-primary-list > li > a,
body:has(.nhc-ref-home) .ep-header .ep-nav-primary-list > li > a,
.article-detail-page .ep-header .ep-nav-primary-list > li > a,
body:has(.nhc-category-page) .ep-header .ep-nav-primary-list > li > a {
    min-height: 44px;
}

body .ep-header-right,
body:has(.nhc-ref-home) .ep-header-right,
.article-detail-page .ep-header-right,
body:has(.nhc-category-page) .ep-header-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

body .ep-header-search,
body:has(.nhc-ref-home) .ep-header-search,
.article-detail-page .ep-header-search,
body:has(.nhc-category-page) .ep-header-search {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
}

body .ep-header-search::before,
body:has(.nhc-ref-home) .ep-header-search::before,
.article-detail-page .ep-header-search::before,
body:has(.nhc-category-page) .ep-header-search::before {
    content: none !important;
}

body .ep-header-right .ep-btn-primary::before,
body:has(.nhc-ref-home) .ep-header-right .ep-btn-primary::before,
.article-detail-page .ep-header-right .ep-btn-primary::before,
body:has(.nhc-category-page) .ep-header-right .ep-btn-primary::before {
    content: "Subscribe" !important;
    font-family: "Inter", Arial, sans-serif !important;
}

@media (max-width: 1180px) {
    body .ep-header,
    body:has(.nhc-ref-home) .ep-header,
    .article-detail-page .ep-header,
    body:has(.nhc-category-page) .ep-header {
        min-height: 76px;
    }

    body .ep-header-main,
    body:has(.nhc-ref-home) .ep-header-main,
    .article-detail-page .ep-header-main,
    body:has(.nhc-category-page) .ep-header-main {
        grid-template-columns: auto auto 1fr;
        grid-template-rows: 1fr;
        width: min(100% - 32px, 1500px);
        min-height: 76px;
        padding-block: 0;
    }

    body .ep-logo,
    body:has(.nhc-ref-home) .ep-logo,
    .article-detail-page .ep-logo,
    body:has(.nhc-category-page) .ep-logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
    }

    body .ep-nav-primary,
    body:has(.nhc-ref-home) .ep-nav-primary,
    .article-detail-page .ep-nav-primary,
    body:has(.nhc-category-page) .ep-nav-primary {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE — NEWHOME CORNER EDITORIAL PORTAL
   Breakpoints: tablet 768–1199px · mobile below 768px
   ============================================================ */

/* ---------------- TABLET ---------------- */
@media (max-width: 1199px) {
    .ep-container { padding-left: 20px; padding-right: 20px; }

    .ep-home-hero {
        min-height: 500px;
        padding-top: 50px;
        padding-bottom: 46px;
    }
    .ep-home-hero::before {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 36%, rgba(255, 255, 255, 0.34) 68%);
    }
    .ep-home-hero-media { object-position: 58% center; }
    .ep-home-hero h1 { max-width: 12ch; font-size: 46px; }
    .ep-home-hero-subtitle { max-width: 48ch; }
    .ep-home-hero-trust {
        right: 28px;
        bottom: 28px;
        max-width: 360px;
    }

    /* Primary nav scrolls horizontally */
    .ep-nav-primary .ep-container { justify-content: flex-start; }
    .ep-nav-primary-list {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .ep-nav-primary-list::-webkit-scrollbar { display: none; }

    /* Hero → main story on top, trending + latest below */
    .ep-hero {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
    .ep-hero-col:nth-child(2) {
        grid-column: 1 / -1;
        order: -1;
    }
    .ep-hero-col--divider { padding-left: 0; border-left: 0; }
    .ep-hero-col:nth-child(1),
    .ep-hero-col:nth-child(3) {
        border-top: 1px solid var(--ep-border-light);
        padding-top: 14px;
    }

    .ep-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ep-mosaic-bottom { grid-template-columns: repeat(2, 1fr); }

    .ep-topic-col + .ep-topic-col { padding-left: 18px; }
    .ep-topics { gap: 18px; }

    .ep-footer-grid { grid-template-columns: repeat(3, 1fr); }
    .ep-footer-about { grid-column: 1 / -1; }
}

/* Accessible editorial typography
   The public site favors comfortable long-form reading for a 40+ audience. */
body {
    font-size: clamp(1.0625rem, .25vw + 1rem, 1.1875rem);
    line-height: 1.7;
}

body,
button,
input,
select,
textarea {
    letter-spacing: 0;
}

.ep-header .ep-nav-primary-list > li > a {
    font-size: clamp(1rem, .25vw + .94rem, 1.125rem);
    line-height: 1.25;
}

.ep-drawer nav a,
.ep-nav-secondary-list a {
    font-size: clamp(1rem, .2vw + .95rem, 1.0625rem);
    line-height: 1.5;
}

.ep-btn,
.nhc-button,
.nhc-newsletter button,
.btn,
.btn-sm {
    min-height: 48px;
    font-size: clamp(1rem, .2vw + .95rem, 1.125rem);
    line-height: 1.2;
}

.nhc-hero h1 {
    margin-block: clamp(1.5rem, 2vw, 2.25rem);
    font-size: clamp(4.75rem, 5.4vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.nhc-hero-side {
    gap: clamp(1.125rem, 1vw, 1.5rem);
}

.nhc-hero-side > .nhc-eyebrow {
    margin: 0;
}

.nhc-hero-copy > p:not(.nhc-eyebrow) {
    max-width: 48ch;
    font-size: clamp(1.25rem, .45vw + 1.12rem, 1.5rem);
    line-height: 1.65;
}

.nhc-eyebrow,
.nhc-category,
.nhc-hero-post small,
.nhc-latest-list span {
    font-size: clamp(.9375rem, .18vw + .9rem, 1.0625rem);
    line-height: 1.45;
    letter-spacing: 0;
}

.nhc-hero-post {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 124px;
}

.nhc-hero-post img {
    width: 104px;
    height: 104px;
}

.nhc-hero-post strong {
    font-size: clamp(1.375rem, .35vw + 1.25rem, 1.625rem);
    line-height: 1.18;
}

.nhc-hero-post em,
.nhc-hero-benefits li {
    font-size: clamp(.9375rem, .15vw + .9rem, 1rem);
    line-height: 1.45;
}

.nhc-hero-trust strong,
.nhc-benefits strong {
    font-size: clamp(1.125rem, .25vw + 1.05rem, 1.3125rem);
    line-height: 1.3;
}

.nhc-hero-trust small,
.nhc-benefits small {
    font-size: clamp(1rem, .2vw + .95rem, 1.125rem);
    line-height: 1.65;
}

.nhc-section {
    padding-top: clamp(5rem, 8vw, 8.5rem);
}

.nhc-section-head {
    margin-bottom: clamp(1.75rem, 3vw, 3rem);
}

.nhc-section-head h2,
.section-title h1,
.category-hero h1 {
    font-size: clamp(2.625rem, 3.4vw, 3rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.nhc-section-head p,
.category-hero > p,
.category-intro,
.policy-content {
    font-size: clamp(1.125rem, .35vw + 1.02rem, 1.375rem);
    line-height: 1.75;
}

.nhc-section-head > a,
.ep-view-all {
    font-size: clamp(1rem, .2vw + .95rem, 1.0625rem);
    line-height: 1.4;
}

.nhc-overlay-copy strong,
.nhc-overlay-card:not(.nhc-overlay-card-featured) .nhc-overlay-copy strong {
    font-size: clamp(1.75rem, 1.5vw + 1.35rem, 2.125rem);
    line-height: 1.12;
}

.nhc-overlay-copy em,
.nhc-latest-list em,
.nhc-newsletter p,
.nhc-planner-copy > p:not(.nhc-eyebrow) {
    font-size: clamp(1.125rem, .25vw + 1.05rem, 1.25rem);
    line-height: 1.7;
}

.nhc-overlay-copy small,
.nhc-compact-card small,
.nhc-planner-list small,
.nhc-latest-list small,
.article-card-meta,
.article-row-meta {
    font-size: clamp(1rem, .2vw + .95rem, 1.0625rem);
    line-height: 1.55;
}

.nhc-category-card strong,
.nhc-collections strong {
    font-size: clamp(1.5rem, .55vw + 1.3rem, 1.875rem);
    line-height: 1.15;
}

.nhc-collections small,
.nhc-room-media span {
    font-size: clamp(.9375rem, .15vw + .9rem, 1rem);
    line-height: 1.35;
    letter-spacing: 0;
}

.nhc-compact-card strong,
.nhc-room-copy h3,
.nhc-latest-list strong,
.article-card-title,
.article-row-title {
    font-size: clamp(1.75rem, .75vw + 1.5rem, 2.125rem);
    line-height: 1.2;
}

.nhc-room-copy li a,
.article-row-summary,
.faq-content,
.sidebar-section a {
    font-size: clamp(1.0625rem, .25vw + 1rem, 1.1875rem);
    line-height: 1.65;
}

.nhc-planner-copy h2 {
    font-size: clamp(2.625rem, 3.8vw, 3.5rem);
    line-height: 1.08;
}

.nhc-planner-list strong {
    font-size: clamp(1.75rem, .7vw + 1.5rem, 2.125rem);
    line-height: 1.2;
}

.nhc-newsletter input {
    min-height: 52px;
    font-size: 1.0625rem;
}

.nhc-newsletter > small {
    font-size: 1rem;
    line-height: 1.55;
}

.ep-footer-col-title {
    font-size: clamp(1.0625rem, .2vw + 1rem, 1.1875rem);
    line-height: 1.35;
}

.ep-footer-tagline {
    font-size: clamp(1.0625rem, .25vw + 1rem, 1.125rem);
    line-height: 1.75;
}

.ep-footer-col a,
.ep-footer-copy,
.ep-footer-bottom-links a {
    font-size: clamp(1rem, .2vw + .95rem, 1.0625rem);
    line-height: 1.6;
}

.nhc-article-breadcrumb,
.nhc-article-meta,
.byline-item strong,
.byline-item small {
    font-size: clamp(1rem, .2vw + .95rem, 1.0625rem);
    line-height: 1.55;
    letter-spacing: 0;
}

.nhc-article-header {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.nhc-article-header h1,
.article-header h1 {
    font-size: clamp(3.5rem, 4.5vw, 4rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.nhc-article-header > p,
.article-summary {
    margin-block: clamp(1.5rem, 3vw, 2.25rem);
    font-size: clamp(1.25rem, .5vw + 1.1rem, 1.5rem);
    line-height: 1.7;
}

.nhc-article-prose,
.prose {
    font-size: clamp(1.25rem, .3vw + 1.16rem, 1.375rem);
    line-height: 1.85;
}

.nhc-article-prose > * + *,
.prose > * + * {
    margin-top: 1.35em;
}

.nhc-article-prose h2,
.prose h2,
.policy-content h2 {
    margin-top: 1.8em;
    margin-bottom: .65em;
    font-size: clamp(2.5rem, 2.8vw, 2.75rem);
    line-height: 1.16;
    letter-spacing: 0;
}

.nhc-article-prose h3,
.prose h3,
.policy-content h3 {
    margin-top: 1.65em;
    margin-bottom: .6em;
    font-size: clamp(1.875rem, 2vw, 2.125rem);
    line-height: 1.22;
    letter-spacing: 0;
}

.nhc-article-prose h4,
.prose h4 {
    margin-top: 1.5em;
    margin-bottom: .55em;
    font-size: clamp(1.5rem, 1.4vw, 1.625rem);
    line-height: 1.3;
}

.nhc-article-prose li,
.prose li {
    margin-block: .45em;
    font-size: 1em;
}

.nhc-article-prose blockquote,
.prose blockquote {
    font-size: clamp(1.375rem, .4vw + 1.25rem, 1.5rem);
    line-height: 1.75;
}

.nhc-article-prose figcaption,
.prose figcaption,
.article-figure figcaption {
    font-size: clamp(1rem, .2vw + .95rem, 1.0625rem);
    line-height: 1.6;
}

.nhc-toc > strong,
.toc h3,
.toc a {
    font-size: clamp(1rem, .2vw + .95rem, 1.0625rem);
    line-height: 1.6;
    letter-spacing: 0;
}

.nhc-toc > strong {
    font-size: clamp(2.625rem, 4vw, 3.625rem);
    line-height: 1.05;
}

.nhc-toc > p {
    font-size: clamp(1.125rem, .4vw + 1rem, 1.375rem);
    line-height: 1.6;
}

.nhc-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(2rem, 5vw, 4rem);
}

.nhc-toc li {
    min-width: 0;
    line-height: 1.55;
    word-break: normal;
    overflow-wrap: normal;
}

.nhc-toc a {
    font-size: inherit;
}

@media (max-width: 767px) {
    .ep-header-right .ep-btn-primary {
        min-height: 46px;
        padding-inline: 14px;
        font-size: 1rem;
    }

    .nhc-hero {
        min-height: max(760px, 100svh);
    }

    .nhc-hero h1 {
        max-width: 12ch;
        font-size: clamp(3rem, 13vw, 3.625rem);
        line-height: 1.04;
    }

    .nhc-hero-copy > p:not(.nhc-eyebrow) {
        font-size: clamp(1.125rem, 2vw + .7rem, 1.25rem);
        line-height: 1.65;
    }

    .nhc-hero-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .nhc-hero-benefits li {
        font-size: 1rem;
    }

    .nhc-section {
        padding-top: clamp(4rem, 16vw, 5.5rem);
    }

    .nhc-section-head {
        gap: 16px;
        margin-bottom: 1.75rem;
    }

    .nhc-section-head h2,
    .section-title h1,
    .category-hero h1 {
        font-size: clamp(2.375rem, 9vw, 2.75rem);
    }

    .nhc-section-head > a {
        font-size: 1rem;
    }

    .nhc-section-head > a i {
        font-size: 1.125rem;
    }

    .nhc-overlay-copy {
        right: 22px;
        bottom: 24px;
        left: 22px;
        gap: 12px;
    }

    .nhc-overlay-copy strong,
    .nhc-overlay-card:not(.nhc-overlay-card-featured) .nhc-overlay-copy strong {
        font-size: clamp(1.875rem, 7vw, 2.125rem);
    }

    .nhc-room-panel {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .nhc-room-copy h3,
    .nhc-compact-card strong,
    .nhc-latest-list strong {
        font-size: clamp(1.625rem, 6vw, 1.875rem);
    }

    .nhc-room-copy li a {
        font-size: 1.0625rem;
    }

    .nhc-planner-copy h2 {
        font-size: clamp(2.375rem, 9vw, 2.75rem);
    }

    .nhc-planner-list strong {
        font-size: clamp(1.5rem, 5.5vw, 1.75rem);
    }

    .nhc-benefits small {
        font-size: 1rem;
    }

    .nhc-article-header h1,
    .article-header h1 {
        font-size: clamp(2.625rem, 10vw, 3.25rem);
        line-height: 1.1;
    }

    .nhc-article-header > p,
    .article-summary {
        font-size: clamp(1.1875rem, 2vw + .75rem, 1.375rem);
    }

    .nhc-article-meta {
        gap: 12px;
        font-size: 1rem;
    }

    .nhc-article-prose,
    .prose {
        font-size: clamp(1.1875rem, 1.4vw + .9rem, 1.3125rem);
        line-height: 1.82;
    }

    .nhc-article-prose h2,
    .prose h2,
    .policy-content h2 {
        font-size: clamp(2.125rem, 8vw, 2.5rem);
    }

    .nhc-article-prose h3,
    .prose h3,
    .policy-content h3 {
        font-size: clamp(1.75rem, 6.5vw, 2rem);
    }

    .ep-footer-grid {
        gap: 36px;
    }

    .ep-footer-col li {
        margin-bottom: 14px;
    }
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 767px) {
    .ep-container { padding-left: 16px; padding-right: 16px; }

    .ep-home-hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 0;
        text-align: center;
        box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
    }
    .ep-home-hero::before {
        display: none;
    }
    .ep-home-hero-media {
        position: relative;
        inset: auto;
        order: 1;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: 72% 52%;
    }
    .ep-home-hero-copy {
        order: 2;
        width: 100%;
        max-width: none;
        padding: 28px 20px 20px;
        background: var(--ep-bg-page);
    }
    .ep-home-hero-admin {
        top: 12px;
        right: 12px;
    }
    .ep-home-hero-admin-panel {
        position: absolute;
        right: 0;
        width: min(340px, calc(100vw - 56px));
    }
    .ep-home-hero h1 {
        max-width: 15ch;
        margin: 0 auto;
        font-size: 34px;
        line-height: 1.1;
    }
    .ep-home-hero-subtitle {
        max-width: 34rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 15px;
        line-height: 1.6;
    }
    .ep-home-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 22px;
    }
    .ep-home-hero-actions .ep-btn,
    .ep-home-hero-secondary {
        width: 100%;
        min-width: 0;
        padding-right: 10px;
        padding-left: 10px;
    }
    .ep-home-hero-badges {
        justify-content: center;
        margin-top: 20px;
    }
    .ep-home-hero-trust {
        order: 3;
        position: static;
        width: auto;
        max-width: none;
        margin: 0 20px 24px;
        padding: 14px 16px;
        text-align: left;
        box-shadow: none;
    }
    .ep-home-hero-trust i {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    /* Header: hamburger in, navs out */
    .ep-hamburger { display: inline-flex; width: 44px; height: 44px; }
    .ep-nav-primary,
    .ep-nav-secondary { display: none; }
    .ep-header-main {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto;
        gap: 10px;
    }
    .ep-header-search { width: 44px; height: 44px; }
    .ep-logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        font-size: 19px;
    }
    .ep-logo .site-brand-logo { height: 30px; }
    .ep-logo .site-brand-logo-menu {
        width: 140px;
        max-width: 140px;
        height: auto;
        max-height: 44px;
    }
    .ep-logo i { font-size: 22px; }
    .ep-header-right {
        grid-column: 3;
        grid-row: 1;
    }
    .ep-header-right .ep-btn-ghost,
    .ep-header-right .ep-header-auth-form { display: none; }
    .ep-header-right .ep-btn { height: 44px; padding: 0 12px; font-size: 12px; }

    /* Hero → single column, main story first */
    .ep-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 16px 0;
    }
    .ep-hero-col--divider { padding-left: 0; border-left: 0; }
    .ep-hero-col:nth-child(2) { order: -1; }
    .ep-hero-col:nth-child(1),
    .ep-hero-col:nth-child(3) {
        border-top: 1px solid var(--ep-border-light);
        padding-top: 16px;
    }
    .ep-lead-title { font-size: 24px; }
    .ep-lead-summary { font-size: 14px; }

    /* Grids collapse */
    .ep-grid-4,
    .ep-grid-3,
    .ep-grid-2 { grid-template-columns: 1fr; }

    /* Mosaic stacks */
    .ep-mosaic { grid-template-columns: 1fr; }
    .ep-mosaic-secondary {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--ep-border-light);
        padding-top: 14px;
    }
    .ep-mosaic-bottom {
        grid-template-columns: 1fr;
        margin-top: 14px;
        padding-top: 14px;
    }
    .ep-feature-split { grid-template-columns: 1fr; }

    /* Topics stack */
    .ep-topics { grid-template-columns: 1fr; gap: 24px; }
    .ep-topic-col + .ep-topic-col { padding-left: 0; border-left: 0; }

    /* Footer stacks */
    .ep-footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .ep-footer-about { grid-column: auto; }
    .ep-footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ep-footer-col li { margin-bottom: 0; }
    .ep-footer-col a,
    .ep-footer-bottom-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .ep-view-all {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .ep-cookie-consent {
        bottom: 12px;
        grid-template-columns: 1fr;
        gap: 14px;
        width: min(80vw, calc(100vw - 24px));
        padding: 16px;
    }
    .ep-cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
    .ep-cookie-btn {
        width: 100%;
        min-height: 42px;
    }

    /* Spacing tightens */
    .ep-section { margin-top: 32px; }
    .ep-section:first-of-type { margin-top: 20px; }
    .ep-dark { padding: 32px 0; margin-top: 32px; }
    .ep-ad-leaderboard { margin: 16px 0; }

    /* Internal pages */
    .article-page-container {
        width: 100%;
        max-width: none;
    }
    .ep-article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .ep-article-main,
    .ep-article-main .prose,
    .ep-article-layout .sidebar {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    .ep-article-layout .sidebar {
        position: static;
        top: auto;
    }
    .sidebar-section,
    .toc,
    .project-disclaimer {
        box-sizing: border-box;
        max-width: 100%;
    }
    .article-header h1 { font-size: 28px; }
    .article-summary { font-size: 16px; }
    .article-byline { gap: 16px; }
    .article-grid { grid-template-columns: 1fr; }
    .article-row { flex-direction: column; gap: 8px; }
    .article-row-meta { white-space: normal; }
    .prose {
        overflow-wrap: anywhere;
        font-size: 16px;
    }
    .prose table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .prose img,
    .prose iframe,
    .prose video {
        max-width: 100%;
    }
    .category-hero h1 { font-size: 30px; }
    .category-layout { grid-template-columns: 1fr; gap: 28px; }
    .policy-layout { grid-template-columns: 1fr; gap: 28px; }
    .policy-sidebar { position: static; }
    .search-box {
        flex-direction: column;
        max-width: none;
    }
    .search-box button {
        width: 100%;
    }
    .login-page {
        min-height: auto;
        padding: 34px 16px 44px;
    }
    .login-panel {
        padding: 24px 20px;
        border-radius: 8px;
    }
    .login-panel-head {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }
    .login-icon {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }
    .login-panel h1 { font-size: 27px; }

    /* ---- Mobile drawer ---- */
    .ep-drawer {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 400;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 200ms ease;
    }
    body.ep-drawer-open .ep-drawer { opacity: 1; visibility: visible; }
    body.ep-drawer-open { overflow: hidden; }

    .ep-drawer-panel {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 84%;
        max-width: 320px;
        padding: 16px 0 24px;
        background: var(--ep-bg-footer);
        color: #FFFFFF;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 220ms ease;
    }
    body.ep-drawer-open .ep-drawer-panel { transform: translateX(0); }

    .ep-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px 14px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--ep-border-dark);
        font-family: var(--ep-font-body);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: rgba(255, 255, 255, 0.75);
    }
    .ep-drawer-close {
        width: 44px;
        height: 44px;
        background: transparent;
        border: 0;
        color: #FFFFFF;
        font-size: 18px;
    }
    .ep-drawer-panel nav a {
        display: block;
        padding: 12px 20px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .ep-drawer-panel nav a:hover { color: var(--ep-brand); }
    .ep-drawer-sub {
        display: block;
        padding: 18px 20px 8px;
        font-family: var(--ep-font-body);
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: rgba(255, 255, 255, 0.72);
    }
}

/* Hide the mobile drawer entirely on larger screens */
@media (min-width: 1100px) {
    .ep-drawer { display: none !important; }
    .ep-hamburger { display: none !important; }
}

/* NewHome Corner responsive homepage */
@media (max-width: 1199px) {
    .ep-header-main { gap: 18px; }
    .ep-nav-primary-list { gap: 16px; }
    .ep-nav-primary-list li:nth-last-child(-n+2) { display: none; }
    .nhc-shell { width: min(100% - 56px, 1320px); }
    .nhc-hero { min-height: 100vh; }
    .nhc-hero h1 { font-size: clamp(48px, 6vw, 66px); }
    .nhc-hero-content {
        display: block;
        width: min(100% - 56px, 1320px);
    }
    .nhc-hero-posts { display: none; }
    .nhc-trending-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nhc-overlay-card-featured { grid-column: 1 / -1; min-height: 480px; }
    .nhc-visual-grid,
    .nhc-collections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nhc-room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nhc-diy-layout { grid-template-columns: 1fr; }
    .nhc-diy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nhc-planner { grid-template-columns: 1fr; }
    .nhc-latest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
    .nhc-newsletter { min-height: 280px; }
    .nhc-benefits > div { grid-template-columns: repeat(2, 1fr); }
    .nhc-benefits > div > div { padding: 20px 28px; border-right: 1px solid var(--nhc-border); }
    .nhc-benefits > div > div:nth-child(2n) { border-right: 0; }
    .nhc-benefits > div > div:nth-child(-n+2) { border-bottom: 1px solid var(--nhc-border); }
    .ep-footer-grid { grid-template-columns: repeat(3, 1fr); }
    .nhc-article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
    .nhc-article-header h1 { font-size: 46px; }
    .nhc-article-meta { flex-wrap: wrap; }
    .nhc-share { width: 100%; margin: 6px 0 0; }
}

@media (max-width: 1099px) {
    .ep-header-main {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        grid-template-rows: auto;
        gap: 12px;
        padding-inline: 20px;
    }
    .ep-header-left { display: block; }
    .ep-hamburger {
        display: inline-flex;
        color: var(--nhc-green-dark);
        font-size: 26px;
    }
    .ep-header .ep-nav-primary { display: none; }
    .ep-logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
    }
    .ep-header-right {
        grid-column: 3;
        grid-row: 1;
    }
    .ep-header-right .ep-header-search { display: inline-flex; }
}

@media (max-width: 767px) {
    .ep-header { min-height: 68px; }
    .ep-header-main {
        grid-template-columns: 44px minmax(0,1fr) auto;
        grid-template-rows: auto;
        min-height: 68px;
        padding-inline: 14px;
    }
    .ep-header-left { display: block; }
    .ep-logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        font-size: 19px;
    }
    .ep-logo .site-brand-logo { max-width: 145px; height: 42px; }
    .ep-logo .site-brand-logo-menu {
        width: 136px;
        max-width: 136px;
        height: auto;
        max-height: 42px;
    }
    .ep-header .ep-nav-primary,
    .ep-header-right .ep-header-search { display: none; }
    .ep-header-right .ep-btn-primary { min-height: 44px; padding-inline: 12px; font-size: 11px; }

    .nhc-shell { width: min(100% - 36px, 1320px); }
    .nhc-hero {
        min-height: 100vh;
        align-items: end;
        text-align: left;
    }
    .nhc-hero-image {
        position: absolute;
        height: 100%;
        aspect-ratio: auto;
        object-position: center;
    }
    .nhc-hero-overlay {
        display: block;
        background: linear-gradient(0deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.82) 58%, rgba(255,255,255,.08) 100%);
    }
    .nhc-hero-content {
        width: min(100% - 36px, 1320px);
        padding: 80px 0 28px;
        background: transparent;
    }
    .nhc-hero h1 {
        max-width: 11ch;
        margin-inline: 0;
        color: var(--nhc-green-dark);
        font-size: 46px;
        line-height: .96;
    }
    .nhc-hero-copy > p:not(.nhc-eyebrow) {
        margin-inline: 0;
        color: #26342a;
        font-size: 16px;
    }
    .nhc-hero-benefits {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 44px;
    }
    .nhc-hero-benefits li { font-size: 9px; text-align: center; }
    .nhc-hero-benefits i { font-size: 22px; }

    .nhc-section { padding-top: 60px; }
    .nhc-section-head { align-items: flex-start; margin-bottom: 16px; }
    .nhc-section-head h2 { font-size: 30px; }
    .nhc-section-head > a { font-size: 0; }
    .nhc-section-head > a i { font-size: 16px; }
    .nhc-trending-grid { grid-template-columns: 1fr; }
    .nhc-overlay-card,
    .nhc-overlay-card-featured { grid-column: auto; min-height: 420px; }
    .nhc-overlay-copy strong,
    .nhc-overlay-card:not(.nhc-overlay-card-featured) .nhc-overlay-copy strong { font-size: 30px; }

    .nhc-visual-grid,
    .nhc-collections {
        display: flex;
        width: calc(100vw - 18px);
        padding-right: 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .nhc-visual-grid::-webkit-scrollbar,
    .nhc-collections::-webkit-scrollbar { display: none; }
    .nhc-category-card { flex: 0 0 58vw; scroll-snap-align: start; }
    .nhc-collections > a { position: relative; flex: 0 0 72vw; scroll-snap-align: start; }
    .nhc-room-grid { grid-template-columns: 1fr; gap: 14px; }
    .nhc-room-panel { grid-template-columns: 118px minmax(0,1fr); grid-template-rows: auto; }
    .nhc-room-media { aspect-ratio: auto; min-height: 100%; }
    .nhc-room-media span { right: 8px; bottom: 8px; max-width: calc(100% - 16px); font-size: 8px; }
    .nhc-room-copy { padding: 15px; gap: 10px; }
    .nhc-room-copy h3 { font-size: 22px; }
    .nhc-room-copy li a { font-size: 12px; }
    .nhc-diy-grid { grid-template-columns: 1fr; }
    .nhc-compact-card strong { font-size: 21px; }
    .nhc-newsletter { padding: 26px 22px; }
    .nhc-planner { padding: 26px 20px; }
    .nhc-planner-copy h2 { max-width: 13ch; font-size: 34px; }
    .nhc-planner-list a { grid-template-columns: 38px minmax(0,1fr); gap: 6px 12px; padding: 18px 0; }
    .nhc-planner-list span { font-size: 20px; }
    .nhc-planner-list strong { font-size: 21px; }
    .nhc-latest-list { grid-template-columns: 1fr; gap: 0; }
    .nhc-latest-list a { min-height: 0; padding: 20px 0; }
    .nhc-latest-list strong { font-size: 23px; }
    .nhc-benefits { margin-top: 42px; }
    .nhc-benefits > div { grid-template-columns: 1fr; gap: 24px; }
    .nhc-benefits > div > div,
    .nhc-benefits > div > div:first-child,
    .nhc-benefits > div > div:last-child {
        padding: 0 0 24px;
        border-right: 0;
        border-bottom: 1px solid var(--nhc-border);
    }
    .nhc-benefits > div > div:last-child { padding-bottom: 0; border-bottom: 0; }
    .nhc-benefits strong { font-size: 17px; }
    .nhc-benefits small { font-size: 12px; }
    .ep-footer-grid { grid-template-columns: 1fr; }

    .nhc-article-page { padding-bottom: 44px; }
    .nhc-article-shell { width: min(100% - 32px, 1240px); }
    .nhc-article-breadcrumb {
        min-height: 54px;
        overflow: hidden;
        white-space: nowrap;
    }
    .nhc-article-layout { grid-template-columns: 1fr; gap: 34px; }
    .nhc-article-header { margin-bottom: 22px; }
    .nhc-article-header h1 {
        font-size: 38px;
        line-height: 1.02;
        letter-spacing: -.8px;
    }
    .nhc-article-header > p { margin: 18px 0 20px; font-size: 15px; line-height: 1.6; }
    .nhc-article-meta { gap: 9px; font-size: 11px; }
    .nhc-meta-divider { display: none; }
    .nhc-share { gap: 8px; }
    .nhc-article-hero { border-radius: 5px; }
    .nhc-article-hero > picture img,
    .nhc-article-hero > img { aspect-ratio: 1.25 / 1; }
    .nhc-article-hero .article-figure-placeholder { min-height: 340px; }
    .nhc-toc {
        padding: 28px 20px;
    }

    .nhc-toc > strong {
        font-size: clamp(2.375rem, 10vw, 3rem);
    }

    .nhc-toc > strong::after {
        margin-block: 18px 20px;
    }

    .nhc-toc > p {
        margin-bottom: 22px;
        font-size: 1.0625rem;
    }

    .nhc-toc ol {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nhc-toc a {
        grid-template-columns: 48px minmax(0, 1fr) 20px;
        gap: 16px;
        min-height: 76px;
    }

    .nhc-toc-badge {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 1.25rem;
    }

    .nhc-toc-badge i,
    .nhc-toc-arrow {
        font-size: 1.25rem;
    }

    .nhc-toc-label {
        font-size: 1.125rem;
        line-height: 1.35;
    }
    .nhc-article-prose { font-size: 16px; }
    .nhc-article-prose h2 { font-size: 27px; }
    .nhc-article-cta { align-items: stretch; flex-direction: column; padding: 22px; }
    .nhc-article-cta > a { text-align: center; }
    .nhc-article-sidebar { gap: 16px; }
}

/* Final responsive type safeguards: keep legacy breakpoint rules from
   reducing meaningful editorial copy below the accessible scale. */
@media (max-width: 1199px) {
    .nhc-hero h1 {
        font-size: clamp(3.75rem, 7vw, 4.75rem);
        line-height: 1.04;
        letter-spacing: 0;
    }

    .nhc-article-header h1,
    .article-header h1 {
        font-size: clamp(3.25rem, 5.5vw, 3.75rem);
        line-height: 1.08;
        letter-spacing: 0;
    }
}

@media (max-width: 767px) {
    .ep-header-right .ep-btn,
    .ep-header-right .ep-btn-primary {
        min-height: 46px;
        padding-inline: 14px;
        font-size: 1rem;
    }

    .ep-drawer nav a {
        font-size: 1.0625rem;
        line-height: 1.55;
    }

    .nhc-hero {
        min-height: max(760px, 100svh);
    }

    .nhc-hero h1 {
        max-width: 12ch;
        font-size: clamp(3rem, 13vw, 3.625rem);
        line-height: 1.04;
        letter-spacing: 0;
    }

    .nhc-hero-copy > p:not(.nhc-eyebrow) {
        font-size: clamp(1.125rem, 2vw + .7rem, 1.25rem);
        line-height: 1.65;
    }

    .nhc-hero-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .nhc-hero-benefits li,
    .nhc-room-media span {
        font-size: 1rem;
        line-height: 1.4;
    }

    .nhc-section {
        padding-top: clamp(4rem, 16vw, 5.5rem);
    }

    .nhc-section-head {
        gap: 16px;
        margin-bottom: 1.75rem;
    }

    .nhc-section-head h2,
    .section-title h1,
    .category-hero h1 {
        font-size: clamp(2.375rem, 9vw, 2.75rem);
        line-height: 1.1;
    }

    .nhc-section-head > a {
        font-size: 1rem;
    }

    .nhc-section-head > a i {
        font-size: 1.125rem;
    }

    .nhc-overlay-copy {
        right: 22px;
        bottom: 24px;
        left: 22px;
        gap: 12px;
    }

    .nhc-overlay-copy strong,
    .nhc-overlay-card:not(.nhc-overlay-card-featured) .nhc-overlay-copy strong {
        font-size: clamp(1.875rem, 7vw, 2.125rem);
        line-height: 1.12;
    }

    .nhc-overlay-copy em {
        font-size: 1.125rem;
    }

    .nhc-overlay-copy small,
    .nhc-compact-card small,
    .nhc-planner-list small,
    .nhc-latest-list small {
        font-size: 1rem;
    }

    .nhc-room-panel {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .nhc-room-copy h3,
    .nhc-compact-card strong,
    .nhc-latest-list strong {
        font-size: clamp(1.625rem, 6vw, 1.875rem);
        line-height: 1.2;
    }

    .nhc-room-copy li a {
        font-size: 1.0625rem;
        line-height: 1.6;
    }

    .nhc-planner-copy h2 {
        font-size: clamp(2.375rem, 9vw, 2.75rem);
        line-height: 1.08;
    }

    .nhc-planner-copy > p:not(.nhc-eyebrow) {
        font-size: 1.125rem;
    }

    .nhc-planner-list strong {
        font-size: clamp(1.5rem, 5.5vw, 1.75rem);
    }

    .nhc-benefits strong {
        font-size: 1.125rem;
    }

    .nhc-benefits small {
        font-size: 1rem;
    }

    .nhc-article-header h1,
    .article-header h1 {
        font-size: clamp(2.625rem, 10vw, 3.25rem);
        line-height: 1.1;
        letter-spacing: 0;
    }

    .nhc-article-header > p,
    .article-summary {
        margin-block: 1.5rem 1.75rem;
        font-size: clamp(1.1875rem, 2vw + .75rem, 1.375rem);
        line-height: 1.7;
    }

    .nhc-article-meta,
    .nhc-article-breadcrumb {
        gap: 12px;
        font-size: 1rem;
        line-height: 1.55;
    }

    .nhc-article-prose,
    .prose {
        font-size: clamp(1.1875rem, 1.4vw + .9rem, 1.3125rem);
        line-height: 1.82;
    }

    .nhc-article-prose h2,
    .prose h2,
    .policy-content h2 {
        font-size: clamp(2.125rem, 8vw, 2.5rem);
        line-height: 1.16;
    }

    .nhc-article-prose h3,
    .prose h3,
    .policy-content h3 {
        font-size: clamp(1.75rem, 6.5vw, 2rem);
        line-height: 1.22;
    }

    .ep-footer-grid {
        gap: 36px;
    }

    .ep-footer-col-title,
    .ep-footer-tagline,
    .ep-footer-col a,
    .ep-footer-copy,
    .ep-footer-bottom-links a {
        font-size: 1rem;
        line-height: 1.65;
    }

    .ep-footer-col li {
        margin-bottom: 14px;
    }
}
