/* alohamc.com, the servers, maps and not-found pages' own CSS (after site.css, map-frame.css). Both
   /servers/ and /maps/ have a #season-4 and a #season-3, so every rule that names one is scoped to
   its page with body[data-page]. */

.s-photo { --ratio: 56.25%; }
.group__title { margin: var(--s-8) 0 var(--s-4); font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
/* a column's own heading, level with the first row of the list beside it */
.group__title--top { margin-top: 0; }
.small-line { margin: 0; color: var(--ink); max-width: 56ch; }
.small-line.top { margin-bottom: var(--s-4); }
.rows .rows__name { font-weight: 500; }
.section-head h2 + p { max-width: 48ch; }

/* servers: the commands as a reference table, the command and what it does on one line, two columns
   of them on a desktop */
.commands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
.commands > li, .commands > li:first-child { grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; padding-block: var(--s-3); }
.commands > li > p { grid-column: 2; }
.commands .rows__name { font-size: 14px; font-weight: 400; }
.stages-list > li { padding-block: var(--s-3); }
.stages-list > li:first-child { padding-top: 0; }
/* Season 3's mods under its facts and picture */
.mods { margin-top: var(--s-8); }
.mods .group__title { margin-top: 0; }

@media (max-width: 1023px) {
  .commands { grid-template-columns: minmax(0, 1fr); }
  /* stacked: a picture or a second list gets room under the list above it */
  [data-page="servers"] .grid > .s-photo { margin-top: var(--s-5); }
  [data-page="servers"] .grid > div + div > .group__title--top { margin-top: var(--s-7); }
  /* a list continued in the next column: stacked, its first row follows the last one above */
  .rows--next > li:first-child { padding-top: var(--s-4); }
  [data-page="servers"] .grid:has(.rows--next) { row-gap: 0; }
}
@media (max-width: 639px) {
  .commands > li, .commands > li:first-child { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .commands > li > p { grid-column: 1; }
}

/* the mist of the Nightmare section leans to the sign's deep blue */
[data-page="servers"] #nightmare.bg-mist { --g-hue: #1858a8; --g-hue-b: #2f8fa3; }

/* maps: each map takes what its head leaves of the screen */
[data-page="maps"] .map-frame { height: calc(100svh - var(--padt) - var(--padb) - 150px); min-height: 320px; }
@media (min-width: 640px) and (max-width: 1023px) { [data-page="maps"] .map-frame { height: 56svh; } }
@media (max-width: 639px) { [data-page="maps"] .map-frame { height: calc(100lvh - var(--padt) - var(--padb) - 260px); } }

/* the not-found page: each row's link is as wide as its words, so the line under it is the link's
   and the row's own rule is the only one across the row */
.notfound h1 { font-size: var(--t-h2); }
.notfound__list { max-width: 640px; margin-top: var(--s-6); }
.notfound__list .link { justify-self: start; font-size: var(--t-lead); }
