/* ------------------------------------------------------------------
   Showcase: the Rideau app on a big screen, as a scroll-driven tour under
   the video hero (V7 Go). Rendered into <section id="showcase"> by
   showcase.js.

   .sc--tour (768px and wider, motion allowed): one pinned stage. A soft teal
   glow behind; the chapter headline top left and five chapter labels top
   right (Discover, Ask, Watch, Research, Write); the app frame filling the
   rest, its screen swapping by chapter.
   .sc--stack (phones, reduced motion, no GSAP): each chapter stacks as its
   headline, a short body and its finished screen. Nothing pins.

   The app inside the frame is the real app in its dark theme, laid out
   from app.rideaulabs.com and coloured with rideau-app's dark tokens
   (app/studio-admin.css, December 2, 2026): #111214 page, #1b1c1f panels,
   #17181b sidebar, Archivo with Geist Mono for times. Teal marks
   jurisdictions and the active tab; red is only for live and send
   (review, December 2, 2026). Borders use the app's #2c2d31 input tone so
   the hairlines read at screenshot size.
   In the tour the app is drawn at a fixed 1280 by 720 and scaled to the
   frame, so its layout never changes with the window and the whole frame
   fits on screen.

   Each frame is one picture: role="img" with a label, contents aria-hidden.
   Text pairs (WCAG), app: #f4f4f5 on #1b1c1f 15.6, on #111214 17.4;
   #d4d4d8 on #1b1c1f 12.2; #a1a1aa on #1b1c1f 6.9, on #17181b 7.2, on
   #25262a 6.1; #7fc4cf on #1b1c1f 9.0; #f26a6e on #1b1c1f 5.5; white on
   #c92a2f 5.45. Tour text on the dark page as before.
   ------------------------------------------------------------------ */

.sc {
  position: relative;
  font-family: var(--font-sans);
  color: var(--ink-100);
  overflow-x: clip;            /* the plate and the tilt never cause sideways scroll; the glow may run on downward */
}
.sc *, .sc *::before, .sc *::after { box-sizing: border-box; }
.sc :where(p, ol, ul, h2) { margin: 0; }
.sc :where(ol, ul) { padding: 0; list-style: none; }

/* --- the frame and the app inside it ---------------------------------- */
.sc-frame {
  position: relative;
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg, 16px);
  background-color: #111214;
  box-shadow: var(--frame-highlight), 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.sc-app {
  /* the app's own tokens (rideau-app app/studio-admin.css, dark) */
  --a-bg: #111214;
  --a-card: #1b1c1f;
  --a-fg: #f4f4f5;
  --a-body: #d4d4d8;
  --a-muted: #25262a;
  --a-muted-fg: #a1a1aa;
  --a-border: #2c2d31;
  --a-side: #17181b;
  --a-side-accent: #25262a;
  --a-side-border: #2c2d31;
  --a-red: #c92a2f;
  --a-red-mark: #e8383d;
  --a-red-text: #f26a6e;
  --a-logotype: #a8a29e;
  --a-accent: #7fc4cf;
  --corpus-parliament: #e4e4e7;
  --corpus-lobbying: #fbbf24;
  --corpus-contracts: #4ade80;
  --corpus-news: #7fc4cf;
  --corpus-regulatory: #a8a29e;

  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  height: 100%;
  background-color: var(--a-bg);
  font-size: 13px;
  line-height: 1.45;
  color: var(--a-fg);
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
}
.sc-app :where(b, strong) { font-weight: 600; }
.sc-icon { flex: 0 0 auto; width: 14px; height: 14px; display: block; }
.sc-icon * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--a-muted-fg); white-space: nowrap; }
.sc-muted { color: var(--a-muted-fg); font-size: 11.5px; }
.sc-pad { padding-left: 20px; padding-right: 20px; }

