/* house.css — the few shared pieces the nine House pages need that the shipped system.css has no
   class for. Tokens only (system.css variables); nothing here forks a page. Written by Vesper,
   3 Oct 2026, because wiring to live data meant states the comps never showed: a confirm, a
   status line, an account pinned on the loyalty scale, a card that is one big link.            */

button.link{background:none;border:0;padding:0;font:inherit;font-weight:600;color:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
.row.wrap{flex-wrap:wrap}

/* status line: what the game said back after an action (role="status", polite) */
.h-say{position:fixed;left:50%;bottom:24px;translate:-50% 0;z-index:50;max-width:min(92vw,640px);background:var(--ink);color:var(--ground);padding:14px 22px;border-radius:999px;font:600 15px/1.35 Inter,sans-serif;text-align:center}
.h-say[hidden]{display:none}

/* confirm: a native dialog, so focus is trapped and Esc cancels for free */
dialog.h-dialog{border:1px solid var(--line);border-radius:var(--r);background:var(--card);color:var(--ink);padding:32px;width:min(92vw,520px)}
dialog.h-dialog::backdrop{background:rgba(13,14,18,.62)}
dialog.h-dialog h2{font-size:30px}
dialog.h-dialog .lead{margin-top:10px;font-size:17px}
dialog.h-dialog .kv{margin-top:6px}
dialog.h-dialog .h-rows{margin-top:20px}
dialog.h-dialog .h-note{margin-top:14px;padding:12px 14px;border-radius:var(--r-sm);background:var(--warn-bg);color:var(--ink);font-size:15px}
dialog.h-dialog .row.h-btns{margin-top:24px;justify-content:flex-end;gap:12px}

/* a card whose name is the link: the whole card is the hit area */
.card.face{cursor:pointer}
.card.face h3 a{text-decoration:none;color:inherit}
.card.face h3 a:focus-visible{outline:none}
.card.face:has(h3 a:focus-visible){outline:3px solid var(--ink);outline-offset:3px}

/* an account sitting on the loyalty scale */
.scale .pin{position:absolute;top:-30px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;max-width:140px}
.scale .pin b{font:600 14px/1.1 Inter,sans-serif;white-space:nowrap;background:var(--ink);color:var(--ground);padding:3px 9px;border-radius:999px}
.scale .pin.bad b{background:var(--bad);color:var(--on-status)}
.scale .pin i{width:2px;height:12px;background:var(--ink)}
.scale.has-pins{margin-top:64px}

.empty-note{max-width:60ch}
.h-noscript{padding:32px;font:600 18px/1.4 Inter,sans-serif}

.btn[disabled],.btn[aria-disabled="true"]{opacity:.55;cursor:not-allowed;filter:none}

[hidden]{display:none!important}

/* the featured top-up card is inverted (ink ground), so its button inverts with it */
.pack.pickc .btn-sec{color:var(--card);border-color:var(--card)}
.pack.pickc .btn-sec:hover{background:rgba(127,127,127,.25)}

/* the Vault's spotlight glow (.spot::before) runs 8% past the column and made the phone scroll sideways; clip it, don't scroll it */
.main{overflow-x:clip}

/* review fix 3: the orange ring is 2.4:1 on the light ground. Light uses ink; dark keeps orange (it clears 3:1 there). */
:root:not([data-theme="dark"]) :focus-visible{outline-color:var(--ink)}
:root:not([data-theme="dark"]) .field input:focus{outline-color:var(--ink)}

/* review fix 5: skip link */
.skip{position:absolute;left:12px;top:-60px;z-index:100;background:var(--orange);color:var(--on-orange);padding:12px 18px;border-radius:999px;font:600 16px/1 Inter,sans-serif;text-decoration:none}
.skip:focus{top:12px}

/* review fix 4 / 16: touch targets at least 44px, at every width (the mobile-only scope missed the 1440 theme switch, logo and inline links) */
.link,button.link,.switch button,.brand,.card.face h3 a,.nav-links a,details:not(.menu)>summary,.tog,label.pk,label.rh,.others .btn{min-height:44px;display:inline-flex;align-items:center}
.btn-sm{padding-block:12px;min-height:44px}
.nav-links a{display:flex}
.brand{min-width:44px}
.skip{padding-block:14px}
label.pk,label.rh{display:grid}
@media (max-width:900px){.fine a,.small a,.menu summary{min-height:44px;display:inline-flex;align-items:center}}


/* the captain's name is an h2 now (page h1 is visually hidden); keep the comp's .captain h1 look */
.captain h2.cap-name{font-weight:900;font-size:clamp(44px,5.4vw,76px);line-height:.96;letter-spacing:-.03em}

/* the nav is dark in light mode and light in dark mode, so its ring follows the nav ink, not the page ink (found by Tab run: the ink ring vanished on the dark nav) */
html:root .nav :focus-visible{outline-color:var(--nav-ink)}
.skip:focus-visible{outline:3px solid var(--ground);outline-offset:2px}
html:root .nav .brand:focus-visible{outline:3px solid var(--nav-ink);outline-offset:-3px;border-radius:12px}
/* an inline <a> wrapping a block <img> paints no outline in Chromium (found by pixel diff); make it a box */
.nav .brand{display:inline-block;border-radius:12px}

/* Small touches: a quieter shelf, outline buttons only */
.shelf-h{font-size:20px;margin:var(--s-card) 0 var(--s-in)}
.touch{display:flex;flex-direction:column;gap:14px;align-items:flex-start;padding:22px}
.swatch{width:56px;height:56px;border-radius:50%;border:2px solid var(--line-strong);display:block}
.glyph{font:500 44px/1 "JetBrains Mono",monospace;color:var(--brass,var(--ink))}

/* "How this works" (the ? disc and its dialog) was removed on 10 Oct 2026: the strip's "What to do here" (assets/js/pn-help.js) explains every page. */
.main{position:relative}

/* Vault > Spend it: two room cards, each one a link (the whole card is the target) */
a.card.face.room{display:flex;flex-direction:column;text-decoration:none;color:inherit;overflow:hidden;padding:0}
a.card.face.room .photo{aspect-ratio:16/9;border:0;border-radius:0}
a.card.face.room .in{padding:24px;display:flex;flex-direction:column;gap:12px;flex:1}
a.card.face.room .link{margin-top:auto}

/* Financials > The budget (Jon, 11 Oct: the CFO's split lives in the House, never the old window). One pot drawn as one bar, four
   envelopes as sliders. A slider is green while it can be signed and orange when Margaret blocks it (the old window's rule). 44px targets. */
.bud-stk{display:flex;height:16px;border-radius:99px;overflow:hidden;gap:3px;margin:20px 0 8px}
.bud-stk>div{min-width:0;transition:flex-grow .25s}
.bud-rows{display:grid}
.bud-row{--bud-c:var(--good);display:grid;grid-template-columns:minmax(200px,32%) minmax(0,1fr) 120px;gap:6px 24px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}
.bud-row:first-child{border-top:0}
.bud-row.is-over{--bud-c:var(--orange)}
.bud-k{display:grid;gap:2px;min-width:0}
.bud-k b{font-size:17px;display:inline-flex;align-items:center;gap:10px}
.bud-sw{display:inline-block;width:12px;height:12px;border-radius:4px;border:1px solid rgba(255,255,255,.18);flex:none}
.bud-v{text-align:right;font-size:18px;font-weight:500;font-variant-numeric:tabular-nums}
.bud input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:44px;margin:0;background:transparent;cursor:pointer}
.bud input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:99px;background:linear-gradient(90deg,var(--bud-c) var(--p,0%),rgba(255,255,255,.12) var(--p,0%))}
.bud input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;margin-top:-10px;border-radius:50%;background:var(--ink);border:5px solid var(--bud-c);box-shadow:0 2px 8px rgba(0,0,0,.45)}
.bud input[type=range]::-moz-range-track{height:8px;border-radius:99px;background:rgba(255,255,255,.12)}
.bud input[type=range]::-moz-range-progress{height:8px;border-radius:99px;background:var(--bud-c)}
.bud input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--ink);border:5px solid var(--bud-c)}
.bud input[type=range]:focus-visible{outline:2px solid var(--orange);outline-offset:2px;border-radius:12px}
.bud-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.bud-rw .pz-nm small{display:block;font-size:13px;margin-top:2px}
.bud-notes{display:grid;gap:10px;align-content:start}
.bud-w{font-size:15px;line-height:1.45;padding:10px 14px;border-radius:12px;background:var(--sunken);border-left:3px solid var(--line-strong)}
.bud-w.ok{border-left-color:var(--good)} .bud-w.warn{border-left-color:var(--warn)} .bud-w.bad{border-left-color:var(--bad);background:var(--bad-bg)}
.bud-ovr{display:flex;align-items:center;gap:12px;min-height:44px;font-size:15px;cursor:pointer}
.bud-ovr input{width:22px;height:22px;accent-color:var(--orange);margin:0}
@media (max-width:760px){
  .bud-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
  .bud-row .bud-k{grid-column:1}
  .bud-row .bud-v{grid-column:2;grid-row:1;align-self:start}
  .bud-row input[type=range]{grid-column:1/-1}
  .bud-foot{grid-template-columns:minmax(0,1fr)}
}

