/* World pages: people, places, Rune Tiles, commands. Tokens only (BRAND.md); the game's colours stay inside game cards and holograms.
   The page parts are the shared components (static/components.css); this file holds only what is particular to a person, a place or a command. */

/* ---- a person's header: the entity header with a model, a face or an initial in its art slot ---- */
.npc-eh .c-eh-art { --art: 192px; }
.npc-face { display: grid; place-items: center; width: 100%; height: 100%; }
.npc-face :is(.ic, img.face) { width: 128px; height: 128px; image-rendering: pixelated; border-radius: var(--radius-sm); background: none; box-shadow: none; }
.npc-initial { display: grid; place-items: center; width: 100%; height: 100%; font: 800 72px/1 var(--display); color: var(--text-3); }
.npc-eh .c-eyebrow a { color: var(--text-3); }
.npc-eh .c-eyebrow a:hover { color: var(--text); }
.npc-lore { margin: var(--sp-4) 0 0; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--text-2); font-style: normal; }
/* with a 3D model the slot opens up: the model's own stage (its hologram over its head, its switch under it) is the picture */
.npc-eh--3d { align-items: start; }
.npc-eh--3d .c-eh-art { width: auto; height: auto; overflow: visible; background: none; border: 0; box-shadow: none; display: block; }
.npc-eh--3d .sk-npc { --sk-w: 240px; margin: 0; }
@media (max-width: 640px) {
  .npc-eh .c-eh-art { --art: 128px; }
  .npc-face :is(.ic, img.face) { width: 96px; height: 96px; }
  .npc-initial { font-size: 56px; }
  .npc-eh--3d .c-eh-art { width: 100%; display: flex; justify-content: center; }
  .npc-eh--3d .sk-npc { --sk-w: min(100%, 190px); }
}

/* the holograms of a person with no model, on one quiet panel */
.npc-tags { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); align-items: flex-start; width: fit-content; max-width: 100%; margin: 0 0 var(--sp-5);
  padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.npc-tag { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; }
.npc-tag .tag { margin: 4px 0; max-width: 100%; }
.npc-tag figcaption { color: var(--text-2); font-size: 13px; text-align: center; max-width: 24ch; }

.qt::before { content: "\201C"; }
.qt::after { content: "\201D"; }
a.cmd code { color: inherit; }
a.cmd:hover code { text-decoration: underline; }

/* a plain list of lines (steps, the fine print); label and value lines are the site's dl.facts */
ul.facts { list-style: none; margin: var(--sp-2) 0 var(--sp-4); padding: 0; }
ul.facts li { margin: 6px 0; max-width: var(--read); }
ul.facts.plain li { color: var(--text-2); }
ol.steps { margin: var(--sp-2) 0 var(--sp-4); padding-left: 22px; max-width: var(--read); }
ol.steps li { margin: 6px 0; }
ul.facts ol.steps { margin: 4px 0 10px; color: var(--text-2); }

blockquote.say { margin: var(--sp-2) 0 var(--sp-4); padding: 4px 0 4px var(--sp-4); border-left: 3px solid var(--border-strong); max-width: var(--read); }
blockquote.say p { margin: 0; font-style: italic; color: var(--text); }
blockquote.say p::before { content: "\201C"; }
blockquote.say p::after { content: "\201D"; }

/* ---- the People index: a gallery of faces; the chips filter it ---- */
.c-gcard[hidden] { display: none; }
.c-gcard.pc.is-hot { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember), var(--shadow-lift); }
.pc .c-gcard-art img.npc-front { width: auto; height: 96px; image-rendering: auto; }
.pc .npc-initial { font-size: 48px; }
.pc-open { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pc .c-gcard-art :is(.ic, img.face) { width: 96px; height: 96px; image-rendering: pixelated; border-radius: var(--radius-sm); background: none; box-shadow: none; }
.pc .c-gcard-art { height: 128px; }
.people-index .spoiler { margin-top: var(--sp-4); }
.people-index .c-gcard-s { min-height: 0; }   /* 28 Nov 2026: a caption is as tall as its words; it held two lines open when the card was a box */

/* ---- a place's picture in the places gallery ---- */
.pl-pic { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.c-gcard-art:has(.pl-pic) { padding: 0; }
.c-gcard-art picture { display: block; width: 100%; height: 100%; }

/* ---- the commands: one row a command, the command left and what it does right ---- */
.cmd-list { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; }
.cmd-row { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: var(--sp-2) var(--sp-5); padding: 14px 0; margin: 0; max-width: none; border-top: 1px solid var(--border); }
.cmd-row:last-child { border-bottom: 1px solid var(--border); }
.cmd-c { align-self: start; justify-self: start; max-width: 100%; overflow-wrap: anywhere; font: 500 15px/1.5 var(--mono); color: var(--ember-soft); background: var(--surface-2); border-radius: 8px; padding: 2px 10px; scroll-margin-top: calc(var(--header) + 12px); }
.cmd-t { min-width: 0; }
.cmd-t p { margin: 0; max-width: var(--read); }
.cmd-what { color: var(--text); }
.cmd-note { margin-top: 4px; font-size: 15px; color: var(--text-2); }
@media (max-width: 640px) { .cmd-row { grid-template-columns: minmax(0, 1fr); } }

.main code[id] { scroll-margin-top: calc(var(--header) + 12px); }
.tbl td code { color: var(--ember-soft); white-space: nowrap; }
.cardrow { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: flex-start; margin: var(--sp-2) 0; }
.cardrow .gc { margin: var(--sp-2) 0; max-width: 100%; }
.cardrow figcaption { max-width: 34ch; }
img.face { image-rendering: pixelated; }

/* a phone's People index: a compact card, the face small, the pills to what they do and how they open */
@media (max-width: 520px) {
  .people-index .c-gcard-art, .pc .c-gcard-art { height: 88px; }
  .pc .c-gcard-art :is(.ic, img.face) { width: 64px; height: 64px; }
  .pc .c-gcard-art img.npc-front { height: 72px; }
  .pc-open { font-size: 12px; }
  .people-index .c-gcard-body { padding: var(--sp-3); }
  .people-index .c-gcard-t { font-size: 16px; }
  .people-index .c-gcard-s { font-size: 13px; min-height: 0; }
  .people-index .c-pills > li:has(.pc-place) { display: none; }
}

/* a Main Quest on a person's page: the whole quest, their steps marked */
.steps-n { color: var(--text-3); font-size: 14px; }
ul.facts ol.steps li { color: var(--text-3); }
ul.facts ol.steps li.mine { color: var(--text); font-weight: 600; }
.steps-more { margin: 2px 0 2px 22px; }
.steps-more > summary { cursor: pointer; color: var(--ember-soft); font-size: 14px; min-height: 32px; display: flex; align-items: center; }
.steps-more > ol.steps { margin-left: 0; }
/* a place's header picture fills the art slot */
.c-eh-art picture { display: block; width: 100%; height: 100%; }
.c-eh-art .pl-pic { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }

/* the people of a place: a compact card, so five a row still keeps a name whole */
.place-people .c-gcard-art { height: 96px; }
.place-people .pc .c-gcard-art :is(.ic, img.face) { width: 72px; height: 72px; }
.place-people .pc .c-gcard-art img.npc-front { height: 84px; }
.place-people .c-gcard-body { padding: 10px; }
.place-people .c-gcard-t { font-size: 14px; overflow-wrap: break-word; }
.place-people .c-gcard-s, .place-people .pc-open { font-size: 12px; }
.place-people .c-gallery > .c-gcard:only-child { flex: 0 1 200px; }
