:root {
    --bg: #F7F6F1;
    --surface: #FFFFFF;
    --surface-alt: #F0EDE4;
    --text: #203447;
    --text-muted: #506375;
    --border: rgba(32, 52, 71, 0.12);
    --primary: #203447;
    --primary-hover: #172635;
    --on-primary: #F7F6F1;
    --primary-text: #203447;
    --accent: #A77C43;
    --on-accent: #FFFFFF;
    --accent-text: #A77C43;
    --dark-band: #203447;
    --on-dark: #F7F6F1;
    --on-dark-muted: #D6DDD8;
    --brand-band-bg: #203447;
    --brand-btn-bg: #A77C43;
    --brand-btn-text: #FFFFFF;
    --horizon-line: linear-gradient(90deg, rgba(247, 246, 241, 0) 0%, rgba(167, 124, 67, 0.6) 50%, rgba(247, 246, 241, 0) 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.tva-title, .ls-page-title {
    font-family: 'Libre Baskerville', serif;
}

.text-muted {
    color: var(--text-muted) !important;
}

.tva-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(32, 52, 71, 0.2);
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.tva-btn:hover {
    background: var(--primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(32, 52, 71, 0.3), 0 0 12px rgba(167, 124, 67, 0.4);
}

.tva-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--primary-text);
    color: var(--primary-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.tva-btn-alt:hover {
    background: rgba(32, 52, 71, 0.05);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(167, 124, 67, 0.2);
}

.tva-card {
    --tva-card-pad: clamp(1.25rem, 2.5vw, 2.25rem);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: var(--tva-card-pad);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(32, 52, 71, 0.04);
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tva-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 124, 67, 0.5);
    box-shadow: 0 16px 36px -8px rgba(167, 124, 67, 0.25), 0 0 14px rgba(167, 124, 67, 0.15);
}

.tva-card:not([class*='row']):not([class*='grid']):not([class*='horizontal'])>.tva-media:first-child {
    margin: calc(-1 * var(--tva-card-pad)) calc(-1 * var(--tva-card-pad)) var(--tva-card-pad);
    border-radius: 0;
    border: 0;
}

.tva-media {
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.tva-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tva-eyebrow {
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: block;
}

.tva-title {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.tva-title::before,
.tva-title::after {
    content: '';
    flex: 1;
    height: 1px;
}

.tva-title::before {
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
    margin-right: 1.5rem;
}

.tva-title::after {
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
    margin-left: 1.5rem;
}

.tva-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid rgba(167, 124, 67, 0.3);
    background: rgba(167, 124, 67, 0.08);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tva-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 0 16px rgba(167, 124, 67, 0.25);
    flex-shrink: 0;
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tva-icon i {
    background: linear-gradient(135deg, #ECC48C 0%, #A77C43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tva-icon:hover {
    transform: rotate(3deg) scale(1.05);
}

.tva-section {
    background: var(--bg);
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    position: relative;
}

.tva-section-alt {
    background: var(--surface-alt);
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    position: relative;
}

.tva-section-dark {
    background: var(--dark-band);
    color: var(--on-dark);
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    position: relative;
}

.tva-section-brand {
    background: var(--brand-band-bg);
    color: var(--on-primary);
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    position: relative;
}

.tva-section-brand .tva-btn {
    background: var(--brand-btn-bg);
    color: var(--brand-btn-text);
}

.tva-section-brand .tva-btn-alt {
    border-color: var(--on-primary);
    color: var(--on-primary);
}

.tva-section-dark h1,
.tva-section-dark h2,
.tva-section-dark h3,
.tva-section-dark p,
.tva-section-dark a,
.tva-on-dark h1,
.tva-on-dark h2,
.tva-on-dark h3,
.tva-on-dark p,
.tva-on-dark a {
    color: var(--on-dark);
}

.tva-section-dark .text-muted,
.tva-on-dark .text-muted {
    color: var(--on-dark-muted) !important;
}

.tva-section-dark .tva-title,
.tva-on-dark .tva-title {
    color: var(--on-dark);
}

.tva-section-dark .tva-eyebrow,
.tva-on-dark .tva-eyebrow {
    color: var(--accent);
}

.tva-section-dark .tva-btn-alt,
.tva-on-dark .tva-btn-alt {
    border-color: var(--on-dark);
    color: var(--on-dark);
}

.tva-section-dark .tva-card,
.tva-on-dark .tva-card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.tva-section-dark .tva-card h1,
.tva-section-dark .tva-card h2,
.tva-section-dark .tva-card h3,
.tva-section-dark .tva-card p,
.tva-section-dark .tva-card a,
.tva-on-dark .tva-card h1,
.tva-on-dark .tva-card h2,
.tva-on-dark .tva-card h3,
.tva-on-dark .tva-card p,
.tva-on-dark .tva-card a {
    color: var(--text);
}

.tva-section-dark .tva-card .text-muted,
.tva-on-dark .tva-card .text-muted {
    color: var(--text-muted) !important;
}

.tva-card:not([class*="row"]):not([class*="grid"]):not([class*="horizontal"]):not([class*="list"]):not([class*="side"]):not([class*="split"]):not([class*="wide"]):not([class*="inline"])>.tva-media:first-child {
    width: calc(100% + 2 * var(--tva-card-pad, 0px));
    max-width: none
}


/* ===== header ===== */
.ledger-header .ledger-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #A77C43, #203447);
    box-shadow: 0 2px 8px rgba(167, 124, 67, 0.6);
    transition: width 300ms ease;
}

.ledger-header .ledger-nav-link:hover::after {
    width: 100%;
}

/* ===== understanding_the_structure_of_bookkeeping ===== */
.ls-hero-block {
    background-color: var(--bg, #F7F6F1);
    overflow-wrap: anywhere;
}

.ls-hero-block .ls-hero-highlight {
    color: #A77C43;
    position: relative;
    display: inline-block;
}

.ls-hero-block .ls-featured-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(167, 124, 67, 0.3);
    box-shadow: 0 14px 34px -6px rgba(167, 124, 67, 0.18), 0 0 16px rgba(167, 124, 67, 0.08);
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ls-hero-block .ls-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px -6px rgba(167, 124, 67, 0.24), 0 0 18px rgba(167, 124, 67, 0.12);
}

.ls-hero-block .tva-badge {
    border-radius: 9999px;
    border: 1px solid rgba(167, 124, 67, 0.3);
    background: rgba(167, 124, 67, 0.08);
    color: #A77C43;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ls-hero-block .tva-btn {
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    background: #203447;
    color: #F7F6F1;
    box-shadow: 0 4px 14px rgba(32, 52, 71, 0.2);
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}

.ls-hero-block .tva-btn:hover {
    background: #172635;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(32, 52, 71, 0.3), 0 0 12px rgba(167, 124, 67, 0.3);
}

.ls-hero-block .tva-btn-alt {
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    background: transparent;
    border: 1.5px solid #203447;
    color: #203447;
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}

.ls-hero-block .tva-btn-alt:hover {
    background: rgba(32, 52, 71, 0.05);
    border-color: #A77C43;
    color: #A77C43;
    box-shadow: 0 0 12px rgba(167, 124, 67, 0.2);
}

@media (max-width: 767px) {

    .ls-hero-block .tva-btn,
    .ls-hero-block .tva-btn-alt {
        width: 100%;
    }
}

/* ===== bookkeeping_foundations ===== */
.ledger-foundations {
    font-family: 'Inter', sans-serif;
    background-color: #F7F6F1;
}

.ledger-foundations__card--featured {
    box-shadow: 0 14px 34px -6px rgba(167, 124, 67, 0.22), 0 0 16px rgba(167, 124, 67, 0.12);
}

.ledger-foundations__card:not(.ledger-foundations__card--featured) {
    box-shadow: 0 2px 8px rgba(32, 52, 71, 0.04);
}

.ledger-foundations__card:hover {
    box-shadow: 0 16px 36px -8px rgba(167, 124, 67, 0.25), 0 0 14px rgba(167, 124, 67, 0.15);
}

.ledger-foundations__card:hover .ledger-foundations__icon-ring {
    transform: rotate(3deg) scale(1.03);
    transition: transform 0.3s ease;
}

.ledger-foundations__cta .tva-btn:hover {
    box-shadow: 0 8px 24px rgba(32, 52, 71, 0.3), 0 0 12px rgba(167, 124, 67, 0.4);
}

@media (max-width: 767px) {
    .ledger-foundations__grid {
        grid-template-columns: 1fr;
    }
}

/* ===== account_relationships ===== */
.account-relationships-section .tva-tab-pill {
    background: #FFFFFF;
    color: #506375;
    border: 1px solid rgba(32, 52, 71, 0.14);
    cursor: pointer;
}

.account-relationships-section .tva-tab-pill:hover {
    border-color: #A77C43;
    color: #203447;
    box-shadow: 0 0 12px rgba(167, 124, 67, 0.2);
}

.account-relationships-section .tva-tab-pill.active {
    background: #203447;
    color: #F7F6F1;
    border-color: #203447;
    box-shadow: 0 4px 14px rgba(32, 52, 71, 0.25), 0 0 12px rgba(167, 124, 67, 0.35);
}

@media (max-width: 767px) {
    .account-relationships-section .tva-title {
        hyphens: auto;
    }
}

/* ===== featured_ledger_example ===== */
.ledger-example-block {
    position: relative;
    background-color: #F7F6F1;
}

.ledger-example-block .ledger-horizon-line {
    height: 1px;
    flex: 1;
}

.ledger-example-block .ledger-line-left {
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.ledger-example-block .ledger-line-right {
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.ledger-example-block .ledger-glow-orb {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ledger-example-block .ledger-glow-orb-top {
    top: -80px;
    left: -80px;
    background: radial-gradient(circle, rgba(167, 124, 67, 0.12) 0%, transparent 70%);
}

.ledger-example-block .ledger-glow-orb-bottom {
    bottom: -60px;
    right: -60px;
    background: radial-gradient(circle, rgba(32, 52, 71, 0.08) 0%, transparent 70%);
}

.ledger-example-block .ledger-pill-tab {
    border: 1px solid rgba(32, 52, 71, 0.15);
    background: #FFFFFF;
    color: #203447;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.ledger-example-block .ledger-pill-tab:hover {
    border-color: #A77C43;
    box-shadow: 0 4px 12px rgba(167, 124, 67, 0.15);
}

.ledger-example-block .ledger-pill-tab.active {
    background: #203447;
    color: #F7F6F1;
    border-color: #203447;
    box-shadow: 0 4px 16px rgba(32, 52, 71, 0.22);
}

.ledger-example-block .ledger-pill-tab.active i {
    color: #ECC48C;
}

.ledger-example-block .ledger-icon-ring {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(167, 124, 67, 0.45) 0%, rgba(32, 52, 71, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ledger-example-block .ledger-icon-square {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #203447;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ledger-example-block .ledger-chip-cat {
    display: inline-block;
    background: rgba(32, 52, 71, 0.06);
    color: #506375;
    font-size: 11px;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.ledger-example-block .ledger-featured-card {
    box-shadow: 0 12px 34px -8px rgba(167, 124, 67, 0.2), 0 0 16px rgba(167, 124, 67, 0.08);
}

.ledger-example-block .ledger-mini-box {
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.ledger-example-block .ledger-mini-box:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 124, 67, 0.35);
}

@media (max-width: 767px) {
    .ledger-example-block .tva-ledger-table thead {
        display: none;
    }

    .ledger-example-block .tva-ledger-table,
    .ledger-example-block .tva-ledger-table tbody,
    .ledger-example-block .tva-ledger-table tr,
    .ledger-example-block .tva-ledger-table td {
        display: block;
        width: 100%;
    }

    .ledger-example-block .tva-ledger-table tr {
        margin-bottom: 0.75rem;
        border: 1px solid rgba(32, 52, 71, 0.1);
        border-radius: 12px;
        padding: 0.75rem;
        background: #FFFFFF;
    }

    .ledger-example-block .tva-ledger-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0.2rem;
        border-bottom: 1px dashed rgba(32, 52, 71, 0.08);
        font-size: 13px;
    }

    .ledger-example-block .tva-ledger-table td:last-child {
        border-bottom: none;
    }

    .ledger-example-block .tva-ledger-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #506375;
        margin-right: 0.5rem;
        font-size: 12px;
    }

    .ledger-example-block .tva-ledger-table tfoot tr {
        background: #FAF8F5;
        border: 1px solid rgba(167, 124, 67, 0.3);
    }
}

/* ===== transaction_classification ===== */
.ls-tx-classifier {
    font-family: 'Inter', sans-serif;
    position: relative;
    background-color: #F0EDE4;
}

.ls-glow-orb {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ls-glow-orb-top {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(167, 124, 67, 0.12) 0%, transparent 70%);
}

.ls-glow-orb-bottom {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(32, 52, 71, 0.08) 0%, transparent 70%);
}

.ls-title-divider .ls-line-left {
    height: 1px;
    flex: 1;
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.6) 0%, rgba(240, 237, 228, 0) 100%);
}

.ls-title-divider .ls-line-right {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.6) 0%, rgba(240, 237, 228, 0) 100%);
}

.ls-filter-btn {
    border: 1px solid rgba(32, 52, 71, 0.15);
    background-color: #FFFFFF;
    color: #506375;
}

.ls-filter-btn:hover {
    border-color: #A77C43;
    color: #203447;
}

.ls-filter-btn.active {
    background-color: #203447;
    border-color: #203447;
    color: #F7F6F1;
    box-shadow: 0 4px 12px rgba(32, 52, 71, 0.18);
}

.ls-icon-ring {
    background: linear-gradient(135deg, rgba(167, 124, 67, 0.6) 0%, rgba(32, 52, 71, 0.25) 100%);
    box-shadow: 0 0 12px rgba(167, 124, 67, 0.2);
}

.ls-card {
    box-shadow: 0 2px 8px rgba(32, 52, 71, 0.04);
}

.ls-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 124, 67, 0.5);
    box-shadow: 0 16px 36px -8px rgba(167, 124, 67, 0.22), 0 0 14px rgba(167, 124, 67, 0.12);
}

