/* =========================================
   GLOBAL / BODY
========================================= */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background: #f3f4f6;
}

.page {
    max-width: 100%;
    overflow-x: hidden;
}

/* =========================================
   NAVBAR / HEADER
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.site-header .nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* FIX: Ensure call button always displays on mobile */
.nav-call-btn {
    display: inline-flex !important;
}


.nav-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.nav-logo-mark img {
    display: block;
    height: 32px;
    width: auto;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    line-height: 1.3;
}

.nav-brand-main {
    font-weight: 600;
    color: #111827;
}

.nav-brand-sub {
    color: #6b7280;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #111827;
}

.nav-call-btn {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.nav-call-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.nav-phone-icon {
    width: 16px;
    height: 16px;
}

.nav-toggle {
    width: 36px;
    height: 30px;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #4b5563;
}

@media (min-width: 900px) {
    .site-header .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: flex;
    }

    .nav-call-btn {
        display: inline-flex;
    }

    .nav-toggle {
        display: none;
    }
}

/* ===============================
   NAV — PROFILE AVATAR (LEFT)
================================ */

.nav-avatar {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;

    background: #2563eb;                 /* Call Ray blue */
    border: 2px solid rgba(255,255,255,0.85);
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    display: block;
}


/* =========================================
   ARTICLE PAGE WRAPPER / LAYOUT
========================================= */

.article-container {
    max-width: 1100px;
    margin: 1rem auto;
    padding: .25rem 1.25rem 3rem;
}

@media (min-width: 900px) {
    .article-container {
        padding: .25rem 1.5rem 4rem;
    }
}

/* =========================================
   BREADCRUMBS
========================================= */

.breadcrumbs {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0;
    margin-bottom: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumbs a {
    color: #4b5563;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.crumb-sep {
    margin: 0 0.25rem;
    color: #9ca3af;
}

.crumb-current {
    color: #111827;
}

/* =========================================
   MAIN LAYOUT (ARTICLE + SIDEBAR)
========================================= */

@media (min-width: 900px) {
    .article-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.9fr) minmax(260px, 0.95fr);
        gap: 2.5rem;
        align-items: flex-start;
    }
}

.article-main {
    min-width: 0;
}

.article-sidebar {
    margin-top: 2.5rem;
}

@media (min-width: 900px) {
    .article-sidebar {
        margin-top: 0;
        position: sticky;
        top: 5.5rem;
        align-self: flex-start;
    }
}

/* =========================================
   PAGE HEADERS
========================================= */

.article-header {
    margin-bottom: 1.75rem;
}

.article-title {
    font-size: 1.9rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

@media (min-width: 900px) {
    .article-title {
        font-size: 2.1rem;
    }
}

.article-subtitle {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #4b5563;
    margin: 0 0 0.5rem 0;
}

.article-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* =========================================
   HERO IMAGE
========================================= */

.article-hero {
    margin: 1.5rem 0 1.75rem;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #f3f4f6;
}

.article-hero img {
    display: block;
    width: 100%;
    height: auto;
}

/* CATEGORY HERO WRAPPER */
.category-hero {
    position: relative;
    overflow: hidden;       /* prevents horizontal scrolling */
    width: 100%;
}

/* IMAGE CONTAINER */
.category-hero-image {
    width: 100%;
    height: 275px;          /* adjust height if needed */
    overflow: hidden;       /* hide edges of oversized images */
    margin: 0;
    padding: 0;
}

/* THE IMAGE BEHAVIOR */
.category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* behaves like background-size: cover */
    object-position: center;/* center crop */
    display: block;
}


/* =========================================
   CATEGORY HERO — FINAL (MARKUP ALIGNED)
   Rich, dark, homepage-grade gradient
========================================= */

.category-hero-unified {
    position: relative;
    isolation: isolate;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;

    margin-bottom: 2.25rem;
    background: #000;
}

/* -------------------------
   Background layer
------------------------- */

.category-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    background-size: cover;
    background-position: center;
}

/* Homepage-grade gradient fallback */
.category-hero-bg--gradient {
    background:
        radial-gradient(
            120% 90% at 50% 0%,
            rgba(0, 84, 166, .8),
            rgba(0, 84, 166, 0.22) 65%,
            rgba(0, 0, 0, 0.9) 70%
        ),
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.96),
            rgba(0, 0, 0, 0.78),
            rgba(0, 0, 0, 0.88)
        );
}

