/* HwM notes: one reading column; the index sits at the top in two columns; figures run full width between rules. */
body.notes-page { background: var(--site); color: var(--ink-1); }
.nt { width: min(820px, 90vw); margin: 0 auto; padding: calc(var(--hd-h, 56px) + var(--s72)) 0 var(--s72); }
.nt-title { font-family: var(--font-pixel); font-size: clamp(40px, 5.4vw, 80px); line-height: 1; text-transform: uppercase; color: var(--ink-2); }
.nt-sub { margin-top: var(--s16); font-size: var(--t-m); color: var(--ink-3); }
.nt-index { list-style: none; padding: 0; margin: var(--s48) 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s32); border-top: 1px solid var(--rule); }
.nt-index a { display: flex; gap: var(--s16); padding: var(--s12) 0; border-bottom: 1px solid var(--rule); font-size: var(--t-s); color: var(--ink-2); transition: color .2s; }
.nt-index a b { font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nt-index a:hover { color: var(--ink-1); }

.note { padding: var(--s72) 0 0; scroll-margin-top: calc(var(--hd-h, 56px) + 24px); }
.note .no { font-family: var(--font-pixel); font-size: 18px; color: var(--yellow); }
.note h2 { margin-top: var(--s12); font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
.note h2 span { display: block; color: var(--ink-3); }
.note > p:not(.no) { margin-top: var(--s16); font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.note b { color: var(--ink-1); font-weight: 500; }
.note--flaw h2 { color: var(--yellow); }
.plain { margin-top: var(--s16); padding-left: 1.2em; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.note .end-cta { margin-top: var(--s24); }

.wide { margin: var(--s48) calc(50% - min(48vw, 640px)) 0; padding: var(--s24) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow-x: auto; }
.wide svg { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--font-text); font-size: 15px; }
.wide text { fill: var(--ink-2); }
.wide text.dim { fill: var(--ink-3); }
.wide text.y { fill: var(--yellow); }
.wide text.bg { fill: var(--bg); font-weight: 500; }
.wide .mk { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 6 6; fill: none; }
.wide .loss { fill: var(--fill-3); }
.wide .ok { fill: var(--lavender); }
.wide .tax { fill: var(--yellow); }
.wide .ar { fill: none; stroke: var(--ink-2); stroke-width: 1.6; }
.wide .bars rect { fill: var(--lavender); }
.wide .bars rect.now { fill: var(--yellow); }
.wide .cap { stroke: var(--ink-3); stroke-dasharray: 4 6; fill: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s12); margin-top: var(--s24); }
.card { padding: var(--s16); border-radius: var(--r-l); background: var(--card); }
.card b { display: block; font-family: var(--font-pixel); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1; color: var(--ink-1); }
.card b.dim { color: var(--ink-3); }
.card span { display: block; margin-top: var(--s8); font-size: var(--t-s); color: var(--ink-3); line-height: 1.45; }

@media (max-width: 760px) {
  .nt-index { grid-template-columns: 1fr; }
  .note > p:not(.no), .plain { font-size: 16.5px; }
  .wide { margin-left: 0; margin-right: 0; }
}
