/* ==========================================================================
   Public ticket site. Brand colours come from the conference (see base.html):
   --brand-primary (navy) and --brand-accent (gold).
   ========================================================================== */
.public {
  --navy: var(--brand-primary, #152f55);
  --navy-deep: color-mix(in srgb, var(--navy) 78%, #000);
  --navy-soft: color-mix(in srgb, var(--navy) 8%, #fff);
  --gold: var(--brand-accent, #f2b705);
  /* Text-safe gold: dark enough for >= 4.5:1 on cream/white even when the brand
     accent is pure yellow (#ffff00 -> #666600, ~5.3:1 on cream). */
  --gold-deep: color-mix(in srgb, var(--gold) 40%, #000);
  --cream: #f3efe6;
  --cream-2: #e9e2d3;
  --ink: #13213a;
  --ink-2: #44506a;
  --line: #dcd5c6;
  --display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Re-map shared tokens used by app.css components */
  --bg: var(--cream);
  --surface: #ffffff;
  --surface-2: #f6f3ec;
  --border: var(--line);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --muted: #5a6378;
  --accent: var(--navy);
  --accent-ink: #fff;
  --info-bg: var(--navy-soft);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(19,33,58,.06), 0 8px 24px rgba(19,33,58,.06);
  color-scheme: light;
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.public h1, .public h2, .public h3 { color: var(--navy); }
.public a { color: var(--navy); }
.public main { padding: 0; }
.public .container { max-width: 1200px; padding: 0 24px; }
@media (max-width: 600px) { .public .container { padding: 0 16px; } }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }

/* ---- Typography helpers ---- */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.005em; line-height: .95; }
.kicker { display: inline-flex; align-items: center; gap: 14px; font-weight: 800; font-size: .78rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold-deep); }
.kicker.on-dark { color: var(--gold); }
.kicker.lined::before, .kicker.lined::after { content: ""; width: 56px; height: 2px; background: currentColor; opacity: .8; }
.spaced { text-transform: uppercase; letter-spacing: .22em; font-weight: 800; }

/* ---- Buttons ---- */
.public .btn { border-radius: 4px; font-family: var(--body); font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  font-size: .86rem; padding: 12px 20px; border: 2px solid transparent; transition: transform .12s ease, background .12s ease, box-shadow .12s ease; }
.public .btn:hover { transform: translateY(-1px); }
.public .btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--gold) 35%, transparent); }
.public .btn-gold:hover { background: color-mix(in srgb, var(--gold) 88%, #fff); }
.public .btn-navy { background: var(--navy); color: #fff; }
.public .btn-navy:hover { background: var(--navy-deep); }
.public .btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.public .btn-outline:hover { background: var(--navy); color: #fff; }
.public .btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.public .btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.public .btn-lg { padding: 16px 26px; font-size: .95rem; }
.public .btn-small { padding: 8px 12px; font-size: .74rem; }
.public .btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.public .btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.public .btn:disabled, .public .btn[disabled] { opacity: .45; transform: none; box-shadow: none; }
.arrow::after { content: "→"; font-size: 1.1em; margin-left: 4px; }

/* ---- Top bar ---- */
.public .site-header { background: var(--navy-deep); border: 0; position: relative; z-index: 30; }
/* When a page opens with a hero/pagehead, the header floats transparently over it
   (like the conference website) and scrolls away with the page. --header-h is kept
   in sync by a small script in base.html; the fallback is the desktop height. */
.public:has(main > .hero:first-child, main > .pagehead:first-child) .site-header {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy-deep) 48%, transparent), transparent); }
.public:has(main > .hero:first-child) .hero .container { padding-top: calc(var(--header-h, 188px) + 72px); }
.public:has(main > .pagehead:first-child) .pagehead .container { padding-top: calc(var(--header-h, 188px) + 36px); }
.public .site-header .container { min-height: 72px; gap: 24px; }
.topbar-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; color: #fff !important; }
/* Logo badge matches the conference website header (.realLogo: 168 / 135 / 112 / 90px). */
.topbar-brand .logo-badge { width: 168px; height: 168px; margin: 10px 0; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.25); flex: none; }
.topbar-brand .logo-badge img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1100px) { .topbar-brand .logo-badge { width: 135px; height: 135px; } }
@media (max-width: 900px) { .topbar-brand .logo-badge { width: 112px; height: 112px; } }
@media (max-width: 600px) { .topbar-brand .logo-badge { width: 90px; height: 90px; } }
.topbar-brand .wordmark { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .01em; line-height: 1; }
.topbar-brand .wordmark small { display: block; font-family: var(--body); font-size: .62rem; letter-spacing: .22em; color: var(--gold); margin-top: 5px; font-weight: 700; }
.topnav { display: flex; gap: 26px; align-items: center; }
.topnav a { color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { border-bottom-color: var(--gold); }
/* Narrow screens: no room beside the logo, so the links drop to their own full-width row. */
@media (max-width: 860px) {
  .public .site-header .container { gap: 12px 16px; }
  .topnav { order: 10; flex: 1 0 100%; flex-wrap: wrap; gap: 4px 20px; padding: 2px 0 10px; border-top: 1px solid rgba(255,255,255,.18); }
  .topnav a { font-size: .88rem; padding: 8px 0; }
}
/* Phones: keep the header CTA compact so "Get tickets" / "Köp biljetter" both fit beside the
   logo and language switch; otherwise the longer label wraps and the button jumps rows. */
@media (max-width: 600px) {
  .public .site-header .container { column-gap: 10px; }
  .public .site-header .btn { padding: 9px 12px; font-size: .74rem; letter-spacing: .03em; white-space: nowrap; }
  .public .lang-switch button { padding: 7px 8px; }
}

/* ---- Hero ---- */
.hero { position: relative; color: #fff; text-align: center; overflow: hidden; background-color: var(--navy-deep);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--navy-deep) 70%, transparent) 0%, color-mix(in srgb, var(--navy-deep) 45%, transparent) 45%, color-mix(in srgb, var(--navy-deep) 92%, transparent) 100%),
                    var(--hero-image, radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--navy) 70%, #3a6aa8) 0%, var(--navy) 45%, var(--navy-deep) 100%));
  background-size: cover; background-position: center; }
.hero .container { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 120px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 8vw, 6rem); margin: 18px 0 16px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero .tagline { font-size: clamp(.8rem, 1.6vw, 1.05rem); margin: 0 auto 30px; max-width: 900px; opacity: .95; }
.hero-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 800;
  font-size: clamp(.95rem, 2vw, 1.2rem); text-transform: uppercase; letter-spacing: .02em; background: rgba(10,20,40,.55);
  border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.hero-chip .icon { color: var(--gold); width: 20px; height: 20px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; color: var(--cream); }
.hero-wave.white { color: #fff; }

/* Compact page header for inner pages */
.pagehead { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.pagehead::after { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.04); }
.pagehead .container { position: relative; z-index: 1; padding-top: 36px; padding-bottom: 76px; }
.pagehead h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin: 10px 0 8px; }
.pagehead p { margin: 0; color: rgba(255,255,255,.82); }
.pagehead a { color: #fff; }
.overlap { margin-top: -52px; position: relative; z-index: 2; }
.messages-wrap .messages { margin: 20px 0; }
.messages-wrap + .overlap { margin-top: 0; }

/* Checkout steps */
.steps { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 6px; flex-wrap: wrap; font-size: .78rem; }
.steps li { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.6); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.steps li .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; letter-spacing: 0;
  border: 2px solid rgba(255,255,255,.35); }
.steps li.done { color: #fff; }
.steps li.done .n { background: rgba(255,255,255,.15); border-color: transparent; }
.steps li.current { color: var(--gold); }
.steps li.current .n { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.steps li + li::before { content: ""; width: 26px; height: 2px; background: rgba(255,255,255,.25); }

/* ---- Facts strip (like the stats row on the main site) ---- */
.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 30px; padding-bottom: 30px; }
.fact { text-align: center; }
.fact .icon { width: 30px; height: 30px; color: var(--navy); stroke-width: 1.4; margin-bottom: 8px; }
.fact .v { font-family: var(--display); font-size: clamp(1.1rem, 2.4vw, 1.7rem); color: var(--navy); text-transform: uppercase; line-height: 1.05; }
.fact .l { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--navy); margin-top: 6px; }
@media (max-width: 700px) { .facts .container { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; } }

/* ---- Sections ---- */
.band { padding: 72px 0; }
.band-cream { background: var(--cream); }
.band-white { background: #fff; }
.band-navy { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.band-navy h2, .band-navy h3 { color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 10px 0 0; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; margin: 0; }
.band-navy .section-head p { color: rgba(255,255,255,.85); }
@media (max-width: 800px) { .section-head { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* ---- Ticket selection ---- */
.shop { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
/* On one column the session overview drops below the order summary (tickets -> summary -> sessions). */
@media (max-width: 960px) { .shop { grid-template-columns: minmax(0, 1fr); } .summary { position: static !important; }
  .shop-main { display: contents; } .shop-main .session-overview { order: 1; margin-top: 0; } }
.ticket-list { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.tcard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 24px;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 6px;
  transition: border-color .15s ease, box-shadow .15s ease; }
.tcard:hover { box-shadow: var(--shadow); }
.tcard.selected { border-color: var(--navy); border-left-color: var(--gold); box-shadow: var(--shadow); }
.tcard.featured { border-left-color: var(--gold); }
/* Promoted ticket (TicketType.is_promoted): larger dark navy card with gold accents, echoing the order panel */
.tcard.promoted:not(.soldout) { padding: 34px 32px; margin: 6px 0; background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border: 2px solid var(--gold); border-left-width: 8px; color: #fff; box-shadow: 0 14px 40px rgba(19,33,58,.28); }
.tcard.promoted:not(.soldout):hover { box-shadow: 0 18px 48px rgba(19,33,58,.34); }
.tcard.promoted:not(.soldout).selected { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent), 0 14px 40px rgba(19,33,58,.28); }
.tcard.promoted:not(.soldout) h3 { color: #fff; font-family: var(--display); font-size: 1.6rem; }
.tcard.promoted:not(.soldout) .amount { color: var(--gold); font-size: 2.4rem; }
.tcard.promoted:not(.soldout) .desc { color: rgba(255,255,255,.85); font-size: 1rem; }
.tcard.promoted:not(.soldout) .includes { font-size: .92rem; }
.tcard.promoted:not(.soldout) .includes,
.tcard.promoted:not(.soldout) .vat,
.tcard.promoted:not(.soldout) .was { color: rgba(255,255,255,.75); }
.tcard.promoted:not(.soldout) .includes .icon { color: var(--gold); }
.tcard.promoted:not(.soldout) .flag { background: rgba(255,255,255,.12); color: #fff; }
.tcard.promoted:not(.soldout) .ribbon { font-size: .74rem; padding: 5px 12px; top: -12px; }
.tcard.promoted:not(.soldout) .stepper { border-color: var(--gold); }
.tcard.soldout { background: var(--surface-2); box-shadow: none; }
.tcard .ribbon { position: absolute; top: -10px; left: 18px; background: var(--gold); color: var(--ink); font-size: .66rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.tcard h3 { font-family: var(--body); font-weight: 800; font-size: 1.15rem; margin: 0 0 4px; color: var(--navy); }
.tcard .desc { color: var(--ink-2); font-size: .93rem; margin: 0 0 8px; }
.tcard .includes { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tcard .includes span { display: inline-flex; align-items: center; gap: 6px; }
.tcard .includes .icon { width: 14px; height: 14px; color: var(--gold-deep); }
.tcard .flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.flag { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px;
  background: var(--navy-soft); color: var(--navy); }
.flag-warn { background: #fdf0cf; color: #7a5300; }
.flag-good { background: #e3f3e7; color: #1d6b35; }
.tcard .buy { display: flex; align-items: center; gap: 22px; }
.tcard .pricebox { text-align: right; min-width: 110px; }
.tcard .amount { font-family: var(--display); font-size: 1.7rem; color: var(--navy); line-height: 1; white-space: nowrap; }
.tcard .was { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.tcard .vat { font-size: .72rem; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }
@media (max-width: 620px) {
  .tcard { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tcard .buy { justify-content: space-between; }
  .tcard .pricebox { text-align: left; }
}
.stepper { display: inline-flex; align-items: stretch; border: 2px solid var(--navy); border-radius: 4px; overflow: hidden; background: #fff; }
.stepper button { width: 40px; border: 0; background: #fff; color: var(--navy); font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--navy-soft); }
.stepper button:disabled { color: #b9bfcc; cursor: default; }
.stepper select { border: 0 !important; border-radius: 0 !important; width: 48px !important; padding: 8px 0 !important; text-align: center; text-align-last: center;
  appearance: none; -webkit-appearance: none; font-weight: 800; font-size: 1rem; color: var(--navy); background: #fff; }

/* Order panel */
.summary { position: sticky; top: 96px; }
.order-panel { background: var(--navy-deep); color: #fff; border-radius: 6px; padding: 24px; box-shadow: 0 14px 40px rgba(19,33,58,.25); margin-bottom: 14px; }
.order-panel .kicker { color: var(--gold); letter-spacing: .22em; }
.order-panel h3 { color: #fff; font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; margin: 6px 0 16px; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 14px; font-size: .92rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.summary-lines .disc { color: var(--gold); font-size: .8rem; }
.summary-empty { color: rgba(255,255,255,.65); font-size: .92rem; margin: 0 0 14px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 2px; }
.summary-total span:first-child { font-weight: 800; letter-spacing: .18em; font-size: .78rem; text-transform: uppercase; }
.summary-total span:last-child { font-family: var(--display); font-size: 1.8rem; }
.summary-sub { display: flex; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.summary-vat { font-size: .78rem; color: rgba(255,255,255,.6); margin: 0 0 18px; text-align: right; }
.order-panel .btn { width: 100%; }
.order-panel a { color: #fff; }
.order-panel .terms { font-size: .85rem; color: rgba(255,255,255,.85); margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.order-panel .terms input { margin-top: 2px; accent-color: var(--gold); flex: none; }
.order-panel .terms label { font-weight: 500; display: inline; }
.order-panel .errorlist { color: #ffb4ab; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px; margin-bottom: 14px; }
.code-form { display: flex; gap: 8px; margin: 0; }
.code-form input { text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.code-form input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.trust { display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); font-size: .85rem; padding: 4px 4px 0; }
.trust span { display: flex; gap: 10px; align-items: center; }
.trust .icon { color: var(--navy); }

/* ---- Programme ---- */
.programme { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.day-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 24px; }
.day-card .date { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.day-card .date .d { font-family: var(--display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.day-card .date .m { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.timeline .time { font-weight: 800; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.75); font-size: .9rem; }
.timeline .name { font-weight: 700; }
.timeline .where { font-size: .82rem; color: rgba(255,255,255,.65); }

/* ---- Home: conference cards ---- */
.conf-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }
.conf-card { --navy: var(--brand-primary, #152f55); --navy-deep: color-mix(in srgb, var(--navy) 78%, #000); --gold: var(--brand-accent, #f2b705);
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.conf-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(19,33,58,.14); }
.conf-card .banner { position: relative; min-height: 170px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background-color: var(--navy-deep); background-size: cover; background-position: center;
  background-image: linear-gradient(180deg, transparent 20%, rgba(10,20,40,.85)), var(--hero-image, linear-gradient(135deg, var(--navy), var(--navy-deep))); }
.conf-card .banner .kicker { color: var(--gold); letter-spacing: .2em; font-size: .7rem; }
.conf-card .banner h3 { color: #fff; font-size: 1.9rem; margin: 6px 0 0; }
.conf-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.conf-card .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; color: var(--navy); font-size: .92rem; }
.conf-card .meta span { display: inline-flex; gap: 8px; align-items: center; }
.conf-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); gap: 12px; }
.conf-card .from { font-size: .8rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.conf-card .from strong { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--navy); letter-spacing: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---- Cards & forms on inner pages ---- */
.public .card { border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px; }
.form-card h2 { display: flex; align-items: center; gap: 12px; font-family: var(--body); font-weight: 800; font-size: 1.15rem; margin-bottom: 18px; }
.form-card h2 .n { width: 32px; height: 32px; border-radius: 4px; display: grid; place-items: center; font-size: .85rem; flex: none;
  background: var(--navy); color: #fff; font-family: var(--display); }
.form-card h2 .n .icon { color: var(--gold); }
.form-card h2 small { font-family: var(--body); font-weight: 600; color: var(--muted); font-size: .8rem; margin-left: auto; letter-spacing: .06em; text-transform: uppercase; }
.form-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > div { margin-bottom: 16px; }
.form-grid > .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.public label { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.public input[type=text], .public input[type=email], .public input[type=password], .public input[type=number], .public input[type=datetime-local],
.public input[type=date], .public input[type=search], .public select, .public textarea {
  border: 1px solid #c9d0dc; border-radius: 4px; padding: 11px 13px; font-family: var(--body); font-size: 1rem; background: #fff; min-width: 0; }
.public input:focus, .public select:focus, .public textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 18%, transparent); }
.public .helptext, .public .help { font-size: .8rem; margin-top: 4px; }
.req { color: #c0392b; }
.pay-options .choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.pay-option { display: flex !important; gap: 12px; align-items: flex-start; padding: 16px; border: 2px solid var(--line); border-radius: 6px; cursor: pointer;
  text-transform: none !important; letter-spacing: 0 !important; font-size: 1rem !important; margin: 0 !important; background: #fff; }
.pay-option:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); }
.pay-option input { margin-top: 3px; accent-color: var(--navy); }
.pay-option strong { display: block; color: var(--navy); }
.pay-option span { font-weight: 400; font-size: .85rem; color: var(--ink-2); }
.invoice-box { border-top: 1px dashed var(--line); padding-top: 18px; margin-top: 18px; }
.invoice-box[hidden] { display: none; }

/* ---- Order page: boarding-pass style tickets ---- */
.status-banner { display: flex; gap: 14px; align-items: center; padding: 18px 22px; border-radius: 6px; margin: 0 0 28px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--navy); box-shadow: var(--shadow); }
.status-banner .icon { width: 26px; height: 26px; }
.status-banner.good { border-left-color: #2e8b57; } .status-banner.good .icon { color: #2e8b57; }
.status-banner.warn { border-left-color: var(--gold); } .status-banner.warn .icon { color: var(--gold-deep); }
.status-banner.bad { border-left-color: #c0392b; } .status-banner.bad .icon { color: #c0392b; }
.status-banner .text { flex: 1; min-width: 220px; }
.status-banner .text strong { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.status-banner .text p { margin: 2px 0 0; color: var(--ink-2); }
.eticket { display: grid; grid-template-columns: minmax(0, 1fr) 240px; background: #fff; border-radius: 8px; margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(19,33,58,.12); overflow: hidden; }
.eticket .head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px;
  background: var(--navy-deep); color: #fff; }
.eticket .head .conf { font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; }
.eticket .head .type { color: var(--gold); font-weight: 800; letter-spacing: .18em; font-size: .72rem; text-transform: uppercase; }
.eticket .main { padding: 22px 24px; min-width: 0; }
.eticket .lbl { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.eticket .who { font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; color: var(--navy); line-height: 1.05; margin: 4px 0 2px; overflow-wrap: anywhere; }
.eticket .sub { color: var(--ink-2); font-size: .9rem; overflow-wrap: anywhere; }
.eticket dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 18px; margin: 18px 0; padding-top: 16px; border-top: 1px dashed var(--line); }
.eticket dd { margin: 3px 0 0; font-weight: 800; color: var(--navy); }
.eticket dd span { display: block; font-weight: 500; color: var(--ink-2); font-size: .85rem; }
.eticket .stub { position: relative; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-left: 2px dashed var(--line); background: var(--surface-2); }
.eticket .stub::before, .eticket .stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); }
.eticket .stub::before { top: -12px; } .eticket .stub::after { bottom: -12px; }
.eticket .qr { width: 180px; height: 180px; background: #fff; border-radius: 6px; padding: 6px; border: 1px solid var(--line); }
.eticket .code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; letter-spacing: .08em; color: var(--navy); }
.eticket .pending-qr { text-align: center; color: var(--muted); font-size: .88rem; }
.eticket .pending-qr .icon { width: 40px; height: 40px; color: var(--line); margin-bottom: 6px; }
.eticket.cancelled { filter: grayscale(1); }
.eticket.cancelled .head { background: #5a6378; }
@media (max-width: 680px) {
  .eticket { grid-template-columns: minmax(0, 1fr); }
  .eticket .stub { border-left: 0; border-top: 2px dashed var(--line); }
  .eticket .stub::before, .eticket .stub::after { display: none; }
}

/* ---- Footer ---- */
.public .site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); border: 0; padding: 44px 0; margin-top: 0; }
.public .site-footer a { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-grid .wordmark { font-family: var(--display); text-transform: uppercase; color: #fff; font-size: 1.1rem; }
.footer-grid .small { font-size: .85rem; }
.public .container.narrow { max-width: 820px; }
.public label.check-label { display: inline; text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 500; color: var(--ink); }
.order-panel .terms label { color: rgba(255,255,255,.9); text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 500; margin: 0; }
.order-panel .terms a { color: var(--gold); }
.order-panel .btn:disabled { background: rgba(255,255,255,.1); color: rgba(255,255,255,.45); box-shadow: none; opacity: 1; }
.flag-clash { background: #fbe9e7; color: #9a2b1f; display: inline-flex; align-items: center; gap: 5px; text-transform: none; letter-spacing: 0; font-size: .78rem; }
.flag-clash .icon { width: 13px; height: 13px; }
.addon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.addon-list li { display: flex; gap: 10px; align-items: flex-start; }
.addon-list .icon { color: #2e8b57; margin-top: 3px; }
/* Session (sub-event) choice in checkout: one row of compact tiles per time slot */
.sessions { margin-top: 6px; padding-top: 18px; border-top: 1px dashed var(--line); }
.sessions-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.sessions-head h3 { font-family: var(--body); font-weight: 800; font-size: 1.05rem; margin: 0; color: var(--navy); }
.sessions-head span { font-size: .8rem; color: var(--muted); }
.public fieldset.slot { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.public legend.slot-time { padding: 0; margin-bottom: 8px; font-size: .9rem; font-weight: 800; color: var(--navy); }
.slot-time span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-right: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 8px; }
.public label.tile { position: relative; display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; min-height: 74px;
  text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; color: var(--ink); transition: border-color .12s, background .12s; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile:hover { border-color: color-mix(in srgb, var(--navy) 45%, var(--line)); }
.tile:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); box-shadow: inset 0 0 0 1px var(--navy); }
.tile:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .72rem; display: grid; place-items: center; font-weight: 800; }
.tile:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--navy) 35%, transparent); outline-offset: 2px; }
.tile-name { font-weight: 700; color: var(--navy); line-height: 1.25; padding-right: 22px; }
.tile-meta { font-size: .78rem; color: var(--muted); }
.tile-meta .few { color: #7a5300; font-weight: 700; }
.tile-meta .full { color: #9a2b1f; font-weight: 700; }
.tile-price { margin-top: auto; font-size: .8rem; font-weight: 800; color: var(--gold-deep); letter-spacing: .02em; }
.tile.is-full { cursor: not-allowed; background: var(--surface-2); }
.public label.tile-none { justify-content: center; min-height: 0; border-style: dashed; background: transparent; }
.tile-none .tile-name { font-weight: 600; color: var(--muted); }
.tile-none:has(input:checked) { background: var(--surface-2); box-shadow: none; border-style: solid; border-color: var(--line); }
.tile-none:has(input:checked)::after { display: none; }
.tile-none:has(input:checked) .tile-name { color: var(--ink-2); }

.session-overview { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; margin-top: 24px; }
.session-overview h3 { font-family: var(--body); font-weight: 800; font-size: 1.15rem; margin: 0 0 4px; }
.session-overview > p { color: var(--ink-2); font-size: .92rem; margin: 0 0 12px; }
.ov-slot { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.ov-when { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ov-when strong { color: var(--navy); font-size: .95rem; letter-spacing: 0; }
.ov-slot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ov-slot li { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--navy); }
.ov-side { font-weight: 700; font-size: .85rem; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
@media (max-width: 560px) { .ov-slot { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.tile-meta { display: flex; flex-wrap: wrap; gap: 0 8px; }
.tile-meta:empty { display: none; }
.ticket-sessions { margin: 0 0 16px; padding: 12px 14px; background: var(--surface-2); border-radius: 6px; }
.ticket-sessions .lbl { margin-bottom: 6px; }
.ts-item { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; margin-top: 4px; color: var(--navy); }
.ts-item .icon { color: #2e8b57; width: 16px; height: 16px; margin-top: 2px; }
.event-info { margin: 8px 0 20px; }
.event-list { list-style: none; margin: 18px 0 0; padding: 0; }
.event-list li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); }
.event-list .when { color: var(--ink-2); font-size: .9rem; }
.event-list .when strong { color: var(--navy); }
@media (max-width: 560px) { .event-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
/* "More info ↗" links to event details (open in a new tab) */
.more-info { display: inline-flex; align-items: center; gap: 2px; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  color: var(--navy) !important; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; position: relative; z-index: 1; }
.more-info:hover { color: var(--gold-deep) !important; }
.band-navy .more-info, .order-panel .more-info { color: var(--gold) !important; }
.tile-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tile-foot .tile-price { margin-top: 0; }
/* Legal pages (terms, privacy) */
.legal { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 40px 48px; margin-bottom: 64px; }
@media (max-width: 640px) { .legal { padding: 24px 20px; } }
.legal h2 { font-family: var(--body); font-weight: 800; font-size: 1.25rem; margin: 36px 0 10px; padding-top: 8px; scroll-margin-top: 90px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal h3 { font-family: var(--body); font-weight: 800; font-size: 1rem; margin: 20px 0 6px; }
.legal p, .legal li { line-height: 1.7; color: var(--ink); }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin: 4px 0; }
.legal table { margin: 10px 0 18px; font-size: .92rem; }
.legal th { color: var(--navy); }
.legal td { line-height: 1.5; }
.legal-summary { background: var(--navy-soft); border-left: 5px solid var(--gold); border-radius: 4px; padding: 18px 22px; margin: 0 0 28px; }
.legal-summary h2 { margin: 0 0 8px !important; font-size: 1.05rem; padding: 0; }
.legal-summary ul { margin: 0; }
.legal-toc { columns: 2; column-gap: 28px; font-size: .92rem; padding-left: 20px; margin: 0 0 8px; }
@media (max-width: 640px) { .legal-toc { columns: 1; } }
.legal .updated { color: var(--muted); font-size: .85rem; margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* Language switch in the header */
.lang-switch { margin: 0; }
.lang-switch button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
  font: 700 .78rem/1 var(--body); letter-spacing: .08em; padding: 7px 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; }
.lang-switch .lang-flag { display: block; width: 18px; height: 12px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.lang-switch button:hover, .lang-switch button:focus-visible { border-color: var(--gold); color: var(--gold); }

/* Spam trap: kept out of sight and out of the accessibility tree */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Checkbox with a two-line label ("names later", ticket selection when cancelling) */
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check-row input { margin-top: 4px; flex: none; width: auto; }
.names-later { padding-top: 18px; padding-bottom: 18px; }

/* Staff preview of the ticket page (?preview=1) */
.preview-bar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  padding: 10px 16px; background: #5b2a86; color: #fff; font-size: .9rem; }
.preview-bar strong { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; background: rgba(255,255,255,.18); padding: 3px 8px; border-radius: 3px; }
.preview-bar a { color: #fff; font-weight: 700; text-decoration: underline; }
.flag-preview { background: #efe6f7; color: #5b2a86; }
.tcard.preview-hidden { border-style: dashed; background: var(--surface-2); }