/* Sidebar */
.sc-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 8px 8px;
  border-right: 1px solid var(--a-side-border);
  background-color: var(--a-side);
  overflow: hidden;
}
.sc-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 48px;
  margin: 0 -8px 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--a-fg);
}
/* the app's brand wash: a faint red glow along the bottom of the header */
.sc-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: radial-gradient(60% 100% at 25% 100%, rgba(232, 56, 61, 0.22), rgba(232, 56, 61, 0) 70%);
}
.sc-brand svg { width: 14px; height: 14px; }
.sc-labs { font-weight: 300; color: var(--a-logotype); }
.sc-nav-item,
.sc-sub-item {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 27px;
  padding: 0 8px 0 11px;
  border-radius: 9px;
  font-weight: 550;
  color: var(--a-muted-fg);
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}
.sc-nav-item span { flex: 1 1 auto; }
.sc-nav-item .sc-chev { width: 12px; height: 12px; }
.sc-nav-item.is-on,
.sc-sub-item.is-on { background-color: var(--a-side-accent); color: var(--a-fg); font-weight: 600; }
.sc-sub-item {
  position: relative;
  display: block;
  padding-left: 33px;
  font-weight: 400;
  line-height: 27px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-sub-item.is-on { font-weight: 500; }
.sc-proj::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(244, 244, 245, 0.15);
}
.sc-recent { padding-left: 11px; }
.sc-side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 2px;
  padding: 0 8px 0 11px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--a-muted-fg);
}
.sc-side-label .sc-chev { width: 12px; height: 12px; }
.sc-side-foot { margin-top: auto; display: grid; gap: 4px; }
.sc-connect {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  padding: 8px;
  border-radius: 10px;
  background-color: var(--a-card);
  font-size: 11px;
  line-height: 1.35;
  color: var(--a-muted-fg);
}
.sc-connect b { display: block; font-weight: 500; color: var(--a-fg); }
.sc-connect-mark { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background-color: var(--a-muted); }
.sc-connect-mark svg { width: 15px; height: 15px; }
.sc-user { display: flex; align-items: center; gap: 8px; padding: 6px 4px 0; border-top: 1px solid var(--a-side-border); font-size: 11px; line-height: 1.3; color: var(--a-muted-fg); }
.sc-user b { display: block; font-size: 12px; font-weight: 500; color: var(--a-fg); }
.sc-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--a-border);
  border-radius: 50%;
  background-color: var(--a-muted);
  font-size: 10px;
  font-weight: 600;
  color: var(--a-fg);
}

/* Top bar */
.sc-main { display: grid; grid-template-rows: 48px minmax(0, 1fr); min-width: 0; min-height: 0; }
.sc-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--a-border);
  background-color: var(--a-card);
}
.sc-top-icon { width: 15px; height: 15px; color: var(--a-muted-fg); }
.sc-crumbs { display: grid; padding-left: 14px; border-left: 1px solid var(--a-border); line-height: 14px; }
.sc-crumb { grid-area: 1 / 1; font-weight: 500; opacity: 0; transition: opacity 150ms ease; }
.sc-crumb.is-on { opacity: 1; }
.sc-livepill { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; background-color: var(--a-muted); color: var(--a-muted-fg); white-space: nowrap; }
.sc-livepill b { color: var(--a-fg); }
.sc-reddot { width: 7px; height: 7px; border-radius: 50%; background-color: var(--a-red-mark); }
.sc-search {
  flex: 0 1 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--a-border);
  border-radius: 6px;
  background-color: var(--a-card);
  color: var(--a-muted-fg);
}
.sc-search span { flex: 1 1 auto; white-space: nowrap; }
.sc-search .sc-kbd { flex: 0 0 auto; font-size: 11px; }

/* Screens share one cell and swap in place. */
.sc-screens {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  container: screen / inline-size;
}
.sc-screen { grid-area: 1 / 1; min-width: 0; min-height: 0; overflow: hidden; }
.sc-scroll { height: 100%; overflow: hidden; }

