/* ============================================================
   LEC Annual Conference Hub — conference.lignite.com

   Palette and type pulled from the live lignite.com Elementor
   kit so this sits inside the existing brand system:
     primary   #213240   secondary #405569
     text      #424242   accent    #0C0C0C
     headings  Alata     body      Poppins
   ============================================================ */

:root {
  /* --- BRAND (from the lignite.com global kit) --- */
  --navy:        #213240;  /* e-global-color-primary */
  --navy-lift:   #2b3f52;  /* gradient partner, not in the kit */
  --slate:       #405569;  /* e-global-color-secondary */
  --slate-deep:  #33455a;
  --slate-light: #9fb3c6;  /* accent on dark grounds */
  --ink:         #0C0C0C;  /* e-global-color-accent */

  /* --- SURFACES (neutrals biased toward the slate, not pure grey) --- */
  --bg:        #f3f6f8;
  --surface:   #ffffff;
  --surface-2: #e8edf1;
  --border:    #d3dce4;

  /* --- TEXT --- */
  --text:      #213240;
  --text-body: #424242;  /* e-global-color-text */
  --text-mute: #67788a;
  --text-inv:  #ffffff;

  /* --- SYSTEM --- */
  --radius: 5px;      /* every rectangular corner on the site */
  --radius-sm: 5px;   /* kept as an alias so existing rules stay readable */
  --shadow: 0 1px 2px rgba(33,50,64,.06), 0 8px 24px -14px rgba(33,50,64,.28);
  --maxw: 960px;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Alata", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--slate); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; color: var(--text); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 2px;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0; font-size: 14px;
}
.skip:focus { left: 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 12% -20%, rgba(64,85,105,.85), transparent 62%),
    linear-gradient(165deg, var(--navy) 0%, #1a2833 100%);
  color: var(--text-inv);
  padding: 36px 0 32px;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--slate);
}
.hero__logo { height: 64px; width: auto; margin-bottom: 26px; }
/* The logo is the wordmark — don't repeat the org name under it. If the image
   fails to load it removes itself, this selector stops matching, and the
   eyebrow reappears to carry the name. */
.hero__logo + .hero__eyebrow { display: none; }
.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--slate-light); margin: 0 0 12px;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 7.5vw, 48px);
  line-height: 1.06; margin: 0 0 10px; color: #fff;
  text-wrap: balance;
}
.hero__theme {
  font-family: var(--font-head);
  font-size: clamp(17px, 3.8vw, 22px);
  color: var(--slate-light); margin: 0 0 4px;
}
.hero__tagline { margin: 0 0 22px; color: rgba(255,255,255,.72); font-size: 15px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 14.5px; color: rgba(255,255,255,.92);
}
.hero__meta > span { display: flex; align-items: center; gap: 8px; }
.hero__meta svg { color: var(--slate-light); flex: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-body);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: #fff; color: var(--navy); }
.btn--primary:hover { background: var(--surface-2); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Sticky nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 20px; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav a {
  flex: 0 0 auto; padding: 15px 13px; font-size: 13.5px; font-weight: 500;
  color: var(--text-mute); text-decoration: none; border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--navy); }
.nav a.is-active { color: var(--navy); border-bottom-color: var(--slate); }

/* ---------- Sections ---------- */
.section { padding: 48px 0; scroll-margin-top: 58px; }
.section--alt { background: var(--surface-2); }
/* Sponsor logos and program ads are drawn for white, so the sections that
   carry them get a true white ground rather than the page's tinted neutral.
   Speakers stays tinted: headshots are photos with their own backgrounds and
   don't need it, and it keeps a band of separation above the white run. */
.section--white { background: var(--surface); }
/* Four white sections in a row would read as one endless block. A hairline
   keeps the structure legible without reintroducing a tint. */
.section--white + .section--white { border-top: 1px solid var(--border); }
.section__head { margin-bottom: 24px; }
.section__eyebrow {
  font-family: var(--font-head);
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--slate); margin: 0 0 8px;
}
.section__title {
  font-family: var(--font-head); font-size: clamp(24px, 5vw, 32px);
  margin: 0 0 8px; line-height: 1.15; text-wrap: balance;
}
.section__sub { margin: 0; color: var(--text-mute); font-size: 14.5px; max-width: 62ch; }