/* -------------------------
   Overlay layer (EXPLICIT DIV)
------------------------- */

.category-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.55)
        );
}

/* -------------------------
   Content layer
------------------------- */

.category-hero-content {
    position: relative;
    z-index: 2;

    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.25rem;

    text-align: center;
    color: #f9fafb;
}

/* Title */
.category-hero-title {
    font-size: clamp(2.3rem, 3.2vw + 1.4rem, 3rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 0.65rem 0;
}

/* Subtitle */
.category-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #e5e7eb;
    max-width: 52ch;
    margin: 0 auto;
}

/* -------------------------
   Mobile tuning
------------------------- */

@media (max-width: 720px) {
    .category-hero-unified {
        min-height: 250px;
    }

    .category-hero-content {
        padding: 2.2rem 1.25rem;
    }
}




/* =========================================
   TYPOGRAPHY
========================================= */

.article-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #111827;
}

.blog-typography p {
    margin: 0 0 .85rem 0;
}

.blog-typography p:last-child {
    margin-bottom: 0;
}

.blog-typography h2 {
    font-size: 1.3rem;
    margin: 1.7rem 0 0.9rem 0;
    line-height: 1.4;
    color: #111827;
}

.blog-typography h3 {
    font-size: 1.1rem;
    margin: 1.3rem 0 0.7rem 0;
    line-height: 1.4;
    color: #111827;
}

.blog-typography ul,
.blog-typography ol {
    margin: 0 0 1.1rem 1.25rem;
    padding: 0;
}

.blog-typography li {
    margin-bottom: 0.4rem;
}

.blog-typography a {
    color: #2563eb;
    text-decoration: underline;
}

.blog-typography img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.25rem 0;
    border-radius: 0.65rem;
}

/* =========================================
   BLOCKQUOTE — STYLE A (Subtle NYT Style)
========================================= */

.blog-typography blockquote {
    border-left: 4px solid #2563eb;     /* blue accent bar */
    padding: 0.9rem 1.2rem;             /* comfortable text padding */
    margin: 1.6rem 0;                   /* space above & below */
    color: #374151;                     /* softer dark gray text */
    font-style: italic;
    background: #f9fafb;                /* faint paper-like background */
    border-radius: 0.4rem;              /* slight rounding for polish */
}


/* =========================================
   UNIFIED ARTICLE CARD SYSTEM
========================================= */

.article-list-section {
    margin-top: 2rem;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1.25rem; /* tighter gap between heading and cards */
}

.article-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 2rem;
    background: #ffffff;
    border-radius: 1.25rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.article-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0047bb;
    margin: 0 0 0.75rem 0;
}

.article-card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 1.5rem 0;
}

.article-card-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.article-card-readmore {
    margin-top: auto;
    font-weight: 600;
    color: #0047bb;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
}

.article-card-readmore::after {
    content: " →";
    margin-left: 0.25rem;
}

/* optional card image, only shows if HTML block is present */

.article-card-image {
    margin-bottom: 1rem;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #f3f4f6;
}

.article-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* optional card image block, works even when missing */

.article-card-image {
    margin-bottom: 1rem;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #f3f4f6;
}

.article-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   MANUAL ADD-ONS
========================================= */

.heading-anchor,
.heading-anchor svg,
.heading-anchor * {
    display: none !important;
}

/* =========================================
   SIDEBAR — ENHANCED LOOK (with accents)
========================================= */

.article-sidebar {
    font-size: 0.93rem;
}

/* ---------------------------
   Sidebar Section Headers
--------------------------- */
.sidebar-heading {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;

    font-weight: 600;
    color: #1e3a8a;                  /* Darker blue accent */
    margin: 1.2rem 0 0.6rem 0;

    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.sidebar-heading-icon {
    font-size: 0.75rem;
    color: #2563eb;                   /* Bright blue icon */
    opacity: 0.95;
}

/* Optional: subtle divider line under headings */
.sidebar-heading::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: #e5e7eb;
    margin-left: 0.4rem;
    opacity: 0.6;
}


