/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   DEPLOY PATH: /css/calc-results.58466ef3.css
   The calculators' shared results pattern (UX-4: the Offset vs Shares design Luis approved, P19-P22): the sidebar's
   Quick panel, the answer ("On your numbers" + one sentence), the bars card, the key-figure tiles, the collapsed
   disclosures and the chip legend.

   UX-4A (Mortgage, Luis 11 Nov 2026) MOVED these rules here from css/offset-polish.css, verbatim and in their original
   order, so Mortgage reuses the live Offset vs Shares components instead of a fork. Offset vs Shares links this file
   immediately before css/offset-polish.css, so on that page every rule keeps its place in the cascade (the moved rules
   still come after tepuy.css and simulators.css and before the rest of offset-polish.css, mobile-polish.css and
   calculators.css). Proven by the pixel diff of the built Offset vs Shares page (npm run visual:diff, PR #UX-4A).

   Additive only for other pages: a rule that names an Offset vs Shares id keeps that selector unchanged and gains the
   same selector with the Mortgage id as a further comma part (#ovsVerdict -> #mortVerdict, #ovsKpiStrip ->
   #mortKpiStrip, #ovsChartLegend -> #mortChartLegend, #ovsWhy -> #mortWhy, #ovsTaxModel -> #mortHow): each comma part
   keeps its own specificity, so nothing on Offset vs Shares changes. A later calculator (UX-4b LMI, UX-4c Retirement)
   adds its ids the same way: UX-4C adds Retirement's (#retHero, #retLanes, #retWhy, #retChipsWealth, #retChipsIncome) and moves
   the pieces Retirement also needs and only offset-polish.css held (.ovs-sr, .ovs-lane__gap, .ovs-tile--mc, the ring,
   the hero's full-width .ovs-tile--mc), verbatim, so each rule has one copy (the ring's stroke colour, a scenario token, stays
   in offset-polish.css: each page names its own). The class names keep their ovs- prefix: renaming them touches every page that uses them
   (a UI-7 / S15 job).
   UX-4b (LMI, 12 Nov 2026) links this file straight after css/lmi-polish.css. LMI keeps the Offset vs Shares hooks
   #ovsVerdict and #ovsKpiStrip, so it needs no id of its own here; its two chart legends are class-scoped
   (.ux4-legend, added as a further comma part on the three chip rules). LMI's own pieces (ux4-*, .ovs-tile--hint)
   are in css/lmi-polish.css.

   PALETTE ONLY (485, 510): tokens, tints of tokens and white (test/ux4a_mortgage_static.test.js reads this file).
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
:root {
  --ovs-line: color-mix(in srgb, var(--brand) 16%, white);
  --ovs-line-soft: color-mix(in srgb, var(--brand) 9%, white);
  --ovs-wash: color-mix(in srgb, var(--brand) 4%, white);
}
.ovs-verdict__text { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--text-inverse); }
.ovs-verdict__short { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ovs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ovs-verdict-meta { margin: 0 0 12px; font-size: 0.8rem; line-height: 1.45; color: var(--text-muted); }
@media (max-width: 599.98px) {
  .ovs-verdict__text { font-size: 0.94rem; }
}
.ovs-kpi-card {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--ovs-line);
  border-top: 3px solid color-mix(in srgb, var(--brand) 28%, white); border-radius: 10px;
}
.ovs-kpi-value { font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; }
.ovs-kpi-sub { font-size: 0.75rem; font-weight: 500; line-height: 1.4; color: var(--text-muted); }
.ovs-disc { margin: 0 0 12px; background: var(--surface); border: 1px solid var(--ovs-line); border-radius: 10px; }
body.calc .main-layout > main > :is(#ovsWhy, #ovsTaxModel).ovs-disc, body.calc .main-layout > main > :is(#mortWhy, #mortHow).ovs-disc, body.calc .main-layout > main > #retWhy.ovs-disc { padding: 0; }
.ovs-disc > summary { cursor: pointer; padding: 10px 14px; font-size: 0.88rem; font-weight: 700; color: var(--brand); list-style-position: inside; border-radius: 10px; }
.ovs-disc > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ovs-disc__body { padding: 0 14px 12px; font-size: 0.86rem; line-height: 1.6; color: var(--text); }
.ovs-disc__body p { margin: 0 0 8px; }
.ovs-disc__body p:last-child { margin-bottom: 0; }
.ovs-disc--tax { margin-top: 16px; }
.ovs-chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 0 2px; font-size: 0.78rem; font-weight: 600; color: var(--text); }
.ovs-leg-item { display: inline-flex; align-items: center; gap: 6px; }
.ovs-quick { padding: .2rem 0 .4rem; }
.ovs-quick[hidden], .ovs-full[hidden] { display: none; }
.ovs-q { padding: .6rem 0 .1rem; border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.ovs-q:first-child { border-top: 0; }
.ovs-q-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.ovs-q-head label { font-weight: 600; font-size: .9rem; color: var(--text); }
.ovs-q-field { width: 7.4rem; height: 36px; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 8px;
  font: 700 .95rem 'Inter Tight', system-ui, sans-serif; text-align: right; padding: 0 .55rem; color: var(--text); background: white; }
.ovs-q-field:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ovs-q-range { width: 100%; margin: .35rem 0 .2rem; }
.ovs-q-range:focus-visible { outline: 2px solid var(--brand) !important; outline-offset: 4px; }
/* The focus ring must beat css/simulators.css's body.calc .calc-aside input[type="range"] { outline: none !important }
   (specificity 0,3,2 against the unscoped rule's 0,2,0; this one is 0,4,1), which hid it on both Offset vs Shares and Mortgage (PR 531 T2, B1). */
body.calc .calc-aside .ovs-q-range:focus-visible { outline: 2px solid var(--brand) !important; outline-offset: 4px; }
.ovs-q-rest { margin-top: .6rem; padding: .7rem .8rem; border-radius: 12px; background: color-mix(in srgb, var(--bone) 70%, white); }
.ovs-q-rest__h { margin: 0 0 .3rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.ovs-q-rest__list { list-style: none; margin: 0; padding: 0; }
.ovs-q-rest__list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .22rem 0; font-size: .84rem; }
.ovs-q-rest__l { color: var(--text-muted); }
.ovs-q-rest__v { font-weight: 700; color: var(--text); }
.ovs-q-rest__edit, .ovs-q-full { border: 0; background: none; padding: .25rem .1rem; font: 700 .82rem 'Inter Tight', system-ui, sans-serif; color: var(--brand);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; min-height: 32px; }
.ovs-q-full { margin-top: .3rem; }
.ovs-q-rest__edit:focus-visible, .ovs-q-full:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.ovs-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 36px); align-items: start; margin: .4rem 0 1rem; }
.ovs-hero__kicker { margin: .2rem 0 .5rem; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
#ovsVerdict .ovs-verdict__text, #mortVerdict .ovs-verdict__text, #retHero .ovs-verdict__text { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; color: var(--ink);
  font-size: clamp(1.55rem, 2.7vw, 2.45rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
#ovsVerdict .ovs-verdict-meta, #mortVerdict .ovs-verdict-meta, #retHero .ovs-verdict-meta { margin: .8rem 0 0; font-size: .86rem; line-height: 1.5; color: var(--text-muted); max-width: 52ch; }
.ovs-lanes { display: flex; flex-direction: column; background: white; border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 18px; padding: 1rem 1.1rem .8rem; box-shadow: 0 14px 36px color-mix(in srgb, var(--ink) 7%, transparent); }
.ovs-lanes__head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: .2rem; order: -1; }
.ovs-lanes__h { margin: 0; font-size: .98rem; font-weight: 800; color: var(--text); }
.ovs-lanes__sub { font-size: .8rem; color: var(--text-muted); }
#ovsKpiStrip .ovs-lane, #mortKpiStrip .ovs-lane, #retLanes .ovs-lane { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .7rem; align-items: center; padding: .4rem 0;
  background: none; border: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 0; box-shadow: none; min-height: 0; }
