/* NDR 2026 Insight Video Prompt Bank
   Tokens follow pseo/15-month-policy/pack.css so this reads as the same product.
   Mobile-first: base rules are the 390px layout, media queries scale up. */

:root {
  --ink: #12132a;
  --ink-2: #3d4166;
  --muted: #6b7194;
  --line: #e6e8f2;
  --bg-soft: #f7f8fc;
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --brand-ink: #4f46e5;
  --brand-dim: #eef0fe;
  --gold: #f59e0b;
  --warn-ink: #9a3412;
  --warn-bg: #fff7ed;
  --warn-line: #fed7aa;
  --radius: 14px;
  --wrap: 1180px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* anchor targets clear the sticky controls */
:target { scroll-margin-top: 96px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-2);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Urbanist', sans-serif; color: var(--ink); line-height: 1.25; }
a { color: var(--brand-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ------------------------------------------------------------- breadcrumb */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 12px 0; }
.breadcrumb-list {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none;
  font-size: 13px; color: var(--muted);
  max-width: var(--wrap); margin: 0 auto; padding: 0 18px;
}
.breadcrumb-list li:not(:last-child)::after { content: "›"; margin-left: 8px; color: #b9bed6; }
.breadcrumb-list a { color: var(--brand-ink); text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- masthead */
.masthead {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #9333ea 100%);
  color: #fff;
  padding: 40px 0 36px;
}
.masthead__kicker {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin-bottom: 14px;
}
.masthead__title { color: #fff; font-size: clamp(1.75rem, 7vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; }
.masthead__title span { display: block; color: #d6c9ff; }
.masthead__intro { margin-top: 16px; font-size: 1rem; max-width: 62ch; color: rgba(255,255,255,.92); }
.masthead__meta {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.22);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.8; color: rgba(255,255,255,.72);
}
.masthead__meta a { color: #fff; }

/* ----------------------------------------------------------------- howto */
.howto {
  margin: 26px 0 0;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.howto__h {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-ink); margin-bottom: 12px;
}
.howto__intro { font-size: 14.5px; line-height: 1.68; color: var(--ink-2); max-width: 68ch; }
.howto__steps {
  margin: 16px 0 0; padding: 0; list-style: none;
  counter-reset: step;
  display: flex; flex-direction: column; gap: 9px;
}
.howto__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 30px;
  font-size: 14.5px; line-height: 1.6; color: var(--ink);
}
.howto__steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--brand-ink); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.howto__meta {
  margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}

/* --------------------------------------------------------------- cautions */
.cautions {
  margin: 14px 0 6px;
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.cautions__h {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #b91c1c; margin-bottom: 14px;
}
.cautions__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cautions__list li { font-size: 14.5px; color: #6b3410; line-height: 1.65; }
.cautions__list strong { color: var(--warn-ink); }

/* ----------------------------------------------------------------- layout */
.layout { display: block; padding-top: 22px; padding-bottom: 56px; }
.rail { display: none; }

/* --------------------------------------------------------------- controls */
.controls {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  margin: 0 -18px 20px;
  padding: 10px 18px 8px;
}

.search { position: relative; }
.search__icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 17px; color: var(--muted); pointer-events: none;
}
.search__input {
  width: 100%;
  font-family: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--ink);
  padding: 12px 38px 12px 36px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff;
  -webkit-appearance: none; appearance: none;
}
.search__input::placeholder { color: #9aa0bd; }
.search__input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.16); outline: none; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__clear {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: none; background: var(--bg-soft);
  color: var(--muted); font-size: 19px; line-height: 1; border-radius: 50%; cursor: pointer;
}
.search__clear:hover { background: var(--line); color: var(--ink); }

.chips {
  display: flex; gap: 7px; margin-top: 9px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
/* mask hints that the row scrolls past the right edge */
.chips {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
}
.chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: #c3c8e4; }
.chip__count {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  color: var(--muted); background: var(--bg-soft);
  padding: 1px 6px; border-radius: 999px;
}
.chip.is-on { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.chip.is-on .chip__count { background: rgba(255,255,255,.22); color: #fff; }
.chip--start.is-on { background: var(--gold); border-color: var(--gold); color: #3d2600; }
.chip--start.is-on .chip__count { background: rgba(0,0,0,.14); color: #3d2600; }

.resultline {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  margin-top: 8px; min-height: 1.2em;
}

/* ------------------------------------------------------------ empty state */
.empty { padding: 44px 4px; text-align: center; }
.empty__h { font-family: 'Urbanist', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.empty__p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.linklike {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--brand-ink); text-decoration: underline; cursor: pointer;
}

/* --------------------------------------------------------------- sections */
.sec { margin-bottom: 34px; scroll-margin-top: 96px; }
.sec__head { padding: 6px 0 16px; border-bottom: 2px solid var(--ink); margin-bottom: 20px; }
.sec__title { font-size: clamp(1.3rem, 5vw, 1.75rem); font-weight: 800; letter-spacing: -0.01em; }
.sec__note { font-size: 14.5px; color: var(--muted); margin-top: 7px; max-width: 62ch; }
.sec__count {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-top: 9px;
}

/* ----------------------------------------------------------------- topics */
.topic {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 16px;
  scroll-margin-top: 96px;
  background: #fff;
}
.topic.is-target { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(99,102,241,.14); }

.topic__head { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 12px; }
.topic__num {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--brand-ink); background: var(--brand-dim);
  padding: 3px 8px; border-radius: 6px;
}
.flag {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px;
}
.flag--start { background: #7c2d12; color: #fff; }
.topic__title {
  flex: 1 1 100%;
  font-size: 1.16rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3;
}

.said {
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
  padding: 13px 15px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}
.said__label {
  display: block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--brand-ink); margin-bottom: 6px;
}
.said p { font-size: 14.5px; color: var(--ink); line-height: 1.65; }
/* #713f12 on #fef08a ≈ 8.6:1 — comfortably above AA */
.said mark { background: #fef08a; color: #713f12; padding: 0 3px; border-radius: 2px; }

.lbl {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.angle { font-size: 14.5px; line-height: 1.68; margin-bottom: 15px; }
.hooks { font-size: 14.5px; line-height: 1.6; color: var(--ink); font-weight: 600; }

.verify {
  margin-top: 15px;
  border: 1px dashed #f3a4a4;
  background: #fff5f5;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 13.5px;
  /* #9f1239 on #fff5f5 ≈ 8.2:1 */
  color: #9f1239;
  line-height: 1.6;
}
.verify__tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: #fff; background: #be123c; padding: 2px 7px; border-radius: 4px; margin-right: 7px;
}

/* ----------------------------------------------------------- prompt block */
.promptwrap {
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.promptwrap__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: 8px 10px 8px 13px;
}
.promptwrap__label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
  min-width: 0;
}
.lbl-long { display: none; }
.lbl-short { display: inline; }
.copybtn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  color: #fff; background: var(--brand-ink);
  border: none; border-radius: 8px;
  padding: 11px 16px;           /* ≥44px tall — thumb target */
  min-height: 44px;
  cursor: pointer;
  transition: background .15s, transform .12s;
}
.copybtn:hover { background: #4338ca; }
.copybtn:active { transform: scale(.97); }
.copybtn.is-copied { background: #047857; }
.copybtn.is-failed { background: #b91c1c; }
.copybtn__icon { font-size: 14px; }

.promptscroll {
  position: relative;
  max-height: 290px;
  overflow-y: auto;
  overscroll-behavior: contain;   /* don't trap the page scroll on touch */
  background: #fff;
}
/* fade tells you there is more below, instead of a hard slice mid-line */
.promptwrap { position: relative; }
.promptwrap::after {
  content: '';
  position: absolute; left: 1px; right: 1px; bottom: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 82%);
  pointer-events: none;
  border-radius: 0 0 9px 9px;
}
.prompt {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--ink-2);
  background: #fff;
  padding: 15px 13px 34px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------- footnote */
.footnote {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.9; color: var(--muted);
}

/* ----------------------------------------------------------- back to top */
.totop {
  position: fixed; right: 14px; bottom: 14px; z-index: 30;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--brand-ink);
  font-size: 19px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(18,19,42,.16);
}
.totop:hover { background: var(--brand-dim); }
.totop[hidden] { display: none; }

/* ============================================================ ≥ 720px */
@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  .breadcrumb-list { padding: 0 24px; }
  .masthead { padding: 60px 0 52px; }
  .cautions { padding: 26px 28px; }
  .howto { padding: 26px 28px; }
  .controls { margin-left: -24px; margin-right: -24px; padding: 12px 24px 10px; }
  .topic { padding: 26px 24px; }
  .topic__title { flex: 1 1 auto; font-size: 1.3rem; }
  .prompt { font-size: 13px; padding: 18px 20px 36px; }
  .promptscroll { max-height: 340px; }
  .lbl-long { display: inline; }
  .lbl-short { display: none; }
  .promptwrap__bar { padding: 9px 12px 9px 18px; }
  .sec { margin-bottom: 48px; }
}

/* ============================================================ ≥ 1040px */
@media (min-width: 1040px) {
  .layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 40px; align-items: start; }

  .rail {
    display: block; position: sticky; top: 22px;
    padding-top: 4px;
  }
  .rail__h {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
  }
  .rail__list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
  .rail__link {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 13.5px; color: var(--ink-2); text-decoration: none;
    padding: 8px 11px; border-radius: 8px;
    border-left: 2px solid transparent;
    transition: background .15s, color .15s;
  }
  .rail__link:hover { background: var(--bg-soft); color: var(--ink); }
  .rail__link.is-current {
    background: var(--brand-dim); color: var(--brand-ink);
    border-left-color: var(--brand); font-weight: 600;
  }
  .rail__count { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
  .rail__link.is-current .rail__count { color: var(--brand-ink); }
  .rail__top {
    display: inline-block; margin-top: 16px; padding: 0 11px;
    font-size: 12.5px; color: var(--muted); text-decoration: none;
  }
  .rail__top:hover { color: var(--brand-ink); text-decoration: underline; }

  /* the side rail replaces the chip row's navigation duty, but filters stay */
  .controls { top: 0; }
  .totop { display: none; }
}

/* --------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