/* ---------- Day tabs ---------- */
.daytabs { display: flex; gap: 8px; margin-bottom: 22px; }
.daytab {
  flex: 1 1 0; text-align: left; padding: 13px 15px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font-family: var(--font-body); color: var(--text-mute);
  transition: background .15s ease, border-color .15s ease;
}
.daytab strong {
  display: block; font-family: var(--font-head); font-size: 16px;
  font-weight: 400; color: var(--navy); margin-bottom: 1px;
}
.daytab span { font-size: 12.5px; }
.daytab:hover { border-color: var(--slate); }
.daytab.is-active { background: var(--navy); border-color: var(--navy); }
.daytab.is-active strong { color: #fff; }
.daytab.is-active span { color: var(--slate-light); }

/* ---------- Agenda ---------- */
.agenda { display: flex; flex-direction: column; gap: 8px; }

.slot {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.slot--break { background: transparent; box-shadow: none; border-style: dashed; }
.slot--now {
  border-color: var(--slate);
  box-shadow: inset 4px 0 0 var(--slate), var(--shadow);
}

.slot__btn {
  width: 100%; display: grid; grid-template-columns: 86px 1fr auto;
  gap: 14px; align-items: start; padding: 16px;
  background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.slot__btn[disabled] { cursor: default; }
.slot__time {
  font-size: 12.5px; font-weight: 600; color: var(--slate);
  font-variant-numeric: tabular-nums; padding-top: 3px; letter-spacing: .01em;
}
.slot__title {
  font-family: var(--font-head); font-weight: 400; font-size: 17px;
  margin: 0; line-height: 1.3; color: var(--navy);
}
.slot--break .slot__title { color: var(--text-mute); font-size: 15.5px; }
.slot__note { font-size: 13px; color: var(--text-mute); margin: 4px 0 0; }
.slot__names { font-size: 13px; color: var(--slate); margin: 6px 0 0; font-weight: 500; }
.slot__chev {
  width: 18px; height: 18px; flex: none; margin-top: 5px;
  color: var(--text-mute); transition: transform .2s ease;
}
.slot.is-open .slot__chev { transform: rotate(180deg); }

.badge {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius);
  border: 1px solid var(--slate); color: var(--slate);
  margin-left: 9px; vertical-align: 3px; font-family: var(--font-body);
}
.badge--now {
  background: var(--slate); color: #fff; border-color: var(--slate);
  margin: 0 0 8px; vertical-align: baseline;
}

.slot__body { display: none; padding: 0 16px 18px 116px; }
.slot.is-open .slot__body { display: block; }
.slot__body p { margin: 0 0 14px; font-size: 14.5px; color: var(--text-body); max-width: 62ch; }
.slot__body ul { margin: 0 0 14px; padding-left: 18px; font-size: 14px; color: var(--text-body); }
.slot__body ul li { margin-bottom: 5px; }
.slot__speakers { display: flex; flex-wrap: wrap; gap: 8px; }
.slot__label {
  font-family: var(--font-head); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-mute); margin: 0 0 8px;
}
.slot__speakers + .slot__label { margin-top: 16px; }

.rates { list-style: none; margin: 0 0 12px; padding: 0; }
.rates li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.rates li:last-child { border-bottom: 0; }
.rates strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.card__fine { font-size: 12.5px; color: var(--text-mute); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 5px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: var(--font-body); color: var(--navy);
}
.chip:hover { border-color: var(--slate); background: #fff; }
.chip__av {
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy);
  color: var(--slate-light); font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex: none;
  font-family: var(--font-body);
}

/* ---------- Speakers ---------- */
.speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 14px; }
/* Cards stretch to the tallest in the row. A <button> centres its content
   vertically by default, which floats short cards (one-line titles) out of
   line with tall ones (three-line org names). Flex column + flex-start pins
   every card's avatar to the same top edge. */