.ls-featured-banner {
    box-shadow: 0 14px 34px -6px rgba(167, 124, 67, 0.2), 0 0 16px rgba(167, 124, 67, 0.1);
}

.tva-eyebrow {
    background-color: rgba(167, 124, 67, 0.12);
    color: #A77C43;
    border: 1px solid rgba(167, 124, 67, 0.3);
}

.tva-badge {
    background-color: rgba(167, 124, 67, 0.1);
    color: #A77C43;
    border: 1px solid rgba(167, 124, 67, 0.3);
}

@media (max-width: 767px) {
    .ls-tx-classifier article {
        width: 100%;
    }
}

/* ===== gnucash_learning_notes ===== */
.gnucash-notes-section {
    position: relative;
    background-color: #F7F6F1;
    font-family: 'Inter', sans-serif;
}

.gnucash-notes-section .gnucash-notes-orb {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(50px);
}

.gnucash-notes-section .gnucash-notes-orb-top {
    top: -60px;
    right: -40px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(167, 124, 67, 0.14) 0%, rgba(247, 246, 241, 0) 70%);
}

.gnucash-notes-section .gnucash-notes-orb-bottom {
    bottom: -60px;
    left: -40px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(32, 52, 71, 0.08) 0%, rgba(247, 246, 241, 0) 70%);
}

