/*
 * Shared styles for the three content pages: / , /install and /about.
 *
 * Deliberately plain -- these exist to explain, not to perform. The one thing
 * that is allowed to be big is the sample dashboard, because showing it is the
 * whole point.
 *
 * Layout rule: prose sits in a narrow reading column, and only .showcase breaks
 * out of it. An earlier version made the whole page wide and the result was
 * 200-character lines of body text on a 4K monitor.
 */
:root {
  color-scheme: dark;
  --text: #efeff1; --muted: #adadb8; --dim: #7c7c85;
  --ok: #6fcf6f; --card: #17171a; --line: rgba(255,255,255,.09); --edge: #26262c;
  --col: 720px;
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 48px 20px 40px;
  background: #0e0e10; color: var(--text);
  font-family: "Inter", system-ui, sans-serif; font-size: 15px; line-height: 1.65;
}
header, main, footer { max-width: var(--col); margin: 0 auto; }

h1 { font-size: 1.8rem; margin: 0 0 .2em; font-weight: 680; letter-spacing: -.01em; }
.tag { color: var(--muted); margin: 0 0 2.2em; font-size: 1.02rem; }
h2 {
  font-size: .74rem; font-weight: 600; color: var(--dim);
  text-transform: uppercase; letter-spacing: .07em; margin: 2.6em 0 .7em;
}
p { margin: 0 0 1em; }
.lede p, .lede-p { font-size: 1.05rem; color: var(--text); }
.hint { color: var(--dim); font-size: .86rem; margin: .9em 0 0; }
.hint a { color: var(--muted); }
.detail { color: var(--muted); font-size: .9rem; margin: .9em 0 .4em; }

/* The way back.
 *
 * This used to be dim grey text that read as a caption rather than a control,
 * which is why both pages also carried a button at the bottom to get you out of
 * them. Those are gone; this is the single exit, so it has to look like one. */
.crumb { margin: 0 0 1.6em; font-size: .88rem; }
.crumb a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text); text-decoration: none; font-weight: 600;
  background: var(--card); border: 1px solid var(--edge); border-radius: 7px;
  padding: 7px 14px 7px 11px;
  transition: border-color .15s ease, background .15s ease;
}
.crumb a:hover { border-color: #3d3d46; background: #1d1d21; }
.crumb a:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; }
/* The arrow is decoration; the link text already says where it goes. */
.crumb .arrow { color: var(--ok); font-size: 1rem; line-height: 1; }

/* --- the lookup box: the top of the front page --------------------------- */
/* Most visitors arrive wanting one thing -- somebody's status page -- so that
   is the first control on the page rather than the last section of it. */
.lookup {
  background: var(--card); border: 1px solid var(--edge); border-radius: 10px;
  padding: 20px 22px 22px; margin-bottom: 1.6em;
}
.lookup-label {
  display: block; font-size: .95rem; font-weight: 600;
  color: var(--text); margin-bottom: .7em;
}
form { display: flex; gap: 8px; flex-wrap: wrap; }
input {
  flex: 1 1 220px; min-width: 0;
  font: inherit; font-size: .95rem; padding: 10px 12px;
  background: #0e0e10; color: var(--text);
  border: 1px solid #3a3a44; border-radius: 7px;
}
input:focus { outline: 2px solid var(--ok); outline-offset: 1px; border-color: transparent; }
button {
  font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 22px; cursor: pointer;
  background: var(--ok); color: #0e0e10; border: none; border-radius: 7px;
}
button:hover { filter: brightness(1.08); }
.lookup code {
  background: #202026; border: 1px solid var(--edge); border-radius: 5px;
  padding: 1px 6px; font-size: .84rem;
}

/* --- the three doors ----------------------------------------------------- */
.doors {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px; margin-bottom: 2.4em;
}
.door {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--edge); border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .15s ease;
}
a.door:hover { border-color: #3d3d46; }
a.door:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; }
.door strong { display: block; color: var(--ok); font-size: .95rem; font-weight: 640; }
.door span { display: block; color: var(--muted); font-size: .84rem; margin-top: .3em; line-height: 1.5; }
/* The extension is not published, so its card is not a link. Making it look
   clickable would be a promise the site cannot keep. */
