/* TalkWeaver site: one shared stylesheet.
   Tokens follow the original talkweaver.app landing page (ink, muted, line,
   oxford, claret, bg, card), extended with a dark scheme. */

:root {
  --ink: #1c1a16;
  --muted: #62594c;
  --line: #e2dacb;
  --oxford: #0b3a6b;
  --claret: #9f1239;
  --bg: #f7f3ea;
  --card: #fffdf8;
  --code: #efe7d7;
  --badge-bg: #e6eef7;
  --callout-bg: #fbf3df;
  --callout-line: #e9d9a8;
  --callout-ink: #5c460b;
  --soon-bg: #fbe7ec;
  --soon-ink: #8a1032;
  --dev-bg: #fbeed3;
  --dev-ink: #6e4700;
  --btn: #0b3a6b;
  --btn-ink: #ffffff;
  --focus: #c2410c;
  --shadow: rgba(11, 58, 107, 0.35);

  /* Slides in the drawn illustrations keep slide colours in both schemes. */
  --slide-bg: #fcfcfb;
  --slide-ink: #14171f;
  --slide-muted: #5b6270;
  --slide-accent: #1d4ed8;
  --slide-rail: #e8eefb;
  --chrome: #1f2329;
  --chrome-2: #2b3038;
  --chrome-ink: #e8eaee;

  --radius: 12px;
  --measure: 68ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eee7da;
    --muted: #b8ae9b;
    --line: #3b352b;
    --oxford: #9cc3ee;
    --claret: #f28ca4;
    --bg: #15130f;
    --card: #1e1b16;
    --code: #2c2821;
    --badge-bg: #1c2b3d;
    --callout-bg: #29230f;
    --callout-line: #5a4a1f;
    --callout-ink: #ecd9a0;
    --soon-bg: #3d1823;
    --soon-ink: #f8b4c4;
    --dev-bg: #3a2b0e;
    --dev-ink: #f3cf8b;
    --btn: #2f6db3;
    --btn-ink: #ffffff;
    --focus: #fdba74;
    --shadow: rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--oxford); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--card); color: var(--ink);
  padding: 10px 16px; border: 2px solid var(--focus); border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(34px, 5.5vw, 48px); margin: 0 0 16px; letter-spacing: -0.025em; }