.gnucash-notes-section .gnucash-title-row {
    width: 100%;
}

.gnucash-notes-section .gnucash-title-line {
    height: 1px;
    flex: 1;
    max-width: 140px;
}

.gnucash-notes-section .gnucash-title-line-left {
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.gnucash-notes-section .gnucash-title-line-right {
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.gnucash-notes-section .gnucash-filter-btn {
    border-radius: 9999px;
    padding: 0.5rem 1.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(32, 52, 71, 0.15);
    background: #FFFFFF;
    color: #203447;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gnucash-notes-section .gnucash-filter-btn:hover {
    border-color: #A77C43;
    color: #A77C43;
    transform: translateY(-1px);
}

.gnucash-notes-section .gnucash-filter-btn.is-active {
    background: #203447;
    color: #F7F6F1;
    border-color: #203447;
    box-shadow: 0 4px 12px rgba(32, 52, 71, 0.18);
}

.gnucash-notes-section .gnucash-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gnucash-notes-section .gnucash-icon-halo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(167, 124, 67, 0.45) 0%, rgba(32, 52, 71, 0.15) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(167, 124, 67, 0.25);
}

.gnucash-notes-section .tva-icon {
    width: 44px;
    height: 44px;
    background: #203447;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.gnucash-notes-section .gnucash-banner-box {
    background: linear-gradient(135deg, #FFFFFF 0%, #FCFBF9 100%);
    box-shadow: 0 12px 36px -8px rgba(167, 124, 67, 0.18);
}

.gnucash-notes-section .js-note-item {
    transition: transform 300ms ease, box-shadow 300ms ease, opacity 300ms ease;
}

.gnucash-notes-section .js-note-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -8px rgba(167, 124, 67, 0.22), 0 0 14px rgba(167, 124, 67, 0.12);
}

@media (max-width: 767px) {
    .gnucash-notes-section .gnucash-banner-box {
        text-align: center;
    }
}

/* ===== latest_articles ===== */
.lsj-latest-articles {
    position: relative;
    overflow: hidden;
}

.lsj-latest-articles .lsj-title-container {
    width: 100%;
}

.lsj-latest-articles .lsj-title-line {
    height: 1px;
    flex: 1;
}

.lsj-latest-articles .lsj-line-left {
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.lsj-latest-articles .lsj-line-right {
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.lsj-latest-articles .lsj-heading {
    overflow-wrap: anywhere;
}

.lsj-latest-articles .lsj-featured-card {
    background: #FFFFFF;
    border: 1px solid rgba(167, 124, 67, 0.35);
    border-radius: 24px;
    box-shadow: 0 14px 34px -6px rgba(167, 124, 67, 0.22), 0 0 16px rgba(167, 124, 67, 0.12);
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lsj-latest-articles .lsj-featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 124, 67, 0.6);
    box-shadow: 0 16px 36px -8px rgba(167, 124, 67, 0.28), 0 0 20px rgba(167, 124, 67, 0.18);
}

.lsj-latest-articles .lsj-card-media {
    border-top-left-radius: 23px;
    border-top-right-radius: 23px;
}

.lsj-latest-articles .lsj-card-title {
    overflow-wrap: anywhere;
}

.lsj-latest-articles .lsj-icon-ring {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(167, 124, 67, 0.4) 0%, rgba(32, 52, 71, 0.2) 100%);
    padding: 2px;
    flex-shrink: 0;
}

.lsj-latest-articles .lsj-icon-dark {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: #203447;
}

.lsj-latest-articles .lsj-icon-glyph {
    font-size: 16px;
    background: linear-gradient(135deg, #ECC48C 0%, #A77C43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 767px) {
    .lsj-latest-articles .lsj-title-container {
        flex-direction: row;
    }

    .lsj-latest-articles .lsj-card-content {
        padding: 0;
    }
}

/* ===== editorial_approach ===== */
.editorial-block {
    position: relative;
    background-color: #F7F6F1;
    font-family: 'Inter', sans-serif;
}

.editorial-block .editorial-ambient-orb {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.editorial-block .editorial-orb-top {
    top: -60px;
    left: -80px;
    background: radial-gradient(circle, rgba(167, 124, 67, 0.12) 0%, transparent 70%);
}

.editorial-block .editorial-orb-bottom {
    bottom: -60px;
    right: -80px;
    background: radial-gradient(circle, rgba(32, 52, 71, 0.08) 0%, transparent 70%);
}

.editorial-block .editorial-heading-line {
    height: 1px;
    flex: 1;
}

.editorial-block .editorial-line-left {
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.editorial-block .editorial-line-right {
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.editorial-block .editorial-icon-ring {
    padding: 3px;
    background: linear-gradient(135deg, rgba(167, 124, 67, 0.5) 0%, rgba(32, 52, 71, 0.2) 100%);
}

.editorial-block .editorial-card {
    min-height: 100%;
    box-shadow: 0 2px 8px rgba(32, 52, 71, 0.04);
}

.editorial-block .editorial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 124, 67, 0.5);
    box-shadow: 0 16px 36px -8px rgba(167, 124, 67, 0.25), 0 0 14px rgba(167, 124, 67, 0.15);
}

.editorial-block .editorial-featured-box {
    box-shadow: 0 14px 34px -6px rgba(167, 124, 67, 0.18), 0 0 16px rgba(167, 124, 67, 0.08);
}

@media (max-width: 767px) {
    .editorial-block .grid {
        grid-template-columns: 1fr;
    }

    .editorial-block .editorial-heading-row {
        flex-direction: row;
    }

    .editorial-block .editorial-featured-box {
        text-align: left;
    }
}

/* ===== request_a_custom_guide ===== */
.c-custom-guide {
    font-family: 'Inter', sans-serif;
}

.c-custom-guide__glow-orb {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.c-custom-guide__glow-orb--top {
    top: -80px;
    left: -80px;
    background: radial-gradient(circle, rgba(167, 124, 67, 0.08) 0%, transparent 70%);
}

.c-custom-guide__glow-orb--bottom {
    bottom: -80px;
    right: -80px;
    background: radial-gradient(circle, rgba(32, 52, 71, 0.06) 0%, transparent 70%);
}

.c-custom-guide__fading-line {
    height: 1px;
    flex: 1;
}

.c-custom-guide__fading-line--left {
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.c-custom-guide__fading-line--right {
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.c-custom-guide__card {
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid rgba(32, 52, 71, 0.1);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 2px 8px rgba(32, 52, 71, 0.04);
}

.c-custom-guide__card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 124, 67, 0.5);
    box-shadow: 0 16px 36px -8px rgba(167, 124, 67, 0.25), 0 0 14px rgba(167, 124, 67, 0.15);
}

.c-custom-guide__card--featured {
    border: 1px solid rgba(167, 124, 67, 0.4);
    box-shadow: 0 14px 34px -6px rgba(167, 124, 67, 0.22), 0 0 16px rgba(167, 124, 67, 0.12);
}

.c-custom-guide__icon-ring {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(167, 124, 67, 0.8) 0%, rgba(32, 52, 71, 0.25) 100%);
    box-shadow: 0 0 14px rgba(167, 124, 67, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.c-custom-guide__icon-box {
    width: 44px;
    height: 44px;
    background: #203447;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-custom-guide__glyph {
    font-size: 18px;
    background: linear-gradient(135deg, #ECC48C 0%, #A77C43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.c-custom-guide__disclaimer-box {
    background: rgba(167, 124, 67, 0.06);
    border: 1px solid rgba(167, 124, 67, 0.18);
}

.c-custom-guide__btn-primary {
    background: #203447;
    color: #F7F6F1;
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(32, 52, 71, 0.2);
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 300ms ease, box-shadow 300ms ease;
}

.c-custom-guide__btn-primary:hover {
    transform: translateY(-2px);
    background: #172635;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(32, 52, 71, 0.3), 0 0 12px rgba(167, 124, 67, 0.4);
}

.c-custom-guide__btn-secondary {
    background: transparent;
    border: 1.5px solid #203447;
    color: #203447;
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 300ms ease, border-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

.c-custom-guide__btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(32, 52, 71, 0.05);
    border-color: #A77C43;
    color: #A77C43;
    box-shadow: 0 0 12px rgba(167, 124, 67, 0.2);
}

.c-custom-guide__horizon-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, rgba(247, 246, 241, 0) 0%, rgba(167, 124, 67, 0.6) 50%, rgba(247, 246, 241, 0) 100%);
}

@media (max-width: 767px) {
    .c-custom-guide__card-grid {
        grid-template-columns: 1fr;
    }

    .c-custom-guide__title {
        hyphens: auto;
        overflow-wrap: anywhere;
    }

    .c-custom-guide__step-title {
        hyphens: auto;
        overflow-wrap: anywhere;
    }
}

/* ===== interactive_ledger_tour ===== */
.ledger-tour-block {
    position: relative;
    background-color: var(--background-page, #F7F6F1);
    font-family: 'Inter', sans-serif;
}

.ledger-tour-block .ledger-tour-ambient-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(70px);
    opacity: 0.55;
}

.ledger-tour-block .ledger-tour-ambient-orb-1 {
    width: 340px;
    height: 340px;
    top: -60px;
    left: -80px;
    background: radial-gradient(circle, rgba(167, 124, 67, 0.12) 0%, transparent 70%);
}

.ledger-tour-block .ledger-tour-ambient-orb-2 {
    width: 300px;
    height: 300px;
    bottom: -40px;
    right: -60px;
    background: radial-gradient(circle, rgba(32, 52, 71, 0.08) 0%, transparent 70%);
}

.ledger-tour-block .ledger-tour-line-left {
    height: 1px;
    flex: 1;
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.ledger-tour-block .ledger-tour-line-right {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.ledger-tour-block .ledger-tour-featured-shadow {
    box-shadow: 0 14px 34px -6px rgba(167, 124, 67, 0.18), 0 0 16px rgba(167, 124, 67, 0.08);
}

.ledger-tour-block .ledger-tour-icon-ring {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    background: linear-gradient(135deg, rgba(167, 124, 67, 0.45) 0%, rgba(32, 52, 71, 0.15) 100%);
}

.ledger-tour-block .ledger-tour-pill-tab {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(32, 52, 71, 0.12);
    background-color: #FFFFFF;
    color: #506375;
    cursor: pointer;
    transition: all 250ms ease;
}

.ledger-tour-block .ledger-tour-pill-tab:hover {
    border-color: rgba(167, 124, 67, 0.5);
    color: #203447;
    transform: translateY(-1px);
}

.ledger-tour-block .ledger-tour-pill-tab.active-scenario {
    background-color: #203447;
    color: #F7F6F1;
    border-color: #203447;
    box-shadow: 0 4px 12px rgba(32, 52, 71, 0.25);
}

.ledger-tour-block .active-view {
    background-color: #FFFFFF;
    color: #203447;
    box-shadow: 0 2px 6px rgba(32, 52, 71, 0.1);
}

.ledger-tour-block .tva-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .ledger-tour-block .tva-card {
        width: 100%;
    }

    .ledger-tour-block .ledger-tour-post-card {
        width: 100%;
    }
}

/* ===== book_a_consultation_slot ===== */
.ls-consultation {
    background-color: var(--surface-alt);
    position: relative;
}

.ls-glow-orb {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(167, 124, 67, 0.12) 0%, rgba(167, 124, 67, 0) 70%);
    z-index: 1;
}

.ls-glow-orb-tl {
    top: -100px;
    left: -80px;
}

.ls-glow-orb-br {
    bottom: -100px;
    right: -80px;
}

.ls-line-fade {
    height: 1px;
    flex: 1;
}

.ls-line-fade-left {
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.ls-line-fade-right {
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.ls-topic-card {
    background-color: var(--surface);
    border: 1px solid rgba(32, 52, 71, 0.1);
    box-shadow: 0 2px 8px rgba(32, 52, 71, 0.04);
    cursor: pointer;
    overflow-wrap: anywhere;
}

.ls-topic-card:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 124, 67, 0.45);
    box-shadow: 0 10px 24px -6px rgba(167, 124, 67, 0.18);
}

.ls-topic-card.active {
    background-color: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 12px 30px -6px rgba(167, 124, 67, 0.28), 0 0 14px rgba(167, 124, 67, 0.15);
    position: relative;
}

.ls-topic-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--accent);
}

.ls-icon-square {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ECC48C;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(32, 52, 71, 0.2);
}

.ls-icon-ring {
    padding: 3px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(167, 124, 67, 0.5) 0%, rgba(32, 52, 71, 0.2) 100%);
    display: inline-flex;
}

.ls-detail-card {
    background-color: var(--surface);
    border: 1px solid rgba(167, 124, 67, 0.35);
    box-shadow: 0 14px 34px -6px rgba(167, 124, 67, 0.2), 0 0 16px rgba(167, 124, 67, 0.1);
}

.ls-spec-box {
    background: rgba(247, 246, 241, 0.8);
    border: 1px solid rgba(32, 52, 71, 0.08);
}

.ls-academic-notice {
    background: rgba(167, 124, 67, 0.06);
    border-left: 3px solid var(--accent);
}

.ls-call-cta-btn {
    background: var(--primary);
    color: #F7F6F1;
    box-shadow: 0 4px 16px rgba(32, 52, 71, 0.25);
}

.ls-call-cta-btn:hover {
    background: var(--primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(32, 52, 71, 0.3), 0 0 14px rgba(167, 124, 67, 0.35);
}

@media (max-width: 767px) {
    .ls-consultation {
        overflow-x: hidden;
    }

    .ls-detail-card {
        margin-top: 0.5rem;
    }
}

/* ===== our_impact_in_numbers ===== */
.ledger-impact-section {
    background-color: #F7F6F1;
    font-family: 'Inter', sans-serif;
}

.ledger-glow-orb {
    background: radial-gradient(circle, rgba(167, 124, 67, 0.12) 0%, transparent 70%);
}

.ledger-title-horizon {
    gap: 1rem;
}

.ledger-horizon-line {
    height: 1px;
    flex: 1;
}

.ledger-horizon-left {
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.ledger-horizon-right {
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.ledger-impact-section .tva-eyebrow {
    background-color: rgba(167, 124, 67, 0.1);
    color: #A77C43;
    border: 1px solid rgba(167, 124, 67, 0.25);
}

.ledger-impact-section .ledger-impact-card {
    box-shadow: 0 4px 16px rgba(32, 52, 71, 0.04);
}

.ledger-impact-section .ledger-impact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 124, 67, 0.5);
    box-shadow: 0 16px 36px -8px rgba(167, 124, 67, 0.25), 0 0 14px rgba(167, 124, 67, 0.15);
}

.ledger-impact-section .featured-tier {
    box-shadow: 0 14px 34px -6px rgba(167, 124, 67, 0.22), 0 0 16px rgba(167, 124, 67, 0.12);
}

.ledger-impact-section .ledger-icon-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(167, 124, 67, 0.6), rgba(32, 52, 71, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.ledger-impact-section .tva-badge {
    background-color: rgba(32, 52, 71, 0.06);
    color: #506375;
    border: 1px solid rgba(32, 52, 71, 0.12);
}

.ledger-impact-section .featured-badge {
    background-color: rgba(167, 124, 67, 0.12);
    color: #A77C43;
    border: 1px solid rgba(167, 124, 67, 0.35);
}

.ledger-impact-section .tva-btn:hover {
    box-shadow: 0 8px 24px rgba(32, 52, 71, 0.3), 0 0 12px rgba(167, 124, 67, 0.4);
}

.ledger-impact-section .tva-btn-alt:hover {
    background-color: rgba(32, 52, 71, 0.04);
    box-shadow: 0 0 12px rgba(167, 124, 67, 0.2);
}

@media (max-width: 767px) {
    .ledger-impact-section .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== geography_of_work ===== */
.geography-block {
    font-family: 'Inter', sans-serif;
}

.geography-block .geography-orb-1 {
    top: -60px;
    left: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(167, 124, 67, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.geography-block .geography-orb-2 {
    bottom: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(32, 52, 71, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.geography-block .geography-line-left {
    height: 1px;
    width: 60px;
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.geography-block .geography-line-right {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.geography-block .geography-tab {
    border: 1px solid rgba(32, 52, 71, 0.15);
    background: #FFFFFF;
    color: #506375;
    cursor: pointer;
}

.geography-block .geography-tab:hover {
    border-color: #A77C43;
    color: #203447;
}

.geography-block .geography-tab.active-tab {
    background: #203447;
    border-color: #203447;
    color: #F7F6F1;
    box-shadow: 0 4px 14px rgba(32, 52, 71, 0.2);
}

.geography-block .geography-icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(167, 124, 67, 0.35) 0%, rgba(32, 52, 71, 0.12) 100%);
}

.geography-block .geography-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 124, 67, 0.45);
    box-shadow: 0 14px 34px -6px rgba(167, 124, 67, 0.18), 0 0 14px rgba(167, 124, 67, 0.1);
}

.geography-block .geography-featured-card {
    box-shadow: 0 14px 34px -6px rgba(167, 124, 67, 0.22), 0 0 16px rgba(167, 124, 67, 0.12);
}

@media (max-width: 767px) {

    .geography-block .geography-line-left,
    .geography-block .geography-line-right {
        display: none;
    }

    .geography-block .grid {
        grid-template-columns: 1fr;
    }

    .geography-block .tva-media {
        height: 200px;
    }
}

/* ===== frequently_asked_questions ===== */
.ledger-faq-block {
    font-family: 'Inter', sans-serif;
}

.ledger-faq-block .ledger-faq-line {
    height: 1px;
    flex: 1;
}

.ledger-faq-block .ledger-faq-line-left {
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.ledger-faq-block .ledger-faq-line-right {
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.6) 0%, rgba(247, 246, 241, 0) 100%);
}

.ledger-faq-block .ledger-faq-item.is-active {
    border-color: rgba(167, 124, 67, 0.45);
    box-shadow: 0 10px 28px -6px rgba(167, 124, 67, 0.16);
}

.ledger-faq-block .ledger-faq-item.is-active .ledger-faq-arrow {
    transform: rotate(180deg);
    background: rgba(167, 124, 67, 0.12);
    color: #A77C43;
    border-color: rgba(167, 124, 67, 0.4);
}

.ledger-faq-block .ledger-faq-item {
    cursor: pointer;
}

.ledger-faq-block .js-faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    cursor: default;
    padding-top: 0;
    padding-bottom: 0;
    border-top: 1px solid transparent;
    transition: max-height 0.38s ease, opacity 0.28s ease, padding 0.38s ease, border-color 0.28s ease;
}

.ledger-faq-block .ledger-faq-item.is-active .js-faq-content {
    max-height: 500px;
    opacity: 1;
    padding-top: 1rem;
    padding-bottom: 1.25rem;
    border-top-color: rgba(32, 52, 71, 0.06);
}

.ledger-faq-block .ledger-faq-icon-box i {
    background: linear-gradient(135deg, #ECC48C 0%, #A77C43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 767px) {
    .ledger-faq-block .ledger-faq-footer {
        padding: 1.25rem;
    }
}

/* ===== footer ===== */
.ls-footer {
    font-family: 'Inter', sans-serif;
}

.ls-footer .ls-horizon-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, rgba(247, 246, 241, 0) 0%, rgba(167, 124, 67, 0.6) 50%, rgba(247, 246, 241, 0) 100%);
}

.ls-footer .ls-title-with-lines {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ls-footer .ls-title-with-lines::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.45) 0%, transparent 100%);
}

.ls-footer .ls-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #203447;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(167, 124, 67, 0.2);
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms ease;
}

