/* Workforce NI shell — the Days Out look, shared by every page (list, map, /me/).
   Load tokens.css first. Header band + segmented switcher + picture cards.
   Markup: see index.html <header class="band"> — copy it verbatim. */
.band { background: linear-gradient(180deg, var(--band-top) 0%, var(--band-bot) 100%); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 0 14px; }
.band .wrap { max-width: 760px; margin: 0 auto; padding: 0 14px; }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.band-title { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; text-align: center; flex: 1; text-decoration: none; }
.band-title b { color: var(--sun); font-weight: 800; }
.band .round { background: var(--sun); color: var(--ink); width: 42px; height: 42px; }
.band .round.ghost { background: rgba(255,255,255,.18); color: #fff; }
.seg { display: flex; background: rgba(255,255,255,.95); border-radius: 999px; padding: 4px; margin-top: 12px; box-shadow: var(--shadow-md); }
.seg a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 999px; text-decoration: none; color: var(--ink-mute); font-weight: 800; font-size: .95rem; white-space: nowrap; transition: background .25s, color .25s, transform .35s var(--spring); }
.seg a.on { background: var(--sun); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.seg a:active { transform: scale(.96); }
.band-sub { margin: 8px 2px 0; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); text-align: center; }
/* picture card: picture slot left, words right (the Days Out event card) */
.pcard { --c: var(--cat-other); position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 12px; width: 100%; text-align: left; border: 0; background: var(--paper); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); transition: transform .35s var(--spring), box-shadow .2s; }
.pcard::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: var(--radius); background: linear-gradient(135deg, var(--c) 0%, color-mix(in srgb, var(--c) 35%, var(--tint)) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .9; }
.pcard .pic { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, var(--tint)) 0%, color-mix(in srgb, var(--c) 55%, var(--tint)) 100%); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; overflow: hidden; }
.pcard .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .pic img.logo { object-fit: contain; background: var(--paper); padding: 6px; box-sizing: border-box; }
.pcard .pic .stamp { position: absolute; left: 6px; bottom: 6px; background: var(--deep); color: #fff; border-radius: 10px; padding: 4px 8px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.pcard .body { min-width: 0; display: flex; flex-direction: column; }
/* the switcher keeps its light look on the dark band (as Days Out's modebar does) — so its words stay dark in both themes */
.seg a { color: #5B6B7A; }
.seg a.on { color: #14202B; }
/* top buttons, the Days Out way: theme toggle left, share right, both sun-yellow circles with a dark icon in both themes */
.band .round.tb { background: var(--sun); color: #1A2233; box-shadow: 0 2px 6px rgba(212, 154, 15, .3); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.band .round.tb svg { display: block; }
.band-sub .qhelp { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; vertical-align: -5px; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); color: #fff; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.band-sub .qhelp .dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 2px solid var(--band-bot); }
.band-sub .qhelp .dot[hidden] { display: none; }
/* iOS 26 home-screen app: the band under the clock takes the html background, and WebKit only drops its blur
   when an opaque strip at least 6px tall sits at the very top — so the strip runs 12px past the inset (FreshRSS #9382, TextPad v6) */
html { background: var(--band-top); }
body { background: var(--bg); }
.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 share / get-the-app sheet (shared by every page, built by top.js) */
.sh-wrap { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 20, 30, .5); animation: fade .2s both; }
.sh-wrap[hidden] { display: none; }
.sh { width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: 24px 24px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); animation: up .45s var(--spring) both; }
@media (min-width: 640px) { .sh-wrap { align-items: center; } .sh { border-radius: 24px; } }
.sh h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.sh .sub { margin: 0 0 14px; color: var(--ink-mute); font-weight: 600; font-size: .92rem; line-height: 1.45; }
.sh .done { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--cat-finance) 14%, var(--tint)); font-weight: 800; }
.sh ol { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.sh ol li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.sh ol li > b { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: #1A2233; font-size: .85rem; }
.sh ol li .ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--deep); box-shadow: var(--shadow); }
.sh ol li .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sh details { margin: 4px 0 0; font-size: .85rem; color: var(--ink-mute); font-weight: 600; }
.sh details summary { cursor: pointer; font-weight: 800; color: var(--deep); padding: 6px 0; }
.sh .divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; color: var(--ink-mute); font-weight: 800; font-size: .85rem; }
.sh .divider::before, .sh .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.sh .qr { width: 190px; height: 190px; margin: 0 auto; padding: 10px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.sh .qr svg { width: 100%; height: 100%; display: block; }
.sh .url { text-align: center; margin: 8px 0 14px; font-weight: 800; color: var(--deep); }
.sh .row { display: flex; gap: 8px; }
.sh .row button { flex: 1; padding: 13px; border: 0; border-radius: 999px; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; }
.sh .row .pri { background: var(--g-sky); color: #fff; }
.sh .row .sec { background: var(--bg); color: var(--ink); }
.sh .inst { width: 100%; padding: 14px; border: 0; border-radius: 999px; background: var(--g-sun); color: #1A2233; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- v9: cleaner band (light at the top, a curve at the bottom, the tagline) ---------- */
.band { position: relative; background: linear-gradient(165deg, var(--band-top) 0%, #3B8FCB 45%, var(--band-bot) 100%); padding: calc(env(safe-area-inset-top) + 20px) 0 40px; }
/* the bottom edge curves up to the right, the page colour cutting in */
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 30px; background: var(--bg); border-top-left-radius: 100% 30px; }
.band .wrap { position: relative; z-index: 1; }
.band-row { align-items: center; }
.band-title { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 1.85rem; line-height: 1; }
.band-title small { font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.band .round.tb { width: 46px; height: 46px; box-shadow: 0 3px 10px rgba(10, 40, 70, .25); }
.seg { margin-top: 16px; padding: 5px; box-shadow: 0 8px 24px rgba(10, 40, 70, .18); }
.seg a { gap: 7px; padding: 11px 6px; font-size: .92rem; }
.seg a svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--sky-deep); }
.seg a.on svg { color: #14202B; }
.band-sub { margin-top: 12px; }
/* the strip under the clock takes the band's top colour, so it reads as part of it */
@media (display-mode: standalone) { .topstrip { background: var(--band-top); } }
[data-theme="dark"] .band { background: linear-gradient(165deg, var(--band-top) 0%, var(--band-bot) 100%); }

/* ---------- v9: the "how this works" guide (both pages' ? button) ---------- */
.guide .guide-kick { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sky) 16%, var(--tint)); color: var(--deep); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.guide h2 { margin: 0 0 8px; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.guide .guide-lead { margin: 0 0 16px; font-size: 1rem; line-height: 1.5; color: var(--ink-mute); font-weight: 600; }
.guide-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.guide-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.guide-steps li > b { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--g-sky); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 3px 8px rgba(47, 127, 182, .3); }
.guide-steps h4 { margin: 4px 0 2px; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.guide-steps p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--ink-mute); font-weight: 600; }
.guide-steps p b { color: var(--ink); }
.guide .guide-note { margin: 0 0 6px; font-size: .82rem; line-height: 1.45; color: var(--ink-mute); font-weight: 600; }
.sh .sh-app { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.sh .sh-app img { flex: 0 0 auto; border-radius: 14px; box-shadow: var(--shadow-md); }
.sh .sh-app .sub { margin: 4px 0 0; }
.sh .sh-taps { margin: 0 0 8px; font-weight: 800; font-size: .95rem; }
.sh .sh-h { margin: 6px 0 2px; font-size: 1.1rem; font-weight: 800; }
.sh details ol { margin-top: 8px; }
/* v10: the band runs top-to-bottom (no diagonal), so its top edge is ONE colour all the way across and
   matches the strip under the clock and the html background exactly; a soft highlight sits lower down */
.band { background: radial-gradient(120% 70% at 85% 30%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, var(--band-top) 0%, #3E92CD 45%, var(--band-bot) 100%); }
[data-theme="dark"] .band { background: linear-gradient(180deg, var(--band-top) 0%, var(--band-bot) 100%); }