.door-off { opacity: .62; }
.door-off strong { color: var(--muted); }

/* --- the sample dashboard ------------------------------------------------ */
/* The only thing allowed out of the reading column. Height is set by embed.js
   from the frame's own content, so nothing is ever cropped. */
.showcase {
  margin: 0 0 2.8em 50%;
  /* Sized to the dashboard, not to the screen: its own layout caps at 1240px
     and centres, so a wider frame just adds dead gutters either side. */
  width: min(1300px, 94vw);
  transform: translateX(-50%);
}
.frame-label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: .55em;
}
.pill {
  display: inline-block; font-size: .68rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: .08em;
  color: #0e0e10; background: var(--muted);
  padding: 3px 9px; border-radius: 20px;
}
.full { color: var(--ok); text-decoration: none; font-size: .86rem; font-weight: 600; }
.full:hover { text-decoration: underline; }
.showcase iframe {
  display: block; width: 100%; height: 820px;
  border: 1px solid var(--edge); border-radius: 10px;
  background: #0e0e10; color-scheme: dark;
}
.showcase .hint { margin-top: .7em; }

@media (max-width: 760px) {
  .showcase { width: 100%; margin-left: 0; transform: none; }
  .showcase iframe { height: 560px; }
}

/* --- lists --------------------------------------------------------------- */
.how { margin: 0; padding-left: 1.3em; }
.how li { margin-bottom: .7em; color: var(--muted); }
.how strong { color: var(--text); font-weight: 600; }
.plain { margin: 0; padding-left: 1.3em; color: var(--muted); }
.plain li { margin-bottom: .45em; }

.zones { margin: 0; }
.zones dt { font-weight: 650; color: var(--text); margin-top: 1.1em; font-size: .95rem; }
.zones dt:first-child { margin-top: 0; }
.zones dd { margin: .25em 0 0; padding: 0; color: var(--muted); }

/* --- what we cannot verify ----------------------------------------------- */
/* Set apart because it is an admission, and burying it in body text would make
   it look like boilerplate nobody meant. */