.ls-footer .ls-icon-box i {
    background: linear-gradient(135deg, #ECC48C 0%, #A77C43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 15px;
}

.ls-footer .ls-contact-item:hover .ls-icon-box,
.ls-footer .group:hover .ls-icon-box {
    transform: translateY(-2px) rotate(3deg);
    box-shadow: 0 0 14px rgba(167, 124, 67, 0.4);
}

.ls-footer .ls-nav-link {
    position: relative;
    color: #506375;
    text-decoration: none;
    transition: color 250ms ease;
}

.ls-footer .ls-nav-link:hover {
    color: #A77C43;
}

@media (max-width: 767px) {
    .ls-footer .ls-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .ls-footer .ls-legal-links {
        justify-content: center;
    }
}

.ledger-header .ledger-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #A77C43, #203447);
    box-shadow: 0 2px 8px rgba(167, 124, 67, 0.6);
    transition: width 300ms ease;
}

.ledger-header .ledger-nav-link:hover::after {
    width: 100%;
}

.ls-footer {
    font-family: 'Inter', sans-serif;
}

.ls-footer .ls-horizon-divider,
.ls-repeat-theme .ls-horizon-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, rgba(247, 246, 241, 0) 0%, rgba(167, 124, 67, 0.6) 50%, rgba(247, 246, 241, 0) 100%);
}