h2 { font-size: clamp(25px, 3.4vw, 30px); margin: 0 0 16px; }
h3 { font-size: 20px; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
li { margin: 4px 0; }

code {
  background: var(--code); padding: 1px 6px; border-radius: 4px;
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; overflow-x: auto; margin: 0 0 20px;
  font: 16px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre code { background: none; padding: 0; font-size: inherit; }

kbd {
  display: inline-block;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
  padding: 0 7px; min-width: 1.8em; text-align: center;
  font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

/* ---------- Header and navigation ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .dot, .wordmark .dot { color: var(--claret); }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 2px 4px;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block; padding: 6px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 17px;
}
.site-nav a:hover { background: var(--card); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  background: var(--card); color: var(--oxford); font-weight: 650;
  box-shadow: inset 0 -2px 0 var(--oxford);
}
@media (max-width: 640px) {
  .site-header .bar { padding-top: 12px; padding-bottom: 10px; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: 2px 0; justify-content: space-between; }
  .site-nav a { padding: 6px 4px; font-size: 16px; }
}
/* Six nav items: tighten further so they stay on one line on a phone. */
@media (max-width: 440px) {
  .site-nav a { padding: 6px 2px; font-size: 15px; letter-spacing: -0.005em; }
}

/* ---------- Page structure ---------- */

main { display: block; }

.page-head { padding: 56px 0 24px; }
.page-head .eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--claret);
}
.page-head .eyebrow a { color: inherit; }
.lede { font-size: 21px; line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0; }

section.block { padding: 44px 0; border-top: 1px solid var(--line); }
section.block:first-of-type { border-top: 0; }
.page-head + section.block { border-top: 1px solid var(--line); }

.subnote { color: var(--muted); max-width: var(--measure); margin: -4px 0 24px; }

/* Feature sections: text beside an illustration on wide screens. */
.feature { padding: 40px 0; border-top: 1px solid var(--line); }
.feature-row { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) {
  .feature-row.with-figure { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .feature-row.with-figure.figure-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.feature-text { max-width: var(--measure); }
.feature-text > :last-child { margin-bottom: 0; }

/* ---------- Badges ---------- */

.badge {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--oxford); background: var(--badge-bg);
  padding: 5px 12px; border-radius: 999px;
}
.soon {
  display: inline-block; vertical-align: 0.2em;
  font-size: 14px; line-height: 1.3; font-weight: 700; letter-spacing: 0.01em;
  color: var(--soon-ink); background: var(--soon-bg);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}

/* "In development" badge: same shape as .soon, amber instead of claret. */
.soon.dev { color: var(--dev-ink); background: var(--dev-bg); }

/* ---------- Buttons ---------- */

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 10px;
  font-weight: 650; font-size: 17px; line-height: 1.3; text-decoration: none; text-align: center;
  border: 1px solid var(--line);
}
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn.primary:hover { filter: brightness(1.12); text-decoration: underline; }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.ghost:hover { border-color: var(--oxford); }
.btn small { font-weight: 500; opacity: 0.85; font-size: 15px; }
/* A button that is not available yet: not a link, visibly inactive. */
.btn.is-disabled { background: var(--code); color: var(--muted); border-color: var(--line); border-style: dashed; cursor: not-allowed; }

.note { color: var(--muted); font-size: 16px; margin: 14px 0 0; }

.callout {
  background: var(--callout-bg); border: 1px solid var(--callout-line); border-radius: 10px;
  padding: 14px 18px; color: var(--callout-ink); max-width: var(--measure);
}
.callout a { color: inherit; font-weight: 600; }
.callout p:last-child { margin-bottom: 0; }

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

.hero { padding: 64px 0 40px; text-align: center; }
.hero .wordmark {
  font-size: clamp(44px, 8vw, 64px); line-height: 1.02; margin: 18px 0 12px; letter-spacing: -0.03em;
}
.hero .tagline { font-size: clamp(20px, 2.6vw, 23px); line-height: 1.4; color: var(--muted); margin: 0 auto 28px; max-width: 32ch; }
.hero .note { max-width: 62ch; margin-left: auto; margin-right: auto; }
.hero-mark { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 10px 30px -12px var(--shadow); }

.shot { margin: 40px auto 0; max-width: 1000px; }
.shot img, .figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px -28px var(--shadow); background: var(--card);
}
.shot figcaption, .figure figcaption, .mock-figure figcaption {
  color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 10px; text-align: center;
}
.figure { margin: 0; }
.shot-placeholder {
  display: block; width: 100%; aspect-ratio: 16 / 10;
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--code);
}

/* ---------- Grids and cards ---------- */

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

a.card-link {
  display: flex; flex-direction: column; gap: 6px;
  color: var(--ink); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card-link:hover { border-color: var(--oxford); transform: translateY(-1px); }
a.card-link h2, a.card-link h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; color: var(--oxford); }
a.card-link p { margin: 0; color: var(--muted); }
a.card-link .more { margin-top: auto; padding-top: 8px; font-weight: 650; color: var(--oxford); font-size: 17px; }
a.card-link ul { margin: 4px 0 0; padding-left: 20px; color: var(--muted); }

.icon-tile {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--badge-bg); color: var(--oxford); margin-bottom: 4px;
}
.icon-tile svg { width: 22px; height: 22px; }

.gallery {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px -18px var(--shadow); background: var(--card);
}
.gallery figcaption { color: var(--muted); font-size: 16px; margin-top: 8px; }
.gallery.two { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }

/* ---------- Tools ---------- */

.tool-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
a.card-link.tool-card { gap: 8px; }
.tool-card .tool-shot { margin: 0 0 6px; }
.tool-card .tool-shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
}
.tool-card .tool-shot figcaption { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 6px; }
.tool-card .soon { align-self: flex-start; }
.feature .shot { margin: 28px 0 0; max-width: 1056px; }
.feature .shot figcaption { text-align: left; }
.feature .gallery.two { margin-top: 28px; }

