/* CuccoStorm - the home, list and operator pages.
 * Copied from F:/EtherNet/web/css/ethernet.css and
 * F:/HyruleLink/web/css/hyrulelink.css (the "home page" and "operator"
 * blocks). What changed: the door's TikTok / Twitch / Both chips, the recent
 * desks list with an Open button, the strip note, the list page (DESIGN 4.5),
 * the operator cards say desk; no proof section (no real captures yet).
 * Uses the tokens and component classes of cuccostorm.css; redefines none.
 */

/* ------------------------------------------------------------ home page */

.home { max-width: 1080px; margin: 0 auto; padding: 28px var(--gutter) 64px; }
.home-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 9vh; }
.home-top nav a { color: var(--ink2); font-size: 14px; margin-left: 20px; text-decoration: none; }
.home-top nav a:hover { color: var(--ink); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 400px); gap: 56px; align-items: start; }
.home h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.home h1 em { font-style: normal; color: var(--gold); }
.lede { margin-top: 24px; max-width: 34em; font-size: 18px; color: var(--ink2); }
.works { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.works .label { margin-right: 6px; }

.door { padding: 22px; }
.door h2 { font-size: 19px; margin-bottom: 14px; }
.door > .label { display: block; margin-bottom: 8px; }
.door .door-q { margin: 16px 0 8px; }
.door-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.door-chips .chip { min-height: 32px; padding: 0 14px; font-size: 13px; }
.door .btn { width: 100%; margin-top: 16px; }
.door .hint { margin-top: 10px; }
.door .err { margin-top: 10px; }

.recent { margin-top: 14px; padding: 14px 22px; }
.recent > .label { display: block; margin-bottom: 8px; }
.recent-note { font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.recent-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center;
  padding: 7px 0; border-top: 1px solid var(--hair); }
.recent-row:first-child { border-top: 0; }
/* the desk's name over its id */
.recent-row a:not(.btn) { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-decoration: none;
  color: var(--ink2); font-size: 14px; }
.recent-row a:not(.btn):hover { color: var(--ink); }
.recent-row a:not(.btn) .mono { font-size: 12px; color: var(--mute); letter-spacing: .06em; }
.recent-row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-row .btn { width: auto; }

/* the how-it-goes ledger: numbered rows on hairlines, unequal on purpose */
.ledger { margin-top: 12vh; border-top: 1px solid var(--hair-strong); }
.ledger-row { display: grid; grid-template-columns: 92px minmax(0, 15em) minmax(0, 1fr); gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.ledger-row .n { font: 700 44px/1 var(--display); color: var(--faint); font-variant-numeric: tabular-nums; }
.ledger-row h3 { font-size: 21px; }
.ledger-row p { color: var(--ink2); max-width: 40em; }
.ledger-row p + p { margin-top: 10px; }
.strip-demo { margin-top: 16px; }
.ledger-row .strip-note { margin-top: 8px; font-size: 13px; color: var(--mute); }
.foot { margin-top: 48px; color: var(--mute); font-size: 13px; display: flex; gap: 6px 18px; flex-wrap: wrap; }

/* ------------------------------------------------------------ list page */

/* <main class="home list">: what chat can do, as a page people read on a
   phone. One column, 720 at most, no motion. */
.home.list { max-width: 720px; }
.list .home-top { margin-bottom: 34px; }
.list h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
/* the lede and the pot carry the streamer's name and effect names: a long
   one with no break in it wraps instead of scrolling the page at 360 px */
.list .lede { font-size: 16px; margin-top: 14px; overflow-wrap: anywhere; }
.list-state { margin-top: 10px; }
.list-pot { margin-top: 14px; font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.list-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 22px; }
.list-chips .chip { min-height: 30px; padding: 0 12px; font-size: 12.5px; }
.entries { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--hair-strong); }
.entry { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--hair); }
.entry.cool { opacity: .72; }
.entry .ask-pic { width: 40px; height: 40px; object-fit: contain; }
.entry .ask-pic.mark { padding: 8px; image-rendering: pixelated; }
.entry-main { min-width: 0; }
.entry-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; }
.entry-line .ask { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.entry-line .cost { font: 500 14px/1.3 var(--mono); color: var(--gold-hi); white-space: nowrap; }
.entry-line .to { color: var(--faint); }
.entry-line .fx { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.entry-line .pill { margin-left: 0; }
.entry-facts { margin-top: 4px; font: 400 13px/1.4 var(--mono); color: var(--ink2); }
.entry-facts .cooling { color: var(--mute); }
.entry-desc { margin-top: 4px; font-size: 14px; color: var(--mute); }
/* the whole ladder (DESIGN 21.9): the band it is on now is the one people
   have to read, so it is the only one in --ink */
.entry-ladder { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--mute); overflow-wrap: anywhere; }
.entry-ladder .on { font-weight: 600; color: var(--ink); }
.running { margin-top: 32px; }
.running h2 { font-size: 18px; margin-bottom: 10px; }
.run-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--hair); }
.run-row .name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-row .name small { font-weight: 400; color: var(--mute); margin-left: 8px; }
.run-row .left { font: 500 14px/1 var(--mono); color: var(--cucco); }
.list-off { margin-top: 30px; }
.list-off h2 { font-size: 22px; }
.list-off p { margin-top: 8px; color: var(--ink2); }
.list .foot { margin-top: 40px; }

/* the operator page */
.op { max-width: 860px; }
.op .home-top { margin-bottom: 32px; }
.op .err { margin-top: 10px; }
.op-key { padding: 20px 22px; max-width: 460px; }
.op-key .row { margin-top: 8px; }
.op-key .field { flex: 1; min-width: 0; }
.op-key .btn { width: auto; }
.op-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.op-head .row { gap: 6px; }
.op-sum { font: 500 13px/1.3 var(--mono); color: var(--ink2); }
.op-empty { color: var(--mute); }
.op-desk { padding: 16px 20px; margin-bottom: 10px; }
.op-desk.live { border-color: var(--gold-line); }
.op-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.op-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.op-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-title .mono { color: var(--ink2); font-size: 13px; }
.op-state { font: 500 12px/1 var(--mono); color: var(--mute); white-space: nowrap; }
.op-state.on { color: var(--ok); }
.op-facts { margin-top: 6px; font-size: 13px; color: var(--mute); }
.op-foot { margin-top: 10px; display: flex; justify-content: flex-end; gap: 6px; }
.op-foot .btn { width: auto; }
.op-err { margin-top: 6px; }

/* --------------------------------------------------------------- narrow */

@media (max-width: 940px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .home-top { margin-bottom: 40px; }
  .ledger-row { grid-template-columns: 52px minmax(0, 1fr); }
  .ledger-row .n { font-size: 32px; }
  .ledger-row > div:last-child { grid-column: 2; }
}
@media (max-width: 560px) {
  .home-top nav { display: none; }
  .home { padding-top: 22px; }
  .op-desk { padding: 14px 16px; }
}
