/* /schedule timetable grid. Positions (top/height in px) come from DayGrid in
   schedulegrid.go; this file only paints. Plain CSS on purpose: no Tailwind
   class scanning for inline-computed layouts. */

.sg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 20px; }
.sg-venue { display: inline-flex; align-items: center; background: #fff; color: #0f172a; font-weight: 700; padding: 10px 22px; border-radius: 999px; font-size: 14px; }
.sg-venue:hover { background: #e2e8f0; }
.sg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: #94a3b8; font-size: 12px; }
.sg-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px; border: 1px solid; vertical-align: -1px; }

/* kind colours: shared by legend, cells and phone list */
.k-talk, .sg-talk           { --c-bg: rgba(59,130,246,.10); --c-b: rgba(59,130,246,.30); --c-ink: #93c5fd; }
.k-spotlight, .sg-spotlight { --c-bg: rgba(168,85,247,.14); --c-b: rgba(168,85,247,.40); --c-ink: #d8b4fe; }
.k-lab, .sg-lab             { --c-bg: rgba(16,185,129,.12); --c-b: rgba(16,185,129,.35); --c-ink: #6ee7b7; }
.k-panel, .sg-panel         { --c-bg: rgba(6,182,212,.12);  --c-b: rgba(6,182,212,.38);  --c-ink: #67e8f9; }
.k-lightning, .sg-lightning { --c-bg: rgba(245,158,11,.13); --c-b: rgba(245,158,11,.40); --c-ink: #fcd34d; }
.sg-legend i { background: var(--c-bg); border-color: var(--c-b); }

/* ---- desktop grid ---- */
.sg { display: block; }
.sg-head { display: grid; grid-template-columns: 4rem repeat(var(--rooms), minmax(0, 1fr)); gap: 8px; position: sticky; top: 5.5rem; z-index: 30; background: rgba(8,9,15,.95); backdrop-filter: blur(6px); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.sg-room { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #cbd5e1; padding: 0 4px; }
.sg-body { position: relative; display: grid; grid-template-columns: 4rem 1fr; gap: 8px; margin-top: 8px; }
.sg-axis { position: relative; }
.sg-tick { position: absolute; left: 0; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #93c5fd; transform: translateY(2px); }
.sg-main { position: relative; }
.sg-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--rooms), minmax(0, 1fr)); gap: 8px; pointer-events: none; }
.sg-col { position: relative; }
.sg-col > * { pointer-events: auto; }

.sg-band { position: absolute; left: 0; right: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 5px 14px; border-radius: 10px; font-size: 13px; border: 1px solid rgba(255,255,255,.06); }
.sg-break { background: repeating-linear-gradient(135deg, rgba(148,163,184,.13) 0 10px, rgba(148,163,184,.07) 10px 20px); color: #e2e8f0; border-color: rgba(148,163,184,.35); }
.sg-food { justify-content: flex-end; align-items: flex-start; background: repeating-linear-gradient(135deg, rgba(244,114,182,.13) 0 10px, rgba(244,114,182,.06) 10px 20px); color: #fbcfe8; border-color: rgba(244,114,182,.38); }
.sg-break .sg-btime { color: #94a3b8; }
.sg-food .sg-btime { color: #d48bb0; }
/* Vertical label in the gutter left of the band, so a break or lunch is
   named even where cards cover the band (Lightning Talks over lunch). */
.sg-vlabel { position: absolute; left: -30px; top: 0; bottom: 0; width: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.sg-break .sg-vlabel { background: rgba(148,163,184,.22); color: #e2e8f0; }
.sg-food .sg-vlabel { background: rgba(244,114,182,.26); color: #fbcfe8; }
.sg-plenary { background: linear-gradient(90deg, rgba(59,130,246,.16), rgba(168,85,247,.16)); color: #fff; border-color: rgba(168,85,247,.3); align-items: center; z-index: 3; }
a.sg-plenary:hover { border-color: rgba(168,85,247,.6); }
.sg-btime { font: 600 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #64748b; white-space: nowrap; }
.sg-plenary .sg-btime { color: #93c5fd; }
.sg-btitle { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-bwho { color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sg-cell { position: absolute; left: 0; right: 0; z-index: 5; display: flex; flex-direction: column; gap: 4px; padding: 7px 9px; border-radius: 10px; overflow: hidden; background: linear-gradient(var(--c-bg), var(--c-bg)), #0d0f18; border: 1px solid var(--c-b); box-shadow: 0 0 0 3px #08090f; }
a.sg-cell:hover { border-color: var(--c-ink); }
.sg-tag { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink); white-space: nowrap; }
.sg-tag > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.sg-time { font: 600 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: #64748b; letter-spacing: 0; }
.sg-title { color: #fff; font-weight: 700; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.sg-lab .sg-title, .sg-panel .sg-title { -webkit-line-clamp: 4; }
.sg-people { display: flex; align-items: center; gap: 7px; margin-top: auto; min-width: 0; }
.sg-faces { display: flex; flex: none; }
.sg-face { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid #0d0f18; background: #1e293b; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #94a3b8; flex: none; }
.sg-face + .sg-face { margin-left: -8px; }
.sg-who { color: #94a3b8; font-size: 12px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sg-who b { color: #e2e8f0; font-weight: 600; }

/* Lightning Talks: one block, stretched over four columns (Millennium,
   Studio 4, Studio 6, Studio 3 AB are all free at lunch) so the titles fit. The tag names
   the real room, the width is only layout. */
.sg-cols .sg-lightning { right: auto; width: calc(400% + 24px); }
.sg-lt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 12px; flex: 1; align-content: center; }
.sg-lt { display: flex; align-items: flex-start; gap: 8px; padding: 4px; margin: -4px; border-radius: 6px; min-width: 0; }
.sg-lt:hover { background: rgba(245,158,11,.12); }
.sg-lt-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sg-lt-title { color: #fff; font-weight: 700; font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.sg-lt .sg-who { font-size: 11.5px; -webkit-line-clamp: 1; }

/* Conference day (schedule.js): finished cards fade, running ones glow, a
   red line marks the current minute across axis and rooms. */
.sg-band, .sg-cell { transition: opacity .3s; }
.sg-body .is-past { opacity: .35; }
.sg-body .is-past:hover { opacity: 1; }
.sg-cell.is-now { box-shadow: 0 0 0 3px #08090f, 0 0 0 5px rgba(248,113,113,.7); }
.sg-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid #f87171; z-index: 20; pointer-events: none; box-shadow: 0 0 10px rgba(248,113,113,.6); }
.sg-now::before { content: attr(data-label); position: absolute; left: 0; top: -10px; background: #f87171; color: #08090f; font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 6px; border-radius: 4px; white-space: nowrap; }

.sg-foot { color: #64748b; font-size: 12px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,.05); padding-top: 20px; }

/* ---- phones: list by start time ---- */
.sg-list, .sg-host { display: none; }
@media (max-width: 860px) {
  .sg { display: none; }
  .sg-list { display: flex; flex-direction: column; gap: 18px; }
  .sg-host { display: block; }
  /* one framed box per time slot, so the parallel talks read as one choice */
  .sg-row-slot { border: 1px solid rgba(147,197,253,.22); background: rgba(147,197,253,.035); border-radius: 14px; padding: 12px 10px 12px; }
  .sg-row-slot > .sg-row-room:nth-child(2) { margin-top: 0; }
  .sg-row-time { font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #93c5fd; margin-bottom: 8px; }
  .sg-row-room { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #64748b; margin: 10px 0 4px; }
  .sg-list .sg-band, .sg-list .sg-cell { position: relative; top: auto !important; height: auto !important; flex-wrap: wrap; }
  .sg-list .sg-band { margin-bottom: 4px; justify-content: flex-start; }
  .sg-vlabel { display: none; }
  .sg-list .sg-btitle, .sg-list .sg-bwho { white-space: normal; }
  .sg-list .sg-title { -webkit-line-clamp: unset; }
  .sg-list .sg-people { margin-top: 4px; }
  .sg-lt-grid { grid-template-columns: 1fr; }
  .sg-host { border-radius: 10px; padding: 8px 10px 10px; border: 1px solid rgba(244,114,182,.38); color: #fbcfe8; }
  .sg-host-head { display: flex; gap: 10px; font-size: 13px; padding: 0 2px; }
  .sg-host .sg-row-room { margin-top: 8px; }
}
.sg-plenary .sg-vlabel { display: none; }
/* same content width as the nav bar (max-w-6xl + px-6): logo to Tickets button */
@media (min-width: 640px) { .sg-wrap { padding: 0 24px; } }

/* ---- day outline on the start page (scheduleblock, DayOutline) ---- */
.so { display: flex; flex-direction: column; }
.so-row { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.so-row:last-child { border-bottom: 0; }
.so-time { width: 7.5rem; flex: none; font: 600 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #60a5fa; padding-top: 1px; }
.so-food .so-time { color: #f9a8d4; }
.so-break .so-time { color: #94a3b8; }
.so-body { flex: 1; min-width: 0; }
.so-title { color: #fff; font-weight: 600; font-size: 16px; }
.so-sub { color: #94a3b8; font-size: 14px; margin-top: 2px; }
.so-link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.so-link:hover .so-title { color: #e9d5ff; }
.so-who { display: inline-flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 14px; }
.so-who img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid #08090f; }
.so-who img + img { margin-left: -14px; }
.so-lt-item img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; border: 1.5px solid #08090f; }
.so-lt-item img + img { margin-left: -8px; }
.so-faces { display: flex; flex-wrap: wrap; margin-top: 12px; padding-left: 8px; }
.so-faces img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #08090f; margin-left: -8px; background: #1e293b; transition: transform .15s; }
.so-faces img:hover { transform: translateY(-3px); position: relative; z-index: 1; }
.so-block { padding: 20px 0; }
.so-lt { margin-top: 8px; display: inline-flex; flex-direction: column; gap: 4px; max-width: 100%; }
.so-lt-head { color: #fcd34d; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.so-lt-item { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 13px; line-height: 1.35; }
.so-lt-item > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-lt-faces { display: flex; justify-content: flex-start; width: 34px; flex: none; }
.so-rooms { color: #64748b; font-weight: 500; font-size: 14px; }
.so-lt-item b { color: #fff; font-weight: 600; }
.so-lt-item:hover b { color: #fde68a; }
@media (max-width: 640px) {
  .so-row { flex-direction: column; gap: 6px; }
  .so-lt-item > span:last-child { white-space: normal; }
}

/* ---- talk / speaker modal (static/js/schedule.js) ---- */
.sg-modal { width: min(640px, calc(100vw - 24px)); max-height: min(86vh, 900px); padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: #0d0f18; color: #cbd5e1; box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.sg-modal::backdrop { background: rgba(3,4,10,.72); backdrop-filter: blur(3px); }
.sg-modal[open] { display: flex; flex-direction: column; }
.sg-modal-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; color: #94a3b8; background: rgba(255,255,255,.06); z-index: 2; }
.sg-modal-x:hover { color: #fff; background: rgba(255,255,255,.12); }
.sg-modal-body { overflow-y: auto; overscroll-behavior: contain; padding: 22px 22px 24px; }
.sg-m-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #93c5fd; margin-bottom: 6px; padding-right: 40px; }
.sg-m-title { color: #fff; font-size: 21px; font-weight: 800; line-height: 1.25; padding-right: 40px; }
.sg-m-when { color: #94a3b8; font: 600 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 6px; }
.sg-m-people { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.sg-m-person { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); text-align: left; }
.sg-m-person:hover { border-color: rgba(168,85,247,.6); background: rgba(168,85,247,.08); }
.sg-m-person img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sg-m-person b { display: block; color: #fff; font-size: 14px; }
.sg-m-person span span { display: block; color: #94a3b8; font-size: 12px; }
.sg-m-text { white-space: pre-line; font-size: 14.5px; line-height: 1.6; margin-top: 14px; }
.sg-m-go { display: inline-flex; margin-top: 18px; background: #fff; color: #0f172a; font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 999px; }
.sg-m-go:hover { background: #e2e8f0; }
.sg-m-person-head { display: flex; align-items: center; gap: 16px; }
.sg-m-person-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.sg-m-person-head .sg-m-when { font-family: inherit; font-weight: 400; }
.sg-m-talks { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.sg-m-talk { display: flex; justify-content: space-between; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(59,130,246,.3); background: rgba(59,130,246,.06); color: #fff; font-size: 14px; }
.sg-m-talk:hover { border-color: rgba(59,130,246,.7); }
.sg-m-talk span { color: #94a3b8; font: 600 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
[data-sp] { cursor: pointer; }
.sg-who [data-sp]:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---- collapsible time rows (phone list) ---- */
.sg-row-head { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; margin-bottom: 8px; }
.sg-row-head .sg-row-time { margin-bottom: 0; }
.sg-row-head { align-items: center; }
.sg-chev { width: 16px; height: 16px; flex: none; color: #94a3b8; transition: transform .15s; }
.sg-row-sum { display: none; color: #64748b; font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-row.is-closed .sg-chev { transform: rotate(-90deg); }
.sg-row.is-closed .sg-row-body { display: none; }
.sg-row.is-closed .sg-row-sum { display: block; }
.sg-row.is-closed .sg-row-head { margin-bottom: 0; }
.sg-row.is-closed.sg-row-slot { padding-bottom: 12px; opacity: .75; }

/* change disclaimer on top of the grid and the start-page outline */
.sg-note { border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.08); color: #e2e8f0; border-radius: 10px; padding: 10px 14px; font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.sg-note b { color: #fde68a; font-weight: 700; }
.so-lt-row { margin-top: 6px; }
.so-lt-row a { display: flex; }

/* ---- /my/program: the same grid with marks (partials/schedulegrid.tmpl, pick mode) ---- */
  .pg-open { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; overflow: hidden; color: inherit; }
  .pg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; flex: none; margin-top: 4px; }
  .pg-btns.one { grid-template-columns: 1fr; }
  .pg-btn input { position: absolute; opacity: 0; pointer-events: none; }
  .pg-btn span { display: flex; align-items: center; justify-content: center; height: 26px; border-radius: 7px; font-size: 11px; font-weight: 800; cursor: pointer; border: 1px solid rgba(255,255,255,.18); color: #cbd5e1; background: rgba(8,9,15,.6); white-space: nowrap; }
  .pg-btn span:hover { border-color: rgba(255,255,255,.45); color: #fff; }
  .pg-btn input:focus-visible + span { outline: 2px solid #93c5fd; outline-offset: 1px; }
  .pg-btn input:checked + span { background: #2563eb; border-color: #3b82f6; color: #fff; }
  .pg-alt span { border-color: rgba(252,211,77,.4); color: #fde68a; }
  .pg-alt input:checked + span { background: rgba(251,191,36,.25); border-color: #fcd34d; color: #fff; }
  .sg-band .pg-btns { margin: 0 0 0 auto; width: 9rem; }
  .pg-row { flex-direction: row; align-items: center; gap: 10px; }
  .sg-lightning .pg-btns { width: 16rem; }
  .sg-lt.plan-card { flex-direction: column; align-items: stretch; margin: 0; padding: 5px; border: 1px solid transparent; }
  .sg-lt .pg-open { flex-direction: row; gap: 8px; }
  .plan-card.is-go { border-color: #60a5fa !important; box-shadow: 0 0 0 2px #60a5fa, 0 0 22px rgba(96,165,250,.45) !important; background: rgba(37,99,235,.24) !important; z-index: 6; }
  .plan-card.is-alt { border-color: rgba(252,211,77,.8) !important; box-shadow: 0 0 0 1px rgba(252,211,77,.6) !important; background: rgba(251,191,36,.08) !important; }
@media (max-width: 860px) {
  .sg-list .sg-band .pg-open { flex-basis: 100%; flex-wrap: wrap; }
  .sg-list .sg-band .pg-btns, .sg-list .sg-lightning .pg-btns { width: 100%; margin: 6px 0 0; }
}
