/* The hub's screens (§HUB: ui/hubui.js). The stores, a crate, the armory and the computer stand in the frame (style/sheet.css `the frame`) and wear the Inventory's rows (style/sheet.css `the pack and the bench`: their page is a
   `.pack`); what is theirs alone is here. The waking card stands inside the death card (style/dead.css). Nothing here is a length, a colour or a time of its own: the HUD's tokens (data/hud.js `HUD.tokens`), the pack's rows
   (`HUD.text.inventory.look`) and the rows of data/hub.js `look`, which hubui.js sets on the page or the card that wears them as custom properties (tests/sheets.test.mjs holds this rule: no number with a unit and no
   colour is written here, no colour is left for the browser to mix, and the ground under words is a `background-color`). Red is the body's alone: nothing here is red; what is to be looked at is the lamp's. A narrow window needs
   no rule of its own: a row wraps its buttons under its name where the room is short. data-hub-wake on <html> is the waking card's. */

/* a sheet is shown while its screen is not hidden (ui/sheet.js) */
.hub-screen:not([hidden]) { display: grid; }

/* ── the stores, a crate, the armory, the computer ─────────────────────────────────────────────────────── */
/* a row: its picture, its name (and what stands small under it), its figure and its buttons; the one the pointer is over or the keys are on is the chosen one, as in the pack */
.pack .hub-lines { display: grid; }
.pack .hub-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hub-line-gap-y) var(--pack-row-gap); }
.pack .hub-line .nm { flex: 1 1 var(--hub-name-min); }
.pack .hub-line .c { flex: none; min-width: var(--hub-fig-w); text-align: right; }
.pack .hub-line:hover, .pack .hub-line:focus-within { border-left-color: var(--lamp); background-color: var(--pack-wash); }
.pack .lot { margin-left: var(--pack-mark-gap); color: var(--ink-dim); }
.pack .hub-acts { display: flex; flex: none; justify-content: flex-end; gap: var(--hub-acts-gap); min-width: var(--hub-acts-w); }
/* the small buttons: framed in the faint ink, the lamp's edge and ground under the pointer or the keys; one that cannot be pressed is dashed and dim, and is still reached (aria-disabled), and says why when it is pressed */
.pack .hub-act {
  box-sizing: border-box; height: var(--hub-act-h); margin: 0; padding: 0 var(--hub-act-pad);
  border: var(--pack-edge) solid var(--ink-faint); border-radius: 0; background-color: transparent;
  font: var(--weight-say) var(--size-label) / 1 var(--font-text); letter-spacing: normal; text-transform: none; white-space: nowrap; color: var(--ink);
  transition: border-color var(--warm), background-color var(--warm), color var(--warm);
}
.pack .hub-act:hover:not(:disabled), .pack .hub-act:focus-visible:not(:disabled) { border-color: var(--lamp); background-color: var(--pack-wash); color: var(--ink); }
.pack .hub-act:focus-visible { outline: var(--plate-rule) solid var(--ink); outline-offset: var(--plate-rule); }
.pack .hub-act[aria-disabled='true'], .pack .hub-act[aria-disabled='true']:hover:not(:disabled), .pack .hub-act[aria-disabled='true']:focus-visible:not(:disabled) {
  border-style: dashed; border-color: var(--ink-faint); background-color: transparent; color: var(--ink-faint); cursor: default;
}
/* the armory's figures: as many columns as each has the room to say its name and its figures whole, and fewer where it has not (a phone on its side: one); a name is never broken inside a word */
.pack .cols.hub-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--hub-stat-min)), 1fr)); }
.pack .hub-stats .nm { overflow-wrap: normal; }
/* the button at the top of a body, or under what is needed, and the words beside it that say why it cannot be pressed */
.pack .hub-btns { align-items: center; gap: 0 var(--hub-btns-gap); }
.hub-page > .btns:first-child { margin-top: 0; }
.hub-why { font: var(--weight-read) var(--size-read) / var(--hub-lead) var(--font-text); color: var(--ink-dim); }
.hub-why:empty { display: none; }

/* the computer: the site's banners and its flash deal stand over the coins carried, which stay in view while the stock under them scrolls; the count turns to the lamp's colour when a purchase is refused, and the reason stands beside it */
.hub-shop { height: 100%; grid-template-rows: auto auto minmax(0, 1fr); }
.hub-purse { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--hub-purse-gap); margin: 0 0 var(--hub-purse-bottom); }
.hub-purse .fig { font: var(--weight-label) var(--size-figure) / 1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); transition: color var(--warm); }
.hub-purse .fig[data-refused] { color: var(--lamp); }
.hub-purse .cap { margin: 0; font: var(--weight-label) var(--size-label) / var(--hub-lead) var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-faint); }
.hub-stock { display: grid; gap: var(--pack-gap); align-content: start; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ink-faint) transparent; }

