/*
  Desktop art-direction layer.
  Canonical 1024 x 1536 references supplied by the user.
  The visual system is an operable personal-finance field guide: serif narrative,
  condensed labels, sans controls, fine rules, restrained paper and ink.
*/

body.editorial-ui,
body.research-page {
  --paper: #f3ecde;
  --paper-raised: #f8f2e7;
  --navy: #0b304f;
  --rust: #c9562f;
  --teal: #2f7678;
  --plum: #70475d;
  --ochre: #b77d27;
  --ink-soft: #243e54;
  --line: rgba(11, 48, 79, .23);
  --line-strong: rgba(11, 48, 79, .62);
  --shell-offset: max(50px, calc((100vw - 1400px) / 2));
  color: var(--navy);
  background-color: var(--paper);
}

/* r35 — authoritative Housing spread.
   The accepted board is a 1024 × 1536 printed comparison worksheet, not the
   earlier three-mode product card.  This pass preserves the live engine while
   matching that board's page frame, field ledger, comparison tiles, chart,
   woodblock verdict, and quiet closing bands. */
@media (min-width: 900px) {
  body.editorial-ui:has(#module-view:not([hidden]) .home-editorial-page) {
    --shell-offset: 0px;
  }

  body.editorial-ui:has(#module-view:not([hidden]) .home-editorial-page) .app-shell {
    width: min(1024px, 100vw);
    min-height: 1536px;
    margin: 0 auto;
  }

  body.editorial-ui .site-header[data-profile="housing"] {
    width: calc(100% - 56px);
    height: 80px;
    min-height: 80px;
    margin: 0 28px;
    padding: 12px 0 11px;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(11, 48, 79, .52);
  }

  body.editorial-ui .site-header[data-profile="housing"] .site-name {
    width: 292px;
    flex: 0 0 292px;
    color: var(--navy);
    font-family: var(--font-editorial);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: .015em;
    line-height: 1.04;
    text-transform: uppercase;
  }

  body.editorial-ui .site-header[data-profile="housing"] .site-name small {
    margin-top: 5px;
    display: block;
    font-family: var(--font-editorial);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
  }

  body.editorial-ui .site-header[data-profile="housing"] .primary-nav {
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 0;
  }

  body.editorial-ui .site-header[data-profile="housing"] .nav-action {
    min-height: 30px;
    padding: 6px 0;
    color: var(--navy);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
  }

  body.editorial-ui .site-header[data-profile="housing"] .nav-action::after {
    bottom: -13px;
    height: 1px;
  }

  body.editorial-ui .site-header[data-profile="housing"] .nav-action[data-view="modules"]::after {
    background: transparent;
  }

  body.editorial-ui .site-header[data-profile="housing"] .nav-action[aria-current="page"]::after {
    background: var(--rust);
  }

  body.editorial-ui .header-profile-button {
    width: 34px;
    flex: 0 0 34px;
  }

  body.editorial-ui .header-profile-icon {
    position: relative;
    width: 28px;
    height: 28px;
    display: block;
    border: 1.3px solid var(--navy);
    border-radius: 50%;
  }

  body.editorial-ui .header-profile-icon::before {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1.2px solid var(--navy);
    border-radius: 50%;
    content: "";
    transform: translateX(-50%);
  }

  body.editorial-ui .header-profile-icon i {
    position: absolute;
    right: 5px;
    bottom: 4px;
    left: 5px;
    height: 8px;
    border: 1.2px solid var(--navy);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
  }

  body.editorial-ui:has(#module-view:not([hidden]) .home-editorial-page) #module-view {
    width: 100%;
    margin: 0;
  }

  body.editorial-ui .home-editorial-page {
    width: 100%;
    min-height: 1456px;
    color: var(--navy);
  }

  body.editorial-ui .home-editorial-intro {
    height: 216px;
    margin: 0 21px;
    padding: 34px 16px 20px;
    display: grid;
    grid-template-columns: 535px minmax(0, 1fr);
    align-items: start;
    gap: 29px;
  }

  body.editorial-ui .home-editorial-title-block {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    column-gap: 15px;
  }

  body.editorial-ui .home-editorial-title-icon {
    width: 82px;
    height: 72px;
    display: grid;
    place-items: center;
    color: var(--rust);
  }

  body.editorial-ui .home-editorial-title-icon svg {
    width: 82px;
    height: 68px;
  }

  body.editorial-ui .home-editorial-title-block h1 {
    margin: 0;
    color: var(--rust);
    font-family: var(--font-display);
    font-size: 55px;
    font-weight: 700;
    letter-spacing: .025em;
    line-height: .88;
    text-transform: uppercase;
  }

  body.editorial-ui .home-editorial-title-block > div > p {
    margin: 8px 0 0;
    color: #221f1a;
    font-family: var(--font-editorial);
    font-size: 17px;
    line-height: 1.12;
  }

  body.editorial-ui .home-editorial-deck {
    max-width: 430px;
    margin: 23px 0 0;
    grid-column: 1 / -1;
    color: #37362f;
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.45;
  }

  body.editorial-ui .home-editorial-how {
    min-height: 114px;
    margin-top: 14px;
    padding: 17px 20px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 16px;
    border: 1px solid rgba(47, 118, 120, .82);
    border-radius: 6px;
    background: rgba(248, 242, 231, .44);
  }

  body.editorial-ui .home-editorial-how > span {
    width: 27px;
    height: 27px;
    color: var(--teal);
  }

  body.editorial-ui .home-editorial-how > span svg {
    width: 27px;
    height: 27px;
  }

  body.editorial-ui .home-editorial-how h2 {
    margin: 1px 0 6px;
    color: var(--teal);
    font-family: var(--font-editorial);
    font-size: 15px;
    font-weight: 700;
  }

  body.editorial-ui .home-editorial-how p {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-ui);
    font-size: 11px;
    line-height: 1.62;
  }

  body.editorial-ui .home-editorial-workspace {
    width: calc(100% - 42px);
    height: 1100px;
    margin: 0 21px;
    display: grid;
    grid-template-columns: 408px minmax(0, 1fr);
    align-items: stretch;
    gap: 6px;
  }

  body.editorial-ui .home-editorial-workspace > :is(.input-panel, .module-result-panel) {
    height: 1100px;
    min-height: 0;
    border: 1px solid rgba(104, 85, 55, .31);
    border-radius: 5px;
    background: rgba(250, 247, 238, .34);
    box-shadow: none;
  }

  body.editorial-ui .home-editorial-workspace > .input-panel {
    padding: 0 15px 15px;
    overflow: hidden;
  }

  body.editorial-ui .home-editorial-input-header {
    height: 62px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(104, 85, 55, .36);
  }

  body.editorial-ui .home-editorial-input-header h2,
  body.editorial-ui .home-editorial-result-header h2 {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
  }

  body.editorial-ui .home-editorial-input-header button {
    min-height: 28px;
    padding: 3px 0 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #47433c;
    border: 0;
    background: transparent;
    font-family: var(--font-ui);
    font-size: 10px;
  }

  body.editorial-ui .home-editorial-input-header button svg {
    width: 15px;
    height: 15px;
  }

  body.editorial-ui .home-editorial-field-section {
    padding: 11px 8px 12px;
    display: grid;
    gap: 0;
    border-bottom: 1px solid rgba(104, 85, 55, .32);
  }

  body.editorial-ui .home-editorial-field-section .field {
    min-width: 0;
    min-height: 49px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 154px;
    align-items: center;
    gap: 10px;
  }

  body.editorial-ui .home-editorial-field-section .field-label-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.editorial-ui .home-editorial-field-section .field-label-row label {
    color: #252b2e;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.18;
  }

  body.editorial-ui .home-editorial-page .field-help {
    width: 15px;
    height: 15px;
    min-height: 15px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 15px;
    color: #53616a;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: var(--font-editorial);
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
  }

  body.editorial-ui .home-editorial-field-section .input-wrap {
    width: 154px;
    height: 35px;
    min-height: 35px;
    justify-self: end;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid rgba(104, 85, 55, .27);
    border-radius: 4px;
    background: rgba(255, 253, 247, .42);
  }

  body.editorial-ui .home-editorial-field-section .input-wrap :is(input, select) {
    width: 100%;
    height: 33px;
    min-height: 33px;
    padding: 5px 10px;
    color: #1d2a31;
    border: 0;
    background: transparent;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-align: right;
  }

  body.editorial-ui .home-editorial-field-section .input-wrap select {
    appearance: auto;
    text-align-last: left;
  }

  body.editorial-ui .home-editorial-field-section :is(.input-prefix, .input-suffix) {
    min-width: 26px;
    height: 33px;
    padding: 0 7px;
    display: grid;
    place-items: center;
    color: #31363a;
    border: 0;
    font-family: var(--font-ui);
    font-size: 11px;
  }

  body.editorial-ui .home-editorial-field-section .input-prefix {
    border-right: 1px solid rgba(104, 85, 55, .21);
  }

  body.editorial-ui .home-editorial-field-section .input-suffix {
    min-width: 31px;
  }

  body.editorial-ui .home-editorial-field-with-note {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 3px;
  }

  body.editorial-ui .home-editorial-field-with-note .field {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  body.editorial-ui .home-editorial-field-with-note .field .input-wrap {
    width: 116px;
  }

  body.editorial-ui .home-editorial-field-with-note > strong {
    color: #303539;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 400;
    text-align: right;
  }

  body.editorial-ui .home-editorial-horizon-section {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  body.editorial-ui .home-editorial-budget-box {
    min-height: 153px;
    margin: 15px 0 14px;
    padding: 16px 15px 13px;
    color: #2c2b28;
    border: 1px solid rgba(104, 85, 55, .27);
    border-radius: 4px;
    background: rgba(235, 225, 207, .24);
  }

  body.editorial-ui .home-editorial-budget-box > p {
    margin: 0;
    color: #2c2b28;
    font-family: var(--font-editorial);
    font-size: 13px;
    line-height: 1.35;
  }

  body.editorial-ui .home-editorial-radio-row {
    margin: 9px 0 7px;
    display: flex;
    gap: 24px;
  }

  body.editorial-ui .home-editorial-radio-row button {
    min-height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #272a2d;
    border: 0;
    background: transparent;
    font-family: var(--font-ui);
    font-size: 12px;
  }

  body.editorial-ui .home-editorial-radio-row button i {
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border: 1px solid #4a5155;
    border-radius: 50%;
  }

  body.editorial-ui .home-editorial-radio-row button[aria-pressed="true"] i::after {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rust);
    content: "";
  }

  body.editorial-ui .home-editorial-budget-box > small {
    display: block;
    color: #4b4b47;
    font-family: var(--font-ui);
    font-size: 9.5px;
    line-height: 1.45;
  }

  body.editorial-ui .home-editorial-additional {
    margin: 0;
    border: 1px solid rgba(104, 85, 55, .27);
    border-radius: 4px;
    background: rgba(255, 253, 247, .18);
  }

  body.editorial-ui .home-editorial-additional > summary {
    min-height: 72px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
  }

  body.editorial-ui .home-editorial-additional > summary::-webkit-details-marker {
    display: none;
  }

  body.editorial-ui .home-editorial-additional > summary span {
    display: grid;
    gap: 5px;
  }

  body.editorial-ui .home-editorial-additional > summary b {
    color: #2a3034;
    font-family: var(--font-ui);
    font-size: 11px;
  }

  body.editorial-ui .home-editorial-additional > summary small {
    color: #4b4b47;
    font-family: var(--font-ui);
    font-size: 9.5px;
  }

  body.editorial-ui .home-editorial-additional > summary > svg {
    width: 17px;
    height: 17px;
    transition: transform .16s ease;
  }

  body.editorial-ui .home-editorial-additional[open] > summary > svg {
    transform: rotate(90deg);
  }

  body.editorial-ui .home-editorial-additional-body {
    max-height: 250px;
    padding: 5px 14px 14px;
    display: grid;
    gap: 7px;
    overflow: auto;
    border-top: 1px solid rgba(104, 85, 55, .22);
  }

  body.editorial-ui .home-editorial-additional-body .field {
    display: grid;
    grid-template-columns: 1fr 118px;
    align-items: center;
    gap: 10px;
  }

  body.editorial-ui .home-editorial-additional-body .field-label-row label {
    font-size: 10px;
  }

  body.editorial-ui .home-editorial-additional-body .input-wrap {
    width: 118px;
  }

  body.editorial-ui .home-editorial-additional-body .input-wrap :is(input, select) {
    min-height: 31px;
    height: 31px;
    font-size: 11px;
  }

  body.editorial-ui .home-editorial-workspace > .module-result-panel {
    padding: 0 14px 13px;
    overflow: hidden;
  }

  body.editorial-ui .home-editorial-result-header {
    height: 62px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(104, 85, 55, .36);
  }

  body.editorial-ui .home-editorial-result-header p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4e4b46;
    font-family: var(--font-ui);
    font-size: 10px;
  }

  body.editorial-ui .home-editorial-metric-grid {
    margin: 0;
    padding: 0 0 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
    border-bottom: 1px solid rgba(104, 85, 55, .35);
  }

  body.editorial-ui .home-editorial-metric {
    min-width: 0;
    min-height: 131px;
    overflow: hidden;
    border: 1px solid rgba(104, 85, 55, .29);
    border-radius: 5px;
    background: rgba(255, 253, 247, .25);
  }

  body.editorial-ui .home-editorial-metric:nth-child(-n + 3) {
    min-height: 157px;
  }

  body.editorial-ui .home-editorial-metric h3 {
    min-height: 42px;
    margin: 0;
    padding: 11px 8px 8px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    color: #2d3031;
    border-bottom: 1px solid rgba(104, 85, 55, .22);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.18;
    text-align: center;
  }

  body.editorial-ui .home-editorial-metric.is-pair > div {
    min-height: 87px;
    padding: 14px 6px 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.editorial-ui .home-editorial-metric.is-pair > div > span {
    min-width: 0;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 7px;
    color: var(--teal);
    border-right: 1px solid rgba(104, 85, 55, .24);
  }

  body.editorial-ui .home-editorial-metric.is-pair > div > span:first-child {
    color: var(--rust);
  }

  body.editorial-ui .home-editorial-metric.is-pair > div > span:last-child {
    border-right: 0;
  }

  body.editorial-ui .home-editorial-metric small {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
  }

  body.editorial-ui .home-editorial-metric strong {
    display: block;
    color: currentColor;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    white-space: nowrap;
  }

  body.editorial-ui .home-editorial-metric em {
    color: #2f3335;
    font-family: var(--font-ui);
    font-size: 9px;
    font-style: normal;
  }

  body.editorial-ui .home-editorial-metric.is-single {
    padding-bottom: 10px;
    text-align: center;
  }

  body.editorial-ui .home-editorial-metric.is-single > strong {
    margin-top: 17px;
    color: #25282b;
    font-family: var(--font-editorial);
    font-size: 19px;
    font-weight: 400;
  }

  body.editorial-ui .home-editorial-metric.is-single > p {
    max-width: 130px;
    margin: 10px auto 0;
    color: #4e4c47;
    font-family: var(--font-ui);
    font-size: 9px;
    line-height: 1.45;
  }

  body.editorial-ui .home-editorial-chart-section {
    height: 337px;
    padding: 15px 8px 0;
    border-bottom: 1px solid rgba(104, 85, 55, .35);
  }

  body.editorial-ui .home-editorial-chart-section > header {
    min-height: 39px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
  }

  body.editorial-ui .home-editorial-chart-section h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
  }

  body.editorial-ui .home-editorial-chart-section header p {
    margin: 2px 0 0;
    color: #4d4a45;
    font-family: var(--font-ui);
    font-size: 9px;
  }

  body.editorial-ui .home-editorial-legend {
    padding-top: 3px;
    display: flex;
    gap: 25px;
    color: #33383b;
    font-family: var(--font-ui);
    font-size: 9px;
  }

  body.editorial-ui .home-editorial-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  body.editorial-ui .home-editorial-legend i {
    width: 22px;
    height: 2px;
    display: block;
    background: var(--rust);
  }

  body.editorial-ui .home-editorial-legend .rent i {
    background: var(--teal);
  }

  body.editorial-ui .home-editorial-cash-chart {
    width: 100%;
    height: 250px;
    display: block;
    overflow: visible;
  }

  body.editorial-ui .home-editorial-cash-chart text {
    fill: #384248;
    font-family: var(--font-ui);
    font-size: 10px;
  }

  body.editorial-ui .home-editorial-grid line {
    stroke: rgba(63, 74, 77, .19);
    stroke-width: 1;
  }

  body.editorial-ui .home-editorial-series {
    fill: none;
    stroke-width: 2;
  }

  body.editorial-ui .home-editorial-series.buy {
    stroke: var(--rust);
  }

  body.editorial-ui .home-editorial-series.rent {
    stroke: var(--teal);
  }

  body.editorial-ui .home-editorial-hover-zone > line,
  body.editorial-ui .home-editorial-hover-zone > circle {
    opacity: 0;
    pointer-events: none;
  }

  body.editorial-ui .home-editorial-hover-zone > line {
    stroke: rgba(11, 48, 79, .45);
    stroke-dasharray: 3 3;
  }

  body.editorial-ui .home-editorial-hover-zone > circle.buy,
  body.editorial-ui .home-editorial-end.buy {
    fill: var(--rust);
  }

  body.editorial-ui .home-editorial-hover-zone > circle.rent,
  body.editorial-ui .home-editorial-end.rent {
    fill: var(--teal);
  }

  body.editorial-ui .home-editorial-hover-zone:hover > :is(line, circle),
  body.editorial-ui .home-editorial-hover-zone:focus > :is(line, circle) {
    opacity: 1;
  }

  body.editorial-ui .home-editorial-end-label.buy {
    fill: var(--rust);
    font-weight: 700;
  }

  body.editorial-ui .home-editorial-end-label.rent {
    fill: var(--teal);
    font-weight: 700;
  }

  body.editorial-ui .home-editorial-axis-title {
    font-size: 9px;
  }

  body.editorial-ui .home-editorial-chart-note {
    width: 92%;
    margin: -1px 0 0 8px;
    padding-left: 16px;
    color: #4d4b46;
    border-left: 2px solid var(--plum);
    font-family: var(--font-ui);
    font-size: 9px;
    line-height: 1.45;
  }

  body.editorial-ui .home-editorial-verdict {
    height: 164px;
    margin: 15px 0 0;
    display: grid;
    grid-template-columns: 158px minmax(0, 1fr);
    overflow: hidden;
    color: var(--rust);
    border: 1px solid var(--rust);
    border-radius: 5px;
    background: rgba(255, 253, 247, .26);
  }

  body.editorial-ui .home-editorial-verdict > img {
    width: 188px;
    height: 164px;
    object-fit: cover;
    object-position: 8% center;
    mix-blend-mode: multiply;
    transform: translateX(-6px);
  }

  body.editorial-ui .home-editorial-verdict > div {
    position: relative;
    z-index: 1;
    padding: 18px 14px 10px 16px;
    background: linear-gradient(90deg, rgba(246, 237, 222, .55), rgba(246, 237, 222, .93) 28%);
  }

  body.editorial-ui .home-editorial-verdict > div > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  body.editorial-ui .home-editorial-verdict-line {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
  }

  body.editorial-ui .home-editorial-verdict-line > strong {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: .92;
  }

  body.editorial-ui .home-editorial-verdict-line > b {
    display: grid;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: .05em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  body.editorial-ui .home-editorial-verdict-line > b small {
    color: #2d3337;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  body.editorial-ui .home-editorial-verdict p {
    margin: 9px 0 0;
    color: #3f4447;
    font-family: var(--font-ui);
    font-size: 9px;
    line-height: 1.42;
  }

  body.editorial-ui .home-editorial-verdict p b {
    color: var(--rust);
  }

  body.editorial-ui .home-editorial-exclusions {
    min-height: 105px;
    margin: 11px 8px 0;
    padding: 9px 0 0;
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 12px;
    color: #373c3f;
    border-top: 1px solid rgba(104, 85, 55, .32);
  }

  body.editorial-ui .home-editorial-exclusions > i {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--plum);
    font-family: var(--font-editorial);
    font-size: 12px;
    font-style: normal;
  }

  body.editorial-ui .home-editorial-exclusions h3 {
    margin: 1px 0 6px;
    color: var(--plum);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  body.editorial-ui .home-editorial-exclusions ul {
    margin: 0;
    padding-left: 16px;
    font-family: var(--font-ui);
    font-size: 8.5px;
    line-height: 1.45;
  }

  body.editorial-ui .home-editorial-actions {
    min-height: 92px;
    padding: 2px 8px 0;
    display: grid;
    grid-template-columns: 242px 158px;
    grid-template-rows: 42px auto;
    justify-content: start;
    gap: 7px 24px;
  }

  body.editorial-ui .home-editorial-actions :is(.primary-button, .secondary-button) {
    min-height: 42px;
    height: 42px;
    padding: 0 18px;
    border-radius: 3px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  body.editorial-ui .home-editorial-actions .primary-button {
    color: #fff7eb;
    border-color: var(--rust);
    background: var(--rust);
  }

  body.editorial-ui .home-editorial-actions .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--rust);
    border: 1px solid var(--rust);
    background: transparent;
  }

  body.editorial-ui .home-editorial-actions .secondary-button svg {
    width: 17px;
    height: 17px;
    transform: rotate(90deg);
  }

  body.editorial-ui .home-editorial-actions > p {
    margin: 0;
    grid-column: 1 / -1;
    color: #5b5750;
    font-family: var(--font-ui);
    font-size: 8.5px;
  }

  body.editorial-ui .home-editorial-evidence {
    display: none;
  }

  body.editorial-ui .home-editorial-support {
    height: 68px;
    margin: 12px 21px 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--teal);
  }

  body.editorial-ui .home-editorial-support > div {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  body.editorial-ui .home-editorial-support > div > span {
    width: 27px;
    height: 27px;
    color: var(--teal);
  }

  body.editorial-ui .home-editorial-support > div > span svg {
    width: 27px;
    height: 27px;
  }

  body.editorial-ui .home-editorial-support p {
    margin: 0;
    color: #30383c;
    font-family: var(--font-ui);
    font-size: 10px;
    line-height: 1.45;
  }

  body.editorial-ui .home-editorial-support a {
    color: var(--teal);
    text-decoration: none;
  }

  body.editorial-ui .home-editorial-closing {
    height: 72px;
    margin: 0;
    padding: 0 29px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    color: #f7eddd;
    background: #12364e;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  body.editorial-ui .home-editorial-closing i {
    height: 1px;
    background: rgba(247, 237, 221, .54);
  }

  body.editorial-ui:has(#module-view:not([hidden]) .home-editorial-page) > .hover-tooltip {
    z-index: 1000;
  }

  body.editorial-ui:has(#module-view:not([hidden]) .home-editorial-page) .site-footer {
    display: none;
  }

  body.editorial-ui .site-header[data-profile="investing"] .site-name {
    font-family: var(--font-editorial);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: .015em;
  }

  body.editorial-ui .site-header[data-profile="investing"] .primary-nav {
    gap: 29px;
  }

  body.editorial-ui .site-header[data-profile="investing"] .nav-action {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  body.editorial-ui .site-header[data-profile="investing"] .nav-action[data-view="modules"]::after {
    background: transparent;
  }

  body.editorial-ui .site-header[data-profile="investing"] .nav-action[aria-current="page"]::after {
    background: var(--rust);
  }
}

@media print {
  body.editorial-ui:has(.home-editorial-page) .site-header {
    position: static;
  }

  body.editorial-ui:has(.home-editorial-page) .home-editorial-page {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

body.editorial-ui {
  overflow-x: hidden;
}

/* Money Basics belongs to the same field-guide system. Keep its opening spread
   informative, not ceremonial: the lesson should begin inside the first desktop
   screen while retaining the evidence standard beside the subject introduction. */
body.research-page .research-shell {
  width: min(1380px, calc(100% - clamp(34px, 5.2vw, 80px)));
}

body.research-page .research-topbar {
  min-height: 78px;
  margin-bottom: 22px;
  border-bottom: 1.5px solid var(--navy);
}

body.research-page .research-hero {
  min-height: 0;
  padding: 36px;
  grid-template-columns: minmax(0, 1.55fr) 260px;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(248, 242, 231, .62);
  box-shadow: none;
}

body.research-page .research-title-row h1 {
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .92;
  text-transform: none;
}

body.research-page .research-intro {
  max-width: 64ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-family: var(--font-editorial);
  font-size: 15px;
  line-height: 1.55;
}

body.research-page .evidence-standard {
  min-height: 0;
  padding: 21px;
  align-self: stretch;
  border: 1px solid color-mix(in srgb, var(--ochre) 58%, transparent);
  border-radius: 3px;
  background: rgba(183, 125, 39, .09);
}

body.research-page .evidence-standard strong {
  margin-top: 14px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.05;
}

body.research-page .evidence-standard p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

body.research-page .research-layout {
  margin-top: 22px;
}

body.editorial-ui .app-shell {
  width: min(1400px, calc(100vw - 100px));
  margin-right: 0;
  margin-left: var(--shell-offset);
  padding: 0;
}

body.editorial-ui .site-header {
  position: relative;
  z-index: auto;
  top: auto;
  width: 100%;
  height: 83px;
  min-height: 0;
  margin: 0;
  padding: 28px 1px 16px;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

body.editorial-ui .site-name {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
}

body.editorial-ui .primary-nav {
  gap: 28px;
}

body.editorial-ui .nav-action {
  min-height: 30px;
  padding: 4px 0;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 400;
}

body.editorial-ui .nav-action::after {
  bottom: -13px;
  height: 2px;
  background: transparent;
}

body.editorial-ui .nav-action:hover::after,
body.editorial-ui .nav-action:focus-visible::after,
body.editorial-ui:has(#module-view:not([hidden])) .nav-action[data-view="modules"]::after,
body.editorial-ui:has(#plan-view:not([hidden])) .nav-action[data-view="plan"]::after,
body.editorial-ui:has(#risk-view:not([hidden])) .nav-action[data-view="risk"]::after {
  background: var(--rust);
}

body.editorial-ui:has(#plan-view:not([hidden])) .nav-action[data-view="plan"]::after {
  background: var(--navy);
}

body.editorial-ui:has(#modules-view:not([hidden])) .nav-action[data-view="modules"]::after {
  background: transparent;
}

/* Landing — one page, ordered like a magazine cover. */
body.editorial-ui .landing-view {
  width: 100%;
}

/* View changes move programmatic focus to the new page title for assistive
   technology. Suppress the browser's default stepped outline on those
   non-interactive headings; it reads as an invented frame in the editorial UI. */
body.editorial-ui :is(#modules-title, #plan-title, .module-intro h1, #risk-lab-root h1, #risk-lab-root h2)[tabindex="-1"]:focus {
  outline: none;
}

body.editorial-ui .decision-hero {
  position: relative;
  min-height: 298px;
  margin: 0;
  height: 298px;
  min-height: 298px;
  padding: 35px 0 20px;
  display: grid;
  grid-template-columns: 590px minmax(0, 1fr);
  align-items: center;
  gap: 66px;
  text-align: left;
}

body.editorial-ui .decision-hero::after {
  display: none;
}

body.editorial-ui .decision-hero-main {
  align-self: start;
}

body.editorial-ui .decision-hero h1 {
  max-width: none;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 96px;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .90;
  text-align: left;
  text-transform: none;
}

body.editorial-ui .decision-hero h1 span {
  display: block;
  white-space: nowrap;
}

body.editorial-ui .decision-hero-rule {
  width: 54px;
  height: 2px;
  margin-top: 16px;
  display: block;
  background: var(--rust);
}

body.editorial-ui .decision-lead {
  margin: 12px 0 0;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 22px;
  line-height: 1.15;
}

body.editorial-ui .decision-intro {
  max-width: 205px;
  margin: 0;
  align-self: center;
  justify-self: start;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 16px;
  line-height: 1.42;
  transform: translateY(32px);
}

body.editorial-ui .quick-calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 21px;
}

body.editorial-ui .quick-calculator-grid > .quick-action-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.editorial-ui .quick-calculator-grid .module-card {
  border-radius: 3px;
  box-shadow: none;
}

body.editorial-ui .quick-calculator-grid .quick-action-card {
  position: relative;
  min-height: 339px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-dark) 55%, transparent);
  background: rgba(251, 246, 235, .62);
  box-shadow: inset 0 -8px 0 var(--accent);
}

body.editorial-ui .quick-calculator-grid .quick-action-card::before,
body.editorial-ui .quick-calculator-grid .quick-action-card::after {
  display: none;
}

body.editorial-ui .quick-calculator-grid .quick-action-card .module-open {
  width: 100%;
  min-height: 338px;
  padding: 22px 28px 44px;
  display: grid;
  grid-template-columns: 1fr 27px;
  grid-template-rows: 78px auto 1fr 24px;
  align-items: start;
  gap: 15px 6px;
  text-align: left;
}

body.editorial-ui .quick-calculator-grid .quick-action-card .module-card-icon {
  width: 78px;
  height: 78px;
  grid-row: 1;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border: 0;
  border-radius: 50%;
  background-color: var(--accent);
  background-image: url("assets/texture/paper-grain.svg");
  background-blend-mode: soft-light;
}

body.editorial-ui .quick-calculator-grid .quick-action-card .module-card-icon svg {
  width: 45px;
  height: 45px;
  stroke-width: 1.35px;
}

body.editorial-ui .quick-calculator-grid .quick-action-card .module-card-body {
  grid-row: 2 / 4;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

body.editorial-ui .quick-calculator-grid .quick-action-card .module-card-title {
  max-width: 9ch;
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.01;
  text-transform: none;
}

body.editorial-ui .quick-calculator-grid .quick-action-card .module-card-question {
  min-height: 0;
  margin: 4px 0 0;
  padding: 0;
  color: var(--navy);
  border: 0;
  font-family: var(--font-editorial);
  font-size: 14px;
  line-height: 1.45;
}

body.editorial-ui .quick-calculator-grid .quick-action-card .module-card-cta {
  grid-row: 4;
  grid-column: 1;
  align-self: end;
  color: var(--accent-dark);
  font-family: var(--font-editorial);
  font-size: 15px;
  line-height: 1;
}

body.editorial-ui .quick-calculator-grid .quick-action-card .module-card-arrow {
  width: 26px;
  height: 24px;
  grid-row: 4;
  grid-column: 2;
  align-self: end;
  color: var(--accent-dark);
}

body.editorial-ui .quick-calculator-grid .quick-action-card .module-card-arrow svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.45px;
}

body.editorial-ui .quick-calculator-grid .quick-action-card[data-module="budget"] {
  --accent: #b77d27 !important;
  --accent-dark: #9a6b1d !important;
}

body.editorial-ui .quick-calculator-grid .quick-action-card[data-module="goal"] {
  --accent: #70475d !important;
  --accent-dark: #70475d !important;
}

body.editorial-ui :is(.module-card[data-module="budget"], .module-shell[data-theme="budget"]) {
  --accent: #70475d !important;
  --accent-dark: #70475d !important;
  --accent-soft: #eee2e8 !important;
  --accent-fade: #d9c1ce !important;
}

body.editorial-ui :is(.module-card[data-module="home"], .module-shell[data-theme="home"]) {
  --accent: #3c7e7d !important;
  --accent-dark: #2f7678 !important;
  --accent-soft: #e0ece8 !important;
  --accent-fade: #bad3cc !important;
}

body.editorial-ui :is(.module-card[data-module="investing"], .module-shell[data-theme="investing"]) {
  --accent: #c9562f !important;
  --accent-dark: #c9562f !important;
  --accent-soft: #f2e0d4 !important;
  --accent-fade: #e3bba7 !important;
}

body.editorial-ui :is(.module-card[data-module="safety"], .module-shell[data-theme="safety"]) {
  --accent: #4d8582 !important;
  --accent-dark: #2f7678 !important;
  --accent-soft: #e0ece8 !important;
  --accent-fade: #bdd4ce !important;
}

body.editorial-ui :is(.module-card[data-module="debt"], .module-shell[data-theme="debt"]) {
  --accent: #70475d !important;
  --accent-dark: #70475d !important;
  --accent-soft: #eee2e8 !important;
  --accent-fade: #d9c1ce !important;
}

body.editorial-ui :is(.module-card[data-module="goal"], .module-shell[data-theme="goal"]),
body.editorial-ui :is(.module-card[data-module="events"], .module-shell[data-theme="events"]) {
  --accent: #b7862f !important;
  --accent-dark: #9a6b1d !important;
  --accent-soft: #f1e6d2 !important;
  --accent-fade: #dfc58f !important;
}

body.editorial-ui .quick-calculator-grid > .calculator-directory {
  width: 100%;
  min-height: 94px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 166px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(251, 246, 235, .45);
  text-align: left;
}

body.editorial-ui .quick-calculator-grid .calculator-directory summary {
  width: auto;
  margin: 0;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  color: var(--navy);
  border-right: 1px solid var(--line);
  font-family: var(--font-editorial);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.08;
  text-transform: none;
  list-style: none;
  cursor: default;
}

body.editorial-ui .quick-calculator-grid .calculator-directory summary::-webkit-details-marker,
body.editorial-ui .quick-calculator-grid .calculator-directory summary::after {
  display: none;
}

body.editorial-ui .quick-calculator-grid .directory-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

body.editorial-ui .quick-calculator-grid .directory-card {
  min-width: 0;
  min-height: 92px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

body.editorial-ui .quick-calculator-grid .directory-card:last-child {
  border-right: 0;
}

body.editorial-ui .quick-calculator-grid .directory-card::before,
body.editorial-ui .quick-calculator-grid .directory-card::after {
  display: none;
}

body.editorial-ui .quick-calculator-grid .directory-card .module-open {
  width: 100%;
  min-height: 92px;
  padding: 15px 16px 15px 25px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  text-align: left;
}

body.editorial-ui .quick-calculator-grid .directory-card .module-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--navy);
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.editorial-ui .quick-calculator-grid .directory-card .module-card-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.35px;
}

body.editorial-ui .quick-calculator-grid .directory-card .module-card-body {
  min-width: 0;
}

body.editorial-ui .quick-calculator-grid .directory-card .module-card-title {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.16;
  text-transform: none;
}

body.editorial-ui .quick-calculator-grid .directory-card .module-card-question,
body.editorial-ui .quick-calculator-grid .directory-card .module-research-link {
  display: none;
}

body.editorial-ui .quick-calculator-grid .directory-card .module-card-arrow {
  width: 17px;
  color: var(--navy);
}

body.editorial-ui .quick-calculator-grid .directory-card .module-card-arrow svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  stroke-width: 1.5px;
}

body.editorial-ui .quick-calculator-grid > .connected-plan-card {
  width: 100%;
  min-height: 127px;
  margin: 0;
  padding: 16px 47px 16px 31px;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 104px minmax(0, 1fr) 182px;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(11, 48, 79, .13);
  border-radius: 3px;
  background: rgba(248, 242, 231, .72);
}

body.editorial-ui .quick-calculator-grid .connected-plan-card > .module-card-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: var(--rust);
  border: 1px solid var(--rust);
  border-radius: 50%;
  background: rgba(248, 242, 231, .55);
}

