/* Nova detail page only. Shared shell and protected pages retain their styles. */
.nova-detail { --nova-copy: #484b45; --nova-ink: #154230; }
.nova-main { background: var(--bg); color: var(--ink); }
.nova-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(24px, 5vw, 48px); }
.nova-main [id] { scroll-margin-top: 100px; }
.nova-main h2 { font-size: clamp(1.85rem, 3.2vw, 2.8rem); line-height: 1.18; letter-spacing: -.025em; }
.nova-main h3, .nova-main h4 { line-height: 1.3; }
.nova-main p { margin: 0 0 1rem; }
.nova-main p:last-child { margin-bottom: 0; }
.nova-main a { text-underline-offset: .22em; }
.nova-main a:focus-visible, .nova-main summary:focus-visible { outline: 2px solid var(--nova-ink); outline-offset: 5px; }
.nova-main ::selection { color: #102c22; background: #d6e3d3; }
.nova-main .nova-label { color: var(--nova-ink); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.nova-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-size: .95rem; font-weight: 600; color: var(--nova-ink); text-decoration: underline; text-decoration-color: #9cac9e; }
.nova-link:hover { text-decoration-color: currentColor; }
.nova-hero { padding-block: clamp(40px, 6vw, 80px); }
.nova-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto 1fr; column-gap: clamp(32px, 4vw, 64px); align-items: start; }
.nova-hero-heading { grid-column: 1; grid-row: 1; }
.nova-title-lockup { display: flex; align-items: center; gap: clamp(.7rem, 1.35vw, 1.2rem); margin-bottom: 1.5rem; }
.nova-fund-mark { display: block; flex: 0 0 auto; width: clamp(62px, 5.8vw, 84px); height: auto; }
.nova-hero h1 { font-size: clamp(2.8rem, 5.3vw, 4.7rem); line-height: 1.06; color: var(--nova-ink); margin: 0; }
.nova-hero-media { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.nova-hero-media img { display: block; width: 100%; height: auto; }
.nova-hero-lead { grid-column: 1; grid-row: 2; }
.nova-hero-lead > p { font-size: 1.2rem; line-height: 1.65; max-width: 44ch; }
.nova-contents { border-block: 1px solid var(--line); background: var(--paper); }
.nova-detail .nova-contents .in-page-nav { position: static; border: 0; padding-block: .4rem; flex-wrap: wrap; overflow: visible; gap: 0 clamp(16px, 2vw, 28px); }
/* The editorial contents is static; retire the legacy scroll-progress overlay. */
.nova-detail .nova-contents .in-page-nav::after { content: none; }
.nova-contents .in-page-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
.nova-detail .nova-contents .page-toc { margin: 0 auto; }
.nova-section { padding-block: clamp(48px, 6vw, 80px); }
.nova-paper { background: var(--paper); }
.nova-section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); margin-bottom: 2.5rem; align-items: start; }
.nova-section-intro h2 { margin: 0; }
.nova-section-intro > p { color: var(--nova-copy); font-size: 1.1rem; max-width: 65ch; }
.nova-lenses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.nova-lenses article { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.nova-lenses h3 { font-size: 1.4rem; color: var(--nova-ink); margin-bottom: 1rem; }
.nova-lenses p { color: var(--nova-copy); }
.nova-lenses .nova-question { color: var(--ink); font-weight: 600; font-size: 1.08rem; min-height: 3.4em; }
.nova-lenses .nova-lens-output { margin-top: 1.5rem; color: var(--nova-ink); font-size: .85rem; font-weight: 600; }
.nova-screening { margin-top: 2.5rem; border-block: 1px solid var(--line); }
.nova-screening summary, .nova-mechanics summary { min-height: 64px; padding-block: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; cursor: pointer; color: var(--nova-ink); list-style: none; }
.nova-screening summary::-webkit-details-marker, .nova-mechanics summary::-webkit-details-marker { display: none; }
.nova-disclosure-sign { position: relative; flex: 0 0 16px; height: 16px; }
.nova-disclosure-sign::before, .nova-disclosure-sign::after { content: ''; position: absolute; background: currentColor; }
.nova-disclosure-sign::before { width: 16px; height: 2px; top: 7px; }
.nova-disclosure-sign::after { width: 2px; height: 16px; left: 7px; }
.nova-screening[open] .nova-disclosure-sign::after, .nova-mechanics[open] .nova-disclosure-sign::after { display: none; }
.nova-main .nova-screening-line { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; padding: .25rem 0 1.5rem; color: var(--nova-copy); font-size: .95rem; }
.nova-screening-line strong { color: var(--ink); font-weight: 600; }
.nova-screening-line span { color: var(--nova-ink); }
.nova-method { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); column-gap: clamp(28px, 5vw, 80px); padding-block: 2.5rem; border-top: 1px solid var(--line); }
.nova-method:last-child { padding-bottom: 0; }
.nova-method h3 { color: var(--nova-ink); font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 0 .8rem; }
.nova-main .nova-method-role { max-width: 26ch; font-size: .95rem; color: var(--nova-copy); }
.nova-method-body p { max-width: 70ch; color: var(--nova-copy); }
.nova-main .nova-tradeoff { font-size: .95rem; color: var(--nova-copy); margin-top: 1.25rem; }
.nova-tradeoff strong { color: var(--ink); }
.nova-option-pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); margin-top: 2rem; }
.nova-option { border-top: 1px solid #aebbae; padding-top: 1.5rem; }
.nova-option h4 { color: var(--nova-ink); font-size: 1.35rem; margin-bottom: 1.5rem; }
.nova-option > p { color: var(--nova-copy); }
.nova-option-flow { display: flex; align-items: stretch; list-style: none; padding: 0; margin: 0 0 1.5rem; gap: 1.25rem; }
.nova-option-flow li { position: relative; flex: 1; padding-block: .9rem; border-block: 1px solid #acb9ac; color: var(--nova-ink); font-size: .9rem; font-weight: 600; }
.nova-option-flow li + li::before { content: ''; position: absolute; width: 7px; height: 7px; border-top: 1px solid var(--nova-ink); border-right: 1px solid var(--nova-ink); transform: rotate(45deg); left: -.9rem; top: calc(50% - 4px); }
.nova-method .nova-method-note { grid-column: 1 / -1; font-size: .85rem; color: var(--nova-copy); margin: 1.5rem 0 0; }
.nova-gold-section { background: #154230; color: #fff; padding-block: clamp(48px, 6vw, 80px); }
.nova-gold-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.nova-main .nova-gold-section .nova-label { color: #dbe7d9; }
.nova-gold-section h2, .nova-gold-section h3 { color: #fff; }
.nova-gold-section p, .nova-gold-section dd { color: #e1eadf; }
.nova-gold-section h2 { margin-bottom: 1.5rem; }
.nova-gold-inputs dl { margin: 0; }
.nova-gold-inputs dl > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; padding-block: 1.1rem; border-top: 1px solid #719580; }
.nova-gold-inputs dt { font-weight: 600; }
.nova-gold-inputs dd { margin: 0; font-size: .95rem; }
.nova-gold-decision { border-top: 1px solid #719580; padding-top: 1.5rem; margin-top: .5rem; }
.nova-gold-decision h3 { font-size: 1.25rem; margin-bottom: .65rem; }
.nova-gold-decision p { font-size: .95rem; }
.nova-allocation-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 80px); }
.nova-allocation-guide h3 { font-size: 1.3rem; color: var(--nova-ink); max-width: 22ch; margin-bottom: 1rem; }
.nova-allocation-guide p { font-size: .95rem; color: var(--nova-copy); max-width: 40ch; }
.nova-allocations { margin: 0; }
.nova-allocation-scale { display: flex; justify-content: space-between; color: var(--nova-copy); font-size: .75rem; margin-bottom: .5rem; }
.nova-allocation-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.nova-allocation-row dt { font-size: 1.05rem; font-weight: 500; }
.nova-allocation-row dd { margin: 0; }
.nova-allocation-value { font-size: clamp(1.75rem, 3vw, 2.2rem); line-height: 1.2; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--nova-ink); }
.nova-allocation-bar { grid-column: 1 / -1; height: 12px; position: relative; }
.nova-allocation-bar::before { content: ''; height: 1px; background: #aeb9af; width: 100%; top: 5px; position: absolute; }
.nova-allocation-bar span { position: absolute; top: 0; height: 11px; background: var(--nova-ink); }
.nova-range-equities { left: 30%; width: 30%; }
.nova-range-options { left: 10%; width: 20%; }
.nova-range-gold { left: 5%; width: 15%; }
.nova-range-cash { left: 10%; width: 30%; }
.nova-main .nova-allocation-note { max-width: 90ch; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--nova-copy); font-size: .95rem; }
.nova-allocation-note strong { color: var(--nova-ink); }
.nova-process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.nova-process > li { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.nova-step-number { display: block; font-size: .95rem; color: var(--nova-ink); margin-bottom: 1rem; }
.nova-process h3 { font-size: 1.6rem; color: var(--nova-ink); margin-bottom: 1.5rem; }
.nova-process > li > p { color: var(--nova-copy); font-size: .95rem; }
.nova-process-bridge { margin-top: 2.5rem !important; border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: .95rem; color: var(--nova-copy); }
.nova-related h2 { margin-bottom: 2rem; }
.nova-related-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.nova-related-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--line); font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--nova-ink); text-decoration: none; }
.nova-related-links a:hover { text-decoration: underline; }
.nova-disclosure { margin-top: 2rem !important; max-width: 90ch; font-size: .9rem; color: var(--nova-copy); }
@media (max-width: 900px) {
  .nova-hero-grid { display: flex; flex-direction: column; gap: 1.5rem; }
  .nova-hero h1 { margin: 0; }
  .nova-hero-media { width: 100%; max-width: 680px; align-self: flex-start; }
  .nova-hero-lead > p { max-width: 65ch; }
  .nova-section-intro { grid-template-columns: 1fr; gap: 1rem; }
  .nova-lenses { gap: 1.5rem; }
  .nova-method, .nova-allocation-grid, .nova-gold-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nova-main .nova-method-role, .nova-allocation-guide p { max-width: 65ch; }
  .nova-option-pair { margin-top: .5rem; gap: 1.5rem; }
  .nova-option-flow { flex-direction: column; gap: 1rem; }
  .nova-option-flow li { padding-block: .6rem; }
  .nova-option-flow li + li::before { transform: rotate(135deg); top: -.7rem; left: 50%; }
}
@media (max-width: 600px) {
  .nova-title-lockup { gap: .7rem; }
  .nova-fund-mark { width: 58px; }
  .nova-hero-lead > p { font-size: 1.1rem; }
  .nova-lenses, .nova-option-pair, .nova-process, .nova-related-links { grid-template-columns: 1fr; }
  .nova-lenses .nova-question { min-height: 0; }
  .nova-lenses .nova-lens-output { margin-top: 1rem; }
  .nova-method { padding-block: 2rem; }
  .nova-option-pair { gap: 2rem; }
  .nova-option-flow { flex-direction: row; gap: 1rem; }
  .nova-option-flow li { font-size: .82rem; }
  .nova-option-flow li + li::before { transform: rotate(45deg); top: calc(50% - 4px); left: -.75rem; }
  .nova-gold-inputs dl > div { grid-template-columns: 1fr; gap: .65rem; }
  .nova-allocation-row dt { font-size: .95rem; }
  .nova-allocation-value { font-size: 1.75rem; }
  .nova-process { gap: 2rem; }
  .nova-process h3 { margin-bottom: 1rem; }
  .nova-main .nova-method-note { margin-top: 0; }
}
/* Outrank the legacy .fund-page main p:not(...) colour without changing shared CSS. */
body.nova-detail #main .nova-gold-section p { color: #e1eadf; }
body.nova-detail #main .nova-label { color: var(--nova-ink); }
body.nova-detail #main .nova-gold-section .nova-label { color: #dbe7d9; }

/* Optional detail keeps the four investment methods easy to scan. */
.nova-mechanics { grid-column: 1 / -1; min-width: 0; margin-top: 1.5rem; border-top: 1px solid var(--line); }
