/* ============================================================
   GateIron — base.css: WHAT IS THIS SITE'S ALONE.

   The palette, the buttons, the bar, the footer, the account menu and the accessibility helpers
   left here for gateiron-common, the package they were lifted into and that NotUserError and
   NotUnderConstruction already wear. /brand/brand.css is loaded first by every page (the gi:head
   marker, src/chrome.js); this file and the page sheets only ADD to it.

   What stays is what no other site wants: two extra rungs on each accent, the cover and CTA
   photographs, the marketing wrapper, and the class switch.
   ============================================================ */

:root {
  /* Two rungs darker than the package carries on each accent, for the marketing pages' deep
     bands. Everything else in the palette is brand.css's. */
  --clay-darkest: #542b1a;
  --pine-darker: #272e22;
  --pine-darkest: #22251c;

  /* ---- swappable cover / CTA backgrounds (set the URL to change) ---- */
  --cover-img: url('../image/20231013_MtHoodSunset.jpg');  /* Mt. Hood, ~1600px wide */
  --cta-img: url('../image/BlackDragon_x16.jpg');   /* workshop / printing */
}

/* The marketing pages are full-bleed: a section spans the window and this holds its content to a
   measure. brand.css gives `main` the shell a product page wants; gateiron.css takes it off again
   for the pages that band edge to edge, which is why this is not simply `main`. */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- buttons ---------------- */

.btn .arrow { transition: transform 0.18s ease; }

.btn:hover .arrow { transform: translateX(4px); }

/* ---------------- accessibility helpers ---------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The admin notification badge on the avatar: word feedback waiting for review. Only ever
   rendered for an admin with an open queue (see /js/adminNotify.js), and it is itself the link. */
.admin-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-family: 'Hanken Grotesk', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.admin-badge:hover { background: var(--clay-dark); }

/* THE BOOLEAN SWITCH, site-wide (2026-09-11). Jeff: "All checkboxes on the site (unless there is
   a reason not to) should use a boolean mini slider control." A label with a hidden checkbox and
   a track: <label class="class-switch"><input type="checkbox"><span class="class-switchTrack"
   aria-hidden="true"></span> Words</label>. Born on Manage Class as the Advanced toggle (2026-09-09)
   and moved here from profile.css so every page has it - the game's dialogs included. */
.class-switch { display: inline-flex; align-items: center; gap: 0.4em; cursor: pointer; user-select: none; white-space: nowrap; }
.class-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.class-switchTrack {
    position: relative; display: inline-block; flex: none; width: 2.1em; height: 1.15em; border-radius: 1em;
    background: #cfc9bd; transition: background 0.15s;
}
.class-switchTrack::after {
    content: ""; position: absolute; top: 0.12em; left: 0.12em; width: 0.9em; height: 0.9em;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: left 0.15s;
}
.class-switch input:checked + .class-switchTrack { background: #4A6B3D; }
.class-switch input:checked + .class-switchTrack::after { left: 1.07em; }
.class-switch input:focus-visible + .class-switchTrack { outline: 2px solid #9a7d00; outline-offset: 2px; }
.class-switch input:disabled + .class-switchTrack { opacity: 0.45; }
.class-switch-off { opacity: 0.45; cursor: default; }