body.editorial-ui .quick-calculator-grid .connected-plan-card > .module-card-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.25px;
}

body.editorial-ui .quick-calculator-grid .connected-plan-card strong {
  display: block;
  max-width: none;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.08;
  text-transform: none;
}

body.editorial-ui .quick-calculator-grid .connected-plan-card p {
  max-width: 45ch;
  margin: 5px 0 0;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 14px;
  line-height: 1.35;
}

body.editorial-ui .quick-calculator-grid .connected-plan-card .primary-button {
  width: 182px;
  min-height: 48px;
  margin: 0;
  padding: 11px 18px;
  grid-row: 1;
  grid-column: 3;
  justify-content: space-between;
  color: var(--paper-raised);
  border: 1px solid #ac482b;
  border-radius: 2px;
  background: var(--rust);
  font-family: var(--font-editorial);
  font-size: 16px;
  font-weight: 400;
}

body.editorial-ui .editorial-landscape {
  position: relative;
  width: 100vw;
  height: 340px;
  min-height: 0;
  margin: 34px 0 0 calc(-1 * var(--shell-offset));
  overflow: hidden;
  border: 0;
  isolation: isolate;
}

body.editorial-ui .editorial-landscape::after {
  display: none;
}

body.editorial-ui .editorial-landscape picture,
body.editorial-ui .editorial-landscape picture img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.editorial-ui .editorial-landscape picture img {
  object-fit: cover;
  object-position: center center;
}