.ls-footer .ls-title-with-lines,
.ls-repeat-theme .ls-title-with-lines {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ls-footer .ls-title-with-lines::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.45) 0%, transparent 100%);
}

.ls-repeat-theme .ls-title-with-lines::before {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(270deg, rgba(167, 124, 67, 0.45) 0%, transparent 100%);
}

.ls-repeat-theme .ls-title-with-lines::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.45) 0%, transparent 100%);
}

.ls-footer .ls-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #203447;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(167, 124, 67, 0.2);
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms ease;
}

.ls-footer .ls-icon-box i {
    background: linear-gradient(135deg, #ECC48C 0%, #A77C43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 15px;
}

.ls-footer .ls-contact-item:hover .ls-icon-box,
.ls-footer .group:hover .ls-icon-box {
    transform: translateY(-2px) rotate(3deg);
    box-shadow: 0 0 14px rgba(167, 124, 67, 0.4);
}

.ls-footer .ls-nav-link {
    position: relative;
    color: #506375;
    text-decoration: none;
    transition: color 250ms ease;
}

.ls-footer .ls-nav-link:hover {
    color: #A77C43;
}

.ls-repeat-theme {
    font-family: 'Inter', sans-serif;
    overflow-wrap: anywhere;
}

.ls-repeat-theme .ls-page-title {
    color: #203447;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.ls-repeat-theme .ls-page-subtitle {
    color: #506375;
    font-size: 14px;
    line-height: 1.6;
}

.ls-repeat-theme .ls-section-heading {
    color: #203447;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.ls-repeat-theme .ls-card-title {
    color: #203447;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.ls-repeat-theme .ls-card-title-md {
    color: #203447;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.ls-repeat-theme .ls-card-title-sm {
    color: #203447;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.ls-repeat-theme .ls-card-desc {
    color: #506375;
    font-size: 13px;
    line-height: 1.6;
}

.ls-repeat-theme .ls-card-desc-sm {
    color: #506375;
    font-size: 12px;
    line-height: 1.5;
}

.ls-repeat-theme .tva-badge {
    border-radius: 9999px;
    border: 1px solid rgba(167, 124, 67, 0.3);
    background: rgba(167, 124, 67, 0.08);
    color: #A77C43;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ls-repeat-theme .tva-eyebrow {
    color: #A77C43;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.ls-repeat-theme .tva-btn {
    border-radius: 9999px;
    padding: 0.625rem 1.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    background: #203447;
    color: #F7F6F1;
    box-shadow: 0 4px 14px rgba(32, 52, 71, 0.2);
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}

.ls-repeat-theme .tva-btn:hover {
    background: #172635;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(32, 52, 71, 0.3), 0 0 12px rgba(167, 124, 67, 0.3);
}

.ls-repeat-theme .tva-btn-alt {
    border-radius: 9999px;
    padding: 0.5rem 1.125rem;
    font-weight: 600;
    font-size: 0.8125rem;
    background: transparent;
    border: 1.5px solid #203447;
    color: #203447;
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}

.ls-repeat-theme .tva-btn-alt:hover {
    background: rgba(32, 52, 71, 0.05);
    border-color: #A77C43;
    color: #A77C43;
    box-shadow: 0 0 12px rgba(167, 124, 67, 0.2);
}

.ls-repeat-theme .ls-card-featured {
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid rgba(167, 124, 67, 0.4);
    box-shadow: 0 14px 34px -6px rgba(167, 124, 67, 0.22), 0 0 16px rgba(167, 124, 67, 0.12);
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 300ms ease;
}

.ls-repeat-theme .ls-card-featured:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 124, 67, 0.6);
    box-shadow: 0 18px 38px -6px rgba(167, 124, 67, 0.28), 0 0 20px rgba(167, 124, 67, 0.16);
}

