/* ===== THE BAND — master copy: APPS/TEMPLATES/band/band.css (v3, 2026-11-12) =====
   Every app copies this file UNCHANGED and loads it AFTER its own CSS. Change it here, then re-copy
   (TEMPLATES/band/check.sh lists any app whose copy differs). The app only sets its colours:
     :root { --band-top; --band-mid; --band-bot; --bg } and optionally --band-btn (yellow buttons, default --accent)
     [data-theme="dark"] { --band-top; --band-bot; ... }
   Markup: README.md in this folder. Two markups are styled the same way: the standard one (header / h1 / .cta.icon-only /
   .modebar button) and Workforce NI's older one (header.band / .band-title / .round.tb / .seg a), which its 140+ pages use. */

/* iOS 26 paints the area behind the clock from the html background */
html { background: var(--band-top); }

/* home-screen app: an opaque strip behind the clock, 12px past it (WebKit's blur stops only there) */
.topstrip { display: none; }
@media (display-mode: standalone) {
  .topstrip { display: block; position: fixed; top: 0; left: 0; right: 0; height: calc(env(safe-area-inset-top) + 12px);
    background: var(--band-top); z-index: 100; pointer-events: none; }
}

/* the band: stays at the top while you scroll. It is the strip's exact flat colour down to the strip's line
   (--cap), and the glow + gradient start below it, so strip and band meet with no edge on any iPhone. */
header, .band { --cap: calc(env(safe-area-inset-top) + 12px);
  position: sticky; top: 0; z-index: 35; padding: calc(env(safe-area-inset-top) + 12px) 0 20px; border-bottom: 0;
  background-color: var(--band-top);
  background-image: radial-gradient(120% 70% at 85% 45%, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 60%),
                    linear-gradient(180deg, var(--band-top) 0, var(--band-top) var(--cap), var(--band-mid, var(--band-bot)) 45%, var(--band-bot) 100%);
  background-size: 100% calc(100% - var(--cap)), 100% 100%; background-position: 0 var(--cap), 0 0; background-repeat: no-repeat; }
[data-theme="dark"] header, [data-theme="dark"] .band { background-image: linear-gradient(180deg, var(--band-top) 0, var(--band-top) var(--cap), var(--band-bot) 100%);
  background-size: 100% 100%; background-position: 0 0; }
@media (display-mode: standalone) { header, .band { padding-top: calc(env(safe-area-inset-top) + 14px); } }
header::after, .band::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px; background: var(--bg);
  border-top-left-radius: 100% 18px; pointer-events: none; }
header .wrap, .band .wrap { position: relative; z-index: 1; }

/* the name in the middle, a round yellow button either side */
.headerrow { position: relative; text-align: center; }
header h1, .band-title { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 27px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1; color: #fff; padding: 0 52px; }
header .region, .band-title b { color: #FFCE3D; }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.band-title { flex: 1; padding: 0; text-decoration: none; }
header .band-tag, .band-title small { font-family: "Inter", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); }
header .cta.icon-only { position: absolute; top: 50%; transform: translateY(-50%); }
header .cta.icon-only, .band .round.tb { width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--band-btn, var(--accent)); color: #1A2233; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(10,40,70,.25); text-decoration: none; cursor: pointer; transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1); }
header .cta.icon-only:active { transform: translateY(-50%) scale(.92); }
.band .round.tb:active { transform: scale(.92); }
header .theme-btn { left: 14px; } header .share-btn { right: 14px; }
.theme-btn .i-sun { display: none; } [data-theme="dark"] .theme-btn .i-sun { display: block; } [data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (max-width: 420px) { header h1 { padding: 0 58px; } }

/* the switcher under the name: a white pill in both themes, the yellow pill on the view you're in */
.modebar, .band .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 4px; margin: 14px 0 0;
  background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.7); border-radius: 999px; box-shadow: 0 4px 14px rgba(10,40,70,.18); }
.modebar button, .band .seg a { display: flex; align-items: center; justify-content: center; gap: 7px; background: transparent; color: #5B6B7A; border: 0; text-decoration: none;
  padding: 10px 6px; border-radius: 999px; font-size: 14.5px; font-weight: 700; font-family: "Poppins", sans-serif; white-space: nowrap;
  cursor: pointer; transition: background .2s, color .2s; }
.modebar button svg, .band .seg a svg { width: 19px; height: 19px; flex: none; }
.modebar button.active, .band .seg a.on { background: var(--band-btn, var(--accent)); color: #1A2233; box-shadow: 0 2px 6px rgba(212,154,15,.30); }
/* the switcher stays a white pill in dark mode too (the Workforce / Days Out way): it reads at a glance */
