/* Speaker journey page.
   Layout: the speaker's identity down a left rail, as on our website's speaker pages;
   on the right, a path of six stations from "we introduce you" to "your idea travels",
   with the open station's steps beneath. One screen on a laptop; one column on a phone. */
:root {
  --bg: #000;
  --card: #0a0a0a;
  --card-2: #111;
  --line: #1f1f1f;
  --line-2: #2e2e2e;
  --fg: #f2f2f2;
  --fg-2: rgba(242, 242, 242, 0.72);
  --fg-3: rgba(242, 242, 242, 0.5);
  --red: #e4212e;
  --red-deep: #d41c28;
  --red-ink: #fff;
  --ok: #52c08a;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.jr *, .jr *::before, .jr *::after { box-sizing: border-box; }
.jr { min-height: 100%; display: flex; flex-direction: column; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.jr :where(a) { color: inherit; }
.jr :where(button) { font: inherit; color: inherit; }
.jr :focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

/* top bar */
.jr-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px 14px; }
.jr-logo { height: 30px; width: auto; display: block; }
.jr-top-r { display: flex; align-items: center; gap: 8px; }
.jr-ghost { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; color: var(--fg-2); cursor: pointer; text-decoration: none; transition: border-color .2s, color .2s; }
.jr-ghost:hover { border-color: var(--red); color: var(--fg); }

.jr-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 12px 32px; }

