/* JobMaster360 Shorts — rebuilt in the site's design language.
 *
 * The previous stylesheet was a separate visual world: navy grounds, a
 * blue/white/red wordmark, a green CTA, an amber accent, and a banner that
 * graded from navy through grey into brown. Re-tinting its six custom
 * properties moved only the parts that were tokenised and left the rest, so
 * the page came out half-converted. This is a rewrite against the same tokens
 * as /v2 and University, not another pass over the old rules.
 *
 * The 41 videos each carry a duration the old cards never displayed, so the
 * grid now shows it — same fix as the University lesson cards.
 */

:root {
  --ink-deep: #0B0D22;
  --ink: #14162E;
  --indigo: #4338CA;
  --indigo-bright: #6366F1;
  --indigo-pale: #C7D2FE;
  --amber: #F59E0B;      /* brighter end of the brand amber: this page is dark */
  --paper: #FBFBFD;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --body: #A9ACCE;
  --panel: #171A3A;
  --display: Archivo, 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Header-only tokens — the light bar (matching the homepage's .v2-header) sits
     on this otherwise-dark page, so it needs its own ink/body/line values.
     --indigo, --indigo-bright, --indigo-pale, --paper and --display above are
     already identical to the homepage's v2-indigo/v2-indigo-bright/v2-indigo-pale/
     v2-paper/v2-display, so only these three are new (Tony, 2026-09-08). */
  --v2-ink: #12142E;
  --v2-body: #4A4C68;
  --v2-line: #E3E3EF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-deep);
  color: #fff;
  font-family: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; margin: 0; }
img { max-width: 100%; display: block; }

/* ── Header ───────────────────────────────────────────────────────────────
 * Restyled 2026-09-08 (Tony) to match the header on / and /university —
 * the homepage's light sticky `.v2-header`. These rules are copied near-verbatim
 * from the homepage's inline V2_CSS (v2- class names kept on purpose) so the two
 * headers stay in lockstep instead of drifting apart. The page below the
 * header (.shorts-hero etc.) stays dark/unchanged. */
.v2-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.v2-header { position: sticky; top: 0; z-index: 50; background: rgba(251,251,253,.88);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--v2-line); }
.v2-header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.v2-brand { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.v2-wordmark { font-family: var(--display); font-weight: 800; font-size: 22px;
  letter-spacing: -0.02em; color: var(--v2-ink); }
.v2-wordmark-360 { color: var(--indigo); }
.v2-nav { display: none; gap: 22px; margin-left: 8px; }
.v2-nav a { color: var(--v2-body); text-decoration: none; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; min-height: 32px; padding: 5px 2px; }
.v2-nav a:hover { color: var(--indigo); }
.v2-header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.v2-phone { display: none; color: var(--v2-body); text-decoration: none; font-size: 14px; font-weight: 600;
  align-items: center; min-height: 32px; white-space: nowrap; flex-shrink: 0; }
.v2-header .v2-btn-quiet { display: none; }
.v2-header .v2-btn { padding: 9px 12px; font-size: 13px; min-height: 44px; }
@media (max-width: 360px) {
  .v2-wrap { padding: 0 16px; }
  .v2-wordmark { font-size: 19px; }
  .v2-header .v2-btn { padding: 9px 10px; font-size: 12px; }
}
@media (min-width: 620px) { .v2-header .v2-btn-quiet { display: inline-flex; } }
/* Phone/tablet (below the 1000px burger breakpoint): the blue Download App
   button is dropped from the header entirely so Sign Up and the menu button
   always stay on one row; it stays on the desktop header (mirrors the homepage,
   Tony 2026-09-09 — supersedes the 2026-09-08 version). */
@media (max-width: 999px) {
  .v2-header-inner { flex-wrap: wrap; height: auto; min-height: 68px; padding-top: 10px; padding-bottom: 10px; gap: 8px 10px; }
  .v2-header-cta { display: contents; }
  .v2-header .v2-btn-signup { margin-left: auto; }
  .v2-header .v2-btn-primary { display: none; }
}
@media (min-width: 1000px) {
  .v2-nav { display: flex; }
  .v2-header .v2-btn { padding: 10px 18px; font-size: 14px; }
}
@media (min-width: 1200px) { .v2-phone { display: inline-flex; } }

/* Buttons — same values as the homepage's .v2-btn family. */
.v2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap; cursor: pointer; }
.v2-btn-primary { background: var(--indigo); color: #fff; }
.v2-btn-primary:hover { background: #3730A3; }
.v2-btn-quiet { color: var(--v2-body); }
.v2-btn-quiet:hover { color: var(--v2-ink); }
.v2-btn-pill { border-radius: 999px; }
/* Green for now, matching the homepage's Sign Up pill (Tony, 2026-08-31). */
.v2-btn-signup { background: #16a34a; color: #fff; }
.v2-btn-signup:hover { background: #15803d; }

/* Hamburger + slide-down menu. `.open` is toggled by the inline script at the
   bottom of index.html (ids kept as siteBurger/siteNav) — same mechanism as
   before, just restyled. Hidden entirely at 1000px where the nav fits inline. */
.v2-burger { display: grid; place-content: center; gap: 4px; width: 44px; height: 44px;
  padding: 0; border: 1px solid var(--v2-line); border-radius: 9px; background: #fff;
  cursor: pointer; }
.v2-burger span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--v2-ink); }
.v2-menu { display: none; border-top: 1px solid var(--v2-line); background: #fff; padding: 4px 24px 12px; }
.v2-menu.open { display: block; }
.v2-menu a { display: block; padding: 13px 2px; min-height: 44px; color: var(--v2-ink);
  text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--v2-line); }
.v2-menu a:last-child { border-bottom: 0; }
@media (min-width: 1000px) { .v2-burger, .v2-menu { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.shorts-hero { position: relative; overflow: hidden; padding: 84px 24px 56px;
  max-width: 1180px; margin: 0 auto; }
.shorts-hero::before { content: ""; position: absolute; inset: -1px 0 0; opacity: .5;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99,102,241,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.16) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent); }
.shorts-hero > * { position: relative; }
.shorts-hero p:first-of-type { font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--indigo-pale); margin: 0 0 14px; }
.shorts-hero h1 { font-weight: 800; font-size: clamp(36px, 6vw, 64px); line-height: 1.03;
  margin: 0 0 18px; max-width: 17ch; text-wrap: balance; }
.shorts-intro { font-size: 17px; line-height: 1.6; color: var(--body); margin: 0;
  max-width: 62ch; }

.shorts-rule { height: 3px; width: 100%; max-width: 1180px; margin: 30px auto 0;
  background: var(--line); border-radius: 2px; overflow: hidden; }
.shorts-rule span { display: block; width: 28%; height: 100%;
  background: linear-gradient(90deg, var(--indigo-bright), var(--indigo-pale)); }

/* ── Library ────────────────────────────────────────────────────────────── */
.shorts-library { padding: 54px 24px 90px; max-width: 1180px; margin: 0 auto; }
.shorts-section-heading { display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.shorts-section-heading h2 { font-weight: 800; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.shorts-section-heading > span { font-size: 14px; color: var(--body); }

/* Search + paging controls. */
.shorts-tools { margin: 0 0 22px; }
.shorts-search-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--indigo-pale); margin: 0 0 8px; }
.shorts-search { width: 100%; max-width: 420px; min-height: 48px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel);
  color: #fff; font: inherit; font-size: 16px; }
.shorts-search::placeholder { color: var(--body); }
.shorts-search:focus-visible { outline: 3px solid var(--indigo-bright); outline-offset: 2px; }
.shorts-more { display: block; margin: 26px auto 0; min-height: 48px; padding: 0 26px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: transparent;
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 15px; cursor: pointer; }
.shorts-more:hover { background: rgba(255,255,255,.06); border-color: var(--indigo-bright); }
.shorts-empty { color: var(--body); font-size: 15px; }
.shorts-empty button { background: none; border: 0; color: var(--indigo-pale);
  font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }

.shorts-grid { display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }

.short-card { overflow: hidden; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; transition: border-color .16s ease, transform .16s ease; }
.short-card:hover { border-color: var(--indigo-bright); transform: translateY(-2px); }

.short-poster { position: relative; display: block; width: 100%; aspect-ratio: 9 / 12;
  padding: 0; overflow: hidden; cursor: pointer; border: 0;
  background: linear-gradient(155deg, #2A2D5E, #101334); }
.short-poster img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.short-card:hover .short-poster img { transform: scale(1.03); }
.short-poster:disabled { cursor: default; }
.short-poster:focus-visible { outline: 3px solid var(--indigo-bright); outline-offset: -3px; }

.short-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 999px; background: rgba(11,13,34,.72);
  border: 1px solid rgba(255,255,255,.28); color: #fff; display: grid; place-items: center;
  font-size: 15px; padding-left: 3px; backdrop-filter: blur(3px); }

/* Duration was in the data all along and never shown. */
.short-duration { position: absolute; right: 9px; bottom: 9px; background: rgba(11,13,34,.84);
  color: #fff; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 3px 7px;
  font-variant-numeric: tabular-nums; letter-spacing: .01em; }

.short-copy { padding: 15px 17px 18px; }
.short-copy > p { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--indigo-pale); }
.short-copy h3 { margin: 8px 0 0; font-weight: 700; font-size: 16px; line-height: 1.3;
  letter-spacing: -0.01em; color: #fff; }
.short-copy > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 7px; color: var(--body); font-size: 13px; line-height: 1.55; }

/* ── Philosophy ─────────────────────────────────────────────────────────── */
.shorts-philosophy { padding: 96px 24px; text-align: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, #171A3A, #0B0D22); }
.shorts-philosophy p { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--indigo-pale); }
.shorts-philosophy h2 { margin: 0 auto 26px; font-weight: 800;
  font-size: clamp(34px, 5.4vw, 62px); line-height: 1.05; max-width: 16ch; }
.shorts-philosophy h2 em { font-style: normal; color: var(--indigo-pale); }
.shorts-philosophy > span { display: block; max-width: 62ch; margin: 0 auto; color: var(--body);
  font-size: 16px; line-height: 1.65; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.shorts-footer { display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto;
  padding: 34px 24px 44px; }
.shorts-footer > span { font-family: var(--display); font-weight: 800; font-size: 20px;
  letter-spacing: -0.02em; color: #fff; }
.shorts-footer a { display: inline-flex; align-items: center; min-height: 44px;
  color: var(--indigo-pale); text-decoration: none; font-weight: 600; font-size: 15px; }
.shorts-footer a:hover { color: #fff; }

/* ── Modal player ───────────────────────────────────────────────────────── */
.shorts-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 24px; background: rgba(6, 7, 20, .82); backdrop-filter: blur(6px); }
.shorts-modal[hidden] { display: none; }
.shorts-player { position: relative; display: grid; gap: 20px; width: min(1080px, 100%);
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 20px; max-height: 88vh; overflow: auto; }
.shorts-player video { width: 100%; border-radius: 12px; background: #000; display: block; }
.shorts-player h2 { font-weight: 800; font-size: 22px; line-height: 1.2; margin: 8px 0 0; }
.shorts-player p { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--indigo-pale); }
.shorts-player span { display: block; margin-top: 10px; color: var(--body); font-size: 14px;
  line-height: 1.6; }
.shorts-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  background: rgba(11,13,34,.6); border: 1px solid var(--line-strong); color: #fff; }
.shorts-close:hover { background: rgba(11,13,34,.9); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--indigo-bright); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 860px) {
  .shorts-player { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  /* This page exists to show the videos. A 60px hero plus a 42px library pad
     put the first thumbnail 794px down, a full screen past the fold. */
  .shorts-hero { padding: 30px 20px 24px; }
  .shorts-hero h1 { font-size: 30px; }
  .shorts-intro { font-size: 15px; }
  .shorts-rule { margin-top: 18px; }
  .shorts-library { padding: 26px 20px 56px; }
  .shorts-section-heading { margin-bottom: 18px; }
  .shorts-grid { grid-template-columns: 1fr; gap: 18px; }
  .short-poster { aspect-ratio: 16 / 10; }
  .shorts-philosophy { padding: 68px 20px; }
  .shorts-footer { padding: 28px 20px 40px; }
  .shorts-modal { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .short-card, .short-poster img { transition: none; }
  .short-card:hover { transform: none; }
  .short-card:hover .short-poster img { transform: none; }
}
