/* Investment page */
.investment-page {
    --investment-ink: #f7eefb;
    --investment-muted: #cbbbd4;
    --investment-line: #4a315c;
    background: #120c1d;
    color: var(--investment-ink);
    font-size: 1rem;
    line-height: 1.65;
}
.investment-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.investment-page h1, .investment-page h2, .investment-page h3, .investment-page p, .investment-page figure { margin: 0; }
.investment-page h1, .investment-page h2, .investment-page h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.18;
    text-wrap: balance;
}
.investment-page h1 { max-width: 900px; font-size: clamp(2.4rem, 5vw, 4rem); }
.investment-page h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.investment-page h3 { font-size: 1.5rem; }
.investment-page [id] { scroll-margin-top: 1.5rem; }
.investment-page [hidden] { display: none !important; }
.investment-page a:focus-visible,
.investment-page button:focus-visible,
.investment-page input:focus-visible,
.investment-page summary:focus-visible { outline: 3px solid #ba78e2; outline-offset: 4px; }
.investment-page a:hover { text-decoration: underline; text-underline-offset: 4px; }
.investment-hero { padding: 1.5rem 0 2.5rem; }
.investment-breadcrumb { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; color: var(--investment-muted); font-size: .85rem; }
.investment-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.investment-hero .investment-lead { margin-top: 1.25rem; max-width: 72ch; font-size: 1.1rem; color: #e1d4e6; }
.investment-hero .investment-summary { max-width: 76ch; margin-top: 1rem; color: var(--investment-muted); }
.investment-summary strong { color: var(--investment-ink); font-weight: 600; }
.investment-section-nav { border-block: 1px solid var(--investment-line); }
.investment-section-nav > .investment-shell { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: thin; }
.investment-section-nav a { display: flex; align-items: center; flex-shrink: 0; min-height: 52px; font-size: .85rem; }
.investment-story, .investment-estimate, .investment-activity, .investment-method { padding: 2.5rem 0; }
.investment-story, .investment-estimate {
    --investment-ink: #2e2036;
    --investment-muted: #66516b;
    --investment-line: #d4c6d7;
    background: #f5efe6;
    color: var(--investment-ink);
}
.investment-timeline { display: grid; gap: 1.5rem; padding: 0; margin: 1.75rem 0 1rem; list-style: none; }
.investment-timeline li { padding-top: .75rem; border-top: 1px solid #ba91c5; }
.investment-date { font-size: .8rem; color: #774484; }
.investment-timeline h3 { margin: .5rem 0; }
.investment-timeline p { color: var(--investment-muted); font-size: .95rem; }
.investment-story .investment-story-source { font-size: .8rem; color: var(--investment-muted); }
.investment-story-source a, .investment-method a { text-decoration: underline; text-underline-offset: 4px; }
.investment-estimate { padding-top: 0; }
.investment-estimate > .investment-shell { padding-top: 2.5rem; border-top: 1px solid var(--investment-line); }
.investment-section-heading { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.investment-section-heading p { max-width: 72ch; color: var(--investment-muted); }
.investment-calculator { display: grid; border: 1px solid var(--investment-line); background: #fffaf4; }
.investment-controls, .investment-result { padding: 1.25rem; min-width: 0; }
.investment-small-title { font-size: .9rem; font-weight: 600; }
.investment-presets { display: flex; flex-wrap: wrap; gap: .5rem; margin: .85rem 0; }
.investment-presets button {
    min-height: 44px;
    padding: .5rem 1rem;
    border: 1px solid #bba7c3;
    border-radius: 3px;
    background: transparent;
    color: #4e325a;
    font: inherit;
    font-size: .85rem;
    cursor: pointer;
}
.investment-presets button[aria-pressed=true] { background: #542367; border-color: #542367; color: white; }
.investment-presets button:hover { border-color: #542367; }
.investment-inputs { min-width: 0; margin: 1.25rem 0; padding: 0; border: 0; }
.investment-inputs legend { margin-bottom: .5rem; font-size: .8rem; color: var(--investment-muted); }
.investment-inputs label { display: grid; grid-template-columns: minmax(0, 1fr) 105px; align-items: center; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--investment-line); font-size: .9rem; }
.investment-inputs input { width: 100%; min-height: 46px; padding: .5rem; border: 1px solid #a48aad; border-radius: 3px; background: white; color: #2e2036; font: inherit; font-size: 1rem; text-align: right; font-variant-numeric: tabular-nums; }
.investment-page .investment-input-error { color: #9d2639; font-size: .85rem; }
.investment-formula { font-size: .85rem; color: #774484; }
.investment-page .investment-small-copy { margin-top: .75rem; font-size: .8rem; color: var(--investment-muted); }
.investment-result { background: #271334; color: #fff2fb; }
.investment-result > .investment-small-title { color: #d6bce5; }
.investment-total { display: block; margin: 1rem 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.4rem, 5vw, 3.5rem); line-height: 1.2; letter-spacing: -.03em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.investment-value-track { display: flex; height: 6px; margin: 1.25rem 0; background: #d9ad6f; }
.investment-value-track span:first-child { background: #ca8eef; }
.investment-breakdown { margin: 0; }
.investment-breakdown > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: .75rem 0; border-bottom: 1px solid #62456e; }
.investment-breakdown dt { font-size: .9rem; color: #e2cfe9; }
.investment-breakdown dd { margin: 0; font-size: 1rem; font-variant-numeric: tabular-nums; }
.investment-breakdown i { display: inline-block; width: 8px; height: 8px; margin-right: .5rem; }
.investment-key-time { background: #ca8eef; }
.investment-key-cash { background: #d9ad6f; }
.investment-page .investment-result-note { margin-top: 1.25rem; font-size: .85rem; color: #d6bce5; }
.investment-table-wrap { overflow-x: auto; margin-top: 1.5rem; }
.investment-scenarios { width: 100%; border-collapse: collapse; font-size: .85rem; white-space: nowrap; }
.investment-scenarios caption { padding-bottom: .5rem; text-align: left; color: var(--investment-muted); font-size: .8rem; }
.investment-scenarios th, .investment-scenarios td { padding: .75rem; text-align: left; border-bottom: 1px solid var(--investment-line); }
.investment-scenarios th:first-child { padding-left: 0; }
.investment-scenarios tbody tr:nth-child(2) { color: #662d7c; }
.investment-page .investment-footnote { max-width: 100ch; margin-top: 1rem; font-size: .8rem; color: var(--investment-muted); }
.investment-portfolio { margin: 1.5rem 0; }
.investment-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.investment-grid-line { stroke: #634c6e; stroke-width: 1; stroke-dasharray: 3 5; }
.investment-axis { font-family: system-ui, sans-serif; font-size: 28px; fill: #cbbbd4; }
.investment-bar-prior { fill: #a39ba8; }
.investment-bar-current { fill: #cf95f2; }
.investment-zero { fill: #a39ba8; }
.investment-chart figcaption { padding-top: .25rem; font-size: .75rem; color: var(--investment-muted); }
.investment-chart-context { display: grid; gap: 1rem; margin: 1.25rem 0 2rem; color: var(--investment-muted); font-size: .85rem; }
.investment-log-wrap { overflow-x: auto; }
.investment-activity-log { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.investment-activity-log caption { padding-bottom: .75rem; text-align: left; font-weight: 600; color: var(--investment-ink); }
.investment-activity-log th, .investment-activity-log td { padding: .65rem 0; border-bottom: 1px solid var(--investment-line); text-align: left; }
.investment-activity-log tbody th { font-weight: 400; color: var(--investment-muted); }
.investment-activity-log td, .investment-activity-log thead th:last-child { text-align: right; }
.investment-activity-log tfoot th, .investment-activity-log tfoot td { padding-top: 1rem; border-bottom: 0; font-weight: 600; }
.investment-log-wrap:focus-visible { outline: 3px solid #ba78e2; outline-offset: 4px; }
.investment-method { background: #ece2ee; color: #34233d; }
.investment-method-grid { display: grid; gap: 1.5rem; }
.investment-method-grid > div:last-child { display: grid; gap: 1rem; color: #5d4767; font-size: .9rem; }
.investment-method strong { color: #34233d; font-weight: 600; }
.investment-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; margin-top: .75rem; font-size: .9rem; }
@media (min-width: 640px) {
    .investment-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
    .investment-timeline h3 { font-size: 1.35rem; }
    .investment-portfolio { margin: 1.5rem 0; }
    .investment-controls, .investment-result { padding: 1.75rem; }
    .investment-axis { font-size: 16px; }
}
@media (min-width: 960px) {
    .investment-shell { width: min(1120px, calc(100% - 80px)); }
    .investment-hero { padding: 2rem 0 3rem; }
    .investment-story, .investment-activity, .investment-method { padding: 3rem 0; }
    .investment-estimate { padding-bottom: 3rem; }
    .investment-calculator { grid-template-columns: 1fr 1fr; }
    .investment-chart-context { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; }
    .investment-method-grid { grid-template-columns: .85fr 1.5fr; gap: 3rem; }
    .investment-axis { font-size: 12px; }
}
@media (max-width: 639px) { .investment-axis-intermediate { display: none; } }
@media print {
    .investment-page, .investment-story, .investment-estimate, .investment-method, .investment-result { background: white; color: black; }
    .investment-section-nav, .investment-presets, .investment-inputs { display: none; }
    .investment-page p, .investment-chart figcaption { color: #333 !important; }
    .investment-axis { fill: #333; }
}