.ls-repeat-theme .ls-side-card,
.ls-repeat-theme .ls-grid-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(32, 52, 71, 0.1);
    box-shadow: 0 2px 8px rgba(32, 52, 71, 0.04);
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 300ms ease;
}

.ls-repeat-theme .ls-side-card:hover,
.ls-repeat-theme .ls-grid-card:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 124, 67, 0.45);
    box-shadow: 0 12px 28px -6px rgba(167, 124, 67, 0.18), 0 0 12px rgba(167, 124, 67, 0.08);
}

.ls-repeat-theme .ls-filter-chip {
    border-radius: 9999px;
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #FCFBF9;
    border: 1px solid rgba(32, 52, 71, 0.12);
    color: #506375;
    cursor: pointer;
    transition: all 250ms ease;
}

.ls-repeat-theme .ls-filter-chip:hover,
.ls-repeat-theme .ls-filter-chip.active {
    background: #203447;
    border-color: #203447;
    color: #F7F6F1;
    box-shadow: 0 4px 12px rgba(32, 52, 71, 0.15);
}

.ls-repeat-theme .ls-search-field::placeholder {
    color: #7A8C9E;
    opacity: 1;
}

.ls-repeat-theme .ls-form-input::placeholder {
    color: #7A8C9E;
    opacity: 1;
}

.ls-repeat-theme .ls-link-action {
    color: #203447;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 250ms ease;
}

.ls-repeat-theme .ls-link-action:hover {
    color: #A77C43;
}

