/* ==========================================================================
   acreNkey Calculator Hub & Directory — Global Stylesheet
   Master Reference: /calculators/
   WCAG AAA Certified | Cormorant Garamond + Manrope Typography | 8px Radius
   ========================================================================== */

/* --- 1. HUB SPECIFIC TOKENS & CANVAS --- */
:root {
    --hub-bg-canvas: #FAF7F2;
    --hub-navy: #141D24;
    --hub-navy-muted: rgba(20, 29, 36, 0.72);
    --hub-slate: #33414C;
    --hub-slate-muted: #5A6776;
    --hub-brass: #7d442a;
    --hub-brass-hover: #9e5535;
    --hub-brass-light: rgba(125, 68, 42, 0.08);
    --hub-border-light: #E7E0D6;
    --hub-border-soft: rgba(20, 29, 36, 0.08);
    --hub-card-bg: #FFFFFF;
    --hub-card-shadow: 0 4px 16px rgba(13, 27, 36, 0.03);
    --hub-card-hover-shadow: 0 12px 28px rgba(13, 27, 36, 0.08);
    --hub-radius: 8px;
    --hub-radius-sm: 6px;
    --hub-radius-pill: 999px;
    --hub-font-heading: 'Cormorant Garamond', Georgia, serif;
    --hub-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.calc-hub-body {
    background-color: var(--hub-bg-canvas);
    color: var(--hub-slate);
    font-family: var(--hub-font-body);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Base Container */
.ak-hub-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Mobile Navigation Hamburger Override */
.header-nav .hamburger-line {
    background-color: #FFFFFF !important;
}

/* --- 2. LUXURY EDITORIAL HERO SECTION --- */
.ak-hub-hero {
    position: relative;
    padding-top: 125px;
    padding-bottom: 3.25rem;
    background: radial-gradient(circle at 75% 30%, rgba(240, 230, 216, 0.55) 0%, transparent 60%), var(--hub-bg-canvas);
    border-bottom: 1px solid var(--hub-border-soft);
}

.ak-hub-hero-grid {
    max-width: 960px;
}

.ak-hub-hero-content {
    text-align: left;
}

.ak-hub-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--hub-slate-muted);
    margin: 0 0 1.15rem 0;
    list-style: none;
    padding: 0;
}
.ak-hub-breadcrumb a {
    color: var(--hub-slate-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.ak-hub-breadcrumb a:hover {
    color: var(--hub-brass);
}
.ak-hub-breadcrumb .sep {
    color: #CBD5E1;
    font-size: 0.75rem;
}
.ak-hub-breadcrumb li[aria-current="page"] {
    color: var(--hub-navy);
    font-weight: 500;
}

.ak-hub-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hub-brass);
    margin-bottom: 0.75rem;
    display: block;
}

.ak-hub-hero-h1 {
    font-family: var(--hub-font-heading, 'Cormorant Garamond', serif);
    font-size: 34px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--hub-navy, #141D24);
    letter-spacing: -0.015em;
    margin: 0 0 0.65rem 0;
}

@media (min-width: 1024px) {
    .ak-hub-hero-h1 {
        white-space: nowrap;
    }
}

.ak-hub-hero-sub {
    font-family: var(--hub-font-body, 'Manrope', sans-serif);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--deep-slate, #4A5568);
    max-width: 660px;
    margin: 0 0 1.5rem 0;
    font-weight: 400;
}

/* Search Box Widget */
.ak-hub-search-wrapper {
    position: relative;
    max-width: 560px;
    margin: 0 0 1.25rem 0;
}

