/* Package F: the site's screens that wait for a backend (plans/architecture/38, step 2): realms, news, support, the
   listing editor, the Offline Client. */

/* The phone's filters open as a disclosure, without script. On a wide screen they are always open. */
.st .pf-flt > summary { list-style: none; cursor: pointer; }
.st .pf-flt > summary::-webkit-details-marker { display: none; }
.st .pf-flt > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 761px) { .st .pf-flt > summary { display: none; } .st .pf-flt > .st-flt__body { display: block; } }
@media (max-width: 760px) { .st .pf-flt:not([open]) > .st-flt__body { display: none; } .st .pf-flt[open] > .st-flt__body { display: block; } }

/* A realm row's banner, as a picture behind it (the board sets it from a style; here it is an <img>). */
.st .pf-realm { position: relative; overflow: hidden; }
.st .pf-realm > *:not(.pf-realm__bg) { position: relative; }
.st .pf-realm__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; opacity: .28; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
/* The picture inside the banner's box (src/ui/picture.tsx) keeps its left end in view. */
.st .pf-realm__bg > img { object-position: left center; }
.st .pf-noicon { display: inline-block; width: 40px; height: 40px; border: 1px solid var(--bronze-600); background: var(--surface-100); }
.st .pf-devious { border-color: var(--status-danger); color: var(--status-danger); }

/* The 18+ question, in place of what it hides. */
.st .pf-gate { display: flex; flex-direction: column; gap: 12px; }
.st .pf-gate form { margin: 0; }

/* One realm's page: its banner on top, its icon beside the name, its mods. */
.st .pf-realmpage { position: relative; }
/* The banner's box is the 8:1 the upload rules give a banner, picture or not: a slow or failed picture moves nothing
   (section 13.1, scripts/content.mjs). */
.st .pf-realmpage__banner { display: block; width: 100%; height: auto; aspect-ratio: 8 / 1; max-height: 240px; object-fit: cover; margin-bottom: 24px; opacity: .85; }
.st .pf-realmhead { display: flex; gap: 20px; align-items: flex-start; }
.st .pf-realmhead__ic { flex: none; width: 96px; height: 96px; border: 1px solid var(--gold-300); }
.st .pf-mods { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.st .pf-mods li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid rgba(137, 109, 81, .3); }
.st .pf-mods__n { flex: 1 1 12em; font-weight: 600; color: var(--parchment-50); }

/* News: a big first card, then a grid. */
.st .pf-news { display: flex; flex-direction: column; gap: 12px; }
.st .pf-news--big { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.st .pf-news__img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border: 1px solid var(--bronze-700); }
.st .pf-newsgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }
/* The cover's box is the 16:7 the inspector crops a cover to, picture or not: a slow cover moves nothing (section 13.1). */
.st .pf-post__cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; margin: 8px 0 24px; border: 1px solid var(--bronze-700); }
.st .pf-figure { margin: 18px 0; }
.st .pf-figure img { width: 100%; }
.st .pf-postnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--bronze-700); }
@media (max-width: 760px) { .st .pf-news--big { grid-template-columns: 1fr; } }

/* Support: the ticket list and a thread. */
.st .pf-tickets { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.st .pf-tickets li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(137, 109, 81, .3); }
.st .pf-tickets li > a { flex: 1 1 16em; font-weight: 600; }
.st .pf-thread { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.st .pf-msg { padding: 12px 16px; border: 1px solid var(--bronze-700); background: var(--surface-100); }
.st .pf-msg--team { border-color: var(--gold-300); background: rgba(251, 206, 160, .05); }
.st .pf-msg__who { margin: 0 0 6px; }
.st .pf-msg__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* The listing editor's pictures. */
.st .pf-pic { display: flex; flex-direction: column; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid rgba(137, 109, 81, .3); }
.st .pf-pic__img { max-width: 100%; border: 1px solid var(--bronze-600); }
.st .pf-pic__img--icon { width: 96px; height: 96px; }
.st .pf-pic__img--banner { width: 100%; aspect-ratio: 8 / 1; object-fit: cover; }
.st .pf-pic__img--featured { width: 100%; max-width: 392px; aspect-ratio: 392 / 208; object-fit: cover; }
