/* Under the Render: wireframe comparison, shared by grill-and-chill.html and
   lifelong-learning.html. Each page has its own script and images in
   components/<project>-under-the-render/. Component by Codex, approved by
   Israel (Grill & Chill 2026-11-19, Lifelong Learning 2026-11-20). Integrated
   by Claude: the standalone pages' global rules (font-face, :root, body,
   universal and control defaults) are dropped or scoped to .utr-section, so
   no other page is affected. Component rules are unchanged. */
.utr-section {
  --utr-paper: #efeeec;
  --utr-ink: #18184c;
  --utr-blue: #293388;
  --utr-lime: #dae83d;
  --utr-line: #d4deea;
  padding: 24px 0 48px;
}
.utr-section [hidden] { display: none !important; }
.utr-section button, .utr-section input { font: inherit; }
.utr-section button { color: inherit; }
.utr-section button:focus-visible, .utr-section input:focus-visible, .utr-section a:focus-visible { outline: 3px solid var(--utr-blue); outline-offset: 5px; }
.utr-heading { margin-bottom: 1.75rem; }
.utr-heading h2 { margin: 0; color: var(--utr-blue); font-size: clamp(2.3rem, 6vw, 4.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; }
.utr-intro { margin: .75rem 0 0; font-size: clamp(1rem, 2vw, 1.25rem); }
.utr-figure { margin: 0; }
.utr-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: var(--utr-line); touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.utr.is-ready .utr-stage { cursor: ew-resize; }
.utr-stage img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.utr-wire-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.utr-badge { position: absolute; top: 1rem; background: var(--utr-ink); color: #fff; padding: .3rem .65rem; font-size: .875rem; font-weight: 600; line-height: 1.5; pointer-events: none; }
.utr-badge--wire { left: 1rem; }
.utr-badge--render { right: 1rem; }
.utr-divider { position: absolute; top: 0; bottom: 0; left: var(--reveal); width: 3px; transform: translateX(-50%); background: var(--utr-lime); pointer-events: none; }
.utr-handle { position: absolute; top: 50%; left: clamp(1.6rem, var(--reveal), calc(100% - 1.6rem)); transform: translate(-50%, -50%); display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--utr-lime); color: var(--utr-ink); border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1px rgb(24 24 76 / 12%); }
.utr-handle svg { width: 1.7rem; height: 1.3rem; }
.utr-controls { margin-top: .5rem; }
.utr-slider-row { display: flex; align-items: center; gap: 1rem; }
.utr-endpoint { min-height: 44px; padding: .5rem 0; border: 0; background: transparent; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.utr-slider { flex: 1; min-width: 0; min-height: 44px; margin: 0; accent-color: var(--utr-blue); cursor: ew-resize; }
.utr-help { margin: 0; color: #5b5c7d; font-size: .875rem; text-align: center; }
.utr-caption { padding: 1.5rem 0 1.25rem; }
.utr-caption h3 { margin: 0 0 .25rem; font-size: clamp(1.3rem, 2.5vw, 1.65rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.utr-caption p { margin: 0; max-width: 45rem; font-size: 1rem; line-height: 1.5; }
.utr-moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.utr-moment { display: flex; align-items: center; gap: 1rem; min-width: 0; min-height: 5.5rem; padding: .6rem; border: 2px solid transparent; background: transparent; text-align: left; cursor: pointer; }
.utr-moment[aria-pressed="true"] { border-color: var(--utr-blue); background: #fff; }
.utr-moment img { display: block; width: 7rem; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.utr-moment span { font-size: 1rem; font-weight: 700; }
.utr-status { margin: .75rem 0 0; font-size: 1rem; }
.utr-status:empty { display: none; }
@media (hover: hover) {
  .utr-moment:hover { background: #fff; }
  .utr-endpoint:hover { text-decoration: underline; text-underline-offset: .2em; }
}
@media (max-width: 640px) {
  .utr-heading { margin-bottom: 1.25rem; }
  .utr-badge { top: .6rem; font-size: .875rem; padding: .2rem .45rem; }
  .utr-badge--wire { left: .6rem; }
  .utr-badge--render { right: .6rem; }
  .utr-slider-row { gap: .75rem; }
  .utr-endpoint { font-size: .875rem; }
  .utr-caption { padding-top: 1.25rem; }
  .utr-moments { gap: .5rem; }
  .utr-moment { display: block; padding: .35rem; }
  .utr-moment img { width: 100%; }
  .utr-moment span { display: block; padding: .5rem .1rem .25rem; text-align: center; font-size: .875rem; }
}
@media (forced-colors: active) {
  .utr-moment[aria-pressed="true"] { border: 2px solid Highlight; }
  .utr-divider, .utr-handle { forced-color-adjust: none; }
}

/* Lifelong Learning: complete square renders (from Codex's standalone version,
   where the column was 48rem wide). */
.utr-section--lifelong { max-width: 48rem; }
.utr--lifelong .utr-stage { aspect-ratio: 1; }
.utr--lifelong .utr-moment img { width: 4.75rem; aspect-ratio: 1; }
@media (max-width: 640px) {
  .utr--lifelong .utr-moment img { width: 100%; }
}