body.editorial-ui .editorial-word {
  position: absolute;
  z-index: 2;
  top: -23px;
  right: auto;
  left: calc(var(--shell-offset) + 2px);
  width: auto;
  color: var(--rust);
  font-family: var(--font-display);
  font-size: clamp(258px, 29.5vw, 413px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .83;
  mix-blend-mode: multiply;
  opacity: .9;
  text-align: left;
  transform: none;
  white-space: nowrap;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  body.editorial-ui .editorial-word {
    background-color: var(--rust);
    background-image:
      url("assets/texture/ink-wear.svg"),
      linear-gradient(var(--rust), var(--rust));
    background-repeat: repeat, no-repeat;
    background-size: 150px 150px, 100% 100%;
    background-blend-mode: screen, normal;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

body.editorial-ui .landscape-caption {
  display: none;
}

/* Shared footer — intentionally quiet, like colophon copy below a print plate. */
body.editorial-ui .site-footer {
  width: 100vw;
  min-height: 178px;
  margin: 0 0 0 calc(-1 * var(--shell-offset));
  padding: 24px 56px 17px;
  display: block;
  color: var(--navy);
  border: 0;
  background: rgba(248, 242, 231, .86);
  font-family: var(--font-editorial);
}

body.editorial-ui .site-footer > div.footer-directory:first-child {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.25fr;
  gap: 42px;
}

body.editorial-ui .footer-directory section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.editorial-ui .footer-directory strong {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.editorial-ui .footer-directory :is(a, span, button),
body.editorial-ui .footer-directory p {
  margin: 0;
  padding: 0;
  color: var(--navy);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

body.editorial-ui .footer-directory p {
  max-width: 26ch;
}

body.editorial-ui .footer-directory p i {
  width: 34px;
  height: 2px;
  margin-top: 12px;
  display: block;
  background: var(--rust);
}

body.editorial-ui .footer-meta {
  min-height: 38px;
  margin-top: 15px;
  padding-top: 11px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line-strong);
  font-size: 11px;
}

body.editorial-ui .footer-meta > span:nth-child(2) {
  margin-left: auto;
  opacity: .72;
}

body.editorial-ui .footer-meta .landing-colophon {
  display: none;
}

body.editorial-ui .site-footer .privacy-controls {
  display: flex;
  gap: 12px;
}

body.editorial-ui .site-footer .privacy-controls button {
  min-height: 0;
  padding: 0;
  color: var(--navy);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
}

body.editorial-ui:has(#modules-view:not([hidden])) .footer-meta > span:nth-child(2) {
  display: none;
}

body.editorial-ui:has(#modules-view:not([hidden])) .footer-meta .privacy-controls {
  display: flex;
  margin-left: auto;
}

body.editorial-ui:has(#modules-view:not([hidden])) .footer-meta .privacy-controls button {
  min-height: 36px;
  padding: 7px 10px;
}

body.editorial-ui:has(#modules-view:not([hidden])) .footer-meta .landing-colophon {
  margin-left: 0;
  display: inline;
}

/* Existing calculator/plan/risk surfaces keep their behavior while receiving
   the same paper, rule and typography grammar. Page-specific fidelity follows. */
body.editorial-ui .result-stage {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.editorial-ui :is(#module-view, #plan-view, #risk-view) {
  width: 100%;
}

body.editorial-ui :is(.input-panel, .module-result-panel, .plan-results),
body.editorial-ui #risk-lab-root :is(.fm-risk-main, .fm-risk-facts, .fm-risk-research) {
  border-color: var(--line);
  border-radius: 3px;
  background: rgba(248, 242, 231, .58);
  box-shadow: none;
}

body.editorial-ui button,
body.editorial-ui a,
body.editorial-ui .module-card,
body.editorial-ui .money-map-node,
body.editorial-ui #risk-lab-root .fm-risk-option {
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, transform .16s ease;
}

body.editorial-ui .quick-action-card:hover,
body.editorial-ui .quick-action-card:focus-within,
body.editorial-ui .directory-card:hover,
body.editorial-ui .connected-plan-card:hover {
  transform: translateY(-2px);
}

body.editorial-ui [data-tip] {
  cursor: help;
}

body.editorial-ui .hover-tooltip {
  width: max-content;
  max-width: min(270px, calc(100vw - 24px));
  padding: 9px 11px 10px;
  color: var(--paper-raised);
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  box-shadow: none;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.45;
}

/* Calculator pages — a compact field-guide spread: assumptions on the left,
   interpretation on the right. The desktop references use a 42 px page edge. */
body.editorial-ui:has(#module-view:not([hidden])),
body.editorial-ui:has(#plan-view:not([hidden])),
body.editorial-ui:has(#risk-view:not([hidden])) {
  --shell-offset: 42px;
}

body.editorial-ui:has(#module-view:not([hidden])) .app-shell,
body.editorial-ui:has(#plan-view:not([hidden])) .app-shell,
body.editorial-ui:has(#risk-view:not([hidden])) .app-shell {
  width: calc(100vw - 84px);
}

body.editorial-ui .module-shell {
  width: 100%;
}

body.editorial-ui .module-intro {
  position: relative;
  width: 100%;
  height: 242px;
  min-height: 242px;
  margin: 0;
  padding: 48px 0 27px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  align-items: start;
  gap: 38px;
  overflow: visible;
  border: 0;
}

body.editorial-ui .module-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

body.editorial-ui .module-large-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  border: 1px solid var(--accent-dark);
  border-radius: 2px;
  background: transparent;
}

body.editorial-ui .module-large-icon svg {
  width: 48px;
  height: 48px;
}

/* The calculator concepts treat the subject icon as an editorial illustration,
   not as another boxed control. Investing and Housing keep their bespoke hero
   drawings; the remaining calculators use the same open line-art language. */
body.editorial-ui .module-shell:not([data-theme="investing"]):not([data-theme="home"]) .module-large-icon {
  width: 76px;
  height: 76px;
  color: var(--accent-dark);
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.editorial-ui .module-shell:not([data-theme="investing"]):not([data-theme="home"]) .module-large-icon svg {
  width: 62px;
  height: 62px;
  stroke-width: 1.25px;
}

body.editorial-ui .module-intro-copy {
  min-width: 0;
}

body.editorial-ui .module-intro h1 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 76px;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .92;
  text-transform: none;
}

body.editorial-ui .module-intro .module-tagline {
  max-width: none;
  margin: 13px 0 0;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 20px;
  font-style: italic;
  line-height: 1.15;
}

body.editorial-ui .module-intro .module-deck {
  max-width: 510px;
  margin: 14px 0 0;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
}

/* Connected-plan funding remains available to assistive technology, but it is
   not a second visual hero. The editorial concepts keep this area clean and
   place shared-funding interpretation inside My Plan itself. */
body.editorial-ui .module-intro .funding-control-note {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.editorial-ui .module-header-actions {
  min-width: 0;
  padding-top: 7px;
  display: grid;
  gap: 10px;
}

body.editorial-ui .module-learn-shortcut {
  min-height: 38px;
  padding: 8px 11px;
  justify-content: flex-start;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(248, 242, 231, .54);
  font-family: var(--font-ui);
  font-size: 12px;
}

body.editorial-ui .module-state {
  min-height: 74px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(248, 242, 231, .54);
  font-family: var(--font-ui);
}

body.editorial-ui .module-state-copy {
  display: grid;
  gap: 4px;
}

body.editorial-ui .module-state-copy b {
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 400;
}

body.editorial-ui .module-state-copy small {
  font-size: 11px;
}

/* One switch language across module pages and My Plan: quiet paper when off,
   confident teal when the decision is participating in the shared plan. */
body.editorial-ui .mini-switch i {
  border: 1px solid rgba(11, 48, 79, .2);
  background: #c9c3b5;
  box-shadow: inset 0 1px 1px rgba(11, 48, 79, .08);
}

body.editorial-ui .mini-switch i::after {
  background: var(--paper-raised);
  box-shadow: 0 1px 3px rgba(11, 48, 79, .25);
}

body.editorial-ui .mini-switch input:checked + i,
body.editorial-ui .module-state .mini-switch input:checked + i,
body.editorial-ui .module-switch input:checked + i {
  border-color: var(--teal);
  background: var(--teal);
}

body.editorial-ui .mini-switch input:disabled + i {
  opacity: .56;
  cursor: not-allowed;
}

body.editorial-ui .example-data-banner {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-color: var(--line);
  border-radius: 2px;
  background: rgba(248, 242, 231, .5);
}

body.editorial-ui .mobile-result-jump {
  display: none;
}

body.editorial-ui .module-workspace,
body.editorial-ui .module-shell[data-theme="events"] .module-workspace,
body.editorial-ui .module-shell[data-theme="home"] .module-workspace,
body.editorial-ui .module-shell[data-theme="budget"] .module-workspace {
  width: 100%;
  display: grid !important;
  grid-template-columns: 337px minmax(0, 1fr) !important;
  align-items: start;
  gap: 18px;
}

body.editorial-ui .input-panel {
  position: static;
  top: auto;
  max-height: none;
  display: block !important;
  overflow: visible;
  border-color: var(--line);
  border-radius: 3px;
  background: rgba(248, 242, 231, .56);
  box-shadow: none;
}

body.editorial-ui .module-result-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(248, 242, 231, .56);
  box-shadow: none;
}

/* Let content determine the result-card height on the compact calculators.
   The previous inherited 720px floor left a conspicuous empty slab below
   shorter safety results and broke the reference pages' edited rhythm. */
body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .module-result-panel {
  min-height: 0;
}

body.editorial-ui .module-output-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

body.editorial-ui .module-output-column > .module-learning {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

body.editorial-ui .module-output-column .learning-card {
  min-height: 132px;
  padding: 16px 18px;
  border-color: var(--line);
  border-radius: 3px;
  background: rgba(248, 242, 231, .5);
  box-shadow: none;
}

body.editorial-ui .module-output-column .learning-card .overline {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .09em;
}

body.editorial-ui .module-output-column .learning-card h3 {
  margin: 5px 0 6px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 20px;
  font-weight: 400;
}

body.editorial-ui .module-output-column .learning-card p {
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.48;
}

body.editorial-ui .module-output-column .learning-card summary {
  color: var(--teal);
  font-family: var(--font-ui);
  font-size: 12px;
}

body.editorial-ui .module-shell[data-theme="home"] .module-output-column {
  display: contents;
}

body.editorial-ui .module-shell[data-theme="home"] .module-output-column > .module-result-panel {
  grid-column: 2;
}

body.editorial-ui .module-shell[data-theme="home"] .module-output-column > .module-learning {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--navy);
}

body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .panel-heading {
  padding: 16px 18px 14px;
}

body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .panel-heading h2 {
  margin: 7px 0 5px;
  font-size: 27px;
  line-height: 1.08;
}

body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .panel-heading p {
  font-size: 12px;
  line-height: 1.42;
}

body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .form-section {
  padding: 13px 18px 14px;
}

body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .form-section-title {
  margin-bottom: 8px;
  font-size: 12px;
}

body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .field-grid {
  gap: 9px;
}

body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .field {
  gap: 5px;
  font-size: 12px;
}

body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .input-wrap :is(input, select) {
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}

body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .form-note {
  margin-top: 9px;
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.38;
}

body.editorial-ui .panel-heading,
body.editorial-ui .form-section {
  padding: 18px;
  border-color: var(--line);
}

body.editorial-ui .panel-heading .overline,
body.editorial-ui .result-heading .overline,
body.editorial-ui .form-section-title {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

body.editorial-ui .panel-heading h2:empty,
body.editorial-ui .panel-heading p:empty,
body.editorial-ui .result-heading h2:empty {
  display: none;
}

body.editorial-ui .field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

body.editorial-ui .field-grid .wide {
  grid-column: auto;
}

body.editorial-ui .field,
body.editorial-ui .choice-label {
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
}

body.editorial-ui .field {
  display: grid;
  gap: 5px;
}

body.editorial-ui .field-label-row {
  min-height: 17px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

body.editorial-ui .field-label-row > label {
  min-width: 0;
  cursor: pointer;
}

body.editorial-ui .field-help {
  width: 15px;
  height: 15px;
  min-height: 15px;
  flex: 0 0 15px;
  display: inline-grid;
  place-items: center;
  color: color-mix(in srgb, var(--navy) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--navy) 58%, transparent);
  border-radius: 50%;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

body.editorial-ui .field-help:hover,
body.editorial-ui .field-help:focus-visible {
  color: var(--paper-raised);
  border-color: var(--navy);
  background: var(--navy);
  outline: 0;
}

body.editorial-ui .input-wrap {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(252, 248, 239, .68);
}

body.editorial-ui .input-wrap input {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 400;
}

body.editorial-ui .input-wrap.prefix input {
  padding-left: 28px;
}

body.editorial-ui .input-wrap.suffix input {
  padding-right: 44px;
}

body.editorial-ui .input-prefix,
body.editorial-ui .input-suffix {
  font-size: 12px;
}

body.editorial-ui :is(.segmented, .dollar-mode) {
  min-height: 36px;
  border-color: var(--line);
  border-radius: 2px;
  background: transparent;
}

body.editorial-ui :is(.segmented button, .dollar-mode button) {
  min-height: 35px;
  padding: 6px 9px;
  color: var(--navy);
  border-color: var(--line);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
}

body.editorial-ui :is(.segmented button[aria-pressed="true"], .dollar-mode button[aria-pressed="true"]) {
  color: var(--paper-raised);
  background: var(--rust);
}

body.editorial-ui .choice-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

body.editorial-ui .choice-stack.choice-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.editorial-ui .choice-button {
  min-height: 104px;
  padding: 11px 9px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-family: var(--font-ui);
  text-align: left;
}

body.editorial-ui .choice-button strong {
  color: var(--navy);
  font-size: 12px;
  line-height: 1.25;
}

body.editorial-ui .choice-button span {
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.35;
}

body.editorial-ui .choice-button.active {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  box-shadow: none;
}

body.editorial-ui .choice-button.has-mix {
  position: relative;
  min-height: 112px;
  padding: 11px 8px 39px 28px;
}

body.editorial-ui .choice-button.has-mix .choice-radio {
  position: absolute;
  top: 13px;
  left: 9px;
  width: 12px;
  height: 12px;
  margin: 0;
  border: 1px solid var(--navy);
  border-radius: 50%;
}

body.editorial-ui .choice-button.has-mix.active .choice-radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: var(--accent);
}

body.editorial-ui .choice-button.has-mix .choice-mix {
  position: absolute;
  bottom: 9px;
  left: 9px;
  width: 27px;
  height: 27px;
  margin: 0;
  border: 1px solid rgba(11, 48, 79, .22);
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 var(--stock-share), #d7ccb9 var(--stock-share) 100%);
  box-shadow: inset 0 0 0 1px rgba(251, 247, 238, .68);
}

body.editorial-ui .choice-button.has-mix:nth-child(2) .choice-mix {
  background: conic-gradient(var(--accent) 0 var(--stock-share), #d7ccb9 var(--stock-share) 100%);
}

body.editorial-ui .module-shell[data-theme="goal"] .choice-button.has-mix {
  min-height: 118px;
  padding-right: 6px;
}

body.editorial-ui .module-shell[data-theme="goal"] .choice-button.has-mix strong {
  font-size: 11px;
}

body.editorial-ui .module-shell[data-theme="goal"] .choice-button.has-mix .choice-copy {
  font-size: 8.5px;
}

body.editorial-ui .assumptions {
  border-color: var(--line);
  background: rgba(248, 242, 231, .45);
}

body.editorial-ui .assumptions summary {
  min-height: 58px;
  padding: 17px 18px;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 12px;
}

body.editorial-ui .assumptions summary::after {
  display: none;
  content: none;
}

body.editorial-ui .assumptions summary > svg {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex: 0 0 auto;
  transition: transform .16s ease;
}

body.editorial-ui .assumptions[open] summary > svg {
  transform: rotate(90deg);
}

body.editorial-ui input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

body.editorial-ui input[type="number"]::-webkit-inner-spin-button,
body.editorial-ui input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

body.editorial-ui .input-plan-actions {
  padding: 20px 0 0;
  display: grid;
  gap: 12px;
  background: var(--paper);
}

body.editorial-ui .input-plan-actions :is(.primary-button, .secondary-button) {
  width: 100%;
  min-height: 52px;
  border-radius: 2px;
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 400;
}

body.editorial-ui .input-plan-actions .primary-button {
  color: var(--paper-raised);
  border-color: var(--navy);
  background: var(--navy);
}

body.editorial-ui .input-plan-actions .secondary-button {
  color: var(--navy);
  border-color: var(--navy);
  background: transparent;
}

/* Budget canonical spread — the budget is the shared cash-flow engine, not a
   transaction ledger. Keep the baseline on the left and the decision signal
   on the right; move cross-module routing behind one deliberate disclosure. */
body.editorial-ui .module-shell[data-theme="budget"] .module-intro {
  height: 224px;
  min-height: 224px;
  padding-top: 44px;
}

body.editorial-ui .module-shell[data-theme="budget"] .module-large-icon {
  color: var(--plum);
  border-color: var(--plum);
}

body.editorial-ui .module-shell[data-theme="budget"] .module-intro h1 {
  font-size: 67px;
}

body.editorial-ui .module-shell[data-theme="budget"] .module-intro .module-deck {
  max-width: 560px;
}

body.editorial-ui .module-shell[data-theme="budget"] .module-workspace {
  grid-template-columns: 337px minmax(0, 1fr) !important;
}

body.editorial-ui .module-shell[data-theme="budget"] .module-output-column {
  display: contents;
}

body.editorial-ui .module-shell[data-theme="budget"] .module-output-column > .module-result-panel {
  min-height: 0;
  padding: 0;
  grid-column: 2;
  color: var(--navy);
  border-color: var(--line);
  background: rgba(248, 242, 231, .57);
  box-shadow: none;
}

body.editorial-ui .module-shell[data-theme="budget"] .module-output-column > .module-learning {
  grid-column: 1 / -1;
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.editorial-ui .module-shell[data-theme="budget"] .panel-heading {
  padding: 17px 18px 15px;
}

body.editorial-ui .module-shell[data-theme="budget"] .panel-heading h2 {
  margin: 7px 0 5px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.08;
}

body.editorial-ui .module-shell[data-theme="budget"] .panel-heading p,
body.editorial-ui .module-shell[data-theme="budget"] .form-note {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

body.editorial-ui .module-shell[data-theme="budget"] .form-section {
  padding: 13px 18px 14px;
}

body.editorial-ui .module-shell[data-theme="budget"] .form-section-title {
  margin-bottom: 8px;
  color: var(--plum);
  font-size: 12px;
}

body.editorial-ui .module-shell[data-theme="budget"] .field-grid {
  gap: 9px;
}

body.editorial-ui .module-shell[data-theme="budget"] .field,
body.editorial-ui .module-shell[data-theme="budget"] .choice-label {
  font-size: 11px;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-detail-callout {
  margin: 0;
  padding: 13px 18px;
  border-color: var(--line);
  border-radius: 0;
  background: rgba(112, 71, 93, .04);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-behavior summary {
  min-height: 48px;
  padding: 14px 18px;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-result-heading {
  min-height: 82px;
  padding: 12px 18px 11px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-result-heading .overline {
  color: var(--plum);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .09em;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-result-heading h2 {
  margin: 4px 0 2px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 20px;
  font-weight: 400;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-result-heading p {
  max-width: 475px;
  color: var(--ink-soft);
  font-size: 10px;
}

body.editorial-ui .module-shell[data-theme="budget"] .simulation-badge {
  color: var(--plum);
  border-color: rgba(112, 71, 93, .28);
  background: rgba(112, 71, 93, .07);
}

body.editorial-ui .module-shell[data-theme="budget"] .simulation-badge::before {
  background: var(--plum);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-hero-result {
  min-height: 102px;
  padding: 16px 18px 15px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-hero-result strong {
  color: var(--plum);
  font-family: var(--font-editorial);
  font-size: 53px;
  font-weight: 400;
  letter-spacing: -.04em;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-hero-result strong small,
body.editorial-ui .module-shell[data-theme="budget"] .budget-hero-result > span {
  color: var(--navy);
  font-family: var(--font-ui);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-metrics > div {
  min-height: 86px;
  padding: 15px 8px 11px;
  border-color: var(--line);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-metrics span {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 10.5px;
  line-height: 1.18;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-metrics strong {
  color: var(--teal);
  font-family: var(--font-editorial);
  font-size: 18px;
  font-weight: 400;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-metrics small {
  color: var(--ink-soft);
  font-size: 9.5px;
  line-height: 1.25;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-visual-block {
  padding: 14px 18px 0;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-section-title span {
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 11px;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-section-title small,
body.editorial-ui .module-shell[data-theme="budget"] .cashflow-legend span,
body.editorial-ui .module-shell[data-theme="budget"] .budget-chart-legend {
  color: var(--ink-soft);
}

body.editorial-ui .module-shell[data-theme="budget"] :is(.cashflow-allocation-bar, .future-allocation-bar) {
  height: 9px;
  border-radius: 0;
  background: rgba(14, 50, 77, .09);
}

body.editorial-ui .module-shell[data-theme="budget"] .cashflow-legend {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.editorial-ui .module-shell[data-theme="budget"] .cashflow-legend strong {
  color: var(--navy);
}

body.editorial-ui .module-shell[data-theme="budget"] .evolution-block {
  padding-top: 15px;
}

body.editorial-ui .module-shell[data-theme="budget"] .evolution-block :is(.direct-chart-hint, .chart-data-details) {
  display: none;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-chart {
  min-height: 158px;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-chart svg text {
  font-size: 18px !important;
  font-family: var(--font-ui);
  font-weight: 500;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-chart-hover-zone {
  cursor: help;
  outline: none;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-hover-field {
  fill: transparent;
}

body.editorial-ui .module-shell[data-theme="budget"] :is(.budget-hover-line, .budget-hover-point) {
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-hover-line {
  stroke: var(--navy);
  stroke-width: 1.25;
  stroke-opacity: .38;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-hover-point {
  stroke: var(--paper-raised);
  stroke-width: 4;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-hover-point.income {
  fill: var(--teal);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-hover-point.spending {
  fill: var(--rust);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-hover-point.capacity {
  fill: var(--navy);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-chart-hover-zone:hover :is(.budget-hover-line, .budget-hover-point),
body.editorial-ui .module-shell[data-theme="budget"] .budget-chart-hover-zone:focus :is(.budget-hover-line, .budget-hover-point) {
  opacity: 1;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-tradeoff {
  grid-template-columns: 1.18fr .9fr .9fr .9fr;
  gap: 9px;
  margin: 13px 18px 0;
  padding: 12px;
  border-color: rgba(112, 71, 93, .24);
  border-radius: 2px;
  background: rgba(112, 71, 93, .045);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-tradeoff .overline {
  color: var(--plum);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-tradeoff h3,
body.editorial-ui .module-shell[data-theme="budget"] .budget-tradeoff label,
body.editorial-ui .module-shell[data-theme="budget"] .tradeoff-result span,
body.editorial-ui .module-shell[data-theme="budget"] .tradeoff-result small {
  color: var(--navy);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-tradeoff input {
  color: var(--navy);
  border-color: var(--line);
  border-radius: 2px;
  background: var(--paper-raised);
}

body.editorial-ui .module-shell[data-theme="budget"] .tradeoff-result strong {
  color: var(--teal);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-allocation-disclosure {
  margin: 14px 18px 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-allocation-disclosure > summary {
  min-height: 58px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--navy);
  background: rgba(14, 50, 77, .025);
  cursor: pointer;
  list-style: none;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-allocation-disclosure > summary::-webkit-details-marker {
  display: none;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-allocation-disclosure > summary::after {
  content: "+";
  color: var(--plum);
  font-family: var(--font-display);
  font-size: 18px;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-allocation-disclosure[open] > summary::after {
  content: "−";
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-allocation-disclosure > summary span {
  display: grid;
  gap: 3px;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-allocation-disclosure > summary b {
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 400;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-allocation-disclosure > summary small,
body.editorial-ui .module-shell[data-theme="budget"] .budget-allocation-disclosure > summary > strong {
  font-family: var(--font-ui);
  font-size: 10px;
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-allocation-disclosure > summary > strong {
  margin-left: auto;
  color: var(--teal);
}

body.editorial-ui .module-shell[data-theme="budget"] .budget-allocation-body {
  padding: 13px;
  border-top: 1px solid var(--line);
}

body.editorial-ui .module-shell[data-theme="budget"] .result-actions {
  padding: 14px 18px 17px;
}

body.editorial-ui .module-shell[data-theme="budget"] .result-actions .primary-button {
  min-height: 44px;
  color: var(--paper-raised);
  border-color: var(--navy);
  border-radius: 2px;
  background: var(--navy);
  font-family: var(--font-editorial);
  font-size: 14px;
  font-weight: 400;
}

/* Life changes — an unconfigured module should invite a decision instead of
   presenting a dense dashboard of zeroes. */
body.editorial-ui .module-shell[data-theme="events"] .module-result-panel:has(.event-empty-result) {
  min-height: 700px;
  background: rgba(248, 242, 231, .57);
}

body.editorial-ui .event-empty-result {
  min-height: 698px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  color: var(--navy);
}

body.editorial-ui .event-empty-heading {
  min-height: 250px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

body.editorial-ui .event-empty-heading .overline {
  color: var(--ochre);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .09em;
}

body.editorial-ui .event-empty-heading h2 {
  max-width: 410px;
  margin: 10px 0 11px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 43px;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: .98;
}

body.editorial-ui .event-empty-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.48;
}

body.editorial-ui .event-empty-mark {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--ochre);
}

body.editorial-ui .event-empty-mark svg {
  width: 66px;
  height: 66px;
  stroke-width: 1.35px;
}

body.editorial-ui .event-empty-steps {
  margin: 0;
  padding: 0 30px;
  list-style: none;
}

body.editorial-ui .event-empty-steps li {
  min-height: 94px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

body.editorial-ui .event-empty-steps li > b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--navy);
  font-family: var(--font-editorial);
  font-size: 18px;
  font-weight: 400;
}

body.editorial-ui .event-empty-steps li:nth-child(2) > b {
  background: var(--rust);
}

body.editorial-ui .event-empty-steps li:nth-child(3) > b {
  background: var(--teal);
}

body.editorial-ui .event-empty-steps span {
  display: grid;
  gap: 4px;
}

body.editorial-ui .event-empty-steps strong {
  font-family: var(--font-editorial);
  font-size: 17px;
  font-weight: 400;
}

body.editorial-ui .event-empty-steps small {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 11px;
}

body.editorial-ui .event-empty-action {
  min-height: 50px;
  margin: 22px 30px 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper-raised);
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  font-family: var(--font-editorial);
  font-size: 16px;
}

body.editorial-ui .event-empty-action span {
  font-family: var(--font-ui);
  font-size: 22px;
}

body.editorial-ui .event-empty-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 1.45;
}

body.editorial-ui .event-empty-note {
  margin: 0;
  padding: 13px 30px 16px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.4;
}

body.editorial-ui .event-empty-note span {
  margin-right: 6px;
  color: var(--teal);
}

/* Life changes — extend the print field-guide system into the working event
   library and editor, not only the introductory empty state. */
body.editorial-ui .module-shell[data-theme="events"] .event-library {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

body.editorial-ui .module-shell[data-theme="events"] .event-library-top {
  align-items: end;
  gap: 10px;
}

body.editorial-ui .module-shell[data-theme="events"] .event-library-top h3 {
  margin: 4px 0 0;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 18px;
  font-weight: 400;
}

body.editorial-ui .module-shell[data-theme="events"] .event-library-top input {
  width: 140px;
  min-height: 38px;
  padding: 7px 9px;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper-raised);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-grid {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset {
  min-height: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-primary {
  width: 100%;
  min-height: 88px;
  padding: 10px 4px 10px 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  border: 0;
  background: transparent;
  text-align: left;
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--ochre);
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset:nth-child(2n) .event-preset-mark {
  background: var(--teal);
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset:nth-child(3n) .event-preset-mark {
  background: var(--rust);
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.45px;
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-copy small {
  color: var(--ochre);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-copy strong {
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.08;
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-copy em {
  max-width: 27ch;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.32;
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-arrow {
  color: var(--ochre);
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-arrow svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.45px;
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset .reference-button {
  min-height: 27px;
  margin: -4px 22px 8px 50px;
  padding: 3px 0;
  color: var(--teal);
  border: 0;
  border-bottom: 1px solid rgba(47, 118, 120, .42);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  text-align: left;
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-primary:hover,
body.editorial-ui .module-shell[data-theme="events"] .event-preset-primary:focus-visible {
  color: var(--navy);
  background: rgba(183, 125, 39, .07);
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset .reference-button:hover,
body.editorial-ui .module-shell[data-theme="events"] .event-preset .reference-button:focus-visible {
  color: var(--navy);
  border-bottom-color: var(--navy);
  background: transparent;
}

body.editorial-ui .module-shell[data-theme="events"] .event-library-more {
  margin-top: 11px;
  border-top: 1px solid var(--line-strong);
}

body.editorial-ui .module-shell[data-theme="events"] .event-library-more > summary {
  padding: 11px 0 3px;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
}

body.editorial-ui .module-shell[data-theme="events"] .event-list-empty,
body.editorial-ui .module-shell[data-theme="events"] .event-editor-empty {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(248, 242, 231, .38);
}

body.editorial-ui .module-shell[data-theme="events"] .event-timeline {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

body.editorial-ui .module-shell[data-theme="events"] .event-timeline-track {
  height: 6px;
  margin: 6px 0 13px;
  border-radius: 0;
  background: rgba(11, 48, 79, .1);
}

body.editorial-ui .module-shell[data-theme="events"] .event-timeline-track i,
body.editorial-ui .module-shell[data-theme="events"] .event-timeline-track span {
  border-radius: 0;
}

body.editorial-ui .module-shell[data-theme="events"] .event-timeline-track span {
  background: var(--ochre);
}

body.editorial-ui .module-shell[data-theme="events"] .event-item-list {
  gap: 7px;
}

body.editorial-ui .module-shell[data-theme="events"] .event-item {
  padding: 9px;
  grid-template-columns: 1fr;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(248, 242, 231, .5);
}

body.editorial-ui .module-shell[data-theme="events"] .event-item.is-selected {
  border-color: var(--ochre);
  box-shadow: inset 3px 0 0 var(--ochre);
}

body.editorial-ui .module-shell[data-theme="events"] .event-item-main {
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 9px;
}

body.editorial-ui .module-shell[data-theme="events"] .event-item-icon {
  width: 31px;
  height: 31px;
  color: var(--ochre);
  border-radius: 50%;
  background: rgba(183, 125, 39, .1);
}

body.editorial-ui .module-shell[data-theme="events"] .event-item-main strong {
  font-family: var(--font-editorial);
  font-size: 14px;
  font-weight: 400;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

body.editorial-ui .module-shell[data-theme="events"] .event-item-main small {
  margin-top: 2px;
  font-family: var(--font-ui);
  font-size: 10px;
}

body.editorial-ui .module-shell[data-theme="events"] .event-item-actions {
  padding: 6px 0 0 40px;
  gap: 0;
  border-top: 1px solid var(--line);
}

body.editorial-ui .module-shell[data-theme="events"] .event-item-actions button {
  min-height: 24px;
  padding: 2px 8px;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
}

body.editorial-ui .module-shell[data-theme="events"] .event-item-actions button:first-child {
  padding-left: 0;
}

body.editorial-ui .module-shell[data-theme="events"] .event-item-actions button:last-child {
  border-right: 0;
}

body.editorial-ui .module-shell[data-theme="events"] .event-editor {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line-strong);
}

body.editorial-ui .module-shell[data-theme="events"] .event-editor-heading h3 {
  margin-top: 4px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 17px;
  font-weight: 400;
}

body.editorial-ui .module-shell[data-theme="events"] .event-editor-heading button,
body.editorial-ui .module-shell[data-theme="events"] .reference-use-button {
  min-height: 32px;
  padding: 5px 9px;
  color: var(--ochre);
  border: 1px solid rgba(183, 125, 39, .42);
  border-radius: 2px;
  background: rgba(183, 125, 39, .05);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
}

body.editorial-ui .module-shell[data-theme="events"] .event-source {
  border-color: var(--line);
  border-radius: 2px;
  background: rgba(47, 118, 120, .035);
}

body.editorial-ui .module-shell[data-theme="events"] .event-source summary,
body.editorial-ui .module-shell[data-theme="events"] .event-source a {
  color: var(--teal);
}

body.editorial-ui .module-shell[data-theme="events"] .event-view-tabs {
  margin: 17px 20px 0;
  padding: 0;
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
}

body.editorial-ui .module-shell[data-theme="events"] .event-view-tabs button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--navy);
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 600;
}

body.editorial-ui .module-shell[data-theme="events"] .event-view-tabs button:last-child {
  border-right: 0;
}

body.editorial-ui .module-shell[data-theme="events"] .event-view-tabs button[aria-pressed="true"] {
  color: var(--paper-raised);
  background: var(--ochre);
}

body.editorial-ui .module-shell[data-theme="events"] .event-chart-heading {
  margin: 13px 20px 0;
}

body.editorial-ui .module-shell[data-theme="events"] .event-chart-host {
  margin: 8px 20px 0;
  padding: 10px 9px 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(248, 242, 231, .42);
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart g line,
body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .zero {
  stroke: rgba(11, 48, 79, .18);
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart g text,
body.editorial-ui .module-shell[data-theme="events"] .life-event-chart > text {
  fill: var(--navy);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-band {
  fill: var(--teal);
  fill-opacity: .16;
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-primary-line {
  stroke: var(--rust);
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-baseline-line {
  stroke: var(--teal);
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-baseline-line {
  stroke-width: 2.25;
  stroke-dasharray: 8 6;
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-primary-line {
  stroke-width: 3.25;
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-chart-legend text,
body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-impact-label,
body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-impact-value {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 650;
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-legend-band {
  fill: var(--teal);
  fill-opacity: .16;
  stroke: rgba(47, 118, 120, .45);
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-legend-baseline {
  stroke: var(--teal);
  stroke-width: 2.25;
  stroke-dasharray: 8 6;
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-legend-primary {
  stroke: var(--rust);
  stroke-width: 3.25;
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-impact-label {
  fill: var(--rust);
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-impact-value {
  fill: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-impact-zero {
  stroke: rgba(11, 48, 79, .28);
  stroke-width: 1.2;
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-impact-area {
  fill: var(--rust);
  fill-opacity: .16;
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-impact-line {
  fill: none;
  stroke: var(--rust);
  stroke-width: 2;
}

body.editorial-ui .module-shell[data-theme="events"] .life-event-chart .event-x-tick line {
  stroke: rgba(11, 48, 79, .42);
}

body.editorial-ui .module-shell[data-theme="events"] .event-chart-hover-zone {
  cursor: help;
  outline: none;
}

body.editorial-ui .module-shell[data-theme="events"] .event-hover-field {
  fill: transparent;
}

body.editorial-ui .module-shell[data-theme="events"] :is(.event-hover-line, .event-hover-point, .event-hover-range) {
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

body.editorial-ui .module-shell[data-theme="events"] .event-hover-line {
  stroke: rgba(11, 48, 79, .44);
  stroke-width: 1.25;
}

body.editorial-ui .module-shell[data-theme="events"] .event-hover-range {
  stroke: var(--teal);
  stroke-width: 3;
}

body.editorial-ui .module-shell[data-theme="events"] .event-hover-point {
  stroke: var(--paper-raised);
  stroke-width: 3;
}

body.editorial-ui .module-shell[data-theme="events"] .event-hover-point.baseline {
  fill: var(--teal);
}

body.editorial-ui .module-shell[data-theme="events"] .event-hover-point.primary,
body.editorial-ui .module-shell[data-theme="events"] .event-hover-point.impact {
  fill: var(--rust);
}

body.editorial-ui .module-shell[data-theme="events"] .event-chart-hover-zone:hover :is(.event-hover-line, .event-hover-point, .event-hover-range),
body.editorial-ui .module-shell[data-theme="events"] .event-chart-hover-zone:focus :is(.event-hover-line, .event-hover-point, .event-hover-range) {
  opacity: 1;
}

body.editorial-ui .module-shell[data-theme="events"] .event-baseline-disclosure {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(183, 125, 39, .055);
  box-shadow: inset 4px 0 0 var(--ochre);
}

body.editorial-ui .module-shell[data-theme="events"] .event-baseline-disclosure > summary {
  min-height: 84px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
}

body.editorial-ui .module-shell[data-theme="events"] .event-baseline-disclosure > summary::-webkit-details-marker {
  display: none;
}

body.editorial-ui .module-shell[data-theme="events"] .event-baseline-disclosure > summary > span {
  display: grid;
  gap: 5px;
}

body.editorial-ui .module-shell[data-theme="events"] .event-baseline-disclosure > summary b {
  color: var(--ochre);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.editorial-ui .module-shell[data-theme="events"] .event-baseline-disclosure > summary small {
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.35;
}

body.editorial-ui .module-shell[data-theme="events"] .event-baseline-disclosure > summary > svg {
  width: 18px;
  height: 18px;
  transition: transform .16s ease;
}

body.editorial-ui .module-shell[data-theme="events"] .event-baseline-disclosure[open] > summary > svg {
  transform: rotate(90deg);
}

body.editorial-ui .module-shell[data-theme="events"] .event-baseline-disclosure .event-baseline {
  margin: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

body.editorial-ui .module-shell[data-theme="goal"] .interactive-fan-chart text,
body.editorial-ui #plan-view .journey-chart .interactive-fan-chart text {
  font-family: var(--font-ui);
  font-size: 17px !important;
  font-weight: 500;
}

/* Investing canonical spread. */
body.editorial-ui .module-shell[data-theme="investing"] .module-intro {
  grid-template-columns: minmax(0, 1fr);
}

body.editorial-ui .module-shell[data-theme="investing"] .module-identity {
  position: relative;
  width: min(510px, 100%);
  display: block;
}

body.editorial-ui .module-shell[data-theme="investing"] .module-intro-copy {
  width: min(510px, 100%);
}

body.editorial-ui .module-shell[data-theme="investing"] .module-large-icon {
  position: absolute;
  top: 2px;
  left: 326px;
  width: 64px;
  height: 64px;
  margin: 0;
  color: var(--rust);
  border: 0;
}

body.editorial-ui .module-shell[data-theme="investing"] .module-intro .module-tagline {
  white-space: nowrap;
}

body.editorial-ui .module-shell[data-theme="investing"] .module-large-icon svg {
  width: 58px;
  height: 58px;
}

body.editorial-ui .module-shell[data-theme="investing"] .module-header-actions,
body.editorial-ui .module-shell[data-theme="investing"] .example-data-banner {
  display: none;
}

body.editorial-ui .module-shell[data-theme="investing"] .input-panel {
  border: 0;
  background: transparent;
}

body.editorial-ui .module-shell[data-theme="investing"] .panel-heading {
  min-height: 52px;
  padding: 18px 18px 15px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: rgba(248, 242, 231, .56);
}

body.editorial-ui .module-shell[data-theme="investing"] .investing-plan-fields {
  padding: 13px 18px 17px;
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(248, 242, 231, .56);
}

body.editorial-ui .module-shell[data-theme="investing"] .investing-plan-fields > .field-grid {
  gap: 8px;
}

body.editorial-ui .module-shell[data-theme="investing"] .investing-plan-fields > .dollar-mode {
  margin: 0;
  padding: 0;
  border: 0;
}

body.editorial-ui .module-shell[data-theme="investing"] .dollar-mode legend {
  margin: 0 0 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
}

body.editorial-ui .module-shell[data-theme="investing"] .dollar-mode small {
  display: none;
}

body.editorial-ui .module-shell[data-theme="investing"] .investing-allocation {
  padding-top: 2px;
}

body.editorial-ui .module-shell[data-theme="investing"] .range-row,
body.editorial-ui .module-shell[data-theme="investing"] .range-ends {
  font-size: 10px;
}

body.editorial-ui .module-shell[data-theme="investing"] .assumptions {
  border: 1px solid var(--line);
  border-radius: 0 0 3px 3px;
}

body.editorial-ui .module-shell[data-theme="investing"] .module-result-panel {
  min-height: 840px;
}

body.editorial-ui .module-shell[data-theme="investing"] .result-heading {
  min-height: 52px;
  padding: 17px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

body.editorial-ui .module-shell[data-theme="investing"] .result-heading > div {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.editorial-ui .module-shell[data-theme="investing"] .result-heading .overline {
  color: var(--rust);
}

body.editorial-ui .module-shell[data-theme="investing"] .result-heading p {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 11px;
}

body.editorial-ui .module-shell[data-theme="investing"] .simulation-badge {
  display: none;
}

body.editorial-ui .investment-hero-result {
  min-height: 158px;
  padding: 20px 20px 20px;
  text-align: center;
}

body.editorial-ui .investment-hero-result > span {
  display: block;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 16px;
}

body.editorial-ui .investment-hero-result .hero-result-value {
  margin: 6px 0 8px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 58px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
}

body.editorial-ui .investment-hero-result p {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 14px;
}

body.editorial-ui .investment-hero-result p b {
  color: var(--teal);
  font-weight: 400;
}

body.editorial-ui .investment-hero-result p em {
  color: var(--rust);
  font-style: normal;
}

body.editorial-ui .investment-chart-block {
  margin: 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.editorial-ui .investment-chart-block .chart-title {
  min-height: 38px;
  padding: 0;
  border: 0;
}

body.editorial-ui .investment-chart-block .chart-legend {
  width: 100%;
  justify-content: flex-start;
  gap: 24px;
  font-size: 11px;
}

body.editorial-ui .investment-chart-block .chart-host {
  height: 350px;
  min-height: 350px;
  overflow: visible;
}

body.editorial-ui .investment-chart-block .chart-host svg {
  width: 100%;
  height: 100%;
}

body.editorial-ui .investment-chart-block :is(.chart-data-details, .direct-chart-hint) {
  display: none;
}

body.editorial-ui .investing-result-metrics {
  margin: 18px 12px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 3px;
}

body.editorial-ui .investing-result-metrics .result-metric {
  min-width: 0;
  min-height: 160px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
}

body.editorial-ui .investing-result-metrics .result-metric:last-child {
  border-right: 0;
}

body.editorial-ui .investing-result-metrics .result-metric > span {
  color: var(--navy);
  font-size: 10px;
}

body.editorial-ui .investing-result-metrics .result-metric strong {
  margin-top: 10px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}

body.editorial-ui .investing-result-metrics .result-metric:first-child strong {
  color: var(--teal);
  font-size: 38px;
}

body.editorial-ui .investing-result-metrics .result-metric small {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.35;
}

body.editorial-ui .investing-insight {
  display: none;
}

body.editorial-ui .investing-insight h3 {
  margin: 6px 0 2px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 15px;
}

body.editorial-ui .investing-insight p,
body.editorial-ui .module-shell[data-theme="investing"] .model-status {
  font-size: 10px;
}

body.editorial-ui .module-shell[data-theme="investing"] .model-status {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card {
  position: relative;
  isolation: isolate;
  margin: 18px 0 0;
  padding: 15px 18px 18px;
  grid-template-columns: 92px minmax(0, 1.05fr) minmax(190px, .9fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card::after {
  position: absolute;
  z-index: -1;
  top: 38px;
  right: 0;
  bottom: -17px;
  left: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(248, 242, 231, .56);
  content: "";
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card::before {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  grid-column: 1;
  grid-row: 2;
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card > span {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 1;
  color: var(--rust);
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card > .historical-context-copy {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 2;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card .historical-context-copy strong {
  display: block;
  color: var(--navy);
  font-size: 29px;
  font-weight: 400;
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card .historical-context-copy p {
  margin-top: 3px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 13px;
  line-height: 1.35;
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card .historical-context-copy small {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 1.45;
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card > .historical-context-sources {
  position: relative;
  z-index: 1;
  display: grid;
  grid-column: 3;
  grid-row: 2;
  gap: 7px;
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-sources p {
  position: relative;
  margin: 0;
  padding-left: 16px;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 1.4;
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-sources p::before {
  position: absolute;
  left: 0;
  color: var(--teal);
  content: "✦";
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-sources a {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-sources a svg {
  width: 13px;
  height: 13px;
}

/* Housing canonical spread. */
body.editorial-ui .module-shell[data-theme="home"] .module-intro {
  height: 263px;
  min-height: 263px;
  padding: 47px 0 22px;
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: 22px;
}

body.editorial-ui .module-shell[data-theme="home"] .module-identity {
  min-width: 0;
  grid-template-columns: 480px minmax(150px, 1fr);
  gap: 12px;
}

body.editorial-ui .module-shell[data-theme="home"] .module-intro-copy {
  grid-row: 1;
  grid-column: 1;
}

body.editorial-ui .module-shell[data-theme="home"] .module-large-icon {
  width: 224px;
  height: 164px;
  margin-top: -4px;
  grid-row: 1;
  grid-column: 2;
  color: var(--navy);
  border: 0;
  background: transparent;
}

body.editorial-ui .module-shell[data-theme="home"] .module-large-icon svg {
  width: 220px;
  height: 160px;
  stroke-width: .38px !important;
}

body.editorial-ui .module-shell[data-theme="home"] .module-large-icon svg * {
  stroke-width: .38px;
}

body.editorial-ui .module-shell[data-theme="home"] .module-intro h1 {
  color: var(--rust);
  font-family: var(--font-display);
  width: 138.9%;
  font-size: 138px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .76;
  text-transform: none;
  transform: scaleX(.72);
  transform-origin: left top;
  white-space: nowrap;
}

body.editorial-ui .module-shell[data-theme="home"] .module-intro .module-tagline {
  max-width: 430px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 25px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.12;
}

body.editorial-ui .module-shell[data-theme="home"] .module-intro .module-deck,
body.editorial-ui .module-shell[data-theme="home"] .module-learn-shortcut {
  display: none;
}

body.editorial-ui .module-shell[data-theme="home"] .module-header-actions {
  min-height: 147px;
  margin-top: 29px;
  padding: 20px 0 0 31px;
  box-sizing: border-box;
  border-left: 1px solid var(--line-strong);
}

body.editorial-ui .module-shell[data-theme="home"] .module-state {
  min-height: 108px;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: start;
  align-items: center;
  justify-content: start;
  column-gap: 12px;
  row-gap: 8px;
  border: 0;
  background: transparent;
}

body.editorial-ui .module-shell[data-theme="home"] .module-state-copy {
  display: contents;
}

body.editorial-ui .module-shell[data-theme="home"] .module-state-copy b {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: 18px;
}

body.editorial-ui .module-shell[data-theme="home"] .module-state-copy small {
  grid-column: 2;
  grid-row: 2;
  color: var(--teal);
  font-family: var(--font-editorial);
  font-size: 16px;
}

body.editorial-ui .module-shell[data-theme="home"] .mini-switch {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
}

body.editorial-ui .module-shell[data-theme="home"] .module-state-note {
  grid-column: 1 / -1;
  grid-row: 3;
  max-width: 20ch;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.42;
}

body.editorial-ui .module-shell[data-theme="home"] .example-data-banner {
  min-height: 51px;
  margin: 19px 0 22px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
}

body.editorial-ui .module-shell[data-theme="home"] .example-data-banner > span,
body.editorial-ui .module-shell[data-theme="home"] .example-data-banner > span svg {
  width: 24px;
  height: 24px;
}

body.editorial-ui .module-shell[data-theme="home"] .module-workspace {
  grid-template-columns: 420px minmax(0, 1fr) !important;
  gap: 20px;
}

body.editorial-ui .module-shell[data-theme="home"] .input-panel {
  min-height: 874px;
  border: 1px solid var(--line);
  background: rgba(248, 242, 231, .5);
}

body.editorial-ui .module-shell[data-theme="home"] .panel-heading {
  display: none;
}

body.editorial-ui .module-shell[data-theme="home"] .home-mode-selector {
  padding: 23px 21px;
}

body.editorial-ui .module-shell[data-theme="home"] .home-mode-selector .form-section-title {
  display: none;
}

body.editorial-ui .module-shell[data-theme="home"] .home-mode-selector .segmented {
  height: 60px;
  min-height: 60px;
  box-sizing: border-box;
}

body.editorial-ui .module-shell[data-theme="home"] .home-mode-selector .segmented button {
  height: 58px;
  min-height: 0;
  box-sizing: border-box;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.05;
}

body.editorial-ui .module-shell[data-theme="home"] .home-mode-selector .segmented button[aria-pressed="true"] {
  background: var(--teal);
}

body.editorial-ui .module-shell[data-theme="home"] .home-core-fields {
  padding: 10px 21px 18px;
}

body.editorial-ui .module-shell[data-theme="home"] .home-core-fields .field-grid {
  gap: 0;
}

body.editorial-ui .module-shell[data-theme="home"] .home-core-fields .field {
  min-height: 60px;
  padding: 7px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 157px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
}

body.editorial-ui .module-shell[data-theme="home"] .home-core-fields .input-wrap {
  width: 157px;
  justify-self: end;
}

body.editorial-ui .module-shell[data-theme="home"] .home-core-fields .input-wrap input {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  text-align: right;
}

body.editorial-ui .home-input-fold {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

body.editorial-ui .home-input-fold summary {
  min-height: 107px;
  padding: 18px 23px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 18px;
  grid-template-rows: 27px auto;
  align-items: center;
  gap: 2px 13px;
  list-style: none;
  cursor: pointer;
}

body.editorial-ui .home-input-fold summary::-webkit-details-marker {
  display: none;
}

body.editorial-ui .home-input-fold summary > .home-fold-icon {
  width: 54px;
  height: 54px;
  grid-row: 1 / 3;
  grid-column: 1;
  display: grid;
  place-items: center;
  color: var(--teal);
}

body.editorial-ui .home-input-fold summary > .home-fold-icon svg {
  width: 48px;
  height: 48px;
}

body.editorial-ui .home-input-fold summary > .home-fold-chevron {
  width: 22px;
  height: 22px;
  grid-row: 1 / 3;
  grid-column: 3;
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: transform .16s ease;
}

body.editorial-ui .home-input-fold summary > .home-fold-chevron svg {
  width: 18px;
  height: 18px;
}

body.editorial-ui .home-input-fold[open] summary > .home-fold-chevron {
  transform: rotate(90deg);
}

body.editorial-ui .home-input-fold summary b {
  grid-row: 1;
  grid-column: 2;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

body.editorial-ui .home-input-fold summary small {
  grid-row: 2;
  grid-column: 2;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.4;
}

body.editorial-ui .home-input-fold-body {
  padding: 0 23px 20px;
}

body.editorial-ui .module-shell[data-theme="home"] .module-result-panel {
  min-height: 874px;
  padding: 0;
  overflow: hidden;
  background: rgba(248, 242, 231, .56);
}

body.editorial-ui .home-decision-result {
  padding: 20px 20px 0;
}

body.editorial-ui .module-shell[data-theme="home"] .home-evidence-panel {
  position: relative;
  min-height: 178px;
  padding: 2px 28px 12px 76px;
  display: block;
  color: var(--navy);
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.editorial-ui .module-shell[data-theme="home"] .home-evidence-panel + .home-evidence-panel {
  padding-left: 92px;
  border-left: 1px solid var(--line-strong);
}

body.editorial-ui .module-shell[data-theme="home"] .home-evidence-icon {
  position: absolute;
  top: 0;
  left: 18px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--plum);
}

body.editorial-ui .module-shell[data-theme="home"] .home-evidence-panel + .home-evidence-panel .home-evidence-icon {
  left: 24px;
  background: var(--ochre);
}

body.editorial-ui .module-shell[data-theme="home"] .home-evidence-icon svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.6px;
}

body.editorial-ui .module-shell[data-theme="home"] .home-evidence-panel h3 {
  margin: 0 0 8px;
  color: var(--plum);
  font-family: var(--font-editorial);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.08;
}

body.editorial-ui .module-shell[data-theme="home"] .home-evidence-panel + .home-evidence-panel h3 {
  color: var(--ochre);
}

body.editorial-ui .module-shell[data-theme="home"] .home-evidence-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.48;
}

body.editorial-ui .module-shell[data-theme="home"] .home-evidence-panel a {
  color: inherit;
  text-decoration: none;
}

body.editorial-ui .module-shell[data-theme="home"] .home-evidence-panel a:hover,
body.editorial-ui .module-shell[data-theme="home"] .home-evidence-panel a:focus-visible {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.editorial-ui .module-shell[data-theme="home"] .home-evidence-panel p {
  margin: 8px 0 0;
  color: var(--plum);
  font-family: var(--font-editorial);
  font-size: 12px;
  line-height: 1.35;
}

body.editorial-ui .module-shell[data-theme="home"] .home-evidence-panel + .home-evidence-panel p {
  color: var(--rust);
}

body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="home"]) .site-footer {
  display: none;
}

body.editorial-ui .module-shell[data-theme="investing"] .module-intro h1 {
  font-size: 82px;
}

body.editorial-ui :is(.chart-hover-zone, .home-chart-hover-zone):focus {
  outline: none;
}

body.editorial-ui .module-shell[data-theme="investing"] .module-output-column > .module-learning {
  display: none;
}

body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card {
  min-height: 217px;
}

body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) .site-footer {
  min-height: 114px;
  margin: -43px 0 0 calc(-1 * var(--shell-offset));
  padding: 0 42px 6px;
  background: transparent;
}

body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) .site-footer::before {
  box-sizing: border-box;
  min-height: 64px;
  padding: 12px 16px 12px 48px;
  display: flex;
  align-items: center;
  color: var(--navy);
  border: 0;
  border-radius: 3px;
  background: rgba(183, 125, 39, .09);
  content: "✳  Investing involves risk, including possible loss of principal. Past performance is not indicative of future results. This tool is for educational purposes only and does not constitute financial advice.";
  font-family: var(--font-editorial);
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
}

body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) .site-footer > .footer-directory,
body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) .site-footer .privacy-controls {
  display: none;
}

body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) .site-footer .footer-meta {
  min-height: 48px;
  margin: 0;
  padding: 12px 0 0;
  border: 0;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) .site-footer .footer-meta > span:nth-child(2) {
  margin-left: auto;
  font-size: 0;
  opacity: 1;
}

body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) .site-footer .footer-meta > span:nth-child(2)::after {
  content: "Observe. Breathe. Remember.";
  font-size: 10px;
}

body.editorial-ui .home-decision-heading > span {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.editorial-ui .home-decision-heading h2 {
  margin: 10px 0 22px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.08;
}

body.editorial-ui .home-decision-heading h2 > span {
  white-space: nowrap;
}

body.editorial-ui .home-decision-heading h2 :is(em, b) {
  color: var(--rust);
  font-style: normal;
  font-weight: inherit;
}

body.editorial-ui .home-decision-facts {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

body.editorial-ui .home-decision-facts > div {
  min-height: 50px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

body.editorial-ui .home-decision-facts > div:last-child {
  border-bottom: 0;
}

body.editorial-ui .home-decision-facts span,
body.editorial-ui .home-decision-facts span svg {
  width: 31px;
  height: 31px;
  color: var(--teal);
}

body.editorial-ui .home-decision-facts b,
body.editorial-ui .home-decision-facts strong {
  font-family: var(--font-ui);
  font-size: 14px;
}

body.editorial-ui .home-decision-facts b {
  font-weight: 500;
}

body.editorial-ui .home-decision-facts strong {
  font-size: 16px;
  font-weight: 600;
}

body.editorial-ui .home-decision-chart {
  padding-top: 15px;
}

body.editorial-ui .home-decision-chart .home-timeline-heading {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
}

body.editorial-ui .home-decision-chart .home-timeline-heading h3 {
  font-family: var(--font-display);
  font-size: 18px;
}

body.editorial-ui .home-decision-chart .home-timeline-heading h3 small {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
}

body.editorial-ui .home-decision-chart .home-chart-legend {
  font-size: 11px;
}

body.editorial-ui .home-decision-chart .home-chart-legend .equity i {
  background: var(--teal);
}

body.editorial-ui .home-decision-chart .home-chart-legend .cash i {
  height: 2px;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, var(--rust) 0 7px, transparent 7px 11px);
}

body.editorial-ui .home-decision-chart .home-chart-host {
  height: 265px;
  min-height: 265px;
  overflow: visible;
}

body.editorial-ui .home-decision-chart .home-line-chart {
  width: 100%;
  min-width: 0;
  height: 265px;
}

body.editorial-ui .home-decision-chart .home-line-chart g > line:not(.home-chart-hover-line) {
  stroke: rgba(11, 48, 79, .18);
  stroke-width: 1;
}

body.editorial-ui .home-decision-chart .home-line-chart g > text,
body.editorial-ui .home-decision-chart .home-line-chart .home-year-label {
  fill: var(--navy);
  font-family: var(--font-ui);
  /* The decision chart uses a 920-unit viewBox inside a roughly 460px panel.
     Compensate for that scale so axis labels render at an editorial 11px. */
  font-size: 22px;
  font-weight: 500;
}

body.editorial-ui .home-decision-chart .home-series.equity {
  stroke: var(--teal);
  stroke-width: 3.4;
}

body.editorial-ui .home-decision-chart .home-series.cash {
  stroke: var(--rust);
  stroke-width: 3;
  stroke-dasharray: 10 7;
}

body.editorial-ui .home-decision-chart .home-end-dot.equity,
body.editorial-ui .home-decision-chart .home-chart-hover-point.equity {
  fill: var(--teal);
}

body.editorial-ui .home-decision-chart .home-end-dot.cash,
body.editorial-ui .home-decision-chart .home-chart-hover-point.cash {
  fill: var(--rust);
}

body.editorial-ui .home-line-chart .home-chart-hover-zone {
  cursor: help;
}

body.editorial-ui .home-line-chart .home-chart-hover-line,
body.editorial-ui .home-line-chart .home-chart-hover-point {
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

body.editorial-ui .home-line-chart .home-chart-hover-line {
  stroke: rgba(11, 48, 79, .46);
  stroke-width: 1.25;
}

body.editorial-ui .home-line-chart .home-chart-hover-point {
  stroke: var(--paper-raised);
  stroke-width: 3;
}

body.editorial-ui .home-line-chart .home-chart-hover-zone:hover .home-chart-hover-line,
body.editorial-ui .home-line-chart .home-chart-hover-zone:hover .home-chart-hover-point,
body.editorial-ui .home-line-chart .home-chart-hover-zone:focus .home-chart-hover-line,
body.editorial-ui .home-line-chart .home-chart-hover-zone:focus .home-chart-hover-point {
  opacity: 1;
}

body.editorial-ui .home-decision-chart > details {
  display: none;
}

body.editorial-ui .home-decision-difference {
  min-height: 44px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  background: rgba(47, 118, 120, .05);
  font-family: var(--font-display);
  font-size: 16px;
}

body.editorial-ui .home-decision-difference strong {
  color: var(--teal);
  font-size: 25px;
}

body.editorial-ui .home-decision-meaning {
  min-height: 111px;
  margin-top: 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(112, 71, 93, .22);
  border-radius: 3px;
  background: rgba(112, 71, 93, .055);
}

body.editorial-ui .home-decision-meaning > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--plum);
}

body.editorial-ui .home-decision-meaning > span svg {
  width: 28px;
  height: 28px;
}

body.editorial-ui .home-decision-meaning strong {
  color: var(--plum);
  font-family: var(--font-editorial);
  font-size: 17px;
}

body.editorial-ui .home-decision-meaning p {
  margin: 4px 0 0;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.45;
}

body.editorial-ui .home-decision-result > .home-boundary-note {
  display: none;
}

body.editorial-ui .module-learning {
  margin-top: 22px;
}

body.editorial-ui .site-footer > div.footer-directory:first-child {
  grid-template-columns: 184px 201px 179px minmax(0, 1fr);
  gap: 55px;
}

body.editorial-ui .footer-directory :is(a, span, button) {
  min-height: 0;
}

/* My Plan — the decision map is the organizing object. The cards read like
   colored field-guide tabs; the shared timeline remains the quieter evidence. */
body.editorial-ui:has(#plan-view:not([hidden])) .site-footer {
  display: none;
}

body.editorial-ui #plan-view {
  padding: 0 7px 21px;
}

body.editorial-ui #plan-view .combined-heading {
  height: 273px;
  margin: 0;
  padding: 50px 7px 22px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: start;
  gap: 38px;
  border: 0;
}

body.editorial-ui #plan-view .combined-heading h1 {
  max-width: 520px;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 67px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .91;
}

body.editorial-ui #plan-view .plan-status {
  display: none;
}

body.editorial-ui #plan-view .plan-heading-note {
  max-width: 355px;
  padding-top: 90px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 17px;
  line-height: 1.25;
}

body.editorial-ui #plan-view .plan-heading-note p {
  margin: 0;
}

body.editorial-ui #plan-view .plan-status {
  margin-top: 15px;
  padding: 0;
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .11em;
  text-align: left;
  text-transform: uppercase;
}

body.editorial-ui #plan-view .money-map {
  position: relative;
  min-height: 417px;
  padding: 0 0 27px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  column-gap: 12px;
  border-bottom: 1px solid var(--line-strong);
}

body.editorial-ui #plan-view .money-map-intro {
  grid-column: 1 / -1;
  min-height: 41px;
  padding: 0 3px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

body.editorial-ui #plan-view .money-map-intro h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
}

body.editorial-ui #plan-view .map-helper {
  display: none;
}

body.editorial-ui #plan-view .plan-quick-facts {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 3px;
  width: 300px;
  margin: 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--paper-raised);
  box-shadow: none;
}

body.editorial-ui #plan-view .plan-quick-facts summary {
  min-height: 37px;
  padding: 9px 42px 9px 15px;
  display: flex;
  align-items: center;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

body.editorial-ui #plan-view .plan-quick-facts summary::-webkit-details-marker {
  display: none;
}

body.editorial-ui #plan-view .plan-quick-facts .plan-quick-chevron {
  position: absolute;
  top: 8px;
  right: 15px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  transform-origin: 50% 55%;
  transition: transform .16s ease;
}

body.editorial-ui #plan-view .plan-quick-facts .plan-quick-chevron svg {
  width: 15px;
  height: 15px;
}

body.editorial-ui #plan-view .plan-quick-facts[open] {
  width: min(680px, calc(100% - 6px));
  border-color: var(--navy);
  box-shadow: 0 15px 34px rgba(11, 48, 79, .16);
}

body.editorial-ui #plan-view .plan-quick-facts[open] summary {
  width: 300px;
  margin-left: auto;
  border-bottom: 1px solid var(--line);
}

body.editorial-ui #plan-view .plan-quick-facts[open] .plan-quick-chevron {
  transform: rotate(90deg);
}

body.editorial-ui #plan-view .plan-quick-facts > p {
  padding: 13px 15px 0;
  font-size: 12px;
  line-height: 1.45;
}

body.editorial-ui #plan-view .plan-quick-facts .plan-fact-grid {
  padding: 12px 15px 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.editorial-ui #plan-view .plan-fact-actions {
  padding: 0 15px 15px;
  display: flex;
  justify-content: flex-end;
}

body.editorial-ui #plan-view .plan-fact-actions button {
  min-width: 164px;
  min-height: 38px;
  padding: 8px 17px;
  color: var(--paper-raised);
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
}

body.editorial-ui #plan-view .plan-fact-actions button:hover,
body.editorial-ui #plan-view .plan-fact-actions button:focus-visible {
  color: var(--navy);
  background: var(--paper-raised);
}

body.editorial-ui #plan-view .money-map-group {
  min-width: 0;
  display: grid;
  grid-template-rows: 35px repeat(2, 146px);
  gap: 3px;
}

body.editorial-ui #plan-view .money-map-group > h3 {
  margin: 0;
  padding: 0 7px;
  color: var(--navy);
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.editorial-ui #plan-view .money-map-group > h3 small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body.editorial-ui #plan-view .money-map-node {
  position: relative;
  min-height: 146px;
  padding: 13px 12px 51px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  overflow: hidden;
  color: #fffdf7;
  border: 1px solid var(--map-node-accent);
  border-radius: 3px;
  background: var(--map-node-accent);
  box-shadow: none;
}

body.editorial-ui #plan-view .money-map-node::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 46px;
  pointer-events: none;
  background: url("assets/texture/ink-wear.svg") repeat;
  background-size: 128px 128px;
  mix-blend-mode: screen;
  opacity: .82;
}

body.editorial-ui #plan-view .money-map-node::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46px;
  border-top: 1px solid color-mix(in srgb, var(--map-node-accent) 55%, transparent);
  background: rgba(250, 245, 235, .96);
}

body.editorial-ui #plan-view .money-map-node-icon {
  position: relative;
  z-index: 1;
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  color: #fffdf7;
  border: 1px solid rgba(255, 253, 247, .82);
  border-radius: 50%;
}

body.editorial-ui #plan-view .money-map-node-icon svg {
  width: 31px;
  height: 31px;
}

body.editorial-ui #plan-view .money-map-node-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-top: 6px;
}

body.editorial-ui #plan-view .money-map-node-copy strong {
  display: block;
  color: inherit;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.05;
}

body.editorial-ui #plan-view .money-map-node-copy small {
  display: block;
  margin-top: 5px;
  color: inherit;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.18;
}

body.editorial-ui #plan-view .money-map-switch,
body.editorial-ui #plan-view .money-map-edit {
  position: absolute;
  z-index: 2;
  bottom: 0;
  height: 46px;
  display: flex;
  align-items: center;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 13px;
}

body.editorial-ui #plan-view .money-map-switch {
  left: 0;
  width: 54%;
  padding-left: 14px;
  gap: 9px;
  border-right: 1px solid var(--line);
  text-transform: none;
}

body.editorial-ui #plan-view .money-map-switch input {
  width: 38px;
  height: 21px;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: 20px;
  background: #d4d0c6;
}

body.editorial-ui #plan-view .money-map-switch input::after {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  margin: 2px;
  border-radius: 50%;
  background: var(--paper-raised);
  transition: transform .16s ease;
}

body.editorial-ui #plan-view .money-map-switch input:checked {
  background: var(--navy);
}

body.editorial-ui #plan-view .money-map-switch input:checked::after {
  transform: translateX(17px);
}

body.editorial-ui #plan-view .money-map-switch.is-unavailable {
  cursor: default;
}

body.editorial-ui #plan-view .money-map-switch.is-unavailable input {
  opacity: .72;
  cursor: not-allowed;
}

body.editorial-ui #plan-view .money-map-edit {
  right: 0;
  width: 46%;
  padding: 0 8px 0 10px;
  justify-content: space-between;
  border: 0;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}

body.editorial-ui #plan-view .money-map-edit svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 1.55;
}

body.editorial-ui #plan-view .plan-results {
  margin: 0;
  padding: 0;
  min-height: 0;
  color: var(--navy);
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.editorial-ui #plan-view .plan-results > .plan-empty {
  min-height: 522px;
  margin: 0;
  padding: 20px 3px 0;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  grid-template-rows: 43px 335px 108px;
  align-items: stretch;
  gap: 0 18px;
  color: var(--navy);
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

body.editorial-ui #plan-view .plan-empty-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

body.editorial-ui #plan-view .plan-empty-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
}

body.editorial-ui #plan-view .plan-empty-heading > span {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body.editorial-ui #plan-view .plan-empty-start {
  min-width: 0;
  padding: 24px 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(248, 242, 231, .52);
}

body.editorial-ui #plan-view .plan-empty .plan-empty-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  margin: 0 0 16px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--rust);
}

body.editorial-ui #plan-view .plan-empty .plan-empty-icon svg {
  width: 30px;
  height: 30px;
}

body.editorial-ui #plan-view .plan-empty-kicker {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.editorial-ui #plan-view .plan-empty-start h3 {
  margin: 7px 0 8px;
  max-width: 12ch;
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.04;
}

body.editorial-ui #plan-view .plan-empty-start p {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.42;
}

body.editorial-ui #plan-view .plan-empty-start button {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border-radius: 2px;
}

body.editorial-ui #plan-view .plan-empty-start small {
  margin-top: 9px;
  color: var(--ink-muted);
  font-family: var(--font-editorial);
  font-size: 10px;
  font-style: italic;
  line-height: 1.3;
}

body.editorial-ui #plan-view .plan-empty-preview {
  position: relative;
  min-width: 0;
  padding: 25px 20px 13px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(248, 242, 231, .28);
}

body.editorial-ui #plan-view .plan-empty-stage-labels {
  position: absolute;
  z-index: 2;
  inset: 13px 20px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.editorial-ui #plan-view .plan-empty-stage-labels span:not(:first-child) {
  text-align: center;
}

body.editorial-ui #plan-view .plan-empty-stage-labels span:last-child {
  text-align: right;
}

body.editorial-ui #plan-view .plan-empty-preview svg {
  width: 100%;
  height: 236px;
  display: block;
  overflow: visible;
}

body.editorial-ui #plan-view .plan-empty-grid {
  fill: none;
  stroke: rgba(11, 48, 79, .14);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

body.editorial-ui #plan-view .plan-empty-band {
  fill: rgba(77, 129, 132, .14);
  stroke: rgba(47, 118, 120, .28);
  stroke-width: 1;
  stroke-dasharray: 1.5 3;
}

body.editorial-ui #plan-view .plan-empty-line {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.2;
}

body.editorial-ui #plan-view .plan-empty-preview circle {
  fill: var(--paper-raised);
  stroke: var(--rust);
  stroke-width: 2;
}

body.editorial-ui #plan-view .plan-empty-preview > p {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-family: var(--font-editorial);
  font-size: 12px;
  font-style: italic;
  text-align: center;
}

body.editorial-ui #plan-view .plan-empty-principles {
  grid-column: 1 / -1;
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

body.editorial-ui #plan-view .plan-empty-principles > div {
  min-width: 0;
  padding: 16px 19px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

body.editorial-ui #plan-view .plan-empty-principles > div + div {
  border-left: 1px solid var(--line);
}

body.editorial-ui #plan-view .plan-empty-principles b {
  color: var(--rust);
  font-family: var(--font-editorial);
  font-size: 18px;
  font-weight: 400;
}

body.editorial-ui #plan-view .plan-empty-principles span,
body.editorial-ui #plan-view .plan-empty-principles strong,
body.editorial-ui #plan-view .plan-empty-principles small {
  display: block;
}

body.editorial-ui #plan-view .plan-empty-principles strong {
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.2;
}

body.editorial-ui #plan-view .plan-empty-principles small {
  margin-top: 4px;
  color: var(--ink-muted);
  font-family: var(--font-editorial);
  font-size: 11px;
  line-height: 1.28;
}

body.editorial-ui #plan-view .journey-heading {
  height: 44px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

body.editorial-ui #plan-view .journey-heading h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
}

body.editorial-ui #plan-view .journey-heading .dollar-mode {
  width: 390px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto 158px 158px;
  align-items: center;
  border: 0;
  background: transparent;
}

body.editorial-ui #plan-view .journey-heading .dollar-mode legend {
  position: static;
  width: auto;
  margin: 0 9px 0 0;
  padding: 0;
  float: left;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
}

body.editorial-ui #plan-view .journey-heading .dollar-mode button {
  min-height: 31px;
  padding: 4px 7px;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 11px;
}

body.editorial-ui #plan-view .journey-heading .dollar-mode button + button {
  border-left: 0;
}

body.editorial-ui #plan-view .journey-heading .dollar-mode button[aria-pressed="true"] {
  color: var(--paper-raised);
  background: var(--navy);
}

body.editorial-ui #plan-view .journey-heading .dollar-mode small {
  display: none;
}

body.editorial-ui #plan-view .plan-journey {
  height: calc(var(--journey-event-height, 54px) + 232px);
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

body.editorial-ui #plan-view .journey-summary {
  padding: 42px 14px 0 0;
  font-family: var(--font-ui);
}

body.editorial-ui #plan-view .journey-summary > span {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

body.editorial-ui #plan-view .journey-summary > strong {
  display: block;
  margin: 15px 0 24px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
}

body.editorial-ui #plan-view .journey-summary small {
  font-size: 13px;
}

body.editorial-ui #plan-view .journey-summary p {
  margin: 7px 0 0;
  font-family: var(--font-editorial);
  font-size: 18px;
}

body.editorial-ui #plan-view .journey-chart {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: var(--journey-event-height, 54px) 229px;
}

body.editorial-ui #plan-view .journey-range-labels {
  position: absolute;
  top: calc(var(--journey-event-height, 54px) - 10px);
  right: 0;
  bottom: 91px;
  width: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

body.editorial-ui #plan-view .journey-events {
  position: relative;
  z-index: 2;
  min-width: 0;
  height: var(--journey-event-height, 54px);
  pointer-events: none;
}

body.editorial-ui #plan-view .journey-events.is-empty {
  visibility: hidden;
}

body.editorial-ui #plan-view .journey-events > span {
  position: absolute;
  top: 0;
  left: var(--event-position);
  width: 88px;
  transform: translateX(-50%);
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  pointer-events: auto;
}

body.editorial-ui #plan-view .journey-events > span.is-lane-1 {
  top: 58px;
}

body.editorial-ui #plan-view .journey-events > span.is-lane-2 {
  top: 116px;
}

body.editorial-ui #plan-view .journey-events > span.is-edge-end,
body.editorial-ui #plan-view .journey-events > span.is-edge-start {
  width: 108px;
  padding-top: 32px;
}

body.editorial-ui #plan-view .journey-events > span.is-edge-end {
  padding-right: 48px;
  transform: translateX(-100%);
  text-align: right;
}

body.editorial-ui #plan-view .journey-events > span.is-edge-start {
  padding-left: 32px;
  transform: none;
  text-align: left;
}

body.editorial-ui #plan-view .journey-events i {
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--event-color);
}