/* ---------- Keyboard lists ---------- */

.keys {
  display: grid; gap: 10px 28px; margin: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
}
.keys div { display: flex; gap: 12px; align-items: baseline; }
.keys dt { flex: 0 0 auto; min-width: 5.2em; margin: 0; }
.keys dd { margin: 0; color: var(--muted); }

/* ---------- What's new ---------- */

.whatsnew-group { padding: 40px 0; border-top: 1px solid var(--line); }
.whatsnew-group > .prose > p { color: var(--muted); }
.whatsnew-item { max-width: var(--measure); }
.whatsnew-item h3 { margin-top: 26px; }
.whatsnew-item p { margin-bottom: 8px; }
.whatsnew-item .see { font-size: 17px; }

.highlight-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; max-width: 760px;
}
.highlight-box h2 {
  font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--claret); margin: 0 0 10px;
}
.highlight-box ul { margin: 0 0 12px; padding-left: 20px; }
.highlight-box p:last-child { margin: 0; }

/* ---------- Download ---------- */

.download-grid {
  display: grid; gap: 20px; margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.download-card { display: flex; flex-direction: column; gap: 12px; }
.download-card h2 { font-size: 22px; margin: 0; }
.download-card p { margin: 0; color: var(--muted); }
.download-card .btn { align-self: flex-start; }

table.support { border-collapse: collapse; width: 100%; max-width: 760px; font-size: 17px; }
table.support th, table.support td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.support th { font-weight: 650; }
table.support thead th { color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; }
.table-scroll { overflow-x: auto; max-width: 100%; }

/* ---------- Steps (guide) ---------- */

ol.steps { padding-left: 1.4em; max-width: var(--measure); }
ol.steps > li { margin: 10px 0; padding-left: 4px; }

/* ---------- Pager between feature pages ---------- */

.pager {
  display: grid; gap: 16px; padding-top: 36px; padding-bottom: 8px; border-top: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.pager a {
  display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); text-decoration: none; color: var(--oxford); font-weight: 650;
}
.pager a span { display: block; color: var(--muted); font-weight: 400; font-size: 15px; }
.pager a.next { text-align: right; }
.pager a:hover { border-color: var(--oxford); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 56px; padding: 32px 0 56px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 16px;
}
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: flex-start; }
.site-footer p { margin: 0 0 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer li { margin: 0; }

/* ---------- Drawn illustrations ---------- */

.mock-figure { margin: 0; }
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: 0 24px 60px -32px var(--shadow);
}
.mock .label {
  font-size: 14px; font-weight: 650; color: var(--muted); letter-spacing: 0.02em; margin: 0 0 6px;
}

/* A slide drawn at 16:9 that scales its own text. */
.slide {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--slide-bg); color: var(--slide-ink);
  border: 1px solid #d9dde5; border-radius: 6px;
  container-type: inline-size;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.slide .s-title { font-weight: 750; font-size: 6.2cqw; line-height: 1.1; letter-spacing: -0.02em; }
.slide .s-sub { font-size: 3cqw; color: var(--slide-muted); margin-top: 1.6cqw; }
.slide .s-body { font-size: 3.2cqw; line-height: 1.35; }

/* Padding and gap on .slide itself use % because cqw there would refer to an ancestor container. */
.slide.title-slide .s-title { font-size: 8cqw; }
.slide.title-slide .s-sub { font-size: 3.6cqw; }
.slide.title-slide { display: flex; flex-direction: column; justify-content: center; padding: 0 8%; }
.slide.title-slide .corner-qr { position: absolute; right: 5cqw; bottom: 6cqw; width: 12cqw; }
.slide.title-slide .corner-qr img { display: block; width: 100%; border: 0; box-shadow: none; border-radius: 0; }
.slide.title-slide::after {
  content: ""; position: absolute; left: 0; right: 12%; bottom: 0; height: 0.8cqw; background: var(--slide-accent);
}