/* shared parts */
.sc-tabs { display: flex; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--a-border); background-color: var(--a-card); overflow: hidden; }
.sc-tabs--center { justify-content: center; }
.sc-tab {
  padding: 11px 0 9px;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  color: var(--a-muted-fg);
  white-space: nowrap;
}
.sc-tab.is-on { border-bottom-color: var(--a-accent); color: var(--a-fg); }
.sc-jur { color: var(--a-accent); }
.sc-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background-color: var(--a-muted);
  font-weight: 500;
  color: var(--a-fg);
  white-space: nowrap;
}
.sc-btn--line { border-color: var(--a-fg); background-color: var(--a-card); }
.sc-btn--sm { height: 24px; padding: 0 9px; font-size: 11.5px; }
.sc-btns { display: flex; gap: 8px; }
.sc-pick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background-color: var(--a-muted);
  font-size: 11.5px;
  color: var(--a-muted-fg);
  white-space: nowrap;
}
.sc-pick b { font-weight: 500; color: var(--a-fg); }
.sc-pick .sc-icon { width: 10px; height: 10px; }
.sc-pick--end { margin-left: auto; }
.sc-send { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background-color: var(--a-red); color: #fff; }
.sc-send .sc-icon { width: 13px; height: 13px; }
.sc-send .sc-icon * { stroke-width: 2; }
.sc-caret { display: inline-block; width: 2px; height: 14px; margin: 0 1px; vertical-align: -2px; background-color: var(--a-accent); }
.sc-ph { color: var(--a-muted-fg); }
.sc-sup { margin-left: 2px; font-family: var(--font-mono); font-size: 9.5px; color: var(--a-muted-fg); vertical-align: super; line-height: 0; }
.sc-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background-color: var(--c); }
.sc-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 4px; background-color: var(--a-red); font-size: 11px; font-weight: 600; line-height: 1.2; color: #fff; white-space: nowrap; vertical-align: 3px; }
.sc-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background-color: #fff; }
.sc-label-sm { font-size: 11.5px; color: var(--a-muted-fg); }

/* 1. Discover */
.sc-home { padding: 28px 20px 26px; text-align: center; }
.sc-greet { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; color: var(--a-fg); }
.sc-askbox {
  width: min(560px, 100%);
  margin: 14px auto 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(161, 161, 170, 0.3);
  border-radius: 18px;
  background-color: var(--a-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.sc-askbox-in { min-height: 40px; padding: 0 2px; font-size: 13px; color: var(--a-fg); }
.sc-askbox-bar { display: flex; align-items: center; gap: 6px; }
.sc-home .sc-send { opacity: 0.35; } /* nothing typed yet */
.sc-feed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}
.sc-card { border: 1px solid var(--a-border); border-radius: 12px; background-color: var(--a-card); overflow: hidden; }
.sc-img { position: relative; background-color: var(--a-muted); background-size: cover; background-position: center; }
.sc-credit { position: absolute; right: 6px; bottom: 6px; padding: 1px 5px; border-radius: 4px; background-color: rgba(28, 25, 23, 0.72); font-size: 9.5px; color: #fff; white-space: nowrap; }
.sc-lead { padding: 14px; }
.sc-lead .sc-img { aspect-ratio: 2.6 / 1; border-radius: 10px; background-position: center 30%; }
.sc-lead-title { margin-top: 14px; font-size: 24px; font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
.sc-lead .sc-muted { margin-top: 8px; }
.sc-lead-sum { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--a-body); }
.sc-card-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 11.5px; }
.sc-srcs { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: var(--a-muted-fg); }
.sc-faces { display: inline-flex; }
.sc-faces i {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-left: -4px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--a-card);
  background-color: var(--a-fg);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  color: var(--a-card);
}
.sc-faces i:first-child { margin-left: 0; }
.sc-faces i:nth-child(2) { background-color: var(--a-muted-fg); color: var(--a-card); }
.sc-faces i:nth-child(3) { background-color: var(--a-muted); color: var(--a-fg); box-shadow: 0 0 0 1.5px var(--a-card), inset 0 0 0 1px #a8a29e; }
.sc-save { color: var(--a-muted-fg); }
.sc-follow { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--a-muted-fg); }
.sc-follow.is-on { color: var(--a-fg); }
.sc-follow .sc-icon { width: 11px; height: 11px; }
.sc-follow .sc-icon * { stroke-width: 2; }
.sc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.sc-small .sc-img { height: 104px; }
.sc-small-body { padding: 10px 12px 12px; }
.sc-small-title { font-size: 14px; font-weight: 500; line-height: 1.3; }
.sc-small .sc-muted { margin-top: 6px; }
.sc-small .sc-card-foot { margin-top: 8px; }
.sc-small .sc-card-foot + .sc-card-foot { margin-top: 6px; }
.sc-small .sc-follow { margin-left: auto; }
.sc-rail-h { display: flex; align-items: center; gap: 4px; margin: 4px 0 8px; font-size: 13px; font-weight: 500; }
.sc-rail-h .sc-icon { width: 11px; height: 11px; }
.sc-box { margin-bottom: 18px; padding: 2px 12px; border: 1px solid var(--a-border); border-radius: 12px; background-color: var(--a-card); }
.sc-box li { padding: 9px 0; border-top: 1px solid var(--a-border); }
.sc-box li:first-child { border-top: 0; }
.sc-box-title { font-size: 13px; font-weight: 500; line-height: 1.3; }
.sc-box .sc-muted { margin-top: 2px; }
.sc-sched li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px; }
.sc-sched .sc-mono { padding-top: 1px; }
.sc-sched .sc-box-title { display: flex; justify-content: space-between; gap: 8px; }
.sc-live-word { flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: var(--a-red-text); }

