* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0a2b5d;
    --navy-deep: #061f45;
    --navy-soft: #1d4f86;
    --gold: #c8952e;
    --gold-dark: #a87518;
    --ink: #13243d;
    --muted: #637187;
    --bg: #f6f5f1;
    --card: #fffefb;
    --nav-bg: #dfe6ec;
    --border: #d9dfe5;
    --warm-border: #e4d8c4;
    --shadow: 0 10px 30px rgba(16, 35, 58, 0.08);
    --header-height: 5.25rem;
    --nav-height: var(--header-height);
    --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    --sans: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
    --accent: var(--navy);
    --accent-dark: var(--navy-deep);
    --accent-soft: #edf3fa;
    --accent-light: #d5e2f0;
    --danger: #d84c4c;
    --copper: var(--navy);
    --copper-deep: var(--navy-deep);
    --parchment: #f7f5f0;
    --stone: #e8eef3;
    --mode-baseline: #5f6b4a;
    --mode-baseline-soft: #eef0e6;
    --mode-scenario: #a87518;
    --mode-scenario-soft: #fbf3e4;
}

html {
    color-scheme: light;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(10, 43, 93, 0.12);
    box-shadow: 0 2px 14px rgba(16, 35, 58, 0.05);
}

.nav-shell {
    width: min(1360px, calc(100% - 48px));
    min-height: var(--header-height);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;
}

.site-header .brand {
    grid-column: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 13px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: linear-gradient(145deg, #0e3c73, var(--navy-deep));
    border-radius: 11px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 5px 12px rgba(8, 32, 68, 0.16);
}

.brand-mark svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.brand-mark svg path {
    stroke: #76bfd4;
}

.site-header .brand h1,
.site-header .brand .brand-title {
    grid-column: 2;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.18rem, 1.55vw, 1.78rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--navy-deep);
    white-space: nowrap;
}

.site-header .brand p {
    grid-column: 2;
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.35;
    max-width: 28rem;
}

.site-header .main-menu {
    grid-column: 2;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(18px, 2.6vw, 42px);
    height: var(--header-height);
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.menu-link {
    position: relative;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #253753;
    font-weight: 560;
    font-size: 0.98rem;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.16s ease;
}

.menu-link::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 14px;
    height: 3px;
    border-radius: 99px;
    background: transparent;
    transform: none;
    opacity: 0;
}

.menu-link:hover {
    color: var(--navy);
    background: transparent;
}

.menu-link:hover::after {
    background: rgba(200, 149, 46, 0.45);
    opacity: 1;
}

.menu-link.active {
    background: transparent;
    color: var(--navy-deep);
    font-weight: 700;
}

.menu-link.active::after {
    background: var(--gold);
    opacity: 1;
}

.user-panel,
.user-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-toggle {
    width: 48px;
    height: 48px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: var(--navy-deep);
    color: #fff;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 14px rgba(7, 32, 70, 0.15);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.user-dropdown-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(7, 32, 70, 0.2);
}

.user-dropdown-toggle:active {
    transform: translateY(0) scale(0.97);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(28, 25, 22, 0.14);
    min-width: 220px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.18s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-header {
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--ink);
    background: linear-gradient(180deg, var(--parchment), var(--card));
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.15rem;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.92rem;
}

.user-dropdown-item:hover {
    background-color: var(--accent-soft);
    color: var(--copper-deep);
}

.dropdown-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .nav-shell {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        width: min(100% - 28px, 1360px);
        gap: 10px 14px;
        min-height: 70px;
        align-items: center;
    }

    .site-header .brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .site-header .user-panel,
    .site-header .user-actions {
        grid-column: 2;
        grid-row: 1;
        margin-left: 0;
        align-self: start;
        justify-self: end;
    }

    .site-header .main-menu {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 48px;
        justify-content: flex-start;
        mask-image: linear-gradient(90deg, #000 88%, transparent);
    }

    .menu-link::after {
        bottom: 4px;
    }

    .site-header .brand h1,
    .site-header .brand .brand-title {
        font-size: 1.15rem;
        white-space: normal;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .user-dropdown-toggle {
        width: 42px;
        height: 42px;
    }
}

select,
input,
button {
    font-family: inherit;
}

select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.45rem;
    font-size: calc(0.95rem - 1px);
    width: 100%;
    background: #fff;
    box-sizing: border-box;
}

input[data-format="currency"],
input[data-format="percent"] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

input:focus,
select:focus {
    outline: 2px solid rgba(10, 43, 93, 0.22);
    border-color: var(--accent);
}

::placeholder {
    font-style: italic;
    font-weight: 400;
    color: #8a8178;
    font-size: 0.9em;
}

.btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.6rem 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.btn:disabled:hover {
    transform: none;
}

.btn-primary {
    background: linear-gradient(145deg, #0d376d, var(--navy-deep));
    color: #fff;
    box-shadow: 0 6px 16px rgba(10, 43, 93, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(145deg, #11427e, var(--navy-deep));
    color: #fff;
    box-shadow: 0 8px 20px rgba(10, 43, 93, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--navy-deep);
    border-color: #b8c4d2;
}

.btn-secondary:hover {
    border-color: #7f93aa;
    background: #fff;
}

.btn-secondary.btn-update-scenario {
    background: var(--mode-scenario);
    color: #fff8f2;
}

.btn-secondary.btn-update-scenario:hover {
    background: var(--copper-deep);
}

.btn-success {
    background: #e3f5ea;
    color: #2d8a54;
}

.btn-success:hover {
    background: #cfead9;
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
}

.btn-ghost:hover {
    color: var(--ink);
}

.btn-danger {
    background: #ffe8e8;
    color: var(--danger);
}

.btn-danger:hover {
    background: #ffd0d0;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--accent);
    font-weight: 600;
    padding: 0;
    margin-left: 0.4rem;
    cursor: pointer;
}

.btn-link:hover {
    color: var(--accent-dark);
}

.btn-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tab-badge {
    display: none;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff8f2;
    font-size: 0.7rem;
    font-weight: 700;
}

.page {
    width: min(1360px, calc(100% - 48px));
    margin: 30px auto 56px;
    padding: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.panel {
    background: var(--card);
    border: 1px solid var(--warm-border);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.panel.hero {
    background: linear-gradient(120deg, #f7f8f4 0%, #fffefb 62%);
}

.panel.narrow {
    max-width: 520px;
    margin: 0 auto;
}

.auth-form-note {
    margin: 1.25rem 0 0;
    font-size: 0.82rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.45;
    color: var(--muted);
}

.auth-field-hint {
    font-size: 0.82rem;
    font-weight: 400;
    font-style: italic;
    color: var(--muted);
}

.auth-field-label {
    display: inline;
}

.auth-field-label .auth-field-hint {
    font-size: calc(1em - 1px);
    font-weight: 400;
    font-style: italic;
    color: var(--muted);
}

.panel-header {
    margin-bottom: 1.5rem;
}

.panel-header h2,
.panel-header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

/* A Penny Saved — page & section titles (typography only) */
.starter-title,
.panel-header h2.starter-title {
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: clamp(1.65rem, 2.15vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--navy-deep);
}

.starter-section-title,
.panel-header h2.starter-section-title,
.panel-subsection h3.starter-section-title,
.variation-quick-header h3.starter-section-title,
.variation-explorer-header h3.starter-section-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy-deep);
    line-height: 1.2;
}

.starter-section-title--spaced {
    margin-bottom: 0.75rem;
}

.panel-header p {
    color: var(--muted);
    font-size: 0.95rem;
}

.alert {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-info {
    background: #eef4ff;
    color: var(--accent);
}

.alert-error {
    background: #ffe8e8;
    color: var(--danger);
}

.register-logged-in-banner {
    padding: 1rem 1.1rem 1.15rem;
}

.register-logged-in-lead {
    margin: 0 0 0.85rem;
    font-weight: 600;
    color: var(--navy-deep);
}

.register-choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.register-choice-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(10, 43, 93, 0.16);
    background: #fffefb;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
    box-sizing: border-box;
}

.register-choice-card:hover {
    border-color: rgba(10, 43, 93, 0.35);
    box-shadow: 0 8px 20px rgba(16, 35, 58, 0.08);
}

.register-choice-card--form {
    padding: 0;
    border: none;
    background: transparent;
}

.register-choice-submit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    width: 100%;
    min-height: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(10, 43, 93, 0.16);
    background: #fffefb;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.register-choice-submit:hover {
    border-color: rgba(10, 43, 93, 0.35);
    box-shadow: 0 8px 20px rgba(16, 35, 58, 0.08);
}

.register-choice-title {
    font-weight: 700;
    color: var(--navy-deep);
}

.register-choice-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.35;
}

.register-choice-meta strong {
    color: var(--ink);
    font-weight: 650;
}

.settings-page .settings-panel {
    max-width: 720px;
    margin: 0 auto;
}

.settings-sections {
    display: grid;
    gap: 2rem;
}

.settings-section {
    padding-top: 0.25rem;
}

.settings-section + .settings-section {
    border-top: 1px solid var(--warm-border);
    padding-top: 1.75rem;
}

.settings-section-header h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.settings-section-header p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.settings-form label,
.settings-form h4 {
    display: block;
}

.settings-form h4 {
    font-size: 1rem;
    margin: 0 0 0.75rem;
}

.settings-form--bordered {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--warm-border);
}

.settings-inline-form {
    margin: 0.75rem 0 0;
}

.settings-status {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.settings-status strong {
    display: block;
    margin-bottom: 0.15rem;
}

.settings-status-meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.settings-status--ok {
    background: #edf8f0;
    color: #1f6b3a;
}

.settings-status--warn {
    background: #fff7e8;
    color: #8a5a00;
}

.settings-status--pending {
    background: #eef4ff;
    color: var(--accent);
}

.settings-meta-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.settings-meta-list div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem;
    align-items: baseline;
}

.settings-meta-list dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
}

.settings-meta-list dd {
    margin: 0;
    font-size: 0.95rem;
}

.input-readonly {
    background: #f3f4f8;
    color: var(--muted);
    cursor: not-allowed;
}

.field-hint {
    margin: -0.35rem 0 0.85rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-style: italic;
}

.section-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.section-card {
    background: #f8f9fd;
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid #eef0f7;
}

.spouse-row.is-spouse-hidden {
    display: none !important;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab {
    border: 1px solid var(--border);
    background: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.tab.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-light);
}

.plan-workspace {
    display: grid;
    grid-template-columns: minmax(220px, 236px) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.plan-nav {
    --plan-rail-bg: #ebe4da;
    --plan-rail-border: #d7cdc0;
    --plan-rail-ink: #1c1916;
    --plan-rail-muted: #6d645a;
    --plan-rail-hover: rgba(255, 250, 244, 0.55);
    --plan-rail-active: var(--navy);
    --plan-rail-active-deep: var(--navy-deep);
    --plan-rail-active-text: #fff8f2;
    --plan-rail-ready: #2f6b4a;
    position: sticky;
    top: calc(var(--header-height) + 0.65rem);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1.05rem 0 0;
    background:
        linear-gradient(180deg, #f3ece3 0%, var(--plan-rail-bg) 40%, #e4dbd0 100%);
    border: 1px solid var(--plan-rail-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.plan-nav-heading {
    margin: 0 1.05rem 0.7rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--plan-rail-muted);
}

.plan-nav-item.tab {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    border-radius: 0;
    padding: 0.78rem 1.05rem;
    border: none;
    border-left: 3px solid transparent;
    background: transparent;
    position: relative;
    box-shadow: none;
    color: var(--plan-rail-ink);
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.plan-nav-item.tab:hover {
    background: var(--plan-rail-hover);
}

.plan-nav-item.tab.active {
    background: linear-gradient(180deg, var(--plan-rail-active) 0%, var(--plan-rail-active-deep) 100%);
    border-left-color: transparent;
    box-shadow: none;
    color: var(--plan-rail-active-text);
}

.plan-nav-item.tab.active::before,
.plan-nav-item.tab.active::after {
    display: none;
}

.plan-nav-item.tab.active .plan-nav-title {
    color: var(--plan-rail-active-text);
}

.plan-nav-item.tab.active .plan-nav-desc {
    color: rgba(255, 248, 242, 0.78);
}

.plan-nav-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

.plan-nav-status.is-incomplete {
    background: transparent;
    border: 1.5px solid var(--plan-rail-muted);
    color: transparent;
}

.plan-nav-status.is-incomplete::before {
    content: "";
}

.plan-nav-status.is-complete {
    background: var(--plan-rail-ready);
    border: none;
    color: #fff;
}

.plan-nav-status.is-complete::before {
    content: "✓";
}

.plan-nav-status[hidden] {
    display: none !important;
}

.plan-nav-item.tab.active .plan-nav-status.is-incomplete {
    background: transparent;
    border-color: rgba(255, 248, 242, 0.55);
    box-shadow: none;
}

.plan-nav-item.tab.active .plan-nav-status.is-complete {
    background: rgba(255, 248, 242, 0.22);
    color: var(--plan-rail-active-text);
    box-shadow: inset 0 0 0 1px rgba(255, 248, 242, 0.35);
}

.plan-nav-optional-label {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--plan-rail-muted);
    opacity: 0.85;
    line-height: 1.2;
}

.plan-nav-optional-label[hidden] {
    display: none !important;
}

.plan-nav-item.tab.active .plan-nav-optional-label {
    color: rgba(255, 248, 242, 0.72);
    opacity: 1;
}

.plan-nav-copy {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
    min-width: 0;
}

.plan-nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--plan-rail-ink);
}

.plan-nav-desc {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--plan-rail-muted);
    line-height: 1.35;
}

.plan-nav-optional .plan-nav-title {
    color: var(--plan-rail-muted);
    font-weight: 600;
}

.plan-nav-optional .plan-nav-desc {
    font-style: italic;
    font-weight: 500;
    opacity: 0.9;
}

.plan-nav-item.tab.active.plan-nav-optional .plan-nav-title,
.plan-nav-item.tab.active.plan-nav-optional .plan-nav-desc {
    color: inherit;
    font-style: normal;
}

.plan-nav-item.tab.active .tab-badge {
    background: rgba(255, 248, 242, 0.92);
    color: var(--plan-rail-active-deep);
}

.plan-nav-item .tab-badge {
    margin-left: 0;
}

.plan-content .section-card,
.plan-content .summary-grid[data-tab-content] {
    scroll-margin-top: 1rem;
}

.plan-content .section-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 6px 18px rgba(21, 32, 51, 0.03);
}

.plan-content .section-card h3 {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.plan-content .section-note {
    color: var(--muted);
    font-size: 0.92rem;
    margin: -0.35rem 0 1rem;
}

.household-groups {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.plan-content .input-group {
    background: #f8f9fd;
    border: 1px solid #eef0f7;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.plan-content .input-group .table-wrapper {
    margin: 0;
}

.plan-content .input-group .table-wrapper.compact {
    margin-top: 0.85rem;
}

.networth-tracking-note {
    margin: -0.35rem 0 1.25rem;
}

.plan-content .input-group .column-table tr:first-child:has(input[type="number"], input[type="text"], select) td {
    padding-top: 0;
}

.plan-content .input-group .column-table tr:last-child td {
    padding-bottom: 0;
}

.column-table input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--navy-deep);
    cursor: pointer;
}

.column-table tr:has(> td > input[type="checkbox"]) td {
    vertical-align: middle;
    min-height: calc(1rem + 0.55rem * 2 + 1.35rem + 2px);
}

.column-table tr:has(> td > input[type="checkbox"]) td:last-child {
    text-align: right;
}

.accounts-ledger-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.accounts-ledger-header h3 {
    margin-bottom: 0.45rem;
}

.accounts-ledger-header .section-note {
    margin-bottom: 0;
}

.accounts-ledger-header .btn {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.accounts-ledger-empty {
    margin: 0.35rem 0 0;
    padding: 0.85rem 1rem;
    border: 1px dashed #d7cdc0;
    border-radius: 10px;
    background: #faf7f2;
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 500;
}

.section-heading-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    margin-bottom: 0.45rem;
}

.section-heading-row h3 {
    margin-bottom: 0;
}

.totals-used-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--navy-deep);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-card-totals {
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
    border: 1px solid rgba(10, 43, 93, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.totals-display-table {
    width: 100%;
    border-collapse: collapse;
}

.totals-display-table th,
.totals-display-table td {
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid rgba(10, 43, 93, 0.1);
    text-align: left;
}

.totals-display-table th.num,
.totals-display-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.totals-display-table thead th {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.totals-display-table td {
    color: var(--navy-deep);
    font-weight: 600;
}

.totals-display-table .totals-overall-row td {
    border-bottom: none;
    padding-top: 0.75rem;
    font-weight: 800;
    border-top: 2px solid rgba(10, 43, 93, 0.18);
}

#addTypeTotalRow,
#addAccountRow {
    margin-top: 0.85rem;
}

.plan-content .section-note.totals-used-callout {
    margin-top: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border-left: 3px solid var(--navy);
    background: rgba(10, 43, 93, 0.06);
    color: var(--navy-deep);
    font-style: normal;
    font-weight: 500;
}

.accounts-ledger-empty[hidden],
#accountsTableWrap[hidden] {
    display: none !important;
}

.plan-section-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.plan-readiness {
    margin-top: 0.45rem;
    padding: 0.9rem 1.05rem 1rem;
    border-top: 1px solid var(--plan-rail-border);
    background: rgba(255, 250, 244, 0.42);
}

.plan-readiness-meter {
    height: 6px;
    border-radius: 999px;
    background: rgba(10, 43, 93), 0.12);
    overflow: hidden;
    margin-bottom: 0.55rem;
}

#planReadinessFill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--navy));
    border-radius: 999px;
    transition: width 0.25s ease;
}

#planReadinessText {
    margin: 0;
    font-size: 0.78rem;
    color: var(--plan-rail-muted);
    font-weight: 600;
}

.plan-readiness-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    margin: 0.45rem 0 0;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--plan-rail-muted);
    line-height: 1.3;
}

.plan-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.plan-legend-sep {
    opacity: 0.55;
}

.plan-incomplete-mark,
.plan-ready-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    font-size: 0.58rem;
    font-weight: 700;
    flex-shrink: 0;
    box-sizing: border-box;
}

.plan-incomplete-mark {
    background: transparent;
    border: 1.5px solid var(--plan-rail-muted);
}

.plan-ready-mark {
    background: var(--plan-rail-ready);
    color: #fff;
}

.plan-ready-mark::before {
    content: "✓";
}

.plan-optional-mark {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.85;
}

.scenario-library-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.scenario-library-hint .panel-header p a {
    color: var(--accent);
    font-weight: 600;
}