.ak-hub-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid rgba(43, 43, 43, 0.18);
    border-radius: 8px;
    padding: 0.45rem 0.85rem 0.45rem 1.15rem;
    box-shadow: 0 2px 8px rgba(20, 29, 36, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ak-hub-search-box:hover {
    border-color: rgba(125, 68, 42, 0.4);
}

.ak-hub-search-box:focus-within {
    border-color: var(--hub-brass, #7d442a);
    box-shadow: 0 0 0 3px rgba(125, 68, 42, 0.12), 0 4px 16px rgba(20, 29, 36, 0.06);
}

.ak-hub-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hub-brass);
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.ak-hub-search-icon svg {
    width: 19px;
    height: 19px;
}

.ak-hub-search-input {
    width: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    font-family: var(--hub-font-body);
    font-size: 0.98rem;
    color: var(--hub-navy);
    padding: 0.55rem 0;
    -webkit-appearance: none;
}

.ak-hub-search-input:focus,
.ak-hub-search-input:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.ak-hub-search-input::placeholder {
    color: #8C96A5;
}

.ak-hub-search-clear {
    border: none;
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
    padding: 0.4rem;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.ak-hub-search-clear:hover {
    color: var(--hub-navy);
    background-color: var(--hub-brass-light);
}
.ak-hub-search-input:not(:placeholder-shown) + .ak-hub-search-clear {
    display: flex;
}

.ak-hub-search-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--hub-brass);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.ak-hub-search-btn svg {
    width: 18px;
    height: 18px;
}
.ak-hub-search-btn:hover {
    background: var(--hub-brass-light);
    color: var(--hub-navy);
    transform: translateX(2px);
}

/* Popular Intent Tags Row */
.ak-hub-popular-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.15rem;
}

.ak-hub-popular-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--hub-slate-muted);
}

.ak-hub-popular-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.ak-hub-pop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #FFFFFF;
    border: 1px solid rgba(125, 68, 42, 0.2);
    border-radius: 8px;
    padding: 0.34rem 0.72rem;
    font-family: var(--hub-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--deep-navy, #141D24);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(20, 29, 36, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.35;
}

.ak-hub-pop-chip .chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hub-brass, #7d442a);
}
.ak-hub-pop-chip .chip-icon svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2;
    display: block;
}

