/* ==========================================================================
   THE AGENT OPERATOR - CUSTOM HOMEPAGE STYLES
   ==========================================================================
   Premium editorial homepage design
   Color palette: black, white, gray, optional dark navy (#1a1a2e)
   ========================================================================== */

/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
    --ao-black: #000000;
    --ao-white: #ffffff;
    --ao-off-white: #fafafa;
    --ao-light-gray: #e5e5e5;
    --ao-medium-gray: #888888;
    --ao-dark-gray: #333333;
    --ao-navy: #1a1a2e;
    
    /* Typography */
    --ao-font-serif: 'Georgia', 'Times New Roman', Times, serif;
    --ao-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   HEADER OVERRIDE - BLACK NAV BAR (SINGLE COMPACT ROW)
   ========================================================================== */

/* Force entire header to be solid black - override all theme gradients */
.gh-head,
.gh-head *,
body .gh-head,
body.is-head-stacked .gh-head,
.is-head-stacked .gh-head,
.gh-head-inner,
.gh-head .gh-head-inner {
    background: var(--ao-black) !important;
    background-color: var(--ao-black) !important;
    background-image: none !important;
}

/* COMBINE TWO ROWS INTO ONE - Override stacked layout */
body.is-head-stacked .gh-head-inner,
.is-head-stacked .gh-head-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2rem !important;
}

/* Override stacked header menu row - make inline */
.is-head-stacked .gh-head-menu,
body.is-head-stacked .gh-head-menu,
.gh-head-menu {
    background: var(--ao-black) !important;
    background-color: var(--ao-black) !important;
    background-image: none !important;
    border-top: none !important;
    padding: 0 !important;
    margin: 0 !important;
    order: 2 !important;
    flex: 1 !important;
    justify-content: center !important;
}

/* CRITICAL: Remove the two horizontal lines added by base theme */
/* Base theme adds ::before at top:80px and ::after at top:136px */
.is-head-stacked .gh-head-menu::before,
.is-head-stacked .gh-head-menu::after,
body.is-head-stacked .gh-head-menu::before,
body.is-head-stacked .gh-head-menu::after,
.gh-head-menu::before,
.gh-head-menu::after {
    display: none !important;
    content: none !important;
    height: 0 !important;
    width: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
}

/* Make brand section not full width in stacked mode */
body.is-head-stacked .gh-head-brand,
.is-head-stacked .gh-head-brand {
    width: auto !important;
    flex: 0 0 auto !important;
    order: 1 !important;
    padding: 0 !important;
}

/* Actions on the right */
body.is-head-stacked .gh-head-actions,
.is-head-stacked .gh-head-actions {
    order: 3 !important;
    flex: 0 0 auto !important;
}

/* Hide the burger menu wrapper in stacked brand */
body.is-head-stacked .gh-head-brand-wrapper {
    flex: 0 0 auto !important;
}

