/* AI Prompt Library: section overview cards and players (see overviews.js). */
.ov{margin:1.4rem 0 2.1rem; max-width:772px}
.section-head .ov{margin:1.2rem 0 1.4rem}
.ov-card a, .ov-card button, .ov-bar button, .ov-tx a{font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}

/* compact card */
.ov-card{
  display:grid; grid-template-columns:minmax(0,236px) minmax(0,1fr); gap:1.1rem; align-items:center;
  background:#fff; border:1px solid #dce8e4; border-radius:14px; padding:.8rem 1rem .8rem .8rem;
  box-shadow:0 1px 2px rgba(9,52,52,.04);
}
section.block[style*="#fff"] .ov-card{background:#f6faf8}
.ov-thumb{
  position:relative; display:flex; flex-direction:column; justify-content:flex-end; gap:.15rem;
  aspect-ratio:16/9; width:100%; padding:.7rem .8rem; border:0; border-radius:10px; overflow:hidden; cursor:pointer;
  text-align:left; color:#F2FAF8;
  background:radial-gradient(120% 90% at 85% 0%, rgba(127,216,195,.22) 0%, rgba(127,216,195,0) 60%),
             linear-gradient(140deg,#0b4a42 0%,#04231F 70%);
  transition:transform .15s ease, box-shadow .15s ease;
}
.ov-thumb:hover{transform:translateY(-2px); box-shadow:0 8px 20px rgba(4,35,31,.25)}
.ov-thumb:focus-visible{outline:3px solid #c8741f; outline-offset:2px}
.ov-thumb .k{font-size:.56rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:#FF8AA3}
.ov-thumb .t{font-family:"Manrope","Inter",sans-serif; font-weight:800; font-size:1rem; line-height:1.15; color:#fff; letter-spacing:-.01em}
.ov-thumb .h{display:flex; gap:.3rem; margin-top:.25rem}
.ov-thumb .h span{font-size:.55rem; font-weight:700; padding:.05rem .45rem; border-radius:999px; border:1px solid rgba(255,255,255,.28); color:rgba(255,255,255,.8)}
.ov-thumb .p{
  position:absolute; top:.6rem; right:.6rem; width:2.3rem; height:2.3rem; border-radius:50%;
  display:grid; place-items:center; background:#c8741f; color:#fff; box-shadow:0 4px 12px rgba(0,0,0,.3);
}
.ov-thumb .p svg{width:1rem; height:1rem; margin-left:2px}
.ov-thumb .d{position:absolute; top:.75rem; left:.8rem; font-size:.62rem; font-weight:700; color:rgba(255,255,255,.75); font-variant-numeric:tabular-nums}
.ov-meta .lab{display:block; font-size:.7rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#c8741f; margin-bottom:.25rem}
.prose .ov-meta p, .ov-meta p{font-size:.92rem; line-height:1.55; color:#33414f; margin:0 0 .7rem}
.ov-actions{display:flex; flex-wrap:wrap; gap:.45rem}
.ov-btn{
  display:inline-flex; align-items:center; gap:.35rem; padding:.42rem .9rem; border-radius:999px; cursor:pointer;
  font-size:.8rem; font-weight:600; line-height:1.2; border:1px solid #093434; background:#093434; color:#fff;
  text-decoration:none; transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.ov-btn:hover{background:#c8741f; border-color:#c8741f; color:#fff}
.ov-btn.ghost{background:transparent; color:#093434; border-color:rgba(9,52,52,.35)}
.ov-btn.ghost:hover{background:#093434; color:#fff; border-color:#093434}
.ov-btn svg{width:.85rem; height:.85rem}
.ov a.ov-btn{border-bottom-width:1px}
.ov.is-loading .ov-thumb .p{animation:ovpulse 1s ease-in-out infinite}
@keyframes ovpulse{50%{opacity:.55}}

/* expanded player */
.ov-player{display:none; background:#04231F; border-radius:16px; padding:.55rem .6rem .6rem; box-shadow:0 12px 30px rgba(4,35,31,.28); color:#F2FAF8}
.ov.is-open .ov-card{display:none}
.ov.is-open .ov-player{display:block}
.ov-bar{display:flex; align-items:center; gap:.6rem; padding:.15rem .25rem .5rem; min-height:2rem}
.ov-bar .ttl{flex:1; min-width:0; font-size:.82rem; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.ov-bar .ttl small{font-weight:600; color:#9ED7C8; margin-right:.45rem; letter-spacing:.08em; text-transform:uppercase; font-size:.68rem}
.ov-bar button{
  flex:none; padding:.3rem .75rem; border-radius:999px; border:1px solid rgba(255,255,255,.25); background:transparent;
  color:rgba(255,255,255,.88); font-size:.74rem; font-weight:600; cursor:pointer;
}
.ov-bar button:hover{background:rgba(255,255,255,.1); color:#fff}
.ov-bar button:focus-visible{outline:2px solid #9ED7C8; outline-offset:1px}
.ov-stage{min-height:3rem}
.ov-stage .pc{margin-bottom:0}
.ov-stage .ov-native{display:block; width:100%; margin:.4rem 0}
.ov.is-loading .ov-stage::before{content:"Loading the overview\2026"; display:block; padding:2.5rem 1rem; text-align:center; color:rgba(255,255,255,.6); font-size:.85rem}
.ov.is-loading .ov-stage:has(.pc)::before{content:none}

/* transcript */
.ov-tx{margin:.5rem .2rem 0; border-top:1px solid rgba(255,255,255,.1); padding-top:.45rem}
.ov-tx summary{cursor:pointer; font-size:.78rem; font-weight:700; color:#9ED7C8; padding:.2rem 0; list-style:none}
.ov-tx summary::-webkit-details-marker{display:none}
.ov-tx summary::before{content:"\25B8"; display:inline-block; margin-right:.45rem; transition:transform .15s}
.ov-tx[open] summary::before{transform:rotate(90deg)}
.ov-tx .transcript{max-height:340px; overflow:auto; margin-top:.5rem; padding:.2rem .6rem .4rem 0; font-size:.88rem; line-height:1.65}
.ov-tx .transcript p{margin:0 0 .6rem; padding:.15rem 0 .15rem .7rem; border-left:2px solid transparent; color:rgba(255,255,255,.84); font-size:.88rem}
.ov-tx .transcript p.sarah{border-left-color:rgba(107,181,166,.5)}
.ov-tx .transcript p.kiffer{border-left-color:rgba(204,0,51,.5)}
.ov-tx .transcript .speaker{font-weight:700; margin-right:.25rem}
.ov-tx .transcript p.sarah .speaker{color:#9ED7C8}
.ov-tx .transcript p.kiffer .speaker{color:#FF8AA3}

/* enlarged box */
html.ov-locked{overflow:hidden}
.ov-modal{
  position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center;
  padding:2vh 2vw; background:rgba(2,20,18,.86); backdrop-filter:blur(3px);
}
.ov-modal .ov-player{display:block; width:min(1280px, 96vw, calc((100vh - 9rem) * 16 / 9)); max-height:96vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.5)}
.ov-modal .ov-tx .transcript{max-height:24vh}

@media (max-width:640px){
  .ov-card{grid-template-columns:1fr; padding:.7rem}
  .ov-thumb .t{font-size:1.05rem}
  .ov-player{margin:0 -.6rem; border-radius:12px; padding:.45rem .4rem .5rem}
  .ov-modal{padding:0}
  .ov-modal .ov-player{width:100vw; max-height:100vh; border-radius:0}
}
@media print{.ov{display:none}}
.ov-tx .tx-dl{margin:.5rem 0 .1rem; font-size:.76rem; color:rgba(255,255,255,.6)}
.ov-tx .tx-dl a{color:#9ED7C8; border-bottom:1px solid rgba(158,215,200,.35)}
.ov-tx .tx-dl a:hover{color:#fff; border-bottom-color:#fff}

/* Keep the site's typography out of the player. The companion engine was
   written for the course pages, which zero all margins and padding and use
   Open Sans; the rules below restore those defaults inside the player so
   that page rules such as `.prose li` (dark text) and the global heading
   styles do not change the scenes. Specificity (0,1,1) beats those rules,
   while companion.css (loaded later, same or higher specificity) still wins. */
.ov .pc{font-family:'Open Sans','Segoe UI',system-ui,sans-serif; line-height:1.7}
.ov :where(.pc) :is(h1,h2,h3,h4,h5,h6,p,ul,ol,li,dl,dt,dd,figure,blockquote){margin:0; padding:0; color:inherit; line-height:inherit; font-family:inherit}
.ov :where(.pc) :is(h1,h2,h3,h4,h5,h6){letter-spacing:normal; text-wrap:wrap}
.ov :where(.pc) a{border-bottom:0}
/* The engine's faintest text tone (38% white) falls below WCAG AA contrast
   for the small HUD, speaker and label text; raise it inside the player. */
.ov .pc{--pc-faint:rgba(242,250,248,0.62)}