.projections-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.projections-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.projection-tool-chooser {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0 0 1.35rem;
    padding: 0.7rem 0.75rem 0.8rem;
    border: 1px solid rgba(168, 117, 24, 0.35);
    border-radius: 16px;
    background:
        linear-gradient(180deg, #f4e6c8 0%, #ebd7a8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 8px 22px rgba(10, 43, 93, 0.08);
}

.projection-tool-chooser-label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.projection-tool-slider {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    min-width: 0;
    padding: 0;
    border: 1px solid rgba(168, 117, 24, 0.35);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #efd9a4 0%, #e5c887 100%);
}

.projection-tool-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    margin: 0;
    padding: 0.7rem 0.55rem;
    border: none;
    border-right: 1px solid rgba(168, 117, 24, 0.28);
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(180deg, #fffaf0 0%, #f8edcf 100%);
    color: var(--navy-deep);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.projection-tool-slide:last-child {
    border-right: none;
}

.projection-tool-slide:hover:not(.active) {
    background: linear-gradient(180deg, #fffdf8 0%, #fbf3df 100%);
}

.projection-tool-slide.active {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #fff8f2;
    box-shadow: none;
}

@media (max-width: 860px) {
    .projection-tool-slider {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projection-tool-slide {
        border-right: 1px solid rgba(168, 117, 24, 0.28);
        border-bottom: 1px solid rgba(168, 117, 24, 0.28);
    }

    .projection-tool-slide:nth-child(2n) {
        border-right: none;
    }

    .projection-tool-slide:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .projection-tool-slider {
        grid-template-columns: 1fr;
    }

    .projection-tool-slide {
        border-right: none;
        border-bottom: 1px solid rgba(168, 117, 24, 0.28);
    }

    .projection-tool-slide:last-child {
        border-bottom: none;
    }
}

.projection-tool-panel[hidden] {
    display: none !important;
}

.projection-tool-note {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.projection-tool-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.projection-tool-assumptions {
    padding: 1rem 1.1rem 1.15rem;
}

.projection-tool-assumptions h3 {
    margin: 0 0 0.35rem;
}

.projection-tool-fields {
    display: grid;
    gap: 0.75rem;
}

.projection-tool-fields > label,
.projection-tool-radio,
.projection-tool-check {
    display: grid;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

.projection-tool-fields input[type="text"],
.projection-tool-fields input[type="number"],
.projection-tool-fields select {
    width: 100%;
    font-weight: 500;
}

.projection-tool-fields input[type="text"]::placeholder,
.projection-tool-fields input[type="number"]::placeholder {
    font-weight: 400;
    font-style: italic;
    color: #8a8580;
    font-size: 0.92em;
}

.projection-tool-check,
.projection-tool-radio {
    grid-template-columns: auto 1fr;
    align-items: center;
    font-weight: 500;
}

.projection-tool-fieldset {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.75rem 0.75rem;
    margin: 0;
}

.projection-tool-fieldset legend {
    padding: 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.projection-tool-slider-label {
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: 0.82rem;
}

.projection-tool-conditional[hidden] {
    display: none !important;
}

.projection-tool-results .chart-wrap {
    min-height: 220px;
}

.projection-tool-spend-row {
    display: grid;
    grid-template-columns: 1fr minmax(7rem, 8.5rem);
    gap: 0.65rem;
    align-items: end;
}

.projection-tool-advanced {
    margin-top: 0.85rem;
    border-top: 1px solid rgba(10, 43, 93, 0.12);
    padding-top: 0.65rem;
}

.projection-tool-advanced > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--accent, #0a2b5d);
    list-style: none;
}

.projection-tool-advanced > summary::-webkit-details-marker {
    display: none;
}

.projection-tool-advanced > summary::before {
    content: "▸ ";
}

.projection-tool-advanced[open] > summary::before {
    content: "▾ ";
}

.projection-tool-advanced-body {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.projection-tool-hero {
    margin: 0 0 1.1rem;
    padding: 1.1rem 1.2rem 1.15rem;
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(10, 43, 93, 0.08), rgba(10, 43, 93, 0.02));
    border: 1px solid rgba(10, 43, 93, 0.1);
}

.projection-tool-hero-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted, #6d645a);
}

.projection-tool-hero-answer {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--accent, #0a2b5d);
}

.projection-tool-hero-sub,
.projection-tool-hero-meta {
    margin: 0.45rem 0 0;
    color: var(--text, #1f1a14);
    line-height: 1.45;
}

.projection-tool-hero-meta {
    color: var(--muted, #6d645a);
    font-size: 0.95rem;
}

.projection-tool-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.projection-tool-hero-chip {
    display: inline-block;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(10, 43, 93, 0.12);
    font-size: 0.82rem;
    font-weight: 550;
    color: var(--text, #1f1a14);
}

.projection-tool-support-kpis[hidden] {
    display: none;
}

.projection-tool-results .dashboard-card .section-note {
    margin: 0 0.95rem 0.65rem;
}

@media (max-width: 640px) {
    .projection-tool-spend-row {
        grid-template-columns: 1fr;
    }
}

.projection-tool-soon-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #ebe4da;
    color: #6d645a;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.projection-tool-coming-soon {
    padding: 2rem 1rem;
}

.projection-tool-soon-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.projection-tool-coming-soon h3 {
    margin: 0 0 0.5rem;
}

.monte-carlo-longevity {
    margin: 1rem 0;
}

.monte-carlo-longevity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: 0.55rem;
    margin: 0.75rem 0 1rem;
}

.monte-carlo-longevity-card h4 {
    margin: 0;
    font-size: 0.8rem;
}

.monte-carlo-longevity-card p {
    margin: 0.25rem 0 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.monte-carlo-run-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.2rem;
    border: 1px solid var(--border, #d9d0c4);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.55);
}

.monte-carlo-run-choice {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted, #6d645a);
    font: inherit;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 0.35rem;
    cursor: pointer;
}

.monte-carlo-run-choice.is-selected {
    background: var(--accent, #0a2b5d);
    color: #fff;
}

.monte-carlo-progress {
    margin-top: 0.75rem;
}

.monte-carlo-progress-bar {
    height: 0.55rem;
    border-radius: 999px;
    background: #ebe4da;
    overflow: hidden;
}

.monte-carlo-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent, #0a2b5d);
    transition: width 0.15s ease;
}

.monte-carlo-paths-card {
    margin-top: 1rem;
}

.monte-carlo-path-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.75rem 0 1rem;
}

.monte-carlo-path-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 4.75rem;
}

.monte-carlo-path-btn.is-selected {
    border-color: var(--accent, #0a2b5d);
    box-shadow: inset 0 0 0 1px var(--accent, #0a2b5d);
}

.monte-carlo-path-btn-meta {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted, #6d645a);
}

.monte-carlo-path-detail-head {
    margin-bottom: 0.75rem;
}

.monte-carlo-path-detail-head h4 {
    margin: 0 0 0.25rem;
}

.monte-carlo-path-chart-wrap {
    min-height: 275px;
}

.monte-carlo-path-narrative {
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.95rem;
    border-radius: 8px;
    background: rgba(10, 43, 93, 0.06);
    border: 1px solid rgba(10, 43, 93, 0.08);
    color: var(--text, #1f1a14);
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 550;
}

.monte-carlo-path-narrative-line {
    margin: 0;
}

.monte-carlo-path-narrative-line + .monte-carlo-path-narrative-line {
    margin-top: 0.45rem;
}

.monte-carlo-path-narrative-stat {
    font-weight: 600;
    color: var(--accent, #0a2b5d);
}

.monte-carlo-path-table-wrap {
    margin-top: 0.85rem;
}

.monte-carlo-plan-end-row td {
    background: rgba(139, 58, 43, 0.08);
    font-weight: 600;
}

.monte-carlo-bucket-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.monte-carlo-bucket-plan-return {
    color: var(--muted, #6d645a);
    font-weight: 500;
}

.monte-carlo-return-caps[hidden] {
    display: none;
}

.monte-carlo-cap-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .monte-carlo-cap-fields {
        grid-template-columns: 1fr 1fr;
    }
}

.monte-carlo-cap-fields input {
    width: 100%;
}

.monte-carlo-mode-toggle {
    flex-wrap: wrap;
}

.monte-carlo-mode-toggle .monte-carlo-run-choice {
    flex: 1 1 auto;
    min-width: 7.5rem;
}

.monte-carlo-historical-params {
    display: grid;
    gap: 0.75rem;
}

.monte-carlo-historical-params[hidden],
#monteCarloBlockLengthWrap[hidden],
#monteCarloBlocksNote[hidden] {
    display: none;
}

.monte-carlo-reset-defaults {
    margin-top: 0.75rem;
}

#monteCarloAdvancedParamsWrap .projection-tool-fieldset + .projection-tool-fieldset {
    margin-top: 0.85rem;
}

.summary-value-small {
    font-size: 0.95rem;
}

#historicalHistCard[hidden] {
    display: none;
}

@media (max-width: 960px) {
    .projection-tool-layout {
        grid-template-columns: 1fr;
    }
}

.projections-cashflow {
    margin-bottom: 1.5rem;
}

.results-story-compact .results-narrative {
    display: none;
}

.plan-content {
    min-width: 0;
}

.plan-action-bar {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.section-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #fff4e5;
    color: #9a6700;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

.results-story[hidden],
#resultsEmpty[hidden] {
    display: none !important;
}

.results-next-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
}

.results-narrative {
    margin-bottom: 1.25rem;
}

.annual-detail-feature {
    margin-top: 0.35rem;
    border: 1px solid var(--accent-light);
    border-radius: 16px;
    background:
        linear-gradient(165deg, rgba(255, 252, 248, 0.95) 0%, var(--parchment) 48%, #f3ebe2 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 10px 28px rgba(10, 43, 93), 0.06);
    overflow: visible;
}

.annual-detail-feature--story {
    margin-top: 0.75rem;
    border-width: 1px;
    border-color: rgba(200, 149, 46, 0.35);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 14px 36px rgba(10, 43, 93), 0.08);
}

.annual-detail-feature--story .annual-detail-feature-head {
    padding: 1.35rem 1.4rem 1.15rem;
    border-bottom: 1px solid rgba(215, 205, 192, 0.9);
    background:
        linear-gradient(120deg, rgba(245, 234, 222, 0.85) 0%, transparent 62%);
}

.annual-detail-feature--compact .annual-detail-feature-head {
    padding: 1.05rem 1.15rem 0.95rem;
    border-bottom: 1px solid rgba(215, 205, 192, 0.85);
}

.annual-detail-feature-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
}

.annual-detail-feature-copy {
    flex: 1 1 16rem;
    min-width: 0;
}

.annual-detail-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

.annual-detail-feature-copy h3 {
    margin: 0 0 0.35rem;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--copper-deep);
}

.annual-detail-feature--story .annual-detail-feature-copy h3 {
    font-size: 1.5rem;
}

.annual-detail-lede {
    margin: 0;
    max-width: 36rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.annual-detail-feature-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.annual-detail-disclosure {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.annual-detail-disclosure > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.85rem;
    cursor: pointer;
    list-style: none;
    padding: 0.95rem 1.15rem 1.05rem;
    color: var(--ink);
    transition: background 0.15s ease;
}

.annual-detail-feature--story .annual-detail-disclosure > summary {
    padding: 1.05rem 1.4rem 1.15rem;
}

.annual-detail-disclosure > summary::-webkit-details-marker {
    display: none;
}

.annual-detail-disclosure > summary::before {
    content: "";
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.35rem;
    border-right: 2px solid var(--copper);
    border-bottom: 2px solid var(--copper);
    transform: rotate(-45deg);
    transition: transform 0.18s ease;
}

.annual-detail-disclosure[open] > summary::before {
    margin-top: 0.2rem;
    transform: rotate(45deg);
}

.annual-detail-disclosure > summary:hover {
    background: rgba(255, 252, 248, 0.55);
}

.annual-detail-summary-main {
    font-weight: 700;
    color: var(--copper-deep);
}

.annual-detail-cta-close {
    display: none;
}

.annual-detail-disclosure[open] .annual-detail-cta-open {
    display: none;
}

.annual-detail-disclosure[open] .annual-detail-cta-close {
    display: inline;
}

.annual-detail-summary-sub {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.annual-detail-disclosure > .table-wrapper,
.annual-detail-disclosure > .panel-subsection {
    margin: 0 1.15rem 1.15rem;
}

.annual-detail-feature--story .annual-detail-disclosure > .table-wrapper,
.annual-detail-feature--story .annual-detail-disclosure > .panel-subsection,
.annual-detail-feature--story .annual-detail-disclosure > .annual-detail-summary-block {
    margin-left: 1.4rem;
    margin-right: 1.4rem;
}

.annual-detail-disclosure > .panel-subsection:last-child {
    margin-bottom: 1.35rem;
}

.annual-detail-disclosure .table-wrapper {
    background: rgba(255, 252, 248, 0.72);
    border: 1px solid rgba(215, 205, 192, 0.95);
    border-radius: 12px;
    padding: 0.35rem;
}

.annual-detail-summary-block {
    padding: 0 1.35rem 1.15rem;
    scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.annual-detail-feature-head,
.annual-detail-fullwidth-head {
    scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.annual-detail-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0 0 0.75rem;
}

.annual-detail-table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.annual-detail-scroll-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.projection-scroll-table {
    position: relative;
    border: 1px solid rgba(215, 205, 192, 0.95);
    border-radius: 12px;
    background: rgba(255, 252, 248, 0.92);
}

.projection-scroll-track {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.projection-scroll-track--top {
    border-bottom: 1px solid rgba(215, 205, 192, 0.55);
    border-radius: 12px 12px 0 0;
}

.projection-scroll-table:not(.is-scrollable) .projection-scroll-track--top,
.projection-scroll-table:not(.is-scrollable) .projection-scroll-btn {
    display: none;
}

.projection-scroll-track-inner {
    height: 1px;
}

.projection-scroll-btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 2rem;
    height: 2.75rem;
    border: 1px solid rgba(200, 149, 46, 0.45);
    border-radius: 999px;
    background: rgba(255, 252, 248, 0.96);
    color: var(--copper-deep);
    box-shadow: 0 4px 14px rgba(10, 43, 93, 0.12);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.projection-scroll-btn:hover:not(:disabled) {
    background: #fff;
    border-color: rgba(200, 149, 46, 0.75);
}

.projection-scroll-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.projection-scroll-btn--prev {
    left: 0.35rem;
}

.projection-scroll-btn--next {
    right: 0.35rem;
}

.projection-scroll-table.is-scrollable .projection-table-scroll {
    scrollbar-width: thin;
}

.projection-scroll-table::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: linear-gradient(to left, rgba(255, 252, 248, 0.98), transparent);
}

.projection-scroll-table.is-scrollable:not(.is-scrolled-end)::after {
    opacity: 1;
}

.projection-scroll-table::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 2rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: linear-gradient(to right, rgba(255, 252, 248, 0.98), transparent);
    z-index: 2;
}

.projection-scroll-table.is-scrollable:not(.is-scrolled-start)::before {
    opacity: 1;
}

.projection-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: inherit;
}

.projection-table-scroll:focus-visible {
    outline: 2px solid rgba(200, 149, 46, 0.55);
    outline-offset: 2px;
}

.projection-data-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.84rem;
}

.projection-data-table th,
.projection-data-table td {
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid rgba(215, 205, 192, 0.65);
    white-space: nowrap;
    text-align: right;
    vertical-align: middle;
}

.projection-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f0ebe3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--copper-deep);
}

.projection-data-table .projection-percent-row th {
    top: 1.65rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: none;
    color: var(--muted);
    background: #f7f2ea;
}

#projectionsPage .projection-data-table th,
#projectionsPage .projection-data-table td {
    padding-block: 0.26rem;
    padding-inline: 0.65rem;
    line-height: 1.2;
}

#projectionsPage .projection-data-table .projection-percent-row th {
    top: 1.32rem;
}

.projection-data-table td.is-total,
.projection-data-table th.is-total {
    font-weight: 700;
}

.projection-scroll-table[data-sticky-cols="2"] .projection-data-table th:nth-child(1),
.projection-scroll-table[data-sticky-cols="2"] .projection-data-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 3.25rem;
    background: #fffdf9;
    box-shadow: 1px 0 0 rgba(215, 205, 192, 0.85);
}

.projection-scroll-table[data-sticky-cols="2"] .projection-data-table th:nth-child(2),
.projection-scroll-table[data-sticky-cols="2"] .projection-data-table td:nth-child(2) {
    position: sticky;
    left: var(--projection-sticky-col-2-left, 3.25rem);
    z-index: 3;
    min-width: 2.75rem;
    background: #fffdf9;
    box-shadow: 1px 0 0 rgba(215, 205, 192, 0.85);
}

.projection-scroll-table[data-sticky-cols="2"] .projection-data-table thead th:nth-child(-n+2) {
    z-index: 4;
    background: #f0ebe3;
}

.projection-scroll-table[data-sticky-cols="2"] .projection-data-table thead .projection-percent-row th:nth-child(-n+2) {
    background: #f7f2ea;
}

.projection-scroll-table .report-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.projection-scroll-table .report-table th,
.projection-scroll-table .report-table td {
    white-space: nowrap;
}

.projection-scroll-table[data-sticky-cols="2"] .report-table th:nth-child(1),
.projection-scroll-table[data-sticky-cols="2"] .report-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 3.25rem;
    background: var(--card);
    box-shadow: 1px 0 0 var(--border);
}

.projection-scroll-table[data-sticky-cols="2"] .report-table th:nth-child(2),
.projection-scroll-table[data-sticky-cols="2"] .report-table td:nth-child(2) {
    position: sticky;
    left: var(--projection-sticky-col-2-left, 3.25rem);
    z-index: 3;
    min-width: 2.75rem;
    background: var(--card);
    box-shadow: 1px 0 0 var(--border);
}

.projection-scroll-table[data-sticky-cols="2"] .report-table thead th:nth-child(-n+2) {
    z-index: 4;
    background: var(--bg);
}

.report-container .projection-scroll-table {
    margin: 1rem 0;
}

.report-container .projection-scroll-table .report-table {
    margin: 0;
}

@media print {
    .projection-scroll-track--top,
    .projection-scroll-btn {
        display: none !important;
    }
}

.report-container.report-pdf .projection-scroll-track--top,
.report-container.report-pdf .projection-scroll-btn {
    display: none !important;
}

.projection-data-table .col-group-identity {
    background-color: #fffdf9;
    text-align: left;
}

.projection-data-table .col-group-cashflow {
    background-color: rgba(240, 248, 244, 0.92);
}

.projection-data-table .col-group-rmd {
    background-color: rgba(252, 246, 236, 0.92);
}

.projection-data-table .col-group-withdraw {
    background-color: rgba(252, 241, 241, 0.92);
}

.projection-data-table .col-group-balance {
    background-color: rgba(241, 244, 252, 0.92);
}

.projection-data-table thead .col-group-identity {
    background-color: #f0ebe3;
}

.projection-data-table thead .col-group-cashflow {
    background-color: #e8f3ec;
}

.projection-data-table thead .col-group-rmd {
    background-color: #f7f0e2;
}

.projection-data-table thead .col-group-withdraw {
    background-color: #f9ecec;
}

.projection-data-table thead .col-group-balance {
    background-color: #e9edf8;
}

.projection-data-table .col-total-portfolio {
    background-color: rgba(218, 226, 244, 0.98);
    font-weight: 700;
}

.projection-data-table thead .col-total-portfolio {
    background-color: #d0daf0;
    font-weight: 700;
}

.annual-detail-fullwidth {
    overflow-anchor: none;
    width: 100vw;
    max-width: 100vw;
    margin: 1.25rem calc(50% - 50vw) 0;
    padding: 0 0 2rem;
}

.annual-detail-fullwidth-inner {
    width: min(100vw, 100%);
    margin: 0 auto;
    padding: 1.35rem clamp(1rem, 2.5vw, 2rem) 1.5rem;
    border-top: 1px solid rgba(200, 149, 46, 0.35);
    border-bottom: 1px solid rgba(200, 149, 46, 0.25);
    background:
        linear-gradient(180deg, rgba(255, 252, 248, 0.98) 0%, rgba(247, 241, 233, 0.96) 100%);
    box-shadow:
        0 10px 28px rgba(10, 43, 93, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.annual-detail-fullwidth-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    position: sticky;
    top: calc(var(--header-height) + 0.5rem);
    z-index: 25;
    margin: 0 0 1rem;
    padding: 0.85rem 0 1rem;
    background: rgba(255, 252, 248, 0.98);
    border-bottom: 1px solid rgba(200, 149, 46, 0.22);
    scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.annual-detail-fullwidth[hidden] {
    display: none !important;
}

.annual-detail-back-fixed {
    position: fixed;
    bottom: 1.35rem;
    right: 1.35rem;
    z-index: 350;
    box-shadow: 0 8px 24px rgba(10, 43, 93, 0.18);
}

.annual-detail-back-fixed[hidden] {
    display: none !important;
}

.projection-detail-page.page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 2rem;
    gap: 0;
}

.projection-detail-shell {
    width: 100%;
    padding: 1.35rem clamp(1rem, 2.5vw, 2rem) 1.5rem;
    border-top: 1px solid rgba(200, 149, 46, 0.25);
    border-bottom: 1px solid rgba(200, 149, 46, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 252, 248, 0.98) 0%, rgba(247, 241, 233, 0.96) 100%);
}

.projection-detail-page .projection-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.projection-detail-page .projection-detail-header h2 {
    font-size: 1.6rem;
    margin: 0 0 0.35rem;
}

