main.content:has(.talk-shell) { padding-top: 24px; }
.talk-shell { width: min(100%, 680px); margin-inline: auto; padding-block: 12px 28px; }
/* Call-state visibility is authoritative, including when a view changes. */
.talk-shell [hidden] { display: none !important; }
.talk-intro h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; letter-spacing: -.04em; margin: 0 0 16px; }
/* Each task already has its own heading. Keep one accessible page h1 without
   repeating the Explore introduction above Start or Freestyle. */
.talk-enhanced:has(#start:not([hidden]), #freestyle:not([hidden])) .talk-intro h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.talk-intro .sub { font-size: 16px; margin-bottom: 18px; }
.talk-preview { background: var(--accent-wash); color: var(--accent-ink); padding: 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.talk-modes { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.talk-mode-options { display: flex; align-items: center; padding: 4px; border: 1px solid var(--rule-2); border-radius: 999px; background: var(--paper-2); }
.talk-modes a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 999px; }
.talk-mode-options a { padding: 8px 20px; color: var(--ink); }
.talk-mode-options a[aria-current] { background: var(--accent-wash); color: var(--accent); }
.talk-start-link { gap: 6px; padding: 8px 16px; background: var(--accent); color: white; }
.talk-start-link:hover, .talk-start-link[aria-current] { background: var(--accent-ink); color: white; }
.talk-modes a:focus-visible, .talk-shell summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.talk-session:has(> :not([hidden]):not(:empty)) { margin-bottom: 16px; }
.talk-deck { height: var(--talk-deck-height, clamp(400px, calc(100svh - 250px), 650px)); overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: thin; border-radius: 24px; }
.talk-deck:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.talk-card { min-height: 100%; scroll-snap-align: start; display: flex; flex-direction: column; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--rule); border-radius: 24px; background: var(--accent-wash); margin-bottom: 14px; overflow-wrap: anywhere; }
.talk-card:nth-child(even) { background: var(--paper-2); }
.talk-card-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; }
.talk-card-body { flex: 1; padding-block: 24px; }
.talk-card h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.16; letter-spacing: -.035em; font-weight: 700; margin: 0; }
.talk-card h2:focus { outline: none; }
.talk-card-body p { margin-top: 16px; color: var(--muted); }
.talk-card-footer { border-top: 1px solid var(--rule-2); padding-top: 16px; }
.talk-card-footer p { margin-bottom: 12px; color: var(--ink-2); font-size: 14px; }
.talk-card-privacy { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.talk-card-footer .btn { width: 100%; min-height: 46px; }
.talk-card-footer .btn:disabled { opacity: 1; background: var(--paper-3); color: var(--muted); border: 1px solid var(--rule-2); cursor: not-allowed; }
.talk-next { margin-top: 10px; gap: 8px; }
.talk-empty { justify-content: center; gap: 20px; }
.talk-empty .btn { align-self: start; }
.talk-more { padding: 24px; text-align: center; scroll-snap-align: start; }
.talk-composer, .talk-activity { border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.talk-composer { background: var(--paper); }
.talk-composer > summary { cursor: pointer; font-weight: 700; min-height: 44px; }
.talk-enhanced .talk-composer { margin-top: 0; }
.talk-enhanced .talk-composer[open] > summary { display: none; }
.talk-composer h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.16; letter-spacing: -.035em; margin: 0 0 10px; }
.talk-composer-lead { color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.talk-composer fieldset { border: 0; min-width: 0; padding: 0; margin: 0; }
.talk-composer .field { margin-top: 14px; margin-bottom: 14px; }
.talk-composer .field:first-child { margin-top: 0; }
.talk-composer textarea, .talk-composer select { width: 100%; min-height: 46px; }
.talk-composer textarea { padding: 14px; font-size: 18px; line-height: 1.45; resize: vertical; }
.talk-field-hint { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.talk-options { margin-block: 14px; padding: 12px 16px; border: 1px solid var(--rule-2); border-radius: var(--radius-sm); background: var(--paper-2); }
.talk-options > summary { min-height: 44px; cursor: pointer; font-weight: 600; }
.talk-options-defaults { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 400; margin-top: 4px; }
.talk-options[open] > summary { margin-bottom: 18px; }
.talk-composer [data-host-submit] { width: 100%; min-height: 48px; }
.talk-freestyle-link { display: block; text-align: center; min-height: 44px; padding-top: 16px; color: var(--accent); font-size: 14px; font-weight: 600; }
.talk-activity { background: var(--accent-wash); overflow-wrap: anywhere; margin-top: 0; margin-bottom: 12px; }
.talk-activity h2 { font-size: 24px; }
.talk-activity p { margin-block: 12px; }
.talk-freestyle { margin-top: 24px; padding: clamp(24px, 5vw, 44px); border: 1px solid var(--rule-2); border-radius: 24px; background: var(--accent-wash); }
.talk-enhanced .talk-freestyle { margin-top: 0; }
.talk-freestyle h2 { margin-block: 24px 12px; font-size: 40px; letter-spacing: -.035em; }
.talk-freestyle p { margin-block: 8px 24px; font-size: 17px; line-height: 1.5; }
.talk-freestyle form { display: grid; gap: 16px; }
.talk-freestyle select, .talk-freestyle button { width: 100%; min-height: 48px; }
.talk-freestyle .talk-freestyle-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.talk-activity > button { min-height: 44px; }
#talk-feedback:not(:empty) { padding: 12px 0; color: var(--danger); }
.talk-join { display: grid; gap: 8px; }
.talk-join label { font-size: 13px; }
.talk-join select { width: 100%; min-height: 44px; }
.talk-inbox { list-style: none; padding: 0; margin-top: 20px; }
.talk-inbox li { border-top: 1px solid var(--rule-2); padding-block: 16px; }
.talk-inbox .btn { margin: 8px 8px 0 0; min-height: 44px; }
.talk-consent-note { font-size: 13px; color: var(--muted); line-height: 1.5; text-align: center; margin: 16px 12px 0; }
.talk-audio-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.talk-audio-controls button { min-height: 44px; }
#talk-report > summary { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .talk-shell { padding-top: 0; }
  .talk-intro h1 { margin-bottom: 12px; }
  .talk-modes { margin-bottom: 14px; }
  .talk-mode-options a { padding-inline: 14px; }
  .talk-start-link { padding-inline: 13px; }
  .talk-card-body { padding-block: 20px; }
  .talk-composer { padding: 20px; }
}
@media (max-width: 360px) {
  .talk-mode-options a { padding-inline: 10px; font-size: 13px; }
  .talk-start-link { padding-inline: 11px; font-size: 13px; }
  .talk-card { padding: 18px; }
  .talk-card h2 { font-size: 25px; }
}

/* Immersive discovery: the scene, not a surrounding card, is the viewport.
   Only enhanced Talk pages change the shared masthead; other routes and the
   no-JavaScript fallback retain their normal document layout. */
body:has(.talk-enhanced) { background: #080e1b; }
body:has(.talk-enhanced) .site { min-height: 100dvh; }
body:has(.talk-enhanced) main.content { padding: 0; }
body:has(.talk-enhanced) main.content > .container { max-width: none; padding: 0; }
body:has(.talk-enhanced) .site-foot { display: none; }
body:has(.talk-enhanced) .nav-secondary .site-foot { display: block; margin: 0; padding: 16px 0; }
body:has(.talk-enhanced) .nav { position: fixed; inset: 0 0 auto; z-index: 50; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
body:has(.talk-enhanced) .nav-bar { background: linear-gradient(#080e1bd9, #080e1b00); border: 0; }
body:has(.talk-enhanced) .nav-bar-inner { height: 60px; min-height: 60px; padding: 8px 20px; max-width: none; }
body:has(.talk-enhanced) .brand, body:has(.talk-enhanced) .nav-bell,
body:has(.talk-enhanced) .nav-toggle, body:has(.talk-enhanced) .nav-login { color: #fff; }
body:has(.talk-enhanced) .brand .word { font-size: 20px; }
body:has(.talk-enhanced) .nav-toggle { min-height: 44px; background: #0c1727aa; border-color: #ffffff40; }
body:has(.talk-enhanced) .nav-toggle-bar, body:has(.talk-enhanced) .nav-toggle-bar::before,
body:has(.talk-enhanced) .nav-toggle-bar::after { background: #e5ecfa; }
body:has(.talk-enhanced) .nav[data-open] .nav-toggle-bar { background: transparent; }
body:has(.talk-enhanced) .nav-sections { position: fixed; inset: auto 0 0; background: #080e1be8; backdrop-filter: blur(16px); border-top: 1px solid #ffffff20; padding-bottom: env(safe-area-inset-bottom); }
body:has(.talk-enhanced) .nav-sections-inner { justify-content: center; }
body:has(.talk-enhanced) .nav-primary { width: min(100%, 560px); justify-content: space-around; }
body:has(.talk-enhanced) .nav-primary a { min-height: 58px; display: inline-flex; align-items: center; padding-inline: 20px; color: #d6ddea; font-size: 13px; }
body:has(.talk-enhanced) .nav .nav-primary .nav-link { background: transparent; color: #c9d3e5; }
body:has(.talk-enhanced) .nav .nav-primary .nav-link.is-active { color: white; }
body:has(.talk-enhanced) .nav-primary .nav-link::before { display: none; }
body:has(.talk-enhanced) .nav-primary .nav-new-debate { color: #fff; }
body:has(.talk-enhanced) .nav-primary .nav-new-debate::before { display: block; content: '+'; background: #315cff; color: white; border-radius: 10px; width: 30px; height: 30px; margin-right: 8px; text-align: center; font-size: 23px; line-height: 28px; }
body:has(.talk-enhanced) .nav-primary a::after { background: #8da9ff; }
body:has(.talk-enhanced) .nav-secondary { background: var(--paper); max-height: calc(100dvh - 150px); overflow-y: auto; }
body:has(.talk-enhanced) .verify-nudge,
body:has(.talk-enhanced) .flash-area { position: fixed; z-index: 35; top: 120px; left: 16px; right: 16px; width: auto; max-width: 600px; margin: 0 auto; }
body:has(.talk-enhanced) .flash-area { top: 170px; }
.talk-enhanced { width: 100%; margin: 0; padding: 0; }
.talk-enhanced .talk-intro h1, .talk-enhanced .talk-intro .sub,
.talk-enhanced > .talk-consent-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.talk-enhanced .talk-preview { position: fixed; z-index: 34; top: 180px; left: 16px; right: 16px; max-width: 600px; margin: auto; }
.talk-enhanced .talk-modes { position: fixed; z-index: 40; top: 66px; left: 20px; right: 20px; max-width: 640px; margin: 0 auto; }
.talk-enhanced .talk-mode-options { background: #080e1b99; border-color: #ffffff30; backdrop-filter: blur(12px); }
.talk-enhanced .talk-mode-options a { color: #dce3ef; }
.talk-enhanced .talk-mode-options a[aria-current] { background: #ffffff20; color: #fff; }
.talk-enhanced .talk-start-link { background: #315cff; }
.talk-enhanced .talk-deck { position: relative; height: 100vh; height: 100dvh; border-radius: 0; scrollbar-width: none; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; }
.talk-enhanced .talk-deck::-webkit-scrollbar { display: none; }
.talk-enhanced .talk-deck.talk-long-content { scroll-snap-type: none; }
.talk-enhanced .talk-card { position: relative; isolation: isolate; min-height: 100%; margin: 0; border: 0; border-radius: 0; background: #080e1b; color: white; padding: 220px max(24px, calc((100vw - 640px) / 2)) calc(76px + env(safe-area-inset-bottom)); scroll-snap-stop: always; }
.talk-art { display: none; }
.talk-enhanced .talk-art { display: block; position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.talk-enhanced .talk-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #080e1b30 10%, #080e1b22 25%, #080e1bbd 55%, #080e1bfa 100%); }
.talk-enhanced .talk-card-meta { color: #e0e7f4; margin-top: auto; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.talk-enhanced .talk-card-body { flex: 0; padding: 18px 0 22px; }
.talk-enhanced .talk-card h2 { color: white; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.09; letter-spacing: -.045em; text-wrap: pretty; text-shadow: 0 2px 18px #0004; }
.talk-enhanced .talk-kind { margin-bottom: 14px; background: #ffffff18; color: #f0f4fc; border: 1px solid #ffffff30; font-size: 11px; }
.talk-enhanced .talk-card-body p { color: #dbe2ed; line-height: 1.5; }
.talk-enhanced .talk-card-footer { border: 0; padding: 0; }
.talk-enhanced .talk-card-footer p { color: #e4eaf4; font-size: 14px; }
.talk-enhanced .talk-card-privacy { color: #c4cede; }
.talk-enhanced .talk-card-footer .btn-primary { background: #315cff; color: white; border: 0; min-height: 52px; border-radius: 14px; }
.talk-enhanced .talk-card-footer .btn:disabled { background: #26344d; color: #b9c6dc; }
.talk-enhanced .talk-join { grid-template-columns: 1fr 1fr; align-items: center; }
.talk-enhanced .talk-join label { grid-column: 1; }
.talk-enhanced .talk-join select { grid-row: 2; grid-column: 1; background: #101c30; color: white; border: 1px solid #ffffff40; border-radius: 12px; min-height: 52px; }
.talk-enhanced .talk-join button { grid-row: 2; grid-column: 2; }
.talk-enhanced .talk-next { background: transparent; border: 0; color: #cad4e5; font-size: 12px; margin-top: 8px; min-height: 44px; }
.talk-enhanced .talk-card-footer .talk-next:hover { background: #ffffff10; color: white; }
.talk-enhanced .talk-next span { transition: transform 180ms cubic-bezier(.2,0,0,1); }
.talk-enhanced .talk-next:hover span { transform: translateY(-3px); }
.talk-enhanced .talk-more { min-height: 100%; display: grid; place-items: center; padding-bottom: 90px; }
.talk-enhanced .talk-empty { justify-content: center; }
.talk-enhanced .talk-session:has(#talk-report:not([hidden]), #talk-feedback:not(:empty)) { position: fixed; z-index: 45; inset: 120px 16px auto; max-width: 640px; max-height: calc(100dvh - 200px); margin: 0 auto; padding: 12px 20px; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 20px 80px #0008; }
.talk-enhanced .talk-session:has(#talk-activity:not([hidden]), #talk-audio:not([hidden])) { position: fixed; z-index: 45; inset: 120px 16px calc(76px + env(safe-area-inset-bottom)); max-width: 640px; max-height: none; margin: 0 auto; padding: 20px; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 20px 80px #0008; }
.talk-enhanced .talk-session:has(#talk-activity:not([hidden]), #talk-audio:not([hidden])) ~ .talk-deck { visibility: hidden; }
.talk-enhanced .talk-composer, .talk-enhanced .talk-freestyle { width: min(calc(100% - 32px), 640px); margin: 210px auto 90px; }
.talk-enhanced .talk-freestyle { background: linear-gradient(#080e1b66, #080e1bf0), url('talk-art/society.webp') center / cover; color: white; border-color: #ffffff30; }
.talk-enhanced .talk-freestyle h2, .talk-enhanced .talk-freestyle label { color: white; }
.talk-enhanced .talk-freestyle .talk-freestyle-note { color: #ced8e9; }
.talk-enhanced a:focus-visible, .talk-enhanced button:focus-visible,
.talk-enhanced select:focus-visible, .talk-enhanced .talk-deck:focus-visible { outline: 3px solid #a4bdff; outline-offset: -3px; }
@media (min-width: 900px) {
  .talk-enhanced .talk-art { object-position: center 45%; }
  .talk-enhanced .talk-card::after { background: linear-gradient(90deg, #080e1bb0, #080e1b35, #080e1bb0), linear-gradient(0deg, #080e1bf5, #080e1b10); }
}
@media (max-width: 380px) {
  body:has(.talk-enhanced) .brand .word { display: none; }
  body:has(.talk-enhanced) .brand .mark { display: grid; }
  .talk-enhanced .talk-modes { left: 12px; right: 12px; }
  .talk-enhanced .talk-card { padding-inline: 20px; }
  .talk-enhanced .talk-card h2 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .talk-enhanced *, .talk-enhanced *::before, .talk-enhanced *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (max-height: 650px) {
  .talk-enhanced .talk-card { padding-top: 140px; }
  .talk-enhanced .talk-card h2 { font-size: 27px; }
  .talk-enhanced .talk-card-body { padding-block: 10px 14px; }
  .talk-enhanced .talk-kind { margin-bottom: 8px; }
}