.gaps {
  background: var(--card); border: 1px solid var(--edge);
  border-left: 3px solid #b58a3e; border-radius: 10px;
  padding: 18px 22px 20px; margin-top: 2.6em;
}
.gaps h2 { margin-top: 0; color: #cfa85f; }
.gap-list { margin: 1.2em 0 1.2em; }
.gap-list dt { font-weight: 640; color: var(--text); font-size: .93rem; margin-top: 1.1em; }
.gap-list dt:first-child { margin-top: 0; }
.gap-list dd { margin: .25em 0 0; color: var(--muted); font-size: .9rem; }
.gap-list em { color: var(--text); font-style: normal; font-weight: 600; }

/* --- downloads ----------------------------------------------------------- */
.download {
  background: var(--card); border: 1px solid var(--edge); border-radius: 10px;
  padding: 20px 22px; margin-top: 1.6em;
}
.download h2 { margin-top: 0; }
.dl {
  display: inline-block; background: var(--ok); color: #0e0e10;
  font-weight: 650; text-decoration: none; padding: 10px 20px; border-radius: 7px;
}
.dl:hover { filter: brightness(1.08); }
.dl.alt { background: #3a3a44; color: var(--text); }
.size { color: var(--dim); font-size: .84rem; }
.dlrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: .6em 0; }

.download details, .verify { margin-top: .9em; }
.download summary, .verify summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.download pre, .verify pre {
  background: #202026; border: 1px solid var(--edge); border-radius: 6px;
  padding: 9px 12px; overflow-x: auto; margin: .7em 0;
}
.download pre code, .verify code { font-size: .8rem; color: var(--text); }
.hash { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: .4em 0; }
.hash span { color: var(--dim); font-size: .76rem; min-width: 4.5rem; }
.hash code {
  font-size: .74rem; word-break: break-all; background: #202026;
  padding: 3px 7px; border-radius: 4px;
}

.ext-pending {
  border: 1px dashed var(--edge); border-radius: 10px;
  padding: 16px 22px; margin-top: 1.6em;
}
.ext-pending h2 { margin-top: 0; }
.ext-pending code {
  background: #202026; border: 1px solid var(--edge); border-radius: 5px;
  padding: 1px 6px; font-size: .84rem;
}

/* --- footer -------------------------------------------------------------- */
footer {
  margin-top: 3.4em; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: #5f5f68; font-size: .82rem;
}
/* Required by the Project Zomboid Terms when using the game's assets.
   Must stay visible -- it is the condition the icon licence depends on. */
.attrib { color: #6a6a73; font-size: .72rem; line-height: 1.5; max-width: 60ch; }
.attrib a { color: #8a8a96; }

@media (max-width: 480px) {
  body { padding-top: 32px; }
  h1 { font-size: 1.5rem; }
}

/* --- revision history ---------------------------------------------------- */
/* Generated from CHANGELOG.md by scripts/make-download-page.mjs. Collapsed
   visual weight on purpose: it matters when something breaks, not on the way
   to the download button. */
.history { margin-top: 2.6em; }
.revlog { margin-top: 1em; }
.revlog h3 {
  font-size: .82rem; font-weight: 650; color: var(--text);
  margin: 1.5em 0 .4em; padding-bottom: .3em;
  border-bottom: 1px solid var(--line);
}
.revlog h3:first-child { margin-top: 0; }
.revlog .rev { margin: 0; padding-left: 1.15em; }
.revlog .rev li {
  color: var(--muted); font-size: .86rem; line-height: 1.55; margin-bottom: .45em;
}
/* The part-of-the-system tag leads each entry and decides what the reader has
   to do about it, so it reads as a label rather than emphasis. */
.revlog .rev li strong {
  color: var(--text); font-weight: 600;
}
.revlog .rev li code {
  background: #202026; border-radius: 4px; padding: 1px 5px; font-size: .8rem;
}
.dlrow-mod { margin-top: 1.1em; }

/* The unlinked engineering notes page. Slightly roomier than the changelog
   because the entries are prose rather than one-liners. */
.revlog.notes h2 {
  font-size: 1rem; text-transform: none; letter-spacing: 0;
  color: var(--text); margin: 2em 0 .5em;
  padding-bottom: .35em; border-bottom: 1px solid var(--line);
}
.revlog.notes h2:first-child { margin-top: 0; }
.revlog.notes p { color: var(--muted); font-size: .9rem; margin: 0 0 .8em; }
.revlog.notes code {
  background: #202026; border-radius: 4px; padding: 1px 5px; font-size: .82rem;
}

/* Persistent build marker, bottom-right of the channel page.
   Deliberately quiet: it is diagnostic furniture, not a stat. */
#modver {
  position: fixed; right: 10px; bottom: 8px; z-index: 5;
  font-size: .68rem; letter-spacing: .02em;
  color: #5c5c66; background: rgba(14,14,16,.82);
  border: 1px solid #26262c; border-radius: 5px;
  padding: 2px 7px; pointer-events: none;
  font-variant-numeric: tabular-nums;
}
#modver[hidden] { display: none; }
@media (max-width: 480px) { #modver { right: 6px; bottom: 6px; } }

/* Fire tallies under the kill count. Secondary on purpose: the game's own
   kill number is the headline, and these are a supplement to it. */
.kill-sub { color: var(--muted); font-size: .78rem; margin-top: .15em; }
/* Live, and the only thing on the rail that changes second to second, so it
   gets the one warm colour. */
.kill-burning { color: #e8913c; font-size: .78rem; margin-top: .1em; }

/* Protection keyword in the body-map note. Green reads as "good" here, which
   is the opposite of the injury view -- hence the note spelling it out. */
.k-prot { color: #4ab46e; }

/* Names the percentage column in the body list. Sits over the numbers rather
   than beside the count, so the association is unambiguous. */
.row-label { display: flex; align-items: baseline; justify-content: space-between; }
.row-label .col-head {
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