/* 2. Ask */
.sc-ask-wrap { position: relative; height: 100%; }
.sc-askhome { position: absolute; inset: 0; padding: 22% 24px 0; text-align: center; }
.sc-askhome .sc-askbox { margin-top: 16px; }
.sc-askhome .sc-typed { white-space: pre-wrap; }
.sc-convo { width: min(680px, 100%); margin: 0 auto; padding: 26px 24px; }
.sc-q {
  width: fit-content;
  max-width: 85%;
  margin-left: auto;
  padding: 9px 12px;
  border-radius: 12px;
  background-color: var(--a-muted);
  font-size: 14px;
}
.sc-activity { margin-top: 18px; font-size: 12px; color: var(--a-muted-fg); }
.sc-ans { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--a-body); }
.sc-src-h { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--a-border); font-size: 13px; font-weight: 500; }
.sc-src-list { margin-top: 6px; }
.sc-src-list li { display: grid; grid-template-columns: 18px 128px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 6px 0; }
.sc-src-n { font-family: var(--font-mono); font-size: 11px; color: var(--a-muted-fg); }
.sc-src-type { font-size: 11.5px; color: var(--a-muted-fg); }
.sc-src-title { color: var(--a-fg); text-decoration: underline; text-decoration-color: rgba(244, 244, 245, 0.4); text-underline-offset: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-reply {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 56px;
  margin-top: 22px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background-color: var(--a-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--a-border);
}
.sc-reply .sc-ph { align-self: flex-start; }

/* 3. Watch */
.sc-screen--watch .sc-scroll { padding-top: 16px; padding-bottom: 16px; }
.sc-mtg-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--a-border);
  border-radius: 12px;
  background-color: var(--a-card);
}
.sc-mtg-org { font-size: 12px; }
.sc-mtg-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.sc-mtg-title .sc-badge { vertical-align: 0; }
.sc-mtg-links { display: flex; gap: 14px; margin-top: 10px; font-weight: 500; }
.sc-mtg-links u { text-underline-offset: 3px; }
.sc-mtg { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; margin-top: 14px; align-items: start; }
.sc-mtg-main { border: 1px solid var(--a-border); border-radius: 12px; background-color: var(--a-card); overflow: hidden; }
.sc-mtg-tabs { display: flex; align-items: center; gap: 22px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--a-border); }
.sc-mtg-tabs .sc-tab { display: grid; padding: 6px 0 5px; line-height: 1.2; }
.sc-mtg-tabs .sc-tab small { font-size: 10px; font-weight: 400; color: var(--a-muted-fg); }
.sc-mtg-tabs .sc-tab:first-child { opacity: 0.7; }
.sc-mtg-search { padding: 12px 16px; border-bottom: 1px solid var(--a-border); }
.sc-field { display: block; height: 28px; margin-top: 5px; border: 1px solid var(--a-border); border-radius: 6px; background-color: var(--a-muted); }
.sc-turn { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--a-border); }
.sc-face { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background-color: var(--a-muted); font-size: 10px; font-weight: 600; color: var(--a-muted-fg); }
.sc-turn-head { display: flex; align-items: baseline; gap: 6px; }
.sc-turn-head b { font-weight: 600; }
.sc-turn-head .sc-mono { margin-left: auto; }
.sc-said { margin-top: 3px; max-width: 68ch; font-size: 13px; line-height: 1.55; color: var(--a-body); }
.sc-video { border: 1px solid var(--a-border); border-radius: 12px; background-color: var(--a-card); overflow: hidden; }
.sc-video-img {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0c0a09 url(/media/showcase/committee.jpg) center / cover no-repeat;
}
.sc-video-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: rgba(12, 10, 9, 0.74); }
.sc-video-bar .sc-mono { color: #fff; font-size: 10.5px; }
.sc-video-track { flex: 1 1 auto; height: 3px; border-radius: 2px; background: linear-gradient(to right, #fff 92%, rgba(255, 255, 255, 0.35) 92%); }
.sc-seg { display: flex; gap: 2px; padding: 8px 10px; }
.sc-seg span { padding: 4px 8px; border-radius: 6px; color: var(--a-muted-fg); }
.sc-seg span:first-child { color: var(--a-fg); font-weight: 500; }
.sc-seg span.is-on { background-color: var(--a-muted); color: var(--a-fg); font-weight: 500; }
.sc-details { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--a-border); border-radius: 12px; background-color: var(--a-card); }
.sc-details-h { margin-bottom: 4px; font-weight: 600; }
.sc-details .sc-label-sm { margin-top: 8px; }

/* 4. Research */
.sc-proj-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 16px; }
.sc-page-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.sc-tabs--white { border-top: 0; }
.sc-res { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding-top: 16px; }
.sc-subnav { align-self: start; padding: 6px; border: 1px solid var(--a-border); border-radius: 12px; background-color: var(--a-card); }
.sc-subnav li { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 8px; border-radius: 8px; color: var(--a-fg); }
.sc-subnav li.is-on { background-color: var(--a-muted); font-weight: 500; }
.sc-count { font-family: var(--font-mono); font-size: 11px; color: var(--a-muted-fg); }
.sc-res-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.sc-sec-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.sc-res-head .sc-muted { margin-top: 4px; font-size: 12px; }
.sc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sc-tile { display: grid; align-content: start; gap: 5px; min-height: 104px; padding: 13px 14px; border: 1px solid var(--a-border); border-radius: 12px; background-color: var(--a-card); }
.sc-tile-type { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--a-muted-fg); }
.sc-tile-title { font-size: 13px; font-weight: 500; line-height: 1.35; }

