/* =====================================================================
   The Guild Guide reader (R233), in the fleet's dress (R145). The tokens,
   the bar, the cards, the buttons and the toast are the Looking-Glass's;
   what is left here is the reader's own: the door, the path, a page, and
   the sheet a member sends a line on. Portrait first: a station tablet
   held upright, 768 by 1024 and up (ruling 31); phones and landscape
   adapt from it.

   Against copying (ruling 32): a member's view can't be selected or
   long-pressed; a lead's can (leads correct and quote pages). Print gives
   the house's name and nothing else.
   ===================================================================== */
body { font-size: 19px; }
.gg { max-width: 760px; margin: 0 auto; padding: 16px 18px 90px; }
.hidden { display: none !important; }
.fine { color: var(--muted); font-size: 15px; }
.sc { font-family: var(--fellsc); letter-spacing: .08em; color: var(--muted); font-size: 15px; }

body.member .gg, body.member .gg * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.lead .gg { -webkit-user-select: text; }
@media print {
  body > * { display: none !important; }
  body::before { display: block; content: attr(data-house); font-family: var(--fell); font-size: 28pt; text-align: center; margin-top: 40vh; }
}

/* ---------- the door ---------- */
.door { text-align: center; padding: 26px 18px; }
.door h1 { font-family: var(--fell); font-weight: 400; font-size: 34px; margin: 4px 0 2px; color: var(--ink); }
.door .lede { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 0 0 16px; }
.pindots { font-family: var(--sans); font-size: 36px; letter-spacing: 12px; min-height: 52px; color: var(--ink); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 360px; margin: 10px auto 0; }
.pad button { min-height: 76px; font-size: 28px; font-weight: 800; font-family: var(--sans); background: var(--paper);
  border: 2px solid var(--line); border-radius: 16px; color: var(--ink); cursor: pointer; }
