/* /how-it-works: what OnlyHighYield is and isn't, and the score-inflation answer (2026-11-03).
   Built on the design tokens in styles.css + nightmode.css, so light and dark follow the site. */

.hiw .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.hiw .guide-section p { color: var(--ink-soft); line-height: 1.7; }
.hiw .guide-section .guide-narrow > p { margin-bottom: 1.1rem; max-width: 740px; }
.hiw .guide-section .eyebrow { margin-bottom: 0.6rem; }
.hiw-center { text-align: center; margin-left: auto; margin-right: auto; }
.hiw-center .eyebrow { justify-content: center; }
.hiw-center p { margin-left: auto; margin-right: auto; }
.hiw-wide { max-width: 1120px; }

/* jump links */
.hiw-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hiw-jump a { padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 0.86rem; font-weight: 600; text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease; }
.hiw-jump a:hover { border-color: var(--primary); color: var(--primary); }

.hiw .ohy-isnt { margin: 1.5rem 0 0; max-width: none; }

/* scope diagram: big dashed box (whole outline) with a centred solid box (what we cover) */
.hiw-scope { margin: 2rem 0 2.25rem; }
.hiw-scope-outer { width: min(100%, 460px); aspect-ratio: 1 / 1; margin: 0 auto; padding: 1.5rem; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; border: 2px dashed var(--ink-faint); border-radius: var(--radius-lg); background: var(--paper); text-align: center; }
.hiw-scope-inner { width: 76%; aspect-ratio: 1 / 1; margin: auto; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 1rem; border-radius: var(--radius-lg); background: var(--primary); color: #fff; box-shadow: 0 18px 40px -22px rgba(7, 62, 64, 0.6); text-align: center; }
body.dark-mode .hiw-scope-inner { background: #0e4f51; }
.hiw-scope-label { display: block; font: 700 0.78rem/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.hiw-scope-label small { display: block; margin-top: 0.3rem; font: 500 0.95rem/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.hiw-scope-inner .hiw-scope-label { color: #fff; }
.hiw-scope-inner .hiw-scope-label small { color: rgba(255, 255, 255, 0.88); font-size: 1.05rem; font-family: var(--font-display); font-weight: 600; }
.hiw-scope figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: var(--ink-soft); text-align: center; }

/* trade-off card + bar */
.hiw-tradeoff { padding: 1.6rem 1.6rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.hiw-tradeoff h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 0 0 0.5rem; }
.hiw-tradeoff p { margin: 0 0 1rem; }
.hiw-tradeoff p:last-child { margin-bottom: 0; }
.hiw-bar { display: flex; height: 46px; margin: 1.25rem 0 0.5rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; }
.hiw-bar-fill { flex: 0 0 75%; display: flex; align-items: center; padding: 0 1rem; background: var(--primary); color: #fff; }
.hiw-bar-fill span, .hiw-bar-rest span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hiw-bar-rest { flex: 1; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, var(--paper-alt), var(--paper-alt) 6px, var(--paper) 6px, var(--paper) 12px); color: var(--ink-soft); }
body.dark-mode .hiw-bar-fill { background: #0e4f51; }
.hiw-bar-note { font-size: 0.85rem !important; font-family: var(--font-mono); color: var(--ink-soft); }

/* example */
.hiw-intro { max-width: 720px; margin-bottom: 0.9rem; }
.hiw-disclaimer { display: inline-block; margin: 0 0 2rem !important; padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--paper-alt); border: 1px solid var(--line); font: 600 0.78rem/1.5 var(--font-mono); color: var(--ink-soft) !important; }
.hiw-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.1rem; align-items: stretch; }
.hiw-pair-arrow { display: flex; align-items: center; color: var(--primary); }
.hiw-q { position: relative; padding: 1.5rem 1.5rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.hiw-q-ohy { border: 2px solid var(--primary); box-shadow: 0 18px 40px -24px rgba(7, 62, 64, 0.55); }
.hiw-q-tag { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; font: 700 0.78rem/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.hiw-q-tag span { font-weight: 500; color: var(--ink-soft); letter-spacing: 0.03em; }
.hiw-q-ohy .hiw-q-tag { color: var(--primary); }
.hiw .hiw-q-stem { color: var(--ink); font-size: 0.98rem; line-height: 1.7; margin: 0 0 0.8rem; }
.hiw .hiw-q-ask { color: var(--ink); font-weight: 600; font-size: 0.96rem; margin: 0 0 0.7rem; }
mark.hiw-chg { background: var(--highlighter-soft); color: inherit; padding: 0 0.15em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hiw-q-choices { list-style: upper-alpha; margin: 0; padding-left: 1.6rem; }
.hiw-q-choices li { padding: 0.32rem 0.5rem; margin-bottom: 0.15rem; border-radius: 6px; font-size: 0.94rem; color: var(--ink); }
.hiw-q-choices li::marker { font-weight: 700; color: var(--ink-soft); }
.hiw-q-choices li.is-answer { background: rgba(10, 92, 95, 0.1); font-weight: 600; box-shadow: inset 3px 0 0 var(--primary); }
body.dark-mode .hiw-q-choices li.is-answer { background: rgba(78, 201, 204, 0.14); }
.hiw .hiw-legend { text-align: center; margin: 1rem auto 2.5rem !important; max-width: none !important; font-size: 0.86rem; }
.hiw-legend-ans { padding: 0 0.35em; border-radius: 3px; background: rgba(10, 92, 95, 0.1); box-shadow: inset 3px 0 0 var(--primary); font-weight: 600; color: var(--ink); }
body.dark-mode .hiw-legend-ans { background: rgba(78, 201, 204, 0.14); }

.hiw-compare-wrap { margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.hiw-compare { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.hiw-compare th, .hiw-compare td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; color: var(--ink); }
.hiw-compare thead th { font: 700 0.72rem var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.hiw-compare tbody th { font-weight: 600; white-space: nowrap; }
.hiw-compare td:last-child { width: 1%; text-align: right; }
.hiw-compare tr:last-child th, .hiw-compare tr:last-child td { border-bottom: 0; }
.hiw-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 700 0.7rem var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; background: var(--paper-alt); color: var(--ink-soft); border: 1px solid var(--line); }
.hiw-same th, .hiw-same td { background: var(--highlighter-soft); font-weight: 600; }
.hiw-same .hiw-pill { background: var(--primary); border-color: var(--primary); color: #fff; }
body.dark-mode .hiw-same .hiw-pill { color: #0b1716; }

.hiw .hiw-punch { max-width: 680px; margin: 2.5rem auto !important; font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); line-height: 1.5; color: var(--ink); }

.hiw-try { margin: 0 auto; padding: 1.8rem 1.8rem 1.4rem; border-radius: var(--radius-lg); background: var(--primary-dark); color: #fff; }
.hiw-try .eyebrow { color: var(--highlighter); }
.hiw-try .eyebrow::before { background: var(--highlighter); }
.hiw-try h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin: 0 0 1.2rem; color: #fff; }
.hiw-try-steps { list-style: none; counter-reset: hiwstep; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.hiw-try-steps li { counter-increment: hiwstep; position: relative; padding: 0.95rem 1rem 0.95rem 3.1rem; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.93rem; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.hiw-try-steps li strong { display: block; color: #fff; margin-bottom: 0.15rem; }
.hiw-try-steps li::before { content: counter(hiwstep); position: absolute; left: 0.95rem; top: 0.95rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--highlighter); color: #073e40; font: 700 0.85rem/1.6rem var(--font-mono); text-align: center; }
.hiw .hiw-try > p { color: rgba(255, 255, 255, 0.85); margin: 0; }
body.dark-mode .hiw-try { background: #0c3a3b; border: 1px solid #1f5a57; }

/* safeguards */
.hiw #safeguards .section-head { text-align: center; margin-bottom: 2rem; }
.hiw #safeguards .section-head h2 { margin-bottom: 0; }
.hiw-unsure { max-width: 760px; margin: 2rem auto 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--highlighter); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--white); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hiw-unsure h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 0 0 0.4rem; }
.hiw-unsure p { margin: 0; }

/* remember */
.hiw-remember { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 0.5rem; }
.hiw-remember-copy p { margin: 0 0 1rem; }
.hiw-timeline { list-style: none; margin: 0; padding: 0.4rem 0 0; position: relative; }
.hiw-timeline::before { content: ""; position: absolute; left: 7px; top: 1rem; bottom: 1.4rem; width: 2px; background: var(--line); }
.hiw-timeline li { position: relative; padding: 0 0 1.4rem 2rem; }
.hiw-timeline li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--primary); box-sizing: border-box; }
.hiw-timeline li:last-child::before { background: var(--highlighter); border-color: var(--highlighter-dark); }
.hiw-tl-when { display: block; font: 700 0.75rem/1.5 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.hiw-tl-what { display: block; font-size: 0.97rem; color: var(--ink); line-height: 1.5; }

@media (max-width: 860px) {
    .hiw-pair { grid-template-columns: 1fr; }
    .hiw-pair-arrow { justify-content: center; transform: rotate(90deg); }
    .hiw-remember { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hiw-try-steps { grid-template-columns: 1fr; }
    .hiw-try { padding: 1.4rem 1.1rem 1.2rem; }
    .hiw-q { padding: 1.2rem 1.1rem 1.1rem; }
    .hiw-tradeoff { padding: 1.3rem 1.1rem 1.1rem; }
    .hiw-bar-fill { flex-basis: 72%; padding: 0 0.7rem; font-size: 0.78rem; }
    .hiw-bar-fill span { white-space: normal; line-height: 1.25; }
    .hiw-scope-outer { padding: 1.1rem; }
    .hiw-scope-inner { width: 76%; }
    .hiw-scope-inner .hiw-scope-label small { font-size: 0.95rem; }
    .hiw-scope-inner .hiw-scope-label { font-size: 0.7rem; letter-spacing: 0.03em; }
    .hiw-compare th, .hiw-compare td { padding: 0.6rem 0.55rem; font-size: 0.86rem; }
    .hiw-compare tbody th { white-space: normal; }
    .hiw-compare th:last-child, .hiw-compare td:last-child { display: none; }
}
