/* =========================================================================
   BRAND TOKENS — change these two accents to reskin the whole app.
   ========================================================================= */
:root {
  --bg: #F5F5F3;
  --surface: #FFFFFF;
  --ink: #000;
  --ink-soft: #5B6178;
  --line: #E7E7E2;
  --accent: #fcb900;
  --t-keynote: #fcb900;
  --t-session: #3B4E8C;
  --t-presentations: #1F8A70;
  --t-panel: #7A4E8C;
  --t-break: #9A9A93;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(27, 33, 64, .06), 0 8px 24px rgba(27, 33, 64, .06);
  --maxw: 767px;

  --primary: #471497;
  --primary-lite: #e3d1ff;
  --text-muted: #fcb900;
  --bg-subtle: #F0F0EC;
  --icon-muted: #C4C4BD;
  --accent-light: #FBF4E7;
  --bg-alt: #FAFAF8;
  --empty-icon: #CFCFC7;
  --modal-overlay: rgba(27, 33, 64, .45);
  --text-body: #3A3F57;
  --tabbar-bg: rgba(255, 255, 255, .92);
  --tab-inactive: #666;

  --font-sans: 'PT Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'PT Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  letter-spacing: 0.08em;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit
}

a {
  color: var(--primary)
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 26px 0 16px;
  max-height: calc(100dvh - 200px) !important;
  overflow: hidden;
  overflow-y: auto;
}

.appbar {
  position: relative;
  top: 0;
  z-index: 20;
  background: var(--primary);
  color: var(--surface);
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px
}

.appbar .wrap {
  padding: 0 4px
}

.appbar .wrap .logo {
  display: block;
  margin: 0 0 10px;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .3px
}

.wordmark span {
  color: var(--accent)
}

.appbar .meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center
}

body {
  top: 0 !important;
}

.skiptranslate iframe {
  display: none !important;
}

#google_translate_element select {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 4px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.screen {
  padding-top: 18px;
  min-height: 60vh
}

.screen[hidden] {
  display: none
}

.screen-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 26px;
  margin-bottom: 2px;
  color: var(--primary);
}

.screen-sub {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 16px
}



.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px
}

.seg {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  box-shadow: var(--shadow)
}

.seg button {
  flex: 1;
  padding: 9px 8px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary)
}

.seg button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--surface)
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 7px
}

.chip[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink)
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%
}

.search {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  box-shadow: var(--shadow)
}

.timegroup {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .6px;
  text-transform: uppercase;
  margin: 20px 0 8px
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  text-align: left
}

.card .body {
  flex: 1;
  min-width: 0
}

.card .time {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 3px 0 6px;
  color: var(--primary);
}

.card .metarow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  align-items: center;
  justify-content: flex-start;
}

.card .metarow .who {
  color: var(--primary);
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 16px;
  font-family: var(--font-sans);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--ink)
}

.pill.primary {
  background: var(--primary);
  color: var(--bg)
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%
}

.star {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--icon-muted)
}

.star.on {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light)
}

.star svg {
  width: 19px;
  height: 19px
}

.break-card {
  background: transparent;
  box-shadow: none;
  border-style: dashed;
  justify-content: center
}

.break-card h3 {
  margin: 0;
  color: var(--primary)
}

.speaker {
  display: flex;
  gap: 13px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 10px;
  width: 100%;
  text-align: left
}

.avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: var(--primary);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.08em;
  overflow: hidden
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.speaker .body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.speaker .body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 2px
}

/* ---- Hub tiles ---- */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 112px;
  position: relative
}

.tile:active {
  transform: scale(.99)
}

.tile .ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary-lite);
  color: var(--primary);
  display: grid;
  place-items: center
}

.tile .ic svg {
  width: 22px;
  height: 22px
}

.tile h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25
}

.tile p {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: -4px
}

.tile .badge2 {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: var(--surface);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  padding: 0 6px
}

/* ---- Sub-pages ---- */
.subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px
}

.backbtn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center
}

.backbtn svg {
  width: 20px;
  height: 20px
}

.subhead h1 {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 900
}

.block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px
}

.block h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--primary)
}

.block h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 3px;
  color: var(--primary)
}

.block p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
  margin: 8px 0;
  font-family: var(--font-sans);
}

.block ul {
  margin: 0 0 0 30px;
  padding: 0;
}

.block ul li {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
  margin: 8px 0;
}

.block .linkrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px
}


.seville-item-body ul {
  margin: 0 0 0 30px;
  padding: 0;
}