body.editorial-ui #plan-view .journey-events > span.is-edge-end i,
body.editorial-ui #plan-view .journey-events > span.is-edge-start i {
  position: absolute;
  top: 0;
  margin: 0;
}

body.editorial-ui #plan-view .journey-events > span.is-edge-end i {
  right: -14px;
}

body.editorial-ui #plan-view .journey-events > span.is-edge-start i {
  left: -14px;
}

body.editorial-ui #plan-view .journey-events i svg {
  width: 15px;
  height: 15px;
}

body.editorial-ui #plan-view .journey-events small {
  display: block;
  opacity: .72;
}

body.editorial-ui #plan-view .journey-chart .chart-host,
body.editorial-ui #plan-view .journey-chart .chart-host svg {
  width: 100%;
  min-height: 229px;
}

body.editorial-ui #plan-view .journey-chart .chart-host {
  position: relative;
  z-index: 1;
}

body.editorial-ui #plan-view .journey-chart .chart-host svg {
  height: 229px !important;
  transform: translateY(-29px);
}

body.editorial-ui #plan-view .journey-chart .fan-range-texture {
  pointer-events: none;
}

body.editorial-ui #plan-view .journey-chart .chart-data-details {
  display: none;
}

body.editorial-ui #plan-view .journey-metrics {
  min-height: 133px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

