/* Deltakerappen og arrangementssiden – kundens profil (farger settes som variabler i malen). Mobil først. */
:root { --a-r: 14px; --a-h: 46px; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text);
  -webkit-text-size-adjust: 100%; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
body.no-nav { padding-bottom: 0; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.a-wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.a-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--card);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.a-head img { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.a-head .t { font-weight: 700; font-size: 16px; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-head .r { margin-left: auto; }
/* LiveEvent Hub-appen: tilbake til Hub fra arrangementet (vises bare i appen, se ep_hub_bp.hub_app). */
.a-hubback { display: inline-flex; align-items: center; gap: 2px; flex: none; min-height: 44px; margin-left: -6px; padding: 0 8px 0 2px; border-radius: 10px;
  color: var(--text); font-weight: 650; font-size: 15px; text-decoration: none; }
.a-hubback svg { width: 22px; height: 22px; }
.a-hero { position: relative; padding: 40px 16px 32px; background: var(--hero); background-size: cover; background-position: center; color: #fff; }
.a-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.65)); }
.a-hero > * { position: relative; z-index: 1; max-width: 720px; margin-left: auto; margin-right: auto; }
.a-hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.1; margin: 8px 0; }
.a-hero .logos { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.a-hero .logos img { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.a-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; opacity: .95; }
.a-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--a-r); padding: 16px; margin-bottom: 14px; }
.a-card h2 { font-size: 18px; margin: 0 0 10px; } .a-card h3 { font-size: 16px; margin: 14px 0 6px; }
.a-card > :last-child { margin-bottom: 0; }
.a-mut { opacity: .72; } .a-small { font-size: 14px; }
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--a-h); padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--primary); color: var(--on-primary); font: 600 16px/1.2 inherit; cursor: pointer; text-decoration: none; }
.a-btn.sec { background: transparent; color: var(--text); border-color: var(--line); }
.a-btn.block { width: 100%; }
.a-btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.a-btn[disabled] { opacity: .5; }
.a-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.a-field > span { font-weight: 600; font-size: 15px; } .a-field small { opacity: .75; font-size: 13px; }
.a-field input[type=text], .a-field input[type=email], .a-field input[type=tel], .a-field input[type=number], .a-field input[type=date], .a-field select, .a-field textarea,
.a-input { width: 100%; min-height: var(--a-h); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); color: var(--text); font: inherit; }
.a-field textarea { min-height: 96px; }
.a-check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 15px; }
.a-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--primary); }
.a-flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--line); background: var(--card); }
.a-flash.error { border-color: #e5484d; } .a-flash.ok { border-color: #30a46c; }
.a-list { list-style: none; margin: 0; padding: 0; }
.a-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.a-item:last-child { border-bottom: 0; }
.a-time { flex: none; width: 58px; font-weight: 700; font-variant-numeric: tabular-nums; }
.a-day { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin: 18px 0 4px; }
.a-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--soft); }
.a-pill.ok { background: rgba(48,164,108,.18); } .a-pill.warn { background: rgba(245,166,35,.22); }
.a-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.a-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--a-r); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); min-height: 86px; }
.a-tile b { font-size: 16px; } .a-tile span { font-size: 13px; opacity: .75; }
.a-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.a-count div { background: var(--soft); border-radius: 12px; padding: 10px 4px; } .a-count b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; } .a-count span { font-size: 12px; opacity: .75; }
.a-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.a-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 11px; text-decoration: none; color: var(--text); opacity: .7; }
.a-nav a.on { opacity: 1; color: var(--primary); font-weight: 700; }
.a-nav svg { width: 22px; height: 22px; }
.a-chat { display: flex; flex-direction: column; gap: 8px; min-height: 40vh; }
.a-msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; background: var(--soft); align-self: flex-start; word-wrap: break-word; }
.a-msg.me { align-self: flex-end; background: var(--primary); color: var(--on-primary); }
.a-msg.org { border: 1px solid var(--primary); }
.a-msg.pin { border-left: 4px solid var(--primary); }
.a-msg .who { font-size: 12px; opacity: .75; display: block; margin-bottom: 2px; }
.a-compose { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 10px 0; background: var(--bg); }
.a-compose textarea { flex: 1; min-height: var(--a-h); max-height: 140px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--input); color: var(--text); font: inherit; }
.a-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.a-chips a { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 14px; }
.a-chips a.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.a-qr { display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 16px; }
.a-qr svg { width: min(78vw, 300px); height: auto; }
.a-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.a-gal a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--soft); position: relative; }
.a-gal img { width: 100%; height: 100%; object-fit: cover; }
.a-gal .pending { position: absolute; left: 4px; bottom: 4px; font-size: 11px; background: rgba(0,0,0,.6); color: #fff; padding: 1px 6px; border-radius: 6px; }
.a-powered { text-align: center; font-size: 12px; opacity: .55; padding: 18px 0 8px; } .a-powered a { color: inherit; }
.a-video { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.a-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.a-sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; align-items: center; }
.a-sponsors img { max-height: 56px; width: auto; margin: 0 auto; display: block; }
.a-bar { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; } .a-bar i { display: block; height: 100%; background: var(--primary); }
.a-scale { display: flex; gap: 6px; flex-wrap: wrap; } .a-scale label { flex: 1; min-width: 40px; }
.a-scale input { position: absolute; opacity: 0; } .a-scale span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; cursor: pointer; }
.a-scale input:checked + span { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.a-scale input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
@media (min-width: 720px) { .a-tiles { grid-template-columns: repeat(3, 1fr); } .a-gal { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Bred skjerm (designrunden 8.11.2026): bunnlinja følger innholdsbredden i stedet for å strekke fem knapper over hele skjermen */
@media (min-width: 760px) {
  .a-nav { left: 50%; right: auto; width: 720px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; }
}
/* Hopp til innholdet (WCAG 2.4.1), synlig bare ved tastaturfokus – revisjon 9.11.2026 */
.a-skip{position:absolute;left:-9999px;top:8px;z-index:200;background:var(--primary,#111);color:var(--on-primary,#fff);padding:10px 16px;border-radius:8px;font-weight:700;text-decoration:none}
.a-skip:focus{left:8px}
/* P2 utsendelser (runde 3 del 2): «Kommer du?» – svarsiden fra e-post/SMS og spørsmålet øverst i appen. To like store knapper side om side. */
.a-rsvp h1, .a-rsvp h2 { font-size: 22px; margin: 0 0 8px; }
.a-rsvp-ev { margin: 0 0 12px; }
.a-rsvp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; align-items: stretch; }
.a-rsvp-btns form { margin: 0; display: flex; }
.a-rsvp-btns .a-btn { width: 100%; height: 100%; }
.a-card.a-rsvp { border-left: 4px solid var(--primary); }
@media (max-width: 420px) { .a-rsvp-btns { grid-template-columns: 1fr; } }
/* P1 venteliste (runde 3 del 2): aktivitetsønsker mens deltakeren venter på plass, og ønsker som ikke ga plass */
.a-wish { text-align: left; border-left: 4px solid #f5a623; padding: 10px 12px; border-radius: 10px; background: var(--soft); margin: 12px 0; font-size: 15px; }
.a-card.a-wish { margin: 0 0 14px; }
.a-wish ul { margin: 6px 0 6px 18px; padding: 0; }
/* P4 verktøy (runde 3 del 2): «Legg i kalender» under hovedknappen */
.a-cal { margin-top: 10px; }
.a-cal p { margin: 6px 0 0; text-align: center; }

/* Designrunden 11.11.2026 (D): en flis som blir stående alene på siste rad fyller raden (før: halv rad tom) */
.a-tiles > .a-tile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
@media (min-width: 720px) { .a-tiles > .a-tile:last-child:nth-child(odd) { grid-column: auto; min-height: 86px; } .a-tiles > .a-tile:last-child:nth-child(3n+1) { grid-column: 1 / -1; min-height: 0; } }