/* 5. Write */
.sc-write { display: grid; grid-template-columns: minmax(0, 1fr) 280px; height: 100%; }
.sc-write-main { min-width: 0; display: flex; flex-direction: column; background-color: var(--a-muted); }
.sc-pb-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 48px; background-color: var(--a-bg); }
.sc-pb-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.sc-pb-title .sc-icon { width: 12px; height: 12px; color: var(--a-muted-fg); }
.sc-editor { flex: 1 1 auto; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; min-height: 0; padding: 16px 18px 0; }
.sc-chapters { align-self: start; padding: 6px; border: 1px solid var(--a-border); border-radius: 12px; background-color: var(--a-card); }
.sc-chapters li { display: flex; justify-content: space-between; align-items: center; height: 28px; padding: 0 8px; border-radius: 8px; color: var(--a-muted-fg); white-space: nowrap; }
.sc-chapters li.is-on { background-color: var(--a-muted); font-weight: 600; color: var(--a-fg); }
.sc-chapters .sc-icon { width: 12px; height: 12px; }
.sc-chapters li > span { overflow: hidden; text-overflow: ellipsis; }
.sc-chapters .sc-add { justify-content: flex-start; gap: 6px; }
.sc-page-wrap { min-width: 0; border: 1px solid var(--a-border); border-bottom: 0; border-radius: 12px 12px 0 0; background-color: var(--a-card); overflow: hidden; }
.sc-toolbar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-bottom: 1px solid var(--a-border); color: var(--a-fg); }
.sc-toolbar :where(b, i, s, .sc-u) { width: 14px; text-align: center; font-size: 12.5px; }
.sc-toolbar .sc-u { text-decoration: underline; }
.sc-tb-sep { width: 1px; height: 16px; background-color: var(--a-border); }
.sc-toolbar .sc-pick { height: 24px; background: none; color: var(--a-fg); }
.sc-page { max-width: 560px; margin: 0 auto; padding: 26px 32px; }
.sc-doc-title { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.sc-line { position: relative; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--a-body); }
.sc-line.sc-doc-h { color: var(--a-fg); }
.sc-line.sc-doc-h { margin-top: 18px; font-size: 14px; font-weight: 600; }
.sc-wipe {
  position: absolute;
  inset: -1px -2px;
  background-color: var(--a-card);
  transform-origin: 100% 50%;
  transform: scaleX(0);
}
.sc-assist { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--a-border); background-color: var(--a-card); }
.sc-assist-h { display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 0 16px; font-size: 13px; font-weight: 600; }
.sc-assist-h .sc-icon { color: var(--a-muted-fg); }
.sc-assist-body { flex: 1 1 auto; display: grid; align-content: start; gap: 12px; padding: 4px 16px 16px; overflow: hidden; }
.sc-assist .sc-q { font-size: 13px; }
.sc-act { font-size: 12px; color: var(--a-muted-fg); }
.sc-act-done { font-size: 13px; line-height: 1.5; }
.sc-act-done u { color: var(--a-fg); text-decoration-color: var(--a-accent); text-underline-offset: 3px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; border-top: 1px solid var(--a-border); }
.sc-chips span { padding: 3px 8px; border: 1px solid var(--a-border); border-radius: 7px; background-color: var(--a-bg); font-size: 11px; color: var(--a-muted-fg); }
.sc-assist .sc-reply { margin: 10px 16px 16px; }

