:root { --ex-measure: 1120px; }

/* ============================================================
   Explained — topic hub, pillar pages and one page per video.
   Composes on pl.css tokens. Light surface, flat #F0601F accent.
   ============================================================ */

.ex-hero { padding: 116px 0 92px; }
.ex-hero > .container { max-width: var(--ex-measure); }
.news-crumb { font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.news-crumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.news-crumb a:hover { color: var(--paper); }
.news-crumb .sep { margin: 0 9px; color: rgba(255,255,255,.28); }

.ex-head .eyebrow { display: block; margin-bottom: 14px; }
.ex-hero h1 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -0.026em; max-width: 26ch; }
.ex-hero h1 .g { color: var(--accent); }
.ex-hero .lede { margin-top: 18px; max-width: 58ch; font-size: 17px; color: rgba(255,255,255,.78); }
.ex-count { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.55); max-width: 56ch; }

.ex-body { padding: 56px 0 96px; position: relative; }
.ex-body > .container { max-width: var(--ex-measure); }

/* ---------- article column ----------
   The leaf pages now run the site's band stack, so the reading column is a
   centred measure inside a real .section rather than a bespoke grid. The
   answer-first paragraph is the design system's .answer-band / .answer-first;
   the private .ex-answer that used to sit here lost four of its declarations
   to .ex-lede p on specificity and rendered at body-copy size. */
.ex-read { position: relative; }
.ex-rest { max-width: 680px; margin: 0 auto; min-width: 0; }

.ex-rest p { font-size: 16.5px; line-height: 1.68; color: #33333B; margin: 0 0 18px; text-wrap: pretty; }
.ex-rest p strong { color: var(--ink); font-weight: 600; }
.ex-rest a { color: var(--accent); text-underline-offset: 3px; }

.ex-sec { margin-top: 44px; scroll-margin-top: 90px; }
.ex-sec h2 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.16; letter-spacing: -0.02em; margin-bottom: 14px; text-wrap: balance; }

/* ---------- on this page ---------- */
.ex-toc {
  margin: 0 0 8px; padding: 20px 24px;
  border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--warm-off-white);
}
.ex-toc-h { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-text); }
.ex-toc ol { margin: 12px 0 0; padding: 0 0 0 18px; }
.ex-toc li { margin: 7px 0; font-size: 14.5px; }
.ex-toc a { color: var(--ink); text-decoration: none; }
.ex-toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- prev / next ---------- */
.ex-pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); }
.ex-pager a { display: block; max-width: 46%; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.ex-pager a span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-text); margin-bottom: 5px; }
.ex-pager a:hover { color: var(--accent); }
.ex-next { text-align: right; margin-left: auto; }

.ex-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.ex-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.ex-more .arr { transition: transform 200ms ease; display: inline-block; }
.ex-more:hover .arr { transform: translateX(3px); }

/* ---------- pillar intro ---------- */
.ex-pillar { max-width: 68ch; margin-bottom: 56px; }
.ex-pillar p { font-size: 16.5px; line-height: 1.68; color: #33333B; margin: 0 0 18px; text-wrap: pretty; }

/* ---------- tiles ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ex-tile {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden;
  background: var(--paper); transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease, border-color 200ms ease;
}
.ex-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(11,11,15,.12); border-color: #d3d3da; }
.ex-tile-media { position: relative; aspect-ratio: 16/9; background: var(--ink); overflow: hidden; }
.ex-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms cubic-bezier(.2,.8,.2,1); }
/* 9:16 social cuts carry burned-in captions across the lower half and the
   speaker sits high in frame, so bias the 16:9 tile crop towards the top. */
.ex-tile-media.is-portrait img { object-position: 50% 16%; }
.ex-tile:hover .ex-tile-media img { transform: scale(1.045); }
.ex-tile-dur {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--radius-pill);
  background: rgba(5,5,5,.78); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums;
}
.ex-tile-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ex-tile-body h3 { font-size: 18px; line-height: 1.24; letter-spacing: -0.015em; margin-bottom: 9px; text-wrap: balance; }
.ex-tile-body p { font-size: 14px; line-height: 1.55; color: var(--grey-text); margin: 0 0 16px; }
.ex-tile-go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.ex-tile-go .arr { display: inline-block; transition: transform 200ms ease; }
.ex-tile:hover .ex-tile-go .arr { transform: translateX(3px); }

/* ---------- hub topic rows ---------- */
.ex-topicrow { padding: 46px 0; border-top: 1px solid var(--border); }
.ex-topicrow:first-child { border-top: 0; padding-top: 8px; }
.ex-topichead { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 26px; }
.ex-topichead h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.022em; }
.ex-topichead h2 a { color: inherit; text-decoration: none; }
.ex-topichead h2 a:hover { color: var(--accent); }
.ex-topichead p { grid-column: 1; font-size: 15.5px; color: var(--grey-text); max-width: 62ch; margin: 10px 0 0; }
.ex-topichead .ex-more { grid-column: 2; grid-row: 1; margin: 0; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ex-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ex-hero { padding: 84px 0 60px; }
  .ex-rest p { font-size: 16px; }
  .ex-grid { grid-template-columns: 1fr; }
  .ex-topichead { grid-template-columns: 1fr; }
  .ex-topichead .ex-more { grid-column: 1; grid-row: auto; }
  .ex-pager { flex-direction: column; gap: 22px; }
  .ex-pager a { max-width: 100%; }
  .ex-next { text-align: left; margin-left: 0; }
}