/* ---------------------------
   Sidebar Lists
--------------------------- */
.sidebar-list {
    list-style: none;
    margin: 0 0 1.8rem 0;
    padding: 0;
}

/* Row layout: text left, badge right */
.sidebar-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.45rem 0;              /* > more breathing room */
    line-height: 1.45;
}

/* ---------------------------
   Sidebar Links
--------------------------- */
.sidebar-list a {
    flex: 1 1 auto;
    color: #111827;
    text-decoration: none;

    padding-right: 0.85rem;          /* separates title from badge */
    transition: color 0.15s ease;
}

/* Hover state: subtle "button" feel */
.sidebar-list a:hover {
    color: #1d4ed8;                  /* Blue hover */
    text-decoration: underline;
}

/* Optional: slight background hover for entire row */
.sidebar-list li:hover {
    background: rgba(37, 99, 235, 0.05);
    border-radius: 6px;
}


/* ---------------------------
   Sidebar Badge (NEW)
--------------------------- */
.sidebar-badge {
    flex-shrink: 0;
    display: inline-block;

    background: #f97316;
    color: #fff;

    padding: 0.12rem 0.55rem 0.18rem;
    border-radius: 999px;

    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    margin-left: 0.25rem;
}

/* ---------------------------
   Spacing Between Groups
--------------------------- */
.sidebar-list + .sidebar-heading {
    margin-top: 1.7rem;
}

/* Responsive YouTube iframe */
.article-body iframe {
    display: block;
    margin: 20px auto;  
    width: 100%;
    height: auto;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;  /* makes it responsive on mobile */
}

.article-body iframe {
    display: block;
    margin: 20px auto;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
}


/* ---------------------------
   Mobile Fine-tuning
--------------------------- */
@media (max-width: 700px) {
    .sidebar-list li {
        padding: 0.55rem 0;
    }
    
    .sidebar-list a {
        padding-right: 1rem;
    }
}

/* =========================================
   AUTHOR BOX
========================================= */

.author-box {
    margin-top: 2.75rem;
    padding: 1.6rem 1.8rem;
    border-radius: 1rem;
    background: #111827;
    color: #e5e7eb;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.author-avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: #1d4ed8;
    padding: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.author-box-main {
    flex: 1 1 220px;
    min-width: 0;
}

.author-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.15rem;
}

.author-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

.author-name {
    font-size: 0.98rem;
    font-weight: 600;
}

.author-title-line {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 0.4rem;
}

.author-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e5e7eb;
    margin: 0 0 0.7rem 0;
}

.author-contact {
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    color: #e5e7eb;
}

.author-contact a {
    color: #bfdbfe;
    text-decoration: none;
}

.author-title a {
    color: #bfdbfe;
    text-decoration: none;
}

.author-contact a:hover {
    text-decoration: underline;
}

.author-contact-sep {
    opacity: 0.7;
}

.author-cta {
    flex-shrink: 0;
    align-self: center;
}

.author-call-btn {
    display: none;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.88rem;
    text-decoration: none;
}

