:root {
  color-scheme: light;
  --bg: #f6f8ff; --card: rgba(255, 255, 255, .8); --text: #1b1f3a; --muted: #5d6585; --line: rgba(120, 130, 190, .25);
  --accent: #2b2fb8; --maroon: #8b1538; --live: #e03131; --done: #2f9e44; --warn: #d9730d;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); line-height: 1.45;
  background: linear-gradient(180deg, #eaefff 0%, #fbfcff 35%, #fff 55%, #fff1f4 100%); background-attachment: fixed; position: relative; }

/* poster artwork in the four corners, fading into the page */
.art { position: fixed; z-index: 0; pointer-events: none; mix-blend-mode: multiply; background-size: cover; background-repeat: no-repeat; opacity: .95; }
.art.tl { top: 0; left: 0; width: min(62vw, 470px); aspect-ratio: 470 / 330; background-image: url(assets/bg-tl.jpg);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0 0, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 100% 100% at 0 0, #000 45%, transparent 100%); }
.art.tr { top: 0; right: 0; width: min(62vw, 470px); aspect-ratio: 470 / 330; background-image: url(assets/bg-tr.jpg);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 100% 100% at 100% 0, #000 45%, transparent 100%); }
.art.bl { bottom: 0; left: 0; width: min(55vw, 410px); aspect-ratio: 410 / 420; background-image: url(assets/bg-bl.jpg);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0 100%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 100% 100% at 0 100%, #000 45%, transparent 100%); }
.art.br { bottom: 0; right: 0; width: min(55vw, 410px); aspect-ratio: 410 / 420; background-image: url(assets/bg-br.jpg);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 100%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 100% 100% at 100% 100%, #000 45%, transparent 100%); }
.hero, main { position: relative; z-index: 1; }

/* LIVE pill: subtle, always visible, tap to refresh */
.livepill { position: fixed; top: 10px; right: 10px; z-index: 20; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border: 1px solid rgba(224, 49, 49, .35); border-radius: 999px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #b02525; font: 600 .72rem/1 "Poppins", system-ui, sans-serif; letter-spacing: .08em; cursor: pointer; }
.livepill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: flicker 1.6s ease-in-out infinite; }
.livepill.offline { color: #6b7280; border-color: rgba(107, 114, 128, .4); }
.livepill.offline .dot { background: #9ca3af; animation: none; }
@keyframes flicker { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(224, 49, 49, .45); } 50% { opacity: .3; box-shadow: 0 0 0 5px rgba(224, 49, 49, 0); } }

/* hero (no separate background: it sits on the same poster-coloured page) */
.hero { padding: 44px 16px 18px; text-align: center; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.logos img { height: 58px; width: auto; }
.logos img.wide { height: 50px; }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 13vw, 4rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.05;
  background: linear-gradient(180deg, #1a14a8 10%, #8b1538 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .org { margin: 6px 0 0; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--maroon); }
.hero .edition { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px auto; max-width: 420px; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: #4d3b1f; }
.hero .edition::before, .hero .edition::after { content: ""; flex: 1; height: 1px; background: var(--maroon); opacity: .7; }
.assoc { display: inline-block; max-width: 100%; margin: 4px 0 10px; padding: 8px 18px; border-radius: 16px; background: rgba(190, 215, 250, .55); color: #1f3a8a; }
.assoc small { display: block; font-size: .78rem; opacity: .85; }
.assoc b { display: block; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.hero .theme { margin: 0 auto 10px; max-width: 34em; font-size: .88rem; font-style: italic; color: #3a4270; }
.when { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; font-weight: 600; font-size: .95rem; color: #1f2a5c; }
.when .ic { margin-right: 4px; }
.btn { display: inline-block; margin-top: 12px; padding: 11px 20px; background: var(--accent); color: #fff; border-radius: 999px; font-weight: 600; font-size: .9rem; text-decoration: none; }

main { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; }
.announcement { background: rgba(255, 244, 224, .95); color: #7a4b00; border-left: 4px solid var(--warn); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; }
.nownext { background: var(--card); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.nownext h2 { margin: 0 0 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.nownext .row { padding: 3px 0; font-size: .92rem; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs button { flex: 1; padding: 10px 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.tabs small { display: block; font-weight: 400; opacity: .8; font-size: .75rem; }

.group { margin: 20px 2px 8px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.group h2 { margin: 0; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.group p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }

.session { display: flex; gap: 12px; background: var(--card); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.session.break { border-left-color: #8a90a8; }
.session.keynote { border-left-color: #ae3ec9; }
.session.workshop { border-left-color: var(--maroon); }
.session.live { border-left-color: var(--live); box-shadow: 0 0 0 2px var(--live) inset; background: rgba(255, 255, 255, .95); }
.session.done { opacity: .6; border-left-color: var(--done); }
.session.cancelled { opacity: .65; border-left-color: var(--warn); }
.session.done h3, .session.cancelled h3 { text-decoration: line-through; text-decoration-thickness: 1px; }
.time { min-width: 76px; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .85rem; }
.time span { display: block; color: var(--muted); font-weight: 400; }
.body { flex: 1; min-width: 0; }
.body h3 { margin: 0 0 2px; font-size: .95rem; font-weight: 600; }
.meta { color: var(--muted); font-size: .82rem; }
.note { margin-top: 4px; font-size: .84rem; color: var(--warn); font-weight: 600; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; color: #fff; }
.badge.live { background: var(--live); animation: pulse 1.4s infinite; }
.badge.done { background: var(--done); }
.badge.upcoming { background: var(--accent); }
.badge.cancelled { background: var(--warn); }
.tag { font-size: .72rem; font-weight: 700; color: var(--maroon); text-transform: uppercase; letter-spacing: .04em; margin-left: 6px; }
.updated { text-align: center; color: var(--muted); font-size: .78rem; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .livepill .dot, .badge.live { animation: none; } }