.projection-detail-page .projection-detail-header p {
    margin: 0;
    color: var(--muted);
}

.projection-detail-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.projection-detail-print-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin: 0;
    padding: 0;
    border-bottom: none;
    flex: 1 1 auto;
    min-width: 0;
}

.projection-detail-print-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    margin: 0 0 1rem;
    padding: 0 0 0.85rem;
    border-bottom: 1px solid var(--border);
}

.projection-detail-print-options {
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f7f9fc;
    min-width: 13rem;
}

.projection-detail-print-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.15rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.85rem;
}

.projection-detail-print-options legend {
    padding: 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.projection-detail-print-options label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: var(--ink);
    cursor: pointer;
}

.projection-detail-print-options label:first-of-type {
    margin-top: 0.15rem;
}

.projection-detail-print-options input {
    margin: 0;
}

.projection-detail-print-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.projection-detail-print-banner h1 {
    margin: 0 0 0.2rem;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: -0.02em;
}

.projection-detail-print-meta {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.projection-detail-print-date {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.projection-detail-page--print {
    max-width: none;
    width: 100%;
    padding: 1rem 1.25rem 2rem;
}

.projection-detail-page--print .projection-detail-shell {
    max-width: none;
    width: 100%;
    border: none;
    box-shadow: none;
    background: #fff;
    padding: 0;
}

.projection-detail-page--print .projection-table-scroll {
    overflow: visible !important;
}

.projection-detail-page--print .projection-scroll-table {
    border-radius: 0;
    overflow: visible;
}

.projection-detail-page--print .projection-scroll-track--top,
.projection-detail-page--print .projection-scroll-btn,
.projection-detail-page--print .projection-scroll-table::before,
.projection-detail-page--print .projection-scroll-table::after {
    display: none !important;
}

.projection-detail-page--print .projection-data-table {
    width: max-content;
    max-width: none;
}

.projection-detail-page--print .projection-scroll-table[data-sticky-cols] .projection-data-table :is(th, td):nth-child(-n+2) {
    position: static;
    left: auto;
    box-shadow: none;
}

.projection-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.projection-detail-section h3 {
    margin: 0 0 0.35rem;
}

.projection-detail-section .section-note {
    margin: 0 0 0.75rem;
}

/* Landscape @page for year-by-year detail lives in projection-detail.php only.
   A global @page here would force landscape onto narrative reports as well. */
@media print {
    body[data-page="projection-detail"] {
        background: #fff !important;
    }

    body[data-page="projection-detail"] .site-header,
    body[data-page="projection-detail"] .site-footer,
    body[data-page="projection-detail"] .projection-detail-header-actions,
    body[data-page="projection-detail"] .annual-detail-scroll-hint,
    body[data-page="projection-detail"] .projection-scroll-track--top,
    body[data-page="projection-detail"] .projection-scroll-btn,
    body[data-page="projection-detail"] #formError,
    body[data-page="projection-detail"] #projectionDetailEmpty {
        display: none !important;
    }

    body.projection-detail-print-view .projection-detail-print-banner {
        display: flex !important;
        break-after: avoid;
        page-break-after: avoid;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body.projection-detail-print-view .projection-detail-print-topbar {
        display: block !important;
        border-bottom: 1px solid #ccc !important;
        margin-bottom: 0.4rem !important;
        padding-bottom: 0.35rem !important;
    }

    body.projection-detail-print-view .projection-detail-print-options,
    body.projection-detail-print-view .no-print {
        display: none !important;
    }

    body.projection-detail-print-view .projection-detail-section[hidden] {
        display: none !important;
    }

    body.projection-detail-print-view .projection-detail-print-banner h1 {
        font-size: 1.05rem !important;
    }

    body.projection-detail-print-view .projection-detail-print-kicker,
    body.projection-detail-print-view .projection-detail-print-meta,
    body.projection-detail-print-view .projection-detail-print-date {
        font-size: 0.7rem !important;
    }

    body[data-page="projection-detail"] .page,
    body[data-page="projection-detail"] .projection-detail-page {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body[data-page="projection-detail"] .projection-detail-shell {
        width: 100% !important;
        max-width: none !important;
        border: none !important;
        background: #fff !important;
        padding: 0 !important;
    }

    body[data-page="projection-detail"] .projection-detail-header {
        margin: 0 0 0.45rem !important;
    }

    body[data-page="projection-detail"] .projection-detail-header h2 {
        font-size: 1rem !important;
        margin: 0 0 0.15rem !important;
    }

    body[data-page="projection-detail"] .projection-detail-header p {
        font-size: 0.75rem !important;
        color: #333 !important;
    }

    body[data-page="projection-detail"] .projection-detail-content {
        gap: 0.65rem !important;
    }

    body[data-page="projection-detail"] .projection-detail-section {
        break-inside: auto;
        page-break-inside: auto;
        margin: 0 0 0.55rem !important;
    }

    body[data-page="projection-detail"] .projection-detail-section h3 {
        font-size: 0.82rem !important;
        margin: 0 0 0.2rem !important;
    }

    body[data-page="projection-detail"] .projection-scroll-table {
        border: none !important;
        border-radius: 0 !important;
        background: #fff !important;
        break-inside: auto;
        page-break-inside: auto;
    }

    body[data-page="projection-detail"] .projection-scroll-table::before,
    body[data-page="projection-detail"] .projection-scroll-table::after {
        display: none !important;
    }

    body[data-page="projection-detail"] .projection-table-scroll {
        overflow: visible !important;
        width: 100% !important;
    }

    body[data-page="projection-detail"] .projection-data-table {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 8pt !important;
    }

    body[data-page="projection-detail"] .projection-data-table th,
    body[data-page="projection-detail"] .projection-data-table td {
        padding: 0.18rem 0.28rem !important;
        white-space: nowrap;
        font-size: 8pt !important;
    }

    body[data-page="projection-detail"] .projection-data-table thead th {
        position: static !important;
        top: auto !important;
        font-size: 7.5pt !important;
        background: #0a2b5d !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body[data-page="projection-detail"] .projection-data-table .projection-percent-row th {
        top: auto !important;
        font-size: 7pt !important;
        background: #e8eef3 !important;
        color: #13243d !important;
    }

    body.projection-detail-print-view .projection-detail-section {
        break-before: page;
        page-break-before: always;
    }

    body.projection-detail-print-view .projection-detail-section:first-of-type {
        break-before: auto;
        page-break-before: auto;
    }

    body[data-page="projection-detail"] .projection-scroll-table[data-sticky-cols="2"] .projection-data-table :is(th, td):nth-child(-n+2) {
        position: static !important;
        left: auto !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    body[data-page="projection-detail"] .projection-scroll-table[data-sticky-cols="2"] .projection-data-table thead :is(th, td):nth-child(-n+2) {
        background: #ececec !important;
    }

    body[data-page="projection-detail"] .projection-data-table :is(.col-group-identity, .col-group-cashflow, .col-group-rmd, .col-group-withdraw, .col-group-balance, .col-total-portfolio) {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.projection-scroll-table--wide {
    border-color: rgba(200, 149, 46, 0.35);
}

@media (max-width: 720px) {
    .annual-detail-feature-tools {
        width: 100%;
    }

    .annual-detail-feature-tools .btn {
        width: 100%;
    }

    .annual-detail-table-actions {
        width: 100%;
    }

    .annual-detail-table-actions .btn {
        flex: 1 1 auto;
    }
}

.projection-action-bar .btn {
    margin-top: 0;
}

.projection-action-bar {
    align-items: center;
}

.projection-stale-notice {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border-left: 3px solid var(--gold, #c4a35a);
    background: rgba(196, 163, 90, 0.12);
    color: var(--navy-deep);
    font-size: 0.9rem;
    font-weight: 500;
}

.projection-stale-notice[hidden] {
    display: none !important;
}

.projection-accuracy-warning {
    margin: 0.75rem 0 0;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border-left: 3px solid var(--danger, #b42318);
    background: rgba(180, 35, 24, 0.08);
    color: var(--navy-deep, #10233a);
    font-size: 0.92rem;
    font-weight: 550;
    line-height: 1.45;
}

.projection-accuracy-warning a {
    color: var(--accent, #0a2b5d);
    font-weight: 650;
    text-decoration: underline;
}

.projection-accuracy-warning[hidden] {
    display: none !important;
}

.projection-summary-block {
    margin-top: 0.5rem;
}

.projection-summary-block .results-next-steps {
    margin-top: 1rem;
}

.summary-card--stale,
.results-summary-grid.is-stale .summary-card {
    opacity: 0.68;
    border-style: dashed;
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 7px,
            rgba(16, 35, 58, 0.028) 7px,
            rgba(16, 35, 58, 0.028) 14px
        ),
        linear-gradient(180deg, #fffcf8, var(--parchment));
}

a.btn.is-disabled,
.btn.is-disabled {
    opacity: 0.42;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(0.15);
}

.my-data-summary-panel {
    margin-top: 1.5rem;
}

.my-data-summary-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.my-data-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.my-data-summary-note {
    margin: 0 0 1rem;
}

.my-data-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-data-summary-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: flex-start;
}

.my-data-summary-aside {
    padding-top: 0.35rem;
    border-top: 1px dashed var(--border);
}

.my-data-summary-subheading {
    margin: 0 0 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
}

.my-data-summary-section {
    background: var(--card);
    border: 1px solid var(--warm-border);
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    width: max-content;
    max-width: 100%;
}

.my-data-summary-section--budgeting {
    flex: 1 1 18rem;
    width: auto;
    min-width: min(100%, 14rem);
    max-width: 100%;
}

.my-data-summary-section h3 {
    margin: 0 0 0.35rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink);
}

.my-data-summary-grid {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: 0.45rem;
    row-gap: 0.12rem;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    justify-items: start;
    text-align: left;
}

.my-data-summary-grid--3col {
    grid-template-columns: max-content max-content max-content;
}

.my-data-summary-grid--4col {
    grid-template-columns: max-content max-content max-content max-content;
}

.my-data-summary-budgeting-meta,
.my-data-summary-budgeting-total {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.my-data-summary-budgeting-meta {
    margin-bottom: 0.15rem;
}

.my-data-summary-budgeting-total {
    margin-top: 0.2rem;
    padding-top: 0.2rem;
    border-top: 1px solid var(--border);
}

.my-data-summary-budgeting-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(max(10.75rem, calc((100% - 2rem) / 3)), 1fr));
    column-gap: 1rem;
    row-gap: 0.12rem;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.my-data-summary-budgeting-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 0.45rem;
    align-items: baseline;
    min-width: 0;
}

.my-data-summary-budgeting-item--band {
    grid-template-columns: max-content max-content;
    width: max-content;
    max-width: 100%;
}

.my-data-summary-budgeting-item--with-inflation {
    grid-template-columns: minmax(0, 1fr) max-content max-content;
}

.my-data-summary-budgeting-meta .my-data-summary-divider {
    width: 100%;
}

.my-data-summary-label {
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.my-data-summary-grid dt {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.my-data-summary-divider {
    grid-column: 1 / -1;
    border: 0;
    border-top: 1px solid var(--border);
    margin: 0.2rem 0;
    height: 0;
}

.my-data-summary-grid dd,
.my-data-summary-grid span:not(.my-data-summary-label):not(.my-data-summary-divider),
.my-data-summary-budgeting-item span:not(.my-data-summary-label),
.my-data-summary-budgeting-meta span:not(.my-data-summary-label),
.my-data-summary-budgeting-total span:not(.my-data-summary-label) {
    margin: 0;
    text-align: left;
    color: var(--ink);
}

.my-data-summary-grid dd.is-override,
.my-data-summary-grid span.is-override,
.my-data-summary-budgeting-item span.is-override,
.my-data-summary-budgeting-meta span.is-override,
.my-data-summary-budgeting-total span.is-override {
    font-weight: 700;
    font-style: italic;
}

.my-data-summary-grid span.is-total,
.my-data-summary-label.is-total {
    font-weight: 600;
    color: var(--ink);
}

@media (max-width: 640px) {
    .my-data-summary-section {
        width: 100%;
    }

    .my-data-summary-section--budgeting {
        flex-basis: 100%;
    }

    .my-data-summary-budgeting-items {
        grid-template-columns: 1fr;
    }

    .my-data-summary-grid dt,
    .my-data-summary-label {
        white-space: normal;
    }

    .my-data-summary-grid--4col {
        grid-template-columns: max-content max-content;
    }
}

.projection-panel.projection-is-stale .results-story-compact {
    opacity: 0.72;
}

.projections-story-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 0.65rem;
}

.graphs-size-toggle {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.graphs-size-toggle:hover {
    color: var(--navy);
}

.graphs-size-toggle[aria-pressed="true"] {
    color: var(--navy-deep);
    font-weight: 600;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
}

.scenario-library-panel {
    border-top: 3px solid #e8ebf4;
}

@media (max-width: 980px) {
    .plan-workspace {
        grid-template-columns: 1fr;
    }

    .plan-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.2rem;
        padding-top: 0.85rem;
    }

    .plan-nav-heading {
        grid-column: 1 / -1;
    }

    .plan-nav-item.tab {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 0.7rem 0.85rem;
        border-radius: 8px;
    }

    .plan-nav-item.tab.active {
        border-bottom-color: transparent;
    }

    .plan-readiness {
        grid-column: 1 / -1;
    }
}

.section-card.full {
    grid-column: 1 / -1;
}

.section-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.dashboard-banner {
    background: #f0f7ff;
    border: 1px solid #d6e4ff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.dashboard-banner a {
    color: var(--accent);
    font-weight: 600;
}

.dashboard-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.dashboard-select-banner {
    background: var(--accent-soft);
    border: 1px solid var(--accent-light);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.dashboard-select-banner .dashboard-controls {
    margin-bottom: 0;
}

.dashboard-select-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.scenario-switcher .dashboard-controls {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.85rem;
}

.scenario-switcher .dashboard-controls label {
    flex: 0 0 auto;
    margin: 0;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--navy-deep);
    white-space: nowrap;
}

.plan-info-panel .scenario-switcher {
    margin-bottom: 0;
    margin-top: 0.85rem;
}

.scenario-switcher-select {
    width: auto;
    min-width: 14rem;
    max-width: min(100%, 22rem);
    flex: 0 1 auto;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 0.55rem 0.85rem;
}

.scenario-switcher-actions {
    margin: 0;
}

.scenario-switcher-actions .projection-stale-notice {
    margin-bottom: 0;
}

.scenario-manager-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.scenario-manager-intro {
    max-width: min(72rem, 100%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scenario-manager-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.scenario-manager-intro strong {
    color: var(--navy-deep);
    font-weight: 650;
}

.scenario-nickname-cell {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.scenario-nickname-text {
    font-weight: 600;
    color: var(--ink);
    min-width: 0;
}

.scenario-rename-btn {
    flex-shrink: 0;
    font-size: 0.82rem;
}

.scenario-name-hint {
    margin: 0 0 0.85rem;
}

#scenarioManager {
    scroll-margin-top: 1.25rem;
}

.scenario-manager-table td,
.scenario-manager-table th {
    vertical-align: middle;
}

.scenario-manager-table .scenario-actions {
    white-space: nowrap;
    text-align: right;
}

.scenario-actions-inner {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.scenario-manager-table .scenario-actions .btn {
    margin: 0;
}

.scenario-manager-table .scenario-actions .copy-scenario {
    min-height: 2.15rem;
    display: inline-flex;
    align-items: center;
}

.scenario-manager-table .delete-scenario,
.scenario-manager-table .scenario-action-spacer {
    min-width: 1.85rem;
    min-height: 2.15rem;
    padding: 0.15rem 0.35rem;
}

.scenario-manager-table .scenario-action-spacer {
    display: inline-block;
    visibility: hidden;
    box-sizing: border-box;
}

.dashboard-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    cursor: pointer;
}

.dashboard-toggle input {
    width: 36px;
    height: 18px;
    accent-color: var(--accent);
}

.dashboard-controls label {
    font-weight: 600;
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.dashboard-card.full {
    grid-column: 1 / -1;
}

.dashboard-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.dashboard-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.dashboard-card-head h3 {
    margin-bottom: 0;
}

.chart-data-toggle {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
}

.chart-data-toggle:hover,
.dashboard-card.is-showing-data .chart-data-toggle {
    color: var(--navy);
    text-decoration: underline;
}

.chart-data-panel {
    display: none;
    max-height: 22rem;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.dashboard-card.is-showing-data .chart-wrap,
.dashboard-card.is-showing-data .cashflow-totals,
.dashboard-card.is-showing-data .cashflow-scrubber,
.dashboard-card.is-showing-data .allocation-year-scrubber,
.dashboard-card.is-showing-data .section-note {
    display: none;
}

.dashboard-card.is-showing-data .chart-data-panel {
    display: block;
}

.chart-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.chart-data-table th,
.chart-data-table td {
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.chart-data-table thead th {
    position: sticky;
    top: 0;
    background: var(--accent-soft);
    color: var(--navy-deep);
    font-weight: 700;
    z-index: 1;
}

.chart-data-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dashboard-large .chart-data-panel {
    max-height: 36rem;
}

.chart-wrap {
    position: relative;
    min-height: 260px;
}

.cashflow-card .chart-wrap,
.allocation-year-card .chart-wrap {
    min-height: 260px;
}

.cashflow-totals {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.cashflow-total {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cashflow-total span {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

.cashflow-total strong {
    font-size: 1.15rem;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.cashflow-scrubber,
.allocation-year-scrubber {
    margin-top: 1rem;
}

.cashflow-scrubber-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

#cashflowYearLabel,
#allocationYearLabel {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.cashflow-end-year {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

#cashflowYearSlider,
#allocationYearSlider {
    display: block;
    width: 100%;
    min-width: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

#cashflowYearSlider:disabled,
#allocationYearSlider:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.dashboard-large .dashboard-grid {
    grid-template-columns: 1fr;
}

.dashboard-large .chart-wrap {
    min-height: 420px;
}

@media (max-width: 980px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.section-note {
    color: var(--muted);
    font-size: 0.9rem;
    margin: -0.5rem 0 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.segmented-control {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 3px;
    border: 2px solid #b8c4d0;
    border-radius: 6px;
    background: var(--stone);
    max-width: 36rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.segmented-control--primary {
    background: linear-gradient(180deg, #eef2f6 0%, var(--stone) 100%);
    border-color: #a8b6c4;
}

.segmented-control--secondary {
    max-width: 22rem;
    margin-bottom: 1rem;
    padding: 2px;
    background: var(--parchment);
    border: 2px solid var(--warm-border);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.spend-method-slider {
    margin: 0 0 1.35rem;
}

.segmented-thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 35, 58, 0.07);
    transition: transform 0.2s ease, background 0.16s ease;
    pointer-events: none;
    z-index: 0;
}

.segmented-control--primary .segmented-thumb {
    background: var(--navy);
    box-shadow: 0 1px 3px rgba(16, 35, 58, 0.18);
}

.segmented-control--secondary .segmented-thumb {
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc(50% - 2px);
    border-radius: 3px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-light);
    box-shadow: none;
}

.segmented-control.is-second-active .segmented-thumb {
    transform: translateX(100%);
}

.segmented-option {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0.62rem 0.85rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    transition: color 0.16s ease;
}

.segmented-control--secondary .segmented-option {
    padding: 0.5rem 0.7rem;
    font-size: 0.84rem;
}

.segmented-option.is-active {
    color: var(--navy);
    font-weight: 600;
}

.segmented-control--primary .segmented-option.is-active {
    color: #fff;
}

.segmented-control--primary .segmented-option:not(.is-active) {
    color: var(--muted);
}

.segmented-control--secondary .segmented-option.is-active {
    color: var(--navy-soft);
}

.segmented-option:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: -2px;
}

.spend-panel {
    margin-top: 0.25rem;
}

.spend-all-years {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 22rem;
    margin-bottom: 0.85rem;
}

.spend-all-years label {
    font-size: 0.88rem;
    color: var(--muted);
}

.spend-all-years[hidden],
.spend-vary-panel[hidden],
.spend-panel[hidden] {
    display: none !important;
}

.spend-vary-panel {
    margin-bottom: 1rem;
}

.spend-adjustments-heading {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--text, #1f1a14);
}

.spend-vary-panel .section-note {
    margin-top: 0;
}

.spend-ranges-wrapper {
    margin-top: 0.35rem;
    overflow-x: hidden;
}

.spend-ranges-table {
    table-layout: fixed;
    width: 100%;
}

.spend-ranges-table th,
.spend-ranges-table td {
    white-space: normal;
    vertical-align: middle;
}

.spend-ranges-table .spend-range-year-col {
    width: 28%;
}

.spend-ranges-table .spend-range-amount-col {
    width: 36%;
}

.spend-ranges-table .spend-range-actions-col {
    width: 2.75rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    text-align: center;
}

.spend-ranges-table select {
    width: 100%;
    min-width: 0;
}

.spend-ranges-table .spend-range-amount-input {
    width: 100%;
    min-width: 0;
    max-width: 9rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.spend-ranges-table .remove-spend-range {
    min-width: 1.85rem;
    padding: 0.15rem 0.35rem;
}

.custom-summary {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.custom-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.custom-summary-row span {
    font-variant-numeric: tabular-nums;
}

.custom-data-body {
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.field-inline-actions input {
    width: min(100%, 7rem);
}

.rmd-start-age-hint {
    margin: 0.65rem 0 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.plan-content .section-note.rmd-start-age-hint {
    margin: 0.65rem 0 0;
}

.section-card:has(#rmdStartAge) .column-table td:last-child {
    min-width: 0;
}

.section-card:has(#rmdStartAge) .table-wrapper {
    margin-bottom: 0;
}

.rmd-guide-table th,
.rmd-guide-table td {
    text-align: left;
}

.modal-card-scroll {
    max-width: 640px;
    width: 100%;
}

.field-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--muted);
}

input.is-overridden,
select.is-overridden {
    border-color: #9fb6f5;
    background: #dfe9ff;
    font-weight: 600;
}

input.is-profile-default,
select.is-profile-default {
    font-style: italic;
    color: var(--muted);
}

input.is-overridden,
select.is-overridden {
    font-style: normal;
    color: var(--ink);
}

.plan-panel {
    position: relative;
    padding-left: 3rem;
    scroll-margin-top: calc(var(--header-height) + 0.5rem);
}

.plan-mode-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2.4rem;
    background: var(--mode-baseline);
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-mode-bar.scenario {
    background: var(--mode-scenario);
}

.plan-mode-bar span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: #fff8f2;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.plan-info-panel {
    border-left: 6px solid var(--mode-baseline);
}

.plan-info-panel.plan-info-profile {
    background:
        linear-gradient(135deg, var(--mode-baseline-soft) 0%, #f6f4ee 55%, var(--parchment) 100%);
}

.plan-info-panel.plan-info-scenario {
    border-left-color: var(--mode-scenario);
    background:
        linear-gradient(135deg, var(--mode-scenario-soft) 0%, #f8f1ea 55%, var(--parchment) 100%);
}

.toggle {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--ink);
}

.toggle input {
    width: auto;
}

.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
}

.section-card.full > .table-wrapper:has(#typeTotalsTable),
.section-card.full > .table-wrapper:has(#combinedTotalsTable) {
    overflow-x: auto;
}

.portfolio-table {
    table-layout: fixed;
    width: 100%;
}

.portfolio-table th {
    white-space: normal;
    line-height: 1.25;
    vertical-align: bottom;
}

.portfolio-table th:nth-child(1),
.portfolio-table td:nth-child(1) {
    width: 48%;
    min-width: 0;
    white-space: normal;
}

.portfolio-table th:nth-child(2),
.portfolio-table td:nth-child(2) {
    width: 28%;
    min-width: 8.5rem;
    text-align: right;
}

.portfolio-table th:nth-child(3),
.portfolio-table td:nth-child(3) {
    width: 24%;
    min-width: 7.25rem;
    text-align: right;
}

.portfolio-table td input {
    width: 100%;
    min-width: 0;
    padding: 0.45rem 0.35rem;
}

.portfolio-table td {
    vertical-align: middle;
}

#typeTotalsTable {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

#typeTotalsTable select,
#typeTotalsTable input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#typeTotalsTable th:nth-child(1),
#typeTotalsTable td:nth-child(1) {
    width: auto;
    min-width: 0;
}

#typeTotalsTable th:nth-child(2),
#typeTotalsTable td:nth-child(2) {
    width: 9.5rem;
    min-width: 0;
    text-align: right;
}

#typeTotalsTable th:nth-child(3),
#typeTotalsTable td:nth-child(3) {
    width: 5.25rem;
    min-width: 0;
    text-align: right;
}

#typeTotalsTable th:nth-child(4),
#typeTotalsTable td:nth-child(4),
#typeTotalsTable th.col-remove,
#typeTotalsTable td.col-remove {
    width: 2.5rem;
    min-width: 2.5rem;
    max-width: 2.5rem;
}

#combinedTotalsTable {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

#combinedTotalsTable th:nth-child(1),
#combinedTotalsTable td:nth-child(1) {
    width: 24%;
}

#combinedTotalsTable th:nth-child(2),
#combinedTotalsTable td:nth-child(2),
#combinedTotalsTable th:nth-child(3),
#combinedTotalsTable td:nth-child(3),
#combinedTotalsTable th:nth-child(4),
#combinedTotalsTable td:nth-child(4) {
    width: 15%;
}

#combinedTotalsTable th:nth-child(5),
#combinedTotalsTable td:nth-child(5),
#combinedTotalsTable th:nth-child(6),
#combinedTotalsTable td:nth-child(6) {
    width: 13%;
}

#accountsTable {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

#accountsTable th,
#accountsTable td {
    vertical-align: middle;
}

#accountsTable th:nth-child(1),
#accountsTable td:nth-child(1) {
    width: 22%;
    min-width: 0;
}

#accountsTable th:nth-child(2),
#accountsTable td:nth-child(2) {
    width: auto;
    min-width: 0;
}

#accountsTable th:nth-child(3),
#accountsTable td:nth-child(3) {
    width: 16%;
    min-width: 0;
}

#accountsTable th:nth-child(4),
#accountsTable td:nth-child(4) {
    width: 7.25rem;
    min-width: 0;
    text-align: right;
}

#accountsTable th:nth-child(5),
#accountsTable td:nth-child(5) {
    width: 4.25rem;
    min-width: 0;
    text-align: right;
}

#accountsTable th.col-rmd,
#accountsTable td.col-rmd {
    width: 3.25rem;
    min-width: 3.25rem;
    max-width: 3.5rem;
    text-align: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

#accountsTable th.col-rmd .th-tip {
    border-bottom: 1px dotted var(--muted);
    cursor: help;
    font-weight: 700;
}

#accountsTable td.col-rmd input[type="checkbox"] {
    width: auto;
    margin: 0;
}

#accountsTable th.col-remove,
#accountsTable td.col-remove {
    width: 2.5rem;
    min-width: 2.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    text-align: center;
}

#accountsTable td input,
#accountsTable td select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.45rem 0.35rem;
}

#accountsTable td:nth-child(5) input {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
}

.btn-icon {
    padding: 0.2rem 0.4rem;
    min-width: 2rem;
    line-height: 1;
    font-size: 1.2rem;
    font-weight: 500;
}

.column-table td {
    padding: 0.5rem 0.75rem;
}

.column-table td:first-child {
    color: var(--muted);
    font-weight: 600;
    width: 65%;
}

.budgeting-category-table td:first-child {
    width: 34%;
}

.budgeting-category-table th,
.budgeting-category-table td {
    vertical-align: middle;
}

.budgeting-category-table th:not(:first-child),
.budgeting-category-table td:not(:first-child) {
    width: 33%;
}

.budgeting-category-table--no-inflation .budgeting-inflation-col {
    display: none;
}

.budgeting-category-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.budgeting-category-label > span {
    color: var(--muted);
    font-weight: 600;
}

.budgeting-category-row.is-expanded > td {
    background: #e8edf6;
    border-top: 1px solid #cfd8e8;
}

.budgeting-category-row.is-expanded .budgeting-category-label > span {
    color: var(--ink);
}

.budgeting-category-row.is-expanded .budgeting-category-total {
    background: rgba(255, 255, 255, 0.55);
}

.budgeting-items-toggle {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
}

.budgeting-items-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.budgeting-items-toggle[aria-expanded="true"] {
    background: #dfe7f4;
    border-color: var(--accent);
    color: var(--accent);
}

.budgeting-category-total {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.45rem;
    border: 1px solid transparent;
    border-radius: 10px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: calc(0.95rem - 1px);
    font-weight: 600;
    color: var(--ink);
    min-height: calc(0.55rem * 2 + 1em + 2px);
}

.budgeting-category-total.is-empty {
    font-weight: 400;
    color: var(--muted);
}

.budgeting-category-total.is-empty::before {
    content: "—";
}

.budgeting-items-row > td {
    padding: 0;
    background: #f0f3f9;
    border-bottom: 1px solid #cfd8e8;
    color: var(--ink);
    font-weight: 400;
}

.budgeting-items-panel {
    margin: 0 0.65rem 0.7rem calc(2.35rem + 25px);
    padding: 0.55rem 0.65rem 0.55rem 0.85rem;
    border-radius: 10px;
    background: #f7f9fc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.budgeting-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.budgeting-item-row {
    display: grid;
    grid-template-columns: minmax(7rem, 1.15fr) 2.25rem minmax(6.5rem, 0.75fr) minmax(6rem, 1.1fr) minmax(5.5rem, 0.85fr) 2rem;
    gap: 0.4rem;
    align-items: center;
}

.budgeting-item-row--non-itemized {
    grid-template-columns: minmax(0, 1.4fr) 2.25rem minmax(0, 1fr) 2rem;
}

.budgeting-link-badge,
.budgeting-link-badge-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.35rem;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: var(--mode-baseline-soft, #e8f0ea);
    color: var(--mode-baseline, #2f6b45);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.budgeting-link-badge:hover {
    filter: brightness(0.97);
}

.budgeting-link-badge[hidden],
.budgeting-link-badge-slot {
    display: inline-flex !important;
    visibility: hidden;
    pointer-events: none;
}

.budgeting-linked-txn-table {
    width: 100%;
    font-size: 0.9rem;
}

.budgeting-item-label {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.84rem;
    padding-left: 0.15rem;
}

.budgeting-item-row input[type="text"],
.budgeting-item-row select {
    width: 100%;
    margin: 0;
    font-size: 0.88rem;
}

.budgeting-item-row [data-budgeting-item-name] {
    font-weight: 400;
    color: var(--ink);
}

.budgeting-item-row [data-budgeting-item-rank] {
    font-size: 0.8rem;
    color: var(--ink);
    padding: 0.4rem 0.45rem;
    min-height: calc(0.55rem * 2 + 1em + 2px);
}

.budgeting-item-row .budgeting-item-notes,
.budgeting-item-row [data-budgeting-item-notes] {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--ink);
}

.budgeting-item-row .budgeting-item-notes::placeholder,
.budgeting-item-row [data-budgeting-item-notes]::placeholder {
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 400;
    color: #8b95a5;
}

.budgeting-amount-field {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    padding: 0 0.35rem 0 0.55rem;
    min-height: calc(0.55rem * 2 + 1em + 2px);
}

.budgeting-amount-field:focus-within {
    outline: 2px solid rgba(10, 43, 93, 0.22);
    border-color: var(--accent);
}

.budgeting-amount-prefix {
    flex-shrink: 0;
    color: var(--muted);
    font-weight: 600;
    font-size: calc(0.95rem - 1px);
    line-height: 1;
}

.budgeting-amount-field input[type="text"] {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.45rem 0.35rem 0.45rem 0.25rem;
    box-shadow: none;
    outline: none;
    min-width: 0;
}

.budgeting-amount-field input[type="text"]:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.budgeting-item-actions {
    display: block;
    width: 2rem;
}

.budgeting-item-remove {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--muted);
}

