@font-face { font-family: 'Open Sans'; font-weight: 300; font-display: swap; src: url('/fonts/open-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 400; font-display: swap; src: url('/fonts/open-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 700; font-display: swap; src: url('/fonts/open-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy: #00384C; --teal: #60A8B5; --orange: #E78C0A; --gray: #A5A7AA; --white: #FFFFFF;
  --font: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; font-family: var(--font); color: var(--navy); background: var(--white); }
button, input, select { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- presenter ---------- */
body.present { background: #000; overflow: hidden; height: 100vh; }
.stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.slide { width: 1280px; height: 720px; transform-origin: center center; flex-shrink: 0; }
.hud { position: fixed; left: 12px; bottom: 10px; color: #fff; font-size: 13px; opacity: 0; transition: opacity .2s; background: rgba(0,56,76,.92); padding: 8px 12px; border-radius: 8px; display: flex; gap: 14px; align-items: center; }
.hud.show, .hud:focus-within { opacity: 1; }
.hud button { background: transparent; color: #fff; border: 1px solid var(--gray); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.hud select { background: var(--navy); color: #fff; border: 1px solid var(--gray); border-radius: 6px; padding: 3px 6px; }
.gate { color: #fff; padding: 40px; font-size: 18px; }

/* live result bars on poll slides */
.opt { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 24px; border: 2px solid var(--teal); border-radius: 8px; overflow: hidden; }
.opt .letter { width: 36px; height: 36px; border-radius: 18px; background: var(--teal); color: var(--navy); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.opt .label { font-size: 24px; flex-grow: 1; }
.opt .pct { font-size: 24px; font-weight: 700; min-width: 64px; text-align: right; }
.opt .bar { position: absolute; left: 0; bottom: 0; height: 6px; background: var(--teal); transition: width .5s ease; }

/* ---------- attendee phone view ---------- */
body.live { background: var(--navy); color: #fff; min-height: 100vh; }
.live-wrap { max-width: 520px; margin: 0 auto; padding: 20px 20px 40px; min-height: 100vh; display: flex; flex-direction: column; }
.live-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.live-top img { height: 26px; }
.live-top .tag { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--teal); }
.live h1 { font-size: 26px; line-height: 1.25; margin: 0 0 20px; font-weight: 700; }
.live p { font-size: 17px; line-height: 1.5; margin: 0 0 14px; }
.muted { color: var(--gray); }
.choice { display: flex; width: 100%; align-items: center; gap: 14px; text-align: left; background: transparent; color: #fff; border: 2px solid var(--teal); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; font-size: 18px; cursor: pointer; min-height: 56px; position: relative; overflow: hidden; }
.choice .letter { width: 32px; height: 32px; border-radius: 16px; background: var(--teal); color: var(--navy); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.choice[aria-pressed="true"] { background: #0b4a61; border-color: #fff; }
.choice .pct { margin-left: auto; font-weight: 700; }
.choice .bar { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--teal); transition: width .5s; }
.primary { display: block; width: 100%; background: var(--orange); color: var(--navy); border: 0; border-radius: 10px; padding: 16px; font-size: 18px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; min-height: 52px; }
.primary[disabled] { opacity: .5; cursor: default; }
.secondary { background: transparent; color: #fff; border: 1px solid var(--gray); border-radius: 10px; padding: 12px 16px; font-size: 16px; cursor: pointer; }
.big-number { font-size: 72px; font-weight: 700; line-height: 1; margin: 6px 0 16px; }
.slider { width: 100%; accent-color: var(--teal); height: 40px; }
.dim { padding: 12px 0; border-bottom: 1px solid rgba(165,167,170,.4); }
.dim .name { font-weight: 700; font-size: 17px; }
.dim .desc { font-size: 14px; color: var(--gray); margin: 2px 0 10px; }
.dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dots button { height: 46px; border-radius: 23px; border: 2px solid var(--teal); background: transparent; color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }
.dots button[aria-pressed="true"] { background: var(--teal); color: var(--navy); }
.choice.pick .tick { width: 28px; height: 28px; border-radius: 6px; border: 2px solid var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; color: var(--navy); }
.choice.pick[aria-pressed="true"] .tick { background: var(--teal); }
.choice.pick[aria-disabled="true"] { opacity: .5; }
.stepper { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.stepper button { width: 52px; height: 52px; border-radius: 26px; border: 2px solid var(--teal); background: transparent; color: #fff; font-size: 26px; cursor: pointer; }
.stepper input { width: 96px; height: 52px; text-align: center; font-size: 26px; font-weight: 700; border-radius: 10px; border: 2px solid var(--teal); background: transparent; color: #fff; }
.shares { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shares button { height: 50px; border-radius: 10px; border: 2px solid var(--teal); background: transparent; color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }
.shares button[aria-pressed="true"] { background: var(--teal); color: var(--navy); }
.math-m div { font-size: 17px; line-height: 1.6; } .math-m .eq { font-size: 20px; border-top: 1px solid var(--gray); margin-top: 6px; padding-top: 6px; }
.cmp { margin: 18px 0; } .cmp .lbl { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.bar2 { display: grid; grid-template-columns: 110px 1fr 48px; gap: 10px; align-items: center; margin: 6px 0; font-size: 14px; position: relative; }
.bar2 i { display: block; height: 14px; background: var(--teal); border-radius: 3px; min-width: 2px; }
.bar2.va i { background: var(--gray); } .bar2 b { text-align: right; font-size: 16px; }
.picked { margin: 0 0 16px; padding-left: 20px; font-size: 17px; line-height: 1.6; }
.card { border: 1px solid var(--gray); border-radius: 12px; padding: 20px; margin-top: 8px; }
.status { font-size: 13px; color: var(--gray); margin-top: auto; padding-top: 24px; }
.err { color: #ffd59a; font-size: 15px; margin: 8px 0; min-height: 1em; }

/* ---------- registration ---------- */
body.reg { background: var(--white); }
.reg-hero { background: var(--navy); color: #fff; padding: 40px 8% 48px; }
.reg-hero img { height: 34px; }
.reg-hero .tag { margin-top: 48px; font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--teal); }
.reg-hero .rule { width: 64px; height: 6px; background: var(--orange); margin: 18px 0; }
.reg-hero h1 { font-size: clamp(48px, 8vw, 88px); margin: 0; line-height: 1; }
.reg-hero p { font-size: clamp(18px, 2.4vw, 26px); margin: 16px 0 0; max-width: 820px; }
.reg-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding: 48px 8%; }
@media (max-width: 860px) { .reg-main { grid-template-columns: 1fr; gap: 32px; } }
.reg-main h2 { font-size: 24px; margin: 0 0 14px; }
.reg-main li { font-size: 18px; line-height: 1.5; margin-bottom: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 15px; }
.field input { font-size: 17px; padding: 12px 14px; border: 1px solid var(--gray); border-radius: 8px; color: var(--navy); }
.field input:focus { outline: 3px solid var(--teal); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin: 6px 0 18px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.reg .err { color: #a3420a; }
.done { border: 2px solid var(--navy); border-radius: 12px; padding: 24px; }
.done code { display: block; word-break: break-all; background: #f1f4f5; padding: 10px; border-radius: 6px; margin: 10px 0; font-size: 14px; }
.speakers { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.speakers div { display: flex; gap: 12px; align-items: center; }
.speakers img { width: 64px; height: 64px; border-radius: 32px; object-fit: cover; }
footer.reg-foot { padding: 24px 8% 40px; font-size: 14px; border-top: 1px solid var(--gray); }

/* ---------- admin ---------- */
body.admin { padding: 32px 6%; }
.admin table { border-collapse: collapse; width: 100%; font-size: 14px; }
.admin td, .admin th { border-bottom: 1px solid var(--gray); padding: 8px; text-align: left; }
.admin .row { display: flex; gap: 24px; flex-wrap: wrap; margin: 16px 0 24px; }
.admin .stat { border: 1px solid var(--gray); border-radius: 10px; padding: 14px 18px; min-width: 150px; }
.admin .stat b { display: block; font-size: 30px; }
.admin button, .admin a.btn { background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-block; }

/* ---------- Action Card ---------- */
body.cardpage { background: #EEF2F3; }
.cardpage main { max-width: 760px; margin: 0 auto; background: #fff; min-height: 100vh; }
.chead { background: var(--navy); color: #fff; padding: 28px 28px 30px; }
.chead img { height: 26px; }
.chead .tag { margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--teal); }
.chead h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; margin: 8px 0 6px; }
.chead .sub { color: var(--gray); font-size: 15px; }
.cardpage section { padding: 22px 28px; border-bottom: 1px solid #DDE3E5; }
.cardpage h2 { font-size: 21px; margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.cardpage h2 .n { width: 28px; height: 28px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cardpage .lead, .cardpage p { font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
.cardpage .small { font-size: 14px; color: #4a5a63; }
.plan { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--teal); }
.plan li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 8px 0 8px 14px; font-size: 16px; line-height: 1.45; }
.plan li b { color: var(--navy); }
.moves { padding-left: 18px; margin: 0; } .moves li { font-size: 16px; line-height: 1.5; margin-bottom: 6px; }
.tracks { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.trow { display: grid; grid-template-columns: 170px minmax(0, 1fr) 96px; gap: 14px; align-items: center; }
.tname { font-weight: 700; font-size: 15px; }
.track { position: relative; height: 30px; margin: 0 8px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: #DDE3E5; border-radius: 2px; }
.tickmark { position: absolute; top: 18px; transform: translateX(-50%); font-size: 11px; color: #6b7a82; }
.track .room { position: absolute; top: 1px; width: 4px; height: 20px; background: var(--teal); transform: translateX(-50%); border-radius: 2px; }
.track .me { position: absolute; top: 3px; width: 16px; height: 16px; background: var(--navy); border: 2px solid #fff; border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 0 1px var(--navy); }
.tval { font-size: 15px; text-align: right; } .tval span { color: #6b7a82; font-size: 13px; }
.math { display: flex; align-items: flex-end; gap: 12px; margin: 6px 0 10px; flex-wrap: wrap; }
.math div { display: flex; flex-direction: column; } .math b { font-size: 34px; line-height: 1; } .math span { font-size: 13px; color: #4a5a63; }
.math .op { font-size: 26px; color: var(--gray); padding-bottom: 14px; }
.math .res b { color: var(--navy); border-bottom: 5px solid var(--orange); padding-bottom: 2px; }
.box { border-left: 4px solid var(--navy); background: #F3F6F7; padding: 12px 14px; font-size: 15px; line-height: 1.5; margin-top: 8px; }
.cardpage .btn { display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 12px 18px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.cardpage .actions { padding: 20px 28px 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.cardpage .btn.ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.cardpage section a { color: var(--navy); font-weight: 700; }
.cfoot { padding: 16px 28px 32px; font-size: 13px; color: #4a5a63; line-height: 1.5; }
@media (max-width: 560px) {
  .chead, .cardpage section, .cardpage .actions, .cfoot { padding-left: 18px; padding-right: 18px; }
  .trow { grid-template-columns: 1fr 120px; } .trow .track { grid-column: 1 / -1; grid-row: 2; margin: 0 8px; }
}
@media print {
  body.cardpage { background: #fff; } .cardpage main { max-width: none; min-height: 0; }
  .cardpage .actions, #kitlink { display: none !important; } .chead, .track .me, .track .room, .plan, .h2 .n, .cardpage h2 .n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: letter; margin: 0.35in; }
  .chead { padding: 16px 22px 18px; } .chead .tag { margin-top: 10px; }
  .cardpage section { break-inside: avoid; padding: 9px 22px; }
  .cardpage .lead, .cardpage p { font-size: 13.5px; margin-bottom: 6px; } .plan li { padding: 4px 0 4px 12px; font-size: 13.5px; }
  .tracks { gap: 6px; } .math b { font-size: 26px; } .box { font-size: 13px; padding: 8px 12px; } .cfoot { padding: 8px 22px; }
}

/* ---------- Take-home kit ---------- */
.kitnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 18px 28px; border-bottom: 1px solid #DDE3E5; }
.kitnav a { color: var(--navy); text-decoration: none; font-size: 15px; padding: 10px 12px; border: 1px solid #DDE3E5; border-radius: 8px; }
.kitnav a b { display: inline-flex; width: 22px; height: 22px; border-radius: 11px; background: var(--navy); color: #fff; font-size: 12px; align-items: center; justify-content: center; margin-right: 6px; }
.kitpage .note { background: #F3F6F7; } .kitpage .note p { margin: 0; }
.checks { margin: 0; padding-left: 22px; } .checks li { font-size: 16px; line-height: 1.5; margin-bottom: 6px; }
.kitpage details { border: 1px solid #DDE3E5; border-radius: 10px; margin: 10px 0; padding: 0 16px; }
.kitpage summary { font-weight: 700; font-size: 17px; padding: 14px 0; cursor: pointer; }
.kitpage dl { margin: 0 0 14px; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; }
.kitpage dt { font-weight: 700; font-size: 15px; } .kitpage dd { margin: 0; font-size: 15px; line-height: 1.5; }
.kitpage dl.qa { grid-template-columns: 1fr; gap: 4px; } .kitpage dl.qa dd { margin-bottom: 14px; }
@media (max-width: 560px) { .kitnav { grid-template-columns: 1fr; padding: 14px 18px; } .kitpage dl { grid-template-columns: 1fr; gap: 2px; } .kitpage dd { margin-bottom: 8px; } }
@media print { .kitnav { display: none; } .kitpage details { break-inside: avoid; } }