/* ── waking: inside the death card, under its facts: base camp, what lies where you fell, the lantern's time left; then who carries on, or the end ─────────────────────────────────────────────── */
.hub-wake { display: none; }
html[data-hub-wake] .hub-wake { display: grid; justify-items: start; }
.hub-wake [hidden] { display: none; }
.hub-wake .stats-list { margin-bottom: var(--hub-wake-bottom); }
.hub-wake .stats-list .val { overflow-wrap: anywhere; }
/* the card's one lit button: the lamp's edge and ground, the key that uses drawn on it */
.hub-go {
  display: inline-flex; align-items: center; gap: var(--pack-btn-gap); box-sizing: border-box; height: var(--pack-btn-h); margin: 0; padding: 0 var(--pack-btn-pad);
  border: var(--pack-edge) solid var(--lamp); border-radius: 0; background-color: var(--pack-go); box-shadow: inset var(--plate-rule) 0 0 var(--lamp);
  font: var(--weight-say) var(--size-say) / 1 var(--font-text); letter-spacing: normal; text-transform: none; white-space: nowrap; color: var(--ink);
}
.hub-go:hover:not(:disabled), .hub-go:focus-visible:not(:disabled) { background-color: var(--pack-go); color: var(--ink); }
.hub-go:focus-visible { outline: var(--plate-rule) solid var(--ink); outline-offset: var(--plate-rule); }
/* Who carries on, and the end: a title's look (a sheet's title, smaller), and under it each person as a row of the pack's look, or the count of those lost */
.hub-ask { margin: var(--hub-ask-top) 0 var(--hub-ask-bottom); font: var(--weight-title) calc(var(--size-title) * var(--hub-ask-scale)) / var(--hub-ask-lead) var(--font-display); font-stretch: condensed; letter-spacing: var(--track-title); text-transform: uppercase; }
.hub-carry { display: grid; gap: var(--hub-carry-gap); align-content: start; width: var(--hub-carry-w); max-height: var(--hub-carry-h); margin: 0 0 var(--hub-carry-bottom); padding: 0 var(--hub-carry-air) 0 0; overflow-y: auto; list-style: none; }
.hub-carry li { display: grid; margin: 0; padding: 0; }
.hub-carrier {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--hub-carrier-gap);
  box-sizing: border-box; min-height: var(--pack-row-h); margin: 0; padding: var(--pack-row-pad-y) var(--pack-row-pad-r) var(--pack-row-pad-y) var(--pack-row-pad-l);
  border: 0; border-bottom: var(--pack-edge) solid var(--rule); border-left: var(--plate-rule) solid transparent; border-radius: 0; background-color: transparent;
  font: var(--weight-say) var(--size-say) / var(--hub-lead) var(--font-text); letter-spacing: normal; text-transform: none; text-align: left; color: var(--ink);
  transition: color var(--warm), background-color var(--warm), border-color var(--warm);
}
.hub-carrier:hover:not(:disabled), .hub-carrier:focus-visible:not(:disabled) { border-left-color: var(--lamp); background-color: var(--pack-wash); color: var(--ink); }
.hub-carrier .hub-who { grid-column: 1; grid-row: 1; overflow-wrap: anywhere; }
.hub-carrier .hub-skills { grid-column: 1; grid-row: 2; }
.hub-carrier .hub-role { grid-column: 2; grid-row: 1 / span 2; }
.hub-carrier .hub-skills, .hub-carrier .hub-role { font: var(--weight-read) var(--size-label) / var(--hub-lead) var(--font-text); color: var(--ink-dim); }
.hub-gone { display: grid; justify-items: start; }
.hub-lost { margin: 0 0 var(--hub-lost-bottom); font: var(--weight-label) var(--size-figure) / 1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); }

/* the site the computer opens (#84): its banners in the sheet's display face, the flash deal's clock in the lamp's colour (what is to be looked at), the old price crossed out above the real one, and how many are buying under a ware's title */
.hub-banner { display: grid; gap: var(--hub-line-gap-y); margin: 0 0 var(--hub-purse-bottom); }
.hub-slogan { margin: 0; font: var(--weight-label) var(--size-say) / var(--hub-lead) var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink); }
.hub-deal { color: var(--lamp); font-variant-numeric: tabular-nums; }
.pack .hub-line .price .was { display: block; color: var(--ink-faint); text-decoration: line-through; }
.hub-way { margin: 0; font: var(--weight-read) var(--size-read) / var(--hub-lead) var(--font-text); color: var(--ink-dim); }
.hub-way:empty { display: none; }