.budgeting-item-remove:hover {
    color: #9b1c1c;
}

.budgeting-item-row.is-blank-item .budgeting-item-remove {
    visibility: hidden;
    pointer-events: none;
}

.budgeting-scratchpad {
    margin-top: 1.75rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(10, 43, 93, 0.12);
}

.budgeting-scratchpad-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    margin-bottom: 0.85rem;
}

.budgeting-scratchpad-title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-deep, #061f45);
}

.budgeting-scratchpad-header .section-note {
    margin: 0;
    max-width: 42rem;
}

.budgeting-scratchpad-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.budgeting-scratchpad-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem;
    border: 1px solid rgba(10, 43, 93, 0.1);
    border-radius: 10px;
    background: #f7f9fc;
}

.budgeting-scratchpad-row {
    display: grid;
    grid-template-columns: 1.5rem minmax(7rem, 1.1fr) minmax(6rem, 1.15fr) minmax(5.5rem, 0.85fr) auto 2rem;
    gap: 0.4rem;
    align-items: center;
}

.budgeting-scratchpad-select {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.budgeting-scratchpad-move {
    white-space: nowrap;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    border-radius: 8px;
    min-height: 0;
}

.budgeting-scratchpad-row.is-blank-item .budgeting-scratchpad-move,
.budgeting-scratchpad-row.is-blank-item .budgeting-item-remove,
.budgeting-scratchpad-row.is-blank-item .budgeting-scratchpad-select {
    visibility: hidden;
    pointer-events: none;
}

.budgeting-scratchpad-modal {
    width: min(560px, 100%);
}

.budgeting-scratchpad-modal-fields {
    display: grid;
    gap: 0.75rem;
}

.budgeting-scratchpad-modal-fields .input-group {
    display: grid;
    gap: 0.3rem;
}

.budgeting-scratchpad-modal-fields label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.budgeting-scratchpad-group-note {
    margin-top: 0.25rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(200, 149, 46, 0.35);
    border-left: 3px solid var(--gold, #c8952e);
    border-radius: 8px;
    background: #fbf6ea;
}

.budgeting-scratchpad-group-note p {
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    color: var(--ink);
    line-height: 1.45;
}

.budgeting-scratchpad-group-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    .budgeting-items-panel {
        margin-left: calc(1.35rem + 25px);
        margin-right: 0.45rem;
        padding-left: 0.65rem;
    }

    .budgeting-item-row {
        grid-template-columns: minmax(0, 1fr) 2.25rem minmax(0, 1fr) 2rem;
        grid-template-areas:
            "name badge notes remove"
            "rank badge amount remove";
    }

    .budgeting-item-row--non-itemized {
        grid-template-columns: minmax(0, 1fr) 2.25rem 2rem;
        grid-template-areas:
            "name badge remove"
            "amount badge remove";
    }

    .budgeting-item-row .budgeting-item-label,
    .budgeting-item-row [data-budgeting-item-name] {
        grid-area: name;
    }

    .budgeting-item-row .budgeting-link-badge,
    .budgeting-item-row .budgeting-link-badge-slot {
        grid-area: badge;
    }

    .budgeting-item-row [data-budgeting-item-rank] {
        grid-area: rank;
    }

    .budgeting-item-row [data-budgeting-item-notes] {
        grid-area: notes;
    }

    .budgeting-item-row .budgeting-amount-field {
        grid-area: amount;
    }

    .budgeting-item-row .budgeting-item-actions,
    .budgeting-item-row .budgeting-item-remove {
        grid-area: remove;
    }

    .budgeting-scratchpad-row {
        grid-template-columns: 1.5rem minmax(0, 1fr) 2rem;
        grid-template-areas:
            "select name remove"
            "select notes remove"
            "select amount remove"
            "select move remove";
    }

    .budgeting-scratchpad-select { grid-area: select; align-self: start; padding-top: 0.45rem; }
    .budgeting-scratchpad-row [data-scratch-name] { grid-area: name; }
    .budgeting-scratchpad-row [data-scratch-notes] { grid-area: notes; }
    .budgeting-scratchpad-row .budgeting-amount-field { grid-area: amount; }
    .budgeting-scratchpad-row .budgeting-scratchpad-move { grid-area: move; justify-self: start; }
    .budgeting-scratchpad-row .budgeting-item-remove { grid-area: remove; }
}

.budgeting-per-category-row td {
    font-weight: 400;
    color: var(--ink);
}

.budgeting-per-category-toggle {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ink);
    cursor: pointer;
}

.budgeting-per-category-toggle input[type="checkbox"] {
    flex-shrink: 0;
    margin: 0;
}

.column-table input[type="number"],
.column-table input[type="text"],
.column-table select {
    width: 100%;
}