@media (max-width: 768px) {
    .author-call-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.nav-call-btn {
    flex-shrink: 0 !important;
    display: inline-flex;
}

.nav-left {
    flex: 1 1 auto !important;
}

.nav-links {
    flex-shrink: 0;
}

/* MOBILE NAV TOGGLE FIX — CMS SECTION */
@media (max-width: 900px) {
    .nav-links.open {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        background: #ffffff;
        padding: 1.25rem;
        position: absolute;
        top: 64px;
        right: 1.25rem;
        border-radius: 0.75rem;
        box-shadow: 0 8px 18px rgba(0,0,0,0.12);
        z-index: 999;
    }

    .nav-links a {
        color: #111827;
    }
}

/* ======================================================
   SIDEBAR CARD CONTAINERS
   Makes each section look like its own card
====================================================== */

.sidebar-section {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

/* Sidebar heading inside cards */
.sidebar-section .sidebar-heading {
    margin-top: 0;
    margin-bottom: 0.9rem;
}

/* Make the divider line less aggressive inside cards */
.sidebar-section .sidebar-heading::after {
    opacity: 0.35;
}

/* Clean list spacing inside cards */
.sidebar-section .sidebar-list li {
    padding: 0.45rem 0;
    padding-left: 0.8rem; /* indent amount */
}

/* Slight hover highlight for rows */
.sidebar-section .sidebar-list li:hover {
    background: rgba(37, 99, 235, 0.04);
    border-radius: 6px;
}

/* Badge spacing fix */
.sidebar-section .sidebar-badge {
    margin-left: 0.4rem;
}

/* ======================================================
   ARTICLE PAGE ENHANCEMENTS — RAYSGUIDE CMS
   Clean, modern, professional editorial styling
====================================================== */


/* ---------------------------------------------
   1. GLOBAL TYPOGRAPHY SPACING REFINEMENT
---------------------------------------------- */

.article-title {
    margin: 0 0 0.5rem 0; /* tighter H1 → subtitle */
}

.article-subtitle {
    margin: 0 0 0.35rem 0; /* tighter subtitle → paragraph */
}

.blog-typography p {
    margin: 0 0 0.85rem 0; /* denser paragraph rhythm */
}

/* tighter heading spacing */
.blog-typography h2 {
    margin: 1.6rem 0 0.65rem 0;
}
.blog-typography h3 {
    margin: 1.2rem 0 0.55rem 0;
}

/* consistent spacing when text → heading */
.blog-typography p + h2,
.blog-typography p + h3 {
    margin-top: 1.3rem !important;
}



/* ---------------------------------------------
   2. POLISHED HEADER STYLING (H2 / H3)
---------------------------------------------- */

.blog-typography h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    border-left: 4px solid #2563eb;
    padding-left: 0.6rem;
    margin: 1.6rem 0 0.65rem 0;
}

.blog-typography h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.2rem 0 0.55rem 0;
}



/* ---------------------------------------------
   3. BLOCKQUOTE — STYLE A (NYT STYLE)
---------------------------------------------- */

.blog-typography blockquote {
    border-left: 4px solid #2563eb;
    padding: 0.9rem 1.2rem;
    margin: 1.6rem 0;
    color: #374151;
    font-style: italic;
    background: #f9fafb;
    border-radius: 0.4rem;
}



/* ---------------------------------------------
   4. NOTE & WARNING BOXES (optional content markup)
---------------------------------------------- */

/* blue informational note */
.note {
    background: #f0f9ff;
    border-left: 4px solid #38bdf8;
    padding: 1rem 1.2rem;
    border-radius: 0.5rem;
    margin: 1.4rem 0;
    color: #0c4a6e;
}

/* orange warning */
.warning {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 1rem 1.2rem;
    border-radius: 0.5rem;
    margin: 1.4rem 0;
    color: #7c2d12;
}



/* ---------------------------------------------
   5. CHECKLIST STYLE (optional)
---------------------------------------------- */

.checklist li {
    list-style: none;
    padding-left: 1.4rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: #2563eb;
    font-weight: 600;
}



/* ---------------------------------------------
   6. TAG CHIPS (PILLS)
---------------------------------------------- */

.article-tags {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-chip {
    background: #dfe0e2;
    color: #374151;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid #bebebe;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tag-chip:hover {
    background: #e2e8f0;
    color: #1e40af;
    border-color: #cbd5e1;
}



/* ---------------------------------------------
   7. BUTTON-LINKS (for category cards, CTA links)
---------------------------------------------- */

.btn-link {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    background: #2563eb;
    color: #ffffff !important;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.btn-link:hover {
    background: #1d4ed8;
}



/* ---------------------------------------------
   8. OPTIONAL: EXTRA CLEAN-UP AND RHYTHM TUNING
---------------------------------------------- */

/* improve space above tag chips */
.article-tags {
    padding-top: 0.3rem;
}

/* unify spacing for images inside content */
.blog-typography img {
    margin: 1.2rem 0;
}

/* ensure lists have consistent left margin */
.blog-typography ul,
.blog-typography ol {
    margin: 0 0 1.2rem 1.2rem;
}

/* =========================================
   CMS Heading Anchors — with link icon
========================================= */

.article-body.blog-typography h2,
.article-body.blog-typography h3 {
    position: relative;
}

/* Icon link */
.anchor-link {
    position: absolute;
    left: -1.4rem;
    top: 0.15rem;
    opacity: 0;
    color: #9ca3af;
    text-decoration: none;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.article-body.blog-typography h2:hover .anchor-link,
.article-body.blog-typography h3:hover .anchor-link {
    opacity: 1;
}

.anchor-link:hover {
    color: #2563eb;
}

/* Mobile refinement */
@media (max-width: 600px) {
    .anchor-link {
        left: -1rem;
    }
}


/* =========================================
   PILLAR CARD STYLE FOR HUB PAGES
========================================= */

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}


.pillar-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: .5rem;
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
}

