/* gseunited.com's theme and layout, for every page this site serves.
   ───────────────────────────────────────────────────────────────────────────────────────────
   Larry, 2026-10-20: "I want all PAGES to have that Theme" and "AUDIT GSEUNITED.com Placement
   on elements and COPY IT EXACTLY". It had been done one page at a time, which is how pages
   kept getting missed. This file is the only copy: a page that links it is themed, and there
   is nowhere else to change a colour or a measurement.

   COLOUR AND TYPE come from C:\Git\gseunited-website setup/03-theme-wowhead.rb and from the
   live page's computed custom properties (Discourse emits its ramp as percentages):

     --font-family / --heading-font-family   "Friz Quadrata TT", Arial, sans-serif
     --secondary  #222222   --primary    #dddddd   --tertiary #36c3d4
     --highlight  #a87137   --danger     #e45735   --success  #1ca551
     --d-hover    #313131   --d-selected #052e3d   --header_background #111111
     --primary-medium 56.33% -> #909090     --primary-low 19.07% -> #313131
     its input border #585858               --secondary under rgba(0,0,0,.35) -> #161616

   PLACEMENT was measured on the live forum at 1440x950 and at 390x844:

     .d-header-wrap   sticky, top 0, z-index 1000, 78px tall, background TRANSPARENT - it stays
                      transparent when scrolled too, so the page glow runs behind it
     .header-buttons  32px tall at y=23, i.e. centred in the 78px header; its RIGHT edge is the
                      content column's right edge (both ended at x=1257 of a 1425px viewport),
                      not the window corner. Sign Up then Log In, 8px apart
     #main-outlet-wrapper   max-width 1110px, margin auto, padding 0 10.72px
     #main-outlet           padding-top 16px
     at 390px wide:   the header is NOT sticky, buttons sit at y=12, and Sign Up is hidden -
                      only Log In shows

   Both fonts are served by the forum with `access-control-allow-origin: *`, so they load from
   here. If it ever stops serving them, pages fall back to Arial and Consolas and stay readable.

   Names are prefixed --gseu- so a page's own tokens can point at these without colliding with
   whatever it already calls things. A page maps its own names; it never restates the values. */

@font-face { font-family: "Friz Quadrata TT"; font-display: swap;
  src: url("https://gseunited.com/uploads/default/original/1X/43bf7b77e7c3535f176f5f97618ae78a8128fc25.ttf") format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-display: swap;
  src: url("https://gseunited.com/fonts/JetBrainsMono-Regular.woff2?v=0.0.19") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap;
  src: url("https://gseunited.com/fonts/JetBrainsMono-Bold.woff2?v=0.0.19") format("woff2"); }

:root {
  --gseu-page: #0d1116;         /* the forum's html background */
  --gseu-surface: #222222;      /* --secondary */
  --gseu-inset: #161616;        /* --secondary under its own rgba(0,0,0,.35) sink */
  --gseu-raised: #313131;       /* --d-hover */
  --gseu-sel: #052e3d;          /* --d-selected */
  --gseu-header: #111111;       /* --header_background */

  --gseu-text: #dddddd;         /* --primary */
  --gseu-muted: #909090;        /* --primary-medium: readable on the page */
  --gseu-muted-hi: #a6a6a6;     /* --primary-high: for muted text on a raised surface,
                                   where --gseu-muted falls under 4.5:1 */
  --gseu-rule: #585858;         /* its input border */
  --gseu-rule-soft: #313131;    /* --primary-low */

  --gseu-accent: #36c3d4;       /* --tertiary: links, labels, buttons */
  --gseu-accent-hi: #5ad2e0;    /* the same button, hovered */
  --gseu-on-accent: #222222;    /* the text the forum puts on an accent button */
  --gseu-highlight: #a87137;    /* --highlight */
  --gseu-danger: #e45735;       /* --danger */
  --gseu-ok: #1ca551;           /* --success */

  --gseu-ui: "Friz Quadrata TT", Arial, sans-serif;
  --gseu-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gseu-radius: 4px;           /* --d-border-radius */

  /* The measurements above, as tokens, so a page lays out on the forum's grid. */
  --gseu-col: 1110px;           /* #main-outlet-wrapper max-width */
  --gseu-gutter: 10.72px;       /* its side padding */
  --gseu-header-h: 78px;        /* .d-header-wrap height */

  /* "Site-wide BASE background matching gseunited.com: dark #0d1116 with a teal glow
     top-centre + a subtle gold glow", copied from the theme file. */
  --gseu-glow:
    radial-gradient(1100px 620px at 50% -8%, rgba(54, 195, 212, 0.2), rgba(0, 0, 0, 0) 60%),
    radial-gradient(900px 500px at 50% 6%, rgba(216, 166, 76, 0.11), rgba(0, 0, 0, 0) 60%);

  color-scheme: dark;
}

/* The forum fixes its glow to the viewport, so anything that repeats it - a sticky bar - lines
   up with the page behind it pixel for pixel rather than showing a flat patch. */