.table-wrapper.compact {
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

thead {
    background: #f1f3f9;
}

th,
td {
    padding: 0.75rem 0.8rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

tbody tr:hover {
    background: #f8faff;
}

.action-bar {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.action-bar[hidden],
.projection-action-bar[hidden] {
    display: none !important;
}

.summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 1.5rem;
}

.summary-card {
    background: #f8f9fd;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid #eef0f7;
}

.summary-card h4 {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.summary-card p {
    font-size: 1.1rem;
    font-weight: 600;
}

.panel-subsection {
    margin-top: 2rem;
}

.panel-subsection h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.text-summary {
    background: #f8f9fd;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #eef0f7;
    font-size: 0.95rem;
    color: var(--ink);
}

.text-summary h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.text-summary p {
    margin: 0 0 0.6rem 0;
}

.feature-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
    background: #f8f9fd;
    border: 1px solid #eef0f7;
    padding: 1.25rem;
    border-radius: 14px;
}

.site-footer {
    padding: 2rem 3rem 3rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.empty-state {
    padding: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(18, 24, 38, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    width: min(520px, 100%);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--muted);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.form-error {
    color: var(--danger);
    font-size: 0.88rem;
}

.defaults-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.defaults-item {
    background: #f6f7fb;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
}

@media print {
    body {
        background: #fff;
    }

    .site-header,
    .main-menu,
    .user-panel,
    .action-bar,
    .btn,
    .panel-header p,
    #scenarioTable,
    #scenarioEmpty,
    .modal {
        display: none !important;
    }

    .panel {
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }

    .page {
        padding: 0;
    }

    table {
        font-size: 0.75rem;
    }
}

@media (min-width: 960px) {
    .section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.scenario-profile {
    background-color: #f2f4f7;
    font-weight: 600;
}

.scenario-profile-active-profile {
    background-color: var(--mode-baseline-soft);
    box-shadow: inset 4px 0 0 var(--mode-baseline);
}

.scenario-profile-active-scenario {
    background-color: var(--mode-scenario-soft);
    box-shadow: inset 4px 0 0 var(--mode-scenario);
}

.scenario-active {
    background-color: var(--mode-scenario-soft);
    box-shadow: inset 4px 0 0 var(--mode-scenario);
}

.variation-active {
    background-color: var(--mode-scenario-soft);
    box-shadow: inset 4px 0 0 var(--mode-scenario);
}

.variation-quick-insights {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(120deg, #f7f8f4 0%, #fffefb 62%);
    border: 1px solid var(--warm-border);
    border-radius: 16px;
}

.variation-quick-header h3.starter-section-title {
    margin: 0 0 0.35rem;
}

.variation-quick-header p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.variation-quick-loading {
    display: none;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.variation-quick-loading:not([hidden]) {
    display: flex;
}

.variation-quick-loading-mark {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--warm-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: variationQuickSpin 0.8s linear infinite;
}

@keyframes variationQuickSpin {
    to { transform: rotate(360deg); }
}

.variation-quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.25rem;
}

.variation-quick-card {
    background: var(--card);
    border: 1px solid var(--warm-border);
    border-radius: 14px;
    padding: 1.35rem 1.4rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.variation-quick-card-header h4 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
}

.variation-quick-baseline {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.variation-quick-heatmap {
    overflow-x: auto;
}

.variation-quick-heatmap-table {
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.variation-quick-heatmap-table th,
.variation-quick-heatmap-table td {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid var(--warm-border);
    text-align: center;
    white-space: nowrap;
}

.variation-quick-heatmap-table th:first-child,
.variation-quick-heatmap-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.variation-quick-heatmap-table th {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}

.variation-quick-baseline-row td {
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.variation-quick-explore {
    align-self: flex-start;
    margin-top: auto;
}

.variation-explorer {
    margin: 2rem 0;
    padding: 1.5rem 1.6rem;
    background: linear-gradient(145deg, #f8f9fc 0%, #fffefb 55%);
    border: 1px solid var(--warm-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.variation-explorer-header {
    scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.variation-explorer-header h3.starter-section-title {
    margin: 0 0 0.35rem;
}

.variation-explorer-header p {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 62ch;
}

.variation-explorer-body {
    display: grid;
    gap: 1.25rem;
}

.variation-explorer-primary {
    display: grid;
    gap: 1rem;
}

.variation-field {
    display: grid;
    gap: 0.35rem;
}

.variation-field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.variation-explorer-primary select,
.variation-step-field select,
.variation-range-input input,
.variation-override-field input {
    width: 100%;
    max-width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--warm-border);
    border-radius: 10px;
    background: #fff;
    font-size: 0.95rem;
}

.variation-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.85rem;
}

.variation-step-field {
    flex: 0 0 auto;
}

@media (min-width: 761px) {
    .variation-step-field {
        min-width: 11rem;
        max-width: 14rem;
    }
}

.variation-range-panel {
    display: grid;
    grid-template-columns: minmax(7rem, 1fr) minmax(9rem, 1.2fr) minmax(7rem, 1fr);
    gap: 0.85rem;
    align-items: end;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--warm-border);
    border-radius: 14px;
    width: fit-content;
    max-width: 100%;
}

.variation-range-panel--age {
    grid-template-columns: auto auto auto;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem;
}

.variation-range-panel--age .variation-range-input input {
    width: 3.25rem;
    max-width: 3.25rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

.variation-range-panel--age .variation-range-current {
    min-width: 5.25rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.variation-range-input {
    display: grid;
    gap: 0.3rem;
}

.variation-range-input label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.variation-range-input input {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.variation-range-current {
    display: grid;
    gap: 0.2rem;
    justify-items: center;
    text-align: center;
    padding: 0.35rem 0.5rem 0.15rem;
    border-left: 1px solid var(--warm-border);
    border-right: 1px solid var(--warm-border);
}

.variation-range-current-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.variation-range-current strong {
    font-size: 1.15rem;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.variation-explorer-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.variation-explorer-secondary:empty {
    display: none;
}

.variation-overrides-card,
.variation-contrib-card {
    padding: 1rem 1.1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--warm-border);
    border-radius: 14px;
}

.variation-overrides-header h4,
.variation-contrib-header h4 {
    margin: 0 0 0.2rem;
    font-size: 0.98rem;
}

.variation-overrides-header p,
.variation-contrib-header p {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.variation-overrides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.variation-override-field {
    display: grid;
    gap: 0.3rem;
}

.variation-override-field span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.variation-override-field input {
    max-width: 9rem;
    font-style: italic;
}

.variation-contrib-table th:last-child,
.variation-contrib-table td:last-child {
    width: 5rem;
    text-align: center;
}

.variation-explorer-actions {
    margin-top: 1.15rem;
    padding-top: 0.25rem;
}

#variationTargetRow[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .variation-range-panel--age {
        width: 100%;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.45rem 0.65rem;
        padding: 0.75rem 0.65rem;
    }

    .variation-range-panel--age .variation-range-input input {
        width: 3rem;
        max-width: 3rem;
    }

    .variation-range-panel--age .variation-range-current {
        min-width: 0;
        border-left: 1px solid var(--warm-border);
        border-right: 1px solid var(--warm-border);
        border-top: none;
        border-bottom: none;
        padding: 0.25rem 0.15rem;
    }

    .variation-range-panel:not(.variation-range-panel--age) {
        grid-template-columns: 1fr;
    }

    .variation-range-panel:not(.variation-range-panel--age) .variation-range-current {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--warm-border);
        border-bottom: 1px solid var(--warm-border);
        padding: 0.75rem 0;
    }

    .variation-override-field input {
        max-width: none;
    }
}

#scenarioTable tbody tr.scenario-profile-active-profile:hover {
    background-color: #e2e6d8;
}

#scenarioTable tbody tr.scenario-profile-active-scenario:hover,
#scenarioTable tbody tr.scenario-active:hover {
    background-color: #eddccf;
}

/* —— Home landing —— */
.home-page {
    max-width: none;
}

.home-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 42vh;
    color: var(--muted);
}

.home-loading[hidden] {
    display: none !important;
}

.home-loading-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid var(--accent-light);
    border-top-color: var(--copper);
    animation: home-spin 0.85s linear infinite;
}

@keyframes home-spin {
    to { transform: rotate(360deg); }
}

@keyframes home-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-state[hidden] {
    display: none !important;
}

.home-hero {
    position: relative;
    min-height: 380px;
    padding: 0;
    border-radius: 22px;
    border: 1px solid var(--warm-border);
    background: var(--card);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: home-fade-up 0.55s ease both;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #e6b54d, var(--gold-dark));
    z-index: 2;
}

.home-hero-image {
    position: absolute;
    inset: 0;
    background-image: var(--hero-image, url("../images/hero-lighthouse.png"));
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    pointer-events: none;
}

.home-hero[data-hero-image="lighthouse"],
.home-hero:not([data-hero-image]) {
    --hero-image: url("../images/hero-lighthouse.png");
}

.home-hero[data-hero-image="river"] {
    --hero-image: url("../images/hero-river.png");
}

.home-hero[data-hero-image="sailboat"] {
    --hero-image: url("../images/hero-sailboat.png");
}

.home-hero[data-hero-image="path"] {
    --hero-image: url("../images/hero-path.png");
}

.home-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(255, 254, 251, 0.98) 0%,
        rgba(255, 254, 251, 0.96) 38%,
        rgba(255, 254, 251, 0.73) 52%,
        rgba(255, 254, 251, 0.12) 77%,
        rgba(255, 254, 251, 0.03) 100%);
}

.home-hero-body {
    position: relative;
    z-index: 3;
    width: min(780px, 65%);
    padding: 44px 42px 42px 48px;
}

.home-hero-picker {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
}

.home-hero-picker-toggle {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(10, 43, 93, 0.55);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.home-hero-picker-toggle svg {
    width: 16px;
    height: 16px;
}

.home-hero-picker-toggle:hover,
.home-hero-picker-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.42);
    color: var(--navy-deep);
}

.home-hero-picker-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    min-width: 132px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.home-hero-picker-menu[hidden] {
    display: none;
}

.home-hero-picker-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    font-size: 0.88rem;
    cursor: pointer;
}

.home-hero-picker-menu button:hover,
.home-hero-picker-menu button[aria-checked="true"] {
    background: #edf3fa;
    color: var(--navy-deep);
}

.home-hero--compact {
    min-height: 280px;
}

.home-hero--compact .home-hero-body {
    padding: 34px 36px 32px 42px;
}

.home-eyebrow {
    margin: 0 0 13px;
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.home-title {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--navy-deep);
}

.home-greeting-name {
    white-space: nowrap;
}

.home-lede {
    margin: 0;
    max-width: 38rem;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.55;
}

.home-plan-summary {
    max-width: 42rem;
    color: var(--ink);
}

.home-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.home-cta-row .btn {
    min-height: 54px;
    padding: 0 20px;
}

.home-cta-row .btn-ghost {
    background: rgba(255, 255, 255, 0.72);
    border-color: #b8c4d2;
    color: var(--navy-deep);
    backdrop-filter: blur(4px);
}

.home-cta-row .btn-ghost:hover {
    border-color: #7f93aa;
    color: var(--navy-deep);
}

.home-path {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.75rem 0 0;
    padding: 0;
}

.home-path-step {
    display: flex;
    gap: 0.9rem;
    padding: 1.25rem 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #fffcf8, var(--parchment));
    box-shadow: 0 8px 22px rgba(28, 25, 22, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: home-fade-up 0.55s ease both;
}

.home-path-step:nth-child(1) { animation-delay: 0.08s; }
.home-path-step:nth-child(2) { animation-delay: 0.16s; }
.home-path-step:nth-child(3) { animation-delay: 0.24s; }

.home-path-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(10, 43, 93), 0.08);
}

.home-path-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(155deg, var(--gold-dark), var(--copper-deep));
    color: #fffcf8;
    font-size: 0.9rem;
    font-weight: 700;
}

.home-path-step h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    color: var(--copper-deep);
}

.home-path-step p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.home-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.5rem 0 0.25rem;
}

.home-check {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fffcf8;
}

.home-check.is-done {
    border-color: rgba(95, 107, 74, 0.35);
    background: linear-gradient(135deg, var(--mode-baseline-soft), #fffcf8);
}

.home-check-mark {
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    border: 1.5px solid var(--accent-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mode-baseline);
    background: #fff;
}

.home-check.is-done .home-check-mark {
    border-color: var(--mode-baseline);
    background: var(--mode-baseline);
    color: #fff;
}

.home-check h3 {
    margin: 0 0 0.2rem;
    font-size: 0.98rem;
    color: var(--ink);
}

.home-check p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.home-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.home-metric-grid--lens {
    margin-top: 1.1rem;
    margin-bottom: 0.15rem;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.home-metric-grid--lens[hidden] {
    display: none !important;
}

.home-preview-grid--lens {
    margin-top: 1rem;
}

.home-metric {
    min-height: 122px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--warm-border);
    background: var(--card);
    box-shadow: var(--shadow);
    animation: home-fade-up 0.5s ease both;
}

.home-metric--lens {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

a.home-metric--lens:hover {
    border-color: rgba(10, 43, 93, 0.35);
    transform: translateY(-1px);
}

.home-metric:nth-child(1) { animation-delay: 0.06s; }
.home-metric:nth-child(2) { animation-delay: 0.12s; }
.home-metric:nth-child(3) { animation-delay: 0.18s; }
.home-metric:nth-child(4) { animation-delay: 0.24s; }

.home-metric h4 {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.home-metric p {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, "Iowan Old Style", Palatino, serif;
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    font-variant-numeric: lining-nums;
    color: var(--navy-deep);
}

.home-metric-meta {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.home-preview {
    margin-top: 1.35rem;
}

.home-preview[hidden] {
    display: none !important;
}

.home-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-preview-card {
    padding: 22px 26px 18px;
    border-radius: 18px;
    border: 1px solid var(--warm-border);
    background: var(--card);
    box-shadow: var(--shadow);
    min-width: 0;
}

.home-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.home-preview-head h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--navy-deep);
}

.home-preview-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--copper);
    text-decoration: none;
    white-space: nowrap;
}

.home-preview-link:hover {
    text-decoration: underline;
}

.home-preview-chart {
    min-height: 260px;
}

.home-error {
    color: var(--danger);
    margin-bottom: 0.75rem;
}

.key-inputs-block {
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(180deg, #fffcf8, var(--parchment));
    border: 1px solid var(--border);
    border-radius: 14px;
}

.key-inputs-block h3 {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    color: var(--copper-deep);
}

.key-inputs-block .summary-grid {
    margin-bottom: 0;
}

.projections-chart-grid {
    margin-bottom: 1.5rem;
}

.results-summary-grid {
    margin-bottom: 1.5rem;
}

.summary-card {
    background: linear-gradient(180deg, #fffcf8, var(--parchment));
    border: 1px solid var(--border);
}

.text-summary {
    background: linear-gradient(180deg, #fffcf8, var(--parchment));
    border: 1px solid var(--border);
}

@media (max-width: 900px) {
    .home-path,
    .home-checklist,
    .home-metric-grid,
    .home-preview-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: 520px;
    }

    .home-hero-image {
        background-size: auto 57%;
        background-position: right bottom;
    }

    .home-hero-image::after {
        background: linear-gradient(180deg,
            rgba(255, 254, 251, 1) 0%,
            rgba(255, 254, 251, 0.98) 50%,
            rgba(255, 254, 251, 0.74) 67%,
            rgba(255, 254, 251, 0.08) 100%);
    }

    .home-hero-body {
        width: 100%;
        padding: 34px 28px 72px;
    }

    .home-cta-row .btn {
        width: 100%;
    }
}

/* —— Public lead-magnet landing (index.php) —— */
.landing-body {
    overflow-x: hidden;
    background:
        radial-gradient(900px 380px at 92% -8%, rgba(10, 43, 93, 0.045), transparent 55%),
        radial-gradient(720px 320px at 6% 18%, rgba(70, 95, 115, 0.06), transparent 50%),
        linear-gradient(180deg, #f6f7f6 0%, #f2f3f1 26%, #efece6 58%, var(--bg) 100%);
}

.landing-header .brand h1,
.landing-header .brand .brand-title {
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
}

.landing {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.landing-eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.landing-muted {
    color: var(--muted);
    margin: 0 0 1.1rem;
    font-size: 0.98rem;
    line-height: 1.55;
}

.landing-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.65rem;
}

.landing-cta-row--center {
    justify-content: center;
}

.btn-lg {
    padding: 0.78rem 1.35rem;
    font-size: 1rem;
}

/* Hero — split copy + product collage */
.landing-hero {
    position: relative;
    margin: 0 0 2.75rem;
    padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.25rem, 5vw, 3.75rem);
    overflow: visible;
    isolation: isolate;
    background:
        radial-gradient(980px 420px at 78% 12%, rgba(200, 149, 46, 0.09), transparent 58%),
        radial-gradient(640px 360px at 8% 88%, rgba(70, 95, 115, 0.08), transparent 55%),
        linear-gradient(165deg, #fbfcfb 0%, #f3f4f2 44%, #e9ebe7 100%);
    border-bottom: 1px solid rgba(215, 205, 192, 0.85);
    animation: home-fade-up 0.6s ease both;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(28, 25, 22, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 25, 22, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
    pointer-events: none;
}

.landing-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--copper-deep), transparent 78%);
    opacity: 0.85;
}

.landing-hero-stage {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
}

.landing-hero-copy {
    max-width: 34rem;
    animation: home-fade-up 0.7s ease both;
}

.landing-hero-title {
    margin: 0 0 1rem;
    font-family: var(--serif);
    font-size: clamp(1.85rem, 3.8vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    color: var(--ink);
}

.landing-hero-sub {
    margin: 0 0 0.75rem;
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.45;
    max-width: 32rem;
}

.landing-hero-lede {
    margin: 0;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 32rem;
}

.landing-hero .landing-cta-row {
    margin-top: 1.5rem;
}

.landing-hero .btn-ghost {
    background: rgba(255, 252, 248, 0.72);
    border-color: rgba(200, 149, 46, 0.35);
    color: var(--copper-deep);
}

.landing-hero .btn-ghost:hover {
    background: #fff;
    border-color: var(--copper);
    color: var(--copper-deep);
}

.landing-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.landing-hero-trust li {
    display: inline-flex;
    align-items: center;
}

.landing-hero-trust li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 0.85em;
    margin: 0 0.7rem;
    background: rgba(109, 100, 90, 0.35);
}

.landing-hero-visual {
    position: relative;
    animation: home-fade-up 0.85s ease 0.08s both;
}

.landing-hero-collage {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
        "projections projections"
        "accounts charts";
    gap: 0.85rem 0.9rem;
    align-items: start;
    perspective: 1200px;
    padding: 0.35rem 0.25rem 0.5rem;
}

.landing-hero-shot {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: visible;
    border-radius: 14px;
    border: 1px solid rgba(28, 25, 22, 0.08);
    background: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 18px 44px rgba(28, 25, 22, 0.12),
        0 4px 12px rgba(10, 43, 93), 0.06);
    transform: translateY(0) rotate(var(--shot-rot, 0deg));
}

.landing-hero-shot-media {
    display: block;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    min-height: 0;
    background: #f7f5f2;
}

.landing-hero-shot img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top left;
}

.landing-hero-shot-cap {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.55rem 0.75rem 0.65rem;
    border-top: 1px solid rgba(200, 149, 46, 0.18);
    border-radius: 0 0 14px 14px;
    background: linear-gradient(180deg, #fffdfb, #f7f1ea);
    color: var(--copper-deep);
    font-size: clamp(0.74rem, 1.1vw, 0.86rem);
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1.35;
}

.landing-hero-shot-cap__abbr {
    display: none;
}

.landing-hero-shot--projections {
    --shot-rot: -1deg;
    grid-area: projections;
    z-index: 1;
    animation: landing-hero-float 8s ease-in-out infinite alternate;
}

.landing-hero-shot--projections .landing-hero-shot-media {
    max-height: clamp(11rem, 28vw, 16.5rem);
}

.landing-hero-shot--projections img {
    width: 100%;
    height: 100%;
    max-height: inherit;
    object-fit: cover;
}

.landing-hero-shot--charts {
    --shot-rot: 1.6deg;
    grid-area: charts;
    z-index: 2;
    margin-top: 0.35rem;
    animation: landing-hero-float 9.5s ease-in-out 0.6s infinite alternate-reverse;
}

.landing-hero-shot--charts .landing-hero-shot-media {
    max-height: clamp(8.5rem, 20vw, 12.5rem);
}

.landing-hero-shot--charts img {
    width: 100%;
    height: 100%;
    max-height: inherit;
    object-fit: cover;
}

.landing-hero-shot--accounts {
    --shot-rot: -1.8deg;
    grid-area: accounts;
    z-index: 3;
    margin-top: 0.15rem;
    animation: landing-hero-float 7.2s ease-in-out 0.3s infinite alternate;
}

.landing-hero-shot--accounts .landing-hero-shot-media {
    max-height: none;
}

.landing-hero-shot--accounts img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top left;
}

@keyframes landing-hero-float {
    from { transform: translateY(0) rotate(var(--shot-rot, 0deg)); }
    to { transform: translateY(-10px) rotate(var(--shot-rot, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero-shot--projections,
    .landing-hero-shot--charts,
    .landing-hero-shot--accounts {
        animation: none;
    }
}

html:has(.landing-body) {
    scroll-behavior: smooth;
}

#five-questions,
#dashboard-preview,
#sample-plan,
#shows-its-work,
#stress-tests,
#year-by-year,
#retirement-check,
#trust,
#faq {
    scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.landing-sample-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.15rem;
    align-items: stretch;
}

.landing-sample-household,
.landing-sample-path {
    padding: 1.45rem 1.5rem 1.55rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #fffcf8, var(--parchment));
    box-shadow: 0 12px 32px rgba(16, 35, 58, 0.05);
    animation: home-fade-up 0.65s ease both;
}

.landing-sample-path {
    animation-delay: 0.08s;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(10, 43, 93, 0.05), transparent 60%),
        linear-gradient(180deg, #fffcf8, #f3f6f9);
}

.landing-sample-household h3,
.landing-sample-path h3 {
    margin: 0 0 0.85rem;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: -0.02em;
}

.landing-sample-path h3 {
    display: inline-block;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--gold);
}

.landing-sample-who {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--muted);
}

.landing-sample-who strong {
    color: var(--ink);
    font-size: 1.02rem;
}

