/* Rules of ours that the boards' stylesheet (site.css) doesn't have: what a real page needs and a drawing doesn't.
   Hand-written; loaded after site.css and site-board.css. Rules for one package of views go in css/pkg-<letter>.css. */

/* The site's own art with its placeholder as a second layer under it (plans/platform/02, phase H; img/<name>-ph.webp,
   made with the inspector's picture lab): the blur shows at once, and the picture covers it as it arrives. The same
   pictures as site.css's (generated, never edited), each with one layer more; their place, size and repeat stay
   site.css's, which a single value gives every layer. */
.st-hero__img { background-image: url("img/hero.webp"), url("img/hero-ph.webp"); }
.st-band__img--arch { background-image: url("img/band-arch.webp"), url("img/band-arch-ph.webp"); }
.st-band__img--city { background-image: url("img/band-city.webp"), url("img/band-city-ph.webp"); }
.st-band__img--hero { background-image: url("img/band-hero.webp"), url("img/band-hero-ph.webp"); }
.st-auth::before { background-image: url("img/auth.webp"), url("img/auth-ph.webp"); }
@media (max-width: 760px) {
  .st-hero__img { background-image: url("img/hero-phone.webp"), url("img/hero-phone-ph.webp"); }
}

/* The cookie banner. The board draws it absolute (site.css, generated), which on a long page puts it at the page's end,
   out of sight; on a desktop it stays at the bottom of the window instead while it shows, and the page keeps a scroll
   margin and room below its end as tall as the banner, so it never covers what has focus (WCAG 2.4.11; scripts/focus.mjs).
   On a phone it sits at the top of the page, in its flow (site.css). 260px: the banner's 220 at its tallest (below 1024px
   wide), its 24 above the window's edge, and a little air. */
@media (min-width: 761px) {
  .st-cookie { position: fixed; }
  html:has(.st-cookie) { scroll-padding-bottom: 260px; }
  html:has(.st-cookie) .st { padding-bottom: 260px; }
}

/* The first thing a keyboard reaches: a link past the header. Hidden until it has focus. */
.st-skip { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--surface-200); color: var(--gold-100); border: 1px solid var(--gold-300); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.st-skip:focus { top: 8px; }

/* A form that is only a button in a row of links (Sign out, Hide, Leave admin). */
.st form.st-headbtns, .st-announce form { margin: 0; }

/* A notice's text may hold links. */
.st .mh-notice a { color: var(--gold-100); }

/* A value the visitor may want to copy whole: a click selects all of it. */
.st-secret, .st-code { user-select: all; }

/* A table too wide for its place scrolls inside its own box, and can be reached by keyboard. */
.st-tblw:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Notices that stand above a page's columns (a ban, an unconfirmed address). */
.st-notices--above { margin-bottom: 24px; }

/* More than one refusal in a notice. */
.st-errs { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

@media (prefers-reduced-motion: reduce) {
  .st *, .st *::before, .st *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* A form's button drawn as a link (Not you?, Sign out here): it posts, so it is a button, but it reads as a link. */
.st .st-linkbtn { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--gold-100); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.st .st-linkbtn:hover { color: var(--parchment-50); }
.st .st-linkbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.st form.st-links { margin: 14px 0 0; }
@media (max-width: 760px) { .st .st-linkbtn { min-height: 36px; } }

/* A long value (an e-mail address, a server ID) breaks anywhere rather than pushing the page wider. */
.st .st-wrapany { overflow-wrap: anywhere; }

/* The copy of an account's data: plain text, kept as written, wrapped inside its own box. */
.st .st-data { margin: 0; padding: 14px 16px; max-height: 70vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--text); background: var(--surface-100); border: 1px solid var(--bronze-700); }
.st .st-data:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* A value inside a line of text that a click selects whole (a hash), without the boxed look of .st-secret. */
.st .st-copy { user-select: all; }

/* A focused field (the user, 2026-11-27, as the launcher's of 2026-11-19): no outline drawn around it. Its own frame
   brightens, as the kit does, and glows softly, so the focus is still plain to see. In forced colours the frame's
   colours and the glow aren't drawn, so the outline stays there. */
.mh-field__control:focus-within { outline: 0; }
.mh-field__control:focus-within .mh-frame__runs,
.mh-field__control:focus-within .mh-frame__art { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--gold-100) 65%, transparent)); }
@media (forced-colors: active) {
  .mh-field__control:focus-within { outline: 2px solid Highlight; outline-offset: 2px; }
}
