/* /prompts/ scoped styles.
   Layered on top of /style.css. Palette hardcoded to match the rest of the
   site (navy #0A1F44, royal #0047AB) — no CSS variables, same as /services/.
   Fonts: the site stack only (Arial/Helvetica) plus a system monospace stack
   for the prompt block. No webfonts, no third-party requests. */

/* ── Keyboard skip link (ADA) ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #0047AB;
  color: #fff;
  padding: 12px 18px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid #0A1F44;
  outline-offset: 2px;
}

/* Visible focus everywhere inside /prompts/ */
.pr-hero a:focus-visible,
.pr-card:focus-visible,
.pr-copy-btn:focus-visible,
.pr-lite:focus-visible,
.pr-nav-link:focus-visible,
.pr-cta-btn:focus-visible {
  outline: 3px solid #0047AB;
  outline-offset: 3px;
}
.pr-hero a:focus-visible,
.pr-lite:focus-visible {
  outline-color: #fff;
}

/* ── Hero band — matches .svc-hero ────────────────────────────────────── */
.pr-hero {
  background: linear-gradient(135deg, #0A1F44, #0047AB);
  color: #fff;
  padding: 72px 40px 56px;
  text-align: center;
}
.pr-hero h1 { font-size: 40px; margin: 0 0 14px; color: #fff; }
.pr-hero .pr-tagline {
  font-size: 18px;
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.6;
  color: rgba(255,255,255,0.94);
}
.pr-crumbs {
  font-size: 14px;
  margin: 0 0 14px;
  color: rgba(255,255,255,0.85);
}
.pr-crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.45); }
.pr-crumbs a:hover { border-bottom-color: #fff; }
.pr-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 10px;
  color: rgba(255,255,255,0.9);
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.pr-section h2 { margin: 0 0 14px; font-size: 28px; color: #0047AB; }
.pr-section h3 { margin: 24px 0 8px; font-size: 20px; color: #0a1f44; }
.pr-section p  { line-height: 1.65; margin: 0 0 14px; color: #0a1f44; }
.pr-section ul, .pr-section ol { line-height: 1.7; padding-left: 22px; color: #0a1f44; }
.pr-section li { margin-bottom: 8px; }

/* ── Hub list ─────────────────────────────────────────────────────────── */
.pr-list { display: grid; grid-template-columns: 1fr; gap: 22px; }
.pr-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid #e5e5e5;
  text-decoration: none;
  color: #0a1f44;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pr-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.pr-card.pr-card-noart { grid-template-columns: 1fr; }
.pr-card h2 { margin: 6px 0 8px; font-size: 22px; color: #0a1f44; }
.pr-card p  { margin: 0 0 10px; line-height: 1.6; color: #35496d; }
.pr-card-ep {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0047AB;
}
.pr-card-link { display: inline-block; color: #0047AB; font-weight: 600; }
.pr-card-body { min-width: 0; }

/* ── Thumbnail tile (self-hosted poster, or a CSS-only placeholder) ───── */
.pr-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #0A1F44, #0047AB);
}
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #ffffff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.pr-thumb-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(10,31,68,0.72);
  padding: 4px 9px;
  border-radius: 999px;
}

/* ── Lite YouTube embed ───────────────────────────────────────────────── */
.pr-video { margin: 0 0 8px; }
.pr-lite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #0A1F44, #0047AB);
  box-shadow: 0 6px 20px rgba(10,31,68,0.18);
}
.pr-lite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-lite .pr-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 52px;
  border-radius: 14px;
  background: rgba(10,31,68,0.82);
  border: 2px solid rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pr-lite:hover .pr-play { background: #0047AB; transform: translate(-50%, -50%) scale(1.05); }
.pr-lite .pr-play::after {
  content: "";
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 4px;
}
.pr-lite .pr-lite-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.pr-lite iframe { width: 100%; height: 100%; border: 0; display: block; }
.pr-lite-placeholder { cursor: default; opacity: 0.85; }
.pr-lite-placeholder .pr-lite-caption code {
  background: rgba(255,255,255,0.18);
  padding: 1px 6px;
  border-radius: 4px;
}
.pr-video-fallback { font-size: 14px; margin-top: 8px; }

/* ── Prompt block + copy button ───────────────────────────────────────── */
.pr-prompt-wrap {
  background: #0A1F44;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(10,31,68,0.18);
  margin: 0 0 10px;
}
.pr-prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  flex-wrap: wrap;
}
.pr-prompt-bar .pr-prompt-label {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.pr-copy-btn {
  background: #ffffff;
  color: #0A1F44;
  border: 2px solid #ffffff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  min-height: 44px;
  padding: 0 20px;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pr-copy-btn:hover { background: #e8f0ff; }
.pr-copy-btn.is-copied { background: #0f8f4c; border-color: #0f8f4c; color: #ffffff; }
.pr-copy-btn.is-failed { background: #b3261e; border-color: #b3261e; color: #ffffff; }
.pr-prompt {
  margin: 0;
  padding: 18px 16px;
  color: #eaf1ff;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  max-height: 60vh;
  overflow: auto;
  -webkit-text-size-adjust: 100%;
}
.pr-prompt:focus-visible { outline: 3px solid #7eb8ff; outline-offset: -3px; }
.pr-copy-note { font-size: 14px; color: #44577a; margin: 0 0 24px; }

/* Screen-reader-only live region */
.pr-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Meta strip (requirements / who it is for) ────────────────────────── */
.pr-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pr-meta-card {
  background: #fff;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-left: 4px solid #0047AB;
}
.pr-meta-card h2 { font-size: 20px; margin: 0 0 10px; color: #0047AB; }
.pr-meta-card p, .pr-meta-card li { color: #0a1f44; line-height: 1.65; }
.pr-meta-card ul { margin: 0; padding-left: 20px; }

/* ── Draft banner ─────────────────────────────────────────────────────── */
.pr-draft-banner {
  background: #fff4e0;
  border: 1px solid #e0a344;
  border-left: 5px solid #b4700d;
  color: #5a3a06;
  padding: 16px 18px;
  border-radius: 8px;
  margin: 0 0 24px;
  line-height: 1.6;
}
.pr-draft-banner strong { color: #5a3a06; }
.pr-draft-pill {
  display: inline-block;
  background: #8a5200; /* 6.4:1 on white text — #b4700d was 3.98:1 (axe) */
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ── Prev / next ──────────────────────────────────────────────────────── */
/* Defensive: /style.css styles the bare `nav` element for the header menu
   (position:absolute, white panel, z-index:9999, display:none under 900px).
   The markup uses a div with role="navigation" to dodge that, and these
   explicit values keep the component safe if the markup ever changes back. */
.pr-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  z-index: auto;
}
.pr-nav-link {
  display: block;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  color: #0a1f44;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.pr-nav-link:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.pr-nav-dir {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0047AB;
  margin-bottom: 6px;
}
.pr-nav-title { display: block; font-weight: 700; line-height: 1.4; }
.pr-nav-link.pr-nav-next { text-align: right; }
.pr-pager-empty {
  background: #eef3fb;
  border: 1px dashed #c3d3ea;
  border-radius: 10px;
  padding: 18px;
  color: #42587a;
}
.pr-pager-empty .pr-nav-dir { color: #42587a; }
.pr-pager-empty .pr-nav-title { font-weight: 400; }

/* ── CTA panel ────────────────────────────────────────────────────────── */
.pr-cta {
  background: linear-gradient(135deg, #0A1F44, #0047AB);
  color: #fff;
  padding: 34px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(10,31,68,0.16);
}
.pr-cta h2 { color: #fff; margin-top: 0; }
.pr-cta p { color: rgba(255,255,255,0.94); max-width: 760px; margin: 0 auto 18px; line-height: 1.6; }
.pr-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  color: #0047AB;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #fff;
}
.pr-cta-btn:hover { background: #e8f0ff; }

.pr-empty {
  background: #fff;
  border: 1px dashed #c3d3ea;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: #44577a;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .pr-hero { padding: 54px 20px 40px; }
  .pr-hero h1 { font-size: 30px; }
  .pr-hero .pr-tagline { font-size: 16px; }
  .pr-card { grid-template-columns: 1fr; gap: 14px; }
  .pr-meta-grid { grid-template-columns: 1fr; }
  .pr-pager { grid-template-columns: 1fr; }
  .pr-nav-link.pr-nav-next { text-align: left; }
  .pr-prompt { font-size: 13px; max-height: 55vh; }
  .pr-copy-btn { width: 100%; justify-content: center; }
  .pr-prompt-bar { gap: 10px; }
  .pr-cta { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .pr-card, .pr-lite .pr-play { transition: none; }
  .pr-card:hover { transform: none; }
}