.landing-sample-stats {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.landing-sample-stats li {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(217, 223, 229, 0.75);
    font-size: 0.94rem;
}

.landing-sample-stats li:last-child {
    border-bottom: none;
}

.landing-sample-stat-icon {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing-sample-stat-label {
    color: var(--muted);
}

.landing-sample-stat-value {
    font-weight: 700;
    color: var(--navy-deep);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.landing-sample-assumptions {
    margin: 0 0 1.25rem;
}

.landing-sample-assumptions-label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.landing-sample-assumptions ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.landing-sample-assumptions li {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    color: var(--ink);
}

.landing-sample-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.landing-sample-actions .btn span[aria-hidden="true"] {
    margin-left: 0.35rem;
}

.landing-sample-milestones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.85rem 0 1rem;
}

.landing-sample-milestones > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.landing-sample-milestone-label {
    font-size: 0.78rem;
    color: var(--muted);
}

.landing-sample-milestone-value {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: -0.02em;
}

.landing-sample-chart {
    margin: 0 0 0.85rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(217, 223, 229, 0.9);
    background: #fff;
    aspect-ratio: 16 / 10;
}

.landing-sample-chart img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.landing-sample-note {
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    color: var(--muted);
}

.landing-sample-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

.landing-sample-detail-link:hover {
    color: var(--navy-deep);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .landing-sample-grid {
        grid-template-columns: 1fr;
    }

    .landing-sample-milestones {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }
}

/* Homepage A Penny Saved teaser (links to a-penny-saved.php) */
.landing-penny-tease-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.15rem;
    margin: 0 0 1.5rem;
}

.landing-penny-tease-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 0.85rem;
    row-gap: 0.35rem;
    align-items: start;
    padding: 1.15rem 1.2rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 18px rgba(28, 25, 22, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-penny-tease-card:hover {
    border-color: rgba(200, 149, 46, 0.45);
    box-shadow: 0 8px 24px rgba(28, 25, 22, 0.06);
}

.landing-penny-tease-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.landing-penny-tease-card h3 {
    grid-column: 2;
    margin: 0;
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy-deep);
}

.landing-penny-tease-result {
    grid-column: 2;
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    font-weight: 400;
    font-variant-numeric: lining-nums tabular-nums;
    line-height: 1.15;
    color: var(--navy-deep);
}

.landing-penny-tease-note {
    grid-column: 1 / -1;
    margin: 0.45rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
}

.landing-penny-tease-actions {
    align-items: center;
    gap: 1rem 1.5rem;
}

.landing-penny-tease-actions .btn span[aria-hidden="true"] {
    margin-left: 0.35rem;
}

.landing-penny-tease-aside {
    margin: 0;
    max-width: 28rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--muted);
}

@media (max-width: 900px) {
    .landing-penny-tease-grid {
        grid-template-columns: 1fr;
    }
}

.landing-section {
    margin: 0;
    padding: clamp(2.75rem, 5.5vw, 4.25rem) 0;
    animation: home-fade-up 0.55s ease both;
    position: relative;
}

/* Full-bleed alternating bands (break out of .landing max-width) */
.landing-section--band {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(1.5rem, calc((100vw - 1120px) / 2 + 1.5rem));
    padding-right: max(1.5rem, calc((100vw - 1120px) / 2 + 1.5rem));
    box-sizing: border-box;
    border-top: 1px solid rgba(28, 25, 22, 0.06);
    border-bottom: 1px solid rgba(28, 25, 22, 0.06);
    background:
        radial-gradient(820px 280px at 88% 0%, rgba(10, 43, 93, 0.05), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(242, 244, 243, 0.95) 100%);
}

.landing-section--band-warm {
    background:
        radial-gradient(760px 260px at 8% 10%, rgba(200, 149, 46, 0.12), transparent 55%),
        linear-gradient(165deg, #fffcf8 0%, #f4ebe0 52%, #efe6da 100%);
    border-top-color: rgba(200, 149, 46, 0.22);
    border-bottom-color: rgba(200, 149, 46, 0.18);
}

.landing-section--band-accent {
    background:
        radial-gradient(700px 240px at 100% 0%, rgba(10, 43, 93, 0.08), transparent 50%),
        linear-gradient(180deg, #eef2f5 0%, #e7ecef 100%);
    border-top-color: rgba(10, 43, 93, 0.1);
    border-bottom-color: rgba(10, 43, 93, 0.08);
}

.landing-section--band .landing-section-head {
    max-width: 42rem;
}

/* Sample plan sits on open canvas with extra separation from neighbors */
.landing-sample {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.landing-section--band-warm .landing-penny-tease-card {
    background: rgba(255, 252, 248, 0.92);
}

.landing-final-cta {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.landing-section-head {
    margin-bottom: 1.5rem;
    max-width: 40rem;
}

.landing-section-head--tight {
    margin-bottom: 1rem;
}

.landing-section-head h2,
.landing-section-head h3 {
    margin: 0 0 0.55rem;
    font-family: var(--serif);
    font-size: clamp(1.55rem, 2.8vw, 2.05rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--copper-deep);
    line-height: 1.2;
}

.landing-section-head h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

.landing-section-lede {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.landing-section-lede em {
    font-style: italic;
    color: var(--ink);
}

/* —— Homepage narrative sections (questions → trust → FAQ) —— */
.landing-question-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.landing-question-grid li {
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 252, 248, 0.92);
}

.landing-question-grid li:last-child {
    grid-column: 1 / -1;
}

.landing-question-q {
    margin: 0 0 0.45rem;
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--copper-deep);
    line-height: 1.35;
}

.landing-question-a {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

.landing-question-a span {
    color: var(--ink);
    font-weight: 600;
}

/* Preserve card look when a question maps to a public calculator */
.landing-question-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.landing-question-link:hover .landing-question-q,
.landing-question-link:focus-visible .landing-question-q {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.landing-calc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 44rem;
    display: grid;
    gap: 0.65rem;
}

.landing-calc-list li {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--muted);
}

.landing-calc-list a {
    color: var(--copper);
    font-weight: 600;
    text-decoration: none;
}

.landing-calc-list a:hover,
.landing-calc-list a:focus-visible {
    text-decoration: underline;
}

.landing-dashboard-shot {
    margin: 0 0 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 40px rgba(28, 25, 22, 0.07);
}

.landing-dashboard-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.landing-dashboard-callouts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.landing-dashboard-callouts li {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #fffcf8, var(--parchment));
    text-align: center;
}

.landing-dashboard-callout-value {
    display: block;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 700;
    color: var(--copper-deep);
    margin-bottom: 0.25rem;
}

.landing-dashboard-callout-label {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.35;
}

.landing-work-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.15rem;
}

.landing-work-steps > li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "num copy"
        "shot shot";
    gap: 0.55rem 0.9rem;
    padding: 1.05rem 1.15rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 252, 248, 0.9);
    align-items: start;
}

.landing-work-num {
    grid-area: num;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff8f2;
    background: linear-gradient(155deg, var(--gold-dark), var(--copper-deep));
}

.landing-work-steps > li > div {
    grid-area: copy;
    min-width: 0;
}

.landing-work-steps h3 {
    margin: 0 0 0.25rem;
    font-family: var(--serif);
    font-size: 1.08rem;
    color: var(--copper-deep);
}

.landing-work-steps p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.landing-work-steps .landing-work-shot,
.landing-work-steps .landing-img-placeholder,
.landing-work-steps .landing-marketing-shot {
    grid-area: shot;
    margin: 0.15rem 0 0;
    max-width: 34rem;
    justify-self: start;
}

.landing-work-shot {
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 35, 58, 0.05);
}

.landing-work-shot img,
.landing-work-steps .landing-marketing-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 12.5rem;
    object-fit: cover;
    object-position: top left;
}

@media (min-width: 900px) {
    .landing-work-steps > li {
        grid-template-columns: auto minmax(11rem, 0.72fr) minmax(0, 1.28fr);
        grid-template-areas: "num copy shot";
        gap: 0.75rem 1.15rem;
        padding: 1.15rem 1.25rem;
        align-items: center;
    }

    .landing-work-steps .landing-work-shot,
    .landing-work-steps .landing-img-placeholder,
    .landing-work-steps .landing-marketing-shot {
        margin: 0;
        max-width: none;
        width: 100%;
        justify-self: stretch;
    }

    .landing-work-shot img,
    .landing-work-steps .landing-marketing-shot img {
        max-height: 11.5rem;
    }
}

.landing-marketing-shot {
    margin: 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #fff;
    max-width: 100%;
    min-width: 0;
}

.landing-marketing-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.landing-stress-card .landing-marketing-shot.landing-stress-shot img,
.landing-stress-card .landing-stress-shot img {
    max-height: 16rem;
    object-fit: cover;
    object-position: top center;
}

.landing-lead-panel .landing-lead-copy {
    min-width: 0;
}

.landing-lead-panel .landing-cta-row .btn {
    flex: 0 1 auto;
    white-space: nowrap;
}

.landing-lead-panel .landing-marketing-shot.landing-lead-shot,
.landing-lead-panel .landing-img-placeholder--lead {
    max-width: none;
    width: 100%;
    min-width: 0;
}

.landing-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    max-width: var(--ph-w, 640px);
    aspect-ratio: var(--ph-w, 640) / var(--ph-h, 360);
    min-height: 10rem;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px dashed rgba(138, 90, 60, 0.45);
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(200, 149, 46, 0.06),
            rgba(200, 149, 46, 0.06) 8px,
            rgba(255, 252, 248, 0.9) 8px,
            rgba(255, 252, 248, 0.9) 16px
        );
    color: var(--muted);
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

.landing-img-placeholder-name {
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--copper-deep);
    word-break: break-all;
}

.landing-img-placeholder-hint {
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.35;
}

.landing-img-placeholder--lead {
    max-width: none;
}

.landing-stress-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.landing-stress-card {
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fffcf8;
}

.landing-stress-card:first-child {
    grid-column: 1 / -1;
}

.landing-stress-card h3 {
    margin: 0 0 0.35rem;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--copper-deep);
}

.landing-stress-card > p {
    margin: 0 0 0.85rem;
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.45;
}

.landing-stress-shot {
    margin: 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #fff;
}

.landing-stress-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 16rem;
    object-fit: cover;
    object-position: top center;
}

.landing-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.landing-detail-shot {
    margin: 0;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 25, 22, 0.04);
}

.landing-detail-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.landing-detail-shot figcaption {
    padding: 0.7rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: rgba(255, 252, 248, 0.9);
}

.landing-lead-panel {
    display: grid;
    grid-template-columns: minmax(16rem, 1.15fr) minmax(0, 0.95fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.75rem 1.75rem 1.85rem;
    border-radius: 20px;
    border: 1px solid rgba(200, 149, 46, 0.28);
    background:
        radial-gradient(560px 220px at 100% 0%, rgba(200, 149, 46, 0.12), transparent 55%),
        linear-gradient(165deg, #fffcf8 0%, var(--parchment) 100%);
}

.landing-lead-copy h2 {
    margin: 0 0 0.55rem;
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    color: var(--copper-deep);
}

.landing-lead-copy > p {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.landing-lead-list {
    margin: 0 0 0.25rem;
    padding: 0 0 0 1.1rem;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.55;
}

.landing-lead-list li {
    margin-bottom: 0.25rem;
}

.landing-trust-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.landing-trust-grid li {
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 252, 248, 0.92);
}

.landing-trust-grid h3 {
    margin: 0 0 0.4rem;
    font-family: var(--serif);
    font-size: 1.08rem;
    color: var(--copper-deep);
}

.landing-trust-grid p {
    margin: 0;
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.5;
}

.landing-faq-list {
    display: grid;
    gap: 0.55rem;
    max-width: 44rem;
}

.landing-faq-item {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fffcf8;
    padding: 0.15rem 1rem 0.15rem;
}

.landing-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--copper-deep);
    padding: 0.85rem 0;
    list-style: none;
}

.landing-faq-item summary::-webkit-details-marker {
    display: none;
}

.landing-faq-item summary::after {
    content: "+";
    float: right;
    font-weight: 700;
    color: var(--gold-dark);
}

.landing-faq-item[open] summary::after {
    content: "–";
}

.landing-faq-item p {
    margin: 0 0 0.95rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.landing-faq-item a {
    color: var(--copper);
    font-weight: 600;
}

.landing-trust-link {
    display: inline-block;
    margin-top: 0.55rem;
    color: var(--copper);
    font-weight: 600;
    text-decoration: none;
}

.landing-trust-link:hover {
    text-decoration: underline;
}

/* Public about page */
.about-page {
    padding-top: 1.5rem;
}

.about-title {
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: clamp(1.85rem, 3.4vw, 2.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--copper-deep);
    line-height: 1.15;
}

.about-lede {
    max-width: 42rem;
    font-size: 1.08rem;
}

.about-lede em {
    font-style: italic;
    color: var(--ink);
}

.about-publisher-title {
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    color: var(--copper-deep);
}

.about-prose {
    max-width: 44rem;
}

.about-prose p {
    margin: 0 0 1rem;
    font-size: 1.02rem;
    color: var(--ink);
    line-height: 1.65;
}

.about-prose a,
.about-trust-list a {
    color: var(--copper);
    font-weight: 600;
}

.about-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.about-trust-list li {
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 252, 248, 0.92);
    font-size: 0.98rem;
    color: var(--muted);
    line-height: 1.55;
}

.about-trust-list strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--serif);
    font-size: 1.08rem;
    color: var(--copper-deep);
}

.about-cta .landing-cta-row {
    margin-top: 0;
}

/* How calculations work (methodology) */
.method-page {
    padding-top: 1.5rem;
}

.method-title {
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: clamp(1.85rem, 3.4vw, 2.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--copper-deep);
    line-height: 1.15;
}

.method-lede {
    max-width: 44rem;
    font-size: 1.08rem;
}

.method-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    margin: 0 0 2.25rem;
    padding: 0.9rem 0 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.method-jump a {
    color: var(--copper-deep);
    font-weight: 600;
    text-decoration: none;
}

.method-jump a:hover {
    color: var(--copper);
    text-decoration: underline;
}

.method-section {
    scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.method-section h2 {
    margin: 0 0 0.85rem;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    color: var(--copper-deep);
}

.method-prose {
    max-width: 46rem;
}

.method-prose p,
.method-prose li {
    font-size: 1.02rem;
    color: var(--ink);
    line-height: 1.65;
}

.method-prose p {
    margin: 0 0 0.9rem;
}

.method-prose ul,
.method-prose ol.method-steps {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.method-prose li {
    margin-bottom: 0.35rem;
}

.method-prose a {
    color: var(--copper);
    font-weight: 600;
}

.method-formula {
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 252, 248, 0.95);
    font-family: var(--sans);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--copper-deep);
}

.method-sources {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin: 0 0 1rem;
}

.method-sources th,
.method-sources td {
    text-align: left;
    vertical-align: top;
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--border);
    line-height: 1.45;
}

.method-sources th {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.method-sources code,
.method-prose code {
    font-size: 0.86em;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    background: rgba(28, 25, 22, 0.06);
}

.method-updated {
    color: var(--muted) !important;
    font-size: 0.95rem !important;
}

.method-cta .landing-cta-row {
    margin-top: 0.25rem;
}

@media (max-width: 720px) {
    .method-sources,
    .method-sources thead,
    .method-sources tbody,
    .method-sources th,
    .method-sources td,
    .method-sources tr {
        display: block;
    }

    .method-sources thead {
        display: none;
    }

    .method-sources tr {
        margin-bottom: 0.85rem;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 0.55rem 0.65rem;
        background: #fffcf8;
    }

    .method-sources td {
        border: none;
        padding: 0.25rem 0;
    }

    .method-sources td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--muted);
        margin-bottom: 0.15rem;
    }
}

/* Public security / privacy page */
.security-page {
    padding-top: 1.5rem;
}

.security-title {
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: clamp(1.85rem, 3.4vw, 2.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--copper-deep);
    line-height: 1.15;
}

.security-lede {
    max-width: 40rem;
    font-size: 1.08rem;
}

.security-pillars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.95rem;
}

.security-pillars li {
    padding: 1.35rem 1.4rem 1.45rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, #fffcf8, var(--parchment));
    border-left: 3px solid var(--copper);
}

.security-pillars h3 {
    margin: 0 0 0.5rem;
    font-family: var(--serif);
    font-size: 1.22rem;
    color: var(--copper-deep);
}

.security-pillars p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--ink);
    line-height: 1.6;
}

.security-more-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.security-more-list li {
    padding: 1.05rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 252, 248, 0.92);
    font-size: 0.96rem;
    color: var(--muted);
    line-height: 1.55;
}

.security-more-list strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--copper-deep);
    font-family: var(--serif);
    font-size: 1.05rem;
}

.security-limits .landing-cta-row {
    margin-top: 1.35rem;
}

/* Penny Saved interactive stage (kept for future /penny-saved page) */
.landing-penny {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #fffcf8, var(--parchment));
    box-shadow: 0 14px 36px rgba(28, 25, 22, 0.05);
    overflow: hidden;
}

.landing-journey-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 252, 248, 0.85);
}

.landing-journey-chip {
    appearance: none;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.landing-journey-chip:hover {
    color: var(--ink);
    border-color: rgba(200, 149, 46, 0.45);
}

.landing-journey-chip.is-active {
    color: #fff8f2;
    border-color: transparent;
    background: linear-gradient(155deg, var(--gold-dark), var(--copper-deep));
    box-shadow: 0 2px 10px rgba(6, 31, 69, 0.22);
}

.landing-penny-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 0;
}

.landing-penny-controls {
    padding: 1.5rem 1.5rem 1.75rem;
    border-right: 1px solid var(--border);
}

.landing-penny-controls h3 {
    margin: 0 0 0.4rem;
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--copper-deep);
}

.landing-penny-outcome {
    padding: 1.5rem 1.5rem 1.75rem;
    background:
        radial-gradient(420px 200px at 100% 0%, rgba(200, 149, 46, 0.12), transparent 60%),
        linear-gradient(165deg, #faf4ed, #f3ebe2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    animation: landing-result-in 0.35s ease both;
}

@keyframes landing-result-in {
    from { opacity: 0.35; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    margin: 1rem 0 1.15rem;
}

.landing-input-grid .form-group {
    margin: 0;
}

.landing-input-grid label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.landing-result-label {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.landing-result-big {
    margin: 0 0 0.45rem;
    font-family: var(--sans);
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 400;
    font-variant-numeric: lining-nums tabular-nums;
    line-height: 1.1;
    color: var(--copper-deep);
}

.landing-result-big--sm {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.landing-result-sub {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.landing-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.landing-metric {
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(215, 205, 192, 0.9);
    background: rgba(255, 252, 248, 0.8);
}

.landing-metric-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.landing-metric-value {
    display: block;
    font-family: var(--sans);
    font-size: 1.02rem;
    font-weight: 400;
    color: var(--copper);
    font-variant-numeric: lining-nums tabular-nums;
}

.landing-tease {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    font-style: italic;
    line-height: 1.45;
}

.landing-custom {
    margin-top: 0;
    padding: 1.5rem 1.5rem 1.65rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fffcf8;
    box-shadow: 0 10px 28px rgba(28, 25, 22, 0.04);
}

.landing-calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
}

.landing-calc-tab {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: color 0.15s ease, background 0.15s ease;
}

.landing-calc-tab:hover {
    color: var(--ink);
    background: var(--accent-soft);
}

.landing-calc-tab.is-active {
    color: var(--copper-deep);
    background: var(--accent-soft);
}

.landing-calc-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--gold), var(--copper-deep));
}

.landing-compact-result {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}

.landing-compact-result--panel {
    margin-top: 0;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    border-top: 1px solid var(--border);
    background: linear-gradient(165deg, #fffcf8, var(--parchment));
}

.landing-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.landing-diff {
    margin: 0 0 1rem;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--copper);
}

/* Capabilities */
.landing-section--capabilities {
    padding: 2rem 1.75rem 2.15rem;
    border-radius: 20px;
    border: 1px solid rgba(200, 149, 46, 0.25);
    background:
        radial-gradient(700px 260px at 0% 0%, rgba(200, 149, 46, 0.1), transparent 55%),
        linear-gradient(165deg, #fffcf8 0%, var(--parchment) 100%);
}

.landing-cap-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.95rem;
}

.landing-cap-list li {
    position: relative;
    padding: 1.1rem 1.2rem 1.1rem 1.45rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 252, 248, 0.92);
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.55;
    border-left: 3px solid var(--copper);
}

.landing-cap-list strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--serif);
    font-size: 1.08rem;
    color: var(--copper-deep);
}

/* Simple retirement preview */
.landing-preview-calc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.landing-preview-form {
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fffcf8;
    box-shadow: 0 10px 28px rgba(28, 25, 22, 0.04);
}

.landing-preview-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.landing-power-callout {
    padding: 1.35rem 1.4rem;
    border-radius: 14px;
    border: 1px solid rgba(200, 149, 46, 0.35);
    background:
        linear-gradient(155deg, rgba(138, 90, 60, 0.08), transparent 55%),
        linear-gradient(180deg, #fffcf8, #f3ebe2);
}

.landing-power-callout h3 {
    margin: 0 0 0.5rem;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--copper-deep);
}

