/* Live-slide widgets for the Skill Genius demo deck (favorites + outline). */
.sgd-live { flex: 1; min-height: 0; font-family: 'Manrope', system-ui, sans-serif; }
.sgd-loading, .sgd-error { color: #475569; font-size: 18px; }
.sgd-error a { color: #C85E10; font-weight: 800; }

/* ---------- Favorites ---------- */
.sgd-fav { display: grid; grid-template-columns: 330px 390px 1fr; gap: 28px; height: 100%; min-height: 0; }
.sgd-rail { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 6px; min-height: 0; }
.sgd-rail button {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 76px 1fr; column-gap: 10px;
  background: #fff; border: 1px solid #E5E5E5; border-radius: 12px; padding: 9px 12px;
}
.sgd-rail button:hover { border-color: #CBD5E1; }
.sgd-rail button[aria-current="true"] { border-color: #FF882F; box-shadow: inset 4px 0 0 #FF882F; }
.sgd-ref { grid-row: 1 / 3; align-self: center; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #C85E10; background: rgba(255,136,47,0.12); border-radius: 999px; padding: 4px 8px; text-align: center; }
.sgd-rail strong { font-size: 15px; line-height: 1.25; font-weight: 800; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgd-rail small { font-size: 12.5px; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sgd-stage { display: flex; align-items: flex-start; justify-content: center; min-height: 0; }
.sgd-phone {
  width: 376px; height: 548px; border-radius: 40px; background: #111; padding: 12px; box-sizing: border-box;
  box-shadow: 0 18px 40px rgba(17,17,17,0.22);
}
.sgd-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 29px; background: #fff; display: block; }
.sgd-phone .sgd-screen-note { width: 100%; height: 100%; border-radius: 29px; background: #2B4051; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; box-sizing: border-box; }
.sgd-screen-note b { font-size: 22px; }
.sgd-screen-note span { font-size: 15px; color: rgba(255,255,255,0.75); }

.sgd-info { display: flex; flex-direction: column; min-height: 0; padding-top: 4px; }
.sgd-info .sgd-where { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #C85E10; margin-bottom: 10px; }
.sgd-info h3 { font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 8px; }
.sgd-info .sgd-topic { font-size: 18px; color: #475569; margin-bottom: 18px; }
.sgd-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sgd-pills span { font-size: 13px; font-weight: 800; color: #2B4051; background: rgba(43,64,81,0.08); border-radius: 999px; padding: 5px 11px; }
.sgd-note { background: #FFF6EE; border: 1px solid #FFD2AE; border-radius: 12px; padding: 12px 14px; font-size: 16px; color: #333; margin-bottom: 18px; }
.sgd-note b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #C85E10; margin-bottom: 4px; }
.sgd-nav { display: flex; gap: 10px; margin-top: auto; }
.sgd-nav button, .sgd-nav a {
  all: unset; cursor: pointer; font-size: 15px; font-weight: 800; padding: 10px 16px; border-radius: 10px;
  background: #111; color: #fff;
}
.sgd-nav a { background: transparent; color: #2B4051; border: 1px solid #CBD5E1; }

/* ---------- Outline ---------- */
.sgd-outline { display: grid; grid-template-columns: 1fr 330px; gap: 26px; height: 100%; min-height: 0; }
.sgd-sections { columns: 4; column-gap: 14px; overflow-y: auto; min-height: 0; padding-right: 6px; }
.sgd-section { break-inside: avoid; margin-bottom: 10px; }
.sgd-section h4 { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #C85E10; }
.sgd-section button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 8px; width: 100%;
  font-size: 13.5px; line-height: 1.2; padding: 4px 6px; border-radius: 7px; color: #111;
}
.sgd-section button:hover { background: #fff; }
.sgd-section button[aria-current="true"] { background: #2B4051; color: #fff; }
.sgd-section button em { font-style: normal; font-weight: 800; min-width: 28px; color: #94A3B8; }
.sgd-section button[aria-current="true"] em { color: #FFB27A; }

.sgd-detail { background: #fff; border: 1px solid #E5E5E5; border-radius: 16px; padding: 20px 22px; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; }
.sgd-detail .sgd-where { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #C85E10; margin-bottom: 6px; }
.sgd-detail h3 { font-size: 24px; line-height: 1.15; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.sgd-detail .sgd-arc { font-size: 14px; color: #475569; margin-bottom: 14px; }
.sgd-detail ol { margin: 0; padding-left: 22px; font-size: 16px; line-height: 1.5; }
.sgd-detail li::marker { color: #C85E10; font-weight: 800; }
.sgd-preview-tag { margin-top: auto; padding-top: 14px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #94A3B8; }

/* Presenter view (press P) makes the current slide non-interactive; re-enable the live widgets
   so clicking a favorite there drives the audience screen. */
body[data-bespoke-view=presenter] .sgd-live,
body[data-bespoke-view=presenter] .sgd-live * { pointer-events: auto !important; interactivity: auto !important; }

/* Favorites slide: tall phone, pinned near the top of the slide (width unchanged). */
section.fav .sgd-phone { position: absolute; top: 22px; left: 413px; height: 676px; }

/* "What makes it great" highlights (highlights.json) */
.sgd-great { background: #fff; border: 1px solid #E5E5E5; border-top: 5px solid #FF882F; border-radius: 14px; padding: 16px 18px 14px; margin-bottom: 16px; }
.sgd-great span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #C85E10; margin-bottom: 6px; }
.sgd-great b { display: block; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.sgd-great ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sgd-great li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.4; color: #333; }
.sgd-great li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%;
  background: #2E8B4A; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
section.fav .sgd-info h3 { font-size: 28px; }
section.fav .sgd-info .sgd-topic { margin-bottom: 12px; }
section.fav .sgd-pills { margin-bottom: 14px; }

/* Playback toggles (Audio / Captions / Autoplay videos): icon-only, inline with Prev / Next */
.sgd-nav { align-items: center; }
.sgd-toggles { display: inline-flex; gap: 8px; margin-left: 6px; }
.sgd-nav .sgd-toggle {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #94A3B8; border: 1.5px solid #CBD5E1; padding: 0;
}
.sgd-nav .sgd-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.sgd-nav .sgd-toggle[aria-pressed="true"] { background: #FF882F; border-color: #FF882F; color: #fff; }
.sgd-nav .sgd-toggle[aria-pressed="false"]::after {
  content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 2px; background: #94A3B8;
  transform: rotate(-45deg); border-radius: 2px; box-shadow: 0 0 0 1.5px #fff;
}

/* Start screen: big Skill Genius logo in the phone, nothing loaded */
.sgd-phone .sgd-splash { width: 100%; height: 100%; border-radius: 29px; background: #fff; display: flex; align-items: center; justify-content: center; }
.sgd-phone .sgd-splash img { width: 72%; height: auto; }
.sgd-rail .sgd-start .sgd-ref { background: #FF882F; color: #fff; }

/* No text selection on the phone frame / start screen either */
.sgd-phone, .sgd-phone * { -webkit-user-select: none; user-select: none; }

/* Type pill on the right of each favorite in the list */
.sgd-rail button { grid-template-columns: 76px minmax(0, 1fr) auto; }
.sgd-rail button .sgd-type {
  grid-column: 3; grid-row: 1 / 3; align-self: center; font-style: normal;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
  color: #2B4051; background: rgba(43,64,81,0.08); border-radius: 999px; padding: 3px 8px;
}
.sgd-rail button[aria-current="true"] .sgd-type { background: rgba(255,136,47,0.14); color: #C85E10; }
.sgd-rail button { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 8px; padding: 9px 10px; }
.sgd-rail button .sgd-ref { font-size: 11.5px; padding: 4px 6px; }
.sgd-rail button strong { grid-column: 2; grid-row: 1; font-size: 14.5px; }
.sgd-rail button small { grid-column: 2; grid-row: 2; }
.sgd-rail button .sgd-type { font-size: 10.5px; padding: 3px 7px; }
.sgd-rail button .sgd-type { font-size: 9.5px; font-weight: 800; letter-spacing: .03em; padding: 2px 6px; line-height: 1.4; }
