/*
 * assets/portal.css - Guest-facing look for the WiFi portal (guest page, pass, staff)
 * Version: 4.5.0 | 2026-11-05 (own logo leads for sub-brands, "at <main brand>" small)
 * One look, every venue: colours come from the venue (--pri, --acc set inline per page).
 * The one bold element is the ticket: a white pass with a perforated tear line.
 */
:root{
  --pri:#152238; --acc:#B3852D;
  --haze:#E8ECE7;         /* page: cool Lowveld haze, not cream */
  --paper:#FFFFFF;
  --ink:#10192B;
  --muted:#5D6675;
  --rule:#D5DBD3;
  --go:#1E8A5F;           /* online / checked in */
  --hold:#B26A00;         /* attention */
  --stop:#B3261E;
  --display:'Big Shoulders Display','Arial Narrow',sans-serif;
  --body:'Figtree',system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--body);background:var(--haze);color:var(--ink);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;min-height:100vh}
a{color:var(--pri)}
.wrap{max-width:440px;margin:0 auto;padding:0 16px 48px}

/* Venue band: the name set like airfield signage */
.band{background:var(--pri);color:#fff;margin:0 -16px 0;padding:28px 24px 84px;position:relative;overflow:hidden}
.band::after{content:"";position:absolute;left:24px;right:24px;bottom:58px;height:4px;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.55) 0 22px,transparent 22px 40px)}
.band img{max-height:40px;display:block;margin-bottom:14px}
.band img.logo{max-height:none;width:min(300px,100%);height:auto;margin:0 0 4px -4px}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.band-logo .subbrand{margin-top:6px}
/* Sub-brand that leads: its logo big, "at [main brand logo]" small under it */
.band img.logo-lead{width:min(330px,100%);margin:0 0 2px -2px}
.band .at{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13px;color:rgba(255,255,255,.7)}
.band .at img{display:inline-block;max-height:none;width:96px;height:auto;margin:0}
.band .at b{font-family:var(--display);font-size:18px;letter-spacing:.5px;text-transform:uppercase;color:#fff}
.band-lead p{margin-top:10px}
.band h1{font-family:var(--display);font-weight:800;font-size:44px;line-height:.95;letter-spacing:.5px;text-transform:uppercase}
.band p{margin-top:8px;font-size:15px;color:rgba(255,255,255,.78);max-width:30ch}
/* Sub-brand: the outlet under the main brand, like a gate sign under the terminal name */
.band .subbrand{display:inline-block;margin-top:12px;padding:5px 12px 4px;border-left:4px solid var(--acc);
  background:rgba(255,255,255,.08);font-family:var(--display);font-weight:700;font-size:22px;line-height:1.1;
  letter-spacing:.6px;text-transform:uppercase;color:#F2D9A6}
.band-sub p{margin-top:10px}

/* The ticket */
.ticket{background:var(--paper);border-radius:18px;margin-top:-40px;position:relative;
  filter:drop-shadow(0 14px 28px rgba(16,25,43,.14))}
.ticket + .ticket{margin-top:14px}
.leg{padding:24px 22px}
.tear{position:relative;height:0;border-top:2px dashed var(--rule);margin:0 18px}
.tear::before,.tear::after{content:"";position:absolute;top:-13px;width:24px;height:24px;border-radius:50%;background:var(--haze)}
.tear::before{left:-31px}.tear::after{right:-31px}

h2{font-family:var(--display);font-weight:800;font-size:30px;line-height:1.05;letter-spacing:.3px;margin-bottom:6px}
.lede{color:var(--muted);font-size:15px;margin-bottom:18px}
.small{font-size:13px;color:var(--muted)}

/* Fields */
.field{margin-bottom:16px}
.field label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}
.field label span{font-weight:400;color:var(--muted)}
.field input,.field select{width:100%;padding:14px 14px;font:inherit;font-size:17px;color:var(--ink);background:#F6F8F5;
  border:2px solid transparent;border-radius:12px;outline:none;transition:border-color .15s,background .15s}
.field input:focus,.field select:focus{border-color:var(--acc);background:#fff}
.check{display:flex;gap:12px;align-items:flex-start;font-size:14px;color:#2E3746;margin:12px 0}
.check input{width:22px;height:22px;flex:none;margin-top:1px;accent-color:var(--pri)}

/* Buttons */
.btn{display:block;width:100%;padding:16px 18px;border:0;border-radius:14px;font:inherit;font-size:17px;font-weight:700;
  text-align:center;text-decoration:none;cursor:pointer;transition:transform .08s,filter .15s}
.btn:active{transform:translateY(1px)}
.btn:focus-visible,.field input:focus-visible,a:focus-visible{outline:3px solid var(--acc);outline-offset:2px}
.btn-acc{background:var(--acc);color:#fff}
.btn-pri{background:var(--pri);color:#fff}
.btn-go{background:var(--go);color:#fff}
.btn-quiet{background:transparent;color:var(--muted);font-weight:600;font-size:15px;padding:12px}
.btn + .btn{margin-top:10px}

/* WiFi credentials: the stub of the ticket */
.cred{display:grid;grid-template-columns:1fr;gap:14px}
.cred dt{font-size:13px;color:var(--muted)}
.cred dd{font-family:var(--display);font-weight:700;font-size:30px;line-height:1.05;letter-spacing:.4px;word-break:break-all}
.cred dd.pw{color:var(--pri)}
.copy{margin-top:16px}

/* Steps really are a sequence here */
ol.steps{list-style:none;counter-reset:s;margin:4px 0 6px}
ol.steps li{counter-increment:s;display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:start;padding:8px 0;font-size:15px}
ol.steps li::before{content:counter(s);width:26px;height:26px;border-radius:50%;background:var(--pri);color:#fff;font-weight:700;font-size:13px;display:grid;place-items:center}

details{margin-top:14px;font-size:15px}
summary{cursor:pointer;color:var(--pri);font-weight:600;padding:4px 0}
#qr{display:flex;justify-content:flex-start;padding:12px 0 0}

/* Status lines */
.status{display:flex;gap:12px;align-items:center;padding:14px 16px;border-radius:14px;margin-bottom:18px;font-size:15px}
.status b{display:block;font-size:17px}
.status .dot{width:14px;height:14px;border-radius:50%;flex:none}
.status.go{background:#E4F3EC;color:#14583D}.status.go .dot{background:var(--go);box-shadow:0 0 0 5px rgba(30,138,95,.18)}
.status.hold{background:#FDF1DD;color:#6B4100}.status.hold .dot{background:var(--hold)}
.status.stop{background:#FBE7E5;color:#7A1A14}.status.stop .dot{background:var(--stop)}

/* Review ask */
.stars{font-size:26px;color:#E8A317;letter-spacing:3px;margin-bottom:2px}

/* Pass */
.code{font-family:var(--display);font-weight:800;font-size:46px;letter-spacing:3px;line-height:1;color:var(--ink);margin-top:14px}
.qrbox{display:flex;justify-content:center;padding:4px 0 2px}
.qrbox>*{margin:0 auto}
.qrbox img,.qrbox canvas{width:236px!important;height:236px!important;image-rendering:pixelated}
.who{margin-top:6px;font-size:14px;color:var(--muted)}
.meta{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted)}
.meta strong{display:block;color:var(--ink);font-size:16px;font-weight:700}

.foot{text-align:center;margin-top:16px}
.foot form{display:inline}

@media (max-width:360px){.band h1{font-size:36px}.band .subbrand{font-size:19px}.cred dd{font-size:26px}.code{font-size:38px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
@media (prefers-color-scheme:dark){
  :root{--haze:#080C14;--paper:#18202E;--ink:#EEF1F5;--muted:#9AA4B4;--rule:#334055}
  .field input,.field select{background:#111826}
  .check{color:#C9D0DA}
  .status.go{background:#13342A;color:#9FE0C2}.status.hold{background:#3A2A0F;color:#F4CE8B}.status.stop{background:#3A1614;color:#F5B5AF}
  .cred dd.pw{color:#E6C27A}
  .qrbox{background:#fff;border-radius:12px;padding:12px}
}