/* Narrower screens: drop the side columns, keep what carries the story. */
@container screen (max-width: 1000px) {
  .sc-feed { grid-template-columns: minmax(0, 1fr) 240px; }
  .sc-write { grid-template-columns: minmax(0, 1fr) 240px; }
  .sc-editor { grid-template-columns: minmax(0, 1fr); }
  .sc-chapters { display: none; }
  .sc-mtg { grid-template-columns: minmax(0, 1fr) 240px; }
}
@container screen (max-width: 820px) {
  .sc-feed { grid-template-columns: minmax(0, 1fr); }
  .sc-feed-side { display: none; }
  .sc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-res { grid-template-columns: minmax(0, 1fr); }
  .sc-subnav { display: none; }
  .sc-write { grid-template-columns: minmax(0, 1fr); }
  .sc-assist { display: none; }
}
@container screen (max-width: 600px) {
  .sc-pad { padding-left: 14px; padding-right: 14px; }
  .sc-tabs { gap: 16px; padding: 0 14px; }
  .sc-tabs--center { justify-content: flex-start; }
  .sc-home { padding: 18px 14px; }
  .sc-greet { font-size: 17px; }
  .sc-askbox-bar .sc-pick:not(.sc-pick--end) { display: none; }
  .sc-feed { padding: 0 14px; }
  .sc-lead-title { font-size: 19px; }
  .sc-lead-sum { font-size: 13px; }
  .sc-cards { grid-template-columns: minmax(0, 1fr); }
  .sc-convo { padding: 18px 14px; }
  .sc-src-list li { grid-template-columns: 16px minmax(0, 1fr); }
  .sc-src-type { display: none; }
  .sc-mtg { grid-template-columns: minmax(0, 1fr); }
  .sc-details { display: none; }
  .sc-mtg-head .sc-btn { display: none; }
  .sc-mtg-search { display: none; }
  .sc-turn-head .sc-muted { display: none; }
  .sc-btns .sc-btn:not(.sc-btn--line) { display: none; }
  .sc-proj-head .sc-btns, .sc-pb-head .sc-btns { display: none; }
  .sc-tiles { grid-template-columns: minmax(0, 1fr); }
  .sc-editor { padding: 12px 12px 0; }
  .sc-toolbar > :nth-child(n+6):not(.sc-pick--end) { display: none; }
  .sc-page { padding: 18px 16px; }
  .sc-write-main .sc-tab:nth-child(-n+3) { display: none; } /* keep Documents in view */
}

