:root {
  /* 2026 poster palette */
  --navy: #10165a;        /* poster sky */
  --royal: #1f3fb4;       /* poster water */
  --yellow: #f5ef2a;      /* poster headline */
  --cyan: #3fc3ee;        /* poster accent text */
  /* TWSBA palette */
  --blue: #1f3fb4;        /* primary UI color (buttons, active tab) */
  --blue-2: #2b668a;      /* TWSBA logo blue */
  --teal: #1597c4;
  --cwb: #ab4321;         /* Center for Wooden Boats rust */
  --ink: #1f2d36;
  --ink-2: #4a5963;
  --muted: #7a8891;
  --line: #e2e8ec;
  --bg: #f5f8fa;
  --card: #ffffff;
  --star: #e8a317;
  --radius: 14px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --shadow: 0 1px 2px rgba(20, 40, 55, .06), 0 4px 14px rgba(20, 40, 55, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
}
h1, h2, h3 { font-family: "Roboto Slab", Georgia, serif; line-height: 1.2; margin: 0; }
a { color: var(--blue-2); }
button { font: inherit; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 34px; display: block; }
.topbar-tag {
  font-family: "Roboto Slab", serif; font-weight: 600; font-size: 13px;
  color: var(--blue); white-space: nowrap;
}

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: #fff; border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabbar a.active { color: var(--blue); }
.tabbar a.active svg { stroke-width: 2.3; }

main { max-width: 760px; margin: 0 auto; outline: none; }
main.wide { max-width: 1200px; }
.pad { padding: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff; padding: 28px 20px 26px;
  background:
    linear-gradient(180deg, rgba(16,22,90,1) 0%, rgba(16,22,90,.9) 50%, rgba(31,63,180,.9) 100%),
    url("https://teachingwithsmallboats.org/wp-content/uploads/2026/04/TWSBA-2026-Conference-Poster-11x17-RGB.jpg") center 48%/cover,
    var(--navy);
}
.hero .eyebrow { font-family: "Roboto Slab", serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.hero h1 { font-size: 46px; line-height: .95; margin: 8px 0 10px; font-weight: 700; text-transform: uppercase; color: var(--yellow); letter-spacing: -.01em; }
.hero .sub { font-family: "Roboto Slab", serif; font-size: 16px; font-weight: 600; color: var(--yellow); max-width: 30ch; }
.hero .meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 500; align-items: baseline; }
.hero .meta .dates { font-family: "Roboto Slab", serif; font-weight: 700; font-size: 20px; color: var(--yellow); }

.countdown { display: flex; gap: 8px; margin-top: 18px; }
.countdown div {
  background: rgba(255,255,255,.12); border: 1px solid rgba(63,195,238,.35); border-radius: 10px; padding: 8px 0; min-width: 62px; text-align: center;
}
.countdown b { display: block; font-size: 22px; font-family: "Roboto Slab", serif; color: var(--yellow); }
.countdown small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

/* ---------- Generic cards / sections ---------- */
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 22px 0 10px; font-size: 19px; color: var(--blue);
}
.section-title a { font-family: Roboto, sans-serif; font-size: 14px; font-weight: 500; text-decoration: none; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 12px;
}
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 14px; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; text-decoration: none; text-align: center;
  background: var(--blue); color: #fff;
}
.btn.light { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn.block { width: 100%; }

.now-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.now-label.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e0464a; margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Keynote cards ---------- */
.keynote { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit; }
.keynote { position: relative; }
.kn-photo { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.kn-when { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin-bottom: 2px; }
.keynote .when { flex: 0 0 auto; width: 54px; text-align: center; background: #eaf3f8; border-radius: 10px; padding: 8px 0; color: var(--blue); }
.keynote .when b { display: block; font-family: "Roboto Slab", serif; font-size: 16px; }
.keynote .when small { font-size: 11px; }
.keynote h3 { font-size: 16px; }
.keynote p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- Schedule ---------- */
.sched-head {
  position: sticky; top: 55px; z-index: 10;
  background: var(--bg); padding: 12px 16px 8px;
}
.daytabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #e4ebf0; padding: 4px; border-radius: 12px; }
.daytabs button {
  border: 0; background: transparent; padding: 9px 4px; border-radius: 9px; cursor: pointer;
  color: var(--ink-2); font-weight: 600; font-size: 14px;
}
.daytabs button small { display: block; font-weight: 400; font-size: 11px; opacity: .8; }
.daytabs button.on { background: #fff; color: var(--blue); box-shadow: var(--shadow); }

.filters { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.search {
  width: 100%; margin-top: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  font-size: 15px; background: #fff; color: var(--ink);
}

/* ---------- Schedule: list / grid toggle ---------- */
.mode-toggle { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 8px; }
.mode-toggle button { border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.mode-toggle button.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Room number badges ---------- */
.rnum {
  display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; vertical-align: -3px;
  border-radius: 4px; background: var(--navy); color: #fff; font: 700 10px/1 Roboto, sans-serif; letter-spacing: 0; text-transform: none;
}
.rnum.big { display: grid; width: 26px; height: 26px; margin: 0 auto 4px; font-size: 15px; background: var(--yellow); color: var(--navy); }
.room .rnum { width: 20px; height: 20px; font-size: 12px; vertical-align: -4px; }
.g-cell .rnum { display: inline-grid; margin-top: 0; color: #fff; width: 15px; height: 15px; font-size: 10px; vertical-align: -3px; }
.grid th .rnum.big { display: grid; color: var(--navy); }
.grid-hint { margin: 2px 16px 0; font-size: 12px; color: var(--muted); }

/* ---------- Schedule: grid view (rooms across, times down) ---------- */
.grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 6px 0 0; padding: 0 0 6px 16px; }
.grid { border-collapse: separate; border-spacing: 4px; font-size: 12px; }
.grid th { background: var(--navy); color: #fff; font-weight: 600; padding: 8px 6px; border-radius: 6px; text-align: center; min-width: 140px; line-height: 1.25; }
.grid th small { display: block; font-weight: 400; opacity: .75; font-size: 10px; }
.grid th.g-time {
  position: sticky; left: 0; z-index: 2; min-width: 62px; max-width: 62px; text-align: left;
  background: #e8eef7; color: var(--navy); font-family: "Roboto Slab", serif; font-size: 12px;
  box-shadow: -16px 0 0 var(--bg), 4px 0 0 var(--bg);
}
.grid thead th.g-time { background: var(--navy); color: #fff; }
.grid th.g-time small { opacity: .8; }
.grid th.g-time em { display: block; font-style: normal; font-family: Roboto, sans-serif; font-size: 10px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.grid td { vertical-align: top; padding: 0; min-width: 140px; }
.g-cell { display: block; height: 100%; min-height: 64px; padding: 7px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.g-cell b { display: block; font-weight: 600; line-height: 1.25; }
.g-room { display: block; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(31, 45, 54, .6); margin-bottom: 2px; }
.g-cell span { display: block; margin-top: 3px; color: rgba(31, 45, 54, .75); font-size: 11px; }
.g-cell.picked { box-shadow: inset 0 0 0 2.5px var(--star); }
.g-cell.picked b::after { content: " ★"; color: #b77900; }
.g-cell.dim { opacity: .25; }
.g-row-plenary .g-cell, .g-row-meal .g-cell, .g-row-social .g-cell { min-height: 0; }
/* Full-width rows: keep the label pinned next to the time column while swiping */
.g-row-plenary .g-cell > *, .g-row-meal .g-cell > *, .g-row-social .g-cell > *, .g-break > span { position: sticky; left: 82px; max-width: 280px; }
.g-break { padding: 4px 8px; color: var(--muted); font-size: 11px; background: #f1edf6; border-radius: 6px; }

.timeblock { padding: 0 16px; margin-top: 14px; }
.timeblock > .tb-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.tb-head .t { font-family: "Roboto Slab", serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.tb-head .slot { font-size: 12px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }

.sess {
  position: relative; display: flex; gap: 12px; align-items: stretch;
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
  margin-bottom: 8px; overflow: hidden; text-decoration: none; color: inherit;
}
.sess .bar { flex: 0 0 6px; }
.sess .body { flex: 1; padding: 12px 0; min-width: 0; text-decoration: none; color: inherit; }
.sess h4 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.sess .sub { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.sess .tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; color: var(--ink); font-weight: 500; }
.sess.now { outline: 2px solid var(--teal); }
.star {
  flex: 0 0 auto; align-self: center; margin-right: 6px;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center;
}
.star svg { width: 24px; height: 24px; fill: none; stroke: #b4c0c7; stroke-width: 1.8; stroke-linejoin: round; }
.star.on svg { fill: var(--star); stroke: var(--star); }

.sess.compact { box-shadow: none; background: transparent; margin-bottom: 4px; }
.sess.compact .body { padding: 6px 0; }
.sess.compact h4 { font-weight: 500; font-size: 14px; color: var(--ink-2); }
.sess.compact .bar { border-radius: 4px; }
.sess.plenary { background: linear-gradient(90deg, #ecf8ee, #fff 70%); }

.empty { text-align: center; color: var(--muted); padding: 40px 24px; }
.empty svg { width: 44px; height: 44px; stroke: #c3cdd3; fill: none; stroke-width: 1.5; }
.note { font-size: 12px; color: var(--muted); text-align: center; padding: 16px; }

/* ---------- Detail pages ---------- */
.back {
  display: inline-flex; align-items: center; gap: 4px; padding: 14px 16px 0; color: var(--blue);
  text-decoration: none; font-weight: 500; font-size: 15px; background: none; border: 0; cursor: pointer;
}
.banner { margin: 4px 0 14px; }
.banner img { width: 100%; display: block; border-radius: 12px; }
.banner figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; }
.detail h1 { font-size: 24px; margin: 8px 0 12px; }
.kv { display: grid; grid-template-columns: 22px 1fr; gap: 10px 10px; font-size: 15px; color: var(--ink-2); align-items: start; }
.kv svg { width: 20px; height: 20px; fill: none; stroke: var(--blue-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prose { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Speakers ---------- */
.person { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.person:last-child { border-bottom: 0; }
.avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 15px;
  background: var(--blue-2); object-fit: cover;
}
.avatar.lg { width: 84px; height: 84px; font-size: 28px; }
.person .nm { font-weight: 600; font-size: 15px; }
.person .rl { font-size: 13px; color: var(--muted); margin-top: 2px; }
.badge { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #fff4d8; color: #8a5a00; padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }

.soon { color: var(--muted); font-style: italic; font-size: 14px; margin: 6px 0 0; }
.role-chip { font-size: 11px; font-weight: 500; color: var(--muted); }
.daytabs.two { grid-template-columns: 1fr 1fr; }
.daytabs a {
  text-align: center; text-decoration: none; padding: 9px 4px; border-radius: 9px;
  color: var(--ink-2); font-weight: 600; font-size: 14px;
}
.daytabs a small { display: block; font-weight: 400; font-size: 11px; opacity: .8; }
.daytabs a.on { background: #fff; color: var(--blue); box-shadow: var(--shadow); }

/* ---------- Personal planning ---------- */
.tag.fav { background: #fff4d8; color: #8a5a00; }
.sess.clash { outline: 1.5px dashed #e0a100; }
.clash-note { margin-top: 6px; font-size: 12px; font-weight: 600; color: #a86b00; }
.clash-banner { background: #fff7e0; border: 1px solid #f2d27a; color: #7a5200; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 10px; }
.clash-banner a { color: inherit; font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.fav-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.fav-strip::-webkit-scrollbar { display: none; }
.fav-strip a { flex: 0 0 auto; width: 66px; text-align: center; text-decoration: none; color: var(--ink-2); font-size: 11px; line-height: 1.25; }
.fav-strip .avatar { width: 54px; height: 54px; margin: 0 auto 4px; border: 2px solid var(--star); }
.fav-mark { color: var(--star); font-size: 18px; }
.mine { border-left: 4px solid var(--yellow); }
.rate-link { display: block; margin-top: 12px; padding: 10px 12px; background: #eef4ff; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.rate-link b { color: var(--blue); }
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); z-index: 40;
  max-width: 520px; margin: 0 auto; background: var(--navy); color: #fff; font-size: 14px; line-height: 1.4;
  padding: 12px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: none; }
.toast b { color: var(--yellow); font-weight: 600; }

/* ---------- Attendee lock ---------- */
.lock { text-align: center; padding: 24px 18px; margin-top: 10px; }
.lock h2 { font-size: 20px; color: var(--navy); margin-top: 8px; }
.lock p { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.lock .search { text-align: center; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
.lock-icon { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: #eef2ff; display: grid; place-items: center; }
.lock-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.lock-err { color: #b42318 !important; font-weight: 600; margin: 8px 0 0; }

/* ---------- Home quick links ---------- */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.quick .card { margin: 0; text-decoration: none; color: var(--ink); border-top: 4px solid var(--yellow); }
.quick .card:last-child { border-top-color: var(--cyan); }
.quick b { display: block; font-family: "Roboto Slab", serif; font-size: 15px; color: var(--navy); }
.quick small { color: var(--muted); font-size: 12px; }

/* ---------- Pecha Kucha ---------- */
.pk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pk-head h3 { font-size: 16px; color: var(--navy); }
.pk-head a { font-size: 13px; text-decoration: none; }
.pk-list { margin: 10px 0 0; padding-left: 26px; }
.pk-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.pk-list li:last-child { border-bottom: 0; }
.pk-list li::marker { font-family: "Roboto Slab", serif; font-weight: 700; color: var(--blue); }
.pk-list span { display: block; font-size: 13px; color: var(--muted); }
.pk-list em { display: block; font-size: 13px; color: var(--ink-2); }
.pk-desc { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pk-wait { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.pk-open { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--blue); }
.pk-cta { border-top: 4px solid var(--yellow); margin-top: 14px; }
.pk-cta b { display: block; font-family: "Roboto Slab", serif; color: var(--navy); font-size: 16px; }
.pk-cta span { display: block; font-size: 13px; color: var(--muted); margin: 4px 0 12px; }

.person-link { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.li-btn {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: #0a66c2; color: #fff; font: 700 16px/1 Arial, sans-serif; text-decoration: none; letter-spacing: -.5px;
}

/* ---------- Info ---------- */
.host-logo { display: block; height: 56px; margin-bottom: 14px; }
.map-embed { width: 100%; height: 220px; border: 0; border-radius: 12px; display: block; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; padding: 10px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--blue-2); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.room { background: #eef4f8; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 500; }
.room small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.sponsors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sponsor { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 96px; }
.sponsor img { max-width: 100%; max-height: 54px; }
.sponsor small { color: var(--muted); font-size: 11px; margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; }

@media (min-width: 700px) {
  .hero { padding: 44px 32px 40px; border-radius: 0 0 20px 20px; }
  .hero h1 { font-size: 64px; }
  .rooms, .sponsors { grid-template-columns: repeat(3, 1fr); }
}