.ak-hub-pop-chip .chip-arrow {
    display: inline-block;
    font-size: 0.82rem;
    line-height: 1;
    color: var(--hub-brass, #7d442a);
    transition: transform 0.2s ease;
    margin-left: 0.05rem;
}

.ak-hub-pop-chip:hover {
    background: #FAF7F4;
    border-color: var(--hub-brass, #7d442a);
    color: var(--hub-brass, #7d442a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(125, 68, 42, 0.12);
}
.ak-hub-pop-chip:hover .chip-arrow {
    transform: translateX(2px);
}

/* Right Architectural Scene Visual */
@media (max-width: 768px) {
    .ak-hub-hero {
        padding-top: 105px;
        padding-bottom: 2.25rem;
    }
    .ak-hub-hero-h1 {
        font-size: 26px;
        line-height: 1.25;
        white-space: normal;
    }
    .ak-hub-hero-sub {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    .ak-hub-popular-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ak-hub-popular-chips::-webkit-scrollbar {
        display: none;
    }
    .ak-hub-pop-chip {
        flex-shrink: 0;
    }
}

/* --- 3. HORIZONTAL CATEGORY NAVIGATION STRIP --- */
.ak-hub-nav-section {
    position: sticky;
    top: 70px;
    z-index: 90;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hub-border-soft);
    padding: 0;
    transition: box-shadow 0.3s ease;
}

.ak-hub-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ak-hub-nav-scroll {
    display: flex;
    align-items: center;
    gap: 1.85rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.75rem 0;
    scroll-behavior: smooth;
}

.ak-hub-nav-scroll::-webkit-scrollbar {
    display: none;
}

.ak-hub-pill, .ak-hub-tab-btn {
    white-space: nowrap;
    border: none;
    background: transparent;
    color: var(--hub-slate-muted);
    font-family: var(--hub-font-body);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color 0.2s ease;
    outline: none;
    user-select: none;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ak-hub-pill:hover, .ak-hub-tab-btn:hover {
    color: var(--hub-navy);
}

.ak-hub-pill.active, .ak-hub-tab-btn.active {
    color: var(--hub-navy);
    font-weight: 600;
}

.ak-hub-pill.active::after, .ak-hub-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    right: 0;
    height: 2.5px;
    background-color: var(--hub-brass);
    border-radius: 2px;
}

.ak-hub-pill-count, .ak-hub-tab-count {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 0.35rem;
    font-weight: 500;
}

/* Category Nav Carousel Arrows */
.ak-hub-nav-arrows {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #FFFFFF;
    border: 1px solid rgba(43, 43, 43, 0.18);
    border-radius: 6px;
    padding: 3px;
    box-shadow: 0 1px 4px rgba(20, 29, 36, 0.04);
    flex-shrink: 0;
}

.ak-hub-nav-arrow-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--hub-slate-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ak-hub-nav-arrow-btn:hover {
    background: var(--hub-brass-light);
    color: var(--hub-brass);
}

.ak-hub-nav-arrow-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

/* Search Results Meta Bar */
.ak-hub-search-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--hub-border-soft);
    font-size: 0.88rem;
    color: var(--hub-navy-muted);
}

.ak-hub-count-badge {
    font-weight: 600;
    color: var(--hub-brass);
    background: var(--hub-brass-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(125, 68, 42, 0.15);
}

/* --- 4. FEATURED PROPERTY DECISION TOOLS SECTION --- */
.ak-hub-featured-section {
    margin-bottom: 3.75rem;
    padding-top: 1.25rem;
}

.ak-hub-featured-grid {
    display: grid;
    grid-template-columns: 230px repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.ak-hub-featured-header-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 0.5rem;
}

.ak-hub-featured-h2 {
    font-family: var(--hub-font-heading);
    font-size: clamp(1.85rem, 2.2vw, 2.25rem);
    line-height: 1.15;
    font-weight: 400;
    color: var(--hub-navy);
    margin: 0;
    letter-spacing: -0.01em;
}

@media (max-width: 1100px) {
    .ak-hub-featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ak-hub-featured-header-col {
        grid-column: span 3;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .ak-hub-featured-grid {
        grid-template-columns: 1fr;
    }
    .ak-hub-featured-header-col {
        grid-column: span 1;
    }
}

.ak-featured-tool-card {
    background: #FFFFFF;
    border: 1px solid var(--hub-border-light);
    border-radius: var(--hub-radius);
    padding: 1.85rem 1.65rem 1.65rem 1.65rem;
    box-shadow: var(--hub-card-shadow);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
}

.ak-featured-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hub-card-hover-shadow);
    border-color: rgba(125, 68, 42, 0.35);
}

.ak-featured-tool-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F4EDE5;
    color: var(--hub-brass);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ak-featured-tool-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.ak-featured-tool-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ak-featured-tool-title {
    font-family: var(--hub-font-heading);
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 500;
    color: var(--hub-navy);
    margin: 0 0 0.45rem 0;
    transition: color 0.2s ease;
}

.ak-featured-tool-card:hover .ak-featured-tool-title {
    color: var(--hub-brass);
}

.ak-featured-tool-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--hub-slate-muted);
    margin: 0 0 1.15rem 0;
}

.ak-featured-tool-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hub-brass);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
}

.ak-featured-tool-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.ak-featured-tool-card:hover .ak-featured-tool-link svg {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .ak-hub-featured-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ak-hub-featured-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 5. CALCULATOR CARDS GRID & SECTIONS --- */
.ak-hub-main-content {
    padding: 3rem 0 5rem 0;
}

.ak-hub-section {
    margin-bottom: 4rem;
}

.ak-hub-section-header {
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ak-hub-section-h2 {
    font-family: var(--hub-font-heading);
    font-size: 28px;
    color: var(--hub-navy);
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.ak-hub-section-desc {
    font-family: var(--hub-font-body);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--deep-slate, #4A5568);
    margin: 0;
    font-weight: 400;
}

.ak-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .ak-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ak-hub-hero-h1 {
        font-size: 25px !important;
        line-height: 1.25 !important;
        word-break: break-word;
    }
    .ak-hub-hero-sub {
        font-size: 0.84rem !important;
        line-height: 1.48 !important;
        margin-bottom: 1rem !important;
    }
    .ak-hub-grid {
        grid-template-columns: 1fr;
    }
    .ak-hub-search-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        text-align: center;
        padding: 0 0.5rem;
    }
    .ak-hub-cta-section {
        padding: 2.75rem 1.25rem;
    }
}

/* --- 5. CARD DESIGN (100% matched to down-payment-calculator cards) --- */
.ak-calc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1.5px solid rgba(43, 43, 43, 0.18);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(20, 29, 36, 0.03);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
    height: 100%;
}