/* --- pinned tour -------------------------------------------------------- */
.sc-pin {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(24px, 4vh, 44px);
  height: 100vh;
  min-height: 600px;
  padding: calc(var(--bar-h, 64px) + clamp(20px, 5vh, 56px)) 3vw 0; /* clears the fixed site header */
  perspective: 1800px;
  perspective-origin: 50% 0; /* the tilt leans the frame back without pushing it down the screen */
}
/* The teal spotlight behind the frame (as the first showcase had it): a soft
   glow on the canvas, no edges. */
.sc-plate {
  position: absolute;
  inset: -28vh -8% -40%; /* runs up over the hero's foot and on past the section, so neither end has an edge */
  /* It starts transparent at its top, so the glow rises out of the hero's
     dark instead of starting at the section line (Michael, December 1, 2026). */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.55) 16%, #000 34%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.55) 16%, #000 34%);
  /* Bigger and eased out so no oval edge reads (Michael, December 1, 2026):
     the stops follow a smooth falloff instead of one straight ramp. */
  background: radial-gradient(110% 70% at 50% 46%,
    rgba(27, 111, 126, 0.62) 0%,
    rgba(27, 111, 126, 0.5) 14%,
    rgba(27, 111, 126, 0.34) 30%,
    rgba(27, 111, 126, 0.19) 46%,
    rgba(27, 111, 126, 0.08) 62%,
    rgba(27, 111, 126, 0.025) 78%,
    rgba(27, 111, 126, 0) 92%);
  pointer-events: none;
}
.sc-bar,
.sc-lift { position: relative; width: 100%; max-width: 1760px; margin: 0 auto; }
.sc-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
/* The frame keeps one shape (16:10, the app at 1440 by 900) at the full
   width of the page, so on most screens its bottom runs past the bottom
   edge and is cut off there. */
.sc-lift { min-height: 0; transform-origin: 50% 100%; clip-path: inset(-100vh -100vw 0 -100vw); } /* cut only at the bottom: the frame runs off the bottom of the screen, as V7's does, and rises clear above this box on the way out */
.sc--tour .sc-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  transform-origin: 50% 0;
  box-shadow: var(--frame-highlight), 0 2px 8px rgba(0, 0, 0, 0.35);
}

.sc-heads { display: grid; min-width: 0; }
.sc-headline { grid-area: 1 / 1; }
.sc-headline h2 {
  font-size: clamp(26px, 2.5vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-100);
}
.sc-headline p { margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--ink-200); max-width: 34em; } /* about 70 characters a line */

/* The chapter labels: the one being shown is white on a light fill, with
   its progress bar filling in teal; finished chapters keep a dimmer bar. */
