/* EFS showcase, later layers. Same tokens as app.css: purple lines and fills, orange only to flag. */

.layer[hidden] { display: none; }
.lsub { margin-top: 96px; }
.lsub > h3 { margin-bottom: 8px; }
.lsub > .lead { margin-bottom: 32px; max-width: 70ch; }
.lead { color: var(--muted); }
.caption { max-width: 90ch; }
.linkbtn { border: 0; background: none; padding: 6px 0; cursor: pointer; color: var(--purple-text); font-size: 14px; line-height: 21px; text-align: left; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.await { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: 1px; flex: none; }
.open-note { display: flex; align-items: baseline; font-size: 14px; line-height: 21px; color: var(--muted); margin: 40px 0 0; max-width: 90ch; }

/* single values */
.lstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); }
.lstats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; }
.lstat { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.lstat .v { font-size: 36px; line-height: 44px; letter-spacing: -0.9px; font-variant-numeric: tabular-nums; }
.lstat .l { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 6px; max-width: 30ch; }

/* segmented choice: square-cornered, never a pill */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; background: var(--grey); border-radius: var(--r-control); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 6px; font-size: 14px; line-height: 21px; cursor: pointer; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.seg button:disabled { cursor: default; }

/* formal rule cards */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 32px; }
.rule { background: var(--tb); border-radius: var(--r-surface); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rule-n { font-size: 18px; line-height: 24px; letter-spacing: -0.2px; }
.pred { display: block; font-family: var(--mono); font-size: 12.5px; line-height: 19px; background: #fff; border-radius: var(--r-control); padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.pred.clamp { max-height: 120px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.rule .linkbtn { padding: 0; margin-top: -4px; }
.rule-m { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; line-height: 19px; }
.rule-m dt { color: var(--muted); }
.rule-m dd { margin: 0; display: flex; align-items: baseline; }
.rule-k { font-family: var(--mono); font-size: 11.5px; line-height: 17px; color: var(--muted); overflow-wrap: anywhere; }
.rule-x { font-size: 14px; line-height: 21px; margin: 0; overflow-wrap: anywhere; }
.rule-x b { font-weight: 500; }

/* the schema, showing through */
.schema-strip { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.ss-h { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; line-height: 21px; }
.ss-t { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-t span { font-family: var(--mono); font-size: 12px; line-height: 18px; padding: 3px 8px; background: var(--grey); border-radius: 6px; display: inline-flex; gap: 8px; }
.ss-t b { font-weight: 400; color: var(--purple-text); font-variant-numeric: tabular-nums; }
.ss-f { font-family: var(--mono); font-size: 11.5px; line-height: 17px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- capacity */
.cap-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: end; }
.cap-big { font-size: 120px; line-height: 120px; letter-spacing: -4px; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 12px; }
.cap-big small { font-size: 28px; line-height: 36px; letter-spacing: -0.5px; color: var(--muted); }
.cap-sub { font-size: 20px; line-height: 28px; letter-spacing: -0.2px; margin: 16px 0 8px; max-width: 44ch; }
.cap-bind { font-size: 15px; line-height: 22px; color: var(--muted); display: flex; align-items: center; margin: 0; }
.cap-twice { background: var(--grey); border-radius: var(--r-surface); padding: 24px; }
.cap-twice .k { font-size: 14px; color: var(--muted); }
.cap-twice .v { font-size: 36px; line-height: 44px; letter-spacing: -0.8px; margin: 4px 0 8px; }
.cap-twice p { margin: 0; }
.gbars { margin-top: 64px; display: flex; flex-direction: column; gap: 14px; }
.gb-axis { position: relative; height: 20px; margin-left: 260px; margin-right: 96px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gb-axis span { position: absolute; transform: translateX(-50%); }
.gb { display: grid; grid-template-columns: 244px minmax(0, 1fr) 80px; gap: 16px; align-items: center; }
.gb-l { display: flex; flex-direction: column; font-size: 15px; line-height: 21px; }
.gb-l .muted { font-size: 13px; }
.gb-t { position: relative; height: 20px; background: var(--grey); border-radius: 4px; }
.gb-t .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--purple); border-radius: 4px; transition: width 200ms ease-out; }
.gb.bind .gb-t .fill { background: var(--orange); }
.gb-t .mark { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 1px solid var(--ink); }
.gb-t .mark.two { border-left-style: dashed; }
.gb-v { font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.gb.bind .gb-v { color: #B23A1C; }
.gb-legend { display: flex; gap: 24px; font-size: 13px; color: var(--muted); margin-left: 260px; }
.gb-legend i { display: inline-block; width: 0; height: 14px; border-left: 1px solid var(--ink); margin-right: 8px; vertical-align: -2px; }
.gb-legend i.k2 { border-left-style: dashed; }
.cap-tools { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.cap-tools p { margin: 0; }
.caps { border-top: 1px solid var(--line); }
.cap { border-bottom: 1px solid var(--line); }
.cap-row { display: grid; grid-template-columns: 24px minmax(0, 1.3fr) minmax(80px, 1fr) 96px 104px; gap: 16px; align-items: center; padding: 10px 0; }
.cap-t { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid #C9CBCE; background: #fff; cursor: pointer; padding: 0; position: relative; }
.cap-t[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); }
.cap-t[aria-pressed="true"]::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cap-n { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font-size: 16px; line-height: 22px; }
.cap-n:hover { color: var(--purple-text); }
.cap-bar { height: 8px; background: var(--grey); border-radius: 4px; overflow: hidden; }
.cap-bar i { display: block; height: 100%; background: #C7AEFD; }
.cap:has(.cap-t[aria-pressed="true"]) .cap-bar i { background: var(--purple); }
.cap-v { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cap-v b { font-weight: 400; font-size: 16px; color: var(--ink); }
.cap-h { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cap-rule { padding: 0 0 20px 40px; max-width: 900px; }
.cap-rule .rule { margin-top: 8px; }
.ctls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ctl { background: var(--grey); border-radius: var(--r-surface); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ctl-h { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; line-height: 22px; }
.ctl-h output { font-size: 24px; line-height: 28px; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.ctl-b { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 19px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: none; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: #DCDDDE; border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--purple); margin-top: -8px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
input[type="range"]::-moz-range-track { height: 4px; background: #DCDDDE; border-radius: 2px; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--purple); }
input[type="range"]:disabled { opacity: 0.4; cursor: default; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.sb { display: flex; align-items: center; gap: 4px; }
.sb button { width: 32px; height: 32px; border-radius: var(--r-control); border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.sb button:hover { border-color: var(--purple); }
.sb output { min-width: 32px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.ltable { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.ltable th { text-align: left; font-weight: 400; font-size: 13px; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ink); }
.ltable td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ltable .r { text-align: right; }
.ltable .f { display: block; font-size: 12px; margin-top: 2px; }
.ltable tr.bind td:last-child { color: #B23A1C; }
.signers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.signer .k { font-size: 14px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.signer ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 22px; }
.signer li { padding: 4px 0; cursor: default; }
.signer li .muted { font-size: 13px; }
.signers.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.signer .k .muted { display: block; font-size: 12.5px; line-height: 18px; margin-top: 2px; }
.signer p { margin: 8px 0 0; }
.gb-sep { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 21px; color: var(--muted); max-width: 820px; }
.gb-sep b { font-weight: 400; color: var(--ink); }
.ext-dep { margin-top: 40px; background: var(--grey); border-radius: var(--r-surface); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.ed-h { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.ed-h .muted { font-size: 13px; }
.ed-v { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ed-v > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 19px; }
.ed-v b { font-weight: 400; font-size: 26px; line-height: 32px; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.ext-dep p { margin: 0; }

/* ---------------------------------------------------------------- price */
.band-legend { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.loads { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 32px; font-size: 14px; line-height: 21px; }
.loads div { display: flex; flex-direction: column; }
.loads .k { color: var(--muted); font-size: 13px; }
.pa-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; line-height: 20px; color: var(--muted); margin-bottom: 16px; }
.pa-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pa-legend i { display: inline-block; flex: none; }
.pa-legend i.hand { width: 18px; height: 10px; background: #DCDDDE; border-radius: 2px; }
.pa-legend i.ai { width: 18px; height: 10px; background: var(--purple); border-radius: 2px; }
.pa-legend i.price { width: 3px; height: 16px; background: var(--ink); border-radius: 1px; }
.pa-legend i.pdot-k { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.pa-legend i.pdot-k.out { background: #fff; border: 1.5px solid #9AA0A6; }
.pa-legend i.efs-k { width: 18px; height: 8px; background: var(--purple); border-radius: 4px; }
.pa-legend i.fl-k { width: 0; height: 14px; border-left: 2px solid var(--ink); }
.pa-legend i.fl-k.ai { border-left: 2px dashed var(--purple); }
.pareas { display: flex; flex-direction: column; gap: 10px; }
.pa-axis { position: relative; height: 18px; margin-left: 276px; margin-right: 136px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pa-axis span { position: absolute; transform: translateX(-50%); }
.pa { display: grid; grid-template-columns: 260px minmax(0, 1fr) 120px; gap: 16px; align-items: center; }
.pa-l { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; line-height: 21px; }
.pa-l .muted { font-size: 13px; white-space: nowrap; }
.pa-t { position: relative; height: 18px; }
.pa-t i { position: absolute; top: 0; bottom: 0; left: 0; display: block; }
.pa-t .hand { background: #E6E7E8; border-radius: 3px; }
.pa-t .ai { background: var(--purple); border-radius: 3px; top: 4px; bottom: 4px; }
.pa-t .price { width: 3px; margin-left: -1px; top: -3px; bottom: -3px; background: var(--ink); border-radius: 1px; }
.pa-v { font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa-v b { font-weight: 400; font-size: 16px; }
.pa-v .muted { font-size: 13px; }
.mk { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: start; }
.mk-list { border-top: 1px solid var(--line); max-height: 760px; overflow: auto; }
.mk-g { font-size: 13px; color: var(--muted); padding: 12px 0 8px; }
.mk-list button[role="listitem"] { width: 100%; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; }
.mk-list button[role="listitem"]:hover { background: var(--grey); }
.mk-list button[aria-current="true"] { background: var(--tp); }
.mk-list .nm { font-size: 15px; line-height: 21px; }
.mk-list .ps { font-size: 12px; color: var(--muted); }
.mk-more { padding: 12px 0; }
.mk-detail h4 { margin-bottom: 4px; }
.mk-detail .lstats { margin: 24px 0 32px; }
.mk-detail .lstat .v { font-size: 26px; line-height: 32px; letter-spacing: -0.5px; }
.mk-chart { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mk-r { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 16px; align-items: center; }
.mk-l { font-size: 13px; color: var(--muted); }
.mk-t { position: relative; height: 28px; border-bottom: 1px solid var(--grey); margin-right: 8px; }
.mk-r.ax .mk-t { border: 0; height: 18px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mk-r.ax span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.mk-t i { position: absolute; display: block; }
.mk-t .pdot { width: 11px; height: 11px; margin-left: -5.5px; top: 8px; border-radius: 50%; background: var(--ink); opacity: 0.9; }
.mk-t .pdot.out { background: #fff; border: 1.5px solid #9AA0A6; opacity: 1; }
.mk-t .band { top: 6px; bottom: 6px; background: var(--tp); border-radius: 3px; min-width: 2px; }
.mk-t .med { top: 2px; bottom: 2px; width: 2px; margin-left: -1px; background: var(--purple-text); }
.mk-t .efs { top: 10px; height: 8px; background: var(--purple); border-radius: 4px; margin-left: -3px; }
.mk-t .fl { top: 2px; bottom: 2px; width: 0; border-left: 2px solid var(--ink); }
.mk-t .fl.ai { border-left: 2px dashed var(--purple); }
.mk-pos { font-size: 16px; line-height: 24px; }
.mk-pos b { font-weight: 500; }
.mk-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.mkp { background: var(--grey); border-radius: var(--r-surface); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mkp.out { background: #fff; border: 1px dashed #D5D7D9; }
.mkp-h { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; line-height: 22px; }
.mkp-h .a { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mkp details summary { margin-top: 0; }
.mkp blockquote { margin: 8px 0; padding: 10px 12px; background: #fff; border-radius: var(--r-control); font-size: 13px; line-height: 19px; overflow-wrap: anywhere; }
.mkp.out blockquote { background: var(--grey); }
.mkp a { font-size: 12px; overflow-wrap: anywhere; color: var(--muted); }
.pk { border-top: 1px solid var(--line); }
.pk-r { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; align-items: baseline; }
.pk-m b, .pk-e b { font-weight: 400; font-variant-numeric: tabular-nums; }
.pk-m .muted, .pk-e .muted { font-size: 13px; }

/* ---------------------------------------------------------------- a client */
.cl-switch { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 48px; }
.synth { font-size: 14px; line-height: 21px; padding: 6px 12px; border-radius: var(--r-control); background: #FDE7E1; color: #8A2A12; }
.cl-head h3 { margin-bottom: 12px; }
.cl-head .lead { max-width: 70ch; margin-bottom: 32px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mem { display: flex; flex-direction: column; gap: 4px; }
.mem h4 { font-size: 18px; line-height: 24px; letter-spacing: -0.2px; margin: 0 0 8px; }
.mem dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 0 0 8px; font-size: 14px; line-height: 20px; }
.mem dt { color: var(--muted); }
.mem dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.eng { padding: 32px 0; border-top: 1px solid var(--line); }
.eng-h { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.eng-h h4 { margin-bottom: 4px; }
.eng-h p { margin: 0; }
.eng-p { font-size: 15px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.eng-p b { font-weight: 400; font-size: 20px; font-variant-numeric: tabular-nums; }
.goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.goal { background: var(--grey); border-radius: var(--r-surface); padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.goal .k { font-size: 13px; color: var(--purple-text); }
.goal .gn { font-size: 18px; line-height: 25px; letter-spacing: -0.2px; }
.gl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.goal .seg { background: #fff; }
.goal .seg button[aria-pressed="true"] { background: var(--tp); box-shadow: none; }
.gc { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.grows { margin: 4px 0 0; padding-left: 20px; font-size: 14px; line-height: 21px; }
.grows li { padding: 3px 0; }
.grows li.off { color: var(--faint); }
.af { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.af-list { border-top: 1px solid var(--line); }
.af-list button { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.af-list button:hover { background: var(--grey); }
.af-list button[aria-current="true"] { background: var(--tp); }
.af-list .nm { font-size: 15px; line-height: 21px; }
.af-list .st { font-size: 12px; color: var(--muted); }
.af-view { background: var(--grey); border-radius: var(--r-overlay); padding: 24px; min-width: 0; }
.af-view h4 { margin: 4px 0 4px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 16px 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 8px 12px; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--purple); }
.af-pane { min-height: 160px; }
.kvl { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 15px; line-height: 22px; }
.kvl dt { color: var(--muted); }
.kvl dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 21px; }
.hist li:first-child { border-top: 0; }
.hist .d { color: var(--muted); grid-row: span 2; font-variant-numeric: tabular-nums; }
.hist b { font-weight: 500; }
.plain { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 24px; }
.plain li { padding: 4px 0; }
.round { padding: 12px 0; border-top: 1px solid var(--line); }
.round:first-child { border-top: 0; padding-top: 0; }
.round .kvl { margin-top: 8px; }
.obl { border-top: 1px solid var(--line); }
.ob { display: grid; grid-template-columns: 120px minmax(0, 1fr) 200px; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.ob .d { font-variant-numeric: tabular-nums; color: var(--muted); }
.ob .c { font-size: 13px; color: var(--muted); text-align: right; }
.ob.stat .c { color: var(--ink); }

/* ---------------------------------------------------------------- the year ahead */
.ytools { display: flex; flex-direction: column; gap: 12px; margin: 56px 0 24px; }
.ytools p { margin: 0; }
.seg.chips { background: none; padding: 0; gap: 6px; }
.seg.chips button { background: var(--grey); }
.seg.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.mlegend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.mlegend span { display: inline-flex; align-items: center; gap: 8px; }
.mlegend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.mlegend i.s { background: var(--ink); }
.mlegend i.o { background: var(--purple); }
.mlegend i.n { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.mstrip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.mcol { border: 0; background: none; padding: 8px 0 0; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; gap: 4px; border-radius: var(--r-control); }
.mcol:hover { background: var(--grey); }
.mb { height: 120px; display: flex; flex-direction: column-reverse; padding: 0 22%; }
.mb i { display: block; width: 100%; }
.mb i.s { background: var(--ink); border-radius: 2px 2px 0 0; }
.mb i.o { background: var(--purple); }
.mb i.s + i.o, .mb i.o:last-child { border-radius: 2px 2px 0 0; }
.mn { font-size: 14px; font-variant-numeric: tabular-nums; text-align: center; }
.ml { font-size: 12px; color: var(--muted); text-align: center; padding: 2px 0 8px; position: relative; }
.mcol.past { opacity: 0.45; }
.mcol.now .ml::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--orange); }
.mstrip + .linkbtn { margin: 24px 0 8px; }
.ym { padding-top: 32px; scroll-margin-top: 80px; }
.ym h4 { font-size: 20px; line-height: 28px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin: 0; }
.yr { border-bottom: 1px solid var(--line); }
.yr > button { width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) 120px; gap: 16px; padding: 12px 0; border: 0; background: none; text-align: left; cursor: pointer; align-items: start; }
.yr > button:hover { background: linear-gradient(90deg, var(--grey), rgba(247,248,248,0)); }
.yr .dd { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.yr .dd b { font-weight: 400; font-size: 24px; line-height: 28px; letter-spacing: -0.4px; }
.yr .dd span { font-size: 12px; color: var(--muted); }
.yr .yn { display: flex; flex-direction: column; font-size: 16px; line-height: 23px; }
.yr .yn .muted { font-size: 13px; line-height: 19px; margin-top: 2px; }
.yr .yc { font-size: 13px; text-align: right; padding-top: 3px; color: var(--muted); }
.yr .yc.statutory { color: var(--ink); }
.yr.past { color: var(--muted); }
.yr.past .dd b { color: var(--muted); }
.yb { display: none; padding: 0 0 20px 80px; }
.yr.open .yb { display: block; }
.yb .kvl { font-size: 14px; line-height: 21px; }
.q { margin: 16px 0 8px; padding: 10px 14px; background: var(--tb); border-radius: var(--r-control); font-size: 14px; line-height: 21px; }
.prev { margin-top: 32px; }
.prev ul { margin-top: 8px; color: var(--muted); }

/* ---------------------------------------------------------------- checks */
.blad { display: flex; flex-direction: column; gap: 4px; }
.bl-r { display: grid; grid-template-columns: 260px minmax(0, 1fr) 180px; gap: 16px; align-items: center; padding: 10px 0; }
.bl-r.head { padding: 0; }
.bl-l { display: flex; flex-direction: column; font-size: 15px; line-height: 21px; }
.bl-l b { font-weight: 400; }
.bl-l .muted { font-size: 13px; font-variant-numeric: tabular-nums; }
.bl-h { position: relative; height: 18px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bl-h span { position: absolute; transform: translateX(-50%); }
.bl-h span:first-child { transform: none; }
.bl-h span:last-child { transform: translateX(-100%); }
.bl-h span.b99 { transform: translateX(-25%); }
.bl-t { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; height: 28px; }
.bl-t i { display: block; background: var(--grey); border-radius: 3px; }
.bl-t i.w { background: repeating-linear-gradient(135deg, var(--grey) 0 6px, #ECEDEE 6px 8px); }
.bl-h span.b99 { color: var(--ink); }
.bl-v { display: flex; flex-direction: column; font-size: 13px; line-height: 19px; }
.bl-v b { font-weight: 400; font-size: 20px; line-height: 26px; font-variant-numeric: tabular-nums; }
.tester { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; }
.t-in { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.t-q { background: var(--grey); border-radius: var(--r-surface); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tq { font-size: 24px; line-height: 32px; letter-spacing: -0.4px; }
.t-a { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.t-a .k { color: var(--muted); }
.t-a output { font-size: 24px; font-variant-numeric: tabular-nums; }
.t-r { background: var(--tb); border-radius: var(--r-surface); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.t-b { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 10px; }
.t-b .k { color: var(--muted); }
.t-b b { font-weight: 400; font-variant-numeric: tabular-nums; text-align: right; }
.t-route { font-size: 22px; line-height: 30px; letter-spacing: -0.3px; }
.t-route.pass { color: var(--purple-text); }
.t-r p { margin: auto 0 0; }
.topq { list-style: none; counter-reset: q; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--line); }
.topq li { counter-increment: q; display: grid; grid-template-columns: 32px minmax(0, 1fr) 200px 56px; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.topq li::before { content: counter(q); color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.topq .tb { height: 8px; background: var(--grey); border-radius: 4px; overflow: hidden; }
.topq .tb i { display: block; height: 100%; background: var(--purple); }
.topq .tn { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- neighbours */
.nb { display: flex; flex-direction: column; }
.nb-r { display: grid; grid-template-columns: 200px repeat(var(--n), minmax(0, 1fr)); gap: 0 8px; border-bottom: 1px solid var(--line); }
.nb-r.head { border-bottom: 1px solid var(--ink); position: sticky; top: 60px; background: rgba(255,255,255,0.96); z-index: 2; }
.nq { font-size: 14px; line-height: 20px; color: var(--muted); padding: 12px 8px 12px 0; }
.nh { display: flex; flex-direction: column; padding: 12px 10px; font-size: 15px; line-height: 21px; }
.nh b { font-weight: 400; }
.nh .muted { font-size: 12px; line-height: 17px; }
.nc { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; font-size: 13.5px; line-height: 19px; min-width: 0; overflow-wrap: anywhere; }
.nc a { color: var(--ink); text-decoration-color: #C9CBCE; }
.nc a:hover { color: var(--purple-text); text-decoration-color: var(--purple); }
.nc small { color: var(--muted); font-size: 11.5px; }
.nc .fn { display: none; }
.nh.efs, .nc.efs { background: var(--tp); }
.nc.gap .g { color: var(--faint); font-size: 12.5px; }
.nc.gap { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,0.025) 6px 7px); }
.nc.gap.efs { background-color: var(--tp); }
.nc .why { font-size: 12px; line-height: 17px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nc.gap .g a { color: var(--muted); }
.nc.none .g { color: var(--faint); }
.held { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.held p { margin: 0; }
.held b { font-weight: 500; color: var(--ink); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .cap-head { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .mk, .af { grid-template-columns: minmax(0, 1fr); }
  .mk-list { max-height: 360px; }
  .signers, .signers.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tester { grid-template-columns: minmax(0, 1fr); }
  .nb-r { grid-template-columns: 140px repeat(var(--n), minmax(0, 1fr)); }
  .band-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lsub { margin-top: 72px; }
  .lstats, .lstats.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lstat { padding: 18px 12px 18px 0; }
  .lstat .v { font-size: 26px; line-height: 32px; letter-spacing: -0.5px; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .cap-big { font-size: 80px; line-height: 84px; letter-spacing: -2.4px; }
  .cap-sub { font-size: 17px; line-height: 25px; }
  .gb-axis, .gb-legend { margin-left: 0; margin-right: 64px; }
  .gb { grid-template-columns: minmax(0, 1fr) 56px; gap: 4px 12px; }
  .gb-l { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; gap: 8px; }
  .gb-v { font-size: 15px; }
  .cap-row { grid-template-columns: 24px minmax(0, 1fr) 64px; gap: 6px 12px; }
  .cap-bar { grid-column: 2 / 3; }
  .cap-h { grid-column: 3; grid-row: 2; }
  .cap-v { grid-row: 1; grid-column: 3; }
  .cap-rule { padding-left: 0; }
  .ctls, .signers, .signers.three, .ed-v { grid-template-columns: minmax(0, 1fr); }
  .ed-v { gap: 12px; }
  .ltable.keep2 th:nth-child(2), .ltable.keep2 td:nth-child(2) { display: table-cell; }
  .ltable { font-size: 14px; }
  .ltable th:nth-child(2), .ltable td:nth-child(2) { display: none; }
  .band-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-axis { margin-left: 0; margin-right: 0; }
  .pa { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .pa-l { grid-column: 1 / -1; }
  .pa-t { grid-column: 1 / -1; grid-row: 2; }
  .pa-v { grid-column: 1 / -1; grid-row: 3; text-align: left; }
  .mk-r { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
  .mk-l { font-size: 11.5px; line-height: 15px; }
  .mk-prices { grid-template-columns: minmax(0, 1fr); }
  .pk-r { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .goals { grid-template-columns: minmax(0, 1fr); }
  .af-view { padding: 16px; }
  .kvl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kvl dd { margin-bottom: 8px; }
  .ob { grid-template-columns: 96px minmax(0, 1fr); gap: 2px 12px; }
  .ob .c { grid-column: 2; text-align: left; }
  .mstrip { gap: 2px; }
  .mb { height: 80px; padding: 0 16%; }
  .ml { font-size: 10.5px; }
  .mn { font-size: 12px; }
  .yr > button { grid-template-columns: 44px minmax(0, 1fr); }
  .yr .yc { grid-column: 2; text-align: left; padding: 0; }
  .yr .dd b { font-size: 20px; }
  .yb { padding-left: 0; }
  .bl-r { grid-template-columns: minmax(0, 1fr) 96px; gap: 6px 12px; }
  .bl-l { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; gap: 8px; }
  .bl-r.head > div:first-child, .bl-r.head > div:last-child { display: none; }
  .bl-r.head { grid-template-columns: minmax(0, 1fr) 96px; }
  .bl-h span:nth-child(even) { display: none; }
  .tq { font-size: 20px; line-height: 27px; }
  .topq li { grid-template-columns: 24px minmax(0, 1fr) 48px; gap: 4px 10px; }
  .topq .tb { grid-column: 2; grid-row: 2; }
  .topq .tn { grid-row: 1; grid-column: 3; }
  .nb-r.head { display: none; }
  .nb-r { grid-template-columns: minmax(0, 1fr); padding: 16px 0 8px; border-bottom: 1px solid var(--line); }
  .nq { color: var(--ink); font-size: 17px; line-height: 24px; padding: 0 0 8px; }
  .nc { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 2px 12px; padding: 7px 8px; border-top: 1px solid var(--grey); }
  .nc .fn { display: block; grid-row: span 6; color: var(--muted); font-size: 13px; }
  .nc.gap { background-image: none; }
  .nc.gap .g { font-size: 13px; }
}

/* nav with twelve sections */
@media (min-width: 761px) { .nav li a { padding: 8px 9px; } .nav .wrap { gap: 16px; } }
/* one section on its own */
body.only main > section:not(.only-this), body.only footer { display: none; }
.pa-axis span:first-child, .gb-axis span:first-child { transform: none; }
.pa-axis span:last-child { transform: translateX(-100%); }
@media (max-width: 760px) {
  .cap-row { grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 6px 10px; }
  .cap-n { grid-column: 2 / -1; }
  .cap-bar { grid-column: 2; grid-row: 2; }
  .cap-v { grid-column: 3; grid-row: 2; }
  .cap-h { grid-column: 4; grid-row: 2; }
}
.ctl-h output { white-space: nowrap; }

.dsrc { overflow-wrap: anywhere; margin-bottom: 4px; }
