/* MERCI-FRI tutorial site — plain CSS, no build step. Brand green + Inter, the MERCI brand typeface. */

:root {
  --brand: #0b6b3a;
  --brand-600: #0f7a45;
  --brand-50: #ecfdf3;
  --brand-100: #d1fae5;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe5df;
  --surface: #ffffff;
  --page: #f4fbf7;
  --amber-bg: #fffbeb;
  --amber-line: #f6d77c;
  --amber-ink: #7a4b00;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --max: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -5%, rgba(16, 185, 129, .16), transparent 60%),
    radial-gradient(800px 420px at 100% 10%, rgba(56, 189, 248, .10), transparent 60%),
    var(--page);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: #064e2b; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #0ea5e9; outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand, .brand img { flex-shrink: 0; }
.brand--fri img { height: 56px; }
.site-footer img.fri { height: 64px; }
.brand span { font-size: .8rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; line-height: 1.3; }
.nav { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-bottom: 2px solid transparent; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
}
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 8vw, 88px) 0 32px; text-align: center; }
.eyebrow {
  display: block; color: var(--brand); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Typing headline (home page). The line holding the typed word never wraps, so the heading keeps a stable height. */
.typing-h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
.typing-h1 .t-line { white-space: nowrap; color: var(--brand); }
.typing-h1 .t-tail { display: block; }
.typing-h1 .cursor { font-weight: 400; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.lead { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

.role-cards { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.role-card {
  display: flex; flex-direction: column; gap: 8px; text-align: left; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s;
}
.role-card:hover { border-color: var(--brand-600); box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 14px 32px rgba(11, 107, 58, .14); }
.role-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.role-card p { color: var(--muted); margin: 0; }
.role-card .go { margin-top: auto; padding-top: 8px; color: var(--brand); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 40px 0; }
.section-head { max-width: 720px; margin-bottom: 24px; }
.section-head p { color: var(--muted); }

.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: stage; padding: 0; list-style: none; margin: 0; }
.stages li {
  counter-increment: stage; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; position: relative;
}
.stages li::before {
  content: counter(stage); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem;
}
.stages b { display: block; font-weight: 600; margin-bottom: 4px; }
.stages span { color: var(--muted); font-size: .92rem; }

/* ---------- video ---------- */
.videos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.video-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #0b1f16; }
.video-card .meta { padding: 16px 18px 18px; }
.video-card .meta h3 { margin-bottom: 4px; }
.video-card .meta p { color: var(--muted); margin: 0; font-size: .95rem; }
.badge { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.video-card.soon { display: grid; place-items: center; min-height: 260px; text-align: center; border-style: dashed; background: rgba(255, 255, 255, .6); box-shadow: none; }
.video-card.soon .meta { padding: 24px; }
.video-card .no { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: rgba(6, 19, 13, .74); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .02em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.video-card:focus-within { box-shadow: 0 0 0 3px var(--brand-600), var(--shadow); }
.video-card.flash { box-shadow: 0 0 0 3px var(--brand-600), var(--shadow); }

/* ---------- video row (scrolls sideways) ---------- */
.videos--row { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.videos--row .video-card { flex: 0 0 min(440px, 86%); scroll-snap-align: start; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 8px; margin: -8px 0 8px; }
.carousel-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--brand); display: grid; place-items: center; cursor: pointer; }
.carousel-nav button:hover:not(:disabled) { background: var(--brand-50); border-color: var(--brand-600); }
.carousel-nav button:disabled { opacity: .4; cursor: default; }

/* ---------- "Anda ingin melakukan apa?" ---------- */
.finder .section-head { margin-bottom: 14px; }
.finder-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.finder input[type="search"] { width: 100%; max-width: 640px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
.quick, .results { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.quick { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.results { max-width: 760px; margin-top: 12px; }
.quick li, .results li { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.quick li:hover, .results li:hover { border-color: var(--brand-600); }
.quick a, .result { flex: 1; display: block; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.quick b, .result b { display: block; font-weight: 600; }
.quick span, .result span { display: block; font-size: .86rem; color: var(--muted); }
.video-hint { padding: 0 16px 6px; font-size: .88rem; color: var(--muted); }
.video-hint button { padding: 10px 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.finder-count { margin: 12px 0 0; color: var(--muted); }
.quick b .nb { display: inline; font-size: inherit; color: inherit; white-space: nowrap; }
.step:target { outline: 2px solid var(--brand-600); outline-offset: 10px; border-radius: 12px; }

/* ---------- detailed guides ("tata cara") ---------- */
.hero--left { text-align: left; padding-bottom: 8px; }
.hero--left .lead { margin-left: 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.flow { max-width: 760px; color: var(--muted); }
.guide-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn svg { margin-right: 8px; flex-shrink: 0; }
.guide-body { padding-bottom: 24px; }
.toc--steps { max-height: calc(100vh - 110px); overflow: auto; }
.toc--steps a { padding: 9px 10px; line-height: 1.35; }
@media (max-width: 900px) { .toc--steps { display: none; } }

/* Show/hide block for the guide cards on the mahasiswa page. */
.tata-cara > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 18px 22px; cursor: pointer; list-style: none;
  border-radius: var(--radius); background: rgba(255, 255, 255, .58); -webkit-backdrop-filter: blur(14px) saturate(165%); backdrop-filter: blur(14px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, .78); box-shadow: 0 8px 28px rgba(11, 107, 58, .09), inset 0 1px 0 rgba(255, 255, 255, .65);
}
.tata-cara > summary::-webkit-details-marker { display: none; }
.tata-cara > summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--brand); }
.tata-cara[open] > summary::after { content: "–"; }
.tata-cara > summary h2 { margin: 0; }
.tc-sub { display: block; color: var(--muted); font-size: .95rem; margin-top: 2px; }
.tata-cara[open] > summary { margin-bottom: 6px; }
.quick span .nb, .guide-card span .nb { display: inline; font-size: inherit; color: inherit; white-space: nowrap; }
.guide-body .callout { margin-bottom: 14px; }
.checklist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 18px 0 30px; box-shadow: var(--shadow); }
.checklist h2 { font-size: 1.15rem; margin-bottom: 4px; }
.checklist p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.checklist ul { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 32px; }
.checklist li { margin-bottom: 6px; break-inside: avoid; }
.steps.steps--guide { margin: 32px 0; gap: 56px; }
.steps--guide .step { align-items: center; column-gap: 16px; row-gap: 18px; }
.steps--guide .step::before { margin-top: 0; }
.steps--guide .step p { color: var(--ink); margin: 0; }
.guides-h { margin: 26px 0 0; }
.quick em { display: block; margin-top: 6px; font-style: normal; font-size: .8rem; font-weight: 600; color: var(--brand); }
.more { font-size: .92rem; margin: -4px 0 12px; }
.guide-nav { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 36px 0 12px; }
.guide-nav-card { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.guide-nav-card:hover { border-color: var(--brand-600); }
.guide-nav-card span { display: block; font-size: .8rem; color: var(--muted); }
.guide-nav-card b { display: block; font-weight: 600; }
@media (max-width: 640px) { .checklist ul { columns: 1; } }

/* Guide screenshots are shown whole (the overview pages use short, cropped previews). */
.steps--guide .step > div { display: contents; }
.steps--guide .step > div > p { max-width: 980px; }
.steps--guide figure.shot { grid-column: 1 / -1; }
.steps--guide figure.shot button { max-height: none; }
.steps--guide figure.shot img { max-height: none; object-fit: contain; }

/* ---------- glass accents: frosted panels over soft colour orbs ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 560px at 8% 14%, rgba(16, 185, 129, .34), transparent 70%),
    radial-gradient(520px 520px at 92% 12%, rgba(56, 189, 248, .30), transparent 70%),
    radial-gradient(520px 520px at 4% 62%, rgba(56, 189, 248, .20), transparent 70%),
    radial-gradient(600px 600px at 96% 70%, rgba(16, 185, 129, .24), transparent 70%),
    radial-gradient(520px 520px at 50% 100%, rgba(16, 185, 129, .18), transparent 70%);
}
.site-header {
  background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  border-bottom-color: rgba(255, 255, 255, .7); box-shadow: 0 6px 24px rgba(11, 107, 58, .06);
}
.role-card, .quick li, .results li, .checklist, .guide-nav-card, .stages li, .toc, .faq details, .callout, .finder input[type="search"] {
  background: rgba(255, 255, 255, .58); -webkit-backdrop-filter: blur(14px) saturate(165%); backdrop-filter: blur(14px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, .78); box-shadow: 0 8px 28px rgba(11, 107, 58, .09), inset 0 1px 0 rgba(255, 255, 255, .65);
}
.callout.note { background: rgba(236, 253, 243, .62); border-color: rgba(120, 200, 160, .65); }
.callout.warn { background: rgba(255, 251, 235, .72); border-color: rgba(246, 215, 124, .8); }
.video-card.soon { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.role-card:hover, .quick li:hover, .results li:hover, .guide-nav-card:hover { background: rgba(255, 255, 255, .8); border-color: rgba(16, 160, 90, .55); }
@media (prefers-reduced-motion: no-preference) {
  .role-card, .quick li, .guide-nav-card { transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
  .role-card:hover, .quick li:hover, .guide-nav-card:hover { transform: translateY(-2px); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .role-card, .quick li, .results li, .checklist, .guide-nav-card, .stages li, .toc, .faq details, .callout, .finder input[type="search"] { background: rgba(255, 255, 255, .94); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .role-card, .quick li, .results li, .checklist, .guide-nav-card, .stages li, .toc, .faq details, .callout, .finder input[type="search"] {
    background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

/* ---------- role pages ---------- */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 88px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .93rem; }
.toc a:hover { background: var(--brand-50); }
.toc a.active { background: var(--brand-100); color: #064e2b; font-weight: 600; }

.stage { margin-bottom: 56px; }
.stage > header { margin-bottom: 20px; }
.stage > header p { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem; margin-top: 2px;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); margin-bottom: 12px; }

figure.shot { margin: 0; }
figure.shot button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); cursor: zoom-in; box-shadow: var(--shadow); max-height: 460px;
}
figure.shot button:hover { border-color: var(--brand-600); }
figure.shot img { width: 100%; object-fit: cover; object-position: top; max-height: 460px; }
figure.shot figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
figure.shot.phone { max-width: 260px; }
figure.shot.phone button { max-height: none; }
figure.shot.phone img { max-height: none; }

.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); margin: 0 0 14px; }
.callout svg { flex: none; margin-top: 3px; }
.callout p { margin: 0; color: var(--ink); }
.callout.note { background: var(--brand-50); border-color: #b7e6cb; }
.callout.warn { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }
.callout.warn p { color: var(--amber-ink); }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(2, 12, 7, .82); }
dialog.lightbox .frame { position: relative; }
dialog.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 12px; background: #fff; }
dialog.lightbox button {
  position: absolute; top: -48px; right: 0; min-width: 44px; min-height: 44px; border-radius: 999px; border: 0;
  background: #fff; color: var(--ink); font-size: 1rem; font-weight: 600; padding: 0 16px; cursor: pointer;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul { color: var(--muted); }
.faq details ul { padding-left: 1.2em; margin-top: 0; }
.faq details > :last-child { margin-bottom: 16px; }

.cta-band {
  background: var(--brand); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px;
}
.cta-band h2 { margin: 0; color: #fff; font-size: 1.35rem; }
.cta-band p { margin: 4px 0 0; color: #d7f3e3; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: #fff; color: #064e2b; font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--brand-100); color: #064e2b; }
.btn .chip { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 10px 0 -14px; border-radius: 999px; background: #fff; }
.btn .chip img { width: 20px; height: auto; }
.role-card .icon img { width: 30px; height: auto; }
.role-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-footer img { height: 26px; width: auto; margin-bottom: 10px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: .9rem; background: rgba(255, 255, 255, .6); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-cards.three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .role-cards { grid-template-columns: minmax(0, 1fr); }
  .brand span { display: none; }
  .typing-h1 .t-line { display: block; min-height: 1.2em; }
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; padding: 6px 0; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quick a { padding: 12px; }
  .quick b { font-size: .95rem; line-height: 1.3; }
  .quick .video-hint { padding: 0 12px 4px; }
  .nav a { padding: 0 10px; font-size: .9rem; }
  .step { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .step::before { width: 30px; height: 30px; font-size: .85rem; }
  .stages { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .typing-h1 { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .typing-h1 .cursor { display: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ---------- video page ---------- */
.video-group { margin-top: 8px; }
.video-group + .video-group { margin-top: 28px; }
.video-map { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.video-map button { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.video-map button:hover { border-color: var(--brand-600); box-shadow: var(--shadow); }
.video-map button:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; }
.video-map b { display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; padding: 0 .5em; border-radius: 999px; background: var(--brand); color: #fff; font-size: .82rem; font-weight: 700; }
.video-note { max-width: 70ch; color: var(--muted); margin: 0 0 18px; }
.videos--two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
@media (prefers-reduced-motion: reduce) { .video-map button { transition: none; } }

.video-chapters { margin: 0 0 16px; }
.video-chapters summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 6px 0; }
.video-chapters ul { margin: 6px 0 0; padding-left: 20px; columns: 2 260px; color: var(--muted); }
.video-chapters li { break-inside: avoid; margin: 2px 0; }
.video-chapters b { font-variant-numeric: tabular-nums; color: var(--ink); margin-right: 6px; }

/* ---------- YouTube embeds: poster first, player loads on click ---------- */
.video-card .yt-facade, .video-card .yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #0b1f16 center / cover no-repeat; }
.yt-facade { position: relative; cursor: pointer; padding: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(6, 19, 13, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .15s; }
.yt-facade:hover .yt-play { transform: scale(1.08); }
.yt-facade:focus-visible { outline: 3px solid var(--brand-600); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .yt-play { transition: none; } }

.site-footer .credit { display: inline-block; margin-top: 6px; color: var(--brand-600); font-weight: 600; letter-spacing: .01em; }
