/* LevelUp, EvaluateUs and Maestro case studies (24 and 25 Nov 2026). Loaded after case-taskgpt.css and case-lead.css: the header,
   reader, tables, figures and loop boxes are the TaskGPT ones, and only what differs is here. */

/* ─── Reader ───────────────────────────────────────────────────────────────── */
/* The opening (no hero since 25 Nov 2026): title, what LevelUp is, the dashboard, the facts */
.lu-doc > .readtime { margin-bottom: 28px !important; }
.lu-doc > .readtime + .lede.statement { margin-top: 0; }
.lu-doc > h2 { margin: 88px 0 18px; font-size: clamp(28px, 2.7vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); text-wrap: balance; }
.lu-doc h3 { margin: 56px 0 14px; font-size: 23px; }
.lu-doc h3 .num { color: var(--ink2); }
/* Fifteen sections at the top level: bold only where the reader is */
.lu-reader .toc-l1 { margin-bottom: 2px; }
.lu-reader .toc-l1 > .toc-row > a { font-weight: 400; color: var(--ink2); }
.lu-reader .toc-l1 > .toc-row > a[aria-current="location"] { font-weight: 600; color: var(--ink); }

/* The screens have rounded corners drawn on white; clipping them keeps the white out of both
   themes. In per cent, so the curve follows the image at every size. */
.lu .shot .frame { border-radius: 2.1% / 3.7%; }
/* EvaluateUs and Maestro screens are square-cornered and come in many heights, so one radius in pixels */
.eu .shot .frame { border-radius: 17px; }
@media (max-width: 1023px) { .eu .shot .frame { border-radius: 8px; } }
@media (min-width: 1024px) { .eu .pair .shot .frame { border-radius: 10px; } }
.lu .shot picture, .eu .shot picture { width: 100%; }
.lu .shot img, .eu .shot img { width: 100%; }
/* Maestro: the full morning brief scrolls inside its own box. The fade shows there is more; the space
   under the picture lets the end scroll clear of it. Three option cards are capped in width. */
.scroll-box { width: 100%; height: 720px; overflow-x: hidden; overflow-y: auto; -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 72px), transparent); mask-image: linear-gradient(to bottom, black calc(100% - 72px), transparent); }
.scroll-box picture { padding-bottom: 72px; }
.scroll-box:focus-visible { outline: none; }
.shot.scrolls .frame:has(.scroll-box:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 1023px) { .scroll-box { height: 560px; } }
.lu-doc .shot.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.lu-doc .pair .shot, .lu-doc .pair-fig .pair { margin: 0; }
.lu-doc .pair-fig > figcaption { margin-top: 18px; }
@media (max-width: 1023px) { .lu-doc .pair { grid-template-columns: 1fr; gap: 28px; } }

/* ─── Loop ─────────────────────────────────────────────────────────────────── */
.lu-loop .loop-title { margin-bottom: 18px; }
.lu-row { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; }
.lu-loop .loop-box { padding: 16px 12px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.lu-loop .loop-name { font-size: 16px; margin: 0; }
.lu-loop .loop-who { margin: 6px 0 0; line-height: 1.5; color: var(--ink2); }
.lu-arrow { display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; color: var(--ink); }
.lu-arrow .g-narrow, .lu-back { display: none; }
/* The way back: from under the last box to under the first, with an arrowhead */
.lu-return { position: relative; height: 46px; margin: 0 !important; }
.lu-return-line { position: absolute; left: 9%; right: 9%; top: 8px; height: 22px; border: 1px solid var(--ink2); border-top: none; }
.lu-return-line::before { content: ""; position: absolute; left: -5.5px; top: -3px; width: 0; height: 0; border: 5px solid transparent; border-top: none; border-bottom: 7px solid var(--ink2); }
.lu-return-label { position: absolute; left: 50%; top: 30px; transform: translate(-50%, -50%); padding: 0 12px; background: var(--paper); font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; color: var(--ink2); white-space: nowrap; }
@media (max-width: 719px) {
  .lu-row { grid-template-columns: 1fr; }
  .lu-arrow { padding: 8px 0; }
  .lu-arrow .g-wide, .lu-return { display: none; }
  .lu-arrow .g-narrow { display: inline; }
  .lu-back { display: block; margin: 10px 0 0 !important; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink2); }
}

/* ─── Motion slots (motion-slots.js) ───────────────────────────────────────── */
.motion-slot .frame { position: relative; }
.motion-slot video { display: block; width: 100%; height: auto; }
.motion-btn { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--paper); outline: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.motion-btn:hover { background: var(--accent-hover); }
.motion-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