.pad button:active { background: var(--ink); color: var(--cream); }
.pad button.word { font-size: 17px; }
.pad button.open { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.pinerr { color: var(--danger); font-weight: 700; min-height: 1.5em; margin-top: 12px; font-family: var(--sans); font-size: 16px; }
.door .notes { margin-top: 18px; display: grid; gap: 4px; }
.gbtn { display: flex; justify-content: center; margin: 18px 0 6px; min-height: 44px; }

/* ---------- home ---------- */
.who { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.who .name { font-family: var(--fell); font-size: 26px; color: var(--ink); }
.pathcard { padding: 18px; }
.pathcard h2, .shelf h2 { margin: 0 0 4px; font-family: var(--fellsc); font-weight: 400; font-size: 18px; letter-spacing: .1em; color: var(--ink); }
.rung { font-family: var(--fell); font-size: 28px; color: var(--ink); margin: 2px 0; }
.bar { height: 12px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; margin: 8px 0 4px; }
.bar > i { display: block; height: 100%; background: var(--gold); width: 0; }
.ladder { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.ladder .chip { font-size: 13px; padding: 4px 10px; }
.ladder .chip.here { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pages { list-style: none; margin: 10px 0 0; padding: 0; }
.pages li { border-top: 1px solid var(--line); }
.pages a { display: flex; align-items: baseline; gap: 10px; padding: 13px 2px; color: var(--ink); text-decoration: none; }
.pages a .t { flex: 1; font-family: var(--serif); font-size: 20px; }
.pages a .k { font-family: var(--fellsc); font-size: 13px; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.pages li.l3 a .t { padding-left: 14px; } .pages li.l4 a .t { padding-left: 28px; } .pages li.l5 a .t { padding-left: 42px; }
.pages li.read a .t { color: var(--muted); }
.certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search { display: flex; gap: 8px; margin: 14px 0; }
.search input { flex: 1; background: var(--paper); color: var(--ink); border: 2px solid var(--line); border-radius: 14px; padding: 13px 14px; font-size: 18px; font-family: var(--serif); min-width: 0; }
.shelf { padding: 16px 18px; }
.start { margin: 14px 0 4px; }
.timer { font-family: var(--sans); font-weight: 800; }

/* ---------- a page ---------- */
.crumbs { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 12px; }
a.btn[href="#/lead"] { display: inline-flex; margin: 2px 0 14px; }
.page h1 { font-family: var(--fell); font-weight: 400; font-size: 38px; line-height: 1.12; margin: 6px 0 4px; color: var(--ink); }
.page .updated { color: var(--muted); font-size: 15px; font-family: var(--sans); }
.changed { border-left: 4px solid var(--gold); background: var(--gold-tint); padding: 10px 14px; border-radius: 0 12px 12px 0; margin: 14px 0; }
.changed b { font-family: var(--fellsc); font-weight: 400; letter-spacing: .08em; display: block; font-size: 14px; color: var(--gold-text); }
.page .body { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink); }
.page .body p { margin: 0 0 14px; }
.page .body p.opener { font-size: 23px; }
.page .body h2 { font-family: var(--fell); font-weight: 400; font-size: 27px; margin: 26px 0 8px; }
.page .body h3 { font-family: var(--fellsc); font-weight: 400; font-size: 19px; letter-spacing: .08em; margin: 20px 0 6px; }
.page .body ul, .page .body ol { margin: 0 0 14px; padding-left: 28px; }
.page .body li { margin: 0 0 8px; }
.page .body li.n1 { margin-left: 22px; } .page .body li.n2 { margin-left: 44px; }
.page .body a { color: var(--info); text-decoration: underline; text-underline-offset: 3px; }
.callout { border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; margin: 0 0 16px; background: var(--paper); }
.callout .label { font-family: var(--fellsc); letter-spacing: .14em; font-size: 14px; color: var(--muted); display: block; margin-bottom: 4px; text-transform: uppercase; }
.callout p:last-child { margin-bottom: 0; }
figure { margin: 6px 0 18px; }
figure img { display: block; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
figcaption { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 17px; margin-top: 6px; }
.video { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 16px; background: var(--paper); }
.video button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; background: none; border: 0; color: var(--ink); font-family: var(--sans); font-size: 17px; font-weight: 700; cursor: pointer; }
.video .play { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 18px; flex: none; }
.video .frame { position: relative; padding-top: 56.25%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .off { padding: 14px 16px; color: var(--muted); font-family: var(--sans); font-size: 16px; }
.clip { display: block; border: 1px dashed var(--line2); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; color: var(--ink); text-decoration: none; font-family: var(--sans); }
.clip small { display: block; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.pagefoot { margin-top: 30px; display: grid; gap: 10px; }
.pagefoot .emerg { color: var(--danger); font-family: var(--sans); font-weight: 700; text-decoration: none; }
.stamp { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--faint); font-family: var(--sans); font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* a lead's marks: every code, source, and gap, each said for what it is */
.m-code { font-family: var(--mono); font-size: .78em; background: var(--panel2); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.m-src { background: var(--infobg); border-radius: 6px; padding: 0 4px; color: var(--info); font-size: .9em; }
.m-gap { background: var(--warnbg); border-radius: 6px; padding: 0 4px; color: var(--amber); font-size: .9em; }
.headline { font-family: var(--sans); font-size: 14px; color: var(--muted); background: var(--panel2); border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 15px; cursor: pointer; }
.switch input { width: 22px; height: 22px; }
.lock { font-family: var(--fellsc); font-size: 12px; letter-spacing: .1em; color: var(--amber); }

/* ---------- the sheet ---------- */
.sheet { position: fixed; inset: 0; background: var(--scrim); display: grid; align-items: end; z-index: 80; }
.sheet .card { margin: 0; border-radius: 22px 22px 0 0; padding: 22px 20px 26px; max-width: 760px; width: 100%; justify-self: center; box-sizing: border-box; }
.sheet h2 { font-family: var(--fell); font-weight: 400; font-size: 28px; margin: 0 0 6px; }
.sheet textarea { width: 100%; box-sizing: border-box; min-height: 96px; background: var(--paper); color: var(--ink); border: 2px solid var(--line); border-radius: 14px; padding: 12px; font-size: 19px; font-family: var(--serif); resize: none; -webkit-user-select: text; user-select: text; }
.sheet .count { text-align: right; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.search input, .sheet textarea { -webkit-user-select: text !important; user-select: text !important; }

/* ---------- a lead's home ---------- */
.lead-list { list-style: none; margin: 8px 0 0; padding: 0; }
.lead-list li { border-top: 1px solid var(--line); padding: 10px 2px; }
.lead-list .line { font-family: var(--serif); font-size: 19px; }
.lead-list .meta { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.count-pill { float: right; }

@media (max-width: 560px) { body { font-size: 17px; } .page h1 { font-size: 30px; } .page .body { font-size: 19px; } }

/* ---------- the pass (R233 slice C): the check on the page's own screen, the acknowledgement, "Own it" ---------- */
.pages a .note { font-family: var(--sans); font-size: 12px; color: var(--muted); white-space: nowrap; }
.due { font-family: var(--sans); font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.due.late { color: var(--danger); font-weight: 700; }
.due.good { color: var(--ink); font-weight: 700; }
.passing { margin-top: 28px; border-top: 2px solid var(--ink); padding-top: 18px; }
.passing .card.check { padding: 18px; }
.passing .question { font-family: var(--serif); font-size: 23px; line-height: 1.4; margin: 6px 0 16px; color: var(--ink); }
.answers { display: grid; gap: 10px; }
.btn.answer { display: block; width: 100%; text-align: left; white-space: normal; font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.35; padding: 16px 18px; min-height: 64px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--line2); border-radius: 14px; }
.btn.answer:disabled { opacity: .55; }
blockquote.line { margin: 10px 0 14px; padding: 12px 16px; border-left: 4px solid var(--gold); background: var(--gold-tint); border-radius: 0 12px 12px 0; font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink); }
.earned { font-family: var(--fell); font-size: 22px; margin: 10px 0 0; color: var(--ink); }
ul.criteria { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 8px; }
ul.criteria label { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--serif); font-size: 20px; line-height: 1.35; background: var(--paper); }
ul.criteria input, .notyet input { width: 26px; height: 26px; flex: none; margin-top: 2px; accent-color: var(--ink); }
.notyet { display: flex; gap: 12px; align-items: center; font-family: var(--sans); font-weight: 700; margin: 10px 0 4px; }
.pinbox { margin-top: 8px; }
.pad.small { max-width: 300px; }
.pad.small button { min-height: 52px; font-size: 20px; }
.btn.quiet { font-weight: 400; color: var(--muted); border-color: transparent; background: none; }
.pill.plain { background: var(--panel2); color: var(--muted); }

/* R233 slice D: the keep */
.card.huddle { border: 2px solid var(--gold); padding: 16px 20px; }
.card.huddle a.t { display: block; font-family: var(--fell); font-size: 28px; line-height: 1.2; color: var(--ink); text-decoration: none; margin: 4px 0 6px; }
.ladder.held { margin-bottom: 8px; }
.passing.recall { border-top: 0; margin-top: 10px; padding-top: 0; }
.passing .teach, .passing .shelfbox { margin-top: 18px; }
.passing .shelfbox .card.shelf { margin: 0; }

/* R233 slice E: what a lead asked to be practised, on the member's page and in the signing card */
.practise:not(:empty) { margin: 10px 0; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--ink); background: var(--paper); border-radius: 6px; }
.practise ul.criteria { margin: 6px 0 0; }