.pillar-card-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.pillar-card-title {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.pillar-card-title a {
    text-decoration: none;
    color: inherit;
}

.pillar-card-description {
    margin: 0 0 0.25rem;
    color: #555;
    line-height: 1.5;
}

.pillar-card-link {
    font-weight: 600;
    text-decoration: none;
}


section {
  margin-bottom: 2rem;
}

.start-here-primary {
  background: #e9e9ea;
  padding: 1rem;
  border-left: 4px solid #111;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.guide-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem;
    border: 1px solid #e5e5e5;
    text-decoration: none;
}

.guide-title {
    font-weight: 500;
}




/* ===============================
   FOOTER — UNIFIED (FRONT + CMS)
================================ */

footer {
    margin-top: 3rem;
    background: #111827;
    color: #e5e7eb;
    font-size: 0.85rem;
    padding: 1.6rem 1.25rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}


/* ===============================
   FOOTER — EXP LOGO (WHITE)
================================ */

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-exp-logo {
    height: 20px;
    width: auto;
    opacity: 0.9;
}


@media (min-width: 900px) {
    .footer-inner {
        padding: 1.2rem 1.5rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ======================================================
   SELLER CAT-1 HUB OVERRIDES (SCOPED)
   - Pillars look like ONE unified section (single container)
   - Internal dividers instead of 6 separate cards
   - Landscape images on top
   - Foundational guides use small left icons
   - Remove blue H2 accent only inside Start Here
====================================================== */

/* ---------------------------
   PILLARS SECTION (UNIFIED)
--------------------------- */

.pillars-section {
    margin-top: 1.25rem;
}

.pillars-section > h2 {
    margin-bottom: 0.4rem;
}

.pillars-section > p {
    margin-top: 0;
    margin-bottom: 0.95rem;
    max-width: 65ch;
}

/* This is the ONE visual container */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0; /* critical: no gaps so it reads as one system */

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
}

@media (min-width: 900px) {
    .pillars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Each pillar is now a "cell", not a separate card */
.pillar-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;

    padding: 1.05rem;
    background: transparent;
    border: 0;
    border-radius: 0;

    /* internal divider default (mobile) */
    border-bottom: 1px solid #e5e7eb;
}

/* remove divider from last item on mobile */
.pillar-card:last-child {
    border-bottom: 0;
}

/* desktop: internal grid dividers */
@media (min-width: 900px) {
    /* vertical divider for left column cells */
    .pillar-card:nth-child(odd) {
        border-right: 1px solid #e5e7eb;
    }

    /* horizontal divider for all cells */
    .pillar-card {
        border-bottom: 1px solid #e5e7eb;
    }

    /* remove bottom divider on last row (works for 6 items in 2 cols) */
    .pillar-card:nth-last-child(1),
    .pillar-card:nth-last-child(2) {
        border-bottom: 0;
    }

    /* remove right divider on right column */
    .pillar-card:nth-child(even) {
        border-right: 0;
    }
}

/* Landscape image on top */
.pillar-card .pillar-image {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
    border-radius: 0.75rem;
    background: #f3f4f6;
}

/* Title + link (make sure it reads like a link) */
.pillar-card h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.pillar-card h3 a {
    color: #0f172a;
    text-decoration: none;
}

.pillar-card h3 a:hover {
    text-decoration: underline;
}

/* Description */
.pillar-card p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

/* Optional: make the whole cell feel clickable without changing markup */
.pillar-card:hover h3 a {
    color: #1d4ed8;
}


/* ---------------------------
   START HERE (remove blue H2 bar only here)
--------------------------- */

.start-here-primary {
    background: #e9e9ea;
    padding: 1.1rem 1.25rem;
    border-left: 4px solid #111;
    border-radius: 0.6rem;
}

.start-here-primary h2 {
    border-left: none;
    padding-left: 0;
}


/* ---------------------------
   FOUNDATIONAL GUIDES (icons on left)
--------------------------- */

.foundational-guides {
    margin-top: 1.25rem;
}

.guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

@media (min-width: 700px) {
    .guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* compact link row (not a giant card system) */
.guide-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;

    padding: 0.45rem 0.65rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;

    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    background: #e0dfdf;
}

/* small square icon on the left */
.guide-card .guide-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: block;
    object-fit: contain;

    /* makes placeholders look intentional */
    /* background: #f3f4f6; */
    border-radius: 0.35rem;
    padding: 3px;
}

.guide-title {
    font-weight: 500;
    line-height: 1.3;
    color: #111827;
}

/* Remove underline from foundational guide links */
.foundational-guides a,
.foundational-guides a:hover {
    text-decoration: none;
}


/* Slim author box for category pages */
.author-box--slim {
    margin-top: 2rem;
    padding: 1.2rem 1.4rem;
}

.author-box--slim .author-bio {
    font-size: 0.9rem;
}

.content-attribution {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #374151;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

/* =========================
   SITE PURPOSE BLOCK
========================= */

.site-purpose {
    margin-top: 2.5rem;
    padding-top: 1.6rem;
    border-top: 1px solid #e5e7eb;
    max-width: 720px;
}

.site-purpose p {
    margin: 0 0 0.9rem 0;
    line-height: 1.65;
    color: #374151;
    font-size: 0.95rem;
}

.site-purpose-lead {
    font-weight: 600;
    color: #111827;
}

.site-purpose-invite {
    margin-top: 0.75rem;
    font-style: italic;
    color: #4b5563;
}

/* =========================
   CONTACT PAGE
========================= */

.contact-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

@media (min-width: 900px) {
    .contact-options {
        grid-template-columns: 1.3fr 0.7fr;
    }
}

.contact-form-wrap,
.contact-direct {
    background: #ffffff;
    padding: 1.5rem 1.75rem;
    border-radius: 0.9rem;
    border: 1px solid #e5e7eb;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #111827;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-direct p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-direct a {
    color: #2563eb;
    text-decoration: none;
}

.contact-direct a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.75rem;
}

.cms-contact-form {
  max-width: 520px;
}

.cms-contact-form .form-group {
  margin-bottom: 1rem;
}

.cms-contact-form input,
.cms-contact-form textarea {
  width: 100%;
  padding: 0.55rem;
}

.form-status.success {
  color: #0a7a2f;
  margin-top: 0.75rem;
}

.form-status.error {
  color: #b00020;
  margin-top: 0.75rem;
}

/* =========================================
   CONTACT PAGE — ISOLATED STYLES
========================================= */

.contact-wrap {
  margin-top: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

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

/* FORM */
.contact-form-box {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.contact-form-box h3 {
  margin-bottom: 0.25rem;
}

.contact-form-box p {
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

.contact-submit-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-submit-btn:hover {
  background: #1d4ed8;
}

/* AUTHOR CARD */
.contact-author-box {
  background: #111827;
  color: #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.author-avatar-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #2563eb;
  padding: 3px;
}

.author-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.contact-author-box h4 {
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.9rem;
  color: #c7d2fe;
  margin-bottom: 1rem;
}

.author-contact a {
  color: #bfdbfe;
  text-decoration: none;
}

.author-contact a:hover {
  text-decoration: underline;
}


/* =========================================================
   Market Report / Market Tracker Styles
   Scoped, clean, and CMS-safe
   ========================================================= */

/* Wrapper
   Apply this class to the container that holds
   the entire market report content */
.market-report {
  line-height: 1.65;
}

/* Headings */
.market-report h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.market-report p {
  margin: 0 0 1rem;
  max-width: 70ch;
}

/* ---------------------------------------------------------
   Tables
   --------------------------------------------------------- */

.market-report table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem;
  background: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.06);
}

/* Table headers */
.market-report table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(30, 64, 175, 0.06); /* subtle blue tint */
  color: #41586e;
  border-bottom: 1px solid rgba(30, 64, 175, 0.15);
  white-space: nowrap;
}


/* Table cells */
.market-report table td {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #eef0f2;
}

/* Remove border on last row */
.market-report table tr:last-child td {
  border-bottom: none;
}

/* Zebra striping for readability */
.market-report table tbody tr:nth-child(even) {
  background: #fafbfc;
}

/* Emphasize numeric values slightly */
.market-report table td:nth-child(n+2) {
  font-weight: 500;
}

/* Right-align numeric columns */
.market-report table td:not(:first-child),
.market-report table th:not(:first-child) {
  text-align: right;
}

/* ---------------------------------------------------------
   Mobile adjustments
   --------------------------------------------------------- */

@media (max-width: 640px) {
  .market-report h2 {
    font-size: 1.4rem;
  }

  .market-report table th,
  .market-report table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
  }
}

