/* Conference feature — schedule, agenda, speakers, announcements, venue.
   Tokens (navy/blue/ink/radii/shadows) come from css/app.css. */

.conf-shell { display: block; }

/* ------------------------------------------------------------------- hero */

.conf-hero { padding: var(--s-5); }

.conf-hero-kicker {
  margin: 0 0 var(--s-1);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.conf-hero-name {
  margin: 0 0 var(--s-2);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.conf-hero-when { margin: 0; font-weight: 600; color: #fff; }
.conf-hero-where { margin: 2px 0 0; font-size: .88rem; color: rgba(255, 255, 255, .78); }
.conf-hero-note { margin: 12px 0 0; font-size: .86rem; line-height: 1.5; color: rgba(255, 255, 255, .78); }

.conf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.conf-hero-actions .btn.secondary {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
.conf-hero-actions .btn.secondary:hover { background: rgba(255, 255, 255, .24); }

/* ------------------------------------------------------------- sub-tabs */

.conf-tabs { margin-top: var(--s-4); position: sticky; top: calc(var(--banner-h) + var(--appbar-h)); z-index: 12; background: var(--bg); }
.conf-tabs > button { display: inline-flex; align-items: center; gap: 6px; }

.conf-tab-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.conf-tabs > button:not(.active) .conf-tab-count { background: var(--line-strong); color: var(--ink); }

@media (prefers-color-scheme: dark) {
  /* app.css styles the shared `.tabs` active item as `color: var(--navy)` and
     --navy is NOT redefined for dark, so the SELECTED tab renders #002060 on a
     #0e1422 page and reads as the dimmest item in the strip — "Schedule" all
     but disappeared while My Agenda / Speakers stayed bright. Scoped to this
     feature's own strip; networking.css carries the same local patch and the
     root fix belongs in app.css (flagged to the integrator). */
  .conf-tabs > button.active {
    color: var(--ink);
    border-bottom-color: var(--blue);
  }
  .conf-tabs > button.active .conf-tab-count { background: var(--blue); color: #06101f; }
}

/* ---------------------------------------------------------------- days */

.conf-days { margin-bottom: var(--s-4); }

.conf-day {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: 54px;
  padding: 8px var(--s-4);
  line-height: 1.25;
}
.conf-day-dow { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.conf-day-date { font-size: .95rem; font-weight: 700; }
.conf-day-today {
  margin-top: 1px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
}
.conf-day.active .conf-day-today { color: #ffd0b3; }

.conf-day-note {
  margin: 0 0 var(--s-4);
  padding: 10px var(--s-3);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--blue-soft);
  color: var(--ink-2);
  font-size: .85rem;
  font-weight: 600;
}

/* ------------------------------------------------------------- schedule */

.conf-groups { display: flex; flex-direction: column; gap: var(--s-4); }

.conf-group {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
}

.conf-group-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  text-align: right;
}
.conf-group-clock { font-size: .82rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.conf-group-day { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.conf-group-items { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }

@media (prefers-color-scheme: dark) {
  .conf-group-clock { color: var(--blue); }
}

/* --------------------------------------------------------- session card */

.conf-session {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.conf-session.is-tba { border-left-color: var(--line-strong); }

.conf-session-open {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
  border: 0;
  background: none;
  text-align: left;
}
.conf-session-open:hover { background: var(--surface-2); }

.conf-session-title {
  margin: 0 0 2px;
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.conf-session-meta {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}

.conf-session-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-2);
}
.conf-session-tags:empty { display: none; }

.conf-session-speaker {
  font-size: .76rem;
  font-weight: 600;
  color: var(--slate);
}
.conf-session-speaker::before { content: '🎤 '; }

@media (prefers-color-scheme: dark) {
  .conf-session-speaker { color: var(--blue); }
}

.conf-tba-note {
  margin: var(--s-2) 0 0;
  font-size: .76rem;
  font-style: italic;
  color: var(--muted);
}

/* ------------------------------------------------------------- track chip */

.conf-track {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.conf-track.t-safety { background: color-mix(in srgb, var(--red) 15%, var(--surface)); color: #a52626; }
.conf-track.t-policy { background: color-mix(in srgb, var(--navy) 14%, var(--surface)); color: var(--navy); }
.conf-track.t-recruiting { background: color-mix(in srgb, var(--orange) 20%, var(--surface)); color: #9a4a12; }
.conf-track.t-instructor { background: color-mix(in srgb, var(--success) 16%, var(--surface)); color: var(--success); }
.conf-track.t-networking { background: var(--blue-soft); color: var(--slate); }

@media (prefers-color-scheme: dark) {
  .conf-track.t-safety { color: #ff9a9a; }
  .conf-track.t-policy { color: #9dbcff; }
  .conf-track.t-recruiting { color: #ffb182; }
  .conf-track.t-networking { color: #a9c6ee; }
}

/* ------------------------------------------------------------------ star */

.conf-star {
  flex: 0 0 auto;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transition: color .12s ease, transform .12s ease;
}
.conf-star:hover { background: var(--surface-2); color: var(--navy); }
.conf-star.is-on { color: var(--orange); }
.conf-star.is-on:hover { color: #e0692c; }
.conf-star:active { transform: scale(.9); }

/* ----------------------------------------------------------------- sheets */

.conf-sheet { display: block; }

.conf-sheet-when { margin: 0 0 2px; font-weight: 700; color: var(--navy); }
.conf-sheet-where { margin: 0 0 var(--s-3); color: var(--muted); font-size: .88rem; }
.conf-sheet-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-3); }
.conf-sheet-body { margin: var(--s-3) 0; color: var(--ink-2); }
.conf-sheet-h3 { margin: var(--s-4) 0 var(--s-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.conf-sheet-actions { margin-top: var(--s-4); }
.conf-sheet-actions .btn { width: 100%; justify-content: center; }
.conf-sheet-hint { margin: var(--s-3) 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.conf-sheet-speakers, .conf-sheet-sessions { display: flex; flex-direction: column; gap: var(--s-2); }

@media (prefers-color-scheme: dark) {
  .conf-sheet-when { color: var(--blue); }
}

/* --------------------------------------------------------------- speakers */

.conf-speaker-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  text-align: left;
}
.conf-speaker-row:hover { background: var(--surface-2); }

.conf-speaker-text { display: flex; flex-direction: column; min-width: 0; }
.conf-speaker-name { font-weight: 700; font-size: .95rem; color: var(--ink); }
.conf-speaker-sub { font-size: .8rem; color: var(--muted); }
.conf-speaker-sub:empty { display: none; }
.conf-speaker-count { margin-top: 2px; font-size: .72rem; font-weight: 700; color: var(--blue); }

.conf-speaker-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.conf-speaker-name-lg { margin: 0; font-size: 1.1rem; }

.conf-speakers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--s-3);
}

.conf-speaker-card {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0;
  padding: var(--s-3);
  text-align: left;
}
.conf-speaker-card:hover { background: var(--surface-2); }

/* ---------------------------------------------------------- announcements */

.conf-ann { position: relative; }
.conf-ann.is-pinned { border-left: 3px solid var(--orange); }
.conf-ann-pin {
  display: inline-block;
  margin-bottom: var(--s-1);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--orange);
}
.conf-ann-title { margin: 0 0 2px; font-size: 1rem; }
.conf-ann-when { margin: 0 0 var(--s-2); font-size: .76rem; color: var(--muted); }
.conf-ann-body { margin: 0 0 var(--s-2); color: var(--ink-2); }

/* ------------------------------------------------------------------ venue */

.conf-venue-address { margin: 0 0 var(--s-2); color: var(--ink-2); }
.conf-hotel-slot { display: block; }

.conf-reception { border-left: 3px solid var(--orange); }
.conf-reception-kicker {
  display: block;
  margin-bottom: var(--s-1);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
}
.conf-reception-when { margin: 0; font-weight: 700; }
.conf-reception-where { margin: 2px 0 var(--s-3); color: var(--muted); font-size: .88rem; }
.conf-reception-note { margin: var(--s-3) 0; font-size: .85rem; color: var(--ink-2); }

.conf-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px var(--s-3);
  margin: 0 0 var(--s-3);
  font-size: .86rem;
}
.conf-facts dt { color: var(--muted); font-weight: 600; white-space: nowrap; }
.conf-facts dd { margin: 0; color: var(--ink); }

/* ---------------------------------------------------------------- tickets */

.conf-ticket-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.conf-ticket-table th,
.conf-ticket-table td {
  padding: 9px var(--s-2);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.conf-ticket-table thead th {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.conf-ticket-table tbody th { font-weight: 600; }
.conf-ticket-table td.right,
.conf-ticket-table th.right { text-align: right; }
.conf-ticket-table tbody tr:last-child th,
.conf-ticket-table tbody tr:last-child td { border-bottom: 0; }
.conf-ticket-note { margin: var(--s-3) 0 0; font-size: .78rem; color: var(--muted); }

.conf-register { margin-top: var(--s-2); }

/* ------------------------------------------------------------------ misc */

.conf-foot-note {
  margin: var(--s-5) 0 0;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}
.conf-foot-note .link { font-size: .78rem; }

/* ------------------------------------------------------------- >= 700px */

@media (min-width: 700px) {
  .conf-group { grid-template-columns: 92px minmax(0, 1fr); gap: var(--s-4); }
  .conf-hero-name { font-size: 1.45rem; }
  .conf-session-title { font-size: 1rem; }
}

/* ==========================================================================
   Integration pass (BRIEF §14)
   ========================================================================== */

/* The room line becomes a tappable chip that opens the venue floor plan. */
.conf-sheet-where.has-chip {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-2);
}

/* Second hero row: badge / hall / map / check-in. */
.conf-hero-onsite {
  margin-top: var(--s-2);
  flex-wrap: wrap;
}

/* The hero sits on navy, so a .ghost button there needs a light outline. */
.conf-hero .conf-hero-onsite .btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .06);
}
.conf-hero .conf-hero-onsite .btn.ghost:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .7);
}

/* Session-sheet cross-links stack with the same rhythm as the rest of it. */
.conf-sheet > .ckn-block,
.conf-sheet > .qa-entry,
.conf-sheet > .mat-session-block { margin-top: var(--s-3); }

/* The same active-tab patch for the in-app theme switch (Profile > Appearance
   sets data-theme="dark" regardless of the OS setting). */
:root[data-theme="dark"] .conf-tabs > button.active { color: var(--ink); border-bottom-color: var(--blue); }
:root[data-theme="dark"] .conf-tabs > button.active .conf-tab-count { background: var(--blue); color: #06101f; }