.ak-calc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(13, 27, 36, 0.08);
    border-color: var(--hub-brass, #7d442a);
}

.ak-calc-card-header-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ak-calc-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(43, 43, 43, 0.08);
    color: var(--hub-brass, #7d442a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ak-calc-card:hover .ak-calc-card-icon {
    background: #EFE8E1;
    transform: scale(1.04);
}

.ak-calc-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    display: block;
}

.ak-calc-card-title {
    font-family: var(--hub-font-heading, 'Cormorant Garamond', serif);
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 500;
    color: var(--hub-navy, #141D24);
    margin: 0;
    transition: color 0.2s ease;
}

.ak-calc-card:hover .ak-calc-card-title {
    color: var(--hub-brass, #7d442a);
}

.ak-calc-card-desc {
    font-size: 0.86rem;
    line-height: 1.52;
    color: var(--deep-slate, #4A5568);
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

.ak-calc-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hub-brass, #7d442a);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease, transform 0.2s ease;
    margin-top: auto;
}

.ak-calc-card:hover .ak-calc-card-link {
    color: #9e5535;
    transform: translateX(2px);
}

/* Featured Card subtle accent */
.ak-calc-card.featured-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 100%);
    border: 1.5px solid rgba(125, 68, 42, 0.3);
    box-shadow: 0 3px 12px rgba(125, 68, 42, 0.05);
}

.ak-calc-card.featured-card:hover {
    border-color: var(--hub-brass, #7d442a);
    box-shadow: 0 8px 24px rgba(125, 68, 42, 0.12);
}

/* --- 6. NO RESULTS EMPTY STATE --- */
.ak-hub-empty-state {
    display: none;
    text-align: center;
    padding: 4rem 1.5rem;
    background: #FFFFFF;
    border: 1px dashed var(--hub-border-light);
    border-radius: var(--hub-radius);
    margin: 2rem 0;
}

.ak-hub-empty-state.active {
    display: block;
}

.ak-hub-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hub-brass-light);
    color: var(--hub-brass);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.ak-hub-empty-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.ak-hub-empty-h3 {
    font-family: var(--hub-font-heading);
    font-size: 1.8rem;
    color: var(--hub-navy);
    font-weight: 400;
    margin: 0 0 0.5rem 0;
}

.ak-hub-empty-desc {
    font-size: 0.95rem;
    color: var(--hub-slate);
    max-width: 480px;
    margin: 0 auto 1.5rem auto;
}

.ak-hub-empty-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ak-hub-empty-tag-btn {
    border: 1px solid var(--hub-border-light);
    background: var(--hub-bg-canvas);
    color: var(--hub-navy);
    font-family: var(--hub-font-body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ak-hub-empty-tag-btn:hover {
    border-color: var(--hub-brass);
    color: var(--hub-brass);
    background: #FFFFFF;
}

/* --- 6. FLAGSHIP BENTO GRID & EDITORIAL INTERSTITIAL --- */
.ak-hub-bento-section {
    margin-bottom: 4rem;
}

.ak-hub-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.ak-bento-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--hub-border-light);
    border-radius: var(--hub-radius);
    padding: 2rem;
    box-shadow: var(--hub-card-shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
}

.ak-bento-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hub-card-hover-shadow);
    border-color: rgba(125, 68, 42, 0.4);
}