.landing-power-callout p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.55;
}

/* Final CTA */
.landing-final-cta {
    text-align: center;
    padding: clamp(2.2rem, 5vw, 3.25rem) 1.5rem;
    border-radius: 22px;
    border: 1px solid rgba(200, 149, 46, 0.3);
    background:
        radial-gradient(600px 240px at 50% -20%, rgba(200, 149, 46, 0.18), transparent 60%),
        linear-gradient(155deg, var(--gold-dark) 0%, var(--copper) 48%, var(--copper-deep) 100%);
    color: #fff8f2;
    box-shadow: 0 18px 40px rgba(6, 31, 69, 0.18);
    animation: home-fade-up 0.55s ease both;
}

.landing-final-cta h2 {
    margin: 0 0 0.65rem;
    font-family: var(--serif);
    font-size: clamp(1.65rem, 3.2vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff8f2;
}

.landing-final-cta p {
    margin: 0 auto;
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 248, 242, 0.88);
}

.landing-final-cta .btn-primary {
    background: #fffcf8;
    color: var(--copper-deep);
    box-shadow: none;
}

.landing-final-cta .btn-primary:hover {
    background: #fff;
    color: var(--copper-deep);
}

.landing-final-cta .btn-ghost {
    color: rgba(255, 248, 242, 0.92);
    border: 1px solid rgba(255, 248, 242, 0.35);
}

.landing-final-cta .btn-ghost:hover {
    color: #fff;
    background: rgba(255, 252, 248, 0.1);
}

.landing-footer {
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 0.5rem;
}

.landing-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.15rem;
    margin: 0 0 0.85rem;
    padding: 0 0 0.85rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.landing-footer-nav a {
    color: var(--copper-deep);
    font-weight: 600;
    text-decoration: none;
}

.landing-footer-nav a:hover {
    color: var(--copper);
    text-decoration: underline;
}

.landing-footer p {
    max-width: 48rem;
}

.landing-footer p a {
    color: var(--copper);
    font-weight: 600;
}

@media (max-width: 980px) {
    .landing-hero-stage {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        min-height: 0;
    }

    .landing-hero-copy {
        max-width: 40rem;
    }

    .landing-hero-visual {
        max-width: 36rem;
        margin: 0 auto;
        width: 100%;
    }

    .landing-hero-shot--projections .landing-hero-shot-media {
        max-height: clamp(10rem, 42vw, 14rem);
    }

    .landing-hero-shot--charts .landing-hero-shot-media {
        max-height: clamp(8rem, 32vw, 11rem);
    }

    .landing-hero-shot--charts,
    .landing-hero-shot--accounts {
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .landing-penny-stage,
    .landing-preview-calc,
    .landing-compare,
    .landing-question-grid,
    .landing-stress-grid,
    .landing-detail-grid,
    .landing-trust-grid,
    .landing-lead-panel,
    .landing-dashboard-callouts {
        grid-template-columns: 1fr;
    }

    .landing-question-grid li:last-child,
    .landing-stress-card:first-child {
        grid-column: auto;
    }

    .landing-penny-controls {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .landing-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .landing {
        padding: 0 1rem 2.5rem;
    }

    .landing-hero {
        padding: 1.35rem 1rem 2rem;
        margin-bottom: 2.25rem;
    }

    .landing-hero-title {
        font-size: clamp(1.65rem, 7vw, 2.05rem);
    }

    .landing-hero-sub {
        font-size: 1.02rem;
    }

    .landing-hero-lede {
        font-size: 0.98rem;
    }

    .landing-hero .landing-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-hero .landing-cta-row .btn {
        width: 100%;
        text-align: center;
    }

    .landing-hero-trust {
        gap: 0.45rem 0;
        font-size: 0.8rem;
    }

    .landing-hero-trust li:not(:last-child)::after {
        margin: 0 0.55rem;
    }

    .landing-hero-visual {
        max-width: none;
    }

    .landing-hero-collage {
        gap: 0.7rem 0.65rem;
        padding: 0.2rem 0.1rem 0.35rem;
    }

    .landing-hero-shot {
        border-radius: 10px;
    }

    .landing-hero-shot-media {
        border-radius: 10px 10px 0 0;
    }

    .landing-hero-shot-cap {
        padding: 0.42rem 0.55rem 0.5rem;
        font-size: 0.68rem;
        line-height: 1.3;
        border-radius: 0 0 10px 10px;
    }

    .landing-hero-shot-cap__full {
        display: none;
    }

    .landing-hero-shot-cap__abbr {
        display: inline;
    }

    .landing-hero-shot--projections {
        --shot-rot: -0.5deg;
    }

    .landing-hero-shot--projections .landing-hero-shot-media {
        max-height: 9.5rem;
    }

    .landing-hero-shot--charts {
        --shot-rot: 1deg;
    }

    .landing-hero-shot--charts .landing-hero-shot-media {
        max-height: 7.75rem;
    }

    .landing-hero-shot--accounts {
        --shot-rot: -1deg;
    }

    .landing-input-grid {
        grid-template-columns: 1fr;
    }

    .landing-journey-chips {
        flex-direction: column;
    }

    .landing-journey-chip {
        width: 100%;
        text-align: center;
        border-radius: 10px;
    }

    .landing-section--capabilities {
        padding: 1.5rem 1.15rem 1.65rem;
    }
}

/* —— Product tour (product-tour-jim-susan.php) —— */
.tour-body {
    background:
        radial-gradient(900px 380px at 92% -8%, rgba(10, 43, 93, 0.045), transparent 55%),
        radial-gradient(720px 320px at 6% 18%, rgba(70, 95, 115, 0.06), transparent 50%),
        linear-gradient(180deg, #f6f7f6 0%, #f2f3f1 26%, #efece6 58%, var(--bg) 100%);
}

.tour-page {
    margin: 0;
}

.tour-wrap {
    padding-bottom: 2rem;
}

.tour-hero {
    margin: 0 0 2.5rem;
    padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(980px 420px at 78% 12%, rgba(200, 149, 46, 0.09), transparent 58%),
        radial-gradient(640px 360px at 8% 88%, rgba(70, 95, 115, 0.08), transparent 55%),
        linear-gradient(165deg, #fbfcfb 0%, #f3f4f2 44%, #e9ebe7 100%);
    border-bottom: 1px solid rgba(215, 205, 192, 0.85);
}

.tour-hero-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

.tour-hero-title {
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: clamp(2rem, 3.8vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--navy-deep);
}

.tour-hero-lede {
    margin: 0 0 1rem;
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.58;
    color: var(--muted);
}

.tour-household-facts {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.65;
}

.tour-household-facts li + li {
    margin-top: 0.2rem;
}

.tour-hero-note {
    margin: 1rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.tour-jump {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(215, 205, 192, 0.9);
    background: rgba(255, 252, 248, 0.92);
    backdrop-filter: blur(8px);
}

.tour-jump-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.55rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    justify-content: center;
}

.tour-jump a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.tour-jump a:hover {
    color: var(--navy-deep);
    border-bottom-color: rgba(200, 149, 46, 0.55);
}

.tour-section {
    margin-bottom: 3.25rem;
    animation: home-fade-up 0.55s ease both;
}

.tour-section--spotlight {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 20px;
    border: 1px solid rgba(10, 43, 93, 0.12);
    background: linear-gradient(180deg, #fffcf8, #f4efe6);
    box-shadow: 0 14px 36px rgba(28, 25, 22, 0.05);
}

.tour-section--spotlight .tour-section-head {
    max-width: 44rem;
}

.tour-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.tour-callouts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.tour-callouts li {
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(215, 205, 192, 0.9);
    background: rgba(255, 255, 255, 0.75);
}

.tour-callouts strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
    color: var(--navy-deep);
}

.tour-callouts span {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.45;
}

.tour-compare-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0.65rem;
}

.tour-compare-card {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #fffcf8, #f4efe6);
}

.tour-compare-card--alt {
    border-color: rgba(200, 149, 46, 0.45);
    background: linear-gradient(180deg, #fff9ef, #f7ecd8);
}

.tour-compare-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
    line-height: 1.35;
}

.tour-compare-value {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: -0.02em;
}

.tour-compare-note {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    font-style: italic;
    line-height: 1.4;
}

.tour-mid-cta {
    margin: 0 0 3rem;
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(200, 149, 46, 0.35);
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.95), rgba(247, 236, 216, 0.55));
}

.tour-mid-cta p {
    margin: 0 0 1rem;
    font-size: 1.02rem;
    color: var(--ink);
    line-height: 1.5;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.tour-report-duo {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.15rem;
}

.tour-figure--report {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.tour-whatif-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    margin: 1.25rem 0 1.75rem;
}

.tour-whatif-custom {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
    margin-bottom: 0.75rem;
}

.tour-whatif-custom-copy .landing-muted {
    margin-bottom: 1rem;
}

.tour-subsection-title {
    margin: 0 0 0.45rem;
    font-family: var(--serif);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: -0.02em;
}

.tour-figure-lede {
    margin: 0 0 0.85rem;
    max-width: 36rem;
}

.tour-shot-caption--left {
    text-align: left;
    margin-top: 0.5rem;
}

.tour-section--emphasis {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 20px;
    border: 1px solid rgba(10, 43, 93, 0.1);
    background: linear-gradient(180deg, #fffcf8, #f7f2ea);
    box-shadow: 0 12px 32px rgba(28, 25, 22, 0.04);
}

.tour-section-head {
    margin-bottom: 1.35rem;
    max-width: 40rem;
}

.tour-section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tour-section-head--center .landing-section-lede {
    margin-left: auto;
    margin-right: auto;
}

.tour-section-title {
    margin: 0 0 0.55rem;
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.6vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy-deep);
    line-height: 1.2;
}

.tour-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: center;
}

.tour-split--reverse .tour-split-copy {
    order: 2;
}

.tour-split--reverse .tour-split-media {
    order: 1;
}

.tour-split-copy .landing-muted {
    margin-bottom: 1rem;
}

.tour-split-media--stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tour-split-media--overlap {
    position: relative;
    min-height: 18rem;
}

.tour-split-media--overlap .tour-shot--card-offset {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 72%;
    z-index: 2;
    box-shadow: 0 16px 40px rgba(28, 25, 22, 0.12);
}

.tour-split-media--overlap .tour-shot--card:first-child {
    width: 78%;
    position: relative;
    z-index: 1;
}

.tour-detail-list {
    margin: 0 0 1rem;
    display: grid;
    gap: 0.75rem;
}

.tour-detail-list dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.2rem;
}

.tour-detail-list dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.45;
}

.tour-checklist {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.tour-checklist li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.45rem;
    font-size: 0.94rem;
    color: var(--ink);
    line-height: 1.45;
}

.tour-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--gold);
}

.tour-outcomes-panel {
    padding: 1.35rem 1.35rem 1.15rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 10px 28px rgba(28, 25, 22, 0.05);
}

.tour-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.tour-metric {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffcf8, #f4efe6);
    border: 1px solid rgba(215, 205, 192, 0.85);
}

.tour-metric-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.tour-metric-value {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: -0.02em;
}

.tour-shot-caption {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
    font-style: italic;
    text-align: center;
}

.tour-inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border-left: 3px solid var(--gold);
    background: rgba(200, 149, 46, 0.08);
}

.tour-inline-cta p {
    margin: 0;
    max-width: 36rem;
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.5;
}

.tour-feature-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    margin-bottom: 1.15rem;
}

.tour-callout-card {
    padding: 1.15rem 1.15rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
}

.tour-callout-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--navy-deep);
}

.tour-callout-card p {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.45;
}

.tour-cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    background: linear-gradient(145deg, #0d376d, var(--navy-deep));
    color: #fff8f2;
}

.tour-cta-band h3 {
    margin: 0 0 0.35rem;
    font-family: var(--serif);
    font-size: 1.2rem;
    color: #fff8f2;
}

.tour-cta-band .landing-muted {
    margin: 0;
    color: rgba(255, 248, 242, 0.82);
}

.tour-cta-band .btn-secondary {
    background: #fff8f2;
    color: var(--navy-deep);
    border-color: transparent;
}

.tour-duo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    margin-bottom: 1.15rem;
}

.tour-figure {
    margin: 0;
}

.tour-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    text-align: center;
}

.tour-report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.tour-report-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tour-triple-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tour-mini-feature {
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
}

.tour-mini-feature h3 {
    margin: 0.55rem 0 0.25rem;
    font-size: 0.95rem;
    color: var(--navy-deep);
}

.tour-mini-feature p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}

.tour-step-list {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.tour-step-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card);
}

.tour-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-dark), var(--copper-deep));
    color: #fff8f2;
    font-weight: 700;
    font-size: 0.95rem;
}

.tour-step-list h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    color: var(--navy-deep);
}

.tour-step-list p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.45;
}

.tour-final-cta {
    margin-top: 0.5rem;
}

/* Screenshot placeholders / filled shots */
.tour-shot {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 2px dashed rgba(10, 43, 93, 0.22);
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(10, 43, 93, 0.03),
            rgba(10, 43, 93, 0.03) 8px,
            rgba(255, 252, 248, 0.55) 8px,
            rgba(255, 252, 248, 0.55) 16px
        ),
        linear-gradient(180deg, #faf7f2, #f0ebe3);
    overflow: hidden;
    text-align: center;
}

.tour-shot--filled {
    display: block;
    border-style: solid;
    border-color: rgba(10, 43, 93, 0.12);
    background: var(--card);
    min-height: 0;
    box-shadow: 0 10px 28px rgba(16, 35, 58, 0.08);
}

.tour-shot--filled img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.tour-shot-label {
    padding: 0.75rem 1rem;
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(6, 31, 69, 0.72);
    word-break: break-all;
    max-width: 92%;
}

.tour-shot--scene {
    min-height: clamp(220px, 28vw, 300px);
}

.tour-shot--spotlight {
    min-height: clamp(280px, 38vw, 420px);
}

.tour-shot--report-cover {
    min-height: clamp(200px, 26vw, 280px);
}

.tour-shot--report-interior {
    min-height: clamp(220px, 30vw, 320px);
}

.tour-shot--hero {
    min-height: clamp(260px, 36vw, 380px);
}

.tour-shot--chart-wide {
    min-height: clamp(200px, 28vw, 280px);
}

.tour-shot--card-tall {
    min-height: 220px;
}

.tour-shot--card,
.tour-shot--card-wide {
    min-height: 160px;
}

.tour-shot--card-wide {
    min-height: 200px;
}

.tour-shot--compact {
    min-height: 88px;
}

.tour-shot--compact-wide {
    min-height: 100px;
    margin-top: 1rem;
}

.tour-shot--wide {
    min-height: 180px;
}

.tour-shot--tall {
    min-height: clamp(280px, 32vw, 360px);
}

.tour-shot--panorama {
    min-height: clamp(140px, 18vw, 200px);
    margin-top: 0.5rem;
}

.tour-shot--panorama-soft {
    min-height: clamp(120px, 16vw, 180px);
}

.tour-shot--duo-left,
.tour-shot--duo-right {
    min-height: clamp(200px, 24vw, 260px);
}

.tour-shot--table-wide {
    min-height: clamp(160px, 20vw, 220px);
}

.tour-shot--report-hero {
    min-height: clamp(240px, 30vw, 320px);
}

.tour-shot--square {
    flex: 1;
    min-height: 140px;
}

.tour-shot--thumb {
    min-height: 100px;
}

@media (max-width: 980px) {
    .tour-hero-grid,
    .tour-split,
    .tour-spotlight,
    .tour-report-duo,
    .tour-whatif-duo,
    .tour-whatif-custom,
    .tour-compare-strip {
        grid-template-columns: 1fr;
    }

    .tour-split--reverse .tour-split-copy,
    .tour-split--reverse .tour-split-media {
        order: unset;
    }

    .tour-metrics-row {
        grid-template-columns: 1fr;
    }

    .tour-jump-inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.65rem;
        -webkit-overflow-scrolling: touch;
    }

    .tour-jump a {
        white-space: nowrap;
    }
}

/* —— My Data page local nav (scoped; do not alter other page chrome) —— */
body[data-page="my-data"] {
    --my-data-subnav-height: 3.85rem;
}

.my-data-page-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 250;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0;
    background: linear-gradient(180deg, #f7f1e8 0%, #efe6d8 100%);
    border-bottom: 1px solid rgba(168, 117, 24, 0.28);
    box-shadow: 0 2px 10px rgba(16, 35, 58, 0.04);
}