/* left rail: who you are */
.jr-rail { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.jr-eyebrow { margin: 0; color: var(--red); font-size: 11px; font-weight: 600; letter-spacing: 0.32em; }
.jr-name { margin: 0; font-size: clamp(2rem, 8vw, 2.7rem); font-weight: 700; line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.jr-name span { display: block; color: var(--red); }
.jr-talk { border-left: 2px solid var(--red); padding: 2px 0 2px 14px; }
.jr-kicker { margin: 0; color: var(--fg-3); font-size: 10.5px; font-weight: 600; letter-spacing: 0.24em; }
.jr-talk-title { margin: 5px 0 0; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
.jr-poster { margin: 0; min-height: 0; }
.jr-poster-frame { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); }
.jr-poster-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the speaker's discount code: the one red box on the page */
.jr-code { background: var(--red-deep); color: #fff; border-radius: 14px; padding: 15px 16px; }
.jr-code p { margin: 0; }
.jr-code-label { font-size: 11.5px; font-weight: 500; opacity: 0.92; }
.jr-code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.jr-code-value { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; user-select: all; }
.jr-code .jr-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.jr-code .jr-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.14); }
.jr-code-note { margin-top: 8px !important; font-size: 12.5px; font-weight: 500; line-height: 1.45; }
.jr-share { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 0; background: none; border: 0; color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.jr-tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #fff; display: grid; place-items: center; flex: none; }
.jr-tick svg { width: 10px; height: 10px; color: var(--red-deep); visibility: hidden; }
.jr-share[aria-pressed="true"] .jr-tick { background: #fff; }
.jr-share[aria-pressed="true"] .jr-tick svg { visibility: visible; }
.jr-code :focus-visible { outline-color: #fff; }

/* right: the journey */
.jr-journey { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.jr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.jr-count { margin: 0; font-size: 0.95rem; color: var(--fg-2); letter-spacing: -0.01em; }
.jr-count b { font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 0.9; font-weight: 700; letter-spacing: -0.05em; color: var(--fg); margin-right: 9px; font-variant-numeric: tabular-nums; }
.jr-progress { min-width: 190px; flex: 0 1 240px; }
.jr-progress p { margin: 0 0 7px; font-size: 12.5px; color: var(--fg-2); display: flex; justify-content: space-between; gap: 12px; }
.jr-progress p b { color: var(--fg); font-weight: 600; }
.jr-bar { height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.jr-bar i { display: block; height: 100%; background: var(--fg); border-radius: 3px; transition: width .4s ease; }

/* the path of stations (laptop only; on a phone the stations stack) */
.jr-path { display: none; }

.jr-panel { display: flex; flex-direction: column; gap: 8px; }
.jr-panel + .jr-panel { margin-top: 34px; }
.jr-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.jr-panel h2 { margin: 0; font-size: clamp(1.2rem, 1.75vw, 1.45rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
.jr-panel-when { margin: 0; color: var(--fg-3); font-size: 12.5px; }

/* a step */
.jr-step { border: 1px solid var(--line); background: var(--card); border-radius: 12px; transition: border-color .2s; }
.jr-step[open] { border-color: var(--line-2); background: var(--card-2); }
.jr-step summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 16px; align-items: center; gap: 3px 12px; padding: 11px 14px; border-radius: 12px; }
.jr-step summary::-webkit-details-marker { display: none; }
.jr-step summary:hover .jr-step-title { color: #fff; }
.jr-glyph { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; grid-row: 1; }
.jr-glyph svg { width: 10px; height: 10px; display: none; }
.jr-step[data-status="done"] .jr-glyph { background: var(--ok); border-color: var(--ok); color: #04130b; }
.jr-step[data-status="done"] .jr-glyph svg { display: block; }
.jr-step[data-status="you"] .jr-glyph { border-color: var(--red); }
.jr-step[data-status="you"] .jr-glyph::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.jr-step[data-status="us"] .jr-glyph { border-color: var(--fg-3); }
.jr-step[data-status="us"] .jr-glyph::after { content: ""; width: 7px; height: 3.5px; border-radius: 0 0 7px 7px; background: var(--fg-3); transform: translateY(1.75px); }
.jr-step-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; min-width: 0; transition: color .2s; }
.jr-step[data-status="soon"] .jr-step-title { color: var(--fg-2); }
.jr-step-when { grid-column: 2; grid-row: 2; color: var(--fg-3); font-size: 12px; }
.jr-step[data-status="done"] .jr-step-when { display: none; }
.jr-pill { grid-column: 3; grid-row: 1; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.jr-step[data-status="done"] .jr-pill { color: var(--ok); padding-right: 0; }
.jr-step[data-status="you"] .jr-pill { background: var(--red); color: var(--red-ink); }
.jr-step[data-status="us"] .jr-pill { border: 1px solid var(--line-2); color: var(--fg-2); }
.jr-step[data-status="soon"] .jr-pill { color: var(--fg-3); padding-right: 0; }
.jr-chev { grid-column: 4; grid-row: 1; width: 15px; height: 15px; color: var(--fg-3); transition: transform .2s; }
.jr-step[open] .jr-chev { transform: rotate(180deg); }
.jr-step-body { padding: 4px 14px 18px 46px; display: flex; flex-direction: column; gap: 14px; }
.jr-step-body p { margin: 0; max-width: 66ch; color: var(--fg-2); font-size: 13.5px; line-height: 1.55; }
.jr-step-body .jr-note { color: var(--fg); font-weight: 500; }
.jr-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jr-btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); background: none; color: var(--fg); transition: border-color .2s, background .2s; }
.jr-btn:hover { border-color: var(--red); }
.jr-btn svg { width: 13px; height: 13px; flex: none; }
.jr-btn.is-main { background: var(--red); border-color: var(--red); color: var(--red-ink); }
.jr-btn.is-main:hover { background: #c81a26; border-color: #c81a26; }
.jr-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.jr-form[hidden] { display: none; }
.jr-input { flex: 1 1 200px; min-width: 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; color: var(--fg); font: inherit; font-size: 13.5px; }
.jr-input:focus { outline: none; border-color: var(--fg-2); }
textarea.jr-input { flex-basis: 100%; min-height: 70px; resize: vertical; }
.jr-mini-poster { width: 120px; height: auto; border-radius: 10px; border: 1px solid var(--line-2); display: block; }
.jr-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.jr-person { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.jr-person b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.jr-person span { display: block; color: var(--fg-2); font-size: 12.5px; line-height: 1.45; margin: 4px 0 8px; }
.jr-person a { font-size: 12.5px; font-weight: 600; text-decoration: none; margin-right: 14px; border-bottom: 1px solid var(--red); padding-bottom: 1px; }
.jr-person a:hover { color: #fff; }

/* your team */
.jr-dialog { border: 1px solid var(--line-2); border-radius: 18px; background: var(--card-2); color: var(--fg); padding: 24px; width: min(440px, calc(100vw - 32px)); }
.jr-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.jr-dialog h2 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -0.03em; line-height: 1.2; }
.jr-dialog > p { margin: 0 0 16px; color: var(--fg-2); font-size: 13.5px; }
.jr-team { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.jr-team li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; overflow-wrap: anywhere; }
.jr-team li.is-empty { border-style: dashed; color: var(--fg-3); }
.jr-x { background: none; border: 0; color: var(--fg-3); cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 2px 4px; }
.jr-x:hover { color: var(--red); }
.jr-dialog-foot { display: flex; justify-content: flex-end; margin-top: 16px; }

/* the team's bar on a speaker's page */
.jr-teambar { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 4px 3px 13px; font-size: 12px; color: var(--fg-3); }
.jr-teambar a, .jr-teambar button { background: none; border: 0; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--fg-2); cursor: pointer; text-decoration: none; }
.jr-teambar a:hover, .jr-teambar button:hover { color: var(--fg); background: var(--line); }
.jr-teambar button[aria-pressed="true"] { background: var(--red); color: var(--red-ink); }

@media (max-width: 1023px) {
  .jr-top { flex-wrap: wrap; }
  .jr-rail { display: contents; }
  .jr-poster-frame { max-width: 180px; }
  .jr-journey { order: 5; margin-top: 18px; }
  .jr-code { order: 9; margin-top: 14px; }
  .jr-step summary { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .jr-chev { display: none; }
  .jr-step-body { padding-left: 14px; }
}

/* laptop and wider: one screen, the path on top, one station open at a time */
@media (min-width: 1024px) {
  .jr { height: 100%; padding-left: max(44px, env(safe-area-inset-left, 0px)); padding-right: max(44px, env(safe-area-inset-right, 0px)); }
  .jr-main { --rail: clamp(250px, 23vw, 340px); min-height: 0; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: clamp(44px, 6vw, 96px); padding-block: 14px 30px; }
  .jr-rail { min-height: 0; gap: clamp(16px, 3vh, 30px); }
  .jr-name { font-size: clamp(2.1rem, 3.2vw, 3.1rem); }
  .jr-poster { flex: 1 1 0; min-height: 110px; max-height: calc(var(--rail) * 1.25); display: flex; }
  .jr-poster-frame { width: auto; height: 100%; max-width: 100%; }
  .jr-journey { min-height: 0; gap: clamp(24px, 4.4vh, 44px); }

  .jr-path { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-top: 4px; }
  .jr-stop { position: relative; background: none; border: 0; padding: 0 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
  .jr-stop-when { font-size: 11.5px; line-height: 16px; color: var(--fg-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .jr-stop-name { font-size: 12.5px; font-weight: 600; color: var(--fg-2); line-height: 1.3; text-wrap: balance; transition: color .2s; }
  .jr-stop-count { margin-top: -12px; font-size: 11.5px; line-height: 1.3; color: var(--fg-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .jr-stop::after { content: ""; position: absolute; top: 46px; left: 50%; width: 100%; height: 0; border-top: 2px solid var(--line-2); z-index: 0; }
  .jr-stop:last-child::after { display: none; }
  .jr-stop.is-complete::after { border-top-color: var(--ok); }
  .jr-stop[data-station="day"]::after { border-top-style: dashed; }
  /* the dot: a ring that fills as the station's steps get done */
  .jr-dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p, 0) * 1%), var(--line-2) 0); box-shadow: 0 0 0 5px var(--bg); transition: transform .2s; }
  .jr-dot::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg); }
  .jr-dot svg { position: relative; width: 13px; height: 13px; color: var(--ok); display: none; }
  .jr-dot i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: none; }
  .jr-stop.is-complete .jr-dot svg { display: block; }
  .jr-stop.has-yours .jr-dot i { display: block; }
  .jr-stop[data-station="day"] .jr-dot { background: var(--red); transform: scale(1.2); }
  .jr-stop[data-station="day"] .jr-dot::before { display: none; }
  .jr-stop:hover .jr-dot { transform: scale(1.08); }
  .jr-stop[data-station="day"]:hover .jr-dot { transform: scale(1.28); }
  .jr-stop[aria-selected="true"] .jr-dot { box-shadow: 0 0 0 5px var(--bg), 0 0 0 6.5px var(--fg); }
  .jr-stop[aria-selected="true"] .jr-stop-name, .jr-stop:hover .jr-stop-name { color: var(--fg); }
  .jr-stop[aria-selected="true"] .jr-stop-when, .jr-stop[aria-selected="true"] .jr-stop-count { color: var(--fg-2); }

  .jr-panels { flex: 1 1 0; min-height: 0; margin-top: 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-right: 4px; }
  .jr-panel { display: none; }
  .jr-panel.is-open { display: flex; }
  .jr-panel + .jr-panel { margin-top: 0; }
  .jr-panel-head { margin-bottom: 14px; }
  .jr-panel-when { display: none; }
  .jr-step summary { grid-template-columns: 20px minmax(0, 1fr) auto auto 16px; padding: 11px 16px; }
  .jr-step-when { grid-column: 3; grid-row: 1; margin-right: 6px; }
  .jr-pill { grid-column: 4; }
  .jr-chev { grid-column: 5; }
  .jr-step-body { padding: 4px 20px 20px 48px; }
}
@media (min-width: 1024px) and (max-height: 700px) {
  .jr-top { padding-block: 14px 8px; }
  .jr-step summary { padding-block: 9px; }
}
@media (prefers-reduced-motion: reduce) { .jr * { transition: none !important; } }

/* ---------- a step's files, and small messages ---------- */
.jr-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.jr-files li { display: flex; gap: 10px; align-items: baseline; }
.jr-files a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.jr-files span { color: var(--fg-3); }
.jr-dialog-error { color: #ff8a8f; font-size: 13px; margin: 0 0 12px !important; }
.jr-top form { margin: 0; }

/* ---------- our team's pages: the roster and the edit page ---------- */
.ad { min-height: 100%; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ad *, .ad *::before, .ad *::after { box-sizing: border-box; }
.ad :where(a) { color: inherit; text-decoration: none; }
.ad :where(button) { font: inherit; color: inherit; }
.ad-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px 14px; }
.ad-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.ad-nav a:hover, .ad-nav a.on { color: var(--fg); }
.ad-nav a.on { border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.ad-nav form { margin: 0; }
.ad-main { max-width: 1240px; margin: 0 auto; padding-block: 28px 80px; }
.ad-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.ad-hero .jr-eyebrow { margin-bottom: 12px; }
.ad-h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; text-wrap: balance; }
.ad-sum { margin: 0; color: var(--fg-2); font-size: 13.5px; }
.ad-sum b { color: var(--fg); font-size: 1.15rem; margin-right: 3px; }
.ad-flash { margin: 0 0 20px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(82, 192, 138, 0.5); color: var(--ok); font-size: 13.5px; max-width: 1240px; margin-inline: auto; }
.ad-flash.is-err { border-color: rgba(228, 33, 46, 0.6); color: #ff8a8f; }
.ad-group + .ad-group { margin-top: 44px; }
.ad-h2 { margin: 0 0 16px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.ad-h3 { margin: 26px 0 10px; font-size: 13px; font-weight: 600; color: var(--fg); }
.ad-h3 span { color: var(--fg-3); font-weight: 400; margin-left: 8px; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.ad-card { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s; }
.ad-card:hover { border-color: var(--line-2); }
.ad-card-main { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; }
.ad-poster { width: 92px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); display: block; background: var(--card-2); }
.ad-card-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-top: 2px; }
.ad-card-text b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ad-talk { color: var(--fg-2); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-progress { appearance: none; -webkit-appearance: none; width: 100%; height: 3px; border: 0; border-radius: 3px; background: var(--line-2); margin-top: 6px; overflow: hidden; }
.ad-progress::-webkit-progress-bar { background: var(--line-2); }
.ad-progress::-webkit-progress-value { background: var(--ok); }
.ad-progress::-moz-progress-bar { background: var(--ok); }
.ad-meta { color: var(--fg-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.ad-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ad-chip { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); white-space: nowrap; }
.ad-chip.is-ours { background: var(--red); border-color: var(--red); color: #fff; }
.ad-chip.is-note { border-color: var(--fg-2); color: var(--fg); }
.ad-edit { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--fg-2); border-bottom: 1px solid var(--line-2); }
.ad-edit:hover { color: var(--fg); border-color: var(--red); }
.ad-add { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 20px; }
.ad-add summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--fg-2); }
.ad-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-top: 16px; }
.ad-form label, .ad-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--fg-3); min-width: 0; }
.ad-form label { flex: 1 1 200px; }
.ad-form .jr-input, .ad-fields .jr-input { flex: none; width: 100%; }
.ad-check { flex-direction: row !important; align-items: center; gap: 8px !important; color: var(--fg-2) !important; font-size: 13px !important; }
.ad-check input { accent-color: var(--red); width: 15px; height: 15px; }
.ad-sec { margin-top: 48px; }
.ad-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.ad-fields .is-wide { grid-column: 1 / -1; }
.ad-fields textarea, .ad-sec > textarea { min-height: 84px; width: 100%; }
.ad-poster-row { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.ad-poster-big { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); }
.ad-hint { margin: 8px 0 0; color: var(--fg-3); font-size: 12.5px; }
.ad-steps { display: flex; flex-direction: column; gap: 6px; }
.ad-step { display: grid; grid-template-columns: minmax(180px, 1.1fr) 130px minmax(0, 2fr); gap: 8px 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--card); }
.ad-step[data-status="us"] { border-color: rgba(228, 33, 46, 0.55); }
.ad-step .jr-input { flex: none; width: 100%; padding-block: 7px; font-size: 13px; }
.ad-step .is-link { grid-column: 3; }
.ad-step-title { font-size: 13.5px; font-weight: 600; display: flex; flex-direction: column; gap: 1px; }
.ad-step-title span { color: var(--fg-3); font-size: 11.5px; font-weight: 400; }
.ad-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ad-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.ad-list li.is-handled { opacity: 0.55; }
.ad-list li span { color: var(--fg-3); font-size: 12px; margin-left: 6px; }
.ad-list li p { margin: 6px 0 0; color: var(--fg-2); max-width: 80ch; white-space: pre-wrap; }
.ad-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: 14px 0; margin-top: 28px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.ad-save .jr-btn { padding: 10px 28px; }
.ad-linkbox { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font-size: 13px; overflow-wrap: anywhere; user-select: all; margin: 12px 0 0; }
.ad-linkbox span { flex: 1; min-width: 0; }
.ad-narrow { max-width: 460px; }
.ad .jr-actions { margin-top: 14px; }
.ad .jr-actions form { margin: 0; }
@media (max-width: 720px) {
  .ad-step { grid-template-columns: minmax(0, 1fr) 120px; }
  .ad-step .jr-input:not(select) { grid-column: 1 / -1; }
}

/* the portraits a speaker has sent us */
.jr-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.jr-gallery a { display: block; width: 84px; height: 105px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); transition: border-color .2s; }
.jr-gallery a:hover { border-color: var(--fg-2); }
.jr-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ad-teamfiles { grid-column: 3; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ad-teamfiles .ad-hint { margin: 0; }
.ad-add + .ad-add { margin-top: 0; }
.ad-add .ad-form label { flex: 1 1 240px; }
@media (max-width: 720px) { .ad-teamfiles { grid-column: 1 / -1; } }

.ad-rule { margin: -8px 0 6px; }
.jr-share:disabled { cursor: default; opacity: 0.85; }

/* ---------- the front door: sign-in, "check your inbox" and error pages ---------- */
.gate { min-height: 100%; max-width: 620px; margin: 0 auto; padding: 56px max(20px, env(safe-area-inset-right, 0px)) 56px max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.gate *, .gate *::before, .gate *::after { box-sizing: border-box; }
.gate-logo { height: 34px; width: auto; align-self: flex-start; margin-bottom: 28px; }
.gate-h1 { margin: 0; font-size: clamp(2rem, 5.2vw, 3.1rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.045em; text-wrap: balance; }
.gate-h1 span { color: var(--red); }
.gate-lead { margin: 0; color: var(--fg-2); font-size: 15.5px; line-height: 1.55; max-width: 54ch; }
.gate-lead strong { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.gate-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.gate-form .jr-input { flex: 1 1 240px; padding: 12px 14px; font-size: 15px; border-radius: 999px; }
.gate-form .jr-btn { padding: 12px 22px; font-size: 14.5px; }
.gate-small { margin: 0; color: var(--fg-3); font-size: 12.5px; line-height: 1.55; max-width: 62ch; }
.gate a { color: var(--fg-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.gate a:hover { color: var(--fg); border-color: var(--red); }
.gate a.jr-btn { border: 1px solid var(--line-2); align-self: flex-start; color: var(--fg); }

/* the red box on a speaker's page that opens the TEDx speaker guidelines */
.jr-guide { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--red-deep); color: #fff; border-radius: 14px; padding: 13px 16px; text-decoration: none; transition: background .2s; }
.jr-guide:hover { background: #bf1823; }
.jr-guide b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.jr-guide span { display: block; font-size: 12px; font-weight: 500; line-height: 1.4; margin-top: 2px; }
.jr-guide svg { width: 16px; height: 16px; flex: none; }
.jr-guide:focus-visible { outline-color: #fff; }

/* the guidelines page */
.gd { max-width: 860px; margin: 0 auto; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 80px max(20px, env(safe-area-inset-left, 0px)); }
.gd *, .gd *::before, .gd *::after { box-sizing: border-box; }
.gd-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px 36px; }
.gd-top a { text-decoration: none; }
.gd h1 { margin: 12px 0 14px; font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; text-wrap: balance; }
.gd h1 span { color: var(--red); }
.gd-lead { margin: 0 0 8px; color: var(--fg-2); font-size: 15.5px; line-height: 1.55; max-width: 62ch; }
.gd h2 { margin: 44px 0 14px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.gd ol, .gd ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gd li { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 16px; color: var(--fg-2); font-size: 14px; line-height: 1.55; }
.gd li strong { color: var(--fg); font-weight: 600; }
.gd li.is-key { border-color: var(--red); }
.gd-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gd-links a { color: var(--fg); }
