/* Attenda design layer, loaded after app.css and theme.css (organiser admin and projector screen excluded).
   - Every page header becomes a photo banner with a dark overlay, so its text reads well in both themes.
   - Cards get soft depth instead of the blue offset shadow.
   - Layouts for the home page, registration and sign-in.
   Photos: Budapest at night and by day from Unsplash (Unsplash License); see hero_photo() for credits. */

/* Banner photo, position and credit come from hero_photo() in functions.php (inline on <body>). Fallbacks here. */
body { --hero-lg:url(/assets/hero/home.jpg); --hero-sm:url(/assets/hero/home-900.jpg); --hero-pos:62% 40%; --hero-credit:"Photo: Albert Canite / Unsplash";
       --shadow-card:0 1px 2px rgba(5,11,24,.06),0 22px 44px -22px rgba(5,11,24,.45); --radius-card:20px; }

/* ---------- Photo banner (every .hero / .live-hero outside the admin) ---------- */
body:not([data-page="admin"]) main.shell > .hero,
body:not([data-page="admin"]) main.shell > .live-hero {
  position:relative; isolation:isolate; max-width:none; margin:6px 0 30px; overflow:hidden;
  padding:clamp(44px,7vw,88px) clamp(24px,5vw,60px) clamp(40px,5.5vw,64px);
  border-radius:26px; color:#fff; background:#0b1424 var(--hero-lg) var(--hero-pos) / cover no-repeat; box-shadow:var(--shadow-card);
}
body:not([data-page="admin"]) main.shell > .live-hero { padding:clamp(30px,4vw,44px) clamp(24px,4vw,48px); margin-bottom:22px; }
body:not([data-page="admin"]) main.shell > .hero::before,
body:not([data-page="admin"]) main.shell > .live-hero::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(100deg,rgba(5,11,24,.95) 0%,rgba(5,11,24,.82) 38%,rgba(5,11,24,.42) 72%,rgba(5,11,24,.2) 100%),linear-gradient(0deg,rgba(5,11,24,.55),transparent 45%);
}
body:not([data-page="admin"]) main.shell > .hero::after,
body:not([data-page="admin"]) main.shell > .live-hero::after {
  content:var(--hero-credit); position:absolute; right:18px; bottom:12px; color:rgba(255,255,255,.62); font-size:10px; letter-spacing:.03em;
}
body:not([data-page="admin"]) main.shell > .hero h1, body:not([data-page="admin"]) main.shell > .live-hero h1 { max-width:820px; color:#fff; }
body:not([data-page="admin"]) main.shell > .live-hero h1 { font-size:clamp(32px,5vw,52px); }
body:not([data-page="admin"]) main.shell > .hero .lead, body:not([data-page="admin"]) main.shell > .live-hero .lead { max-width:640px; color:rgba(233,238,247,.88); }
body:not([data-page="admin"]) main.shell > .hero .eyebrow, body:not([data-page="admin"]) main.shell > .live-hero .eyebrow { color:#59d8b2; }
@media (max-width:900px) {
  body:not([data-page="admin"]) main.shell > .hero, body:not([data-page="admin"]) main.shell > .live-hero { background-image:var(--hero-sm); border-radius:20px; }
  body:not([data-page="admin"]) main.shell > .hero::before, body:not([data-page="admin"]) main.shell > .live-hero::before {
    background:linear-gradient(180deg,rgba(5,11,24,.38) 0%,rgba(5,11,24,.7) 50%,rgba(5,11,24,.93) 100%); }
}
/* Phones: no photo banner, just a plain page header on the page background so the content gets the space. */
@media (max-width:700px) {
  body:not([data-page="admin"]) main.shell > .hero, body:not([data-page="admin"]) main.shell > .live-hero {
    margin:0 0 18px; padding:22px 0 8px; border-radius:0; background:none; box-shadow:none; color:var(--text); }
  body:not([data-page="admin"]) main.shell > .hero::before, body:not([data-page="admin"]) main.shell > .live-hero::before,
  body:not([data-page="admin"]) main.shell > .hero::after, body:not([data-page="admin"]) main.shell > .live-hero::after { content:none; }
  body:not([data-page="admin"]) main.shell > .hero h1, body:not([data-page="admin"]) main.shell > .live-hero h1 { color:var(--text); }
  body:not([data-page="admin"]) main.shell > .hero .lead, body:not([data-page="admin"]) main.shell > .live-hero .lead { color:var(--text-soft); }
  body:not([data-page="admin"]) main.shell > .hero .eyebrow, body:not([data-page="admin"]) main.shell > .live-hero .eyebrow { color:var(--accent); }
  .hero-facts-row li { border-color:var(--line); background:var(--surface); color:var(--text); }
  .hero-facts-row svg { color:var(--accent); }
  .hero .btn-ghost { border-color:var(--line); color:var(--text); background:var(--surface); }
  body[data-page="profile"] main.shell > .hero + .pf-card { margin:0; }
}

/* Buttons that sit on a photo banner. */
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.btn-primary, .btn-ghost { display:inline-flex; align-items:center; gap:8px; padding:13px 20px; border-radius:999px; font:600 14px Montserrat,sans-serif; text-decoration:none; transition:transform .15s ease,background .15s ease; }
.btn-primary { background:#59d8b2; color:#06121f; }
.btn-primary:hover { background:#7ce5c6; transform:translateY(-1px); }
.btn-ghost { border:1px solid rgba(255,255,255,.45); color:#fff; background:rgba(255,255,255,.06); }
.btn-ghost:hover { background:rgba(255,255,255,.14); }
.hero-facts-row { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0 0; padding:0; list-style:none; }
.hero-facts-row li { display:inline-flex; align-items:center; gap:8px; padding:7px 13px; border:1px solid rgba(255,255,255,.22); border-radius:999px; background:rgba(5,11,24,.35); color:#e9eef7; font-size:13px; font-weight:600; }
.hero-facts-row svg { width:16px; height:16px; color:#59d8b2; }

/* ---------- Cards ---------- */
body:not([data-page="admin"]) .panel, body:not([data-page="admin"]) .legal-copy, body[data-page="profile"] .pf-card {
  border:1px solid rgba(15,23,42,.06); border-radius:var(--radius-card); box-shadow:var(--shadow-card);
}
body:not([data-page="admin"]) .console-grid .panel { box-shadow:var(--shadow-card); }
body:not([data-page="admin"]) .empty { padding:30px; border:1px solid var(--line); border-radius:var(--radius-card); background:var(--surface); color:var(--text-soft); }
body:not([data-page="admin"]) .empty strong { display:block; margin-bottom:4px; color:var(--text); font:700 18px Syne,sans-serif; letter-spacing:-.02em; }

/* ---------- Home: action tiles ---------- */
.tiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:0 0 22px; }
.tile { display:flex; flex-direction:column; gap:12px; padding:26px; border:1px solid var(--line); border-radius:var(--radius-card); background:var(--surface); color:var(--text); text-decoration:none; box-shadow:var(--shadow-card); transition:transform .18s ease,border-color .18s ease; }
.tile:hover { transform:translateY(-3px); border-color:#59d8b2; }
.tile-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; background:rgba(89,216,178,.14); color:#2fbf94; }
.tile-icon svg { width:24px; height:24px; }
.tile h2 { font-size:22px; letter-spacing:-.03em; }
.tile p { margin:0; color:var(--text-soft); font-size:14px; line-height:1.6; }
.tile-go { margin-top:auto; color:var(--accent); font-size:13px; font-weight:700; }
.cta-strip { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 28px; padding:24px 28px; border:1px dashed var(--line); border-radius:var(--radius-card); color:var(--text-soft); }
.cta-strip strong { display:block; color:var(--text); font:700 20px Syne,sans-serif; letter-spacing:-.02em; }
.cta-strip .btn-primary { flex:none; }
@media (max-width:900px) { .tiles { grid-template-columns:1fr; } }

/* ---------- Registration: event on the left, form on the right ---------- */
.reg-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr); gap:clamp(24px,4vw,44px); align-items:start; }
.reg-main .event { margin:0; padding:0; border:0; }
.reg-main .event-banner { float:none; display:block; width:100%; height:auto; aspect-ratio:16/9; margin:0 0 22px; border-radius:16px; object-fit:cover; }
.reg-main .event h2 { margin-bottom:12px; }
.reg-more { margin:6px 0 14px; }
.reg-more summary { color:var(--blue); cursor:pointer; font-size:14px; font-weight:600; }
.reg-more[open] summary { margin-bottom:10px; }
.reg-main .event-gallery { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:18px 0 0; }
.reg-main .event-gallery img { width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:10px; }
.reg-main .event-gallery figcaption { font-size:11px; }
.reg-side { position:sticky; top:20px; display:grid; gap:14px; padding:24px; border:1px solid #e3e8ef; border-radius:18px; background:#f6f8fb; }
.reg-side h3 { margin:0; color:var(--ink); font:700 22px Syne,sans-serif; letter-spacing:-.03em; }
.reg-side .capacity { margin:0; }
.reg-side .calendar-links { margin:0; }
.reg-side .fields { grid-template-columns:1fr; }
.reg-side form .button { justify-self:stretch; padding:15px 18px; border-radius:999px; font-size:14px; }
@media (max-width:900px) {
  .reg-grid { grid-template-columns:1fr; }
  .reg-side { position:static; }
  .reg-main .event-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
  /* Group registration links (/group): the form comes before the event description on phones. */
  .reg-grid.form-first .reg-side { order:-1; }
}

/* ---------- Sign-in card under the banner ---------- */
body[data-page="profile"] main.shell > .hero + .pf-card { margin:-64px auto 0 clamp(16px,5vw,60px); position:relative; z-index:1; }
@media (max-width:900px) { body[data-page="profile"] main.shell > .hero + .pf-card { margin:-40px 12px 0; } }

/* ---------- Footer photo credits ---------- */
.site-foot-inner .foot-credits { flex-basis:100%; order:3; color:var(--text-faint); font-size:11px; }
.site-foot-inner .foot-credits a { color:inherit; font-weight:500; text-decoration:underline; }

/* Registration card details: readable seat count, checkbox labels that wrap like normal text. */
.reg-side .capacity { display:block; padding:10px 14px; border:1px solid #bfeedd; border-radius:12px; background:#e8faf3; color:#126445; font-size:13px; line-height:1.5; }
html body .reg-side .capacity b { color:#0b7a59; }
.reg-side .check { display:block; padding-left:26px; text-indent:-26px; line-height:1.5; }
.reg-side .check input { margin:0 10px 0 0; vertical-align:-2px; }

/* Phones: compact tiles (icon beside the text); the logo already links back, so the text link can go on small screens. */
@media (max-width:640px) {
  .tile { display:grid; grid-template-columns:44px 1fr; column-gap:14px; row-gap:6px; padding:18px; }
  .tile-icon { grid-row:span 3; width:44px; height:44px; }
  .tile h2 { font-size:19px; }
  .tile p { font-size:13px; }
  .cta-strip { padding:20px; }
}
@media (max-width:420px) { body:not([data-page="admin"]) main.shell > .nav .back { display:none; } }
/* Group registration form (/register?k=…, group.php): a clean card with required fields first, an info note, and optional
   logistics after a divider. Required labels are bolder than optional ones. */
.gl-card { gap:20px; padding:clamp(22px,4vw,32px); border:1px solid #e2e8f0; border-radius:16px; background:#fff; box-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.06); font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:#1e293b; }
.gl-head h3 { margin:0; color:#0f172a; font:700 24px/1.2 Inter,ui-sans-serif,system-ui,sans-serif; letter-spacing:-.02em; }
.gl-head h3.gl-intro { font-size:18px; line-height:1.4; letter-spacing:-.01em; }
.gl-head p { margin:6px 0 0; color:#64748b; font-size:14px; line-height:1.5; }
.gl-form { display:grid; gap:24px; }
.gl-group { display:grid; gap:16px; }
.gl-optional { padding-top:24px; border-top:1px solid #e2e8f0; }
.gl-optional h4 { margin:0; color:#334155; font:600 14px/1.4 Inter,ui-sans-serif,system-ui,sans-serif; }
.gl-optional h4 span { color:#94a3b8; font-weight:400; }
.gl-field { display:grid; gap:6px; }
.gl-field > label { display:block; color:#0f172a; font:600 14px/1.4 Inter,ui-sans-serif,system-ui,sans-serif; }
.gl-optional .gl-field > label { color:#475569; font-weight:500; }
.gl-req { color:#dc2626; }
.gl-card input:not([type=checkbox]) { width:100%; padding:11px 14px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#0f172a; font:400 16px/1.4 Inter,ui-sans-serif,system-ui,sans-serif; transition:border-color .15s,box-shadow .15s; }
.gl-card input::placeholder { color:#94a3b8; }
.gl-card input:not([type=checkbox]):focus { outline:none; border-color:#4f46e5; box-shadow:0 0 0 3px rgba(79,70,229,.25); }
.gl-field.is-invalid input:not([type=checkbox]) { border-color:#dc2626; }
.gl-field.is-invalid input:not([type=checkbox]):focus { box-shadow:0 0 0 3px rgba(220,38,38,.2); }
.gl-card .gl-error { margin:0; color:#dc2626; font-size:13px; line-height:1.4; }
.gl-card .gl-hint { margin:0; color:#64748b; font-size:13px; line-height:1.4; }
.gl-info { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border:1px solid #c7d2fe; border-radius:10px; background:#eef2ff; color:#3730a3; }
.gl-info svg { flex:none; width:20px; height:20px; margin-top:1px; }
.gl-info p { margin:0; color:#3730a3; font-size:13.5px; line-height:1.55; }
.gl-check { display:flex !important; gap:10px; align-items:flex-start; color:#475569 !important; font:400 13px/1.55 Inter,ui-sans-serif,system-ui,sans-serif !important; cursor:pointer; }
.gl-check input { flex:none; width:18px; height:18px; margin:1px 0 0; accent-color:#4f46e5; }
.gl-check a { color:#4f46e5; }
.gl-submit { width:100%; padding:14px 20px; border:0; border-radius:10px; background:#4f46e5; color:#fff; font:600 16px/1.2 Inter,ui-sans-serif,system-ui,sans-serif; cursor:pointer; box-shadow:0 1px 2px rgba(15,23,42,.1); transition:background-color .15s,transform .15s,box-shadow .15s; }
.gl-submit:hover { background:#4338ca; transform:translateY(-1px); box-shadow:0 6px 16px rgba(79,70,229,.3); }
.gl-submit:active { transform:none; box-shadow:0 1px 2px rgba(15,23,42,.1); }
.gl-submit:focus-visible { outline:3px solid rgba(79,70,229,.4); outline-offset:2px; }
.gl-alert { margin:0; padding:12px 14px; border:1px solid #fecaca; border-radius:10px; background:#fef2f2; color:#b91c1c !important; font-size:14px; line-height:1.5; }
.gl-done { display:flex; gap:12px; align-items:flex-start; padding:16px; border:1px solid #bbf7d0; border-radius:12px; background:#f0fdf4; color:#166534; }
.gl-done svg { flex:none; width:24px; height:24px; }
.gl-done strong { display:block; color:#14532d; font-size:16px; }
.gl-done p { margin:4px 0 8px; color:#166534 !important; font-size:14px; line-height:1.5; }
.gl-done a { color:#15803d; font-size:14px; font-weight:600; }
@media (prefers-reduced-motion:reduce) { .gl-submit, .gl-card input { transition:none; } .gl-submit:hover { transform:none; } }
/* Attendee tab bar (attendee_tabbar()): fixed to the bottom on phones, so My ticket, Q&A, Quiz and Profile stay under the thumb. */
.tabbar { display:none; }
@media (max-width:700px) {
  .tabbar { position:fixed; left:0; right:0; bottom:0; z-index:50; display:flex; gap:4px; padding:6px 8px calc(6px + env(safe-area-inset-bottom)); border-top:1px solid rgba(255,255,255,.08); background:rgba(8,14,28,.82); -webkit-backdrop-filter:blur(14px) saturate(1.4); backdrop-filter:blur(14px) saturate(1.4); }
  .tabbar a { flex:1 1 0; display:grid; justify-items:center; align-content:center; gap:3px; min-height:50px; padding:4px 2px; border-radius:12px; color:#a8afb8; font:600 11px/1.15 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; letter-spacing:-.01em; text-decoration:none; -webkit-tap-highlight-color:transparent; }
  .tabbar svg { width:23px; height:23px; }
  .tabbar a[aria-current="page"] { color:#fff; }
  .tabbar a[aria-current="page"] svg { color:#59d8b2; }
  .tabbar a:active { background:rgba(255,255,255,.08); }
  body:has(.tabbar) { padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
  body:has(.tabbar) .attendee-menu { display:none; }
  html[data-theme="light"] .tabbar { border-top-color:#e2e8f0; background:rgba(255,255,255,.85); }
  html[data-theme="light"] .tabbar a { color:#64748b; }
  html[data-theme="light"] .tabbar a[aria-current="page"] { color:#0f172a; }
  html[data-theme="light"] .tabbar a[aria-current="page"] svg { color:#4f46e5; }
  html[data-theme="light"] .tabbar a:active { background:#f1f5f9; }
}

/* Your registration (/manage, manage.php): mobile-first cards with soft shadows, the ticket first with one primary action. */
.mp { --mp-font:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; padding-bottom:40px; }
.mp-head { padding:44px 0 26px; }
.mp-head h1 { margin:0; }
.mp-stack { display:grid; gap:16px; max-width:640px; }
.mp-card { display:grid; gap:12px; padding:22px; border-radius:16px; background:#fff; color:#0f172a; box-shadow:0 1px 2px rgba(15,23,42,.06),0 8px 24px rgba(15,23,42,.08); font-family:var(--mp-font); }
.mp-card h2 { margin:0; color:#0f172a; font:700 20px/1.25 var(--mp-font); letter-spacing:-.02em; }
.mp-card .mp-text, .mp-card p.mp-text { margin:0; color:#475569; font-size:14px; line-height:1.55; }
.mp-center { justify-items:center; text-align:center; padding:32px 22px; }
.mp-big-icon { width:44px; height:44px; color:#16a34a; }
.mp-big-icon.is-muted { color:#94a3b8; }
.mp-card .mp-lead { margin:0; color:#0f172a; font-size:16px; font-weight:500; line-height:1.5; }
.mp-ticket { gap:14px; padding:24px; border-top:4px solid #4f46e5; }
.mp-ticket.is-checked-in { border-top-color:#16a34a; }
.mp-ticket h2 { font-size:24px; }
.mp-pill { display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border-radius:999px; font:600 12px/1 var(--mp-font); }
.mp-pill svg { width:14px; height:14px; }
.mp-pill.is-ok { background:#eef2ff; color:#4338ca; }
.mp-pill.is-in { background:#dcfce7; color:#166534; }
.mp-pill.is-waiting { background:#fef3c7; color:#92400e; }
.mp-facts { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.mp-facts li { display:flex; gap:10px; align-items:flex-start; color:#334155; font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.mp-facts svg { flex:none; width:18px; height:18px; margin-top:1px; color:#64748b; }
.mp-facts b { color:#0f172a; font-weight:600; }
.mp-note { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border-radius:12px; background:#f1f5f9; }
.mp-note svg { flex:none; width:22px; height:22px; color:#4f46e5; }
.mp-card .mp-note p { margin:0; color:#334155; font-size:13.5px; line-height:1.5; }
.mp-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.mp-primary { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:14px 22px; border:0; border-radius:999px; background:#4f46e5; color:#fff; font:600 15px/1.2 var(--mp-font); text-decoration:none; cursor:pointer; box-shadow:0 6px 16px rgba(79,70,229,.3); transition:background-color .15s,transform .15s; -webkit-tap-highlight-color:transparent; }
.mp-primary svg { width:19px; height:19px; }
.mp-primary:hover { background:#4338ca; transform:translateY(-1px); }
.mp-primary:active { background:#3730a3; transform:none; }
.mp-secondary { display:inline-flex; align-items:center; justify-content:center; padding:11px 16px; border:0; border-radius:999px; background:#f1f5f9; color:#334155; font:600 14px/1.2 var(--mp-font); text-decoration:none; cursor:pointer; transition:background-color .15s; }
.mp-secondary:hover { background:#e2e8f0; }
.mp-secondary.is-strong { background:#0f172a; color:#fff; }
.mp-secondary.is-strong:hover { background:#1e293b; }
.mp-link { justify-self:start; color:#4f46e5; font:600 14px var(--mp-font); text-decoration:none; }
.mp-form { display:grid; gap:14px; }
.mp-form .mp-secondary { justify-self:start; }
.mp-field { display:grid; gap:6px; }
.mp-field label { color:#334155; font:600 13px/1.4 var(--mp-font); }
.mp-card input, .mp-card select { width:100%; padding:11px 14px; border:1px solid #cbd5e1; border-radius:10px; background:#fff; color:#0f172a; font:400 16px/1.4 var(--mp-font); }
.mp-card input:focus, .mp-card select:focus { outline:none; border-color:#4f46e5; box-shadow:0 0 0 3px rgba(79,70,229,.25); }
.mp-intros { display:grid; gap:10px; }
.mp-intro { padding:14px; border-radius:12px; background:#f8fafc; }
.mp-intro h3 { margin:0; color:#0f172a; font:600 15px var(--mp-font); }
.mp-card .mp-intro p { margin:6px 0 0; color:#475569; font-size:14px; line-height:1.5; }
.mp-card .mp-intro .mp-intro-role { margin-top:2px; color:#64748b; font-size:13px; }
.mp-card .mp-intro .mp-icebreaker { color:#4338ca; font-style:italic; }
.mp-quiet { background:#f8fafc; box-shadow:none; border:1px solid #e2e8f0; }
.mp-quiet h2 { font-size:16px; }
.mp-danger { justify-self:start; padding:0; border:0; background:none; color:#b91c1c; font:600 14px var(--mp-font); cursor:pointer; }
.mp-alert { max-width:640px; margin:0 0 16px; padding:12px 14px; border-radius:12px; background:#fef2f2; color:#b91c1c; font:500 14px/1.5 Inter,ui-sans-serif,system-ui,sans-serif; }
.mp-toast { position:fixed; top:16px; left:50%; z-index:60; display:flex; gap:10px; align-items:center; max-width:calc(100% - 32px); padding:12px 18px; border-radius:999px; background:#0f172a; color:#fff; font:600 14px/1.3 Inter,ui-sans-serif,system-ui,sans-serif; box-shadow:0 10px 30px rgba(15,23,42,.35); transform:translateX(-50%); animation:mp-toast-in .3s ease-out; transition:opacity .4s,transform .4s; }
.mp-toast svg { flex:none; width:18px; height:18px; color:#4ade80; }
.mp-toast.is-leaving { opacity:0; transform:translate(-50%,-12px); }
@keyframes mp-toast-in { from { opacity:0; transform:translate(-50%,-24px); } }
html[data-theme="light"] .mp-card { box-shadow:0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.06); }
@media (max-width:700px) {
  .mp-head { padding:24px 0 18px; }
  .mp-head h1 { font-size:40px; }
  .mp-card { padding:20px 18px; }
  .mp-ticket .mp-actions .mp-primary { flex:1 1 100%; }
}
@media (prefers-reduced-motion:reduce) { .mp-toast { animation:none; transition:none; } .mp-primary { transition:none; } .mp-primary:hover { transform:none; } }

/* Live tab (/watch, watch.php): the recording after the event, and the past recordings from our YouTube channel. */
.watch-recording { max-width:960px; padding-bottom:12px; }
.watch-links { display:flex; flex-wrap:wrap; gap:8px 20px; margin:28px 0 0; }
.live-hero .watch-links { margin-top:10px; }
.recordings { margin:28px 0 48px; padding-top:26px; border-top:1px solid var(--line); }
.recordings-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 20px; margin-bottom:18px; }
.recordings-head h2 { margin:0; font-size:24px; }
.recordings-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px; margin:0; padding:0; list-style:none; }
.recordings-grid a { display:grid; gap:6px; color:var(--text); text-decoration:none; }
.recordings-grid b { font-size:15px; line-height:1.3; }
.recordings-grid a > span:last-child { color:var(--text-faint); font-size:13px; }
.recordings-thumb { position:relative; overflow:hidden; aspect-ratio:16/9; margin-bottom:4px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.recordings-thumb img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.recordings-thumb i { position:absolute; left:50%; top:50%; width:52px; height:52px; margin:-26px 0 0 -26px; border-radius:50%; background:rgba(5,11,24,.72); }
.recordings-thumb i::after { content:""; position:absolute; left:21px; top:16px; border-style:solid; border-width:10px 0 10px 16px; border-color:transparent transparent transparent #fff; }
.recordings-grid a:hover img { transform:scale(1.04); }
.recordings-grid a:focus-visible { outline:2px solid var(--accent); outline-offset:4px; border-radius:14px; }
@media (max-width:560px) { .recordings-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .recordings-thumb img { transition:none; } }

/* ============================================================================
   Attendee pages & forms: one consistent, mobile-first look
   Loaded last, so these win over app.css. Scoped to attendee pages: the
   organiser admin keeps its own styles.
   ============================================================================ */

/* ---------- One comfortable column for single-card pages ---------- */
/* Sign in, join, quiz, stream and similar pages put one card next to the
   header. A named class replaces the ad-hoc inline max-widths so they all
   share the same width, padding and rhythm. */
body:not([data-page="admin"]) .card-narrow { max-width:600px; }
body:not([data-page="admin"]) .card-narrow.is-wide { max-width:760px; }
/* On phones the column is the full width: no half-measures, no sideways scroll. */
@media (max-width:700px) {
  body:not([data-page="admin"]) .card-narrow,
  body:not([data-page="admin"]) .card-narrow.is-wide { max-width:none; }
}

/* ---------- Forms: comfortable rhythm and legible labels ---------- */
/* Only the shared rhythm and labels are tuned here. The polished group form
   (/register?k=…, .gl-*), the ticket page (/manage, .mp-*) and the profile editor
   keep their own field, button and card styles. */
body:not([data-page="admin"]) .panel label,
body:not([data-page="admin"]) .card-narrow label { gap:8px; font-size:13px; }
body:not([data-page="admin"]) .check { font-size:13px; }

/* ---------- Notices and messages: clear callouts in both themes ---------- */
body:not([data-page="admin"]) .notice {
  display:block; padding:14px 16px; border:1px solid #bfeedd; border-radius:12px;
  background:#eefaf4; color:#0f6b4b; font-size:14px; line-height:1.55;
}
body:not([data-page="admin"]) .notice.error { border-color:#f3cccc; background:#fdeff0; color:#a32929; }
body:not([data-page="admin"]) .notice a { color:inherit; font-weight:700; }

/* ---------- Sign-in flow: a small, honest step indicator ---------- */
.flow-steps { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:0 0 18px; padding:0; list-style:none; color:var(--text-faint); font-size:12px; font-weight:600; }
.flow-steps li { display:inline-flex; align-items:center; gap:8px; }
.flow-steps b { display:grid; place-items:center; width:22px; height:22px; border:1px solid var(--line); border-radius:50%; font:700 11px Syne,sans-serif; }
.flow-steps li + li::before { content:"→"; margin-right:4px; color:var(--text-faint); }
.flow-steps .is-current { color:var(--text); }
.flow-steps .is-current b { border-color:var(--accent); background:var(--accent); color:#06121f; }
.flow-steps .is-done b { border-color:var(--accent); color:var(--accent); }

/* ---------- Event banner: never leave a broken box ---------- */
.event-banner { background:linear-gradient(135deg,#eef2f7,#dde4ec); }
.reg-main .event-banner { box-shadow:0 1px 2px rgba(5,11,24,.05); }

/* ---------- Phones: full-width actions, no zoom-on-focus, more room ---------- */
@media (max-width:700px) {
  /* 16px inputs stop iOS zooming the page when a field is focused. */
  body:not([data-page="admin"]) input,
  body:not([data-page="admin"]) textarea,
  body:not([data-page="admin"]) select { font-size:16px; }
  /* The one main action of a form becomes a full-width, easy-to-hit target. */
  body:not([data-page="admin"]) form > .button { width:100%; padding:16px 18px; font-size:15px; }
  body:not([data-page="admin"]) .panel { padding:24px 20px; }
  body:not([data-page="admin"]) .recap-bar,
  body:not([data-page="admin"]) .poll-bar { grid-template-columns:minmax(70px,1fr) 1.6fr 46px; }
}

/* ---------- Sign in / profile: the card must not cover the strapline on phones ---------- */
/* On wide screens the card deliberately overlaps the photo banner; on phones the
   header is plain text, so the negative pull would hide the last line. */
@media (max-width:700px) {
  body[data-page="profile"] main.shell > .hero + .pf-card { margin:12px 0 0; }
}

/* ---------- Text links as comfortable tap targets on touch screens ---------- */
@media (max-width:700px) {
  body:not([data-page="admin"]) .text-action { display:inline-block; padding:6px 0; }
}

/* ---------- Legal pages: a contents list beside the text, numbered sections ---------- */
/* The same layout the main site uses, so Privacy and Cookie Policy look the same
   wherever you meet them. Long policies become skimmable instead of a wall of text. */
.legal-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:32px; align-items:start; margin:0 0 20px; }
.legal-toc { position:sticky; top:24px; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.legal-toc > p { margin:0 0 10px 10px; color:var(--text-faint); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.legal-toc ol { display:grid; gap:2px; margin:0; padding:0; list-style:none; counter-reset:toc; }
.legal-toc li { counter-increment:toc; }
.legal-toc a { display:flex; gap:10px; padding:8px 10px; border-radius:8px; color:var(--text); font-size:13px; line-height:1.35; text-decoration:none; }
.legal-toc a::before { content:counter(toc,decimal-leading-zero); color:var(--accent); font-size:11px; font-weight:600; padding-top:1px; }
.legal-toc a:hover { background:var(--hover); }
.legal-copy { counter-reset:legal; }
.legal-copy h2 { counter-increment:legal; scroll-margin-top:20px; }
.legal-copy h2::before { content:counter(legal,decimal-leading-zero); display:block; margin-bottom:8px; color:var(--blue); font:600 12px Montserrat,sans-serif; letter-spacing:.12em; }
@media (max-width:900px) { .legal-layout { grid-template-columns:1fr; gap:18px; } .legal-toc { position:static; } }

/* ---------- Respect reduced motion for the transitions added here ---------- */
@media (prefers-reduced-motion:reduce) {
  body:not([data-page="admin"]) .tile,
  body:not([data-page="admin"]) .btn-primary { transition:none; }
}
