/* Lebuh Digital checkout pages - shared styles.
   Brand tokens taken from the live lebuhdigital.com stylesheet:
   ink #121214, cream #F4F0E6, paper #FBF8F0, lime #E3FC02, Anton + Bricolage Grotesque. */

:root {
  --ink: #121214;
  --ink-2: #1a1a1c;
  --ink-3: #232326;
  --cream: #f4f0e6;
  --paper: #fbf8f0;
  --lime: #e3fc02;
  --text: #f5f5f0;
  --muted: #6b6960;
  --muted-ink: #a8a8a3;
  --line: rgba(18, 18, 20, 0.14);
  --line-ink: rgba(255, 255, 255, 0.16);
  --h1: "Anton", Impact, "Arial Narrow", sans-serif;
  --head: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --script: "Instrument Serif", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --gut: clamp(16px, 4vw, 40px);
  --bw: 3px;
  --radius: 18px;
  --shadow: 4px 4px 0 var(--ink);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  font-feature-settings: "ss01" 1;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 240, 230, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gut);
  max-width: var(--wrap);
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Real brand artwork (brand/ in the project root, shipped in img/). The mark is the lime
   circle; the wordmark is the authored PNG, recoloured to #121214 for the cream nav. */
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
}

.brand-word {
  height: 22px;
  width: auto;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-links a {
  font: 600 14px/1 var(--body);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  border: 2px solid transparent;
}

.nav-links a:hover { border-color: var(--ink); }

/* Narrow screens: the lockup keeps its own row and the nav links drop below it, so a wide
   wordmark can never overlap the links. Placed after the base rules so it actually wins. */
@media (max-width: 560px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { height: 18px; }
  .nav-links { margin-left: 0; width: 100%; }
}

@media (max-width: 380px) {
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { height: 16px; }
}

/* --------------------------------------------------------------- staging */
.staging-bar {
  background: var(--cream);
  border-bottom: 2px dashed rgba(18, 18, 20, 0.2);
  padding: 10px 0;
}

.staging-bar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.staging-bar .ribbon-note { margin: 0; }

.ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 7px 12px;
  font: 700 12px/1.2 var(--body);
  transform: rotate(-1.4deg);
  box-shadow: 2px 2px 0 var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ribbon-note {
  font: 500 13px/1.4 var(--body);
  color: var(--muted);
  margin: 14px 0 0;
}

/* ----------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.01em; }

.display {
  font-family: var(--h1);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.005em;
  font-size: clamp(38px, 9vw, 72px);
  margin: 0;
}

.script { font-family: var(--script); font-style: italic; }

.lede {
  font-size: clamp(16px, 4vw, 19px);
  line-height: 1.5;
  max-width: 46ch;
  margin: 16px 0 0;
}

.note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* ---------------------------------------------------------------- hero */
.hero {
  background: var(--ink);
  color: var(--text);
  border-bottom: var(--bw) solid var(--ink);
  padding: clamp(28px, 7vw, 64px) 0 clamp(32px, 7vw, 64px);
}

.hero .script { color: var(--lime); font-size: clamp(17px, 4vw, 22px); margin: 0 0 10px; }
.hero .lede { color: #d9d6cc; }
.hero .ribbon { margin-bottom: 18px; }

.hero-grid {
  display: grid;
  gap: 24px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  border: 2px solid var(--line-ink);
  border-radius: 999px;
  padding: 7px 13px;
  font: 600 13px/1 var(--body);
  color: #d9d6cc;
}

/* ------------------------------------------------------------ sections */
.section { padding: clamp(30px, 7vw, 60px) 0; }

.section-head { display: grid; gap: 8px; margin-bottom: 22px; }

.section h2 {
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.06;
}

.section .eyebrow {
  font: 700 12px/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section.dark {
  background: var(--ink);
  color: var(--text);
  border-top: var(--bw) solid var(--ink);
}

.section.dark .eyebrow, .section.dark .note { color: var(--muted-ink); }

/* ----------------------------------------------------------------- cards */
.cards { display: grid; gap: 18px; }

.card {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card.top-lime { background: var(--lime); }

.card h3 { font-size: 21px; line-height: 1.15; }

.card .kicker {
  font: 700 11px/1 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.card .price {
  font-family: var(--h1);
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
}

.card .price small {
  font: 600 13px/1 var(--body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-left: 6px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
  color: #3d3c37;
}

.card ul li { margin: 5px 0; }

.schedule {
  border: 2px dashed rgba(18, 18, 20, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.schedule strong { font-family: var(--head); }

.schedule ol { margin: 6px 0 0; padding-left: 18px; }

.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font: 700 15px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  border: var(--bw) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

.btn-lime { background: var(--lime); }
.btn-ink { background: var(--ink); color: var(--lime); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { box-shadow: none; background: rgba(18, 18, 20, 0.06); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; box-shadow: 3px 3px 0 var(--ink); }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }

/* ---------------------------------------------------------------- forms */
.panel {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.field { display: grid; gap: 6px; margin-bottom: 14px; }

label { font: 700 13px/1.3 var(--body); }

input[type="text"], input[type="email"], input[type="tel"] {
  font: 500 16px/1.3 var(--body);
  padding: 13px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

input:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid #1976d2;
  outline-offset: 2px;
}

.hint { font-size: 12.5px; color: var(--muted); }

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
  cursor: pointer;
}

.choice input { margin: 4px 0 0; accent-color: #121214; }

.choice .choice-title { font: 700 14.5px/1.2 var(--body); }
.choice .choice-sub { font-size: 13px; color: var(--muted); }

.choice:has(input:checked) { background: var(--lime); }

/* ------------------------------------------------------------- summary */
.summary { display: grid; gap: 10px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.summary-row:last-child { border-bottom: 0; padding-bottom: 0; }

.summary-row.total { font: 700 17px/1.2 var(--head); }

.big-amount { font-family: var(--h1); font-size: 34px; line-height: 1; text-transform: uppercase; }

/* ---------------------------------------------------------------- state */
.state-card {
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  background: var(--paper);
  display: grid;
  gap: 12px;
}

.state-card.is-paid { background: var(--lime); }
.state-card.is-part { background: #fff6c9; }
.state-card.is-failed { background: #ffd9d1; }

.state-title { font: 400 clamp(26px, 7vw, 40px)/1 var(--h1); text-transform: uppercase; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 11px;
  font: 700 11.5px/1 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--paper);
  width: max-content;
}

.pill.ok { background: var(--lime); }
.pill.warn { background: #fff6c9; }
.pill.bad { background: #ffd9d1; }

/* ---------------------------------------------------------------- table */
.rows { display: grid; gap: 10px; }

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  font-size: 14.5px;
}

.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  width: 100%;
}

/* Narrow phones: a shorter pill keeps "Ansuran 1 daripada 3" on one line. */
@media (max-width: 430px) {
  .row-head .pill {
    padding: 4px 8px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }
}

.row-head strong { font-family: var(--head); font-size: 15px; }
.row-meta { color: var(--muted); font-size: 13px; }

/* --------------------------------------------------------------- alerts */
.alert {
  border: 2px solid var(--ink);
  border-left-width: 8px;
  border-radius: 10px;
  padding: 12px 14px;
  background: #ffd9d1;
  font-size: 14px;
  margin: 14px 0;
}

.alert.info { background: #e6f0ff; }

/* --------------------------------------------------------------- receipt */
.receipt {
  background: #fff;
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 5vw, 32px);
}

/* Printed receipt: the real mark + a #121214 wordmark, on the white paper card. */
.receipt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.receipt-brand img { flex: none; }

.receipt-brand .brand-mark { width: 40px; height: 40px; }

.receipt-brand .brand-word { height: 20px; width: auto; }

.receipt-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.receipt h2 { font-family: var(--head); font-size: 22px; }

.receipt-lines { margin-top: 18px; }

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 3px solid var(--ink);
  font-family: var(--head);
}

.placeholder-value {
  background: #ffd9d1;
  border: 2px dashed #b3261e;
  border-radius: 8px;
  padding: 3px 7px;
  font: 600 12.5px/1.4 var(--body);
  display: inline-block;
}

.legal {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------- footer */
.footer {
  background: var(--ink);
  color: var(--muted-ink);
  border-top: var(--bw) solid var(--ink);
  padding: 26px 0 34px;
  font-size: 13px;
}

.footer strong { color: var(--text); font-family: var(--head); }

.footer .foot-grid { display: grid; gap: 12px; }

/* ---------------------------------------------------------------- utils */
.stack { display: grid; gap: 16px; }
.split { display: grid; gap: 22px; }
.center { text-align: center; }
.hide { display: none !important; }
.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;
}

.skeleton {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* ----------------------------------------------------------- breakpoints */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: end; }
  .row-head { width: auto; flex: 1 1 240px; justify-content: flex-start; }
  .row-meta { flex: 0 0 auto; }
  .row > .btn { flex: 0 0 auto; margin-left: auto; }
  .skeleton { padding: 24px; }
}

@media (min-width: 1000px) {
  .section h2 { font-size: 36px; }
  .card h3 { font-size: 23px; }
}

@media print {
  .nav, .footer, .no-print { display: none !important; }
  body { background: #fff; }
  .receipt { box-shadow: none; border-width: 1px; }
}

/* ------------------------------------------------- membership (Content Club) */
/* Same tokens as the shop pages: ink/cream/lime, Anton headings, hard shadows. The plans
   and the member area only add layout, never a second visual language. */

.plans { display: grid; gap: 18px; margin-top: 8px; }

.plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 22px;
  box-shadow: var(--shadow);
}

.plan.recommended { background: var(--lime); }
.plan h3 { font-family: var(--h1); font-size: 26px; letter-spacing: 0.02em; margin: 0; }
.plan .plan-tagline { color: var(--muted); font-size: 14.5px; margin: 0; }
.plan .plan-price { font-family: var(--h1); font-size: 34px; line-height: 1; }
.plan .plan-price small { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.plan ul { margin: 4px 0 0; padding-left: 18px; font-size: 14.5px; }
.plan ul li { margin: 6px 0; }
.plan .plan-flag {
  align-self: flex-start;
  font: 700 10.5px/1 var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--cream);
}

.member-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  padding: 14px 16px;
}
.stat strong { display: block; font-family: var(--h1); font-size: 26px; line-height: 1.05; }
.stat span { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.lib-list, .inv-list, .event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lib-item {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper);
}
.lib-item h4 { margin: 0 0 4px; font-size: 15.5px; }
.lib-item p { margin: 0; color: var(--muted); font-size: 13.5px; }
.lib-item .lib-kind {
  font: 700 10px/1 var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Course progress: a reading aid only, the percent always comes from the server. */
.progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.progress-track { position: relative; flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-fill { display: block; height: 100%; border-radius: 999px; background: var(--ink, #111); }
.progress-label { font: 600 12px/1 var(--body); color: var(--muted); min-width: 34px; text-align: right; }

.billing-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.billing-row:last-child { border-bottom: 0; }

/* -------------------------------------------------------------- affiliates */
.aff-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font: 600 13px/1.3 var(--body);
}
.aff-strip .chip { background: var(--lime); }

.aff-programs { display: grid; gap: 18px; }
.aff-card {
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 10px;
}
.aff-card.dark { background: var(--ink); color: var(--text); }
.aff-card.dark .note, .aff-card.dark p { color: var(--muted-ink); }
.aff-card h3 { font-family: var(--h1); font-size: 24px; margin: 0; }
.rate-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rate-pill {
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 6px 12px;
  font: 700 13px/1 var(--body);
}

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; font-size: 14.5px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-family: var(--h1); font-size: 18px;
  background: var(--lime); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 8px;
  width: 30px; height: 26px; display: grid; place-items: center;
}

.aff-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.aff-hero-meta div strong { display: block; font-family: var(--h1); font-size: 30px; line-height: 1; }
.aff-hero-meta div span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.table-lite { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-lite th, .table-lite td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-lite th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.table-lite td.num, .table-lite th.num { text-align: right; font-variant-numeric: tabular-nums; }

@media (min-width: 760px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .aff-programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================================================================= photos
   Real captures from lebuhdigital.com carried into this bundle. Every image
   keeps its own aspect ratio so the browser reserves space before it loads. */

.photo-frame {
  position: relative;
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: var(--shadow);
}

.photo-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* A caption sitting on the photo, styled like the tape labels on the live site. */
.photo-tape {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  margin: 0;
  padding: 7px 11px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font: 700 12px/1.25 var(--body);
  transform: rotate(-1deg);
}

.hero-figure { margin: 0; display: grid; gap: 0; }

/* The lime "before you join" note, kept as a wide band under the hero photo. */
.hero-callout { margin-top: 18px; }
.hero-callout h3 { font-size: 19px; }
.hero-callout .note { color: #3d3c37; max-width: 78ch; }

/* White cards inside a dark band: ink text, or the copy disappears on paper. */
.section.dark .card { color: var(--ink); }
.section.dark .card .note { color: var(--muted); }
.section.dark .card ul { color: #3d3c37; }

/* Plan tier badge: CSS pips, one per tier level. No clip art, no invented icon. */
.tier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 10.5px/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan.recommended .tier { color: var(--ink); }

.tier-pips { display: inline-flex; gap: 3px; }

.tier-pips i {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}

.tier-pips i.on { background: var(--ink); }

/* Class and session photo strip. */
.shot-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.shot {
  margin: 0;
  display: grid;
  border: var(--bw) solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}

.shot img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.shot figcaption {
  font: 600 12.5px/1.3 var(--body);
  padding: 8px 10px;
  border-top: 2px solid var(--ink);
}

/* Testimonials copied from the live feedback thread, attributed as the live site does. */
.quotes { display: grid; gap: 16px; }

.quote {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.quote .stars { font-size: 14px; letter-spacing: 2px; color: var(--ink); }
.quote blockquote { margin: 0; font-size: 15.5px; line-height: 1.45; }
.quote blockquote p { margin: 0; }
.quote blockquote p + p { margin-top: 8px; }

.quote .who { display: flex; align-items: center; gap: 10px; font: 700 14px/1.2 var(--body); }

.quote .av {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font: 400 15px/1 var(--h1);
}

.quote .who small { display: block; font: 500 12px/1.3 var(--body); color: var(--muted); letter-spacing: 0; }

/* Course rows with a real program cover as the thumbnail. */
.lib-item.with-thumb {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.lib-item.with-thumb .thumb-body { min-width: 0; }

.course-thumb,
.ref-thumb {
  width: 56px;
  height: 70px;
  flex: none;
  align-self: flex-start;
  object-fit: cover;
  display: block;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--ink-2);
}

/* A course with no real cover art gets a monogram tile, never someone else's poster. */
.course-thumb.mono {
  display: grid;
  place-items: center;
  background: var(--lime);
  font: 400 17px/1 var(--h1);
  color: var(--ink);
  text-transform: uppercase;
}

/* Coach strip on the member page. */
.coach {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.coach img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: 50% 24%;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: block;
}

.coach strong { display: block; font: 800 16px/1.15 var(--head); }
.coach p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

/* Program cover inside an affiliate card and the referral card thumb. */
.aff-cover {
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  border-radius: 12px;
}

.aff-card.dark .aff-cover { border: 2px solid var(--line-ink); }

/* The store program card has no price-free poster art, so it carries the real mark on a
   lime tile instead of someone else's cover. */
.aff-logo {
  display: grid;
  place-items: center;
  height: 148px;
  border-radius: 12px;
  background: var(--lime);
  border: 2px solid var(--ink);
}

.aff-logo img { width: 56px; height: 56px; }

.ref-head { display: flex; align-items: center; gap: 12px; }
.ref-head h3 { margin: 0; }
.ref-head .ref-thumb { flex: none; }

@media (min-width: 760px) {
  .shot-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach { grid-template-columns: 84px minmax(0, 1fr); }
  .coach img { width: 84px; height: 84px; }
  .lib-item.with-thumb { grid-template-columns: 64px minmax(0, 1fr); }
  .course-thumb, .ref-thumb { width: 64px; height: 80px; }
}

@media (max-width: 430px) {
  .hero-figure .photo-tape { font-size: 11px; padding: 6px 9px; }
  .quote { padding: 15px; }
  .aff-cover { height: 128px; }
}

/* ---------------------------------------------------- affiliate withdrawals */
/* The request timeline: one line per transition, in the order the server wrote them. */
.steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}

.steps li { position: relative; display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; }
.steps li::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
}
.steps strong { font: 700 12.5px/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.06em; }
.steps span { color: var(--muted); }

/* A withdrawal row stacks instead of sharing the flex line: the amount, then the meta line,
   then the timeline. Otherwise a one-step history slides up beside the meta. */
.wd-row { display: block; }
.wd-row .row-meta { margin: 2px 0 0; }

/* A nested form inside a card: details keeps the card short until it is needed. */
.aff-more { margin-top: 12px; border-top: 2px solid var(--line); padding-top: 10px; }
.aff-more > summary {
  cursor: pointer;
  font: 700 12.5px/1 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0;
}
.af-form { display: grid; gap: 10px; margin-top: 10px; }

/* A disabled Withdraw button still has to look like a control, not like a decoration. */
.btn[disabled], .btn[disabled]:hover {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

@media (max-width: 430px) {
  .stat strong { font-size: 21px; }
  .stat p.note { display: none; }
}

/* Role switcher in the member-area header (brief 2026-11-11-0750).
   A multi-role account can jump between the areas its roles open. Navigation only: the server
   still refuses any area the account does not hold. */
.role-switcher-holder { display: inline-flex; align-items: center; }
.role-switcher { position: relative; display: inline-flex; }
.role-switcher-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid rgba(17, 17, 17, 0.18); border-radius: 999px;
  padding: 5px 11px; cursor: pointer; color: inherit;
  font: 600 12.5px/1 var(--body); letter-spacing: 0.01em;
}
.role-switcher-btn:hover { background: rgba(17, 17, 17, 0.05); }
.role-switcher-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.role-switcher-label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; opacity: 0.75; }
.role-switcher-now { font-weight: 700; }
.role-switcher-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 232px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid rgba(17, 17, 17, 0.14); border-radius: 14px;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.16);
}
.role-switcher-menu[hidden] { display: none; }
.role-switcher-item a {
  display: block; padding: 9px 11px; border-radius: 9px;
  font: 600 13.5px/1.2 var(--body); color: var(--ink); text-decoration: none;
}
.role-switcher-item a:hover, .role-switcher-item a:focus-visible { background: rgba(17, 17, 17, 0.06); }
.role-switcher-item.is-current a { background: var(--ink); color: #fff; }
@media (max-width: 860px) {
  .role-switcher-label { display: none; }
  .role-switcher-menu { right: auto; left: 0; min-width: 210px; }
}
.alert.good { background: #e4f8c8; }