.ak-bento-primary {
    grid-column: span 7;
    background: linear-gradient(145deg, #FFFFFF 0%, #FAF6F2 100%);
    border-color: rgba(125, 68, 42, 0.25);
}

.ak-bento-secondary {
    grid-column: span 5;
    background: #FFFFFF;
}

.ak-bento-tertiary {
    grid-column: span 6;
    background: #FFFFFF;
}

.ak-bento-quaternary {
    grid-column: span 6;
    background: #FFFFFF;
}

@media (max-width: 991px) {
    .ak-bento-primary, .ak-bento-secondary, .ak-bento-tertiary, .ak-bento-quaternary {
        grid-column: span 12;
    }
}

.ak-bento-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hub-brass);
    background: var(--hub-brass-light);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 0.85rem;
}

.ak-bento-title {
    font-family: var(--hub-font-heading);
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    line-height: 1.2;
    font-weight: 500;
    color: var(--hub-navy);
    margin: 0 0 0.65rem 0;
    transition: color 0.2s ease;
}

.ak-bento-card:hover .ak-bento-title {
    color: var(--hub-brass);
}

.ak-bento-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--hub-slate);
    margin: 0 0 1.25rem 0;
}

.ak-bento-preview-box {
    background: #FFFFFF;
    border: 1px dashed var(--hub-border-light);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--hub-slate);
}

.ak-bento-preview-box strong {
    color: var(--hub-navy);
    font-weight: 600;
}

.ak-bento-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--hub-border-soft);
}

.ak-bento-cta {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hub-brass);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* In-Stream Advisory Breakout */
.ak-hub-advisory-breakout {
    margin: 4.5rem 0;
    background: linear-gradient(135deg, #141D24 0%, #1c2730 100%);
    border-radius: var(--hub-radius);
    padding: 2.75rem 3rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    box-shadow: 0 12px 36px rgba(20, 29, 36, 0.16);
    position: relative;
    overflow: hidden;
}

.ak-hub-advisory-breakout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #be7555 0%, #7d442a 100%);
}

.ak-hub-advisory-breakout-content {
    max-width: 680px;
}

.ak-hub-advisory-breakout-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #be7555;
    margin-bottom: 0.5rem;
    display: block;
}

.ak-hub-advisory-breakout-h3 {
    font-family: var(--hub-font-heading);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 400;
    line-height: 1.25;
    color: #FFFFFF;
    margin: 0 0 0.75rem 0;
}

.ak-hub-advisory-breakout-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.ak-hub-advisory-breakout-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .ak-hub-advisory-breakout {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        gap: 1.75rem;
    }
}

/* --- 7. ADVISORY CTA SECTION --- */
.ak-hub-cta-section {
    margin-top: 5rem;
    background: var(--hub-navy);
    color: #FFFFFF;
    border-radius: var(--hub-radius);
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(24, 42, 61, 0.15);
}

.ak-hub-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(140, 103, 52, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.ak-hub-cta-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.ak-hub-cta-h2 {
    font-family: var(--hub-font-heading);
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.2;
    font-weight: 400;
    color: #FBF6F3;
    margin: 0 0 1rem 0;
}

.ak-hub-cta-desc {
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(251, 246, 243, 0.85);
    margin: 0 0 2rem 0;
}

.ak-hub-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 1.5rem 0 1.75rem;
    gap: 12px;
    border-radius: 8px;
    font-family: var(--hub-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #be7555 0%, #9f5334 100%);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(125, 68, 42, 0.25);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease;
}

.ak-hub-cta-btn:hover {
    background: linear-gradient(135deg, #c78162 0%, #a85a3a 100%);
    box-shadow: 0 10px 25px rgba(125, 68, 42, 0.4);
    transform: translateY(-2px);
}

/* Accessible focus ring */
a:focus-visible, button:focus-visible, input:not(.ak-hub-search-input):focus-visible {
    outline: 2px solid var(--hub-brass);
    outline-offset: 2px;
}