.card-arrow {
  font-size: 1.75rem;
  opacity: 0.6;
  margin-left: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.card:hover .card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ===== Downsizing Calculator Layout ===== */

.calculator-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.calculator-main {
    flex: 1;
    min-width: 0;
}

.calculator-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.calculator-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.calculator-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.calculator-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calculator-links li {
    margin-bottom: 8px;
}


/* ===== Downsizing Calculator Sidebar – Author Card ===== */

.article-container.calculator-layout .calculator-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.article-container.calculator-layout .calculator-profile {
    background: #0f2f57; /* dark blue */
    color: #ffffff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
}

.article-container.calculator-layout .calculator-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 15px auto;
    background: #f7931e;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.article-container.calculator-layout .calculator-avatar img {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%) scale(1.12);
    width: auto;
    height: 140px;
    max-width: none;
}

/* Name + title */
.article-container.calculator-layout .calculator-name {
    margin: 10px 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.article-container.calculator-layout .calculator-title {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 15px;
}


/* Bio text */
.article-container.calculator-layout .calculator-blurb {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Links section */
.article-container.calculator-layout .calculator-links {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: left;
}

.article-container.calculator-layout .calculator-links h5 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #f7931e;
}

.article-container.calculator-layout .calculator-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-container.calculator-layout .calculator-links li {
    margin-bottom: 8px;
}

.article-container.calculator-layout .calculator-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.article-container.calculator-layout .calculator-links a:hover {
    text-decoration: underline;
}

/* ===== Calculator Sidebar Links – FORCE FIX ===== */

.article-container.calculator-layout .calculator-links {
    margin-top: 25px;
    text-align: center !important;
    color: #0f2f57 !important;
}

.article-container.calculator-layout .calculator-links h5 {
    color: #f7931e !important;
    margin-bottom: 12px;
}

.article-container.calculator-layout .calculator-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-container.calculator-layout .calculator-links li {
    margin-bottom: 10px;
}

.article-container.calculator-layout .calculator-links a {
    color: #0f2f57 !important;
    font-weight: 600;
    text-decoration: none;
}

.article-container.calculator-layout .calculator-links a:hover {
    text-decoration: underline;
}

/* ===== Calculator Sidebar Links – FINAL VISUAL FIX ===== */

/* Bigger, louder header */
.article-container.calculator-layout .calculator-links h5 {
    font-size: 18px;
    font-weight: 700;
    color: #f7931e;
    margin-bottom: 16px;
    text-align: center;
}

/* Make links look like actual links */
.article-container.calculator-layout .calculator-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
    border: 2px solid #0f2f57;
    color: #0f2f57 !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover = obvious interaction */
.article-container.calculator-layout .calculator-links a:hover {
    background: #0f2f57;
    color: #ffffff !important;
    text-decoration: none;
}

/* ===== Calculator Sidebar – Mobile Friendly ===== */

@media (max-width: 768px) {

    .article-container.calculator-layout {
        flex-direction: column;
        gap: 30px;
    }

    .article-container.calculator-layout .calculator-sidebar {
        width: 100%;
        order: 2;
    }

    .article-container.calculator-layout .calculator-main {
        order: 1;
    }

    /* Center the blue card on mobile */
    .article-container.calculator-layout .calculator-profile {
        max-width: 360px;
        margin: 0 auto;
    }

    /* Make links easier to tap */
    .article-container.calculator-layout .calculator-links a {
        width: 100%;
        max-width: 320px;
        padding: 12px 16px;
        font-size: 16px;
    }
}
