/* TEDxBangsar Baru programme site
   Brand: TEDx red #EB0028, black, white, Inter. All colours are solid (no transparency on the glows). */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --red: #EB0028; --red-hi: #FF1F45;
  --black: #0A0A0A; --card: #151515; --card-2: #1C1C1C; --line: #2A2A2A;
  --white: #FFFFFF; --soft: #D4D4D4; --grey: #A3A3A3; --muted: #7A7A7A;
  /* glow stops, pre-mixed onto black so nothing is see-through */
  --g0: #E00027; --g1: #86051B; --g2: #25090E;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --r: 12px; --gutter: 20px; --max: 1120px; --narrow: 720px;
  --tabbar: 68px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--black); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.wrap.narrow, .narrow-p { max-width: var(--narrow); }
.wrap.narrow { margin: 0 auto; }

/* ---------- type ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--soft); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--red); border-radius: 2px; flex: none; }
h1, .h1 { font-size: clamp(34px, 8vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 5.6vw, 38px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
h2 em { font-style: normal; color: var(--red-hi); }
h3 { font-size: 18px; line-height: 1.25; font-weight: 800; letter-spacing: -0.015em; }
p { color: var(--soft); margin-top: 14px; }
.lede { font-size: clamp(18px, 3.6vw, 21px); line-height: 1.5; font-weight: 500; color: var(--white); margin-top: 16px; }
.note { font-size: 14px; color: var(--grey); margin-top: 22px; }
.role { color: var(--red-hi); font-weight: 600; font-size: 14px; margin-top: 4px; line-height: 1.4; }
small { display: block; font-size: 12px; font-weight: 500; color: var(--grey); margin-bottom: 2px; }
.link { color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-hi); }
.btn-ghost { border: 1.5px solid #3A3A3A; color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- header and nav ---------- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 var(--gutter); background: var(--black); border-bottom: 1px solid #1A1A1A; }
.brand img { width: 128px; height: auto; margin-left: -10px; }
.topnav { display: none; flex: 1; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; }
.topnav a { text-decoration: none; color: var(--grey); padding: 8px 10px; border-radius: 8px; }
.topnav a:hover, .topnav a[aria-current] { color: var(--white); }
.topnav a[aria-current] { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.topnav .sep { width: 1px; height: 18px; background: var(--line); margin: 0 8px; }
.hide-sm { display: none; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #0E0E0E; border-top: 1px solid #1F1F1F; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--grey); font-size: 11px; font-weight: 600; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current], .tab[aria-expanded="true"] { color: var(--white); }
.tab[aria-current] svg { color: var(--red-hi); }

.sheet { position: fixed; inset: 0; z-index: 55; background: #000000CC; display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-panel { width: 100%; background: var(--card); border-radius: 18px 18px 0 0; padding: 10px 20px calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); animation: up .22s ease; }
.sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: #3A3A3A; margin: 4px auto 10px; }
.sheet-panel a { display: flex; justify-content: space-between; padding: 16px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 17px; }
.sheet-panel a.sheet-pdf { color: var(--red-hi); border-bottom: 0; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- sections and glows ---------- */
main { position: relative; overflow: hidden; }
.sec { position: relative; padding: 64px 0; }
.sec.first { padding-top: 40px; }
.glow { position: absolute; z-index: 0; width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, var(--g0) 0%, var(--g1) 40%, var(--g2) 78%, var(--black) 100%); }
.glow.bottom { bottom: 0; transform: translateY(50%); }
.g-a { right: -200px; } .g-b { left: -230px; } .g-c { left: 35%; } .g-d { right: -120px; width: 360px; height: 360px; }
.g-e { left: -150px; width: 400px; height: 400px; } .g-f { left: 55%; width: 520px; height: 520px; }
.g-hero { right: -260px; top: 40%; width: 640px; height: 640px; }