body.editorial-ui #plan-view .journey-metrics > div {
  position: relative;
  padding: 18px 12px 14px 55px;
  border-right: 1px solid var(--line);
}

body.editorial-ui #plan-view .journey-metrics > div:last-child {
  border-right: 0;
}

body.editorial-ui #plan-view .journey-metric-icon {
  position: absolute;
  top: 18px;
  left: 7px;
  width: 38px;
  height: 38px;
  padding: 8px;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--teal);
}

body.editorial-ui #plan-view .journey-metrics > div:first-child .journey-metric-icon {
  background: var(--navy);
}

body.editorial-ui #plan-view .journey-metric-icon svg {
  width: 100%;
  height: 100%;
}

body.editorial-ui #plan-view .journey-metrics p {
  min-height: 34px;
  margin: 0 0 7px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.25;
}

body.editorial-ui #plan-view .journey-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
}

body.editorial-ui #plan-view .journey-metrics small {
  display: block;
  margin-top: 7px;
  font-family: var(--font-ui);
  font-size: 10px;
}

body.editorial-ui #plan-view .plan-pressure {
  min-height: 161px;
  margin-top: 12px;
  padding: 22px 24px 7px;
  display: grid;
  grid-template-columns: 77px 1.05fr 1.2fr;
  align-items: start;
  gap: 25px;
  border: 1px solid rgba(183, 125, 39, .72);
  border-radius: 3px;
  background: rgba(183, 125, 39, .035);
}

body.editorial-ui #plan-view .plan-pressure-icon {
  width: 62px;
  height: 62px;
  padding: 14px;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--rust);
}

body.editorial-ui #plan-view .plan-pressure-icon svg {
  width: 100%;
  height: 100%;
}

body.editorial-ui #plan-view .plan-pressure > div:last-child {
  min-height: 100px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

body.editorial-ui #plan-view .plan-pressure h3 {
  margin: 1px 0 8px;
  font-family: var(--font-ui);
  font-size: 23px;
  line-height: 1.08;
}

body.editorial-ui #plan-view .plan-pressure p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.42;
}

body.editorial-ui #plan-view .plan-pressure > div:last-child > span {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.editorial-ui #plan-view .plan-pressure button {
  margin-top: 8px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  text-decoration: underline;
}

body.editorial-ui #plan-view .plan-pressure button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

body.editorial-ui #plan-view .plan-system-note {
  min-height: 53px;
  margin: 19px 0 0;
  padding: 12px 4px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-editorial);
  font-size: 14px;
}

body.editorial-ui #plan-view .plan-system-note > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--navy);
  border-radius: 50%;
  font-family: var(--font-editorial);
  font-size: 20px;
  font-style: italic;
}

/* Calculator pages already end with module-specific evidence and boundary
   notes. Keep the marketing directory exclusive to the landing page so a
   working calculator reads as one uninterrupted editorial plate. */
body.editorial-ui:has(#module-view:not([hidden]) .module-shell:not([data-theme="investing"])) .site-footer {
  display: none;
}

/* Risk scenarios — an illustrated rehearsal page, not a questionnaire card. */
body.editorial-ui:has(#risk-view:not([hidden])) .site-footer {
  display: none;
}

body.editorial-ui #risk-view {
  margin-top: -50px;
  padding: 0 0 28px;
}

body.editorial-ui #risk-lab-root .fm-risk-lab {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
  color: var(--navy);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-ui);
}

body.editorial-ui #risk-lab-root .fm-risk-lab::before {
  display: none;
}

body.editorial-ui #risk-lab-root .fm-risk-head {
  position: relative;
  height: 500px;
  min-height: 500px;
  padding: 47px 7px 0;
  border: 0;
}

body.editorial-ui #risk-lab-root .fm-risk-footer {
  margin: 20px 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 12px;
}

body.editorial-ui #risk-lab-root .fm-risk-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  text-decoration: none;
}

body.editorial-ui #risk-lab-root .fm-risk-footer a:hover {
  text-decoration: underline;
}

body.editorial-ui #risk-lab-root .fm-risk-footer svg {
  width: 16px;
  height: 16px;
}

body.editorial-ui #risk-lab-root .fm-risk-meta,
body.editorial-ui #risk-lab-root .fm-risk-progress-wrap {
  display: none;
}

body.editorial-ui #risk-lab-root .fm-risk-hero-row {
  height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: start;
  gap: 44px;
}

body.editorial-ui #risk-lab-root .fm-risk-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body.editorial-ui #risk-lab-root .fm-risk-head h1 {
  max-width: 560px;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 74px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .96;
}

body.editorial-ui #risk-lab-root .fm-risk-deck {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

body.editorial-ui #risk-lab-root .fm-risk-education {
  max-width: 530px;
  margin: 19px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
}

body.editorial-ui #risk-lab-root .fm-risk-education b {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper-raised);
  font-family: var(--font-editorial);
  font-style: italic;
}

body.editorial-ui #risk-lab-root .fm-risk-compass {
  width: 280px;
  height: 280px;
  margin: 1px auto 0;
  object-fit: contain;
}

body.editorial-ui #risk-lab-root .fm-risk-chapters {
  position: absolute;
  right: 0;
  bottom: 31px;
  left: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 35.6% 34.7% 29.7%;
  align-items: center;
  border: 0;
}

body.editorial-ui #risk-lab-root .fm-risk-chapters::before {
  content: "";
  position: absolute;
  top: 35px;
  right: 22px;
  left: 22px;
  border-top: 1px dashed var(--line-strong);
}

body.editorial-ui #risk-lab-root .fm-risk-chapters > span {
  position: relative;
  z-index: 1;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 0;
}

body.editorial-ui #risk-lab-root .fm-risk-chapters b {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--rust);
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 400;
}

body.editorial-ui #risk-lab-root .fm-risk-chapters > span:nth-child(2) b {
  background: var(--navy);
}

body.editorial-ui #risk-lab-root .fm-risk-chapters > span:nth-child(3) b {
  background: var(--teal);
}

body.editorial-ui #risk-lab-root .fm-risk-chapters i {
  padding: 4px 12px 4px 0;
  color: var(--navy);
  background: #f3ecde;
  font-family: var(--font-editorial);
  font-size: 16px;
  font-style: normal;
  line-height: 1.1;
}