@media (min-width: 768px) {
    .ls-repeat-theme .ls-page-title {
        font-size: 34px;
    }

    .ls-repeat-theme .ls-page-subtitle {
        font-size: 16px;
    }

    .ls-repeat-theme .ls-section-heading {
        font-size: 26px;
    }

    .ls-repeat-theme .ls-card-title {
        font-size: 20px;
    }

    .ls-repeat-theme .ls-card-title-md {
        font-size: 17px;
    }

    .ls-repeat-theme .ls-card-title-sm {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .ls-footer .ls-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .ls-footer .ls-legal-links {
        justify-content: center;
    }

    .ls-repeat-theme .tva-btn,
    .ls-repeat-theme .tva-btn-alt {
        width: 100%;
    }
}

.policy-content{width:100%;max-width:100%;color:var(--text,#1e293b);line-height:1.65;overflow-wrap:anywhere}.policy-content h1,.policy-content h2,.policy-content h3,.policy-content h4{color:var(--text,#0f172a);line-height:1.25;font-weight:700;margin-top:1.75rem;margin-bottom:0.75rem;overflow-wrap:anywhere;hyphens:auto}.policy-content h1{font-size:18px;margin-top:0;margin-bottom:1rem}.policy-content h2{font-size:16px;padding-bottom:0.5rem;border-bottom:1px solid var(--border,#e2e8f0)}.policy-content h3{font-size:14px}.policy-content h4{font-size:13px}.policy-content p{margin-top:0;margin-bottom:1rem;color:var(--text,#334155)}.policy-content strong{font-weight:600;color:var(--text,#0f172a)}.policy-content a{color:var(--primary,#2563eb);text-decoration:underline;text-underline-offset:3px;transition:color .2s ease}.policy-content a:hover,.policy-content a:focus{color:var(--primary-hover,#1d4ed8)}.policy-content ul,.policy-content ol{margin-top:0;margin-bottom:1.25rem;padding-left:1.5rem}.policy-content ul{list-style-type:disc}.policy-content ol{list-style-type:decimal}.policy-content li{margin-bottom:0.5rem;color:var(--text,#334155)}.policy-content li>ul,.policy-content li>ol{margin-top:0.5rem;margin-bottom:0.5rem}@media (min-width:768px){.policy-content h1{font-size:28px;margin-bottom:1.25rem}.policy-content h2{font-size:22px;margin-top:2.25rem;margin-bottom:1rem}.policy-content h3{font-size:18px;margin-top:1.75rem;margin-bottom:0.75rem}.policy-content h4{font-size:15px;margin-top:1.5rem;margin-bottom:0.5rem}.policy-content p{margin-bottom:1.25rem}}

/* ===== PAGE: privacy ===== */
.policy-content { font-family: 'Inter', sans-serif; color: #203447; line-height: 1.7; word-break: break-word; overflow-wrap: anywhere; hyphens: auto; } .policy-content h2 { font-size: 16px; font-weight: 700; color: #203447; margin-top: 2rem; margin-bottom: 0.875rem; line-height: 1.3; border-bottom: 1px solid rgba(167, 124, 67, 0.25); padding-bottom: 0.5rem; } @media (min-width: 768px) { .policy-content h2 { font-size: 22px; margin-top: 2.5rem; } } .policy-content p { font-size: 0.9375rem; color: #506375; margin-bottom: 1.125rem; line-height: 1.65; } @media (min-width: 768px) { .policy-content p { font-size: 1rem; } } .policy-content ul { list-style-type: disc; list-style-position: inside; margin-top: 0.5rem; margin-bottom: 1.25rem; padding-left: 0.5rem; } .policy-content li { font-size: 0.9375rem; color: #506375; margin-bottom: 0.625rem; line-height: 1.6; } @media (min-width: 768px) { .policy-content li { font-size: 1rem; } } .policy-content strong { color: #203447; font-weight: 600; } .policy-content a { color: #A77C43; text-decoration: underline; text-underline-offset: 3px; transition: color 300ms cubic-bezier(0.2, 0.8, 0.2, 1); } .policy-content a:hover, .policy-content a:focus { color: #8C6534; text-decoration: none; }

/* ===== PAGE: terms ===== */
.policy-content { width: 100%; max-width: 900px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2rem); font-family: 'Inter', sans-serif; color: #203447; line-height: 1.7; box-sizing: border-box; overflow-wrap: anywhere; hyphens: auto; } .policy-content .policy-meta-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(167, 124, 67, 0.25); } .policy-content .policy-tag { display: inline-flex; align-items: center; font-size: 0.8125rem; font-weight: 600; color: #A77C43; background: rgba(167, 124, 67, 0.08); border: 1px solid rgba(167, 124, 67, 0.3); border-radius: 9999px; padding: 0.25rem 0.875rem; letter-spacing: 0.02em; } .policy-content h2 { font-size: 16px; line-height: 1.3; font-weight: 600; color: #203447; margin-top: 2.25rem; margin-bottom: 0.875rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(32, 52, 71, 0.1); } @media (min-width: 768px) { .policy-content h2 { font-size: 24px; margin-top: 3rem; margin-bottom: 1rem; } } .policy-content h3 { font-size: 14px; line-height: 1.35; font-weight: 600; color: #203447; margin-top: 1.5rem; margin-bottom: 0.625rem; } @media (min-width: 768px) { .policy-content h3 { font-size: 18px; margin-top: 2rem; } } .policy-content p { font-size: 0.9375rem; line-height: 1.7; color: #506375; margin-bottom: 1.125rem; } @media (min-width: 768px) { .policy-content p { font-size: 1.0625rem; line-height: 1.75; } } .policy-content strong { color: #203447; font-weight: 700; } .policy-content ul { list-style-type: disc; padding-left: 1.5rem; margin-top: 0.5rem; margin-bottom: 1.25rem; } .policy-content li { font-size: 0.9375rem; line-height: 1.65; color: #506375; margin-bottom: 0.5rem; } @media (min-width: 768px) { .policy-content li { font-size: 1.0625rem; } } .policy-content .policy-link { color: #A77C43; text-decoration: none; font-weight: 600; transition: color 0.2s ease, text-decoration 0.2s ease; } .policy-content .policy-link:hover, .policy-content .policy-link:focus { color: #8C6534; text-decoration: underline; } .policy-content .policy-contact-card { background: #FFFFFF; border: 1px solid rgba(167, 124, 67, 0.3); border-radius: 16px; padding: clamp(1.25rem, 3vw, 1.75rem); margin-top: 1.5rem; box-shadow: 0 4px 16px rgba(32, 52, 71, 0.04); } .policy-content .policy-contact-row { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(32, 52, 71, 0.06); } .policy-content .policy-contact-row:last-child { border-bottom: none; padding-bottom: 0; } .policy-content .policy-contact-row:first-child { padding-top: 0; } @media (min-width: 768px) { .policy-content .policy-contact-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 1rem; } } .policy-content .policy-contact-label { font-size: 0.875rem; font-weight: 700; color: #203447; } .policy-content .policy-contact-value { font-size: 0.9375rem; color: #506375; word-break: break-word; }

/* ===== PAGE: disclaimer ===== */
.policy-content { overflow-wrap: anywhere; hyphens: auto; } .policy-content h2 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.3; color: #203447; margin-top: 2rem; margin-bottom: 0.75rem; } @media (min-width: 768px) { .policy-content h2 { font-size: 22px; } } .policy-content h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; line-height: 1.35; color: #203447; margin-top: 1.25rem; margin-bottom: 0.5rem; } @media (min-width: 768px) { .policy-content h3 { font-size: 18px; } } .policy-content p { font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.65; color: #506375; margin-bottom: 1.15rem; } .policy-content ul, .policy-content ol { margin-top: 0.5rem; margin-bottom: 1.25rem; padding-left: 1.5rem; } .policy-content ul { list-style-type: disc; } .policy-content ol { list-style-type: decimal; } .policy-content li { font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.6; color: #506375; margin-bottom: 0.5rem; } .policy-content strong { color: #203447; font-weight: 600; } .policy-content a { color: #A77C43; text-decoration: underline; transition: color 0.2s ease; } .policy-content a:hover, .policy-content a:focus { color: #203447; }

/* ===== PAGE TEMPLATE: education, articles, project, tools ===== */
.ledger-header .ledger-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #A77C43, #203447);
    box-shadow: 0 2px 8px rgba(167, 124, 67, 0.6);
    transition: width 300ms ease;
}

.ledger-header .ledger-nav-link:hover::after {
    width: 100%;
}

.ls-detail-main .ls-frame-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, rgba(247, 246, 241, 0) 0%, rgba(167, 124, 67, 0.45) 50%, rgba(247, 246, 241, 0) 100%);
}

.ls-detail-main .tva-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(167, 124, 67, 0.3);
    background: rgba(167, 124, 67, 0.08);
    color: #A77C43;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ls-footer {
    font-family: 'Inter', sans-serif;
}