.my-data-page-nav-inner {
    width: min(1360px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.my-data-scenario-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.55rem 1.05rem;
    border: 1px solid rgba(168, 117, 24, 0.4);
    border-radius: 10px;
    background: linear-gradient(180deg, #fffdf8 0%, #f3e6c8 100%);
    color: var(--navy-deep);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.my-data-scenario-btn:hover:not(.active) {
    background: #fffaf0;
}

.my-data-scenario-btn.active {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    border-color: var(--navy-deep);
    color: #fff8f2;
}

.my-data-mode-slider {
    flex: 1 1 18rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    min-width: 0;
    padding: 0;
    border: 1px solid rgba(168, 117, 24, 0.35);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #efd9a4 0%, #e5c887 100%);
}

.my-data-mode-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border: none;
    border-right: 1px solid rgba(168, 117, 24, 0.28);
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(180deg, #fffaf0 0%, #f8edcf 100%);
    color: var(--navy-deep);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.my-data-mode-slide:last-child {
    border-right: none;
}

.my-data-mode-slide:hover:not(.active) {
    background: linear-gradient(180deg, #fffdf8 0%, #fbf3df 100%);
}

.my-data-mode-slide.active {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #fff8f2;
    box-shadow: none;
}

body[data-page="my-data"] .plan-nav {
    top: calc(var(--header-height) + var(--my-data-subnav-height, 3.85rem) + 0.65rem);
}

body[data-page="my-data"] #scenarioManager,
body[data-page="my-data"] #planPanel,
body[data-page="my-data"] #myDataSummaryPanel {
    scroll-margin-top: calc(var(--header-height) + var(--my-data-subnav-height, 3.85rem) + 0.75rem);
}

body[data-page="my-data"] .plan-nav-group[hidden] {
    display: none !important;
}

body[data-page="my-data"] #planPanel[hidden],
body[data-page="my-data"] #scenarioManager[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    body[data-page="my-data"] {
        --my-data-subnav-height: 7.5rem;
    }

    .my-data-page-nav {
        padding-left: 0;
        padding-right: 0;
    }

    .my-data-page-nav-inner {
        width: min(100% - 28px, 1360px);
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .my-data-scenario-btn,
    .my-data-mode-slider {
        width: 100%;
        flex: none;
        box-sizing: border-box;
    }

    .my-data-mode-slider {
        grid-template-columns: 1fr;
    }

    .my-data-mode-slide {
        border-right: none;
        border-bottom: 1px solid rgba(168, 117, 24, 0.28);
        padding: 0.55rem 0.75rem;
        min-height: 2.55rem;
        justify-content: flex-start;
        text-align: left;
    }

    .my-data-mode-slide:last-child {
        border-bottom: none;
    }

    .my-data-scenario-btn {
        padding: 0.55rem 0.75rem;
        text-align: left;
        justify-content: flex-start;
    }
}

/* === A Penny Saved (shared public + app) === */
.starter-page-header {
            margin: 0 0 2.5rem;
        }

        .starter-eyebrow {
            margin: 0 0 0.65rem;
            font-size: 0.76rem;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--gold-dark);
        }

        .starter-title {
            margin: 0 0 0.75rem;
            font-family: var(--serif);
            font-size: clamp(1.65rem, 2.15vw, 2.35rem);
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1.12;
            color: var(--navy-deep);
        }

        @media (min-width: 900px) {
            .starter-title {
                white-space: nowrap;
            }
        }

        .starter-lede {
            margin: 0;
            color: var(--muted);
            font-size: 1.02rem;
            line-height: 1.55;
        }
        
        .starter-page section,
        .penny-saved-page section {
            margin: 0 0 2.5rem;
            padding: 0;
        }

        .starter-section-head {
            margin-bottom: 1.35rem;
            max-width: 40rem;
        }

        .starter-section-title {
            margin: 0;
            font-family: var(--serif);
            font-size: clamp(1.35rem, 2.4vw, 1.75rem);
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--navy-deep);
            line-height: 1.2;
        }
        
        .scenario-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 1.5rem;
            margin-bottom: 0;
            align-items: start;
        }
        
        .scenario-card {
            display: grid;
            grid-template-columns: 48px minmax(0, 1fr);
            column-gap: 0.85rem;
            row-gap: 0.75rem;
            align-items: start;
            align-self: start;
            height: auto;
            background: var(--card);
            border-radius: 14px;
            padding: 1.35rem 1.4rem 1.45rem;
            box-shadow: 0 4px 18px rgba(28, 25, 22, 0.04);
            border: 1px solid var(--border);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
        }

        .scenario-card > :not(.scenario-icon):not(h3) {
            grid-column: 1 / -1;
        }
        
        .scenario-card:hover {
            border-color: rgba(200, 149, 46, 0.45);
            box-shadow: 0 8px 24px rgba(28, 25, 22, 0.06);
        }
        
        .inspiration-link {
            color: var(--navy-deep);
            text-decoration: none;
            padding: 0.3rem 0;
            border-radius: 0;
            transition: color 0.2s ease, border-color 0.2s ease;
            display: block;
            font-weight: 500;
            font-size: 0.9rem;
            background: none;
            border-bottom: 1px solid rgba(215, 205, 192, 0.65);
        }
        
        .inspiration-link:hover {
            color: var(--gold-dark);
            text-decoration: none;
            border-bottom-color: rgba(200, 149, 46, 0.55);
            background: none;
        }
        
        .scenario-card.inspiration-card {
            cursor: default;
            background: linear-gradient(180deg, #fffcf8, #f7f1e8);
            border-color: rgba(200, 149, 46, 0.28);
            box-shadow: 0 4px 18px rgba(28, 25, 22, 0.03);
        }

        .inspiration-links {
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-top: 0.15rem;
        }

        .inspiration-links .inspiration-link:last-child {
            border-bottom: none;
        }
        
        .scenario-card.inspiration-card:hover {
            border-color: rgba(200, 149, 46, 0.45);
            box-shadow: 0 8px 24px rgba(28, 25, 22, 0.05);
        }
        
        .simple-savings-item {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
        }
        
        .simple-savings-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
        }
        
        .simple-savings-item-title {
            font-weight: 600;
            color: var(--ink);
        }
        
        .simple-savings-item-remove {
            background: var(--danger);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 0.25rem 0.5rem;
            cursor: pointer;
            font-size: 0.875rem;
        }
        
        .simple-savings-item-remove:hover {
            background: var(--danger-dark);
        }
        
        .scenario-icon {
            grid-column: 1;
            grid-row: 1;
            width: 48px;
            height: 48px;
            min-height: 0;
            overflow: hidden;
            line-height: 1;
            border-radius: 0;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            padding: 0;
        }

        .scenario-icon img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        
        .scenario-card h3 {
            grid-column: 2;
            grid-row: 1;
            align-self: center;
            min-width: 0;
            font-family: var(--sans);
            font-size: 1.2rem;
            margin: 0;
            padding-top: 0;
            color: var(--navy-deep);
            line-height: 1.25;
        }
        
        .scenario-description {
            color: var(--muted);
            margin: 0;
            font-size: 0.92rem;
            line-height: 1.55;
        }
        
        .scenario-result {
            margin-top: 0.15rem;
            padding-top: 0.9rem;
            border-top: 1px solid var(--border);
        }
        
        .result-label {
            margin: 0 0 0.35rem;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--gold-dark);
        }
        
        .result-value {
            margin: 0 0 0.35rem;
            font-family: var(--sans);
            font-size: clamp(1.65rem, 3vw, 2.1rem);
            font-weight: 400;
            font-variant-numeric: lining-nums tabular-nums;
            line-height: 1.1;
            color: var(--navy-deep);
        }
        
        .result-subtext {
            margin: 0;
            font-size: 0.82rem;
            color: var(--muted);
            line-height: 1.45;
        }
        
        .calculator-section {
            background: var(--card);
            border-radius: 12px;
            padding: 2rem;
            box-shadow: var(--shadow);
            margin-bottom: 0;
        }
        
        .calculator-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 2rem;
            border-bottom: 2px solid var(--border);
        }
        
        .calc-tab {
            padding: 1rem 1.5rem;
            background: transparent;
            border: none;
            color: var(--muted);
            font-weight: 600;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            margin-bottom: -2px;
            transition: all 0.2s ease;
        }
        
        .calc-tab.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
        }
        
        .calc-tab:hover {
            color: var(--ink);
        }
        
        .calc-content {
            display: none;
        }
        
        .calc-content.active {
            display: block;
        }
        
        .input-row {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem 1.25rem;
            margin-bottom: 1.5rem;
            align-items: flex-start;
        }

        .calculator-section .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            min-width: 0;
        }

        .calculator-section .form-group label {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--muted);
        }

        .calculator-section .form-group input,
        .calculator-section .form-group select {
            width: 100%;
            box-sizing: border-box;
        }

        .calculator-section .form-group small {
            display: block;
            font-size: 0.78rem;
            color: var(--muted);
            line-height: 1.35;
        }

        .calculator-section .form-group--age {
            flex: 0 0 7.25rem;
            width: 7.25rem;
        }

        .calculator-section .form-group--years {
            flex: 0 0 6.75rem;
            width: 6.75rem;
        }

        .calculator-section .form-group--money {
            flex: 0 0 11rem;
            width: 11rem;
        }

        .calculator-section .form-group--percent-note {
            flex: 0 0 13.5rem;
            width: 13.5rem;
        }

        .calculator-section .form-group--percent-note input {
            max-width: 5.25rem;
        }

        .calculator-section .form-group--text {
            flex: 1 1 14rem;
            min-width: 12rem;
            max-width: 20rem;
        }

        .calculator-section .form-group--freq {
            flex: 0 0 11.5rem;
            width: 11.5rem;
        }

        .calculator-section .form-group--select {
            flex: 0 0 9rem;
            width: 9rem;
        }
        
        .calc-result-box {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
            color: white;
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
            margin-top: 2rem;
        }
        
        .calc-result-box h4 {
            font-size: 1rem;
            margin: 0 0 1rem 0;
            opacity: 0.9;
        }
        
        .calc-result-box .big-number {
            font-family: var(--sans);
            font-size: 3rem;
            font-weight: 400;
            font-variant-numeric: lining-nums tabular-nums;
            margin: 0;
        }
        
        .calc-result-box .breakdown {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .calc-result-box .breakdown-item {
            text-align: center;
        }
        
        .calc-result-box .breakdown-label {
            font-size: 0.875rem;
            opacity: 0.8;
            margin-bottom: 0.25rem;
        }
        
        .calc-result-box .breakdown-value {
            font-size: 1.25rem;
            font-weight: 400;
            font-variant-numeric: lining-nums tabular-nums;
        }
        
        .amortization-table {
            margin-top: 2rem;
            background: var(--bg);
            border-radius: 8px;
            overflow: hidden;
        }
        
        .amortization-table table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .amortization-table th {
            background: var(--accent);
            color: white;
            padding: 0.75rem;
            text-align: left;
            font-weight: 600;
            font-size: 0.875rem;
            white-space: normal;
            word-wrap: break-word;
            max-width: 120px;
        }
        
        .amortization-table td {
            padding: 0.75rem;
            border-bottom: 1px solid var(--border);
            font-size: 0.875rem;
        }
        
        .amortization-table tr:last-child td {
            border-bottom: none;
            font-weight: 700;
            background: rgba(0, 0, 0, 0.05);
        }
        
        .amortization-table .text-right {
            text-align: right;
        }
        
        .comparison-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .comparison-box {
            background: var(--bg);
            padding: 1.5rem;
            border-radius: 8px;
            border: 2px solid var(--border);
        }
        
        .comparison-box h4 {
            margin: 0 0 1rem 0;
            color: var(--accent);
        }
        
        .comparison-box .big-number {
            font-family: var(--sans);
            font-size: 2rem;
            font-weight: 400;
            font-variant-numeric: lining-nums tabular-nums;
            color: var(--accent);
            margin: 0.5rem 0;
        }
        
        .comparison-difference {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 2px solid var(--border);
            text-align: center;
        }
        
        .comparison-difference .label {
            font-size: 0.875rem;
            color: var(--muted);
            margin-bottom: 0.5rem;
        }
        
        .comparison-difference .value {
            font-family: var(--sans);
            font-size: 1.5rem;
            font-weight: 400;
            font-variant-numeric: lining-nums tabular-nums;
            color: var(--accent);
        }

        .starter-page .big-number,
        .starter-page .amortization-table .text-right,
        .starter-page .amortization-table td.text-right,
        .penny-saved-page .big-number,
        .penny-saved-page .amortization-table .text-right,
        .penny-saved-page .amortization-table td.text-right {
            font-family: var(--sans);
            font-variant-numeric: lining-nums tabular-nums;
        }

        .penny-saved-page {
            max-width: 1100px;
            margin: 0 auto;
            padding: 2rem 1.25rem 3rem;
        }

        .penny-saved-cta {
            margin-top: 0.5rem;
            padding: 1.75rem 1.5rem;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: var(--card);
        }
        
        .habit-entry {
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            position: relative;
        }
        
        .habit-entry-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .habit-entry-title {
            font-weight: 600;
            color: var(--ink);
        }
        
        .habit-remove-btn {
            background: transparent;
            border: none;
            color: var(--muted);
            cursor: pointer;
            font-size: 1.25rem;
            padding: 0.25rem 0.5rem;
            line-height: 1;
        }
        
        .habit-remove-btn:hover {
            color: var(--accent);
        }
        
        .time-per-input-group {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }

        .time-per-input-group input[type="number"] {
            flex: 0 0 4.25rem;
            width: 4.25rem;
            min-width: 0;
        }

        .time-per-input-group select {
            flex: 1 1 5.5rem;
            min-width: 0;
        }
        
        @media (max-width: 768px) {
            .comparison-grid {
                grid-template-columns: 1fr;
            }
        }

/* Bridge: inspiration → calculator */
.penny-bridge {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1rem 1.15rem;
    align-items: start;
    margin: 0 0 1.75rem;
    padding: 1.15rem 1.25rem 1.25rem;
    border: 1px solid rgba(200, 149, 46, 0.35);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(200, 149, 46, 0.08) 0%, rgba(248, 246, 242, 0.95) 55%, #fff 100%);
}

.penny-bridge[hidden] {
    display: none !important;
}

.penny-bridge-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
}

.penny-bridge-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.penny-bridge-title {
    margin: 0 0 0.45rem;
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-deep);
    line-height: 1.25;
}

.penny-bridge-lead {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.5;
}

.penny-bridge-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
}

/* Clearer calculator panels */
.calc-panel {
    margin: 0 0 1.35rem;
    padding: 1.15rem 1.2rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8f6f2;
}

.calc-panel-label {
    margin: 0 0 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.calc-panel-add {
    margin-top: 0.85rem;
}

.input-row--aligned {
    align-items: stretch;
}

.input-row--aligned > .form-group {
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
}

.input-row--aligned > .form-group > label {
    min-height: 2.5rem;
    display: flex;
    align-items: flex-end;
    line-height: 1.25;
}

.input-row--aligned > .form-group > small {
    align-self: start;
}

.calc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    margin: 0.25rem 0 0.5rem;
    padding-top: 0.25rem;
}

.calc-actions > .btn-primary {
    min-width: 8.5rem;
}

.penny-journey-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border);
}

.penny-journey-actions[hidden],
.penny-journey-actions.is-hidden {
    display: none !important;
}

.penny-journey-select {
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    font-size: 0.875rem;
    color: var(--muted);
    max-width: 14rem;
}

.starter-page .calculator-section .form-group small,
.penny-saved-page .calculator-section .form-group small {
    font-size: 0.8rem;
    color: #6b6560;
}

.habit-entry,
.simple-savings-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.05rem 1.1rem;
    margin-bottom: 0.85rem;
}

@media (max-width: 720px) {
    .penny-bridge {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .penny-journey-actions {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        width: 100%;
    }

    .calculator-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .calc-tab {
        white-space: nowrap;
        padding: 0.85rem 1rem;
    }
}

/* —— 2-Minute Retirement Stress Test (public) —— */
.stress-test-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3.5rem;
}

.stress-test-header {
    margin: 0 0 1.75rem;
    max-width: 42rem;
}

.stress-test-title {
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy-deep);
    line-height: 1.15;
}

.stress-test-lede {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink);
}

.stress-test-note {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--muted);
}

.stress-test-form {
    display: grid;
    gap: 1.15rem;
}

.stress-test-panel {
    padding: 1.2rem 1.25rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
}

.stress-test-panel-title {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.stress-test-panel-lede {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.45;
}

.stress-test-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.stress-test-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.stress-test-form .form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
}

.stress-test-form .form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
}

.stress-currency-field {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.stress-currency-field:focus-within {
    outline: 2px solid rgba(10, 43, 93, 0.22);
    border-color: var(--accent);
}

.stress-currency-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.65rem;
    background: rgba(246, 247, 246, 0.95);
    border-right: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    user-select: none;
}

.stress-currency-field input {
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    text-align: right;
    font-variant-numeric: tabular-nums;
    padding-left: 0.55rem;
}

.stress-test-form .form-group small {
    font-size: 0.8rem;
    color: #6b6560;
}

.stress-test-assumptions {
    padding: 1.2rem 1.25rem 1.3rem;
    border-radius: 14px;
    border: 1px solid rgba(200, 149, 46, 0.28);
    background: linear-gradient(165deg, #fffcf8 0%, #f4ebe0 100%);
}

.stress-test-assumptions ul {
    margin: 0 0 0.85rem;
    padding-left: 1.15rem;
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.55;
}

.stress-test-assumptions p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--muted);
}

.stress-test-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.stress-test-status {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.stress-test-results {
    margin-top: 2.5rem;
    padding-top: 0.5rem;
}

.stress-test-results-header {
    margin: 0 0 1.35rem;
    max-width: 46rem;
}

.stress-test-results-header h2 {
    margin: 0 0 0.65rem;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    color: var(--navy-deep);
}

.stress-test-verdict {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink);
}

.stress-test-verdict.is-pass {
    color: #166534;
}

.stress-test-verdict.is-fail {
    color: #9f1239;
}

.stress-test-spend-hint {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}

.stress-test-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0 0 1rem;
}

.stress-test-metric-card {
    padding: 1.1rem 1.15rem 1.2rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 35, 58, 0.04);
}

.stress-test-metric-card h3 {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.stress-test-metric-value {
    margin: 0 0 0.35rem;
    font-family: var(--sans);
    font-size: clamp(1.55rem, 2.8vw, 1.95rem);
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--navy-deep);
    line-height: 1.15;
}

.stress-test-metric-meta {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--muted);
}

.stress-test-mc-note {
    margin: 0 0 1.35rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--muted);
}

.stress-test-charts {
    display: grid;
    gap: 1.15rem;
    margin: 0 0 1.5rem;
}

.stress-test-charts .dashboard-card {
    padding: 1rem 1.1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
}

.stress-test-charts .chart-wrap {
    min-height: 240px;
}

.stress-test-caveats {
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 252, 248, 0.9);
}

.stress-test-caveats p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--muted);
}

.stress-test-cta {
    padding: 1.5rem 1.4rem 1.55rem;
    border-radius: 16px;
    border: 1px solid rgba(200, 149, 46, 0.3);
    background:
        radial-gradient(600px 220px at 100% 0%, rgba(200, 149, 46, 0.12), transparent 55%),
        linear-gradient(165deg, #fffcf8 0%, var(--parchment) 100%);
}

.stress-test-cta h2 {
    margin: 0 0 0.55rem;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    color: var(--copper-deep);
}

.stress-test-cta > p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ink);
}

.stress-test-cta-handoff {
    color: var(--muted) !important;
}

.landing-stress-tease-note {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.45;
}

.landing-stress-tease .landing-cta-row .btn span[aria-hidden="true"] {
    margin-left: 0.35rem;
}

#stress-test-tease {
    scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

@media (max-width: 900px) {
    .stress-test-grid,
    .stress-test-metric-grid {
        grid-template-columns: 1fr;
    }
}

/* —— Public SEO calculators (modular cores) —— */
.seo-calc-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3.5rem;
}

.seo-calc-header {
    margin: 0 0 1.5rem;
    max-width: 44rem;
}

.seo-calc-title {
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy-deep);
    line-height: 1.15;
}

.seo-calc-lede {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink);
}

.rpc-calc,
.seo-calc-mount {
    margin: 0 0 2rem;
}

.rpc-calc .stress-test-form,
.seo-calc-mount .stress-test-form {
    display: grid;
    gap: 1.15rem;
}

.rpc-calc-results {
    margin-top: 1.25rem;
    padding: 1.35rem 1.3rem 1.45rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
}

.rpc-calc-headline {
    margin: 0 0 0.45rem;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    color: var(--navy-deep);
    line-height: 1.2;
}

.rpc-calc-subhead {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--muted);
}

.rpc-calc-path-grid,
.rpc-calc-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1rem 0;
}

.rpc-calc-metric-card,
.rpc-calc-path-card {
    padding: 1rem 1.05rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 252, 248, 0.95);
}

.rpc-calc-metric-card h3,
.rpc-calc-path-card h3 {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.rpc-calc-metric-value,
.rpc-calc-path-value {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-deep);
}

.rpc-calc-metric-meta,
.rpc-calc-path-meta {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.45;
}

.rpc-calc-note {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.rpc-calc-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 260px;
    margin-top: 1rem;
}

.seo-calc-prose {
    max-width: 44rem;
    margin: 0 0 2rem;
}

.seo-calc-prose h2 {
    margin: 1.75rem 0 0.65rem;
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--copper-deep);
}

.seo-calc-prose h2:first-child {
    margin-top: 0;
}

.seo-calc-prose p,
.seo-calc-prose li {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--ink);
}

.seo-calc-prose ul {
    margin: 0.4rem 0 0.85rem;
    padding-left: 1.2rem;
}

.seo-calc-prose a {
    color: var(--copper);
    font-weight: 600;
}

.seo-calc-cta {
    padding: 1.5rem 1.4rem 1.55rem;
    margin: 0 0 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(200, 149, 46, 0.3);
    background:
        radial-gradient(600px 220px at 100% 0%, rgba(200, 149, 46, 0.12), transparent 55%),
        linear-gradient(165deg, #fffcf8 0%, var(--parchment) 100%);
}

.seo-calc-cta h2 {
    margin: 0 0 0.55rem;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    color: var(--copper-deep);
}

.seo-calc-cta-body p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ink);
}

.seo-calc-related {
    margin: 0 0 1.75rem;
}

.seo-calc-related h2 {
    margin: 0 0 0.65rem;
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--copper-deep);
}

.seo-calc-related-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.seo-calc-related-list a {
    color: var(--copper);
    font-weight: 600;
    text-decoration: none;
}

.seo-calc-related-list a:hover {
    text-decoration: underline;
}

.seo-calc-trust {
    padding: 1.2rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 252, 248, 0.92);
}

.seo-calc-trust h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--copper-deep);
}

.seo-calc-trust p {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--muted);
}

.seo-calc-trust-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    align-items: center;
}

.seo-calc-trust-links a {
    color: var(--copper);
    font-weight: 600;
}

.seo-calc-faq {
    margin: 0 0 1.75rem;
    max-width: 44rem;
}

.seo-calc-faq > h2 {
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--copper-deep);
}

.seo-calc-prose h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.05rem;
    color: var(--navy-deep);
}


.rpc-calc-table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
}

.seo-calc-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.seo-calc-data-table th,
.seo-calc-data-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.seo-calc-data-table th {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.rpc-calc-assumptions {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

.rpc-calc-assumptions ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
}

@media (max-width: 900px) {
    .rpc-calc-path-grid,
    .rpc-calc-metric-grid {
        grid-template-columns: 1fr;
    }
}