body.editorial-ui #risk-lab-root .fm-risk-chapters small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-ui);
  font-size: 11px;
}

body.editorial-ui #risk-lab-root .fm-risk-finish {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 17px;
  width: 30px;
  height: 46px;
  overflow: visible;
  color: var(--teal);
  fill: color-mix(in srgb, var(--teal) 30%, transparent);
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.editorial-ui #risk-lab-root .fm-risk-main {
  min-height: 0;
  padding: 0 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-layout {
  height: 588px;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 1fr);
  gap: 16px;
}

body.editorial-ui #risk-lab-root :is(.fm-risk-scenario-panel, .fm-risk-facts) {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(249, 244, 234, .54);
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-panel > header {
  height: 112px;
  padding: 22px 27px 12px;
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-panel.has-long-title > header {
  height: 126px;
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-panel.has-long-title > header h3 {
  max-width: 520px;
  font-size: 34px;
  line-height: .98;
}

body.editorial-ui #risk-lab-root .fm-risk-kicker {
  margin: 0 0 8px;
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.editorial-ui #risk-lab-root .fm-risk-main h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-art {
  height: 192px;
  margin: 0;
  overflow: hidden;
  background: #d6aa7a;
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-panel.has-long-title .fm-risk-scenario-art {
  height: 178px;
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-art picture,
body.editorial-ui #risk-lab-root .fm-risk-scenario-art img {
  width: 100%;
  height: 100%;
  display: block;
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-art img {
  object-fit: cover;
  object-position: center 80%;
  filter: saturate(.78) contrast(1.1) sepia(.18);
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-copy {
  height: 282px;
  padding: 17px 27px 12px;
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-copy .fm-risk-intro {
  max-width: 400px;
  margin: 0 0 7px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 17px;
  line-height: 1.35;
}

body.editorial-ui #risk-lab-root .fm-risk-options {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  border: 0;
}

body.editorial-ui #risk-lab-root .fm-risk-options.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.editorial-ui #risk-lab-root .fm-risk-options.is-four legend {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.16;
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-panel.has-four-options .fm-risk-scenario-copy .fm-risk-intro {
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.22;
}

body.editorial-ui #risk-lab-root .fm-risk-options.is-four .fm-risk-option {
  min-height: 122px;
  padding: 51px 6px 7px;
  font-size: 14px;
  line-height: 1.16;
}

body.editorial-ui #risk-lab-root .fm-risk-options.is-four .fm-risk-option-icon {
  top: 9px;
  left: calc(50% - 18px);
  width: 36px;
  height: 36px;
}

body.editorial-ui #risk-lab-root .fm-risk-options.is-four .fm-risk-option-icon svg {
  width: 21px;
  height: 21px;
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-panel.has-four-options .fm-risk-scenario-copy > .fm-risk-hint {
  margin-top: 6px;
  font-size: 11px;
}

body.editorial-ui .comparison-row.secondary .comparison-fill {
  background: var(--teal);
}

body.editorial-ui #risk-lab-root .fm-risk-options legend {
  width: 100%;
  margin: 0 0 16px;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

body.editorial-ui #risk-lab-root .fm-risk-option {
  --choice-color: var(--navy);
  min-height: 126px;
  padding: 72px 8px 9px;
  display: block;
  color: var(--choice-color);
  border: 1px solid var(--choice-color);
  border-radius: 3px;
  background: transparent;
  font-family: var(--font-editorial);
  font-size: 16px;
  text-align: center;
}

body.editorial-ui #risk-lab-root .fm-risk-option::before {
  display: none;
  content: none;
}

body.editorial-ui #risk-lab-root .fm-risk-option-icon {
  position: absolute;
  top: 20px;
  left: calc(50% - 24px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--choice-color);
}

body.editorial-ui #risk-lab-root .fm-risk-option-icon svg {
  width: 24px;
  height: 24px;
}

body.editorial-ui #risk-lab-root .fm-risk-option.is-reduce {
  --choice-color: var(--rust);
}

body.editorial-ui #risk-lab-root .fm-risk-option.is-hold {
  --choice-color: var(--navy);
}

body.editorial-ui #risk-lab-root .fm-risk-option.is-add {
  --choice-color: var(--teal);
}

body.editorial-ui #risk-lab-root .fm-risk-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

body.editorial-ui #risk-lab-root .fm-risk-option:has(input:checked) {
  color: var(--paper-raised);
  border-color: var(--choice-color);
  background: var(--choice-color);
  box-shadow: none;
}

body.editorial-ui #risk-lab-root .fm-risk-option:has(input:checked) .fm-risk-option-icon {
  color: var(--choice-color);
  background: var(--paper-raised);
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-copy > .fm-risk-hint {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 12px;
}

body.editorial-ui #risk-lab-root .fm-risk-scenario-copy > .fm-risk-hint svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

body.editorial-ui #risk-lab-root .fm-risk-error {
  min-height: 0;
  margin: 0;
}

body.editorial-ui #risk-lab-root .fm-risk-facts {
  padding: 20px 18px;
}

body.editorial-ui #risk-lab-root .fm-risk-facts > h3 {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--navy);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.editorial-ui #risk-lab-root .fm-risk-facts > p {
  margin: 14px 0 13px;
  font-size: 12px;
  line-height: 1.45;
}

body.editorial-ui #risk-lab-root .fm-risk-facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.editorial-ui #risk-lab-root .fm-risk-facts li {
  min-height: 81px;
  display: grid;
  grid-template-columns: 53px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

body.editorial-ui #risk-lab-root .fm-risk-facts li i {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--teal);
  font-family: var(--font-editorial);
  font-size: 22px;
  font-style: normal;
}

body.editorial-ui #risk-lab-root .fm-risk-facts :is(li i, .fm-risk-facts-note b) svg {
  width: 24px;
  height: 24px;
  display: block;
}

body.editorial-ui #risk-lab-root .fm-risk-facts li:nth-child(2) i {
  background: var(--rust);
}

body.editorial-ui #risk-lab-root .fm-risk-facts li:nth-child(3) i {
  background: var(--plum);
}

body.editorial-ui #risk-lab-root .fm-risk-facts li:nth-child(4) i {
  background: var(--ochre);
}

body.editorial-ui #risk-lab-root .fm-risk-facts li strong {
  font-family: var(--font-editorial);
  font-size: 14px;
  font-weight: 400;
  text-align: right;
}

body.editorial-ui #risk-lab-root .fm-risk-facts-note {
  min-height: 83px;
  margin-top: 13px;
  padding: 12px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--navy);
  border-radius: 3px;
}

body.editorial-ui #risk-lab-root .fm-risk-facts-note > b {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--navy);
}

body.editorial-ui #risk-lab-root .fm-risk-facts-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

body.editorial-ui #risk-lab-root .fm-risk-goal-strip {
  min-height: 127px;
  margin-top: 14px;
  padding: 18px 27px;
  display: grid;
  grid-template-columns: 82px 290px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  border: 1px solid var(--teal);
  border-radius: 3px;
  background: rgba(47, 118, 120, .055);
}

body.editorial-ui #risk-lab-root .fm-risk-goal-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--teal);
  font-size: 27px;
}

body.editorial-ui #risk-lab-root .fm-risk-goal-icon svg {
  width: 34px;
  height: 34px;
}

body.editorial-ui #risk-lab-root .fm-risk-goal-strip > div:nth-child(2) {
  padding-right: 22px;
  border-right: 1px solid var(--line-strong);
}

body.editorial-ui #risk-lab-root .fm-risk-goal-strip b {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.editorial-ui #risk-lab-root .fm-risk-goal-strip strong {
  display: block;
  margin-top: 7px;
  color: var(--teal);
  font-family: var(--font-editorial);
  font-size: 47px;
  font-weight: 400;
  line-height: 1;
}

body.editorial-ui #risk-lab-root .fm-risk-goal-strip strong small {
  font-size: 20px;
}

body.editorial-ui #risk-lab-root .fm-risk-goal-strip p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

body.editorial-ui #risk-lab-root .fm-risk-research {
  position: relative;
  min-height: 189px;
  margin-top: 14px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(249, 244, 234, .54);
}

body.editorial-ui #risk-lab-root .fm-risk-research-icon {
  position: absolute;
  top: 48px;
  left: 18px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--plum);
}

body.editorial-ui #risk-lab-root .fm-risk-research-icon svg {
  width: 31px;
  height: 31px;
}

body.editorial-ui #risk-lab-root .fm-risk-research > h3 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--navy);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.editorial-ui #risk-lab-root .fm-risk-research > p {
  margin: 7px 0 12px 80px;
  font-family: var(--font-ui);
  font-size: 11px;
}

body.editorial-ui #risk-lab-root .fm-risk-research > div {
  margin-left: 80px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

body.editorial-ui #risk-lab-root .fm-risk-research article {
  position: relative;
  min-height: 92px;
  padding-left: 45px;
}

body.editorial-ui #risk-lab-root .fm-risk-research article i {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--rust);
  font-style: normal;
}

body.editorial-ui #risk-lab-root .fm-risk-research article i svg {
  width: 20px;
  height: 20px;
}

/* The two decision-led calculators need evidence, not decorative progress
   bars. These compact figures use the same print-chart grammar as Housing:
   quiet rules, strong semantic color, exact values on hover or focus. */
body.editorial-ui .module-decision-chart {
  margin: 0;
  padding: 16px 18px 12px;
  color: var(--navy);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body.editorial-ui .decision-chart-heading {
  min-height: 45px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body.editorial-ui .decision-chart-heading > div:first-child > span {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.editorial-ui .decision-chart-heading h3 {
  margin: 4px 0 0;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.08;
}

body.editorial-ui .decision-chart-legend {
  padding-top: 17px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 15px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 10px;
  white-space: nowrap;
}

body.editorial-ui .decision-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.editorial-ui .decision-chart-legend i {
  width: 19px;
  height: 3px;
  display: inline-block;
  background: var(--teal);
}

body.editorial-ui .decision-chart-legend .target i {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ochre) 0 6px, transparent 6px 10px);
}

body.editorial-ui .decision-chart-legend .range i {
  height: 6px;
  background: rgba(112, 71, 93, .34);
}

body.editorial-ui .decision-chart-legend .median i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
}

body.editorial-ui .decision-chart-host {
  width: 100%;
  height: 208px;
  overflow: visible;
}

body.editorial-ui .decision-chart-host svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

body.editorial-ui .module-decision-chart svg text {
  fill: var(--navy);
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 500;
}

body.editorial-ui .decision-chart-note {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.38;
}

body.editorial-ui .module-decision-chart > .chart-data-details {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

body.editorial-ui .module-decision-chart > .chart-data-details summary {
  padding: 9px 0 1px;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.editorial-ui .safety-grid line,
body.editorial-ui .debt-grid line {
  stroke: rgba(11, 48, 79, .18);
  stroke-width: 1;
}

body.editorial-ui .safety-reserve-area {
  fill: url(#safety-reserve-area);
}

body.editorial-ui .safety-reserve-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.editorial-ui .safety-target-line {
  stroke: var(--ochre);
  stroke-width: 3;
  stroke-dasharray: 11 8;
}

body.editorial-ui .safety-end-point {
  fill: var(--teal);
  stroke: var(--paper-raised);
  stroke-width: 5;
}

body.editorial-ui :is(.safety-chart-hover-zone, .debt-chart-hover-zone) {
  cursor: help;
  outline: none;
}

body.editorial-ui .safety-hover-line,
body.editorial-ui .safety-hover-point {
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

body.editorial-ui .safety-hover-line {
  stroke: rgba(11, 48, 79, .52);
  stroke-width: 2;
}

body.editorial-ui .safety-hover-point {
  fill: var(--rust);
  stroke: var(--paper-raised);
  stroke-width: 5;
}

body.editorial-ui .safety-chart-hover-zone:hover :is(.safety-hover-line, .safety-hover-point),
body.editorial-ui .safety-chart-hover-zone:focus :is(.safety-hover-line, .safety-hover-point) {
  opacity: 1;
}

body.editorial-ui .debt-hover-field {
  fill: transparent;
  stroke: transparent;
  transition: fill .12s ease, stroke .12s ease;
}

body.editorial-ui .debt-chart-hover-zone:hover .debt-hover-field,
body.editorial-ui .debt-chart-hover-zone:focus .debt-hover-field {
  fill: rgba(112, 71, 93, .045);
  stroke: rgba(112, 71, 93, .2);
}

body.editorial-ui .debt-range-line,
body.editorial-ui .debt-range-cap {
  stroke: var(--plum);
  stroke-width: 9;
}

body.editorial-ui .debt-range-cap {
  stroke-width: 3;
}

body.editorial-ui .debt-chart-hover-zone.invest :is(.debt-range-line, .debt-range-cap) {
  stroke: var(--teal);
}

body.editorial-ui .debt-median-point {
  fill: var(--rust);
  stroke: var(--paper-raised);
  stroke-width: 5;
  transition: r .12s ease;
}

body.editorial-ui .debt-chart-hover-zone:hover .debt-median-point,
body.editorial-ui .debt-chart-hover-zone:focus .debt-median-point {
  r: 13px;
}

body.editorial-ui .debt-row-label {
  font-family: var(--font-editorial) !important;
  font-size: 25px !important;
}

body.editorial-ui .debt-row-detail {
  fill: var(--ink-soft) !important;
  font-size: 16px !important;
}

body.editorial-ui .debt-median-label {
  fill: var(--rust) !important;
  font-family: var(--font-display) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.editorial-ui .debt-zero-line {
  stroke: var(--navy);
  stroke-width: 2;
  stroke-dasharray: 5 6;
  opacity: .5;
}

body.editorial-ui .module-shell[data-theme="safety"] .meter-block {
  margin: 14px 18px 16px;
}

body.editorial-ui .module-shell[data-theme="safety"] .meter-labels {
  color: var(--ink-soft);
  font-size: 10px;
}

body.editorial-ui .module-shell[data-theme="safety"] .meter-track {
  height: 7px;
  border-radius: 0;
  background: rgba(11, 48, 79, .1);
}

body.editorial-ui .module-shell[data-theme="safety"] .meter-fill {
  border-radius: 0;
  background: var(--teal);
}

body.editorial-ui #risk-lab-root .fm-risk-research article:nth-child(2n) i {
  background: var(--ochre);
}

body.editorial-ui #risk-lab-root .fm-risk-research article:nth-child(3n) i {
  background: var(--teal);
}

body.editorial-ui #risk-lab-root .fm-risk-research article b,
body.editorial-ui #risk-lab-root .fm-risk-research article span {
  display: block;
  font-size: 10px;
  line-height: 1.3;
}

body.editorial-ui #risk-lab-root .fm-risk-research article span {
  margin-top: 4px;
}

body.editorial-ui #risk-lab-root .fm-risk-main:has(.fm-risk-scenario-layout) + .fm-risk-actions {
  display: none;
}

body.editorial-ui #risk-lab-root .fm-risk-actions {
  padding: 18px 7px;
  border-top: 1px solid var(--line);
}

body.editorial-ui #risk-lab-root .fm-risk-button {
  border-radius: 2px;
}

/* Supporting research belongs to the full editorial spread. Keeping it below
   both working columns makes the calculator read like the reference field
   guides instead of stacking unrelated dashboard cards under the result. */
body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"]) .module-output-column {
  display: contents;
}

body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"]) .module-output-column > .module-result-panel {
  grid-column: 2;
}

body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"]) .module-output-column > .module-learning {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--navy);
}