html {
  background-color: var(--gseu-page);
  background-image: var(--gseu-glow);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* margin:0 so the header sits flush. Without it the browser's default 8px pushed the viewer
   pages' header to y=31 where every other page had it at 23. */
body { margin: 0; color: var(--gseu-text); font-family: var(--gseu-ui); }

/* ── The header ─────────────────────────────────────────────────────────────────────────────
   Full width and sticky, but transparent, so what reads as a header is only the row of
   controls sitting in the column. Exactly what .d-header-wrap does. */
.gseu-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--gseu-header-h);
  background: transparent;
}
/* The vanishing point (Larry, 2026-10-21: "header needs a vanishing point for the page").
   The header is transparent, so a page that scrolls - Top Gear's gear rows, the Atlas -
   slid its content right up behind the wordmark with nothing to disappear into.
   This is a scrim BEHIND the header that repeats the page's own background, then masks
   itself away downwards: solid at the top where the controls sit, gone by the bottom edge,
   so content fades out as it rises rather than passing behind.
   `background-attachment: fixed` for the same reason the html rule gives: the glow is
   fixed to the viewport, so repeating it here lines it up pixel for pixel instead of
   showing a flat patch against it.
   It is a pseudo-element rather than a background on .gseu-header so the mask cannot touch
   the logo and the buttons, which must stay fully opaque. */
.gseu-header::before {
  content: ''; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none;
  background-color: var(--gseu-page);
  background-image: var(--gseu-glow);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%);
}
/* Its contents share the content column, so the buttons line up with the column's right edge
   rather than the window's. On the forum both ended at the same x. */
.gseu-header-in {
  max-width: var(--gseu-col); margin: 0 auto; padding: 0 var(--gseu-gutter);
  height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.gseu-header-in .gseu-home {
  margin-right: auto; display: inline-flex; align-items: center; gap: 8px;
  color: var(--gseu-text); text-decoration: none; font-weight: 700;
}
.gseu-header-in .gseu-home img { height: 32px; width: auto; display: block; }
.gseu-header-in .gseu-home:hover { color: var(--gseu-accent); }

/* ── Headings ───────────────────────────────────────────────────────────────────────────────
   One rule for every page. They had drifted to five - 41.6px/900 with a 2px stroke, 34px/700,
   45.76px/900 with a drop shadow, 52px/700 - which is what Larry kept seeing (2026-10-20: "I
   asked like 2 other times to fix/match this header"). This is the forum's own h1, measured
   there: 32px, 700, Friz Quadrata. Pages no longer set their own.
   A wordmark inside one takes the accent for its first part, as the forum does with links. */
h1 { font: 700 32px/1.2 var(--gseu-ui); letter-spacing: .01em; margin: 0 0 10px; }

/* ── The content column ─────────────────────────────────────────────────────────────────── */
.gseu-wrap { max-width: var(--gseu-col); margin: 0 auto; padding: 0 var(--gseu-gutter); }
.gseu-wrap > :first-child { padding-top: 16px; }   /* #main-outlet */

/* ── The footer ─────────────────────────────────────────────────────────────────────────────
   Larry, 2026-10-20: "every footer should look like this ... Header and Footer should be on
   every page". It lived only on the landing page; the gate injects it everywhere now, so this
   is the one copy of how it looks. */
.gseu-footer {
  max-width: var(--gseu-col); margin: 40px auto 0; padding: 18px var(--gseu-gutter) 28px;
  border-top: 1px solid var(--gseu-rule-soft);
  color: var(--gseu-muted); font: 400 14px/1.5 var(--gseu-ui); text-align: center;
}
.gseu-footer p { margin: 0; }
.gseu-footer .gseu-support-label { font-size: .95rem; margin-bottom: 8px; letter-spacing: .02em; }
.gseu-footer .gseu-support {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 10px; margin-bottom: 14px;
}
.gseu-footer .gseu-support a {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--gseu-text); text-decoration: none; font-weight: 600;
}
.gseu-footer .gseu-support a:hover, .gseu-footer .gseu-support a:focus-visible { color: var(--gseu-accent); }
.gseu-footer .gseu-ico-sm { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; display: block; }
.gseu-footer .gseu-sep { color: var(--gseu-muted); }
.gseu-footer .gseu-copy { font-size: .8rem; font-weight: 900; color: var(--gseu-text); }
.gseu-footer .gseu-est { font-size: .8rem; letter-spacing: 3px; text-transform: lowercase; margin-top: 8px; font-weight: 900; }

/* ── The one button shape the forum uses ───────────────────────────────────────────────── */
.gseu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: var(--gseu-radius);
  background: var(--gseu-accent); color: var(--gseu-on-accent);
  font: 400 14px/1 var(--gseu-ui); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.gseu-btn:hover, .gseu-btn:focus-visible { background: var(--gseu-accent-hi); }
.gseu-btn:focus-visible { outline: 2px solid var(--gseu-accent); outline-offset: 2px; }

/* Phone: the forum stops sticking the header, drops to y=12, and hides Sign Up. */
@media (max-width: 560px) {
  .gseu-header { position: static; height: auto; }
  .gseu-header-in { padding-top: 12px; padding-bottom: 12px; }
  .gseu-signup { display: none; }
}