.ovs-lane__name { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .95rem; color: var(--text); }
#ovsKpiStrip .ovs-lane__val, #mortKpiStrip .ovs-lane__val, #retLanes .ovs-lane__val { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.ovs-lane__track { grid-column: 1 / -1; position: relative; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ovs-lane__bar { position: relative; height: 100%; width: 0; border-radius: 6px; overflow: hidden; transition: width .9s cubic-bezier(.2, .7, .2, 1);
  background-image: linear-gradient(180deg, color-mix(in srgb, white 16%, transparent), transparent); }
.ovs-lane__gap { position: absolute; top: 0; bottom: 0; border: 1px dashed var(--brand); border-left: 0; border-radius: 0 6px 6px 0;
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--brand) 30%, transparent) 0 2px, transparent 2px 6px); }
.ovs-lane__gap[hidden] { display: none; }
.ovs-lane__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: .8rem; font-size: .78rem; color: var(--text-muted); line-height: 1.35; }
#ovsKpiStrip .ovs-lane .ovs-kpi-sub, #mortKpiStrip .ovs-lane .ovs-kpi-sub, #retLanes .ovs-lane .ovs-kpi-sub, #ovsKpiStrip .ovs-lane .ovs-kpi-exact, #mortKpiStrip .ovs-lane .ovs-kpi-exact { margin: 0; font-size: .78rem; color: var(--text-muted); }
.ovs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 0 0 1rem; }
.ovs-tile__v--words { font-size: 1.05rem; line-height: 1.25; }
.ovs-tile { background: white; border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); border-radius: 16px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .2rem; }
.ovs-tile--mc { flex-direction: row; align-items: center; gap: .8rem; }
.ovs-tile__k { display: flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; color: var(--text-muted); }
.ovs-tile__v { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.ovs-tile__d { font-size: .78rem; line-height: 1.35; color: var(--text-muted); }
.ovs-ring { width: 58px; height: 58px; flex: none; transform: rotate(-90deg); }
.ovs-ring__track { fill: none; stroke: color-mix(in srgb, var(--ink) 9%, transparent); stroke-width: 8; }
.ovs-ring__fill { fill: none; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 0 164; transition: stroke-dasharray .8s ease; }
#ovsChartLegend, #mortChartLegend, #retChipsWealth, #retChipsIncome { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .4rem; }
#ovsChartLegend .ovs-leg-item, #mortChartLegend .ovs-leg-item, .ux4-legend .ovs-leg-item, #retChipsWealth .ovs-leg-item, #retChipsIncome .ovs-leg-item { display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: 0 .7rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); background: white; font: 600 .82rem 'Inter Tight', system-ui, sans-serif; color: var(--text); cursor: pointer; }
#ovsChartLegend .ovs-leg-item[aria-pressed="false"], #mortChartLegend .ovs-leg-item[aria-pressed="false"], .ux4-legend .ovs-leg-item[aria-pressed="false"], #retChipsWealth .ovs-leg-item[aria-pressed="false"], #retChipsIncome .ovs-leg-item[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
#ovsChartLegend .ovs-leg-item:focus-visible, #mortChartLegend .ovs-leg-item:focus-visible, .ux4-legend .ovs-leg-item:focus-visible, #retChipsWealth .ovs-leg-item:focus-visible, #retChipsIncome .ovs-leg-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@container calc-layout (max-width: 1239.98px) {
  .ovs-hero { grid-template-columns: minmax(0, 1fr); }
  .ovs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599.98px) {
  #page-head-placeholder .page-head { display: block; padding-bottom: .6rem; margin-bottom: .2rem; }
  #page-head-placeholder .page-head h1 { font-size: 1.45rem; line-height: 1.15; margin: 0 0 .3rem; }
  #page-head-placeholder .page-head .sub { font-size: .92rem; line-height: 1.45; margin: 0; max-width: none; }
  #ovsVerdict .ovs-hero__kicker, #mortVerdict .ovs-hero__kicker, #retHero .ovs-hero__kicker { margin-top: 0; }
  #ovsVerdict .ovs-verdict__text, #mortVerdict .ovs-verdict__text, #retHero .ovs-verdict__text { font-size: 1.6rem; }
  #ovsVerdict .ovs-verdict-meta, #mortVerdict .ovs-verdict-meta, #retHero .ovs-verdict-meta { font-size: .8rem; margin-top: .5rem; }
  .ovs-lanes { padding: .8rem .85rem .6rem; border-radius: 16px; }
  #ovsKpiStrip .ovs-lane .ovs-kpi-sub, #mortKpiStrip .ovs-lane .ovs-kpi-sub, #retLanes .ovs-lane .ovs-kpi-sub { display: none; }
  #ovsKpiStrip .ovs-lane__foot, #mortKpiStrip .ovs-lane__foot, #retLanes .ovs-lane__foot { justify-content: flex-end; }
  #ovsKpiStrip .ovs-lane__val, #mortKpiStrip .ovs-lane__val, #retLanes .ovs-lane__val { font-size: 1.2rem; }
  .ovs-tile__v { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ovs-lane__bar, .ovs-ring__fill { transition: none; }
}
.ovs-hero { grid-template-areas: 'ans lanes' 'tiles lanes'; grid-template-rows: auto 1fr; }
.ovs-hero__answer { grid-area: ans; }
.ovs-hero > .ovs-lanes { grid-area: lanes; align-self: start; justify-content: flex-start; }
.ovs-hero > .ovs-tiles { grid-area: tiles; align-self: start; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ovs-hero > .ovs-tiles .ovs-tile--mc { grid-column: 1 / -1; }
.ovs-tile__d { font-size: .875rem; line-height: 1.4; color: var(--text-muted); }
.ovs-tile__k { font-size: .82rem; }
details.ovs-q-rest > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; margin: 0; min-height: 32px; }
details.ovs-q-rest > summary::-webkit-details-marker { display: none; }
details.ovs-q-rest > summary::after { content: '+'; font-size: 1.1rem; font-weight: 800; color: var(--brand); }
details.ovs-q-rest[open] > summary::after { content: '–'; }
details.ovs-q-rest > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.ovs-q-rest__n { font-weight: 600; letter-spacing: 0; text-transform: none; margin-left: .3rem; margin-right: auto; }
@container calc-layout (max-width: 1239.98px) {
  .ovs-hero { grid-template-areas: 'ans' 'lanes' 'tiles'; grid-template-rows: auto; }
  .ovs-hero > .ovs-tiles { margin-top: .2rem; }
}