.slide.qr-slide { display: flex; align-items: center; justify-content: center; gap: 6%; padding: 0 8%; }
.slide.qr-slide .qr { width: 34cqw; flex: 0 0 auto; }
.slide.qr-slide .qr img { display: block; width: 100%; border: 0; box-shadow: none; border-radius: 0; background: #fff; }
.slide.qr-slide .s-title { font-size: 5.6cqw; }
.slide.qr-slide .link { font: 3cqw ui-monospace, Menlo, monospace; color: var(--slide-accent); margin-top: 2cqw; }

.slide.countdown { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; }
.slide.countdown .digits { font-size: 17cqw; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.slide.countdown .bar { width: 60%; height: 1.6cqw; border-radius: 1cqw; background: #e3e7ef; overflow: hidden; }
.slide.countdown .bar span { display: block; height: 100%; width: 62%; background: var(--slide-accent); }
.slide.countdown .cap { font-size: 3cqw; color: var(--slide-muted); }

.slide.rail { display: grid; grid-template-columns: 34% 1fr; }
.slide.rail .rail-col { background: var(--slide-rail); display: flex; align-items: center; padding: 0 4cqw; }
.slide.rail .rail-col .s-title { font-size: 5cqw; }
.slide.rail .main-col { display: flex; flex-direction: column; justify-content: center; padding: 0 5cqw; }

.num-list { list-style: none; margin: 0; padding: 0; }
.num-list li {
  display: flex; align-items: center; gap: 2.4cqw; margin: 0; padding: 1.7cqw 0;
  font-size: 3.2cqw; line-height: 1.25;
  border-bottom: 0.25cqw dotted rgba(20, 23, 31, 0.28);
}
.num-list li:last-child { border-bottom: 0; }
.num-list .n {
  flex: 0 0 auto; width: 5.4cqw; height: 5.4cqw; display: grid; place-items: center;
  border: 0.3cqw solid var(--slide-accent); color: var(--slide-accent); border-radius: 0.8cqw;
  font-weight: 750; font-size: 2.9cqw;
}

.slide.timeline { display: flex; flex-direction: column; padding: 6% 6% 4%; }
.slide.timeline .s-title { font-size: 5cqw; }
.tl { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3cqw; margin: auto 0; }
.tl::before { content: ""; position: absolute; left: 1.2cqw; right: 1.2cqw; top: 1.2cqw; height: 0.35cqw; background: var(--slide-ink); opacity: 0.75; }
.tl .stop { position: relative; padding-top: 5cqw; }
.tl .stop::before {
  content: ""; position: absolute; left: 0; top: 0; width: 2.8cqw; height: 2.8cqw; border-radius: 50%;
  background: var(--slide-bg); border: 0.45cqw solid var(--slide-accent);
}
.tl .stop b { display: block; font-size: 4cqw; line-height: 1.2; }
.tl .stop span { display: block; font-size: 3cqw; color: var(--slide-muted); margin-top: 1cqw; line-height: 1.3; }

/* Presenter view chrome */
.pv {
  background: var(--chrome); color: var(--chrome-ink); border-radius: 10px; padding: 12px;
  display: grid; gap: 10px; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  font-size: 14px; line-height: 1.35;
}
.pv .pv-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; color: #b9bec8; }
.pv .clock { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; font-size: 16px; }
.pv .side { display: flex; flex-direction: column; gap: 8px; }
.pv .side .tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #aab0bb; }
.pv .notes {
  grid-column: 1 / 2; background: var(--chrome-2); border-radius: 8px; padding: 10px 12px;
  color: #dfe3ea; font-size: 15px; line-height: 1.5;
}
.pv .notes .tag { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #aab0bb; margin-bottom: 4px; }
.pv .slide { border-color: #3a404a; }

/* Two devices side by side (venue screen) */
.devices { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 560px) { .devices { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); } }
.device .frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--chrome); }
.device .urlbar {
  display: flex; align-items: center; gap: 6px;
  background: #e9edf2; color: #2b3038; font: 13px ui-monospace, Menlo, monospace; padding: 6px 10px;
}
.device .urlbar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c3cad4; box-shadow: 12px 0 0 #c3cad4, 24px 0 0 #c3cad4; margin-right: 30px; }
.device .frame .slide { border: 0; border-radius: 0; }
.device .mini-pv { padding: 8px; display: grid; grid-template-columns: 3fr 1fr; gap: 6px; }
.device .mini-pv .stack { display: flex; flex-direction: column; gap: 6px; }
.device .mini-pv .chip { background: var(--chrome-2); color: #cfd4dc; font-size: 11px; border-radius: 4px; padding: 3px 5px; text-align: center; }
.follows { text-align: center; color: var(--muted); font-size: 15px; font-weight: 650; }
.follows svg { display: block; margin: 0 auto 2px; width: 40px; height: 20px; color: var(--oxford); }
@media (max-width: 559px) { .follows svg { transform: rotate(90deg); } }

/* Dark dialog over a slide (instant slide preview, recording toast) */
.overlay-wrap { position: relative; }
.dialog {
  background: var(--chrome); color: var(--chrome-ink); border-radius: 10px; padding: 14px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6); font-size: 15px;
}
.dialog .d-title { font-weight: 700; margin-bottom: 10px; font-size: 16px; }
.dialog .d-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.dialog .d-btn { background: var(--chrome-2); color: #fff; border-radius: 6px; padding: 5px 10px; font-size: 14px; }
.dialog .d-btn.primary { background: #2f6db3; }
.dialog kbd, .toast kbd { background: #3a404a; color: #fff; border-color: #50576280; font-size: 13px; }

.toast {
  position: absolute; right: 4%; bottom: 7%; max-width: 70%;
  background: var(--chrome); color: var(--chrome-ink); border-radius: 8px;
  padding: 8px 12px; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

/* Phone with a poll */
.phone {
  width: min(260px, 100%); margin: 0 auto; background: #111418; border-radius: 34px; padding: 12px;
  box-shadow: 0 24px 50px -24px var(--shadow);
}
.phone .screen { background: var(--slide-bg); color: var(--slide-ink); border-radius: 24px; padding: 22px 16px 26px; min-height: 380px; }
.phone .p-q { font-weight: 750; font-size: 18px; line-height: 1.25; margin: 6px 0 16px; }
.phone .p-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--slide-muted); }
.poll-opt {
  position: relative; border: 1px solid #d5dae3; border-radius: 10px; padding: 10px 12px; margin: 0 0 10px;
  font-size: 15px; overflow: hidden; display: flex; justify-content: space-between; gap: 8px;
}
.poll-opt .fill { position: absolute; inset: 0 auto 0 0; background: #dbe6fb; z-index: 0; }
.poll-opt span { position: relative; z-index: 1; }
.poll-opt .pct { font-weight: 700; color: var(--slide-accent); }
.poll-opt.picked { border-color: var(--slide-accent); border-width: 2px; }

/* Import mapping list */
.map-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.map-list li { display: grid; grid-template-columns: 90px auto 1fr; gap: 12px; align-items: center; margin: 0; }
.map-list .thumb { aspect-ratio: 16 / 9; background: #fff; border: 1px solid #d9dde5; border-radius: 4px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.map-list .thumb i { display: block; height: 5px; border-radius: 2px; background: #c8ced8; }
.map-list .thumb i.t { background: #1c2230; width: 70%; height: 6px; }
.map-list .thumb i.s { width: 50%; }
.map-list .arrow { color: var(--muted); }
.map-list .layout { font-weight: 650; }
.map-list .layout small { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Text for screen readers only */
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Markup beside the slide ---------- */

.md-example { margin: 0 0 40px; }
.md-example h3 { margin-top: 0; }
.md-example > p { max-width: var(--measure); }
.md-pair {
  display: grid; gap: 20px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.md-pair pre { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.md-pair figure { margin: 0; }
.md-pair img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px -18px var(--shadow); background: var(--card);
}
@media (max-width: 760px) {
  .md-pair { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