/* ---------- home ---------- */
.hero { position: relative; padding: 28px 0 72px; }
.hero-in { display: grid; gap: 8px; }
.hero-mark { width: min(78vw, 420px); margin: 6px 0 0 4vw; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: rotate(-2deg) translateY(0); } to { transform: rotate(2deg) translateY(-8px); } }
.hero h1 span { font-weight: 300; display: block; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #333; }
.facts-row dt { font-size: 12px; color: var(--grey); }
.facts-row dd { font-size: 14px; line-height: 1.35; }
.facts-row dd b { display: block; font-weight: 700; }
.live { margin-top: 26px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.live-label { margin: 0 0 8px; color: var(--soft); font-weight: 600; font-size: 14px; }
.count { display: flex; gap: 22px; }
.count span { font-size: 12px; color: var(--grey); }
.count b { display: block; font-size: 34px; line-height: 1; font-weight: 800; color: var(--white); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.live.is-live .live-label::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red-hi); margin-right: 8px; animation: pulse 1.4s infinite; }
.live-now { font-size: 20px; font-weight: 800; color: var(--white); margin: 0; }
.live-next { font-size: 14px; margin-top: 6px; }
@keyframes pulse { 50% { opacity: .3; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.pillars > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 14px; }
.pillars b { color: var(--red-hi); font-size: 13px; }
.pillars h3 { margin-top: 18px; font-size: 20px; }
.pillars p { font-size: 13px; color: var(--grey); margin-top: 4px; line-height: 1.45; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.tile { position: relative; display: flex; flex-direction: column; min-height: 124px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: #4A4A4A; transform: translateY(-2px); }
.tile-t { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.tile-s { font-size: 13px; color: var(--grey); margin-top: 4px; line-height: 1.4; }
.tile-go { margin-top: auto; color: var(--red-hi); font-size: 20px; }
.pdf-strip { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin-top: 16px; padding: 18px; border: 1px dashed #3A3A3A; border-radius: var(--r); text-decoration: none; }
.pdf-strip b { display: block; color: var(--white); }
.pdf-strip > span:first-child { color: var(--grey); font-size: 14px; }

/* ---------- welcome ---------- */
.msg + .msg { margin-top: 0; }
.msg { margin-top: 30px; }
.msg-head { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.portrait { width: 72px; height: 84px; border-radius: 10px; flex: none; background: var(--card-2); border: 1px dashed #444; display: grid; place-items: center; font-weight: 800; color: #4A4A4A; }
.msg h2 { font-size: 26px; }
.sign { margin-top: 24px; color: var(--grey); font-size: 14px; }
.sign b { color: var(--white); }

/* ---------- programme ---------- */
.nownext { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.nownext > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.nownext > div:first-child { border-color: var(--red); }
.nownext b { font-size: 16px; line-height: 1.3; display: block; }
.prog { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 82px 1fr auto; gap: 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pt { font-weight: 700; font-variant-numeric: tabular-nums; }
.pd b { display: block; font-size: 17px; line-height: 1.3; }
.pd span { display: block; font-size: 14px; color: var(--grey); margin-top: 3px; }
.prow.brk .pt { color: var(--grey); font-weight: 500; }
.prow.brk .pd b { font-weight: 500; color: var(--soft); }
.prow.is-past { opacity: .45; }
.prow.is-now { background: var(--card); border-radius: var(--r); padding-left: 12px; padding-right: 12px; margin: 0 -12px; border-bottom-color: transparent; box-shadow: inset 3px 0 0 var(--red); }
.prow.is-now .pstate::after { content: "On now"; font-size: 12px; font-weight: 700; color: var(--white); background: var(--red); padding: 3px 8px; border-radius: 6px; }
.prow.is-next .pstate::after { content: "Next"; font-size: 12px; font-weight: 700; color: var(--grey); border: 1px solid #3A3A3A; padding: 2px 8px; border-radius: 6px; }

/* ---------- speakers ---------- */
.search { position: relative; margin-top: 22px; }
.search input { width: 100%; height: 52px; border-radius: 12px; border: 1px solid #333; background: var(--card); color: var(--white); padding: 0 16px; font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--white); }
.search-count { display: block; font-size: 13px; color: var(--grey); margin-top: 8px; }
.sgrid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.scard { position: relative; display: flex; flex-direction: column; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .2s, border-color .2s; }
.scard:hover { transform: translateY(-3px); border-color: #4A4A4A; }
.scard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center bottom; }
.sn { position: absolute; top: 10px; left: 12px; font-size: 12px; font-weight: 700; color: var(--white); }
.sname { padding: 12px 12px 0; font-size: 16px; line-height: 1.2; font-weight: 300; letter-spacing: -0.01em; }
.sname b { font-weight: 800; }
.srole { padding: 6px 12px 14px; font-size: 12.5px; color: var(--grey); line-height: 1.35; }
.empty { margin-top: 20px; }

.sdlg { margin: auto; width: min(940px, 100%); max-height: 100dvh; border: 0; padding: 0; background: transparent; color: var(--white); }
.sdlg::backdrop { background: #000000E0; }
.sdlg-in { position: relative; display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; max-height: calc(100dvh - 24px); overflow-y: auto; }
.sdlg-ph img { width: 100%; height: 340px; object-fit: cover; object-position: center bottom; }
.sdlg-tx { padding: 22px 22px 26px; }
.sdlg-tx h2 { font-weight: 300; font-size: 30px; }
.sdlg-tx h2 b { font-weight: 800; }
.talk { margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.talk b { font-size: 17px; }
.sdlg-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; }
.x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--black); border: 1px solid #333; font-size: 26px; line-height: 1; }

/* ---------- your day ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 36px; }
.facts > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.facts .wide { grid-column: span 2; }
.facts b { font-size: 17px; line-height: 1.3; }
.facts span { font-size: 14px; color: var(--grey); }
.facts .link { font-size: 14px; margin-top: 6px; }
.copy { align-self: flex-start; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--white); border: 1px solid #3A3A3A; border-radius: 8px; padding: 6px 10px; }
.copy:hover { border-color: var(--white); }
.notes { list-style: none; counter-reset: n; }
.notes li { counter-increment: n; position: relative; padding: 14px 0 14px 38px; border-bottom: 1px solid var(--line); color: var(--soft); }
.notes li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 15px; font-size: 13px; font-weight: 700; color: var(--red-hi); }
.notes b { color: var(--white); }
.map { margin-top: 22px; }
.map svg { width: 100%; height: auto; display: block; }
.map svg * { transition: opacity .25s, filter .25s; }
.map.hl svg [class^="m-"] { opacity: .25; }
.map.hl-door .m-door, .map.hl-wc .m-wc, .map.hl-aid .m-aid, .map.hl-stage .m-stage { opacity: 1 !important; filter: drop-shadow(0 0 6px #FFFFFF); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.legend button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid #333; border-radius: 8px; font-size: 14px; color: var(--soft); }
.legend button[aria-pressed="true"] { border-color: var(--white); color: var(--white); }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg.door { background: #fff; } .lg.wc { background: #2a2a2a; border: 1px solid #666; } .lg.aid, .lg.stage { background: var(--red); }

.band { position: relative; z-index: 2; background: #FFFFFF; color: #111; margin-top: 26px; padding: 22px 0; }
.band small { color: #777; margin-bottom: 12px; }
.blogos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; }
.spacer { height: 46px; }

/* logo heights in mm-like steps */
.lh-5 { height: 22px; } .lh-6 { height: 26px; } .lh-7 { height: 30px; } .lh-8 { height: 34px; } .lh-9 { height: 38px; }
.lh-10 { height: 42px; } .lh-11 { height: 46px; } .lh-12 { height: 50px; } .lh-13 { height: 54px; } .lh-15 { height: 62px; }
img[class^="lh-"] { width: auto; max-width: 100%; object-fit: contain; }

/* ---------- authors ---------- */
.books { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.book { display: grid; grid-template-columns: 96px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.book > img { width: 96px; height: 144px; object-fit: cover; border-radius: 4px; }
.bauthor { margin: 0; font-size: 13px; font-weight: 700; color: var(--red-hi); }
.book h3 { margin-top: 4px; }
.bsub { margin-top: 4px; font-size: 13px; color: var(--grey); line-height: 1.4; }
.book details { margin-top: 10px; }
.book summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--white); list-style: none; }
.book summary::-webkit-details-marker { display: none; }
.book summary::after { content: " +"; color: var(--red-hi); }
.book details[open] summary::after { content: " −"; }
.book details p { font-size: 14px; margin-top: 6px; }
.price { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-top: 10px; }
.price s { color: var(--muted); font-size: 14px; }
.price b { font-size: 20px; font-weight: 800; color: var(--white); }
.price span { font-size: 13px; color: var(--grey); }
.price .give { color: var(--white); font-weight: 600; font-size: 14px; }
.book.tai { display: block; }
.tai-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.tai-b img { width: 100%; max-width: 110px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.tai-b h3 { font-size: 14px; margin-top: 8px; }
.tai-b .price b { font-size: 16px; }

/* ---------- partners (white section: logos in their own colours) ---------- */
.white-sec { background: #FFFFFF; color: #111; }
.white-sec p { color: #444; }
.white-sec .lede { color: #111; }
.plogo { width: 190px; margin-left: -12px; }
.white-sec .h1 { margin-top: 6px; color: #111; }
.tier { margin-top: 34px; }
.tl { margin: 0; padding-bottom: 8px; border-bottom: 1px solid #E6E6E6; font-size: 14px; font-weight: 700; color: var(--red); }
.tier-pair { display: grid; grid-template-columns: 1fr; gap: 0 28px; }
.pgrid { display: grid; gap: 4px 10px; }
.pgrid.c1 { grid-template-columns: 1fr; }
.pgrid.c3 { grid-template-columns: repeat(3, 1fr); }
.pgrid.c4 { grid-template-columns: repeat(2, 1fr); }
.pl { min-height: 96px; display: flex; align-items: center; justify-content: center; }
.pgrid.c1 .pl { justify-content: flex-start; }
.pname { font-weight: 800; font-size: 17px; color: #111; }
.also, .booknames { font-size: 15px; color: #555; margin-top: 10px; }
.booknames a { color: #111; font-weight: 700; }
.angels { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.angels li { display: grid; grid-template-columns: 64px 1fr; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.angels b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.angels span { font-weight: 600; }

/* ---------- team ---------- */
.team { list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
.team li { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.tav { grid-row: span 2; width: 48px; height: 48px; border-radius: 10px; background: var(--card-2); display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--red-hi); }
.team b { align-self: end; }
.team li > span:last-child { font-size: 13px; color: var(--grey); align-self: start; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; background: var(--black); border-top: 1px solid #1A1A1A; padding: 40px 0 30px; }
.foot-logo { width: 150px; margin-left: -12px; }
.foot-thanks { color: var(--white); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 14px; }
.foot-links a { color: var(--grey); text-decoration: none; }
.foot-links a:hover { color: var(--white); }
.licence { margin-top: 24px; padding-top: 14px; border-top: 1px solid #222; font-size: 13px; color: var(--grey); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 80; background: var(--white); color: var(--black); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 10px; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .sgrid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .pgrid.c4 { grid-template-columns: repeat(4, 1fr); }
  .tier-pair { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .books { grid-template-columns: 1fr 1fr; }
  .book.tai { grid-column: span 2; }
  .sdlg-in { grid-template-columns: 340px 1fr; }
  .sdlg-ph img { height: 100%; min-height: 460px; }
  .glow { width: 620px; height: 620px; }
}
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .tabbar, .sheet { display: none !important; }
  .topnav { display: flex; }
  .hide-sm { display: inline-flex; }
  .toast { bottom: 28px; }
  .sgrid { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 60px 0 100px; }
  .hero-in { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .hero-mark { order: 2; width: 100%; max-width: 480px; margin: 0; }
  .glow { width: 760px; height: 760px; }
  .g-hero { width: 900px; height: 900px; right: -300px; }
}

/* fixes */
.white-sec .tl { color: var(--red); }
.plogo { width: 240px; }
.pl img { max-width: 170px; }          /* every sponsor logo stays narrower than the TEDx logo */
.pgrid.c1 .pl img { max-width: 180px; }
.copy { white-space: nowrap; }

/* one-page layout: a single left edge for text and grids */
.wrap.narrow { max-width: var(--max); }
.wrap.narrow > p, .wrap.narrow > .lede, .wrap.narrow > .notes, .wrap.narrow > .prog, .wrap.narrow > .nownext,
.wrap.narrow > .facts, .wrap.narrow > .map, .msg, .narrow-p, .wrap > .lede { max-width: 760px; }
.wrap.narrow .band-in { max-width: none; }
.band .wrap.narrow { max-width: var(--max); }
section[id] { scroll-margin-top: 72px; }
.sec + .sec { border-top: 1px solid #161616; }
.hero + .sec { border-top: 0; }
details.more summary { cursor: pointer; margin-top: 14px; font-weight: 700; color: var(--white); list-style: none; display: inline-flex; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; color: var(--red-hi); }
details.more[open] summary::after { content: "−"; }
.msg + .msg { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.partners-link { margin-top: 12px; border-style: solid; border-color: #333; }
.scard img { aspect-ratio: 4 / 5; object-position: center top; }
.sdlg-ph img { object-position: center top; }
.topnav a[aria-current] { color: var(--white); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.tab[aria-current] { color: var(--white); }
.tab[aria-current] svg { color: var(--red-hi); }
.foot-thanks { margin-top: 0; }

/* ===================== v3: graphic, interactive components ===================== */
.ic { width: 24px; height: 24px; flex: none; }
.col { max-width: 640px; }
p.small { font-size: 15px; }
.go { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--red-hi); }
.btn .ic { width: 18px; height: 18px; }
h3 { font-size: 20px; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: -28px; position: relative; z-index: 3; }
.stats > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 10px; text-align: center; }
.stats b { display: block; font-size: clamp(24px, 6vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--grey); }

/* theme: flip cards */
.ffa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.fcard { position: relative; min-height: 150px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); text-align: left; overflow: hidden; transition: border-color .25s, background .25s; }
.fcard:hover { border-color: #4A4A4A; }
.fc-front, .fc-back { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; transition: opacity .3s, transform .3s; }
.fc-front .ic { width: 30px; height: 30px; color: var(--red-hi); }
.fc-front b { margin-top: auto; font-size: clamp(20px, 5vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.fc-back { justify-content: flex-end; font-size: 14px; line-height: 1.45; color: var(--white); opacity: 0; transform: translateY(10px); background: var(--red); }
.fcard.flipped .fc-front { opacity: 0; transform: translateY(-10px); }
.fcard.flipped .fc-back { opacity: 1; transform: none; }
.fcard.flipped { border-color: var(--red); }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* welcome cards */
.wgrid { display: grid; gap: 12px; margin-top: 24px; }
.wcard { display: grid; grid-template-columns: 76px 1fr; gap: 16px; text-align: left; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, transform .2s; }
.wcard:hover { border-color: #4A4A4A; transform: translateY(-2px); }
.wcard .portrait { width: 76px; height: 88px; }
.wtx { display: flex; flex-direction: column; }
.wtx b { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.wtx .role { margin-top: 2px; }
.wq { margin-top: 10px; font-size: 14px; color: var(--soft); line-height: 1.5; }
.mdlg, .bdlg { margin: auto; width: min(720px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 0; padding: 0; background: transparent; color: var(--white); }
.mdlg::backdrop, .bdlg::backdrop { background: #000000E0; }
.mdlg-in { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px; max-height: calc(100dvh - 24px); overflow-y: auto; }
.mdlg-in h2 { font-size: 28px; padding-right: 40px; }

/* programme: day bar */
.daybar { position: relative; display: flex; gap: 3px; height: 44px; margin-top: 28px; }
.seg { position: relative; min-width: 6px; border-radius: 6px; background: #262626; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--white); transition: filter .2s, transform .2s; }
.seg:hover { filter: brightness(1.25); transform: translateY(-2px); }
.seg.session { background: var(--red); }
.seg.talk { background: #4A4A4A; }
.seg.brk { background: #262626; }
.now-marker { position: absolute; top: -8px; bottom: -8px; width: 3px; margin-left: -1px; background: var(--white); border-radius: 2px; box-shadow: 0 0 0 3px var(--black); display: none; }
.now-marker::before { content: "Now"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; }
.ticks { position: relative; height: 18px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.ticks span { position: absolute; transform: translateX(-50%); }
.ticks span:first-child { transform: none; } .ticks span:last-child { transform: translateX(-100%); }

/* programme: timeline */
.timeline { list-style: none; margin-top: 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-row { display: grid; grid-template-columns: 74px 26px 1fr; gap: 0 0; padding: 12px 0; border-radius: var(--r); transition: background .3s; }
.tl-row.flash { background: var(--card-2); }
.tl-time b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tl-time span { font-size: 12px; color: var(--muted); }
.tl-dot { position: relative; }
.tl-dot::after { content: ""; position: absolute; left: 7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--black); border: 2px solid #555; }
.tl-row.session .tl-dot::after { border-color: var(--red); background: var(--red); }
.tl-row.is-now .tl-dot::after { box-shadow: 0 0 0 5px #4A0612; animation: pulse 1.4s infinite; }
.tl-body h3 { font-size: 18px; line-height: 1.25; }
.tl-row.brk .tl-body h3 { font-weight: 500; color: var(--soft); }
.tl-sub { margin-top: 2px; font-size: 14px; color: var(--grey); }
.tl-row.is-past { opacity: .4; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.slot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 84px; padding: 10px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .2s, transform .2s; }
.slot:hover { border-color: #555; transform: translateY(-2px); }
.slot b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.slot span { font-size: 13px; font-weight: 600; color: var(--soft); }
.slot i { margin-top: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.slot.has-spk { min-height: 120px; }
.slot.has-spk img { position: absolute; right: -10px; bottom: 0; width: 70%; opacity: .9; }
.slot.has-spk i { color: var(--white); font-weight: 700; position: relative; }
.slot.is-now { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.slot.is-now::after { content: "On now"; position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 800; background: var(--red); padding: 2px 6px; border-radius: 4px; }
.slot.is-past { opacity: .4; }
.slot.wiggle { animation: wiggle .4s; }
@keyframes wiggle { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }

/* your day: essentials */
.essentials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.ess { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; text-align: left; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
a.ess:hover, button.ess:hover { border-color: #4A4A4A; }
.ess .ic { color: var(--red-hi); margin-bottom: 10px; }
.ess b { font-size: 17px; line-height: 1.25; }
.ess .go { padding-top: 6px; }
.ess.wide { grid-column: span 2; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-top: 44px; }
.arrows { display: flex; gap: 6px; }
.arrows button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #333; font-size: 18px; }
.arrows button:hover { border-color: var(--white); }
.kscroll { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
.kscroll::-webkit-scrollbar { display: none; }
.kcard { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 18px; min-height: 170px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.kcard .ic { width: 32px; height: 32px; color: var(--red-hi); margin-bottom: auto; }
.kcard b { margin-top: 18px; font-size: 17px; }
.kcard span { font-size: 14px; color: var(--grey); line-height: 1.45; }
.legend { margin-top: 14px; }
.legend button .ic { width: 18px; height: 18px; }
.map { margin-top: 12px; }
.between { display: grid; gap: 10px; margin-top: 14px; }
.bcard { display: flex; flex-direction: column; gap: 4px; padding: 18px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
a.bcard:hover { border-color: #4A4A4A; }
.bcard .ic { width: 30px; height: 30px; color: var(--red-hi); margin-bottom: 12px; }
.bcard b { font-size: 17px; }
.bcard span { font-size: 14px; color: var(--grey); }

/* team + about */
.team { grid-template-columns: 1fr 1fr; gap: 8px; }
.team li { grid-template-columns: 40px 1fr; column-gap: 10px; padding: 8px; }
.tav { width: 40px; height: 40px; font-size: 13px; }
.team b { font-size: 14px; line-height: 1.25; }
.team li > span:last-child { font-size: 12px; line-height: 1.3; }
.acc { margin-top: 30px; border-top: 1px solid var(--line); max-width: 760px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; padding: 16px 0; font-weight: 700; font-size: 17px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--red-hi); font-size: 22px; line-height: 1; }
.acc details[open] summary::after { content: "−"; }
.acc details p { margin: 0 0 16px; font-size: 15px; }

/* outro */
.outro { display: grid; gap: 10px; }
.ocard { display: flex; flex-direction: column; gap: 4px; padding: 20px; text-decoration: none; border: 1px solid #333; border-radius: var(--r); background: var(--card); }
.ocard:hover { border-color: var(--white); }
.ocard .ic { width: 30px; height: 30px; color: var(--red-hi); margin-bottom: 10px; }
.ocard b { font-size: 18px; }
.ocard span { font-size: 14px; color: var(--grey); }

/* author corner shelf */
.shelf { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; margin-top: 28px; }
.bk { display: flex; flex-direction: column; width: 100%; text-align: left; }
.bk img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 24px #000; transition: transform .25s; }
.bk:hover img { transform: translateY(-4px) rotate(-1deg); }
.bk-a { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--red-hi); }
.bk-t { font-size: 15px; font-weight: 800; line-height: 1.25; margin-top: 2px; }
.bk-p { margin-top: 4px; font-size: 15px; font-weight: 800; }
.bdlg-in { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 24px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; max-height: calc(100dvh - 24px); overflow-y: auto; }
.bdlg-in img { width: 110px; border-radius: 6px; }
.bdlg-tx h2 { font-size: 24px; padding-right: 36px; }
.bdlg-tx p:not(.bk-a):not(.bsub):not(.price) { font-size: 15px; }

@media (min-width: 720px) {
  .wgrid { grid-template-columns: 1fr 1fr; }
  .essentials { grid-template-columns: repeat(5, 1fr); }
  .ess.wide { grid-column: auto; }
  .kscroll { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; overflow: visible; margin: 14px 0 0; padding: 0; }
  .arrows { display: none; }
  .between { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .outro { grid-template-columns: 1fr 1fr; }
  .shelf { grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
  .slots { grid-template-columns: repeat(6, 1fr); }
  .timeline::before { left: 102px; }
  .tl-row { grid-template-columns: 90px 26px 1fr; }
}
@media (min-width: 1000px) {
  .team { grid-template-columns: repeat(4, 1fr); }
  .shelf { grid-template-columns: repeat(6, 1fr); }
  .stats { margin-top: -48px; }
}
@media (max-width: 719px) { .slots { grid-template-columns: repeat(3, 1fr); } .slot { min-height: 76px; padding: 9px; } .slot b { font-size: 20px; } }
/* My ticket button in the header */
.topbar .myticket { margin-left: auto; min-height: 36px; padding: 0 14px; }
@media (min-width: 1000px) { .topbar .myticket { margin-left: 8px; } }