/* ============================================================
   Library: search, category tabs, transcript snippets, guides
   ============================================================ */

.ex-search { position: relative; max-width: 640px; margin-top: clamp(26px, 3.2vw, 38px); }
.ex-search-field { position: relative; display: block; }
/* centre the icon on the input itself, not on the wrapper, so it stays put
   whatever the input height ends up being */
.ex-search-field > svg {
  position: absolute; left: 21px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: rgba(255,255,255,.55); pointer-events: none;
}
.ex-search input {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--paper);
  padding: 17px 20px 17px 54px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  transition: border-color 180ms ease, background 180ms ease;
}
.ex-search input::placeholder { color: rgba(255,255,255,.45); }
.ex-search input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.09); }
.ex-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.ex-search-hint { display: block; margin-top: 11px; padding-left: 4px; font-size: 12.5px; color: rgba(255,255,255,.5); }






/* 4:5 tiles so more of the frame shows */
.ex-grid-lib { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ex-grid .ex-tile-media { aspect-ratio: 4 / 5; }

.ex-grid-lib .ex-tile-body { padding: 16px 18px 18px; }
.ex-grid-lib .ex-tile-body h3 { font-size: 16px; margin-bottom: 12px; }

.snippet { display: none; }
.ex-grid.searching .snippet.has {
  display: block; margin: 0 0 13px; padding: 10px 12px; border-radius: 10px;
  background: var(--warm-off-white); border: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.5; color: #45454e;
}
.snippet b { color: var(--ink); font-weight: 600; }
.snippet mark { background: rgba(240,96,31,.24); color: var(--ink); font-weight: 600; padding: 0 2px; border-radius: 3px; }

.ex-nohits { display: none; padding: 56px 40px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-large); background: var(--paper); }
.ex-nohits h3 { font-size: 24px; margin-bottom: 10px; }
.ex-nohits p { font-size: 15.5px; color: var(--grey-text); max-width: 52ch; margin: 0 auto 22px; }
.ex-nohits .btn { background: var(--accent); color: #fff; border-color: var(--accent); }











@media (max-width: 1180px) { .ex-grid-lib { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) {
  .ex-grid-lib { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .ex-grid-lib { grid-template-columns: 1fr; gap: 18px; }
  .ex-body { padding: 40px 0 72px; }
}

/* search results view */
.ex-rescount { font-size: 13px; color: var(--grey-text); margin: 0 0 22px; }
.ex-grid-lib { grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1180px) { .ex-grid-lib { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .ex-grid-lib { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .ex-grid-lib { grid-template-columns: 1fr; } }

/* --- hub hero: centred, because the right-hand half was dead space and the
       search box should be the thing your eye lands on --- */
.ex-hero-hub { padding: 96px 0 80px; }
.ex-hero-hub .ex-head { text-align: center; }
.ex-hero-hub .ex-head .eyebrow { margin-bottom: 16px; }
.ex-hero-hub h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.ex-hero-hub .lede { max-width: 56ch; margin-left: auto; margin-right: auto; }
.ex-hero-hub .ex-search { margin-left: auto; margin-right: auto; }
.ex-hero-hub .ex-search-hint { text-align: center; padding-left: 0; }
@media (max-width: 720px) {
  .ex-hero-hub { padding: 76px 0 56px; }
  .ex-hero-hub h1 { max-width: none; }
}

/* ============================================================
   Leaf explainer pages (one per video).
   These now run the site's band stack:
     stage -> answer-band -> section -> darkpoint -> section
           -> faq -> relgrid -> cta
   which is the same eight-band rhythm as the topic pillars and
   commissioning-challenges/*. Everything below is either a scoped
   override of an existing block or a new block declared for both a
   dark and a light surface.
   ============================================================ */

/* ---------- 1. the hero ---------- */
/* .stage h1 is clamp(44px, 6vw, 84px), sized for a page title. A leaf h1 is a
   32 to 70 character question sharing the row with the film, so it steps down
   to an article scale while keeping the stage's weight and tracking. */
.ex-stage h1 { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
/* .stage-lede caps at 40ch; the card summary runs to 90 characters. */
.ex-stage .stage-lede { max-width: 46ch; font-size: 17px; }
/* the publication date, so TechArticle.datePublished describes something a
   reader can see. .ex-count is already the right colour for an ink surface. */
.ex-stage .ex-count { margin: -14px 0 30px; }
/* .stage is padding: 128px 0 0 and takes its floor from the stats band. If a
   leaf is ever built without stats, give it one. */
.ex-stage:not(:has(.stage-stats)) { padding-bottom: 84px; }

/* ---------- 2. the film, in the stage media cell ---------- */
/* Sits where .stage-photo sits on every other page of the cluster, and matches
   its radius, border and shadow exactly so the two read as one component.
   pl-product.js binds play to any .reelbox with a .rp and a video, so there is
   no new behaviour here. */
.ex-reel { --reel-w: 300px; position: relative; display: grid; place-items: center; min-height: 566px; }
.ex-reel .reelitem { margin: 0; width: var(--reel-w); max-width: 100%; align-items: center; }
.ex-reel .reelbox { width: 100%; aspect-ratio: 9/16; border-radius: 22px; }
.ex-reel.is-landscape { --reel-w: 100%; }
.ex-reel.is-landscape .reelbox { aspect-ratio: 16/9; }
/* the duration pill the hub and topic tiles already use, lifted above .rp
   (z-index 3) and moved clear of the native controls that appear on play */
.ex-reel .ex-tile-dur { top: 12px; right: 12px; bottom: auto; z-index: 4; }
/* the caption is capped to the film, not the column, so it reads as its label */
.ex-reel .rlabel { text-align: center; }

/* dark surface: its home, the ink stage. Values copied from .stage-photo. */
.stage .ex-reel .reelbox { border: 1px solid rgba(255,255,255,.10); box-shadow: 0 40px 80px rgba(0,0,0,.55); }
.stage .ex-reel .rlabel { color: rgba(255,255,255,.72); }
/* light surface: if the block is ever placed on a paper or off-white band */
.section .ex-reel { min-height: 0; }
.section .ex-reel .reelbox { border: 1px solid var(--border); box-shadow: 0 22px 60px rgba(11,11,15,.14); }
.section .ex-reel .rlabel { color: var(--grey-text); }

/* ---------- 3. the reading band ---------- */
/* .ex-read is a real .section on paper; .ex-rest keeps the 680px measure the
   old template got right, centred rather than stranded left of a sidebar. */
.ex-read > .container { max-width: var(--container); }

/* ---------- 4. the transcript, inside the darkpoint panel ---------- */
#on-camera { scroll-margin-top: 90px; }
/* dark surface. .vsl-transcript is defined in pl.css as white-on-ink and its
   native 880px cap is kept, left aligned under the brand rule, because
   everything else in .dp-inner is left aligned too. */
.dp-inner .ex-transcript { margin-top: 30px; }
/* light surface: the same disclosure on a paper or off-white band */
.section:not(.darkpoint) .ex-transcript { color: #33333B; }
.section:not(.darkpoint) .ex-transcript summary { background: var(--warm-off-white); border-color: var(--border); color: var(--grey-text); }
.section:not(.darkpoint) .ex-transcript summary:hover { background: #ece7df; border-color: #d8d2c8; color: var(--ink); }
.section:not(.darkpoint) .ex-transcript[open] summary { background: #ece7df; }
.section:not(.darkpoint) .ex-transcript .vsl-transcript-body { background: var(--paper); border-color: var(--border); }
.section:not(.darkpoint) .ex-transcript .vsl-transcript-body p { color: #33333B; }
.section:not(.darkpoint) .ex-transcript .vsl-transcript-body strong { color: var(--ink); }

/* ---------- 5. the sibling band ---------- */
/* Every other explainer in the topic, as the cluster's own tiles. Topic sizes
   leave 2, 3, 4, 5 or 6 siblings against a three-up grid, so the two counts
   that would leave a hole are centred two-up instead. */
.ex-sibs[data-n="2"], .ex-sibs[data-n="4"] {
  grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto;
}

/* ---------- 6. responsive ---------- */
@media (max-width: 1180px) {
  .ex-reel { --reel-w: 274px; min-height: 520px; }
}
/* .stage-grid collapses to one column at 1020px (pl-product.css), so the film
   drops under the copy and the designed floor is no longer wanted */
@media (max-width: 1020px) {
  .ex-reel { --reel-w: 290px; min-height: 0; margin-top: 8px; }
  .ex-reel.is-landscape { --reel-w: 100%; }
}
@media (max-width: 860px) {
  .ex-stage .stage-lede { max-width: none; }
  .ex-sibs[data-n="2"], .ex-sibs[data-n="4"] { max-width: 620px; }
}
@media (max-width: 720px) {
  .ex-sibs[data-n="2"], .ex-sibs[data-n="4"] { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 520px) {
  .ex-stage .ex-count { margin: -10px 0 26px; }
  .ex-reel { --reel-w: 280px; }
  .dp-inner .ex-transcript { margin-top: 24px; }
}

/* The sibling band sits on .wall (ink). The tiles keep their paper bodies, so
   only the surfaces that meet the ink need restating. */
.wall .ex-tile { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.10); }
.wall .ex-tile:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.20); box-shadow: 0 26px 54px rgba(0,0,0,.55); }
.wall .ex-tile-body h3 { color: var(--paper); }
.wall .ex-tile-body p { color: rgba(255,255,255,.62); }

/* Brand rule and eyebrow only: the body sections keep the whole heading signal,
   so this opener deliberately carries no h2. */
.ex-read-head { margin-bottom: 26px; }
.ex-read-head .brand-rule { margin-bottom: 14px; }