/* Financials > Report to Marlowe (it lived only in the CFO's old pressure room). Her card on the left, the report on the right; one column
   on a phone. Every pick is a 44px+ button with aria-pressed. */
.mrl{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:32px;align-items:start}
.mrl-who{display:grid;gap:14px}
.mrl-who .photo{aspect-ratio:1/1;border-radius:var(--r-sm);overflow:hidden}
.mrl-who .photo img{width:100%;height:100%;object-fit:cover;display:block}
.mrl-who h3{font-size:24px;line-height:1.1;letter-spacing:-.02em}
.mrl-stand{display:flex;justify-content:space-between;align-items:baseline;margin:8px 0 6px}
.mrl-stand b{font-size:22px}
.mrl-last{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:8px}
.mrl-q{margin:0;padding:12px 16px;border-left:3px solid var(--orange);background:var(--sunken);border-radius:12px;font-size:16px;line-height:1.5}
.mrl-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.mrl-stat{display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 10px;align-items:center;text-align:left;min-height:64px;padding:12px 14px;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--sunken);color:var(--ink);font:inherit;cursor:pointer}
.mrl-stat .mrl-tick{grid-row:1/3;width:24px;height:24px;border-radius:7px;border:2px solid var(--line-strong);display:grid;place-items:center;font-size:14px;font-weight:800}
.mrl-stat .mrl-sk{font-size:14px;color:var(--ink-2)}
.mrl-stat .mrl-sk span{white-space:nowrap}
.mrl-stat b{font-size:18px;font-weight:500}
.mrl-stat.on{border-color:var(--orange);box-shadow:inset 0 0 0 1px var(--orange)}
.mrl-stat.on .mrl-tick{background:var(--orange);border-color:var(--orange);color:var(--on-orange)}
.mrl-stat[disabled]{opacity:.5;cursor:not-allowed}
.mrl-tones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.mrl-tone{display:grid;gap:6px;text-align:left;min-height:44px;padding:14px 16px;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--sunken);color:var(--ink);font:inherit;cursor:pointer}
.mrl-tone b{font-size:16px}
.mrl-tone span{font-size:14px;line-height:1.4;color:var(--ink-2)}
.mrl-tone.on{border-color:var(--orange);box-shadow:inset 0 0 0 1px var(--orange)}
.mrl-stat:focus-visible,.mrl-tone:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.mrl-who .t-warn{color:var(--warn)} .mrl-who .t-ok{color:var(--good)} .mrl-who .t-bad{color:var(--bad)}
@media (max-width:1100px){.mrl-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  .mrl{grid-template-columns:minmax(0,1fr);gap:24px}
  .mrl-who{grid-template-columns:96px minmax(0,1fr);align-items:start}
  .mrl-who .photo{grid-row:1}
  .mrl-who .mrl-last{grid-column:1/-1}
  .mrl-stats,.mrl-tones{grid-template-columns:minmax(0,1fr)}
}