.seville-item-body ul li {
  margin: 8px 0;
  padding: 0;
}

.ann {
  border-left: 5px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 25px;
  background: var(--surface);
  /* border: 1px solid var(--line);*/
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px;
  margin-bottom: 10px;
}

.ann .d {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px
}

.ann h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  margin: 2px 0 4px
}

.ann p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55
}

.ann ul {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 0 30px;
}

.tier-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .6px;
  text-transform: uppercase;
  margin: 18px 0 8px
}

.logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

.logo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  height: 90px;
  display: grid;
  place-items: center;
  padding: 15px;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none
}

.logo-card img {
  width: 100%;
  height: 100%;
  max-height: 55px;
  object-fit: contain
}

.person {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line)
}

.person:first-child {
  border-top: none
}

.person .body h3 {
  font-size: 15px;
  font-weight: 600
}

.person .body p {
  font-size: 14px;
  color: var(--ink-soft)
}

.mapbox {
  border: 1px dashed var(--line);
  border-radius: 12px;
  height: 180px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
  padding: 16px;
  background: var(--bg-alt)
}

.mapbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px
}

.langrow {
  display: flex;
  gap: 10px;
  margin-top: 6px
}

.langbtn {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow)
}

.langbtn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--ink)
}

.empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--ink-soft)
}

.empty svg {
  width: 40px;
  height: 40px;
  color: var(--empty-icon);
  margin-bottom: 12px
}

.empty h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(27, 33, 64, .45);
  z-index: 40;
  display: none;
  align-items: flex-end;
  justify-content: center
}

.modal-bg.open {
  display: flex
}

.modal {
  background: var(--surface);
  width: 100%;
  max-width: var(--maxw);
  border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(26px + env(safe-area-inset-bottom));
  max-height: 88vh;
  overflow: auto;
  animation: slideup .22s ease
}

@keyframes slideup {
  from {
    transform: translateY(100%)
  }

  to {
    transform: translateY(0)
  }
}

.modal .grip {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  margin: 0 auto 16px
}

.modal .m-time {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600
}

.modal h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  margin: 6px 0 12px
}

.modal .m-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px
}

.modal .m-body {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink);
  max-height: 250px;
  overflow: auto;
}

.m-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ---- Footer Sponsors ---- */
.footer-sponsors-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  text-align: center;
}

.screen-title {
  text-align: left;
  margin-bottom: 20px;
}

.footer-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
}

@media (max-width: 300px) {
  .footer-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-logo {
  display: block;
  width: 100%;
  height: 115px;
  text-decoration: none;
  background-color: var(--surface);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.footer-logo img {
  height: 100%;
  width: 100%;
  /* max-width: 150px; */
  object-fit: contain;
}

.footer-logo-text {
  font-size: 12px;
  font-weight: bold;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  height: 100%;
}

.btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none
}

.btn-primary {
  background: var(--ink);
  color: var(--surface)
}

.btn-ghost {
  background: var(--bg-subtle);
  color: var(--ink)
}

.btn-accent {
  background: var(--accent);
  color: var(--surface)
}

.m-speaker {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line)
}

.m-speaker .body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 70px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom))
}

.tabbar .wrap {
  display: flex;
  justify-content: space-around
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tab-inactive);
  padding: 4px 14px;
  border-radius: 10px;
  position: relative
}

.tab svg {
  width: 26px;
  height: 26px
}

.tab[aria-current="true"] {
  color: var(--primary)
}

.tab .badge {
  position: absolute;
  top: -2px;
  right: 6px;
  background: var(--accent);
  color: var(--surface);
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  padding: 0 4px
}

.att {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-top: 1px solid var(--line)
}

.att:first-child {
  border-top: none;
  padding-top: 2px
}

.att .body {
  flex: 1;
  min-width: 0
}

.att .body h3 {
  font-size: 15px;
  font-weight: 600
}

.att .body .aff {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 1px
}

.att .body .int {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-style: italic
}

.linkpills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px
}

.linkpill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--ink);
  text-decoration: none
}

.att-note {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 12px
}

.att-search {
  margin-bottom: 6px
}

/* ---- Banner Carousel ---- */
.carousel-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  /* overflow: hidden; */
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.carousel-track {
  display: flex;
  overflow: hidden;
  scrollbar-width: none;
  border-radius: var(--radius);
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: var(--radius);
}

.carousel-dots {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--surface);
  background: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  pointer-events: auto;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.5);
}