.spk {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; cursor: pointer; font-family: var(--font-body);
  box-shadow: var(--shadow); transition: border-color .15s ease, transform .12s ease;
}
.spk:hover { border-color: var(--slate); transform: translateY(-2px); }
.spk__av {
  width: 70px; height: 70px; flex: none; border-radius: 50%; margin: 0 0 12px;
  object-fit: cover; background: var(--navy); color: var(--slate-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 500;
}
.spk__name {
  font-family: var(--font-head); font-size: 15px; font-weight: 400;
  color: var(--navy); margin: 0 0 4px; line-height: 1.25;
}
.spk__meta { font-size: 12px; color: var(--text-mute); margin: 0; line-height: 1.4; }

/* ---------- Modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal__scrim { position: absolute; inset: 0; background: rgba(33,50,64,.68); }
.modal__panel {
  position: relative; background: var(--surface); width: 100%; max-width: 580px;
  max-height: 88vh; overflow-y: auto; border-radius: var(--radius) var(--radius) 0 0;
  padding: 28px 24px 32px; animation: rise .22s ease;
}
@keyframes rise { from { transform: translateY(20px); opacity: .5; } to { transform: none; opacity: 1; } }
.modal__close {
  position: absolute; top: 15px; right: 15px; width: 34px; height: 34px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2);
  font-size: 18px; line-height: 1; cursor: pointer; color: var(--text-mute);
}
.modal__close:hover { border-color: var(--slate); color: var(--navy); }
.modal__av {
  width: 86px; height: 86px; border-radius: 50%; object-fit: cover; margin-bottom: 16px;
  background: var(--navy); color: var(--slate-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 500;
}
.modal__name { font-family: var(--font-head); font-size: 24px; margin: 0 0 5px; line-height: 1.15; }
.modal__role { font-size: 14px; color: var(--text-mute); margin: 0 0 18px; }
.modal__bio { font-size: 14.5px; line-height: 1.72; color: var(--text-body); margin: 0; max-width: 62ch; }
.modal__sessions { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.modal__sessions h4 {
  font-family: var(--font-head); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--slate); margin: 0 0 10px;
}
.modal__sessions ul { margin: 0; padding-left: 18px; }
.modal__sessions li { font-size: 14px; margin-bottom: 6px; color: var(--text-body); }

/* ---------- Sponsors ---------- */
.tier { margin-bottom: 22px; }
.tier__label {
  font-family: var(--font-head);
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--slate); margin: 0 0 10px; padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
.tier__list {
  display: flex; flex-wrap: wrap; align-items: stretch;
  gap: 10px; list-style: none; margin: 0; padding: 0;
}
.tier__item {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 16px;
  font-size: 13.5px; font-weight: 500; color: var(--navy);
}
/* Logos arrive at every conceivable size and aspect. Cap the height per tier
   (set in data.json) so a wordmark and a badge sit level, and cap the tile
   width so a very wide banner logo can't run away with the row. */
.tier__item--logo { padding: 14px 20px; max-width: 320px; }
.tier__item img { width: auto; max-width: 100%; max-height: 72px; object-fit: contain; }
.tier__item a { display: flex; align-items: center; text-decoration: none; color: inherit; }
.tier__item a:hover img { opacity: .82; }
.tier__todo { flex: 1 1 100%; }
.tier__name { line-height: 1.3; }

/* ---------- Program ads ---------- */
.ads {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.ad {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.ad a { display: block; text-decoration: none; }
.ad img { width: 100%; height: auto; }
.ad a:hover img { opacity: .92; }
.ad--todo {
  grid-column: 1 / -1; background: transparent; border: 0;
  box-shadow: none; padding: 0;
}

/* ---------- Info cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { font-family: var(--font-head); margin: 0 0 10px; font-size: 17px; }
.card p { margin: 0 0 10px; font-size: 14px; color: var(--text-body); }
.card p:last-child { margin-bottom: 0; }
.card a { font-weight: 500; }

.dates { list-style: none; margin: 0; padding: 0; }
.dates li {
  display: flex; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--navy);
}
.dates li:last-child { border-bottom: 0; }
.dates time {
  flex: 0 0 155px; font-weight: 600; color: var(--slate);
  font-variant-numeric: tabular-nums; font-size: 13.5px; padding-top: 1px;
}
.dates a { font-weight: 500; }
.dates__note { font-size: 13px; color: var(--text-mute); }

/* ---------- TODO flag (review only — body.prod hides them) ---------- */
.todo {
  display: inline-block; background: #fff4d6; border: 1px dashed #c99b2e;
  color: #6f5210; font-size: 13px; padding: 7px 11px; border-radius: var(--radius);
  font-weight: 500; line-height: 1.4;
}
body.prod .todo { display: none; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy); color: rgba(255,255,255,.68);
  padding: 40px 0 44px; font-size: 14px;
}
.footer a { color: var(--slate-light); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; margin-bottom: 28px; }
.footer h4 {
  font-family: var(--font-head); color: #fff; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; font-weight: 400;
}
.footer p { margin: 0; line-height: 1.7; }
.footer__fine {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px;
  font-size: 12.5px; color: rgba(255,255,255,.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .slot__btn { grid-template-columns: 66px 1fr auto; gap: 10px; padding: 14px; }
  .slot__body { padding: 0 14px 16px 90px; }
  .slot__title { font-size: 15.5px; }
  .slot--break .slot__title { font-size: 14.5px; }
  .slot__time { font-size: 12px; }
  .hero { padding: 28px 0 26px; }
  .hero__logo { height: 50px; margin-bottom: 22px; }
  .section { padding: 40px 0; }
  .dates li { flex-direction: column; gap: 2px; }
  .dates time { flex: none; }
}
@media (min-width: 700px) {
  .modal { align-items: center; }
  .modal__panel { border-radius: var(--radius); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .nav, .hero__actions, .modal, .daytabs { display: none !important; }
  .slot__body { display: block !important; }
  body { background: #fff; }
}
