/* Street Gonzo TV brand layer: header, menu, LIVE NOW sign and footer (all pages). */
@font-face { font-family:Grotters; src:url('/fonts/grotters/Grotters.woff') format('woff'), url('/fonts/grotters/Grotters.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:block; } /* Commercial license must be bought before launch: fontspace.com/grotters-font-f43426 */
@font-face { font-family:"Roboto Slab"; src:url('/fonts/robotoslab/RobotoSlab-Variable.woff') format('woff'), url('/fonts/robotoslab/RobotoSlab-Variable.ttf') format('truetype'); font-weight:100 900; font-style:normal; font-display:block; }
@font-face { font-family:"Special Elite"; src:url('/fonts/specialelite/SpecialElite-Regular.woff') format('woff'), url('/fonts/specialelite/SpecialElite-Regular.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:block; }
:root { --neon:#ff2a1f; --neon-soft:#ff5a45; --neon-glow:0 0 4px rgba(255,42,31,.9), 0 0 12px rgba(255,42,31,.65), 0 0 28px rgba(255,42,31,.4); --slab:"Roboto Slab",Rockwell,serif; --typewriter:"Special Elite","Courier New",Courier,monospace; }

/* Pinned header */
/* Every header looks like the Listening Room's (Gary, Nov 11): no thin red line, a heavier, darker fade from the top (Gary, Nov 11 late). */
.site-header { position:sticky; top:0; z-index:1030; background:linear-gradient(rgba(0,0,0,.94),rgba(0,0,0,.78) 55%,rgba(0,0,0,.35) 85%,transparent); border-bottom:0; transition:background-color .25s, backdrop-filter .25s; }
/* See-through at the top of the page; turns dark once the page scrolls (or the phone menu opens) so the menu stays readable. */
/* The header keeps its see-through fade while scrolling (Gary, Nov 11); only the open phone menu gets a solid backing. */
.site-header:has(.navbar-collapse.show),.site-header:has(.navbar-collapse.collapsing) { background:rgba(5,5,5,.92); backdrop-filter:blur(6px); }
.site-header .site-nav { padding:10px clamp(16px,3vw,36px); gap:24px; align-items:center; flex-wrap:nowrap; }
.brand-logo { padding:0; margin:0; flex:0 0 auto; }
.brand-logo img { width:150px; height:auto; filter:drop-shadow(0 0 6px rgba(255,42,31,.35)); }
/* Hovering the logo turns "TV" white with a little electric zap (Gary, Nov 5). No sound. */
.brand-logo { position:relative; display:inline-block; }
.brand-logo img.brand-logo-tv { position:absolute; left:0; top:0; opacity:0; pointer-events:none; filter:drop-shadow(0 0 4px rgba(255,255,255,.85)) drop-shadow(0 0 10px rgba(160,230,255,.55)); transition:opacity .12s; }
.brand-logo-zap { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
/* Yellow lightning with a white-hot core (Gary, Nov 6). */
.brand-logo-zap path { fill:none; stroke:#fffbe0; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 2px #ffe94a) drop-shadow(0 0 5px rgba(255,214,0,.95)) drop-shadow(0 0 10px rgba(255,190,0,.6)); opacity:0; }
.brand-logo:hover img.brand-logo-tv, .brand-logo:focus-visible img.brand-logo-tv { opacity:1; animation:logo-tv-flicker .55s steps(1) 1; }
.brand-logo:hover .brand-logo-zap path, .brand-logo:focus-visible .brand-logo-zap path { animation:logo-zap 1.4s steps(1) infinite; }
.brand-logo:hover .brand-logo-zap path:nth-child(2), .brand-logo:focus-visible .brand-logo-zap path:nth-child(2) { animation-delay:.35s; }
.brand-logo:hover .brand-logo-zap path:nth-child(3), .brand-logo:focus-visible .brand-logo-zap path:nth-child(3) { animation-delay:.8s; }
.brand-logo:hover .brand-logo-zap path:nth-child(4), .brand-logo:focus-visible .brand-logo-zap path:nth-child(4) { animation-delay:1.05s; }
@keyframes logo-tv-flicker { 0% { opacity:0; } 12% { opacity:1; } 24% { opacity:.15; } 36% { opacity:1; } 60% { opacity:.55; } 72%, 100% { opacity:1; } }
@keyframes logo-zap { 0%, 100% { opacity:0; } 3% { opacity:1; } 7% { opacity:0; } 10% { opacity:.85; } 14% { opacity:0; } }
@media (prefers-reduced-motion: reduce) { .brand-logo:hover img.brand-logo-tv, .brand-logo:hover .brand-logo-zap path { animation:none; } }
.site-header .navbar-collapse { justify-content:space-between; gap:24px; }

/* Neon menu */
.site-header .primary-links { gap:clamp(10px,1.6vw,26px); flex-wrap:wrap; font-size:inherit; font-weight:400; }
.site-header .primary-links a:not(.btn) { font-family:Grotters,Anton,Impact,sans-serif; font-size:clamp(1.25rem,1.9vw,1.75rem); line-height:1; color:#ff4433; text-shadow:var(--neon-glow); padding:8px 2px; transition:color .15s, text-shadow .15s, transform .15s; }
.site-header .primary-links a:not(.btn):hover,.site-header .primary-links a:not(.btn):focus-visible,.site-header .primary-links a[aria-current="page"] { color:#fff3ee; text-shadow:0 0 3px #fff, 0 0 10px var(--neon), 0 0 24px var(--neon), 0 0 46px var(--neon); }
.site-header .primary-links a.admin-link { font-family:Arial,Helvetica,sans-serif; font-size:.75rem; font-weight:700; color:var(--muted); text-shadow:none; }

/* Sign in / Join */
.site-header .account-links { gap:12px; font-size:.8rem; }
.site-header .account-links .btn { min-height:36px; padding:6px 14px; font-family:Arial,Helvetica,sans-serif; font-weight:600; border-radius:4px; }
.site-header .account-links .btn-outline-primary { --bs-btn-border-color:#555; --bs-btn-color:#eee; display:inline-flex; align-items:center; gap:8px; }
/* A captain's hat beside Sign in (Gary, Nov 12: the white-and-navy yacht kind, with the gold anchor; was the skull). */
.site-header .account-links .btn-outline-primary::before { content:""; width:30px; height:20px; background:url('/images/home/captain-hat.svg') center/contain no-repeat; }
.site-header .account-links .btn-primary { --bs-btn-bg:transparent; --bs-btn-color:#fff; --bs-btn-border-color:var(--neon); --bs-btn-hover-bg:var(--neon); --bs-btn-hover-color:#000; --bs-btn-hover-border-color:var(--neon); box-shadow:0 0 8px rgba(255,42,31,.55), inset 0 0 6px rgba(255,42,31,.35); }

/* LIVE NOW sign: dark (links to /Live) until a broadcast is on air, then lit and linked to the stream (brand.js checks /api/live/on-air). */
.live-sign.live-sign-bar { display:none; }
.live-sign { position:absolute; right:clamp(16px,3vw,36px); top:100%; margin-top:10px; display:block; width:clamp(110px,10vw,150px); text-decoration:none; }
.live-sign img { width:100%; height:auto; opacity:.22; filter:grayscale(1); transition:opacity .2s, filter .2s; }
.live-sign.is-live img { opacity:1; filter:brightness(0) saturate(100%) invert(27%) sepia(97%) saturate(4840%) hue-rotate(353deg) brightness(104%) contrast(108%) drop-shadow(0 0 6px rgba(255,42,31,.95)) drop-shadow(0 0 16px rgba(255,42,31,.7)); }
.live-sign.is-live { animation:live-hum 2.4s ease-in-out infinite; }
/* A box around LIVE NOW so it stands out a little more (Gary, Nov 5). The sign keeps its size, font and behaviour:
   a quiet grey box while off air, a red glowing box while live. */
.live-sign { box-sizing:content-box; padding:7px 12px; border:1px solid rgba(255,255,255,.3); border-radius:6px; background:rgba(0,0,0,.45); }
.live-sign.is-live { border-color:#ff2a1f; box-shadow:0 0 10px rgba(255,42,31,.6), inset 0 0 10px rgba(255,42,31,.25); }
@keyframes live-hum { 50% { opacity:.86; } }

/* Phone and tablet menu */
.site-header .navbar-toggler { border:1px solid var(--neon); border-radius:4px; box-shadow:0 0 8px rgba(255,42,31,.5); margin-left:auto; }
@media (max-width: 991.98px) {
    .site-header .site-nav { flex-wrap:wrap; }
    .brand-logo img { width:110px; }
    .site-header .navbar-collapse { flex-basis:100%; }
    .site-header .primary-links { flex-direction:column; align-items:flex-end; gap:4px; padding:12px 0; }
    .site-header .account-links { justify-content:flex-end; }
    .site-header .primary-links a:not(.btn) { font-size:1.9rem; }
    .site-header .account-links { margin:0 0 16px; }
    /* Centred in the phone header (Gary, Nov 6). */
    .live-sign { top:40px; left:50%; right:auto; transform:translateX(-50%); margin:0; width:96px; }
}
@media (prefers-reduced-motion: reduce) { .live-sign.is-live { animation:none; } }

/* Footer */
.site-footer { background:#050505; border-top:1px solid rgba(255,42,31,.5); }
.site-footer .footer-bottom { padding-top:26px; padding-bottom:30px; }
.site-footer .footer-copyright { font-family:Anton,Impact,sans-serif; font-size:1.05rem; letter-spacing:.02em; color:#ff4433; text-shadow:var(--neon-glow); }
.site-footer .footer-bottom { border-top:0; color:#ccc; }
.site-footer .footer-bottom nav { flex-wrap:wrap; gap:6px 18px; }
.site-footer .footer-bottom nav a { color:#ff4433; font-weight:700; letter-spacing:.04em; text-transform:uppercase; text-shadow:0 0 6px rgba(255,42,31,.6); }
.site-footer .footer-bottom nav a:hover { color:#fff; }

/* Contact and Hire us pop-ups (and the /Contact fallback page) */
.outreach-dialog { width:min(720px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); padding:0; border:2px solid var(--neon); border-radius:8px; background:#0b0b0b; color:#eee; box-shadow:0 0 18px rgba(255,42,31,.55), 0 20px 60px rgba(0,0,0,.8); }
.outreach-dialog::backdrop { background:rgba(0,0,0,.72); backdrop-filter:blur(3px); }
.outreach-dialog[data-form="hire"] { width:min(920px,calc(100vw - 24px)); }
.outreach-body { padding:28px clamp(18px,4vw,40px) 32px; overflow:auto; max-height:calc(100dvh - 36px); }
.outreach-close { position:absolute; top:8px; right:10px; width:44px; height:44px; border:0; background:none; color:#ff4433; font-size:2rem; line-height:1; text-shadow:var(--neon-glow); cursor:pointer; z-index:1; }
.outreach-close:hover,.outreach-close:focus-visible { color:#fff; }
.outreach-title { font-family:Anton,Impact,sans-serif; font-size:clamp(1.8rem,4vw,2.6rem); color:#ff4433; text-shadow:var(--neon-glow); margin:0 40px 6px 0; }
.outreach-intro { color:#ccc; font-size:.9rem; margin:0 0 18px; }
.outreach-form { display:grid; gap:14px; }
.outreach-field { display:grid; gap:6px; font-size:.85rem; font-weight:700; color:#eee; }
.outreach-optional { font-weight:400; color:#999; }
.outreach-field input,.outreach-field textarea { width:100%; padding:10px 12px; font:inherit; font-weight:400; font-size:1rem; color:#fff; background:#151515; border:1px solid #444; border-radius:4px; }
.outreach-field input:focus,.outreach-field textarea:focus { outline:none; border-color:var(--neon); box-shadow:0 0 8px rgba(255,42,31,.55); }
.outreach-error { min-height:0; font-size:.8rem; font-weight:700; color:#ff8a7a; }
.outreach-error:empty { display:none; }
.outreach-status { margin:0; padding:10px 12px; border:1px solid #ff4433; border-radius:4px; background:rgba(255,42,31,.12); color:#ffd6cf; font-size:.9rem; }
.outreach-group { border:1px solid #333; border-radius:6px; padding:14px 16px 16px; margin:0; display:grid; gap:12px; }
.outreach-group legend { float:none; width:auto; padding:0 6px; margin:0; font-family:Anton,Impact,sans-serif; font-size:1.15rem; letter-spacing:.02em; color:#ff4433; }
.outreach-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px 20px; }
.outreach-choices { display:grid; gap:6px; font-size:.9rem; }
.outreach-choices > p { margin:0; font-size:.85rem; font-weight:700; color:#eee; }
.outreach-choices label { display:flex; gap:8px; align-items:flex-start; color:#ddd; line-height:1.35; cursor:pointer; }
.outreach-choices input { margin-top:3px; accent-color:#ff3b2b; }
.outreach-submit { justify-self:start; min-height:48px; padding:10px 32px; border:2px solid var(--neon); border-radius:6px; background:rgba(20,0,0,.55); color:#fff; font-weight:700; font-size:1.05rem; box-shadow:0 0 8px rgba(255,42,31,.75), inset 0 0 8px rgba(255,42,31,.45); cursor:pointer; transition:background .15s, color .15s; }
.outreach-submit:hover,.outreach-submit:focus-visible { background:var(--neon); color:#000; }
.outreach-submit:disabled,.submit-button:disabled { opacity:.6; cursor:progress; }
.outreach-done,.outreach-sent { margin:0; padding:28px 12px; text-align:center; font-family:Anton,Impact,sans-serif; font-size:clamp(1.6rem,4vw,2.4rem); color:#ff4433; text-shadow:var(--neon-glow); }
.outreach-trap { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.contact-page { max-width:920px; margin:0 auto; display:grid; gap:40px; }
.outreach-panel { padding:24px clamp(16px,4vw,36px); border:1px solid #333; border-radius:8px; background:rgba(10,10,10,.85); }

/* Donation pop-up (and /Donate): amount chips, then Stripe. */
.donate-form { display:grid; gap:14px; }
.donate-amounts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; border:0; padding:0; margin:0; }
.donate-amount { position:relative; cursor:pointer; }
.donate-amount input { position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.donate-amount span { display:flex; align-items:center; justify-content:center; min-height:54px; border:2px solid var(--neon); border-radius:6px; background:rgba(20,0,0,.55); font-family:Anton,Impact,sans-serif; font-size:1.4rem; color:#ff4433; text-shadow:0 0 6px rgba(255,42,31,.8); box-shadow:0 0 8px rgba(255,42,31,.6), inset 0 0 8px rgba(255,42,31,.35); transition:background .15s, color .15s; }
.donate-amount input:checked + span { background:var(--neon); color:#000; text-shadow:none; box-shadow:0 0 14px rgba(255,42,31,1), 0 0 30px rgba(255,42,31,.6); }
.donate-amount input:focus-visible + span { outline:2px solid #fff; outline-offset:2px; }
.donate-dollar { display:flex; align-items:center; gap:8px; font-size:1.2rem; font-weight:400; }
.donate-dollar input { max-width:180px; }
.donate-note { margin:0; color:#999; font-size:.8rem; }
.donate-panel { margin:18px 0; }
/* Thank-you page after Stripe */
.donate-thanks { max-width:1200px; margin:0 auto; display:grid; gap:18px; justify-items:center; text-align:center; }
.donate-thanks-image { width:100%; height:auto; border:2px solid var(--neon); border-radius:6px; box-shadow:0 0 18px rgba(255,42,31,.7), 0 0 50px rgba(255,42,31,.35); }
.donate-thanks-note { margin:0; color:#ddd; font-family:var(--typewriter); }
.donate-thanks-links { display:flex; flex-wrap:wrap; gap:18px; align-items:center; justify-content:center; }
.donate-thanks-links .outreach-submit { text-decoration:none; display:inline-flex; align-items:center; }
.donate-thanks-home { color:#ff6a5a; }
.outreach-dialog[data-form="donate"] { width:min(480px,calc(100vw - 24px)); }

/* 10-second hover previews on film covers (desktop mouse only); clicks still go to the film. */
.hover-preview { position:absolute; inset:0; width:100%; height:100%; border:0; pointer-events:none; opacity:0; transition:opacity .35s; background:#000; }
.hover-preview.is-ready { opacity:1; }
@media (prefers-reduced-motion: reduce) { .hover-preview { transition:none; } }
.donate-recent { margin:0; font-family:var(--typewriter); font-size:.85rem; color:#ddd; }
.donate-recent a { display:block; margin-top:4px; color:#ff6a5a; font-family:Arial,Helvetica,sans-serif; font-size:.8rem; }

/* "Coming soon" films: listed with their free trailer before the full film is out. */
.coming-soon-tag { display:inline-block; padding:3px 8px; border-radius:3px; background:var(--neon); color:#000; font:700 .7rem Arial,Helvetica,sans-serif; letter-spacing:.08em; text-transform:uppercase; box-shadow:0 0 10px rgba(255,42,31,.7); }
.tile-tag { position:absolute; z-index:2; top:8px; left:8px; }
.watch-coming-soon { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 14px; color:#ddd; }

/* Header Contact dropdown: Email SGHQ / Hire Us / Submit Tip (each opens its pop-up form). */
.site-header .nav-dropdown { position:relative; display:inline-flex; }
.site-header .nav-dropdown-menu { position:absolute; left:50%; top:100%; transform:translateX(-50%); z-index:1040; display:none; min-width:190px; padding:8px; background:rgba(8,8,8,.96); border:1px solid rgba(255,42,31,.6); border-radius:8px; box-shadow:0 0 22px rgba(255,42,31,.35); }
.site-header .nav-dropdown:hover .nav-dropdown-menu, .site-header .nav-dropdown:focus-within .nav-dropdown-menu { display:grid; gap:2px; }
.site-header .primary-links .nav-dropdown-menu a:not(.btn) { display:block; padding:9px 12px; border-radius:6px; font:700 .95rem Arial,Helvetica,sans-serif; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; color:#fff; text-shadow:none; }
.site-header .primary-links .nav-dropdown-menu a:not(.btn):hover, .site-header .primary-links .nav-dropdown-menu a:not(.btn):focus-visible { background:rgba(255,42,31,.18); color:#ff6a5a; text-shadow:none; }
@media (max-width:991px) {
  /* Contact lines up on the right like the other menu items. */
  .site-header .nav-dropdown { display:block; text-align:right; }
  /* Phones: Contact is just a link to the Contact page; the three options aren't listed under it (Gary, Nov 5). */
  .site-header .nav-dropdown-menu, .site-header .nav-dropdown:hover .nav-dropdown-menu, .site-header .nav-dropdown:focus-within .nav-dropdown-menu { display:none; }
}
/* Tip form inside the pop-up (the homepage version lives in home.css). */
.outreach-dialog .tips-dialog { text-align:center; padding:4px 0; }
.outreach-dialog .tips-form { display:grid; gap:12px; justify-items:center; }
.outreach-dialog .tips-form > .tips-select, .outreach-dialog .tips-form > .tips-message, .outreach-dialog .tips-form > .tips-files, .outreach-dialog .tips-form > .tips-privacy, .outreach-dialog .tips-form > .outreach-status, .outreach-dialog .tips-form > .outreach-error { width:100%; }
.outreach-dialog .tips-select, .outreach-dialog .tips-message { padding:12px 16px; font-size:1rem; color:#eee; background:rgba(0,0,0,.6); border:3px double #bbb; border-radius:2px; }
.outreach-dialog .tips-message { min-height:120px; resize:vertical; }
.outreach-dialog .tips-files { display:grid; gap:6px; text-align:left; font-size:.85rem; color:#ddd; }
.outreach-dialog .tips-files input::file-selector-button { margin-right:10px; padding:6px 12px; border:1px solid #ff3b2b; border-radius:4px; background:rgba(60,0,0,.5); color:#fff; cursor:pointer; }
.outreach-dialog .tips-privacy { margin:0; text-align:left; font-size:.75rem; color:#aaa; }

/* Wider pages and LIVE NOW in the header bar (Gary, Oct 31). On laptops and desktops the content column uses the screen
   instead of stopping at 1320px; reading pages keep their own text width. */
@media (min-width: 992px) {
    .container { max-width:min(1800px, 100%); padding-left:clamp(20px, 2vw, 32px); padding-right:clamp(20px, 2vw, 32px); }
    body.community-fit main.page-main { max-width:min(1800px, 100%); }
    /* LIVE NOW sits in the header bar, centred in the gap between the menu and Sign in / Join. */
    .live-sign:not(.live-sign-bar) { display:none; }
    .site-header .live-sign.live-sign-bar { display:block; position:static; margin:0 auto; flex:none; width:clamp(104px, 8vw, 150px); }
}

/* Donation footer on every page, built from Gary's Nov 6 mockups.
   Desktop: heading and buttons on one line, then © · his line · tagline on one line. Phones: heading, short line,
   cyan Donate + green Sponsor, then © and the tagline. */
.site-footer.donate-footer { --cyan:#19f0ff; --green:#2fd866; --gold:#ffc83d; background:#050505; border-top:1px solid rgba(255,42,31,.5); padding:22px 0 18px; }
.donate-footer .fund-section { display:grid; grid-template-columns:auto auto; justify-content:center; align-items:center; gap:10px 36px; }
.donate-footer .fund-section h2 { grid-column:1; grid-row:1; margin:0; font-family:Anton,Impact,"Arial Narrow",sans-serif; font-size:clamp(2rem,3.4vw,3rem); line-height:1; color:#ff4433; text-shadow:var(--neon-glow); letter-spacing:.01em; white-space:nowrap; }
.donate-footer .fund-short, .donate-footer .fund-phone { display:none; }
.donate-footer .fund-buttons { grid-column:2; grid-row:1; display:flex; align-items:center; gap:10px; margin:0; }
.donate-footer .neon-box { display:inline-flex; align-items:center; justify-content:center; min-width:58px; min-height:46px; padding:6px 12px; border:2px solid var(--neon); border-radius:6px; background:rgba(20,0,0,.55); font:400 1.25rem Anton,Impact,sans-serif; color:#ff4433; text-shadow:0 0 6px rgba(255,42,31,.8); text-decoration:none; box-shadow:0 0 10px rgba(255,42,31,.55), inset 0 0 8px rgba(255,42,31,.25); cursor:pointer; }
.donate-footer .neon-box:hover, .donate-footer .neon-box:focus-visible { background:var(--neon); color:#000; text-shadow:none; box-shadow:0 0 14px rgba(255,42,31,1), 0 0 34px rgba(255,42,31,.7); }
/* Cyan box: reads "Donate"; type any amount and press Enter or the arrow. */
.donate-footer .fund-custom { width:136px; margin-left:8px; padding:0 6px; border-color:var(--cyan); background:rgba(0,18,22,.6); color:var(--cyan); text-shadow:0 0 6px rgba(25,240,255,.8); box-shadow:0 0 10px rgba(25,240,255,.55), inset 0 0 8px rgba(25,240,255,.25); cursor:text; }
.donate-footer .fund-custom:hover, .donate-footer .fund-custom:focus-within { background:rgba(0,18,22,.85); color:var(--cyan); text-shadow:0 0 6px rgba(25,240,255,.8); box-shadow:0 0 14px rgba(25,240,255,1), 0 0 30px rgba(25,240,255,.55); }
.donate-footer .fund-custom input { flex:1 1 auto; width:100%; min-width:0; height:auto; padding:0; border:0 !important; outline:0; border-radius:0; box-shadow:none !important; background:transparent !important; -webkit-appearance:none; appearance:none; color:#eaffff; text-align:center; font:400 1.25rem Anton,Impact,sans-serif; letter-spacing:.02em; }
.donate-footer .fund-custom input::placeholder { color:var(--cyan); opacity:1; }
.donate-footer .fund-custom input:focus::placeholder { color:rgba(25,240,255,.45); }
.donate-footer .fund-custom-go { display:none; flex:none; width:32px; height:32px; border:0; border-radius:4px; background:transparent; color:var(--cyan); font-size:1.2rem; line-height:1; cursor:pointer; }
.donate-footer .fund-custom:has(input:not(:placeholder-shown)) .fund-custom-go { display:block; }
.donate-footer .fund-custom-go:hover, .donate-footer .fund-custom-go:focus-visible { background:var(--cyan); color:#001316; }
.donate-footer .fund-sponsor, .donate-footer .fund-donate { width:136px; }
.donate-footer .fund-buttons { gap:14px; }
.donate-footer .fund-buttons .neon-box { width:auto; min-width:0; padding:6px 16px; font-size:1.15rem; white-space:nowrap; }
.donate-footer .fund-give { margin-right:10px; }
/* Contact buttons use the Switchboard's colours (Nov 6). */
.donate-footer .fund-email { border-color:var(--cyan); background:rgba(0,18,22,.6); color:var(--cyan); text-shadow:0 0 6px rgba(25,240,255,.8); box-shadow:0 0 10px rgba(25,240,255,.55), inset 0 0 8px rgba(25,240,255,.25); }
.donate-footer .fund-email:hover, .donate-footer .fund-email:focus-visible { background:var(--cyan); color:#001316; text-shadow:none; }
.donate-footer .fund-hire { border-color:var(--green); background:rgba(0,22,6,.55); color:var(--green); text-shadow:0 0 6px rgba(47,216,102,.8); box-shadow:0 0 10px rgba(47,216,102,.55), inset 0 0 8px rgba(47,216,102,.25); }
.donate-footer .fund-tip { border-color:#ff2a1f; background:rgba(20,0,0,.55); color:#ff4433; }
.donate-footer .fund-give { background:#ff2a1f; color:#120000; text-shadow:none; }
.donate-footer .fund-give:hover, .donate-footer .fund-give:focus-visible { background:#ff5a4d; color:#000; }
.donate-footer .fund-hire:hover, .donate-footer .fund-hire:focus-visible { background:var(--green); color:#001a06; text-shadow:none; }
.donate-footer .fund-phone .fund-sponsor { width:auto; }
.donate-footer .fund-sponsor { border-color:var(--gold); background:rgba(24,18,0,.55); color:var(--gold); text-shadow:0 0 6px rgba(255,200,61,.8); box-shadow:0 0 10px rgba(255,200,61,.5), inset 0 0 8px rgba(255,200,61,.22); }
.donate-footer .fund-sponsor:hover, .donate-footer .fund-sponsor:focus-visible { background:var(--gold); color:#1a1200; text-shadow:none; }
.donate-footer .fund-donate { border-color:var(--cyan); background:rgba(0,18,22,.6); color:var(--cyan); text-shadow:0 0 6px rgba(25,240,255,.8); box-shadow:0 0 10px rgba(25,240,255,.55), inset 0 0 8px rgba(25,240,255,.25); }
.donate-footer .fund-donate:hover, .donate-footer .fund-donate:focus-visible { background:var(--cyan); color:#001316; text-shadow:none; box-shadow:0 0 14px rgba(25,240,255,1), 0 0 34px rgba(25,240,255,.6); }
.donate-footer .fund-section .footer-fine { grid-column:1 / -1; grid-row:2; display:flex; justify-content:center; align-items:baseline; flex-wrap:wrap; gap:6px 36px; margin:8px 0 0; padding:0; border:0; font-size:.88rem; color:#8a8a8a; }
.donate-footer .fund-long { color:#eee; font-size:.95rem; }
.donate-footer .footer-fine .footer-copyright { font-size:.85rem; }
.donate-footer > .footer-fine { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; padding:0 12px; color:#8a8a8a; font-size:.78rem; }
.donate-footer .fund-section .footer-fine { max-width:none; }
/* Desktop (Gary, Nov 7): edge to edge. "Fund the next story." far left, his line in the middle, the buttons far right;
   the copyright and tagline sit under the two ends. The fine-print paragraph dissolves into the grid so its pieces can be placed. */
@media (min-width:1000px) {
  .donate-footer > .container { max-width:none; padding-inline:clamp(16px,2.4vw,40px); }
  .donate-footer .fund-section { grid-template-columns:auto minmax(0,1fr) auto; justify-content:stretch; gap:8px 24px; }
  .donate-footer .fund-section h2 { grid-column:1; grid-row:1; }
  .donate-footer .fund-buttons { grid-column:3; grid-row:1; justify-self:end; }
  .donate-footer .fund-section .footer-fine { display:contents; }
  .donate-footer .fund-long { grid-column:2; grid-row:1; justify-self:center; max-width:56ch; font-size:.9rem; text-align:center; line-height:1.4; }
  .donate-footer .footer-copyright { grid-column:1; grid-row:2; justify-self:start; }
  .donate-footer .footer-tagline { grid-column:3; grid-row:2; justify-self:end; }
}
/* Not enough room for the line between them: it moves under, between the copyright and the tagline. */
@media (min-width:1000px) and (max-width:1279px) {
  .donate-footer .fund-section h2 { grid-column:1 / 3; }
  .donate-footer .fund-long { grid-row:2; }
}
@media (max-width:999px) and (min-width:768px) {
  .donate-footer .fund-section { grid-template-columns:auto; justify-items:center; }
  .donate-footer .fund-buttons { grid-column:1; grid-row:2; }
  .donate-footer .fund-section .footer-fine { grid-row:3; }
}
@media (max-width:767px) {
  .site-footer.donate-footer { padding:24px 0 20px; }
  .donate-footer .fund-section { display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; }
  /* Phones (Gary, Nov 7): no "Fund the next story." or "Every dollar goes to the reporting." — too long. */
  .donate-footer .fund-section h2, .donate-footer .fund-short { display:none; }
  .donate-footer .fund-buttons, .donate-footer .fund-long { display:none; }
  /* Gary, Nov 14: phones and the app start the footer at "Join our mailing list" (no Donate/Partner/contact buttons). */
  .donate-footer .fund-phone { display:none; }
  .donate-footer .fund-phone .neon-box { width:auto; min-height:52px; font-size:1.35rem; }
  .donate-footer .fund-contact { grid-column:1 / -1; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
  .donate-footer .fund-contact .neon-box { min-height:42px; padding:4px 6px; font-size:1rem; }
  .donate-footer .fund-section .footer-fine { gap:6px 40px; margin:0; }
}

/* Device check #4 (Gary, Nov 11): the top menu stays on one line on every computer screen (992-1399px): tighter gaps,
   slightly smaller menu words, nothing allowed to break onto two lines, and "Admin console" shortens to "Admin". */
@media (min-width:992px) and (max-width:1399.98px) {
    .site-header .site-nav, .site-header .navbar-collapse { gap:14px; }
    .site-header .primary-links { flex-wrap:nowrap; gap:clamp(8px,1.15vw,18px); }
    .site-header .primary-links a:not(.btn) { font-size:clamp(1.05rem,1.6vw,1.5rem); white-space:nowrap; }
    .site-header .account-links { gap:8px; }
    .site-header .account-links a, .site-header .account-links .btn, .site-header .account-links button { white-space:nowrap; }
    .site-header .account-links .btn { padding:6px 10px; }
    .site-header .live-sign.live-sign-bar { width:clamp(80px,7vw,120px); }
}
/* Below 1280px "Admin console" shows as "Admin" (the full words stay in the page for screen readers and search). */
@media (min-width:992px) and (max-width:1279.98px) { .site-header .primary-links a.admin-link { font-size:0; } .site-header .primary-links a.admin-link::after { content:"Admin"; font-size:.75rem; } }

/* "The Fringe" in the menu: cyan neon, like the mock-up (Gary, Nov 11). */
.site-header .primary-links a.fringe-link:not(.btn) { color:#36c6d6; text-shadow:0 0 8px rgba(54,198,214,.8), 0 0 18px rgba(54,198,214,.45); }
.site-header .primary-links a.fringe-link:not(.btn):hover, .site-header .primary-links a.fringe-link:not(.btn):focus-visible, .site-header .primary-links a.fringe-link[aria-current="page"] { color:#eaffff; text-shadow:0 0 3px #fff, 0 0 10px #36c6d6, 0 0 24px #36c6d6, 0 0 46px #36c6d6; }
/* Keep "Admin console" small on 1280-1399px screens too (the menu-size rule above was enlarging it). */
@media (min-width:1280px) and (max-width:1399.98px) { .site-header .primary-links a.admin-link { font-size:.75rem; } }

/* Account menu (Gary, Nov 11): name, then the profile picture with a red unread circle; the picture opens the menu. */
.site-header .acct-menu { position:relative; display:flex; align-items:center; gap:10px; }
.site-header .acct-name { max-width:16ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:700 .85rem/1.2 Arial,Helvetica,sans-serif; color:#f2ebdb; }
.site-header .acct-pic-btn { position:relative; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:none; cursor:pointer; }
.site-header .acct-pic { display:grid; place-items:center; width:40px; height:40px; margin:2px; border-radius:50%; overflow:hidden; background:#2a2a2a; border:2px solid var(--neon); box-shadow:0 0 8px rgba(255,42,31,.6); }
.site-header .acct-pic img[data-acct-pic] { width:100%; height:100%; object-fit:cover; }
.site-header .acct-pic-btn:hover .acct-pic, .site-header .acct-menu.is-open .acct-pic { box-shadow:0 0 14px rgba(255,42,31,1), 0 0 26px rgba(255,42,31,.6); }
.site-header .acct-pic-btn:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.site-header .acct-count { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 5px; border-radius:999px; background:#ff2a1f; color:#fff; font:700 .7rem/1 Arial,Helvetica,sans-serif; box-shadow:0 0 0 2px #050505, 0 0 8px rgba(255,42,31,.8); }
.site-header .acct-count[hidden] { display:none; }
.site-header .acct-pic-btn > .acct-count { position:absolute; top:-4px; right:-6px; }
.site-header .acct-list { position:absolute; top:calc(100% + 8px); right:0; z-index:1050; min-width:210px; padding:6px; border:1px solid rgba(255,42,31,.55); border-radius:10px; background:rgba(8,8,8,.97); box-shadow:0 0 22px rgba(255,42,31,.3), 0 18px 40px rgba(0,0,0,.6); }
.site-header .acct-list[hidden] { display:none; }
.site-header .acct-list a, .site-header .acct-list button { display:flex; align-items:center; justify-content:flex-end; gap:10px; width:100%; min-height:44px; padding:8px 12px; border:0; border-radius:6px; background:none; color:#f2ebdb; font:700 .9rem/1 Arial,Helvetica,sans-serif; text-align:right; text-decoration:none; cursor:pointer; }
.site-header .acct-list a:hover, .site-header .acct-list a:focus-visible, .site-header .acct-list button:hover, .site-header .acct-list button:focus-visible { background:rgba(255,42,31,.18); color:#fff; outline:none; }
.site-header .acct-list form { margin:4px 0 0; padding-top:4px; border-top:1px solid rgba(255,255,255,.1); }
.site-header .acct-list button { color:#ff8a7e; }
.site-header .navbar-toggler.has-unread { position:relative; }
.site-header .navbar-toggler.has-unread::after { content:""; position:absolute; top:-5px; right:-5px; width:12px; height:12px; border-radius:50%; background:#ff2a1f; box-shadow:0 0 0 2px #050505, 0 0 8px rgba(255,42,31,.9); }
/* Phones and tablets: inside the ☰ menu, tapping the picture opens the list under the name and picture (Gary, Nov 12). */
@media (max-width:991.98px) {
    .site-header .acct-menu { flex-wrap:wrap; justify-content:flex-end; }
    .site-header .acct-list { position:static; flex-basis:100%; margin-top:8px; box-shadow:none; }
    .site-header .acct-list a, .site-header .acct-list button { justify-content:flex-end; gap:10px; }
}
/* Footer "Join our mailing list" (Gary, Nov 11): in the middle of the footer. */
.donate-footer .footer-list { display:grid; justify-items:center; gap:6px; margin:6px 0 0; }
.donate-footer .footer-list-label { font:400 .8rem/1 "Special Elite","Courier New",monospace; letter-spacing:.14em; text-transform:uppercase; color:#d9d2c5; }
.donate-footer .footer-list-row { display:flex; gap:8px; width:min(100%,380px); }
.donate-footer .footer-list input { flex:1; min-width:0; min-height:44px; padding:8px 12px; border-radius:6px; border:2px solid var(--cyan); background:rgba(0,0,0,.65); color:#fff; font-size:16px; box-shadow:0 0 8px rgba(25,240,255,.4); }
.donate-footer .footer-list input:focus { outline:none; box-shadow:0 0 12px rgba(25,240,255,.8); }
.donate-footer .footer-list .neon-box { min-height:44px; padding:6px 16px; font-size:1.05rem; }
.donate-footer .footer-list-msg { min-height:1em; font-size:.8rem; color:#bdb6aa; }
.donate-footer .footer-list.is-done .footer-list-msg { color:var(--cyan); }
@media (min-width:1280px) { .donate-footer .footer-list { grid-column:2; grid-row:2; margin:0; } }
@media (min-width:1000px) and (max-width:1279px) { .donate-footer .footer-list { grid-column:1 / -1; grid-row:3; } }
@media (max-width:999px) and (min-width:768px) { .donate-footer .footer-list { grid-row:3; } .donate-footer .fund-section .footer-fine { grid-row:4; } }
@media (max-width:767px) { .donate-footer .footer-list { width:min(100%,420px); margin:4px 0 12px; } .donate-footer .footer-list-row { width:100%; } }

/* Default profile picture: the first letter of the display name in red, like the community's (Gary, Nov 12). */
.site-header .acct-initial { font:700 1.15rem/1 Arial,Helvetica,sans-serif; color:#ff4a3d; }
.site-header .acct-initial[hidden] { display:none; }

/* Messenger box (Gary, Nov 12): a bar in the bottom-right corner that opens a small inbox, after his reference. */
.mx { position:fixed; right:max(16px, env(safe-area-inset-right,0px)); bottom:max(16px, env(safe-area-inset-bottom,0px)); z-index:1040; display:flex; flex-direction:column; align-items:flex-end; gap:10px; font-family:Arial,Helvetica,sans-serif; }
.mx[hidden] { display:none; }
.mx-bar { display:flex; align-items:center; gap:10px; min-height:52px; padding:8px 14px 8px 16px; border:1px solid rgba(255,255,255,.14); border-radius:999px; background:rgba(14,14,16,.96); color:#fff; font:700 1rem/1 Arial,Helvetica,sans-serif; box-shadow:0 10px 30px rgba(0,0,0,.6); cursor:pointer; }
.mx-bar:hover, .mx-bar:focus-visible { border-color:rgba(255,42,31,.7); box-shadow:0 10px 30px rgba(0,0,0,.6), 0 0 14px rgba(255,42,31,.45); outline:none; }
.mx.is-open .mx-bar { display:none; }
.mx-count { display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 6px; border-radius:999px; background:#ff2a1f; color:#fff; font:700 .75rem/1 Arial,sans-serif; }
.mx-count[hidden] { display:none; }
.mx-faces { display:flex; }
.mx-faces .mx-av { margin-left:-8px; box-shadow:0 0 0 2px #0e0e10; }
.mx-av { position:relative; display:grid; place-items:center; flex:none; width:52px; height:52px; border-radius:50%; overflow:hidden; background:#2a2a2a; border:2px solid #ff2a1f; }
.mx-av-sm { width:28px; height:28px; border-width:1.5px; }
.mx-av img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.mx-av-letter { font:700 1.1rem/1 Arial,sans-serif; color:#ff4a3d; }
.mx-av-sm .mx-av-letter { font-size:.72rem; }
.mx-panel { position:relative; display:flex; flex-direction:column; width:min(380px, calc(100vw - 32px)); height:min(560px, calc(100vh - 140px)); border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(14,14,16,.98); color:#f2ebdb; box-shadow:0 20px 50px rgba(0,0,0,.7); overflow:hidden; }
.mx-panel[hidden] { display:none; }
.mx-head { display:flex; align-items:center; gap:6px; padding:14px 12px 10px 18px; border-bottom:1px solid rgba(255,255,255,.08); }
.mx-head-title { flex:1; display:flex; align-items:center; gap:8px; font:700 1.1rem/1 Arial,sans-serif; color:#fff; }
.mx-icon { display:grid; place-items:center; width:40px; height:40px; border:0; border-radius:8px; background:none; color:#ddd; cursor:pointer; }
.mx-icon:hover, .mx-icon:focus-visible { background:rgba(255,255,255,.08); color:#fff; outline:none; }
.mx-list { flex:1; overflow-y:auto; padding:6px; }
.mx-list[hidden] { display:none; }
.mx-row { display:flex; align-items:center; gap:12px; width:100%; min-height:68px; padding:8px 10px; border:0; border-radius:10px; background:none; color:inherit; text-align:left; cursor:pointer; }
.mx-row:hover, .mx-row:focus-visible { background:rgba(255,255,255,.06); outline:none; }
.mx-row-text { flex:1; min-width:0; display:grid; gap:4px; }
.mx-row-text b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.98rem; color:#fff; }
.mx-row-text small { color:#9a958d; font-size:.85rem; }
.mx-row.is-unread .mx-row-text small { color:#fff; font-weight:700; }
.mx-dot { flex:none; width:9px; height:9px; border-radius:50%; background:#ff2a1f; box-shadow:0 0 8px rgba(255,42,31,.9); }
.mx-empty { padding:24px; color:#9a958d; text-align:center; }
.mx-new { position:absolute; right:16px; bottom:16px; display:grid; place-items:center; width:52px; height:52px; border-radius:50%; background:#1d1d20; color:#fff; border:1px solid rgba(255,255,255,.14); box-shadow:0 8px 20px rgba(0,0,0,.5); }
.mx-new:hover, .mx-new:focus-visible { border-color:#ff2a1f; color:#fff; }
.mx.in-thread .mx-new { display:none; }
.mx-thread { flex:1; min-height:0; display:flex; flex-direction:column; }
.mx-thread[hidden] { display:none; }
.mx-thread-head { display:flex; align-items:center; gap:8px; padding:6px 10px; border-bottom:1px solid rgba(255,255,255,.08); }
.mx-thread-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; }
.mx-body { flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:6px; padding:12px; }
.mx-msg { max-width:80%; align-self:flex-start; padding:8px 12px; border-radius:16px; background:#26262a; color:#f2ebdb; font-size:.93rem; line-height:1.35; overflow-wrap:anywhere; white-space:pre-wrap; }
.mx-msg.is-mine { align-self:flex-end; background:#c2180f; color:#fff; }
.mx-author, .mx-note { display:block; margin-bottom:2px; font-size:.72rem; color:#bbb; }
.mx-status { margin:0; padding:0 12px; min-height:0; font-size:.8rem; color:#ff8a7e; }
.mx-status:empty { display:none; }
.mx-thread-more { margin:0; padding:10px 12px; text-align:center; }
.mx-thread-more[hidden] { display:none; }
.mx-thread-more a { color:#fff; }
.mx-form { display:flex; gap:8px; padding:10px; border-top:1px solid rgba(255,255,255,.08); }
.mx-form[hidden] { display:none; }
.mx-input { flex:1; min-width:0; min-height:44px; max-height:120px; padding:10px 14px; border:1px solid #3a3a3a; border-radius:22px; background:#111; color:#fff; font-size:16px; resize:none; }
.mx-input:focus { outline:none; border-color:#ff2a1f; }
.mx-send { min-height:44px; padding:0 16px; border:0; border-radius:22px; background:#ff2a1f; color:#fff; font-weight:700; cursor:pointer; }
@media (max-width:575.98px) {
    .mx-bar span:not(.mx-count) { display:none; }
    .mx-bar { padding:8px 12px; }
    .mx-bar .mx-faces { display:none; }
    .mx.is-open { left:8px; right:8px; bottom:8px; }
    .mx-panel { width:100%; height:calc(100svh - 24px); }
}
@media print { .mx { display:none; } }

/* Footer (Gary, Nov 12): no "building the plane" line; Donate $$ moves under "Fund the next story.", beside the copyright,
   and the mailing list takes the middle. */
@media (min-width:1000px) {
  .donate-footer .fund-give { grid-column:1; grid-row:2; justify-self:end; align-self:center; margin:0; padding:6px 18px; font-size:1.15rem; white-space:nowrap; }
  .donate-footer .footer-copyright { align-self:center; }
}
@media (min-width:1280px) { .donate-footer .footer-list { grid-column:2; grid-row:1 / span 2; align-self:center; } }
@media (min-width:1000px) and (max-width:1279px) { .donate-footer .fund-section h2 { grid-column:1; } }
@media (max-width:999px) and (min-width:768px) {
  .donate-footer .fund-give { grid-column:1; grid-row:2; margin:0; padding:6px 18px; font-size:1.15rem; }
  .donate-footer .fund-buttons { grid-row:3; }
  .donate-footer .footer-list { grid-row:4; }
  .donate-footer .fund-section .footer-fine { grid-row:5; }
}
@media (max-width:767px) { .donate-footer .fund-give { display:none; } }

/* Notifications pop-out (Gary, Nov 12, after Instagram's): slides in from the right over a dimmed page. */
.ntp { position:fixed; inset:0; z-index:1060; font-family:Arial,Helvetica,sans-serif; }
.ntp[hidden] { display:none; }
.ntp-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.55); opacity:0; transition:opacity .25s ease; }
.ntp-sheet { position:absolute; top:0; right:0; bottom:0; display:flex; flex-direction:column; width:min(420px,100%); padding:max(18px, env(safe-area-inset-top,0px)) max(18px, env(safe-area-inset-right,0px)) max(14px, env(safe-area-inset-bottom,0px)) 18px; background:#0b0b0c; border-left:1px solid rgba(255,42,31,.45); box-shadow:-18px 0 40px rgba(0,0,0,.7), -2px 0 18px rgba(255,42,31,.18); transform:translateX(100%); transition:transform .25s ease; outline:none; }
.ntp.is-open .ntp-backdrop { opacity:1; }
.ntp.is-open .ntp-sheet { transform:none; }
html.ntp-open, html.ntp-open body { overflow:hidden; }
.ntp-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.ntp-head h2 { margin:0; font:400 1.9rem/1 Anton,Impact,"Arial Narrow",sans-serif; text-transform:uppercase; letter-spacing:.02em; color:#ff4433; text-shadow:0 0 10px rgba(255,42,31,.6); }
.ntp-close { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:50%; background:none; color:#ddd; cursor:pointer; }
.ntp-close:hover, .ntp-close:focus-visible { background:rgba(255,255,255,.08); color:#fff; outline:none; }
.ntp-chips { display:flex; gap:6px; overflow-x:auto; padding-bottom:10px; scrollbar-width:none; }
.ntp-chip { flex:none; min-height:36px; padding:6px 11px; border:1px solid #3a3a3a; border-radius:999px; background:#161616; color:#eee; font:700 .78rem/1 Arial,Helvetica,sans-serif; cursor:pointer; }
.ntp-chip:hover, .ntp-chip:focus-visible { border-color:rgba(255,42,31,.7); outline:none; }
.ntp-chip[aria-pressed="true"] { background:#ff2a1f; border-color:#ff2a1f; color:#fff; box-shadow:0 0 10px rgba(255,42,31,.55); }
.ntp-status { margin:4px 0; color:#aaa; font-size:.9rem; }
.ntp-status:empty { display:none; }
.ntp-list { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; margin:0 -8px; padding:0 8px; }
.ntp-group { margin:14px 0 6px; font:700 1rem/1 Arial,Helvetica,sans-serif; color:#fff; }
.ntp-row { display:flex; align-items:center; gap:12px; min-height:60px; padding:8px; border-radius:10px; color:#ddd6ca; text-decoration:none; font-size:.92rem; line-height:1.35; }
.ntp-row:hover, .ntp-row:focus-visible { background:rgba(255,255,255,.06); color:#fff; outline:none; }
.ntp-row .ntf-text { flex:1; min-width:0; overflow-wrap:anywhere; }
.ntp-row strong, .ntf-row strong { color:#fff; }
.ntp-time { color:#8f8a82; white-space:nowrap; }
.ntp-dot { flex:none; width:9px; height:9px; border-radius:50%; background:#ff2a1f; box-shadow:0 0 8px rgba(255,42,31,.9); }
.ntp-empty { margin:40px 0; text-align:center; color:#aaa; }
.ntp-foot { display:flex; justify-content:space-between; gap:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.1); }
.ntp-foot a { display:inline-flex; align-items:center; min-height:44px; color:#ff8a7e; font-weight:700; font-size:.9rem; text-decoration:none; }
.ntp-foot a:hover, .ntp-foot a:focus-visible { color:#fff; text-decoration:underline; }
/* Profile pictures beside each notification, here and on the Notifications page: the member's picture, or their first letter. */
.ntf-av { position:relative; flex:none; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; overflow:hidden; background:#2a2a2a; border:2px solid #ff2a1f; color:#ff4a3d; font:700 1.1rem/1 Arial,Helvetica,sans-serif; }
.ntf-av img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ntf-av.is-sg { background:#140808; }
.ntf-av.is-sg img { position:static; width:24px; height:24px; }
.ntf-detail { color:#c9c2b6; }
.ntp-row.is-unread .ntf-detail { color:#e9e4da; }
@media (max-width:575.98px) { .ntp-sheet { width:100%; border-left:0; } }
@media (prefers-reduced-motion:reduce) { .ntp-sheet, .ntp-backdrop { transition:none; } }

/* Messenger, Nov 12 (Gary): message requests, the "New message" box (type a member's name, after Instagram's), and the
   slide-in-from-the-right panel when it's opened from the account menu. */
.mx-row { position:relative; cursor:default; }
.mx-row-open { position:absolute; inset:0; border:0; border-radius:10px; background:none; cursor:pointer; }
.mx-row-open:focus-visible { outline:2px solid #ff2a1f; outline-offset:-2px; }
.mx-row.is-request { background:rgba(255,42,31,.07); }
.mx-req { display:flex; gap:6px; position:relative; z-index:1; }
.mx-req button { min-height:36px; padding:6px 12px; border-radius:999px; font:700 .8rem/1 Arial,sans-serif; cursor:pointer; }
.mx-req-yes { border:0; background:#ff2a1f; color:#fff; }
.mx-req-no { border:1px solid #444; background:none; color:#ddd; }
.mx-error { margin:6px; padding:8px 10px; border-radius:8px; background:rgba(255,42,31,.12); color:#ff8a7e; font-size:.85rem; }
.mx-empty p { margin:0 0 6px; }
.mx-thread-note { margin:0; padding:10px 14px; border-top:1px solid rgba(255,255,255,.08); color:#c9c2b6; font-size:.82rem; line-height:1.4; }
.mx-thread-note[hidden] { display:none; }
.mx-compose { flex:1; min-height:0; display:flex; flex-direction:column; }
.mx-compose[hidden] { display:none; }
.mx-compose .mx-thread-head { justify-content:space-between; }
.mx-compose .mx-thread-title { flex:1; font-size:1.05rem; }
.mx-to { display:flex; align-items:center; gap:12px; margin:0; padding:10px 16px; border-bottom:1px solid rgba(255,255,255,.08); }
.mx-to b { color:#fff; }
.mx-search { flex:1; min-width:0; min-height:40px; border:0; background:none; color:#fff; font-size:16px; outline:none; }
.mx-search::placeholder { color:#8f8a82; }
.mx-results { flex:1; min-height:0; overflow-y:auto; padding:6px; }
.mx-hint { margin:18px 12px; color:#9a958d; font-size:.9rem; text-align:center; }
.mx-person { position:relative; display:flex; align-items:center; gap:12px; min-height:64px; padding:6px 10px; border-radius:10px; cursor:pointer; }
.mx-person:hover { background:rgba(255,255,255,.06); }
.mx-person-text { flex:1; min-width:0; display:grid; gap:3px; }
.mx-person-text b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; font-size:.98rem; }
.mx-person-text small { color:#9a958d; font-size:.82rem; }
.mx-person input { position:absolute; opacity:0; width:1px; height:1px; }
.mx-ring { flex:none; width:24px; height:24px; border:2px solid #cfc8bd; border-radius:50%; }
.mx-person input:checked + .mx-ring { border-color:#ff2a1f; background:radial-gradient(circle, #ff2a1f 0 6px, transparent 7px); }
.mx-person input:focus-visible + .mx-ring { outline:2px solid #fff; outline-offset:2px; }
.mx-compose-status { margin:0; padding:0 16px; color:#c9c2b6; font-size:.82rem; min-height:0; }
.mx-compose-status:empty { display:none; }
.mx-chat { margin:10px 14px 14px; min-height:48px; border:0; border-radius:10px; background:#ff2a1f; color:#fff; font:700 1rem/1 Arial,sans-serif; cursor:pointer; box-shadow:0 0 14px rgba(255,42,31,.45); }
.mx-compose-note { margin:10px 14px 0; min-height:72px; padding:10px 12px; border:1px solid rgba(255,255,255,.18); border-radius:10px; background:#111; color:#fff; font:400 1rem/1.4 Arial,sans-serif; resize:vertical; }
.mx-compose-note:focus { outline:none; border-color:#ff2a1f; box-shadow:0 0 0 2px rgba(255,42,31,.3); }
.mx-row-text .mx-req-note { display:block; margin-top:4px; padding:6px 9px; border-left:2px solid #ff2a1f; border-radius:4px; background:rgba(255,255,255,.05); color:#e8e2d8; font-size:.9rem; white-space:pre-wrap; overflow-wrap:anywhere; }
.mx-chat:disabled { background:#3a2422; color:#9a8a87; box-shadow:none; cursor:default; }
.mx-compose:not([hidden]) ~ .mx-new { display:none; }
.mx-backdrop { display:none; }
/* Opened from the account menu: a full-height panel sliding in from the right, like Notifications. */
.mx.as-sheet { inset:0; align-items:stretch; z-index:1060; }
.mx.as-sheet .mx-backdrop { display:block; position:absolute; inset:0; background:rgba(0,0,0,.55); animation:mx-fade .25s ease; }
.mx.as-sheet .mx-panel { position:absolute; top:0; right:0; bottom:0; width:min(420px,100%); height:auto; border-radius:0; border:0; border-left:1px solid rgba(255,42,31,.45); box-shadow:-18px 0 40px rgba(0,0,0,.7), -2px 0 18px rgba(255,42,31,.18); animation:mx-slide .25s ease; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px); }
html.mx-sheet-open, html.mx-sheet-open body { overflow:hidden; }
@keyframes mx-slide { from { transform:translateX(100%); } to { transform:none; } }
@keyframes mx-fade { from { opacity:0; } to { opacity:1; } }
/* Phones (Gary, Nov 15): your picture sits top-left now, so Notifications and Messages slide in from the left. */
@media (max-width:991.98px) {
  .ntp-sheet { left:0; right:auto; padding-left:max(18px, env(safe-area-inset-left,0px)); padding-right:18px; border-left:0; border-right:1px solid rgba(255,42,31,.45); box-shadow:18px 0 40px rgba(0,0,0,.7), 2px 0 18px rgba(255,42,31,.18); transform:translateX(-100%); }
  .mx.as-sheet .mx-panel { left:0; right:auto; border-left:0; border-right:1px solid rgba(255,42,31,.45); box-shadow:18px 0 40px rgba(0,0,0,.7), 2px 0 18px rgba(255,42,31,.18); animation-name:mx-slide-left; }
}
@keyframes mx-slide-left { from { transform:translateX(-100%); } to { transform:none; } }
@media (prefers-reduced-motion:reduce) { .mx.as-sheet .mx-panel, .mx.as-sheet .mx-backdrop { animation:none; } }
/* Gary, Nov 12: Donate $$ sits right of "Fund the next story." on computers (same line), then the mailing list, then the buttons. */
@media (min-width:1000px) {
  .donate-footer .fund-section { grid-template-columns:auto auto minmax(0,1fr) auto; }
  .donate-footer .fund-give { grid-column:2; grid-row:1; justify-self:start; }
  .donate-footer .fund-buttons, .donate-footer .footer-tagline { grid-column:4; }
  .donate-footer .fund-long { grid-column:3; }
}
@media (min-width:1280px) { .donate-footer .footer-list { grid-column:3; } }

/* Phones and tablets: the ☰ menu opens over the page instead of pushing it down, scrolls on its own, and starts with your account
   (picture, name and its links) so nothing ends up under the Messages button (Gary, Nov 13). */
@media (max-width:991.98px) {
  .site-header .navbar-collapse { position:fixed; top:var(--header-h,97px); left:0; right:0; bottom:0; z-index:1040; display:flex; flex-direction:column; flex-wrap:nowrap; align-items:flex-end; gap:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; padding:6px max(22px,env(safe-area-inset-right,0px)) calc(40px + env(safe-area-inset-bottom,0px)) max(22px,env(safe-area-inset-left,0px)); background:rgba(5,5,5,.62); -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px); justify-content:flex-start; }
  /* Gary, Nov 13: the menu is see-through; the page shows blurred behind it. Dark outline keeps the links readable. */
  .site-header .navbar-collapse a { text-shadow:0 0 8px #000, 0 0 2px #000; }
  .site-header .navbar-collapse .primary-links { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
  /* Smoother open/close (Gary, Nov 13): the header stays where it is (switching it to fixed made the page jump under the
     menu), the menu fades in and out instead of popping, and the page behind isn't re-laid out. */
  .site-header .navbar-collapse:not(.show):not(.collapsing) { display:none; }
  .site-header .navbar-collapse.show { animation:sg-menu-in .16s ease-out; }
  .site-header .navbar-collapse.collapsing { transition:none; height:auto !important; animation:sg-menu-out .16s ease-in forwards; }
  .site-header:has(.navbar-collapse.show), .site-header:has(.navbar-collapse.collapsing) { position:sticky; top:0; z-index:1045; backdrop-filter:none; -webkit-backdrop-filter:none; background:#050505; }
  html:has(.site-header .navbar-collapse.show) { overflow:hidden; }
  @keyframes sg-menu-in { from { opacity:0; } to { opacity:1; } }
  @keyframes sg-menu-out { from { opacity:1; } to { opacity:0; } }
  @media (prefers-reduced-motion:reduce) { .site-header .navbar-collapse.show, .site-header .navbar-collapse.collapsing { animation:none; } }
  body:has(.site-header .navbar-collapse.show) #sg-messenger { display:none !important; }
  .site-header .navbar-collapse .account-links { order:-1; align-self:stretch; display:flex; justify-content:flex-end; padding:6px 0 14px; margin-bottom:8px; border-bottom:1px solid rgba(255,42,31,.35); }
  .site-header .navbar-collapse .acct-menu { flex-wrap:wrap; justify-content:flex-end; width:100%; }
  .site-header .navbar-collapse .acct-list:not([hidden]) { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:2px 4px; position:static; flex-basis:100%; min-width:0; margin-top:6px; padding:0; border:0; background:none; box-shadow:none; }
  /* Gary, Nov 13: the picture opens and closes your links (they no longer stay open), the menu never wraps into a second
     column that scrolls sideways, and Admin console stays small. */
  .site-header .navbar-collapse > * { flex-shrink:0; max-width:100%; }
  .site-header .navbar-collapse .primary-links a.admin-link { font:700 .95rem Arial,Helvetica,sans-serif; color:var(--muted); text-shadow:none; margin-top:8px; }
  .site-header .navbar-collapse .acct-list a, .site-header .navbar-collapse .acct-list button { width:auto; min-height:40px; padding:6px 10px; font-size:.95rem; }
  .site-header .navbar-collapse .acct-list form { margin:0; padding:0; border:0; }
}
/* Pull down to refresh in the Home Screen app (Gary, Nov 16, after Instagram). The page slides down over the top of the red
   "glitch in the matrix" page; pulling up at the bottom shows its bottom. A 12-spoke spinner draws itself in, then spins. */
html.sg-app, html.sg-app body { overscroll-behavior-y:none; }
.sg-edge { position:fixed; inset:0; z-index:-1; pointer-events:none; background:#070707 url(/media/sg-wait-poster.jpg) center/cover no-repeat; }
.sg-edge::after { content:""; position:absolute; inset:0; background:radial-gradient(ellipse at center,rgba(7,7,7,.78) 0%,rgba(7,7,7,.55) 45%,rgba(7,7,7,.25) 100%); }
.sg-edge-top { clip-path:inset(0 0 calc(100% - var(--h,0px)) 0); }
.sg-edge-bottom { clip-path:inset(calc(100% - var(--h,0px)) 0 0 0); }
.sg-spin { position:absolute; z-index:1; left:50%; top:calc(var(--h,0px) / 2 + env(safe-area-inset-top,0px) / 2); width:28px; height:28px; margin:-14px 0 0 -14px; }
.sg-spin i { position:absolute; left:12.5px; top:0; width:3px; height:8px; border-radius:2px; background:#e8e8e8; transform-origin:1.5px 14px; opacity:.9; }
.sg-spin.is-ready i { opacity:.9; }
.sg-spin.is-spinning i { animation:sg-spoke 1.2s linear infinite; }
@keyframes sg-spoke { from { opacity:1; } to { opacity:.18; } }
.sg-spin i:nth-child(1) { transform:rotate(0deg); animation-delay:-1.2s; }
.sg-spin i:nth-child(2) { transform:rotate(30deg); animation-delay:-1.1s; }
.sg-spin i:nth-child(3) { transform:rotate(60deg); animation-delay:-1.0s; }
.sg-spin i:nth-child(4) { transform:rotate(90deg); animation-delay:-0.9s; }
.sg-spin i:nth-child(5) { transform:rotate(120deg); animation-delay:-0.8s; }
.sg-spin i:nth-child(6) { transform:rotate(150deg); animation-delay:-0.7s; }
.sg-spin i:nth-child(7) { transform:rotate(180deg); animation-delay:-0.6s; }
.sg-spin i:nth-child(8) { transform:rotate(210deg); animation-delay:-0.5s; }
.sg-spin i:nth-child(9) { transform:rotate(240deg); animation-delay:-0.4s; }
.sg-spin i:nth-child(10) { transform:rotate(270deg); animation-delay:-0.3s; }
.sg-spin i:nth-child(11) { transform:rotate(300deg); animation-delay:-0.2s; }
.sg-spin i:nth-child(12) { transform:rotate(330deg); animation-delay:-0.1s; }
.sg-spin[data-n="0"]:not(.is-ready):not(.is-spinning) i:nth-child(n+1) { opacity:0; }
.sg-spin[data-n="1"]:not(.is-ready):not(.is-spinning) i:nth-child(n+2) { opacity:0; }
.sg-spin[data-n="2"]:not(.is-ready):not(.is-spinning) i:nth-child(n+3) { opacity:0; }
.sg-spin[data-n="3"]:not(.is-ready):not(.is-spinning) i:nth-child(n+4) { opacity:0; }
.sg-spin[data-n="4"]:not(.is-ready):not(.is-spinning) i:nth-child(n+5) { opacity:0; }
.sg-spin[data-n="5"]:not(.is-ready):not(.is-spinning) i:nth-child(n+6) { opacity:0; }
.sg-spin[data-n="6"]:not(.is-ready):not(.is-spinning) i:nth-child(n+7) { opacity:0; }
.sg-spin[data-n="7"]:not(.is-ready):not(.is-spinning) i:nth-child(n+8) { opacity:0; }
.sg-spin[data-n="8"]:not(.is-ready):not(.is-spinning) i:nth-child(n+9) { opacity:0; }
.sg-spin[data-n="9"]:not(.is-ready):not(.is-spinning) i:nth-child(n+10) { opacity:0; }
.sg-spin[data-n="10"]:not(.is-ready):not(.is-spinning) i:nth-child(n+11) { opacity:0; }
.sg-spin[data-n="11"]:not(.is-ready):not(.is-spinning) i:nth-child(n+12) { opacity:0; }
.sg-tap { position:fixed; left:-9999px; top:0; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }

/* Overnight fix, Nov 14: the floating Messages button no longer covers the chat's Send button or the footer's buttons. */
body.community-fit .mx, body.chat-app .mx { bottom:calc(max(16px, env(safe-area-inset-bottom,0px)) + 84px); }
/* Gary, Nov 22 (mock-up "Chat Messages Row"): on computers the chat's Messages button is a row at the bottom of the channel
   list (brand.js measures the list and sets html.mx-dock); the panel opens beside the list. Nothing covers Send. */
html.mx-dock body.chat-app .mx { left:var(--mx-dock-left); right:auto; bottom:var(--mx-dock-bottom); width:var(--mx-dock-w); align-items:stretch; gap:0; }
html.mx-dock body.chat-app .mx-bar, html.mx-dock body.chat-app .mx.is-open .mx-bar { display:flex; width:100%; min-height:56px; padding:10px 16px; border:0; border-top:1px solid #262626; border-radius:0; background:#0e0e0e; box-shadow:none; font-size:.95rem; }
html.mx-dock body.chat-app .mx-bar:hover, html.mx-dock body.chat-app .mx-bar:focus-visible { background:#151515; box-shadow:inset 3px 0 0 #ff2a1f; }
html.mx-dock body.chat-app .mx-faces { margin-left:auto; }
html.mx-dock body.chat-app .mx-panel { position:absolute; left:calc(100% + 6px); bottom:10px; }
html.mx-dock body.chat-app .community-channels { padding-bottom:70px; }
/* (Nov 20) the footer no longer leaves room under itself for the Messages box: the box rides up above the footer instead (brand.js --mx-lift) */
/* Gary, Nov 14 (approved mock-ups A and B): once you scroll, the menu bar turns solid dark with a thin red line so it no
   longer sits on top of headings and buttons. Pages with their own header (forum, chat) keep theirs. */
/* The blur must not apply while the phone menu is open: a blurred header traps the full-screen menu inside it (Gary, Nov 14:
   "the menu glitched and didn't open all the way"). */
body:not(.compact-head-page):not(.chat-app) .site-header.is-scrolled:not(:has(.navbar-collapse.show)):not(:has(.navbar-collapse.collapsing)) { background:rgba(6,6,6,.88); background-image:none; -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom:1px solid rgba(255,42,31,.35); box-shadow:0 6px 24px rgba(0,0,0,.6); }
/* Phone menu (Gary, Nov 14): My Account, Notifications, Messages and Sign out on one line. */
@media (max-width:991.98px) {
  .site-header .navbar-collapse .acct-list:not([hidden]) { flex-wrap:nowrap; justify-content:space-between; gap:0; }
  .site-header .navbar-collapse .acct-list a, .site-header .navbar-collapse .acct-list button { padding:6px 4px; font-size:clamp(.74rem, 3.5vw, .95rem); white-space:nowrap; }
}

/* "Get the Street Gonzo app" on phones (Gary, Nov 14, approved mock-ups J and K). */
.sg-install { position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom,0px)); z-index:1060; display:flex; align-items:center; gap:12px; padding:12px 10px 12px 14px; border:1px solid rgba(255,42,31,.55); border-radius:14px; background:rgba(10,10,10,.97); box-shadow:0 10px 30px rgba(0,0,0,.7),0 0 16px rgba(255,42,31,.3); font-family:Arial,Helvetica,sans-serif; color:#eee; }
.sg-install img { flex:none; width:44px; height:44px; border-radius:10px; }
.sg-install div { flex:1; min-width:0; display:grid; gap:2px; }
.sg-install b { font:400 1.1rem/1.1 Anton,Impact,sans-serif; letter-spacing:.02em; color:#fff; }
.sg-install small { color:#aaa; font-size:.8rem; }
.sg-install-go { flex:none; padding:10px 14px; border:0; border-radius:8px; background:#ff2a1f; color:#120000; font:400 1rem/1 Anton,Impact,sans-serif; }
.sg-install-x { flex:none; width:32px; height:32px; border:0; background:none; color:#888; font-size:22px; line-height:1; }
.sg-install-sheet { position:fixed; left:0; right:0; bottom:0; z-index:1061; padding:20px 20px calc(24px + env(safe-area-inset-bottom,0px)); border-top:3px solid #ff2a1f; border-radius:16px 16px 0 0; background:#0b0b0b; font:15px/1.5 Arial,Helvetica,sans-serif; color:#ddd; box-shadow:0 -10px 40px rgba(0,0,0,.8); }
.sg-install-sheet[hidden] { display:none; }
.sg-install-sheet .sg-install-x { position:absolute; top:10px; right:10px; }
.sg-install-sheet h3 { margin:0 40px 12px 0; font:400 1.6rem/1 Anton,Impact,sans-serif; color:#fff; text-transform:uppercase; }
.sg-install-sheet ol { margin:0; padding-left:22px; } .sg-install-sheet li { margin:8px 0; } .sg-install-sheet b { color:#fff; }
.sg-install-sheet p { margin:14px 0 0; color:#888; font-size:13px; }
/* Gary, Nov 15: GIFs in the Messages pop-out */
.mx-msg.is-gif { padding:0; background:none; }
.mx-gif { display:block; max-width:200px; max-height:200px; border-radius:14px; }

/* Phones (Gary, Nov 15, approved mock-ups): signed in, your picture sits top-left in place of the logo and its menu drops
   straight down; the picture, LIVE NOW and the menu button share one line; Home is first in the menu. */
.site-header .primary-links .home-link { display:none; }
@media (max-width:991.98px) {
  .site-header .primary-links .home-link { display:block; }
  .site-header .site-nav:has(> .acct-phone) .brand-logo { display:none; }
  .site-header .acct-menu.acct-phone { order:-1; margin-right:auto; flex-wrap:nowrap; width:auto; }
  .site-header .acct-menu.acct-phone .acct-name { display:none; }
  .site-header .acct-menu.acct-phone .acct-list:not([hidden]) { position:absolute; left:0; right:auto; top:calc(100% + 8px); display:flex; flex-direction:column; flex-wrap:nowrap; gap:0; min-width:210px; padding:6px 0; border:1.5px solid var(--neon); border-radius:8px; background:rgba(10,6,6,.97); box-shadow:0 0 18px rgba(255,42,31,.35), 0 16px 30px rgba(0,0,0,.7); }
  .site-header .acct-menu.acct-phone .acct-list a, .site-header .acct-menu.acct-phone .acct-list button { justify-content:flex-start; width:100%; min-height:46px; padding:10px 18px; font-size:1rem; white-space:nowrap; border-radius:0; }
  .site-header .acct-menu.acct-phone .acct-list form { margin:0; padding:0; border-top:1px solid rgba(255,255,255,.1); }
  .site-header .navbar-toggler { width:46px; height:38px; min-width:0; min-height:0; padding:0; display:grid; place-items:center; }
  .site-header .navbar-toggler-icon { width:24px; height:24px; }
  .live-sign { width:112px; padding:5px 10px; top:33px; }
  .site-header:has(.acct-phone) > .live-sign { top:23px; }
}
@media (max-width:991.98px) {
  .site-header .navbar-collapse .account-links:not(:has(.acct-menu, .btn)) { display:none; }
  /* Chat and the forum (compact header with its own back arrow and SGTV logo) keep their header as is; Nov 15 check: the picture sat on top of the forum logo. */
  /* Gary, Nov 16: chat and the forum show your picture on the right like every other page. */
}
/* Shared posts in the Messages pop-out (Gary, Nov 16). */
.mx-msg.has-post, .mx-msg.is-mine.has-post { display:flex; flex-direction:column; gap:6px; padding:0 !important; background:none !important; }
.mx-msg.is-mine.has-post { align-items:flex-end; }
.mx-post { display:flex; flex-direction:column; gap:4px; width:200px; max-width:100%; padding:8px; border:1px solid #333; border-radius:12px; background:#1c1c1c; color:#eee; text-decoration:none; font-size:.82rem; }
.mx-post img { width:100%; max-height:200px; object-fit:cover; border-radius:6px; }
.mx-post b { font-size:.8rem; } .mx-post:hover { border-color:#ff3b2b; color:#fff; }
.mx-post-note { padding:7px 12px; border-radius:16px; background:#2a2a2a; color:#fff; }
.mx-msg.is-mine .mx-post-note { background:#e8261b; }

/* Gary, Nov 16: on phones the ☰ menu is on the left and your picture on the right. The menu opens from the left with its links
   lined up on the left; your picture's menu drops down on the right with its items on the right; Notifications and Messages
   slide in from the right again. Chat and the forum keep their own compact header (back arrow left, ☰ right). */
@media (max-width:991.98px) {
  body:not(.chat-app):not(.compact-head-page) .site-header .navbar-toggler { order:-2; margin-left:0; margin-right:auto; }
  .site-header .acct-menu.acct-phone { order:3; margin-right:0; margin-left:auto; }
  .site-header .acct-menu.acct-phone .acct-list:not([hidden]) { left:auto; right:0; }
  .site-header .acct-menu.acct-phone .acct-list a, .site-header .acct-menu.acct-phone .acct-list button { justify-content:flex-end; text-align:right; }
  body:not(.chat-app):not(.compact-head-page) .site-header .navbar-collapse { align-items:flex-start; padding-left:max(22px,env(safe-area-inset-left,0px)); padding-right:22px; }
  body:not(.chat-app):not(.compact-head-page) .site-header .navbar-collapse .primary-links { align-items:flex-start; text-align:left; }
  body:not(.chat-app):not(.compact-head-page) .site-header .navbar-collapse .account-links, body:not(.chat-app):not(.compact-head-page) .site-header .navbar-collapse .acct-menu, body:not(.chat-app):not(.compact-head-page) .site-header .navbar-collapse .acct-list:not([hidden]) { justify-content:flex-start; }
  body:not(.chat-app):not(.compact-head-page) .site-header .navbar-collapse .acct-list a, body:not(.chat-app):not(.compact-head-page) .site-header .navbar-collapse .acct-list button { justify-content:flex-start; }
  body:not(.chat-app):not(.compact-head-page) .site-header .navbar-collapse .live-sign-bar { align-self:flex-start; }
  .ntp-sheet { left:auto; right:0; padding-left:18px; padding-right:max(18px, env(safe-area-inset-right,0px)); border-right:0; border-left:1px solid rgba(255,42,31,.45); box-shadow:-18px 0 40px rgba(0,0,0,.7), -2px 0 18px rgba(255,42,31,.18); transform:translateX(100%); }
  .ntp.is-open .ntp-sheet { transform:none; }
  .mx.as-sheet .mx-panel { left:auto; right:0; border-right:0; border-left:1px solid rgba(255,42,31,.45); box-shadow:-18px 0 40px rgba(0,0,0,.7), -2px 0 18px rgba(255,42,31,.18); animation-name:mx-slide; }
}
html.sg-pulling .skip-link { visibility:hidden; }   /* the skip link sits just above the page; keep it out of the pulled-down gap */

/* Gary, Nov 16: in chat rooms and on the boards the ☰ menu is on the left too, just right of the back arrow, and your picture is on
   the right. The back arrow, ☰, then the logo or the board's name. */
@media (max-width:991.98px) {
  body.compact-head-page .site-header .navbar-toggler, body.chat-app .site-header .navbar-toggler { position:absolute; left:calc(max(6px, env(safe-area-inset-left,0px)) + 40px); top:50%; transform:translateY(-50%); margin:0; z-index:6; }
  body.compact-head-page .compact-head, body.chat-app .chat-head { pointer-events:none; right:58px; }
  body.compact-head-page .compact-head > *, body.chat-app .chat-head > * { pointer-events:auto; }
  body.compact-head-page .compact-back, body.chat-app .chat-back { margin-right:46px; }
  body.compact-head-page .site-header .acct-menu.acct-phone, body.chat-app .site-header .acct-menu.acct-phone { display:flex; position:absolute; right:max(10px, env(safe-area-inset-right,0px)); top:50%; transform:translateY(-50%); margin:0; z-index:6; }
  body.compact-head-page .site-header .acct-menu.acct-phone .acct-pic, body.chat-app .site-header .acct-menu.acct-phone .acct-pic { width:34px; height:34px; }
  body.compact-head-page .site-header:has(.acct-menu.is-open), body.chat-app .site-header:has(.acct-menu.is-open) { overflow:visible; }
  body.compact-head-page .site-header .navbar-collapse, body.chat-app .site-header .navbar-collapse { align-items:flex-start; padding-left:max(22px,env(safe-area-inset-left,0px)); padding-right:22px; }
  body.compact-head-page .site-header .navbar-collapse .primary-links, body.chat-app .site-header .navbar-collapse .primary-links { align-items:flex-start; text-align:left; }
  body.compact-head-page .site-header .navbar-collapse .account-links, body.chat-app .site-header .navbar-collapse .account-links { justify-content:flex-start; }
}
.sg-edge video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.sg-edge::after { z-index:0; } .sg-edge video { z-index:0; } .sg-spin { z-index:2; }
/* The spinner sits in the middle of the gap, above the shade, and is easy to see over the red rain. */
.sg-spin i { background:#fff; box-shadow:0 0 4px rgba(0,0,0,.9); }
/* The gap pictures sit on top (they're clipped to the gap itself), so nothing the phone paints can hide them. */
.sg-edge { z-index:9000; }
/* Gary, Nov 16: your picture sits over your letter from the first paint; the letter shows only when there's no picture. */
.site-header .acct-pic { position:relative; }
.site-header .acct-pic img[data-acct-pic] { position:absolute; inset:0; }
.site-header .acct-menu:not(.acct-no-pic) .acct-initial { visibility:hidden; }
/* Gary, Nov 16: unread notifications show on your picture, never on the ☰ menu. */
.site-header .navbar-toggler.has-unread::after { content:none; display:none; }
/* Gary, Nov 16: visitors on phones see Sign in and Join on the right, where a member's picture goes, instead of the logo. */
.visitor-acct { display:none; }
@media (max-width:991.98px) {
  .site-header .site-nav:has(> .visitor-acct) .brand-logo { display:none; }
  .site-header .visitor-acct { order:3; display:flex; align-items:center; gap:6px; margin-left:auto; }
  .site-header .visitor-acct a { display:inline-flex; align-items:center; height:32px; padding:0 12px; border-radius:999px; font:700 .82rem/1 Arial,Helvetica,sans-serif; text-decoration:none; white-space:nowrap; }
  .site-header .visitor-signin { border:1px solid rgba(255,255,255,.4); color:#f2f2f2 !important; }
  .site-header .visitor-join { border:1px solid #ff3b2b; background:#e8261b; color:#fff !important; box-shadow:0 0 10px rgba(255,42,31,.45); }
  .site-header:has(.visitor-acct) > .live-sign { top:23px; }
  body.compact-head-page .site-header .visitor-acct, body.chat-app .site-header .visitor-acct { position:absolute; right:max(10px, env(safe-area-inset-right,0px)); top:50%; transform:translateY(-50%); margin:0; z-index:6; }
}
/* Gary, Nov 16: Sign in ran over the LIVE NOW sign. For visitors the sign sits just right of the ☰ menu instead of the middle. */
@media (max-width:991.98px) {
  body:not(.compact-head-page):not(.chat-app) .site-header:has(.visitor-acct) > .live-sign { left:calc(max(10px, env(safe-area-inset-left,0px)) + 58px); transform:none; width:84px; }
}
@media (max-width:359.98px) { .site-header:has(.visitor-acct) > .live-sign { display:none; } }
/* The app's front door (Gary, Nov 16, approved mock-up): signed-out people in the home-screen app see only this. */
.front-door { display:none; }
@media (display-mode: standalone) {
  .front-door { display:flex; }
  html:has(.front-door), html:has(.front-door) body { overflow:hidden; }
  html:has(.front-door) #sg-messenger { display:none !important; }
}
html.sg-app .front-door { display:flex; }
html.sg-app:has(.front-door), html.sg-app:has(.front-door) body { overflow:hidden; }
.front-door { position:fixed; inset:0; z-index:9500; flex-direction:column; align-items:center; text-align:center; overflow-y:auto;
  padding:calc(env(safe-area-inset-top,0px) + 96px) max(24px,env(safe-area-inset-right,0px)) calc(env(safe-area-inset-bottom,0px) + 32px) max(24px,env(safe-area-inset-left,0px));
  background:radial-gradient(ellipse at 50% 40%,rgba(0,0,0,.15),rgba(0,0,0,.72)),#111 url('/images/home/bg-static-poster-portrait.webp') center/cover; color:#f2f2f2; }
.front-door-logo { width:min(220px,58vw); height:auto; filter:drop-shadow(0 0 8px rgba(255,42,31,.5)); }
.front-door-title { margin:40px 0 14px; max-width:12ch; font:400 clamp(2.1rem,10vw,2.8rem)/1 Anton,Impact,sans-serif; text-transform:uppercase; color:#ff4433; text-shadow:0 0 8px rgba(255,42,31,.8),0 0 22px rgba(255,42,31,.5); text-wrap:balance; }
.front-door-price { margin:0 0 26px; font-weight:700; font-size:1.1rem; }
.front-door-join { display:block; width:100%; max-width:380px; padding:15px; border-radius:12px; border:2px solid #ff3b2b; background:rgba(0,0,0,.55); color:#fff !important; font-weight:700; font-size:1.15rem; text-decoration:none; box-shadow:0 0 14px rgba(255,42,31,.55); }
.front-door-signin { margin:18px 0 0; color:#ddd; }
.front-door-signin a { color:#fff !important; font-weight:700; text-decoration:none; border-bottom:2px solid #ff3b2b; }
/* Gary, Nov 19: no dead space under the footer on computers (the mailing list's empty status line no longer holds a row open),
   and the Messages box rides up with the footer so at the bottom of the page it sits just above it (--mx-lift, brand.js) */
@media (min-width:768px) {
  .site-footer.donate-footer { padding-bottom:10px; }
  .donate-footer .footer-list-msg:empty { display:none; }
  .mx { bottom:calc(max(16px, env(safe-area-inset-bottom,0px)) + var(--mx-lift,0px)); }
}

/* Keyboard up on a phone (brand.js sets --kb, --kb-top, --kb-h): the Messages panel stays inside the part of the screen the
   keyboard leaves, so its message box and header are not hidden underneath it. */
html.kb-open .mx.as-sheet { top:var(--kb-top,0px); bottom:var(--kb,0px); }
@media (max-width:767.98px) {
  html.kb-open .mx.is-open:not(.as-sheet) { bottom:calc(var(--kb,0px) + 8px); }
  html.kb-open .mx.is-open:not(.as-sheet) .mx-panel { height:calc(var(--kb-h,100svh) - 24px); }
}
