:root {
  --ink: #13212b;
  --muted: #3e4c57;
  --paper: #fffaf3;
  --white: #ffffff;
  --teal: #0b5266;
  --teal-2: #0f7180;
  --aqua: #d9f2f2;
  --coral: #df6a4f;
  --gold: #f2bd4d;
  --leaf: #2e8b73;
  --line: #d5e2e4;
  --warm: #fff4e8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Aptos, "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
  font-weight: 800;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.site-header :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 82, 102, 0.97);
  color: var(--white);
  border-bottom: 5px solid var(--coral);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}
.brand img { width: 116px; height: auto; flex: 0 0 auto; }
.brand-kicker {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-title {
  display: block;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 800;
}
.nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav .button {
  color: var(--ink);
  background: var(--gold);
  padding: 8px 14px;
  border-radius: 8px;
}
.nav .button:hover { background: #e0ae38; }

.page-hero {
  position: relative;
  color: var(--white);
  /* San Juan beach photo under the brand teal; the overlay is darkest at left so the text stays readable. */
  background-color: var(--teal);
  background-image:
    linear-gradient(105deg, rgba(11, 82, 102, 0.95) 0%, rgba(11, 82, 102, 0.86) 48%, rgba(11, 82, 102, 0.42) 100%),
    url("/assets/hero-san-juan.jpg");
  background-size: cover;
  background-position: center 58%;
  overflow: hidden;
}
@media (max-width: 760px) {
  /* Text spans the full width on phones, so fade the overlay top-to-bottom instead of left-to-right. */
  .page-hero {
    background-image:
      linear-gradient(180deg, rgba(11, 82, 102, 0.96) 0%, rgba(11, 82, 102, 0.9) 55%, rgba(11, 82, 102, 0.62) 100%),
      url("/assets/hero-san-juan-sm.jpg");
    background-position: 62% 40%;
  }
}
.page-hero:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  height: 6px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--leaf), var(--teal-2));
}
.hero-wave {
  display: block;
  width: 100%;
  height: 52px;
  color: var(--paper);
}
.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 42px 24px 8px;
  position: relative;
  z-index: 1;
}
.lang-switch {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-decoration: underline;
}
.eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 16ch;
}
.hero-lede {
  max-width: 640px;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}
.venue {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.45;
}
.venue strong { display: block; font-size: 16px; }
.venue a { color: var(--white); font-weight: 800; }
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.pills li {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(11, 82, 102, 0.4);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 800;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
}
.button-link.primary { background: var(--gold); color: var(--ink); }
.button-link.primary:hover { background: #e0ae38; }
.button-link.secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.button-link.secondary:hover { background: rgba(255, 255, 255, 0.12); }

.day-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.day-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  background: var(--gold);
}
.day-jump a:hover { background: #e0ae38; }

.section { padding: 28px 24px 10px; }
.section-inner { max-width: 860px; margin: 0 auto; }

.cfp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--teal);
  color: var(--white);
  border-radius: 16px;
  padding: 18px 18px;
  margin: 16px 0 8px;
}
.cfp p { max-width: 52ch; font-size: 16px; line-height: 1.5; }
.cfp a { color: var(--gold); font-weight: 800; }

#schedule-days { padding-bottom: 24vh; }
.day {
  scroll-margin-top: 7.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 20px 8px;
  margin: 16px 0;
  box-shadow: 0 10px 28px rgba(19, 33, 43, 0.05);
}
.day-sun { border-top: 7px solid var(--gold); }
.day-palm { border-top: 7px solid var(--leaf); }
.day-wave { border-top: 7px solid var(--teal-2); }
.day-lights { border-top: 7px solid var(--coral); }
.day-plane { border-top: 7px solid var(--teal); }

.day-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.day-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--aqua);
  color: var(--teal);
  flex: 0 0 auto;
}
.day-badge svg { width: 32px; height: 32px; display: block; }
.day-date {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.day h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  color: var(--ink);
  margin-top: 2px;
}
.day-lede { margin-top: 8px; color: var(--muted); max-width: 62ch; }
.ends-pill {
  display: inline-block;
  margin-top: 10px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  padding: 6px 12px;
}

.blocks {
  list-style: none;
  margin: 16px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.block {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--paper);
  border-radius: 14px;
  padding: 12px;
}
.block-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--line);
}
.block-icon svg { width: 26px; height: 26px; display: block; }
.block h3 { font-size: 18px; line-height: 1.25; }
.block-detail { margin-top: 4px; color: var(--muted); }
.block-link { display: block; width: fit-content; margin-top: 8px; font-weight: 800; color: var(--teal-2, #0f7180); text-decoration: underline; }
.when-pill {
  display: inline-block;
  margin-bottom: 4px;
  background: var(--aqua);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 3px 8px;
}
.same-time {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--teal);
}
.block-break { background: var(--aqua); }
.block-break .block-icon { background: var(--white); }
.block-gala {
  background: linear-gradient(100deg, var(--warm), #fffaf3 70%);
  border: 1px solid #f0d2b4;
}
.room, .speakers { margin-top: 4px; font-size: 14px; }
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 5px 10px 5px 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
.badge-icon { width: 22px; height: 22px; color: var(--teal); flex: 0 0 auto; display: grid; place-items: center; }
.badge-icon svg { width: 22px; height: 22px; display: block; }
.translation-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: 16px;
  padding: 16px;
  margin: 8px 0 4px;
  color: var(--ink);
}
.translation-note .badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--aqua);
}
.translation-note .badge-icon svg { width: 28px; height: 28px; }
.translation-note p { font-size: 16px; line-height: 1.45; }
.translation-note strong { display: block; margin-bottom: 4px; }

.loading, .schedule-error { color: var(--muted); padding: 12px 0 20px; }
.schedule-error a { color: var(--teal); font-weight: 800; }

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 28px 24px;
  font-size: 14px;
  margin-top: 12px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer strong { color: var(--gold); }
.footer a { color: rgba(255, 255, 255, 0.75); }

@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; align-items: flex-start; }
  .nav {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .day { scroll-margin-top: 12rem; }
}

@media (max-width: 640px) {
  .header-inner { padding: 12px 16px 10px; }
  .brand img { width: 92px; }
  .brand-title { font-size: 13px; }
  .page-hero-inner, .section { padding-left: 16px; padding-right: 16px; }
  .day { padding: 16px 14px 6px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Accepted sessions listed inside a breakout block (from the CFP feed) */
.session-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.session-list li { display: grid; gap: 2px; padding: 10px 12px; border-left: 3px solid currentColor; background: rgba(255, 255, 255, .55); border-radius: 0 8px 8px 0; }
.session-title { font-weight: 700; }
.session-lang { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.session-meta { font-size: 14px; color: var(--muted); }

.schedule-progress { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid currentColor; background: rgba(255, 255, 255, .7); border-radius: 0 10px 10px 0; font-weight: 600; }