body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card {
  position: relative;
  min-height: 142px;
  padding: 18px 26px 18px 72px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card + .learning-card {
  border-left: 1px solid var(--line);
}

body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card::before {
  content: "i";
  position: absolute;
  top: 19px;
  left: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  border-radius: 50%;
  background: var(--plum);
  font-family: var(--font-editorial);
  font-size: 22px;
  font-style: italic;
}

body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card:nth-child(2)::before {
  content: "!";
  background: var(--ochre);
  font-style: normal;
}

body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card h3 {
  font-size: 19px;
  line-height: 1.08;
}

body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card p {
  font-size: 11px;
  line-height: 1.42;
}

/* Input-heavy decisions use the same evidence cards as a vertical editorial
   rail. The rail balances their taller assumption panels; pages whose two
   working columns already end together use the full-width band above. */
body.editorial-ui .module-shell:is([data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-output-column {
  display: grid;
}

body.editorial-ui .module-shell:is([data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-output-column > .module-learning {
  margin: 0;
  padding-top: 0;
  grid-template-columns: 1fr;
  border-top: 2px solid var(--navy);
}

body.editorial-ui .module-shell:is([data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card {
  min-height: 132px;
}

body.editorial-ui .module-shell:is([data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card + .learning-card {
  border-top: 1px solid var(--line);
  border-left: 0;
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-primary {
  min-height: 72px;
}

body.editorial-ui .module-shell[data-theme="events"] :is(.event-list-empty, .event-editor-empty) {
  padding-top: 11px;
  padding-bottom: 11px;
}

body.editorial-ui .module-shell[data-theme="events"] .module-workspace {
  grid-template-columns: 365px minmax(0, 1fr) !important;
}

body.editorial-ui .module-shell[data-theme="events"] .event-preset-copy em {
  max-width: 31ch;
  font-size: 10.5px;
}

@media (min-width: 900px) {
  body.editorial-ui .module-shell[data-theme="events"] .module-output-column {
    position: sticky;
    top: 18px;
    align-self: start;
  }
}

/* r29 — desktop calculator spreads
   The field-guide references close as a single composed page. Preserve the
   full calculator while replacing long stacked form rows with the same
   label/value table grammar used by Housing, and reserve long model controls
   for deliberate disclosures. */
@media (min-width: 900px) {
  body.editorial-ui:has(#module-view:not([hidden]) .module-shell:not([data-theme="investing"])) #module-view {
    padding-bottom: 0;
  }

  body.editorial-ui .module-shell:not([data-theme="investing"]):not([data-theme="home"]) .module-intro {
    height: 210px;
    min-height: 210px;
    padding-top: 31px;
    padding-bottom: 20px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .module-intro {
    height: 205px;
    min-height: 205px;
    padding-top: 29px;
  }

  body.editorial-ui .module-shell:not([data-theme="investing"]):not([data-theme="home"]) .module-header-actions {
    padding-top: 2px;
  }

  body.editorial-ui .module-shell:not([data-theme="investing"]):not([data-theme="home"]) .example-data-banner {
    min-height: 54px;
    margin: 0 0 14px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
  }

  body.editorial-ui .module-shell:not([data-theme="investing"]):not([data-theme="home"]) .example-data-banner > div {
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  body.editorial-ui .module-shell:not([data-theme="investing"]):not([data-theme="home"]) .example-data-banner :is(strong, p) {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .panel-heading {
    padding: 13px 16px 12px;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .panel-heading h2 {
    margin-top: 5px;
    margin-bottom: 4px;
    font-size: 25px;
    line-height: 1.04;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .panel-heading p {
    font-size: 11px;
    line-height: 1.38;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .form-section {
    padding: 10px 16px 11px;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .form-section-title {
    margin-bottom: 6px;
    font-size: 11px;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .form-section > .field-grid {
    gap: 0;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .form-section > .field-grid > .field {
    min-height: 50px;
    padding: 6px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 154px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(11, 48, 79, .14);
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .form-section > .field-grid > .field:last-child {
    border-bottom: 0;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .form-section > .field-grid > .field .field-label-row {
    min-width: 0;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    line-height: 1.22;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .form-section > .field-grid > .field .input-wrap {
    width: 154px;
    min-width: 0;
    justify-self: end;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .form-section > .field-grid > .field .input-wrap :is(input, select) {
    min-height: 36px;
    font-size: 14px;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .form-section .form-note {
    margin-top: 8px;
    padding: 8px 9px;
    font-size: 10px;
    line-height: 1.34;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-detail-callout {
    min-height: 74px;
    padding: 10px 16px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-detail-callout p {
    margin-top: 3px;
    font-size: 10px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-result-heading {
    min-height: 76px;
    padding-top: 10px;
    padding-bottom: 9px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-hero-result {
    min-height: 92px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-metrics > div {
    min-height: 78px;
    padding-top: 11px;
    padding-bottom: 9px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-metrics span {
    font-size: 11px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-metrics strong {
    font-size: 21px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-metrics small {
    max-width: 24ch;
    font-size: 9.5px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-visual-block {
    padding-top: 11px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-chart {
    min-height: 150px;
    height: 150px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .evolution-block {
    padding-bottom: 8px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-tradeoff {
    margin-top: 10px;
    padding: 10px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-allocation-disclosure {
    margin-top: 11px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .result-actions {
    padding-top: 11px;
    padding-bottom: 13px;
  }

  body.editorial-ui .module-shell[data-theme="debt"] .debt-model-assumptions > summary {
    min-height: 52px;
    padding: 13px 16px;
  }

  body.editorial-ui .module-shell[data-theme="debt"] .module-output-column {
    display: contents;
  }

  body.editorial-ui .module-shell[data-theme="debt"] .module-output-column > .module-result-panel {
    grid-column: 2;
  }

  body.editorial-ui .module-shell[data-theme="debt"] .module-output-column > .module-learning {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding-top: 16px;
    border-top: 2px solid var(--navy);
  }

  body.editorial-ui .module-shell[data-theme="debt"] .debt-assumption-body {
    padding: 0;
  }

  body.editorial-ui .module-shell[data-theme="debt"] .debt-assumption-section {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
  }

  body.editorial-ui .module-shell[data-theme="debt"] .debt-assumption-section .field-grid {
    gap: 8px;
  }

  body.editorial-ui .module-shell[data-theme="debt"] .debt-assumption-section .form-check {
    margin-top: 10px;
  }

  body.editorial-ui .module-shell[data-theme="goal"] .choice-card-row {
    gap: 6px;
  }

  body.editorial-ui .module-shell[data-theme="goal"] .choice-button.has-mix {
    min-height: 105px;
    padding: 8px 5px;
  }

  body.editorial-ui .module-shell[data-theme="goal"] .dollar-mode {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"]) .module-learning .learning-card {
    min-height: 124px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  body.editorial-ui .module-shell[data-theme="safety"] .decision-chart-host {
    height: 184px;
  }

  body.editorial-ui .module-shell[data-theme="safety"] .module-decision-chart {
    padding-top: 14px;
    padding-bottom: 10px;
  }

  body.editorial-ui .module-shell:is([data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-output-column > .module-learning {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  body.editorial-ui .module-shell:is([data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card {
    min-height: 154px;
    padding: 16px 16px 15px 54px;
    border-top: 0;
  }

  body.editorial-ui .module-shell:is([data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card + .learning-card {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  body.editorial-ui .module-shell:is([data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card::before {
    top: 16px;
    left: 12px;
    width: 31px;
    height: 31px;
    font-size: 18px;
  }

  body.editorial-ui .module-shell:is([data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card h3 {
    font-size: 16px;
    line-height: 1.08;
  }

  body.editorial-ui .module-shell:is([data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card p {
    font-size: 10px;
    line-height: 1.36;
  }

  body.editorial-ui .module-shell[data-theme="events"] .module-result-panel:has(.event-empty-result) {
    min-height: 800px;
  }

  body.editorial-ui .event-empty-result {
    min-height: 798px;
    grid-template-rows: auto auto 128px auto auto;
  }

  body.editorial-ui .event-empty-heading {
    min-height: 198px;
    padding: 23px 30px;
  }

  body.editorial-ui .event-empty-steps li {
    min-height: 74px;
  }

  body.editorial-ui .event-empty-art {
    height: 128px;
    margin: 0 30px;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }

  body.editorial-ui .event-empty-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 69%;
    filter: saturate(.72) contrast(1.08) sepia(.12);
  }

  body.editorial-ui .event-empty-action {
    margin-top: 16px;
    margin-bottom: 12px;
  }

  body.editorial-ui .event-empty-note {
    padding-top: 10px;
    padding-bottom: 12px;
  }

  body.editorial-ui .module-shell[data-theme="events"] .panel-heading {
    padding-top: 13px;
    padding-bottom: 12px;
  }

  body.editorial-ui .module-shell[data-theme="events"] .panel-heading h2 {
    margin-top: 5px;
    font-size: 25px;
  }

  body.editorial-ui .module-shell[data-theme="events"] .panel-heading p {
    font-size: 11px;
  }

  body.editorial-ui .module-shell[data-theme="events"] .event-library {
    margin-top: 10px;
    padding-top: 12px;
  }

  body.editorial-ui .module-shell[data-theme="events"] .event-preset-primary {
    min-height: 66px;
  }

  body.editorial-ui .module-shell[data-theme="events"] :is(.event-list-empty, .event-editor-empty) {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  body.editorial-ui .module-shell[data-theme="home"] .module-intro {
    height: 270px;
    min-height: 270px;
    padding-top: 44px;
    padding-bottom: 18px;
  }

  body.editorial-ui .module-shell[data-theme="home"] .example-data-banner {
    margin-top: 12px;
    margin-bottom: 22px;
  }

  body.editorial-ui .module-shell[data-theme="home"] .home-evidence-panel {
    min-height: 158px;
  }
}

/* r30 — perceptual alignment pass.
   The supplied boards use a brighter uncoated stock, unruled grain, generous
   editorial type, and page-specific pictograms. These adjustments target
   those perceptual cues without changing the simulator's information model. */
body.editorial-ui,
body.research-page {
  --paper: #f6ede7;
  --paper-raised: #fbf7ee;
}

@media (min-width: 900px) {
  /* Investing: match the board's vertical rhythm instead of letting small
     generic form gaps accumulate into a visibly longer assumptions column. */
  body.editorial-ui .module-shell[data-theme="investing"] .module-intro {
    padding-top: 42px;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .module-intro .module-tagline {
    margin-top: 17px;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .investing-plan-fields {
    gap: 8px;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .investing-plan-fields > .field-grid {
    gap: 8px;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .investing-plan-fields .field {
    gap: 2px;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .investing-plan-fields .field-label-row {
    min-height: 15px;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .investing-plan-fields .segmented {
    height: 36px;
    min-height: 36px;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .investing-plan-fields .segmented button {
    height: 35px;
    min-height: 35px;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .choice-button.has-mix {
    height: 112px;
    min-height: 112px;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .input-plan-actions {
    padding-top: 31px;
    gap: 16px;
  }

  body.editorial-ui .investment-privacy-note {
    min-height: 31px;
    margin: 12px 2px 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-soft);
    font-family: var(--font-editorial);
    font-size: 10px;
    font-style: italic;
    line-height: 1.25;
  }

  body.editorial-ui .investment-privacy-note svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    stroke-width: 1.4;
  }

  /* My Plan: align the opening spread and use the concept's protection
     metaphor for Emergency savings rather than the landing-page life ring. */
  body.editorial-ui #plan-view .combined-heading {
    padding-left: 13px;
    grid-template-columns: 1.06fr .94fr;
    gap: 34px;
  }

  body.editorial-ui #plan-view .combined-heading h1 {
    font-size: 64px;
    letter-spacing: -.045em;
  }

  /* Risk scenarios: restore the larger workbook reading scale seen in the
     reference while preserving the exact two-column and vertical geometry. */
  body.editorial-ui #risk-lab-root .fm-risk-deck {
    max-width: 550px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-education {
    max-width: 500px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-compass {
    transform: translateX(-25px);
  }

  body.editorial-ui #risk-lab-root .fm-risk-chapters i {
    background: var(--paper);
  }

  body.editorial-ui #risk-lab-root .fm-risk-main h3 {
    font-style: normal;
  }

  body.editorial-ui #risk-lab-root .fm-risk-facts > p {
    font-size: 13px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-facts li {
    grid-template-columns: 62px minmax(0, 1fr) 92px;
    gap: 10px;
    font-size: 13px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-facts li i {
    width: 55px;
    height: 55px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-facts :is(li i, .fm-risk-facts-note b) svg {
    width: 27px;
    height: 27px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-facts-note {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-facts-note > b {
    width: 48px;
    height: 48px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-facts-note p {
    font-size: 13px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-research > h3 {
    width: 100%;
    max-width: none;
    white-space: nowrap;
  }

  body.editorial-ui #risk-lab-root .fm-risk-research > p {
    font-size: 12px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-research article {
    padding-left: 48px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-research article i {
    width: 40px;
    height: 40px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-research article i svg {
    width: 22px;
    height: 22px;
  }

  body.editorial-ui #risk-lab-root .fm-risk-research article b,
  body.editorial-ui #risk-lab-root .fm-risk-research article span {
    font-size: 11px;
    line-height: 1.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.editorial-ui * {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* r31 — measured desktop corrections.
   These are deliberately narrow fixes from the 1024 × 1536 comparison pass:
   exact page endings, the reference's wider Investing masthead, and complete
   housing-axis labels without moving the chart geometry. */
@media (min-width: 900px) {
  body.editorial-ui:has(#modules-view:not([hidden])) .site-footer {
    padding-bottom: 7px;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .module-intro h1 {
    font-family: Georgia, Cambria, "Times New Roman", serif;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .module-intro .module-deck {
    max-width: 410px;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .result-heading p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .result-heading .result-help {
    width: 15px;
    height: 15px;
    min-height: 15px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 15px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: var(--font-editorial);
    font-size: 10px;
    line-height: 1;
    cursor: help;
  }

  body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) .site-footer {
    padding-bottom: 3px;
  }

  body.editorial-ui .module-shell[data-theme="home"] .home-decision-chart .home-line-chart {
    overflow: visible;
  }

  body.editorial-ui .module-shell[data-theme="home"] .module-intro .module-tagline {
    max-width: 360px;
  }

  body.editorial-ui .module-shell[data-theme="home"] .module-large-icon svg {
    overflow: visible;
  }
}

/* r32 — optical Housing masthead calibration.
   The supplied 1024px board gives the rust title a roughly 459 × 108px ink
   silhouette. Increasing its vertical scale while narrowing the condensed
   face preserves the line length and places the tagline on the same baseline.
   The hero drawing is widened and lowered to the board's measured bounds. */
@media (min-width: 900px) {
  body.editorial-ui .module-shell[data-theme="home"] .module-intro h1 {
    width: 155%;
    font-size: 152px;
    transform: translateX(-4px) scaleX(.647);
  }

  body.editorial-ui .module-shell[data-theme="home"] .module-intro .module-tagline {
    margin-top: 24px;
  }

  body.editorial-ui .module-shell[data-theme="home"] .module-large-icon svg {
    width: 228px;
    height: 158px;
    transform: translate(-3px, 5px);
  }
}

/* r33 — preserve the supplied editorial page proportions on wide desktops.
   The concept boards use a 924–940px live area. Stretching that plate to
   1350px turns tall decision cards into wide SaaS cards and inflates charts.
   Wider monitors should reveal more paper, not change the composition. */
@media (min-width: 900px) {
  body.editorial-ui:has(#modules-view:not([hidden])) .app-shell {
    width: min(924px, calc(100vw - 100px));
    margin-right: auto;
    margin-left: auto;
  }

  body.editorial-ui:has(#module-view:not([hidden])) .app-shell,
  body.editorial-ui:has(#plan-view:not([hidden])) .app-shell,
  body.editorial-ui:has(#risk-view:not([hidden])) .app-shell {
    width: min(940px, calc(100vw - 84px));
    margin-right: auto;
    margin-left: auto;
  }

  body.editorial-ui .editorial-landscape,
  body.editorial-ui .site-footer,
  body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) .site-footer {
    margin-left: calc(50% - 50vw);
  }

  body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) .site-footer {
    margin-top: 34px;
  }
}

/* The 1024 × 1536 reference board uses the full viewport as its page frame.
   Restore the tighter footer pull-up only on similarly tall desktop canvases;
   shorter desktop windows keep the safe positive separation above. */
@media (min-width: 900px) and (min-height: 1400px) {
  body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) .site-footer {
    margin-top: -43px;
  }
}

/* r34 — My Plan follows the supplied editorial planning-board concept.
   This is a separate page archetype: issue masthead, numbered decision path,
   quick-fact rail, result ledger, shared timeline, chart, and learning close. */
@media (min-width: 900px) {
  body.editorial-ui:has(#plan-view:not([hidden])) .app-shell {
    width: min(1024px, 100vw);
    min-height: 1536px;
    margin-right: auto;
    margin-left: auto;
  }

  body.editorial-ui:has(#plan-view:not([hidden])) .app-shell > .site-header {
    display: none;
  }

  body.editorial-ui #plan-view {
    position: relative;
    min-height: 1536px;
    margin: 0;
    padding: 0 34px;
    overflow: hidden;
    color: var(--navy);
  }

  body.editorial-ui #plan-view .plan-magazine-header {
    height: 54px;
    margin: 0 -34px;
    padding: 0 33px;
    display: grid;
    grid-template-columns: 244px 1px minmax(0, 1fr) 141px 22px;
    align-items: center;
    gap: 0;
    color: #fbf4e7;
    background: #12324b;
  }

  body.editorial-ui #plan-view .plan-magazine-header > p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  body.editorial-ui #plan-view .plan-magazine-header > i {
    width: 1px;
    height: 22px;
    background: rgba(251, 244, 231, .45);
  }

  body.editorial-ui #plan-view .plan-magazine-header nav {
    min-width: 0;
    padding-left: 29px;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 28px;
  }

  body.editorial-ui #plan-view .plan-magazine-header nav :is(a, button) {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    color: inherit;
    border: 0;
    background: transparent;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  body.editorial-ui #plan-view .plan-magazine-header nav :is(a, button):hover,
  body.editorial-ui #plan-view .plan-magazine-header nav :is(a, button):focus-visible {
    color: #fff;
  }

  body.editorial-ui #plan-view .plan-magazine-header nav [aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 2px;
    background: #fbf4e7;
  }

  body.editorial-ui #plan-view .plan-progress {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-ui);
    font-size: 12px;
  }

  body.editorial-ui #plan-view .plan-progress > i {
    width: 20px;
    height: 20px;
    padding: 3px;
    display: block;
    border-radius: 50%;
    background: conic-gradient(#fbf4e7 var(--plan-progress, 0deg), rgba(251, 244, 231, .24) 0);
    -webkit-mask: radial-gradient(circle, transparent 45%, #000 47%);
    mask: radial-gradient(circle, transparent 45%, #000 47%);
  }

  body.editorial-ui #plan-view .plan-progress strong {
    font-weight: 400;
  }

  body.editorial-ui #plan-view .plan-menu-mark {
    justify-self: end;
    width: 19px;
    display: grid;
    gap: 4px;
  }

  body.editorial-ui #plan-view .plan-menu-mark i {
    width: 100%;
    height: 1px;
    background: currentColor;
  }

  body.editorial-ui #plan-view .plan-issue-strip {
    height: 42px;
    padding: 0 2px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(11, 48, 79, .5);
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  body.editorial-ui #plan-view .plan-issue-strip strong {
    justify-self: center;
    font-weight: 400;
  }

  body.editorial-ui #plan-view .plan-issue-strip span:last-child {
    justify-self: end;
  }

  body.editorial-ui #plan-view .combined-heading {
    height: 190px;
    min-height: 190px;
    margin: 0;
    padding: 21px 17px 0;
    grid-template-columns: minmax(0, 1fr) 226px;
    gap: 45px;
  }

  body.editorial-ui #plan-view .combined-heading > div:first-child {
    transform: translateY(-7px);
  }

  body.editorial-ui #plan-view .combined-heading h1 {
    width: 630px;
    max-width: none;
    color: var(--navy);
    font-family: var(--font-editorial);
    font-size: 63px;
    font-weight: 400;
    letter-spacing: -.015em;
    line-height: .95;
  }

  body.editorial-ui #plan-view .plan-deck {
    margin: 15px 0 0;
    font-family: var(--font-editorial);
    font-size: 17px;
    line-height: 1.2;
  }

  body.editorial-ui #plan-view .plan-heading-note {
    max-width: none;
    padding-top: 9px;
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 13px;
    color: var(--navy);
    font-family: var(--font-editorial);
    transform: translateX(10px);
  }

  body.editorial-ui #plan-view .plan-heading-note .plan-compass-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--rust);
    border: 1px solid color-mix(in srgb, var(--rust) 62%, transparent);
    border-radius: 50%;
    font-size: 25px;
  }

  body.editorial-ui #plan-view .plan-heading-note strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.05;
  }

  body.editorial-ui #plan-view .plan-heading-note p {
    margin-top: 11px;
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.43;
  }

  body.editorial-ui #plan-view .money-map {
    min-height: 340px;
    height: 340px;
    margin-bottom: 0;
    padding: 0;
    display: block;
    border: 0;
  }

  body.editorial-ui #plan-view .plan-path {
    height: 215px;
    padding: 20px 18px 26px;
    display: grid;
    grid-template-columns: repeat(7, 106px);
    justify-content: space-between;
    align-items: start;
    border-bottom: 1px solid rgba(11, 48, 79, .48);
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node {
    position: relative;
    width: 106px;
    min-height: 168px;
    height: 168px;
    padding: 31px 8px 39px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    overflow: visible;
    color: #6d695f;
    border: 1px dashed rgba(52, 51, 48, .52);
    border-radius: 9px;
    background: rgba(248, 242, 232, .24);
    margin-top: 0;
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node::before {
    display: none;
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node::after {
    content: "";
    position: absolute;
    top: 57px;
    right: -24px;
    bottom: auto;
    left: auto;
    width: 22px;
    height: 1px;
    display: block;
    border: 0;
    background: repeating-linear-gradient(90deg, rgba(11, 48, 79, .5) 0 5px, transparent 5px 8px);
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node:last-child::after {
    display: none;
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node.is-ready {
    color: var(--navy);
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node.is-connected {
    color: var(--navy);
    border-style: solid;
    border-color: var(--map-node-accent);
    background: color-mix(in srgb, var(--map-node-accent) 4%, transparent);
  }

  body.editorial-ui #plan-view .plan-path-number {
    position: absolute;
    z-index: 3;
    top: -18px;
    left: 50%;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    transform: translateX(-50%);
    color: var(--navy);
    border: 1px solid rgba(52, 51, 48, .62);
    border-radius: 50%;
    background: var(--paper);
    font-family: var(--font-editorial);
    font-size: 17px;
  }

  body.editorial-ui #plan-view .is-connected .plan-path-number {
    border-color: var(--map-node-accent);
  }

  body.editorial-ui #plan-view .plan-path-state {
    position: absolute;
    z-index: 4;
    top: 20px;
    right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
  }

  body.editorial-ui #plan-view .plan-path-state input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  body.editorial-ui #plan-view .plan-path-state > span {
    width: 16px;
    height: 16px;
    padding: 2px;
    display: grid;
    place-items: center;
    color: var(--paper-raised);
    border: 1px solid currentColor;
    border-radius: 50%;
  }

  body.editorial-ui #plan-view .plan-path-state > span:empty {
    color: #716e66;
    background: transparent;
  }

  body.editorial-ui #plan-view .is-connected .plan-path-state > span {
    color: var(--paper-raised);
    border-color: var(--map-node-accent);
    background: var(--map-node-accent);
  }

  body.editorial-ui #plan-view .plan-path-state svg {
    width: 11px;
    height: 11px;
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node .money-map-node-icon {
    position: static;
    z-index: 1;
    width: 47px;
    height: 47px;
    padding: 0;
    color: #747168;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node.is-connected .money-map-node-icon {
    color: var(--map-node-accent);
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node .money-map-node-icon svg {
    width: 42px;
    height: 42px;
    stroke-width: 1.3;
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node .money-map-node-copy {
    position: static;
    min-width: 0;
    width: 100%;
    padding: 0;
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node .money-map-node-copy strong {
    min-height: 39px;
    display: grid;
    place-items: center;
    color: inherit;
    font-family: var(--font-editorial);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.04;
    text-align: center;
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node .money-map-edit {
    position: absolute;
    z-index: 2;
    right: 17px;
    bottom: 11px;
    left: 17px;
    width: auto;
    height: 28px;
    min-height: 0;
    padding: 0 6px;
    justify-content: center;
    color: inherit;
    border: 1px solid currentColor;
    border-radius: 3px;
    background: rgba(248, 242, 232, .74);
    font-family: var(--font-editorial);
    font-size: 12px;
  }

  body.editorial-ui #plan-view .is-connected .money-map-edit {
    color: var(--map-node-accent);
  }

  body.editorial-ui #plan-view .plan-quick-band {
    position: relative;
    height: 125px;
    padding: 23px 18px 11px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    border-bottom: 1px solid rgba(11, 48, 79, .52);
  }

  body.editorial-ui #plan-view .plan-quick-kicker {
    position: absolute;
    top: 13px;
    left: 18px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  body.editorial-ui #plan-view .plan-quick-item {
    min-width: 0;
    min-height: 68px;
    padding: 0 12px;
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-left: 1px solid rgba(11, 48, 79, .16);
  }

  body.editorial-ui #plan-view .plan-quick-kicker + .plan-quick-item {
    padding-left: 4px;
    border-left: 0;
  }

  body.editorial-ui #plan-view .plan-quick-icon {
    width: 55px;
    height: 55px;
    padding: 14px;
    color: var(--paper-raised);
    border-radius: 50%;
    background: var(--teal);
  }

  body.editorial-ui #plan-view .plan-quick-icon.is-rust {
    background: var(--rust);
  }

  body.editorial-ui #plan-view .plan-quick-icon.is-gold {
    background: #b77d27;
  }

  body.editorial-ui #plan-view .plan-quick-icon svg {
    width: 100%;
    height: 100%;
  }

  body.editorial-ui #plan-view .plan-quick-item :is(small, strong, em) {
    display: block;
  }

  body.editorial-ui #plan-view .plan-quick-item small {
    font-family: var(--font-editorial);
    font-size: 11px;
  }

  body.editorial-ui #plan-view .plan-quick-item strong {
    margin-top: 1px;
    overflow: hidden;
    font-family: var(--font-editorial);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.editorial-ui #plan-view .plan-quick-item em {
    margin-top: 4px;
    font-family: var(--font-editorial);
    font-size: 10px;
    font-style: normal;
    line-height: 1.15;
  }

  body.editorial-ui #plan-view .plan-quick-facts {
    position: absolute;
    z-index: 30;
    inset: auto 17px 18px auto;
    height: auto;
    width: auto;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body.editorial-ui #plan-view .plan-quick-facts summary {
    min-height: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-editorial);
    font-size: 10px;
    text-decoration: underline;
  }

  body.editorial-ui #plan-view .plan-quick-facts summary svg {
    width: 13px;
    height: 13px;
  }

  body.editorial-ui #plan-view .plan-quick-facts[open] {
    right: 0;
    bottom: 0;
    width: 720px;
    padding: 14px;
    border: 1px solid var(--navy);
    background: var(--paper-raised);
    box-shadow: 0 13px 34px rgba(11, 48, 79, .17);
  }

  body.editorial-ui #plan-view .plan-quick-facts[open] summary {
    width: auto;
    margin: 0 0 7px auto;
    border: 0;
  }

  body.editorial-ui #plan-view .plan-quick-facts > p {
    margin: 0;
    padding: 0 0 8px;
  }

  body.editorial-ui #plan-view .plan-quick-facts .plan-fact-grid {
    padding: 0;
  }

  body.editorial-ui #plan-view .plan-quick-facts .plan-fact-actions {
    padding: 10px 0 0;
  }

  body.editorial-ui #plan-view .plan-results {
    min-height: 910px;
    margin: 0;
    padding: 0 16px;
  }

  body.editorial-ui #plan-view .plan-result-overview {
    height: 180px;
    padding: 16px 0;
    display: grid;
    grid-template-columns: 186px minmax(0, 1fr);
    gap: 25px;
    border-bottom: 1px solid rgba(11, 48, 79, .28);
  }

  body.editorial-ui #plan-view .plan-value-mode {
    height: 148px;
    padding: 12px 11px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(11, 48, 79, .28);
    font-family: var(--font-editorial);
    text-align: center;
  }

  body.editorial-ui #plan-view .plan-value-mode > span {
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  body.editorial-ui #plan-view .plan-value-mode > strong {
    margin: 7px 0 10px;
    color: var(--teal);
    font-family: var(--font-editorial);
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
  }

  body.editorial-ui #plan-view .plan-value-mode > strong small {
    margin-left: 3px;
    font-size: 12px;
  }

  body.editorial-ui #plan-view .plan-mode-toggle {
    width: 100%;
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.editorial-ui #plan-view .plan-mode-toggle button {
    min-height: 40px;
    padding: 4px 6px;
    color: var(--navy);
    border: 1px solid rgba(11, 48, 79, .45);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-display);
    font-size: 8px;
    line-height: 1.12;
    text-transform: uppercase;
  }

  body.editorial-ui #plan-view .plan-mode-toggle button + button {
    border-left: 0;
  }

  body.editorial-ui #plan-view .plan-mode-toggle button[aria-pressed="true"] {
    color: var(--paper-raised);
    background: var(--teal);
  }

  body.editorial-ui #plan-view .plan-outcomes {
    min-width: 0;
    padding-top: 5px;
  }

  body.editorial-ui #plan-view .plan-results-kicker {
    display: block;
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  body.editorial-ui #plan-view .plan-outcome-grid {
    display: grid;
    grid-template-columns: 1fr 1.14fr .96fr 1fr .92fr;
  }

  body.editorial-ui #plan-view .plan-outcome-grid > div {
    min-width: 0;
    min-height: 70px;
    padding: 0 13px;
    border-left: 1px solid rgba(11, 48, 79, .17);
  }

  body.editorial-ui #plan-view .plan-outcome-grid > div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  body.editorial-ui #plan-view .plan-outcome-grid :is(small, strong, em) {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.editorial-ui #plan-view .plan-outcome-grid small {
    min-height: 29px;
    font-family: var(--font-editorial);
    font-size: 11px;
    line-height: 1.2;
  }

  body.editorial-ui #plan-view .plan-outcome-grid strong {
    font-family: var(--font-editorial);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.05;
    white-space: nowrap;
  }

  body.editorial-ui #plan-view .plan-outcome-grid em {
    margin-top: 4px;
    font-family: var(--font-editorial);
    font-size: 10px;
    font-style: normal;
  }

  body.editorial-ui #plan-view .plan-shared-timeline {
    height: 137px;
    padding: 15px 0 0;
    display: grid;
    grid-template-columns: 111px minmax(0, 1fr);
    border-bottom: 1px solid rgba(11, 48, 79, .24);
  }

  body.editorial-ui #plan-view .plan-section-kicker {
    padding-top: 4px;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  body.editorial-ui #plan-view .plan-timeline-track {
    position: relative;
    min-width: 0;
    height: 120px;
  }

  body.editorial-ui #plan-view .plan-timeline-years {
    position: absolute;
    inset: 0 0 auto;
    height: 21px;
  }

  body.editorial-ui #plan-view .plan-timeline-years span {
    position: absolute;
    left: var(--timeline-position);
    transform: translateX(-50%);
    font-family: var(--font-editorial);
    font-size: 11px;
  }

  body.editorial-ui #plan-view .plan-timeline-years span:first-child {
    transform: none;
  }

  body.editorial-ui #plan-view .plan-timeline-years span:last-child {
    transform: translateX(-100%);
  }

  body.editorial-ui #plan-view .plan-timeline-axis {
    position: absolute;
    top: 25px;
    right: 0;
    left: 0;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--navy) 0 1px, transparent 1px 31px);
    border-top: 1px solid rgba(11, 48, 79, .68);
  }

  body.editorial-ui #plan-view .plan-timeline-event {
    position: absolute;
    top: 25px;
    left: var(--timeline-position);
    width: 102px;
    min-height: 0;
    padding: 33px 0 0;
    transform: translateX(-50%);
    color: var(--navy);
    border: 0;
    background: transparent;
    font-family: var(--font-editorial);
    font-size: 11px;
    line-height: 1.05;
    text-align: center;
  }

  body.editorial-ui #plan-view .plan-timeline-event > i {
    position: absolute;
    top: -13px;
    left: 50%;
    width: 30px;
    height: 30px;
    padding: 7px;
    transform: translateX(-50%);
    color: var(--paper-raised);
    border-radius: 50%;
    background: var(--event-color);
  }

  body.editorial-ui #plan-view .plan-timeline-event svg {
    width: 100%;
    height: 100%;
  }

  body.editorial-ui #plan-view .plan-timeline-event small {
    display: block;
    margin-top: 2px;
  }

  body.editorial-ui #plan-view .plan-timeline-empty {
    position: absolute;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ink-muted);
    font-family: var(--font-editorial);
    font-size: 12px;
    font-style: italic;
  }

  body.editorial-ui #plan-view .plan-chart-block {
    height: 221px;
    padding: 0;
    display: grid;
    grid-template-columns: 162px minmax(0, 1fr);
    gap: 20px;
    border-bottom: 1px solid rgba(11, 48, 79, .34);
  }

  body.editorial-ui #plan-view .plan-chart-key {
    min-width: 0;
    height: 221px;
    padding: 0 15px;
    border: 1px solid rgba(11, 48, 79, .28);
    font-family: var(--font-editorial);
  }

  body.editorial-ui #plan-view .plan-chart-key > span {
    margin: 13px 0 17px;
    display: block;
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  body.editorial-ui #plan-view .plan-chart-key > span small {
    margin-top: 3px;
    display: block;
    font-size: 8px;
  }

  body.editorial-ui #plan-view .plan-chart-key ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
    list-style: none;
    font-size: 10px;
  }

  body.editorial-ui #plan-view .plan-chart-key li {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.editorial-ui #plan-view .plan-chart-key li i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7090a8;
  }

  body.editorial-ui #plan-view .plan-chart-key li i.is-high {
    background: #244d6e;
  }

  body.editorial-ui #plan-view .plan-chart-key li i.is-mid {
    background: #0b304f;
  }

  body.editorial-ui #plan-view .plan-chart-key > p {
    margin: 17px 0 0;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    font-size: 9px;
  }

  body.editorial-ui #plan-view .plan-chart-key > p svg {
    width: 15px;
    height: 15px;
  }

  body.editorial-ui #plan-view .plan-chart-key > button {
    width: 100%;
    min-height: 38px;
    margin-top: 14px;
    padding: 5px;
    color: var(--paper-raised);
    border: 1px solid var(--navy);
    background: var(--navy);
    font-family: var(--font-ui);
    font-size: 10px;
  }

  body.editorial-ui #plan-view .plan-chart-plot {
    position: relative;
    min-width: 0;
    height: 221px;
    padding-top: 8px;
  }

  body.editorial-ui #plan-view .plan-chart-plot .chart-host,
  body.editorial-ui #plan-view .plan-chart-plot .chart-host svg {
    width: 100%;
    height: 192px !important;
    min-height: 0;
  }

  body.editorial-ui #plan-view .plan-chart-plot .chart-host svg {
    display: block;
  }

  body.editorial-ui #plan-view .plan-chart-plot .interactive-fan-chart text {
    font-size: 18px;
  }

  body.editorial-ui #plan-view .plan-chart-plot .chart-data-details {
    display: none;
  }

  body.editorial-ui #plan-view .plan-chart-plot .journey-range-labels {
    position: absolute;
    top: 26px;
    right: 0;
    bottom: 32px;
    width: 72px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--font-editorial);
    font-size: 10px;
    font-weight: 700;
    text-align: right;
    pointer-events: none;
  }

  body.editorial-ui #plan-view .plan-empty-chart {
    position: relative;
    min-width: 0;
    height: 192px;
  }

  body.editorial-ui #plan-view .plan-empty-chart svg {
    width: 100%;
    height: 176px;
  }

  body.editorial-ui #plan-view .plan-empty-chart svg path:first-child {
    fill: none;
    stroke: rgba(11, 48, 79, .15);
    stroke-width: 1;
    stroke-dasharray: 2 4;
  }

  body.editorial-ui #plan-view .plan-empty-chart-line {
    fill: none;
    stroke: rgba(11, 48, 79, .32);
    stroke-width: 2;
    stroke-dasharray: 5 6;
  }

  body.editorial-ui #plan-view .plan-empty-chart p {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    margin: 0;
    color: var(--ink-muted);
    font-family: var(--font-editorial);
    font-size: 13px;
    font-style: italic;
    text-align: center;
  }

  body.editorial-ui #plan-view .plan-coach {
    position: relative;
    z-index: 2;
    height: 119px;
    margin-top: 15px;
    padding: 14px 19px;
    display: grid;
    grid-template-columns: 160px 300px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(11, 48, 79, .38);
    border-radius: 5px;
    background: rgba(248, 242, 232, .46);
  }

  body.editorial-ui #plan-view .plan-art-filter {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
  }

  body.editorial-ui #plan-view .plan-coach > img {
    width: 150px;
    height: 86px;
    object-fit: contain;
    transform: scale(1.35);
    mix-blend-mode: normal;
    filter: url("#plan-paper-knockout");
  }

  body.editorial-ui #plan-view .plan-coach h3 {
    margin: 0 0 6px;
    font-family: var(--font-editorial);
    font-size: 20px;
    font-weight: 400;
  }

  body.editorial-ui #plan-view .plan-coach p {
    max-width: 280px;
    margin: 0;
    font-family: var(--font-editorial);
    font-size: 11px;
    line-height: 1.42;
  }

  body.editorial-ui #plan-view .plan-coach ol {
    margin: 0;
    padding: 0 0 0 28px;
    display: grid;
    gap: 8px;
    border-left: 1px solid rgba(11, 48, 79, .18);
    list-style: none;
    font-family: var(--font-editorial);
    font-size: 11px;
  }

  body.editorial-ui #plan-view .plan-coach li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
  }

  body.editorial-ui #plan-view .plan-coach li b {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 1px solid var(--navy);
    border-radius: 50%;
    font-family: var(--font-editorial);
    font-size: 11px;
    font-weight: 400;
  }

  body.editorial-ui #plan-view .plan-next-steps {
    position: relative;
    z-index: 2;
    height: 126px;
    margin-top: 19px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  body.editorial-ui #plan-view .plan-next-card {
    min-width: 0;
    padding: 13px 24px 13px 120px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(11, 48, 79, .42);
    border-radius: 4px;
    background: rgba(248, 242, 232, .74);
  }

  body.editorial-ui #plan-view .plan-next-card > img {
    position: absolute;
    margin-left: -103px;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    filter: sepia(.32) saturate(.72) contrast(.95);
  }

  body.editorial-ui #plan-view .plan-next-card > div > span {
    color: var(--rust);
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  body.editorial-ui #plan-view .plan-next-card.is-learn > div > span,
  body.editorial-ui #plan-view .plan-next-card.is-learn h3 {
    color: var(--teal);
  }

  body.editorial-ui #plan-view .plan-next-card h3 {
    margin: 3px 0 4px;
    color: var(--plum);
    font-family: var(--font-editorial);
    font-size: 19px;
    font-weight: 400;
  }

  body.editorial-ui #plan-view .plan-next-card p {
    margin: 0 0 5px;
    font-family: var(--font-editorial);
    font-size: 10px;
  }

  body.editorial-ui #plan-view .plan-next-card :is(a, button) {
    min-height: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--navy);
    border: 0;
    background: transparent;
    font-family: var(--font-editorial);
    font-size: 10px;
    text-decoration: underline;
  }

  body.editorial-ui #plan-view .plan-next-card :is(a, button) svg {
    width: 12px;
    height: 12px;
  }

  body.editorial-ui #plan-view .plan-ocean-end {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 145px;
    overflow: hidden;
    pointer-events: none;
  }

  body.editorial-ui #plan-view .plan-ocean-end img {
    position: absolute;
    right: -22px;
    bottom: -170px;
    width: 900px;
    height: auto;
    mix-blend-mode: normal;
    filter: url("#plan-paper-knockout");
    opacity: 1;
  }

  body.editorial-ui #plan-view .plan-ocean-end > span {
    position: absolute;
    bottom: 29px;
    left: 23px;
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: .06em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  body.editorial-ui #plan-view .plan-ocean-end > b {
    position: absolute;
    right: 44px;
    bottom: 23px;
    font-family: var(--font-editorial);
    font-size: 18px;
    font-style: italic;
  }

  body.editorial-ui #plan-view .plan-loading {
    height: 911px;
    display: flex;
    align-items: flex-start;
    padding-top: 85px;
  }
}