/* Compact header padding */
.gh-head-inner {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Remove horizontal line below header - aggressive override */
.gh-head,
body .gh-head,
.gh-head::after,
.gh-head::before,
body.is-head-stacked .gh-head,
.gh-head.gh-outer,
#gh-head,
header,
header.gh-head {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Target the site wrapper that might have a border */
.gh-site,
.gh-site > header,
.gh-outer,
body .gh-outer {
    border: none !important;
    border-bottom: none !important;
}

/* Remove any separator pseudo-elements */
.gh-head::after,
.gh-head::before,
.gh-head-inner::after,
.gh-head-inner::before,
.gh-site::before,
header::after {
    display: none !important;
    content: none !important;
}

/* Logo styling */
.gh-head-logo,
.gh-head-logo:hover,
body .gh-head-logo {
    color: var(--ao-white) !important;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.gh-head-logo img {
    max-height: 40px;
}

/* Navigation links - ALL white, override any theme colors */
.gh-head-menu a,
.gh-head-menu .nav a,
.gh-head-menu ul a,
.gh-head-menu li a,
.gh-head .nav a,
.gh-head nav a,
body .gh-head-menu a,
body .gh-head .nav a,
body.is-head-stacked .gh-head-menu a,
.is-head-stacked .gh-head-menu a,
.is-head-stacked .gh-head-menu .nav a,
.is-head-stacked .gh-head .nav a {
    color: var(--ao-white) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.gh-head-menu a:hover,
.gh-head-menu .nav a:hover,
.gh-head .nav a:hover,
body .gh-head-menu a:hover {
    opacity: 0.8;
    color: var(--ao-white) !important;
}

/* Search icon */
.gh-head-actions .gh-search,
.gh-head-brand .gh-search,
.gh-head .gh-search,
.gh-search svg,
body .gh-head .gh-search {
    color: var(--ao-white) !important;
}

/* Sign in link */
.gh-head-actions .gh-head-link,
.gh-head-members a:not(.gh-head-btn),
body .gh-head-members a:not(.gh-head-btn) {
    color: var(--ao-white) !important;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Subscribe button - white background */
.gh-head-actions .gh-head-btn,
.gh-head-members .gh-head-btn,
body .gh-head-members .gh-head-btn {
    background-color: var(--ao-white) !important;
    background: var(--ao-white) !important;
    color: var(--ao-black) !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gh-head-actions .gh-head-btn:hover,
.gh-head-members .gh-head-btn:hover {
    background-color: var(--ao-light-gray) !important;
    background: var(--ao-light-gray) !important;
}

/* Hide email icon in subscribe button */
.gh-head-actions .gh-head-btn svg,
.gh-head-members .gh-head-btn svg {
    display: none;
}

/* Burger menu for mobile */
.gh-burger {
    background-color: var(--ao-white) !important;
}

/* Mobile menu overlay should also be black */
@media (max-width: 767px) {
    .gh-head-menu,
    .gh-head-menu.is-open,
    body .gh-head-menu {
        background: var(--ao-black) !important;
        background-color: var(--ao-black) !important;
    }
}

/* ==========================================================================
   HOMEPAGE MAIN CONTAINER
   ========================================================================== */
.ao-homepage {
    background-color: var(--ao-white);
    border-top: none !important;
    border-bottom: none !important;
    margin-top: 0 !important;
}

/* Remove any line between header and main content */
main,
.ao-homepage,
body main,
.gh-site main {
    border-top: none !important;
    border-bottom: none !important;
    margin-top: 0 !important;
    box-shadow: none !important;
}

/* Target the main wrapper */
.gh-site {
    border: none !important;
}

.gh-site > main {
    border-top: none !important;
}

/* ==========================================================================
   COMPREHENSIVE LINE REMOVAL - home-template overrides
   ========================================================================== */
body.home-template .site-main,
body.home-template .home-hero,
body.home-template .hero,
body.home-template .hero-section,
body.home-template .ao-hero,
body.home-template .ao-homepage,
body.home-template main {
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

body.home-template .site-main::before,
body.home-template .site-main::after,
body.home-template .home-hero::before,
body.home-template .home-hero::after,
body.home-template .hero::before,
body.home-template .hero::after,
body.home-template .hero-section::before,
body.home-template .hero-section::after,
body.home-template .ao-hero::before,
body.home-template .ao-hero::after,
body.home-template .ao-homepage::before,
body.home-template .ao-homepage::after,
body.home-template main::before,
body.home-template main::after {
    display: none !important;
    content: none !important;
}

/* Hide any HR elements in homepage */
body.home-template hr,
.ao-homepage hr,
.ao-hero hr {
    display: none !important;
}

/* Override any .gh-outer bottom border or separator */
.gh-outer,
body .gh-outer,
.gh-outer::after,
.gh-outer::before {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.gh-outer::after,
.gh-outer::before {
    display: none !important;
    content: none !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.ao-hero {
    padding: 56px 2rem 48px;  /* Tighter hero padding */
    background-color: var(--ao-white);
}

.ao-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.ao-hero-left {
    padding-right: 0.5rem;
}

.ao-hero-headline {
    font-family: var(--ao-font-serif);
    font-size: 48px;  /* Restored strong size */
    font-weight: 400;
    line-height: 1.08;
    color: var(--ao-black);
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.02em;
    max-width: 650px;
}

.ao-hero-subheadline {
    font-family: var(--ao-font-sans);
    font-size: 1.2rem;  /* Slightly reduced */
    line-height: 1.6;
    color: var(--ao-dark-gray);
    margin: 0 0 1rem 0;  /* Less margin */
    max-width: 580px;
}

.ao-hero-byline {
    font-family: var(--ao-font-sans);
    font-size: 1rem;
    color: var(--ao-medium-gray);
    margin: 0 0 1.5rem 0;  /* Reduced from 2rem */
    font-style: italic;
}

.ao-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ao-hero-divider {
    display: none !important;  /* Completely hidden */
}

.ao-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
    margin-top: 4px;  /* Align bio with hero text */
}

.ao-hero-headshot {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--ao-light-gray);
    flex-shrink: 0;
}

.ao-hero-headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide placeholder when no real image - show nothing rather than gray circle */
.ao-headshot-placeholder {
    display: none;
}

.ao-hero-bio {
    font-family: var(--ao-font-sans);
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.ao-hero-bio p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.ao-hero-bio p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.ao-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--ao-font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.ao-btn-primary {
    background-color: var(--ao-black);
    color: var(--ao-white);
    border-color: var(--ao-black);
}

.ao-btn-primary:hover {
    background-color: var(--ao-dark-gray);
    border-color: var(--ao-dark-gray);
    opacity: 1;
}

.ao-btn-secondary {
    background-color: var(--ao-white);
    color: var(--ao-black);
    border-color: var(--ao-black);
}

.ao-btn-secondary:hover {
    background-color: var(--ao-off-white);
    opacity: 1;
}

.ao-btn-subscribe {
    background-color: #8B1E1E;
    color: var(--ao-white);
    border-color: #8B1E1E;
}

.ao-btn-subscribe:hover {
    background-color: #6F1717;
    border-color: #6F1717;
    opacity: 1;
}

/* ==========================================================================
   FRAMEWORK SECTION
   ========================================================================== */
.ao-framework {
    padding: 48px 2rem;  /* Tighter vertical padding */
    background-color: var(--ao-off-white);
}

.ao-framework-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 32px;  /* Reduced bottom margin */
}

.ao-framework-title {
    font-family: var(--ao-font-serif);
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--ao-black);
    margin: 0 0 1rem 0;
    letter-spacing: -0.01em;
}

.ao-framework-subtitle {
    font-family: var(--ao-font-sans);
    font-size: 1.35rem;
    color: var(--ao-medium-gray);
    margin: 0;
    line-height: 1.6;
}

.ao-framework-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1060px;
    margin: 0 auto;
}

/* ==========================================================================
   FRAMEWORK CARDS
   ========================================================================== */
.ao-card {
    background: #ffffff;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.ao-card:hover {
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    border-color: #a0a0a0;
}

.ao-card-title {
    font-family: var(--ao-font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ao-black);
    margin: 0 0 0.4rem 0;
}

.ao-card-description {
    font-family: var(--ao-font-sans);
    font-size: 1.05rem;
    color: var(--ao-medium-gray);
    margin: 0;
    line-height: 1.5;
}

.ao-card-divider {
    height: 1px;
    background-color: var(--ao-light-gray);
    margin: 1rem 0;
}

.ao-card-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

.ao-card-links li {
    padding: 7px 0;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 0;
}

.ao-card-links li:last-child {
    border-bottom: none;
}

.ao-card-links a {
    font-family: var(--ao-font-sans);
    font-size: 1.15rem;
    color: var(--ao-dark-gray);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    line-height: 1.4;
}

.ao-card-links a:hover {
    color: var(--ao-black);
    opacity: 1;
}

.ao-card-links a::before {
    content: none !important;
}

.ao-card-cta {
    font-family: var(--ao-font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ao-black);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.ao-card-cta:hover {
    opacity: 0.7;
}

/* ==========================================================================
   FEATURED ESSAY SECTION
   ========================================================================== */
.ao-featured-essay {
    padding: 32px 2rem 24px;  /* Reduced: was 48px */
    background-color: var(--ao-white);
}

.ao-featured-essay-inner {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--ao-light-gray);
    border-radius: 6px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.ao-featured-essay-content {
    flex: 1;
}

.ao-featured-label {
    font-family: var(--ao-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ao-medium-gray);
    margin-bottom: 0.75rem;
    display: block;
}

.ao-featured-title {
    font-family: var(--ao-font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ao-black);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.ao-featured-description {
    font-family: var(--ao-font-sans);
    font-size: 0.95rem;
    color: var(--ao-dark-gray);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   WHITE PAPER SECTION
   ========================================================================== */
.ao-whitepaper {
    padding: 24px 2rem 36px;  /* Reduced: was 48px */
    background-color: var(--ao-off-white);
}

.ao-whitepaper-inner {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--ao-light-gray);
    border-radius: 6px;
    padding: 2.5rem;
    background-color: var(--ao-white);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ao-whitepaper-content {
    flex: 1;
}

.ao-whitepaper-label {
    font-family: var(--ao-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ao-medium-gray);
    margin-bottom: 0.75rem;
    display: block;
}

.ao-whitepaper-title {
    font-family: var(--ao-font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--ao-black);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}

.ao-whitepaper-subtitle {
    font-family: var(--ao-font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ao-dark-gray);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.ao-whitepaper-description {
    font-family: var(--ao-font-sans);
    font-size: 0.95rem;
    color: var(--ao-dark-gray);
    margin: 0;
    line-height: 1.7;
}

.ao-whitepaper-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ao-whitepaper-download {
    font-family: var(--ao-font-sans);
    font-size: 0.95rem;
    color: var(--ao-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ao-whitepaper-download:hover {
    color: var(--ao-medium-gray);
}

/* ==========================================================================
   CREDIBILITY SECTION
   ========================================================================== */
.ao-credibility {
    padding: 3rem 2rem;
    background-color: var(--ao-white);
}

.ao-credibility-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ao-credibility-line {
    flex: 1;
    height: 1px;
    background-color: var(--ao-light-gray);
}

.ao-credibility-text {
    font-family: var(--ao-font-sans);
    font-size: 0.95rem;
    color: var(--ao-dark-gray);
    text-align: center;
    margin: 0;
    line-height: 1.7;
    max-width: 600px;
    font-style: italic;
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.ao-newsletter {
    padding: 24px 2rem 48px;  /* Reduced: was 4rem/5rem */
    background-color: var(--ao-off-white);
}

.ao-newsletter-box {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--ao-white);
    border: 1px solid var(--ao-light-gray);
    border-radius: 6px;
    padding: 2.5rem;
    text-align: center;
}

.ao-newsletter-title {
    font-family: var(--ao-font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--ao-black);
    margin: 0 0 0.75rem 0;
}

.ao-newsletter-description {
    font-family: var(--ao-font-sans);
    font-size: 0.95rem;
    color: var(--ao-dark-gray);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.ao-newsletter-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ao-newsletter-input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1rem;
    font-family: var(--ao-font-sans);
    font-size: 0.9rem;
    border: 1px solid var(--ao-light-gray);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease;
}

.ao-newsletter-input:focus {
    border-color: var(--ao-medium-gray);
}

.ao-newsletter-input::placeholder {
    color: var(--ao-medium-gray);
}

.ao-newsletter-disclaimer {
    font-family: var(--ao-font-sans);
    font-size: 0.8rem;
    color: var(--ao-medium-gray);
    margin: 1rem 0 0 0;
}

.ao-newsletter-cta {
    margin-bottom: 0;
}

/* ==========================================================================
   FOOTER ADJUSTMENTS
   ========================================================================== */
.gh-foot {
    background-color: var(--ao-white);
    border-top: 1px solid var(--ao-light-gray);
}

/* Hide default subscribe section on homepage */
body.home-template .gh-subscribe {
    display: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
    .ao-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ao-hero-divider {
        display: none;
    }
    
    .ao-hero-headline {
        font-size: 2.5rem;
    }
    
    .ao-hero-right {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.5rem;
        padding-top: 2rem;
        border-top: 1px solid var(--ao-light-gray);
    }
    
    .ao-hero-headshot {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .ao-framework-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .ao-featured-essay-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .ao-credibility-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ao-credibility-line {
        width: 60px;
        height: 1px;
    }
}

@media (max-width: 600px) {
    .ao-hero {
        padding: 3rem 1.5rem 3rem;
    }
    
    .ao-hero-headline {
        font-size: 2rem;
    }
    
    .ao-hero-subheadline {
        font-size: 1rem;
    }
    
    .ao-hero-buttons {
        flex-direction: column;
    }
    
    .ao-btn {
        width: 100%;
        text-align: center;
    }
    
    .ao-hero-right {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ao-framework {
        padding: 3rem 1.5rem;
    }
    
    .ao-framework-title {
        font-size: 1.8rem;
    }
    
    .ao-card {
        padding: 1.5rem;
    }
    
    .ao-featured-essay {
        padding: 3rem 1.5rem;
    }
    
    .ao-featured-essay-inner {
        padding: 1.5rem;
    }
    
    .ao-newsletter {
        padding: 3rem 1.5rem;
    }
    
    .ao-newsletter-box {
        padding: 1.5rem;
    }
    
    .ao-newsletter-form {
        flex-direction: column;
    }
    
    .ao-newsletter-input {
        min-width: 100%;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .ao-newsletter,
    .gh-head,
    .gh-foot {
        display: none;
    }
}

/* ==========================================================================
   DESKTOP LARGE-SCREEN LINE FIX (NUCLEAR)
   Removes ALL possible lines/borders at desktop width between header and hero.
   ========================================================================== */

/* Force header to have NO bottom decoration at any width */
.gh-head,
header.gh-head,
body .gh-head,
body.home-template .gh-head,
body.is-head-stacked .gh-head {
    border-bottom: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.gh-head::after,
.gh-head::before,
header.gh-head::after,
header.gh-head::before {
    display: none !important;
    content: none !important;
    border: 0 !important;
    height: 0 !important;
    background: none !important;
}

/* Force .gh-outer wrapper to have no decorations */
.gh-outer,
div.gh-outer,
header.gh-outer,
body .gh-outer {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.gh-outer::after,
.gh-outer::before {
    display: none !important;
    content: none !important;
}

/* Force ao-hero and ao-homepage to have no top decorations */
.ao-homepage,
main.ao-homepage,
body .ao-homepage {
    border-top: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    margin-top: 0 !important;
}

.ao-homepage::before,
.ao-homepage::after {
    display: none !important;
    content: none !important;
}

.ao-hero,
section.ao-hero,
body .ao-hero {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.ao-hero::before,
.ao-hero::after {
    display: none !important;
    content: none !important;
}

/* Desktop-specific overrides */
@media (min-width: 1024px) {
    /* Extra specificity for desktop */
    body.home-template .gh-head,
    body.home-template header.gh-head.gh-outer,
    body.is-head-stacked.home-template .gh-head {
        border-bottom: 0 !important;
        box-shadow: none !important;
        outline: none !important;
    }
    
    body.home-template main.ao-homepage,
    body.home-template .ao-hero {
        border-top: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        margin-top: 0 !important;
    }
    
    /* Remove any separator between header and content */
    body.home-template .gh-head + *,
    body.home-template header + *,
    body.home-template header + main,
    body.home-template header + div {
        border-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Ensure hero padding is clean at desktop */
    .ao-hero {
        padding-top: 25px !important;
        padding-bottom: 30px !important;
    }

    .ao-hero h1,
    .ao-hero-headline {
        margin-top: 0 !important;
        transform: none !important;
        position: relative;
        z-index: 2;
    }
}

@media (min-width: 1200px) {
    body.home-template .gh-head,
    body.home-template header.gh-head {
        border-bottom: 0 !important;
        box-shadow: none !important;
    }
    
    body.home-template main.ao-homepage {
        border-top: 0 !important;
    }
}

@media (min-width: 1440px) {
    body.home-template .gh-head,
    body.home-template header.gh-head {
        border-bottom: 0 !important;
        box-shadow: none !important;
    }
    
    body.home-template main.ao-homepage {
        border-top: 0 !important;
    }
}

/* ==========================================================================
   TYPOGRAPHY ENHANCEMENT (v1.8.2)
   Improves readability without changing layout structure.
   ========================================================================== */

/* --- Homepage Hero Paragraph Text --- */
.home-template .ao-hero-subheadline,
.home-template .ao-hero p {
    font-size: 16.5px !important;
    line-height: 1.65 !important;
}

/* --- Homepage Card Body/Link Text --- */
.home-template .ao-card,
.home-template .ao-card p,
.home-template .ao-card li,
.home-template .ao-card a,
.home-template .ao-card-description,
.home-template .ao-card-links a {
    font-size: 15.5px !important;
    line-height: 1.6 !important;
}

/* --- Homepage Featured Essay & White Paper Text --- */
.home-template .ao-featured-description,
.home-template .ao-whitepaper-description {
    font-size: 15.5px !important;
    line-height: 1.65 !important;
}

/* --- Homepage Newsletter Text --- */
.home-template .ao-newsletter-description {
    font-size: 15.5px !important;
    line-height: 1.6 !important;
}

/* --- Homepage Bio Text --- */
.home-template .ao-hero-bio,
.home-template .ao-hero-bio p {
    font-size: 11px !important;
    line-height: 1.5 !important;
}

/* --- Mobile Typography (Homepage) --- */
@media (max-width: 768px) {
    .home-template .ao-card,
    .home-template .ao-card p,
    .home-template .ao-card li,
    .home-template .ao-card a,
    .home-template .ao-card-description,
    .home-template .ao-card-links a,
    .home-template .ao-featured-description,
    .home-template .ao-whitepaper-description,
    .home-template .ao-newsletter-description {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    .home-template .ao-hero-subheadline,
    .home-template .ao-hero p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
}

/* ==========================================================================
   GAP STRIP - Two Roles Section
   ========================================================================== */
.ao-gap-strip {
    max-width: 1060px;
    margin: 0 auto;
    padding: 28px 48px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ao-gap-strip-rule {
    width: 20px;
    height: 1px;
    background: #1c1c1c;
    flex-shrink: 0;
}

.ao-gap-strip-text {
    font-size: 13px;
    color: #555;
    font-style: italic;
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
}

.ao-gap-strip-text strong {
    font-style: normal;
    font-weight: 600;
    color: #2a2a2a;
}

/* ==========================================================================
   FRAMEWORK GRID - TOP ROW (3 columns)
   ========================================================================== */
.ao-framework-grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* ==========================================================================
   FRAMEWORK GRID - BOTTOM ROW (3 columns)
   ========================================================================== */
.ao-framework-grid-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1060px;
    margin: 0 auto;
}

/* ==========================================================================
   FDE CARD STYLING
   ========================================================================== */
.ao-fde-card {
    border-left: 2px solid #0f1f3d;
}

/* Responsive adjustments for grid rows */
@media (max-width: 1100px) {
    .ao-framework-grid-bottom {
        grid-template-columns: repeat(2, 1fr);
        max-width: 720px;
    }
}

@media (max-width: 900px) {
    .ao-framework-grid-top {
        grid-template-columns: repeat(2, 1fr);
    }
    .ao-framework-grid-bottom {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .ao-framework-grid-top,
    .ao-framework-grid-bottom {
        grid-template-columns: 1fr;
    }
}

/* ── RELATED RESOURCES ── */
.related-resources {
  max-width: 740px;
  margin: 48px auto 0;
  padding: 40px 0 0;
  border-top: 1px solid #e0e0e0;
}

.related-resources-inner {
  padding: 0;
}

.related-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fafaf8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.related-card:hover {
  border-color: #aaaaaa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.related-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f0f0f;
  line-height: 1.3;
}

.related-card-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  font-weight: 300;
}

.related-card-cta {
  font-size: 11px;
  font-weight: 600;
  color: #0f1f3d;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FOOTER DISCLAIMER
   ========================================================================== */
.gh-foot-disclaimer {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--ao-medium-gray, #888888);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ao-light-gray, #e5e5e5);
    line-height: 1.5;
}