.sc-labels { display: flex; flex: 0 0 auto; gap: 6px; }
.sc-label {
  position: relative;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-button, 6px);
  background: none;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-400);
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}
.sc-label:hover { color: var(--ink-100); }
.sc-label[aria-current="step"] { color: var(--white); background-color: rgba(236, 236, 236, 0.1); }
.sc-label:focus-visible { outline: 2px solid var(--signal-500); outline-offset: 2px; }
.sc-label::after,
.sc-progress {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 3px;
  border-radius: 2px;
}
.sc-label::after { background-color: rgba(236, 236, 236, 0.14); }
.sc-progress { background-color: var(--teal-300); opacity: 0.45; transform: scaleX(0); transform-origin: 0 50%; transition: opacity 150ms ease; }
.sc-label[aria-current="step"] .sc-progress { opacity: 1; }

@media (max-width: 1100px) {
  .sc-headline p { display: none; }
  .sc-label { padding: 0 11px; font-size: 15px; }
  .sc-label::after, .sc-progress { left: 11px; right: 11px; }
}
@media (max-height: 760px) {
  .sc-headline h2 { font-size: clamp(24px, 2.2vw, 32px); }
  .sc-headline p { margin-top: 4px; font-size: 15px; }
}

/* Phones (December 3, 2026): the same pinned tour. The headline sits over
   the labels, which scroll sideways if they run out of room, and the frame
   keeps the desktop 16:9 at the full width of the phone. The group is
   centred in the space under the site header. svh keeps the pin steady
   while the browser's address bar slides in and out. */
@media (max-width: 767.98px) {
  .sc-pin {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr); /* the 1280px app inside must not widen the column */
    grid-template-rows: auto auto;
    align-content: center;
    gap: 20px;
    padding: calc(var(--bar-h, 64px) + 12px) 16px 24px;
  }
  .sc-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .sc-headline h2 { font-size: 26px; }
  .sc-labels {
    gap: 0;
    margin: 0 -16px;
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sc-labels::-webkit-scrollbar { display: none; }
  .sc-label { min-height: 44px; padding: 0 10px; font-size: 15px; white-space: nowrap; }
  .sc-label::after, .sc-progress { left: 10px; right: 10px; bottom: 6px; }
}

/* In the tour the app is a fixed 1280 by 720 picture scaled to the frame
   (showcase.js sets --k), so nothing in it reflows with the window. */
.sc--tour .sc-app { width: 1280px; height: 720px; transform: scale(var(--k, 1)); transform-origin: 0 0; }
.sc-turn { overflow: hidden; }

/* --- stacked ------------------------------------------------------------ */
.sc--stack {
  max-width: var(--page-max, 1280px);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter, 24px) 0;
}
.sc-ch + .sc-ch { margin-top: clamp(56px, 8vw, 96px); }
.sc-ch-text { max-width: 640px; }
.sc-ch-text h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink-100); }
.sc-ch-text p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-400); }
.sc--stack .sc-frame { height: 600px; margin-top: 24px; }
.sc--stack .sc-wipe { display: none; }

@media (max-width: 767.98px) {
  .sc--stack .sc-frame { height: 520px; }
  .sc--stack .sc-app { grid-template-columns: minmax(0, 1fr); }
  .sc--stack .sc-side,
  .sc--stack .sc-top-icon,
  .sc--stack .sc-kbd { display: none; }
  .sc--stack .sc-crumbs { padding-left: 0; border-left: 0; }
  .sc--stack .sc-search { flex: 0 1 auto; }
  .sc--stack .sc-search span:not(.sc-kbd) { display: none; }
}
/* Stacked, the Ask screen shows its finished answer. */
.sc--stack .sc-askhome { display: none; }

/* Watch: a real committee frame (December 2, 2026). The time bar sits under
   the frame instead of over it, so the bilingual caption banner stays whole. */
.sc-video-img { aspect-ratio: auto; padding-top: 56.25%; background-size: 100% auto; background-position: top center; }
.sc-video-img .sc-video-bar { position: relative; }