/* r35.1 — post-render Housing calibration.  Kept last so the authoritative
   worksheet geometry wins over the older Housing archetype above. */
@media (min-width: 900px) {
  body.editorial-ui .module-shell.home-editorial-page .home-editorial-title-block h1 {
    width: 120%;
    transform: scaleX(.84);
    transform-origin: left center;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-workspace > .module-result-panel {
    padding: 0 17px 13px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-result-header {
    padding-right: 8px;
    padding-left: 8px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-metric-grid {
    row-gap: 18px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-metric {
    min-height: 138px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-metric:nth-child(-n + 3) {
    min-height: 157px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-chart-section {
    height: 326px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-cash-chart {
    height: 239px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-support {
    height: 56px;
  }
}

/* r35.2 — authoritative Housing typography, stock and illustration finish. */
@media (min-width: 900px) {
  body.editorial-ui:has(#module-view:not([hidden]) .home-editorial-page),
  body.editorial-ui:has(#module-view:not([hidden]) .home-editorial-page) .app-shell {
    --paper: #f6f1e6;
    --paper-raised: #faf6ec;
    background-color: #f6f1e6;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-title-block h1 {
    width: 117%;
    transform: scaleX(.86);
    text-shadow: .35px .2px 0 rgba(104, 48, 23, .2);
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-title-icon svg {
    filter: url("#plan-paper-knockout");
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-deck {
    max-width: 404px;
    margin-left: 8px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-field-section .field-label-row label {
    font-size: 11.5px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-field-section .input-wrap :is(input, select) {
    font-size: 13.5px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-metric h3 {
    font-size: 10.5px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-metric strong {
    font-size: 19px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-metric.is-single > strong {
    font-size: 19.5px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-metric.is-single > p,
  body.editorial-ui .module-shell.home-editorial-page .home-editorial-exclusions ul {
    font-size: 9px;
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-verdict {
    grid-template-columns: 176px minmax(0, 1fr);
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-verdict > img {
    width: 218px;
    object-position: 11% center;
    -webkit-mask-image: linear-gradient(90deg, #000 0 73%, rgba(0, 0, 0, .8) 84%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0 73%, rgba(0, 0, 0, .8) 84%, transparent 100%);
  }

  body.editorial-ui .module-shell.home-editorial-page .home-editorial-verdict > div {
    margin-left: -16px;
    padding-left: 25px;
    background: linear-gradient(90deg, rgba(246, 241, 230, .12), rgba(246, 241, 230, .88) 17%, rgba(246, 241, 230, .96) 34%);
  }
}

/* r35.3 — authoritative Investing plate and print-chart details. */
@media (min-width: 900px) {
  body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) {
    --paper: #f6f1e6;
    --paper-raised: #faf6ec;
    background-color: #f6f1e6;
  }

  body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"]) .app-shell {
    background-color: transparent;
  }

  body.editorial-ui .site-header:is([data-profile="investing"], [data-profile="housing"]) .nav-action[data-view="modules"]::after {
    background: transparent !important;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .chart-legend .contributions i {
    height: 0;
    border-top: 2px dotted var(--navy);
    border-radius: 0;
    background: transparent;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .fan-contributions {
    pointer-events: none;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .module-intro .module-deck,
  body.editorial-ui .module-shell[data-theme="investing"] .model-status,
  body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card {
    color: #26333b;
  }
}

/* r35.4 — paper stock and ink wear shared by the confirmed editorial suite. */
@media (min-width: 900px) {
  body.editorial-ui:has(#plan-view:not([hidden])) {
    --paper: #efe4d2;
    --paper-raised: #f7eedf;
    background-color: var(--paper);
  }

  body.editorial-ui:has(#risk-view:not([hidden])) {
    --paper: #f5ead9;
    --paper-raised: #faf2e5;
    background-color: var(--paper);
  }

  body.editorial-ui .quick-calculator-grid .module-card-icon,
  body.editorial-ui #risk-lab-root :is(.fm-risk-facts li i, .fm-risk-option-icon, .fm-risk-goal-icon, .fm-risk-research article i) {
    background-image: url("assets/texture/ink-wear.svg");
    background-blend-mode: soft-light;
    filter: saturate(.88) contrast(.98);
  }
}

/* r37 — desktop interaction and readability pass.
   Keep the confirmed editorial composition while making every visible control
   genuinely reachable. Microcopy is raised to a practical reading floor,
   help marks receive real hit areas, and disclosures grow the page instead of
   being clipped beneath a fixed-height plate. */
@media (min-width: 900px) {
  body.editorial-ui .site-header {
    position: relative;
    z-index: 50;
  }

  body.editorial-ui .nav-action {
    min-height: 40px;
  }

  body.editorial-ui .site-header[data-profile="housing"] .nav-action {
    font-size: 12.5px;
  }

  body.editorial-ui .site-header[data-profile="housing"] .site-name small,
  body.editorial-ui .site-header[data-profile="investing"] .nav-action {
    font-size: 12px;
  }

  body.editorial-ui details:not([open]) > :not(summary) {
    display: none !important;
  }

  body.editorial-ui .field-help,
  body.editorial-ui .result-help {
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    flex-basis: 20px !important;
    font-size: 11px !important;
    cursor: help;
  }

  body.editorial-ui .home-editorial-workspace,
  body.editorial-ui .home-editorial-workspace > :is(.input-panel, .module-result-panel) {
    height: auto;
    min-height: 1100px;
  }

  body.editorial-ui .home-editorial-workspace > .input-panel,
  body.editorial-ui .home-editorial-workspace > .module-result-panel {
    overflow: visible;
  }

  body.editorial-ui .home-editorial-input-header button {
    min-height: 34px;
    font-size: 12px;
  }

  body.editorial-ui .home-editorial-how p,
  body.editorial-ui .home-editorial-field-section .field-label-row label {
    font-size: 12.5px;
  }

  body.editorial-ui .home-editorial-field-section :is(.input-prefix, .input-suffix),
  body.editorial-ui .home-editorial-field-with-note > strong,
  body.editorial-ui .home-editorial-additional > summary b {
    font-size: 12px;
  }

  body.editorial-ui .home-editorial-budget-box > small,
  body.editorial-ui .home-editorial-additional > summary small,
  body.editorial-ui .home-editorial-metric :is(small, em),
  body.editorial-ui .home-editorial-metric.is-single > p,
  body.editorial-ui .home-editorial-chart-note,
  body.editorial-ui .home-editorial-exclusions li,
  body.editorial-ui .home-editorial-action-note,
  body.editorial-ui .home-editorial-support,
  body.editorial-ui .home-editorial-closing {
    font-size: 10.75px;
    line-height: 1.42;
  }

  body.editorial-ui .home-editorial-metric h3 {
    font-size: 11.5px;
  }

  body.editorial-ui .home-editorial-radio-row button {
    min-height: 34px;
    font-size: 13px;
  }

  body.editorial-ui .module-shell[data-theme="investing"] :is(.choice-copy, .range-row, .range-ends, .model-status) {
    font-size: 11.5px;
    line-height: 1.35;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card :is(p, small, a) {
    font-size: 11px;
    line-height: 1.38;
  }

  body.editorial-ui:has(#module-view:not([hidden]) .module-shell[data-theme="investing"] .assumptions[open]) .site-footer {
    margin-top: 34px;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .example-data-banner :is(strong, p),
  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .panel-heading p,
  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .form-note,
  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .module-learning .learning-card p,
  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .decision-chart-note {
    font-size: 12px;
    line-height: 1.42;
  }

  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .form-section-title,
  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .hero-result-label,
  body.editorial-ui .module-shell:is([data-theme="budget"], [data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .hero-result-sub {
    font-size: 12px;
  }

  body.editorial-ui .module-shell :is(.simulation-badge, .chart-legend, .chart-data-details > summary) {
    font-size: 11.5px;
  }

  body.editorial-ui .module-shell .chart-data-details > summary {
    min-height: 38px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] :is(.budget-detail-callout button, .budget-metrics small, .budget-tradeoff small) {
    font-size: 11.5px;
  }

  body.editorial-ui .module-shell[data-theme="events"] .event-preset-copy em {
    font-size: 11.5px;
    line-height: 1.35;
  }

  body.editorial-ui .module-shell[data-theme="events"] .reference-button {
    min-height: 34px;
    font-size: 12px;
  }

  body.editorial-ui #plan-view .money-map-open {
    min-width: 0;
    min-height: 0;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: inherit;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  body.editorial-ui #plan-view .money-map-open:focus-visible {
    outline: 2px solid var(--map-node-accent, var(--navy));
    outline-offset: 3px;
  }

  body.editorial-ui #plan-view .plan-path-state {
    top: 16px;
    right: 5px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
  }

  body.editorial-ui #plan-view .plan-path-state > span {
    width: 18px;
    height: 18px;
  }

  body.editorial-ui #plan-view .money-map-node.plan-path-node .money-map-edit {
    right: 15px;
    bottom: 8px;
    left: 15px;
    height: 34px;
    font-size: 13px;
  }

  body.editorial-ui #plan-view .plan-issue-strip :is(span, strong),
  body.editorial-ui #plan-view .plan-quick-kicker,
  body.editorial-ui #plan-view .plan-quick-item small,
  body.editorial-ui #plan-view .plan-quick-item em,
  body.editorial-ui #plan-view .plan-quick-facts > summary {
    font-size: 11.5px;
  }

  body.editorial-ui #plan-view .plan-quick-facts > summary {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  body.research-page :is(.research-brand small, .research-topbar-label, .research-eyebrow, .research-nav-label, .number-kind, .number-period, .source-authors, .research-back) {
    font-size: 12px;
    line-height: 1.35;
  }
}

/* r37.1 — one readable desktop type floor across the full route set.
   These selectors lift explanatory copy and controls without inflating the
   display headlines or changing the confirmed page archetypes. */
@media (min-width: 900px) {
  body.editorial-ui .site-header[data-profile="investing"] .nav-action,
  body.editorial-ui .site-header[data-profile="housing"] .nav-action {
    font-size: 12.5px;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .form-section .form-note,
  body.editorial-ui .module-shell[data-theme="budget"] .budget-detail-callout p,
  body.editorial-ui .module-shell[data-theme="budget"] .budget-result-heading p,
  body.editorial-ui .module-shell[data-theme="budget"] .budget-section-title small,
  body.editorial-ui .module-shell[data-theme="budget"] .budget-tradeoff small {
    font-size: 12px !important;
    line-height: 1.42;
  }

  body.editorial-ui .module-shell[data-theme="budget"] .budget-hero-result > span,
  body.editorial-ui .module-shell[data-theme="budget"] .cashflow-legend :is(span, strong),
  body.editorial-ui .module-shell[data-theme="budget"] .budget-metrics :is(span, small),
  body.editorial-ui .module-shell[data-theme="budget"] .tradeoff-result :is(span, small) {
    font-size: 11.5px !important;
    line-height: 1.35;
  }

  body.editorial-ui .home-editorial-metric :is(small, em, p),
  body.editorial-ui .home-editorial-chart-head :is(p, span),
  body.editorial-ui .home-editorial-chart-note,
  body.editorial-ui .home-editorial-action-note,
  body.editorial-ui .home-editorial-support :is(p, a),
  body.editorial-ui .home-editorial-exclusions li,
  body.editorial-ui .home-editorial-closing {
    font-size: 11.5px !important;
    line-height: 1.42;
  }

  body.editorial-ui .home-editorial-comparison-grid :is(.buy, .rent),
  body.editorial-ui .home-editorial-difference :is(small, p) {
    font-size: 10.5px !important;
  }

  body.editorial-ui .home-editorial-actions > p,
  body.editorial-ui .home-editorial-chart-head > div > p,
  body.editorial-ui .home-editorial-legend :is(.buy, .rent),
  body.editorial-ui .home-editorial-result-header > p {
    font-size: 10.5px !important;
    line-height: 1.35;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .investing-stat :is(span, small),
  body.editorial-ui .module-shell[data-theme="investing"] .investment-privacy,
  body.editorial-ui .module-shell[data-theme="investing"] .historical-context-card :is(p, small, a) {
    font-size: 11.5px !important;
    line-height: 1.4;
  }

  body.editorial-ui .module-shell[data-theme="investing"] .result-metric :is(span, small),
  body.editorial-ui .module-shell[data-theme="investing"] .investment-privacy-note {
    font-size: 11px !important;
    line-height: 1.35;
  }

  body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .example-data-banner :is(strong, p),
  body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .form-note,
  body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .result-panel-header p,
  body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"], [data-theme="events"]) .decision-chart-note {
    font-size: 12px !important;
    line-height: 1.42;
  }

  body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .result-callout > span,
  body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .donut-copy span,
  body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .chart-legend span {
    font-size: 10.5px !important;
  }

  body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .probability-ring-inner span,
  body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .insight-card > span,
  body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .decision-chart-legend span,
  body.editorial-ui .module-shell:is([data-theme="safety"], [data-theme="debt"], [data-theme="goal"]) .meter-labels span {
    font-size: 10.5px !important;
    line-height: 1.3;
  }

  body.editorial-ui .module-shell[data-theme="goal"] .choice-copy {
    font-size: 10.5px !important;
    line-height: 1.25;
  }

  body.editorial-ui .module-shell[data-theme="events"] :is(.reference-button, .event-preset-copy em, .event-preset-copy small, .event-empty-note, .event-result-note) {
    font-size: 11.5px !important;
    line-height: 1.35;
  }

  body.editorial-ui #plan-view .plan-mode-toggle button,
  body.editorial-ui #plan-view .plan-chart-key :is(span, small, button),
  body.editorial-ui #plan-view .plan-value-mode span {
    font-size: 11.5px !important;
    line-height: 1.2;
  }

  body.editorial-ui #plan-view .plan-section-kicker,
  body.editorial-ui #plan-view .plan-results-kicker,
  body.editorial-ui #plan-view .plan-outcome-grid small,
  body.editorial-ui #plan-view .plan-timeline-years span,
  body.editorial-ui #plan-view .plan-coach :is(p, li),
  body.editorial-ui #plan-view .plan-next-card :is(span, p, button, a) {
    font-size: 11.5px !important;
    line-height: 1.35;
  }

  body.editorial-ui #plan-view .plan-coach:focus {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
  }

  body.editorial-ui #risk-view .risk-step small,
  body.editorial-ui #risk-view .risk-research-item span {
    font-size: 12px !important;
    line-height: 1.35;
  }

  body.research-page :is(.research-brand small, .research-topbar-label, .research-eyebrow, .research-nav-label, .number-kind, .number-period, .source-authors, .research-back) {
    font-size: 12px !important;
    line-height: 1.35;
  }

  body.research-page .brand-copy small {
    font-size: 10.5px !important;
  }
}