.ls-footer .ls-horizon-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, rgba(247, 246, 241, 0) 0%, rgba(167, 124, 67, 0.6) 50%, rgba(247, 246, 241, 0) 100%);
}

.ls-footer .ls-title-with-lines {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ls-footer .ls-title-with-lines::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(167, 124, 67, 0.45) 0%, transparent 100%);
}

.ls-footer .ls-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #203447;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(167, 124, 67, 0.2);
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms ease;
}

.ls-footer .ls-icon-box i {
    background: linear-gradient(135deg, #ECC48C 0%, #A77C43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 15px;
}

.ls-footer .ls-contact-item:hover .ls-icon-box,
.ls-footer .group:hover .ls-icon-box {
    transform: translateY(-2px) rotate(3deg);
    box-shadow: 0 0 14px rgba(167, 124, 67, 0.4);
}

.ls-footer .ls-nav-link {
    position: relative;
    color: #506375;
    text-decoration: none;
    transition: color 250ms ease;
}

.ls-footer .ls-nav-link:hover {
    color: #A77C43;
}

@media (max-width: 767px) {
    .ls-footer .ls-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .ls-footer .ls-legal-links {
        justify-content: center;
    }

    .ls-detail-main .ls-framed-article {
        padding: 1.25rem;
    }
}

/* mobile-text-guard */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, label {
    overflow-wrap: anywhere;
  }
  a, button, .btn {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  img, video, iframe {
    max-width: 100%;
  }
}

/* ===== badge normalization ===== */
.tva-badge,
.ls-repeat-theme .tva-badge,
.ls-hero-block .tva-badge,
.ls-detail-main .tva-badge,
.ledger-impact-section .tva-badge,
.ledger-impact-section .featured-badge,
.featured-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 5px 10px;
    border: none !important;
    border-radius: 20px !important;
    background: rgba(167, 124, 67, 0.1);
    color: #A77C43;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
    white-space: nowrap !important;
}

.ledger-impact-section .tva-badge:not(.featured-badge) {
    background: rgba(32, 52, 71, 0.06);
    color: #506375;
}

.tva-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border: none !important;
    border-radius: 20px;
    white-space: nowrap;
}

/* badges over images: solid readable chip */
.tva-media .tva-badge,
.tva-media .featured-badge {
    background: #F7F6F1;
    color: #A77C43;
    box-shadow: 0 4px 12px rgba(32, 52, 71, 0.18);
}

.tva-badge + .tva-badge,
.tva-badge + .featured-badge,
.featured-badge + .tva-badge {
    margin-left: 12px;
}

/* ===== section title side-lines spacing ===== */
.ls-repeat-theme .ls-title-with-lines {
    gap: 1.25rem;
}

.ls-repeat-theme .ls-title-with-lines .ls-section-heading,
.ls-repeat-theme .ls-title-with-lines h2,
.ls-repeat-theme .ls-title-with-lines h3 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* ===== uniform card anatomy ===== */
.grid > article,
.grid .tva-card,
.ls-listing-container .tva-card,
.ls-related-section article {
    height: 100%;
}

.tva-card > .p-4,
.tva-card > .p-5,
.tva-card > .p-6 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-bottom: 0 !important;
}

.tva-card {
    padding-bottom: 22px !important;
}

.ls-related-section article {
    padding-bottom: 22px !important;
}

.ls-related-section article > .flex.flex-col.flex-grow {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* footer row: pinned to bottom, aligned on one line */
.tva-card div[class*="border-t"][class*="justify-between"],
.ls-related-section article div[class*="border-t"][class*="justify-between"],
.js-note-item div[class*="border-t"][class*="justify-between"] {
    margin-top: auto !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tva-card > div[class*="border-t"]:last-child,
.tva-card div.flex.flex-col.flex-grow > div[class*="border-t"]:last-child,
article.flex.flex-col > div.flex.flex-col.flex-grow > div[class*="border-t"]:last-child {
    margin-top: auto !important;
}

/* author / label cell */
.tva-card div[class*="border-t"][class*="justify-between"] > span:first-child,
.ls-related-section article div[class*="border-t"][class*="justify-between"] > span:first-child,
.js-note-item div[class*="border-t"][class*="justify-between"] > span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
    display: inline-flex;
    align-items: center;
}

/* action buttons: uniform size, single line */
.tva-card div[class*="border-t"][class*="justify-between"] > a:last-child,
.ls-related-section article div[class*="border-t"][class*="justify-between"] > a:last-child,
.js-note-item div[class*="border-t"][class*="justify-between"] > a:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap !important;
    flex-shrink: 0;
    min-width: 104px;
    min-height: 36px;
    padding: 0.4rem 0.9rem;
}

@media (max-width: 767px) {
    .tva-card,
    .ls-related-section article {
        padding-bottom: 20px !important;
    }
}

/* footer legal links: single line, shrink on mobile */
@media (max-width: 767px) {
    .ls-legal-links {
        gap: 0.75rem !important;
        overflow-x: auto;
        max-width: 100%;
    }

    .ls-legal-links a {
        font-size: 11px;
    }
}
