/* Valuation Insights · series layer (landing page, breadcrumbs, related reading, previous/next,
   plus generic article components for new articles). Loaded AFTER vi.css. Uses vi.css tokens only. */

/* ---------- breadcrumbs ---------- */
.crumbs { margin: 18px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--t-xs); color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--rule); }
.crumbs a { color: var(--teal-text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-soft); }

/* ---------- series navigation (after the article) ---------- */
.series-nav { margin-top: 40px; display: grid; gap: 28px; }
.series-block h2 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--ink-navy); margin: 0 0 12px; }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.rel-list a { display: grid; gap: 2px; padding: 14px 16px; background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.rel-list a:hover, .prevnext a:hover { border-color: var(--teal); }
.rel-pillar { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-text); font-weight: 600; }
.rel-title { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; color: var(--ink-navy); line-height: 1.3; }
.prevnext { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule); padding-top: 24px; }
.pn { display: grid; gap: 4px; padding: 14px 16px; background: var(--mist); border: 1px solid var(--rule-cool); border-radius: var(--radius); text-decoration: none; min-height: 44px; }
.pn-empty { display: none; }
.pn-label { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); font-weight: 600; }
.pn-title { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; color: var(--ink-navy); line-height: 1.3; }
.pn:last-child { text-align: left; }
@media (min-width: 700px) {
  .rel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prevnext { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn:last-child:not(.pn-empty) { text-align: right; }
}
.series-nav, .crumbs { max-width: 60rem; }

/* ---------- landing ---------- */
.hero-inner--single { grid-template-columns: minmax(0, 1fr); }
.hero-inner--single .dek { max-width: 42rem; }
.layout--landing { display: block; padding-block: 8px 24px; }
.landing-tools { padding-top: 28px; max-width: 40rem; }
.landing-tools input { width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: var(--t-base); border: 1px solid #9FB0BF; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.pillar { margin-top: clamp(32px, 5vw, 56px); }
.pillar h2 { font-family: var(--f-display); font-weight: 500; font-size: var(--t-h2); line-height: 1.15; color: var(--ink-navy); margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 0.55em; align-items: baseline; text-wrap: balance; }
.pillar h2 .sec-no { font-family: var(--f-figure); font-size: 0.42em; font-weight: 600; letter-spacing: 0.08em; color: var(--gold-text); transform: translateY(-0.25em); }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.card a, .card > div { display: grid; gap: 6px; align-content: start; height: 100%; padding: 18px 18px 20px; background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.card a:hover { border-top-color: var(--teal); box-shadow: 0 2px 14px rgba(16, 36, 58, 0.08); }
.card-pending > div { opacity: 0.65; border-top-color: var(--rule); }
.card-no { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-text); font-weight: 600; }
.card-title { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.25; font-weight: 600; color: var(--ink-navy); text-wrap: balance; }
.card-dek { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.5; }
.card[hidden], .pillar[hidden] { display: none; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- generic article components (new articles) ---------- */
.prose blockquote, .prose .pull { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--gold); font-family: var(--f-display); font-size: 1.3rem; line-height: 1.4; color: var(--ink-navy); max-width: var(--measure); }
.prose blockquote p { margin: 0; }
.callout { margin: 1.8em 0; padding: 16px 18px; background: var(--mist); border-left: 3px solid var(--teal); border-radius: var(--radius); max-width: var(--measure); }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--brick); background: #F6ECE7; }
.callout--note { border-left-color: var(--gold); background: #FBF5E8; }
.callout .callout-h { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; color: var(--ink-navy); margin: 0 0 4px; }
.fig { margin: 2.2em 0 2.6em; background: var(--white); border: 1px solid var(--rule); padding: clamp(14px, 3vw, 26px); }
.fig svg { display: block; width: 100%; height: auto; max-width: 100%; }
.fig .caption { margin-bottom: 0; }
.fig-dark { background: var(--ink-navy); color: var(--on-dark); border-color: var(--ink-navy); }
.fig-dark .caption { color: var(--on-dark-soft); }
.prose .fig, .prose .tool, .prose .block { max-width: none; }
.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 1.4em 0; }
.stat { padding: 12px 14px; background: var(--mist); border-radius: var(--radius); border-top: 3px solid var(--teal); }
.stat .stat-v { display: block; font-family: var(--f-display); font-size: 1.7rem; line-height: 1.1; color: var(--ink-navy); font-variant-numeric: lining-nums; }
.stat .stat-l { display: block; font-size: var(--t-xs); color: var(--ink-soft); margin-top: 4px; }
@media print { .series-nav, .crumbs, .landing-tools { display: none; } .card a, .card > div { break-inside: avoid; } }

/* ---------- Author attribution ---------- */
.byline > .author-credit { flex: 1 0 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 6px; letter-spacing: 0; }
.byline > .author-credit .author-name { color: var(--on-dark); font-size: 0.95rem; font-weight: 650; }
.byline > .author-credit .author-designation { color: var(--on-dark-soft); font-size: var(--t-xs); }
.byline > .author-credit .author-registration { color: var(--on-dark-soft); font-size: 0.72rem; letter-spacing: 0.025em; }
.landing-author { max-width: 44rem; margin: -10px 0 22px; color: var(--on-dark-soft); font-size: var(--t-small); line-height: 1.5; }
.landing-author strong { color: var(--on-dark); font-weight: 650; }
.landing-author span { white-space: nowrap; }
@media (max-width: 430px) { .landing-author span { white-space: normal; display: block; margin-top: 2px; } }
@media print { .byline > .author-credit .author-name, .byline > .author-credit .author-designation, .byline > .author-credit .author-registration, .landing-author, .landing-author strong { color: #333; } }

/* A light result table can sit inside a dark calculator result panel. */
.results .table-wrap .cs-table caption { color: var(--ink); }

/* ---------- Verified publisher footer ---------- */
.site-footer a { color: var(--on-dark); }
.footer-inner > div { max-width: 34rem; }
.footer-inner .publisher-address { flex: 1 1 28rem; }
.footer-inner .publisher-contact { flex: 1 1 18rem; }
@media (max-width: 640px) {
  .footer-inner > div { max-width: none; width: 100%; }
}
@media print {
  .site-footer a, .footer-inner strong { color: #000 !important; }
}

/* ---------- v2 (orchestrator, after Reviewer C on A03/A04) ---------- */
/* SVG figures: legible on phones (scroll inside the card rather than shrink the type), capped on wide screens */
.fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .fig svg:not(.svg-fit) { min-width: 480px; }
  .fig > svg:not(.svg-fit)::after { content: ""; }
  .fig::after { content: "Swipe sideways to see the whole chart"; display: block; font-size: var(--t-xs); color: var(--ink-soft); margin-top: 8px; }
  .fig.fig-nonscroll::after, .fig:not(:has(svg:not(.svg-fit)))::after { display: none; }
}
@media (min-width: 900px) {
  .fig svg:not(.svg-fit) { max-width: 760px; margin-inline: auto; }
}
.halo { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.fig-dark .halo { stroke: var(--ink-navy); }

/* Tables / scrollers: cue shown only while content is hidden to the right (class toggled by vi-core.js) */
.can-scroll { box-shadow: inset -16px 0 12px -12px rgba(16,36,58,.35); }
.table-wrap:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Tool controls: 44px touch targets; stack label over input on narrow screens */
.tool .unit-input input, .tool select, .tool .btn, .tool button { min-height: 44px; }
@media (max-width: 520px) { .tool .field-row { align-items: stretch; flex-direction: column; gap: 6px; } }
.tool .results .callout { margin-top: 14px; }
.tool .results > * + * { margin-top: 10px; }

/* Print: keep figure cards and tool panels together */
@media print { .fig, .fig-dark, .callout, .table-wrap, figure { break-inside: avoid; page-break-inside: avoid; } .tool { break-inside: auto; } .tool-head { break-after: avoid; } .tool .controls, .tool .results { break-inside: avoid; } .can-scroll { box-shadow: none !important; } .fig::after { display: none !important; } .fig { overflow: visible; } .fig svg { min-width: 0 !important; max-width: 100% !important; } }

/* svg-fit figures (drawn for narrow viewBoxes): cap on desktop too */
@media (min-width: 900px) { .fig svg.svg-fit { max-width: 640px; margin-inline: auto; } }

/* screen-reader-only text (alias of .visually-hidden) */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* in-text cross-references to other articles (generated by the build) */
.prose a.xref { color: var(--teal-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a.xref:hover { text-decoration-thickness: 2px; }
