/* ===================================================================
   PAALENG TECHNOLOGY — design tokens, light "Soft Tech" theme
   Palette: airy neutral surfaces with a cyan signal accent and gold traced
   sparingly as the secondary brand accent (kept distinct from --warn,
   which stays reserved for genuine warning/attention states). Mono
   accents for anything that reads like system output (logs, status,
   data) — the site's cybersecurity register, made literal.
=================================================================== */
:root {
  --paper-50: #f6f9fc;
  --paper-100: #ffffff;
  --paper-200: #edf3f8;
  --paper-300: #dce7f0;
  --line: #dce6ef;

  --text-hi: #172b45;
  --text-mid: #52677f;
  --text-low: #71849a;

  --cyan: #168aa1;
  --cyan-hi: #20a9c0;
  --cyan-dim: #168aa114;
  --gold: #d99b2b;
  --gold-hi: #e8b652;
  --gold-dim: #d99b2b18;
  --good: #2bb894;
  --good-dim: #2bb89420;
  --warn: #f2a93b;
  --warn-dim: #f2a93b20;
  --danger: #ef5b6a;
  --danger-dim: #ef5b6a20;

  --font-display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, monospace;

  --radius: 6px;
  --radius-sm: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper-50);
  color: var(--text-hi);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--text-hi);
}

p { color: var(--text-mid); margin: 0 0 1em; }

.mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- status pill: the recurring "system online" motif ---- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--good);
  background: var(--good-dim);
  border: 1px solid #2bb89455;
  padding: 6px 12px;
  border-radius: 999px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 #2bb89455;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 #2bb8944d; }
  70%  { box-shadow: 0 0 0 8px #2bb89400; }
  100% { box-shadow: 0 0 0 0 #2bb89400; }
}

/* ---- top nav ---- */
.nav {
  border-bottom: 1px solid var(--line);
  background: #ffffffe6;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--text-hi);
}
.brand .node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  flex-shrink: 0;
}
/* Le nom "PAALENG TECHNOLOGY" fait partie de l'image elle-même — aucun
   format n'est plus recadré en cercle : object-fit: contain montre toujours
   le visuel complet (icône + texte). */
.logo-36, .logo-76, .logo-56 {
    object-fit: contain;
    display: block;
}

/* Format compact (barre de navigation) */
.logo-36 {
    width: 66px;
    height: 36px;
}

/* Format page d'accueil — agrandi */
.logo-76 {
    width: 201px;
    height: 110px;
}

/* Format 56px (certificat) */
.logo-56 {
    width: 103px;
    height: 56px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text-hi); background: var(--paper-200); }
.nav-links a.active { color: var(--cyan); background: var(--cyan-dim); }

/* ---- mobile nav toggle (hidden on desktop, see breakpoint below) ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: var(--text-hi); border-radius: 1px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan-hi), var(--cyan));
  color: #04211f;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: var(--paper-100);
  border-color: var(--line);
  color: var(--text-hi);
}
.btn-ghost:hover { background: var(--paper-200); }
.btn-danger {
  background: var(--paper-100);
  border-color: #ef5b6a40;
  color: var(--danger);
}
.btn-danger:hover { background: var(--danger-dim); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---- hero ---- */
.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, #ffffff08 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff08 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(700px 380px at 78% 15%, black, transparent 72%);
  mask-image: radial-gradient(700px 380px at 78% 15%, black, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  color: var(--text-hi);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- signature element: live signal console ---- */
.console {
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -28px #00000066;
}
.console-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-100);
}
.console-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-300); }
.console-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-low);
}
.console-body {
  padding: 18px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mid);
}
.console-line { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.console-line:last-child { border-bottom: none; }
.console-line .t { color: var(--text-low); flex-shrink: 0; }
.tag { padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.tag-good { background: var(--good-dim); color: var(--good); }
.tag-signal { background: var(--cyan-dim); color: var(--cyan); }
.tag-ai { background: var(--cyan-dim); color: var(--cyan); }
.tag-warn { background: var(--warn-dim); color: var(--warn); }

/* ---- section / cards ---- */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head .eyebrow { margin-bottom: 10px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 10px -6px #00000040;
}
.card h3 { font-size: 16px; margin-bottom: 8px; color: var(--text-hi); }
.card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-low);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #33d6c81a, #5fe4d81a);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
}
.cta-banner-lg { padding: 40px 36px; margin-top: 0; }
.cta-banner p { margin: 0; }

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-low);
  background: var(--paper-100);
}

/* ---- auth pages ---- */
.auth-shell {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 60px -32px #00000066;
}
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-low); font-size: 14px; margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 6px;
  font-weight: 600;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 14px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: transparent;
  background: var(--paper-200);
}
.field textarea { resize: vertical; min-height: 120px; font-family: var(--font-mono); font-size: 13px; }
.field-check { display: flex; align-items: center; gap: 8px; }
.field-check input { width: auto; }
.field-hint { font-size: 12px; color: var(--text-low); margin-top: 6px; }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 18px;
}
.alert-error { background: var(--danger-dim); border: 1px solid #ef5b6a40; color: var(--danger); }
.alert-good { background: var(--good-dim); border: 1px solid #2bb89440; color: var(--good); }

.flash-notice {
  position: fixed;
  z-index: 1000;
  top: 78px;
  right: 20px;
  width: min(420px, calc(100vw - 40px));
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px -16px #00000088;
  font-size: 14px;
}
.flash-notice-success { background: var(--good-dim); border: 1px solid #2bb89466; color: var(--good); }
.flash-notice-warning { background: #fff4d6; border: 1px solid #d8a42d66; color: #704f00; }

.legal-document {
  max-width: 900px;
  padding-top: 40px;
  padding-bottom: 64px;
  line-height: 1.7;
}
.legal-document h1 { margin: 12px 0 24px; }
.legal-document h2 { margin: 30px 0 8px; font-size: 19px; }
.legal-document p { color: var(--text-mid); }
.legal-document a { color: var(--cyan); }
.legal-draft {
  padding: 14px 18px;
  border: 1px solid #d8a42d66;
  border-radius: var(--radius-sm);
  background: #fff4d6;
  color: #704f00;
}

.auth-foot { margin-top: 20px; font-size: 13px; color: var(--text-low); text-align: center; }
.auth-foot a { color: var(--cyan); text-decoration: none; font-weight: 600; }

/* ---- app shell (dashboard / admin) ---- */
.shell { display: flex; min-height: calc(100vh - 65px); }
.sidebar {
  width: 230px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 24px 14px;
  background: var(--paper-100);
}
.sidebar .group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-low);
  padding: 0 10px;
  margin: 18px 0 8px;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 2px;
}
.sidebar a:hover { background: var(--paper-100); color: var(--text-hi); }
.sidebar a.active { background: var(--cyan-dim); color: var(--cyan); font-weight: 600; }
.main { flex: 1; padding: 32px; min-width: 0; }
.main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.main-head h1 { font-size: 22px; margin: 0; }
.main-head p { margin: 4px 0 0; font-size: 14px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
/* Admin dashboards need other column counts (2/4/6 stat boxes); a class
   keeps that responsive, unlike the inline grid-template-columns these
   pages used to carry, which no media query could ever override. */
.stat-row-2 { grid-template-columns: repeat(2, 1fr); }
.stat-row-4 { grid-template-columns: repeat(4, 1fr); }
.stat-row-6 { grid-template-columns: repeat(6, 1fr); }
.stat {
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat .num { font-family: var(--font-display); font-size: 28px; color: var(--text-hi); }
.stat .label { font-size: 12px; color: var(--text-low); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-low);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-100);
}
tbody td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--text-mid); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--paper-100); }
.table-wrap {
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.pill { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.pill-admin { background: var(--cyan-dim); color: var(--cyan); }
.pill-user { background: var(--paper-200); color: var(--text-mid); }
.pill-active { background: var(--good-dim); color: var(--good); }
.pill-suspended { background: var(--danger-dim); color: var(--danger); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions form { display: inline; }

.fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-low);
  line-height: 1;
  padding: 2px;
}
.fav-btn.is-fav { color: var(--danger); }
.fav-btn:hover { color: var(--danger); }

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04211f;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}

.progress-bar {
  height: 6px;
  background: var(--paper-200);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-hi));
  border-radius: 999px;
  transition: width .3s ease;
}

.certificate {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 30px 70px -36px #00000066;
  position: relative;
}
.certificate::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--paper-300);
  border-radius: 6px;
  pointer-events: none;
}
.certificate-mark {
  margin: 0 auto 18px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
  color: var(--text-low);
  font-size: 13px;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-brand img { width: 40px; height: 22px; object-fit: contain; display: block; }

/* ---- mobile nav: collapse the inline link row into a toggled dropdown
   panel. 1180px, not 860px — measured: the full inline row (5 links +
   shipping-country + language selects + auth actions) still overflows
   at 1024px and only clears at ~1150px, so the breakpoint has to sit
   above that with margin, not at the grid/layout breakpoint below. ---- */
@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .nav-inner { position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper-50);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    box-shadow: 0 24px 40px -20px #00000080;
  }
  .nav-links.is-open { display: flex; }
  /* Each direct child (a link, or one of the country/language/logout
     <form> wrappers) becomes a full-width row with a real tap target,
     overriding the inline margin-left each carries for the desktop
     inline layout. */
  .nav-links > * { margin-left: 0 !important; width: 100%; }
  .nav-links a { padding: 12px 10px; font-size: 15px; }
  .nav-links select { width: 100%; padding: 10px 12px; font-size: 14px !important; }
  .nav-links .btn { width: 100%; justify-content: center; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Tablet: 3-column grids drop to 2 columns rather than jumping
     straight to 1 (see the 640px block below for the phone step). */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .shell { flex-direction: column; }
  .sidebar { width: 100%; display: flex; overflow-x: auto; gap: 4px; border-right: none; border-bottom: 1px solid var(--line); }
  .sidebar .group-label { display: none; }
  .stat-row, .stat-row-2, .stat-row-4, .stat-row-6 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .certificate { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- homepage: a lighter, more welcoming expression of the brand ---- */
.home-page {
  background:
    radial-gradient(ellipse at 50% 0, #fff 0, transparent 58%),
    var(--paper-50);
  color: var(--text-hi);
}

.home-page .nav {
  background: #ffffffed;
  border-color: #e5edf4;
  box-shadow: 0 4px 20px #2948690a;
}

.home-page .nav-links a:hover { background: var(--paper-200); }
.home-page .nav-links a.active { color: var(--cyan); background: var(--cyan-dim); }
.home-page .nav-toggle { border-color: var(--line); }
.home-page .nav-toggle-bar { background: var(--text-hi); }
.home-page .brand { color: var(--text-hi); }
.home-page .brand .node { box-shadow: 0 0 10px #d99b2b70; }
.home-page .btn-primary { box-shadow: 0 8px 20px #168aa126; }
.home-page .btn-ghost { background: #ffffff; color: var(--text-hi); }
.home-page .btn-ghost:hover { background: var(--paper-200); }

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 100px) 0 clamp(52px, 7vw, 84px);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 4%, #fff 0, #ffffffd9 34%, transparent 75%),
    linear-gradient(180deg, #f3f9fc 0%, #f6f9fc 100%);
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  content: '';
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.home-hero::before {
  width: 360px;
  height: 360px;
  top: -190px;
  left: calc(50% - 180px);
  background: #f5cf7952;
}

.home-hero::after {
  width: 480px;
  height: 280px;
  bottom: -220px;
  left: calc(50% - 240px);
  background: #74d7e124;
}

.home-hero-inner { position: relative; z-index: 1; }
.home-hero-logo { width: 154px; height: 84px; margin: 0 auto 18px; }
.home-brand-title {
  margin: 0 0 8px;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 700;
  letter-spacing: .17em;
}
.home-tagline {
  margin: 0 auto 24px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(17px, 2.3vw, 22px);
  font-weight: 600;
}
.home-hero h1 {
  max-width: 17ch;
  margin: 0 auto 16px;
  color: var(--text-hi);
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.home-hero-copy {
  max-width: 62ch;
  margin: 0 auto 28px;
  color: var(--text-mid);
  font-size: clamp(16px, 1.7vw, 18px);
}
.home-hero-cta { padding: 13px 24px; border-radius: 999px; }

.home-tech-badge-wrap { display: flex; justify-content: center; margin-top: -22px; position: relative; z-index: 2; }
.home-tech-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 11px 22px;
  list-style: none;
  color: var(--text-mid);
  background: #ffffffeb;
  border: 1px solid #e0e9f0;
  border-radius: 999px;
  box-shadow: 0 12px 34px #29486912;
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
}
.home-tech-badge .home-tech-separator { color: var(--gold); }

.home-page .section { padding: clamp(52px, 7vw, 84px) 0; border-color: #e5edf4; }
.home-page .section-head { margin-bottom: 28px; }
.home-page .section-head h2 { font-size: clamp(27px, 3.5vw, 38px); line-height: 1.15; }
.home-page .section-head .eyebrow { color: var(--cyan); }
.home-section-head { max-width: 68ch; margin-left: auto; margin-right: auto; text-align: center; }
.home-section-head .eyebrow { justify-content: center; }
.home-section-head .eyebrow::before { display: none; }

.home-pillar-grid { gap: 18px; }
.home-pillar-card {
  position: relative;
  display: flex;
  min-height: 228px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #ffffffd9;
  border: 1px solid #e1eaf1;
  border-radius: 20px;
  box-shadow: 0 12px 34px #2847650b;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-pillar-card::after {
  position: absolute;
  right: -38px;
  bottom: -68px;
  width: 150px;
  height: 150px;
  content: '';
  border-radius: 50%;
  background: var(--pillar-glow, #69d5e51c);
  transition: transform .25s ease;
}
.home-pillar-academy { --pillar-glow: #6ad7e526; }
.home-pillar-marketplace { --pillar-glow: #f1c66c2e; }
.home-pillar-services { --pillar-glow: #a6c7ef2e; }
.home-pillar-card:hover,
.home-pillar-card:focus-visible {
  transform: translateY(-4px);
  border-color: #a8d9e3;
  box-shadow: 0 18px 42px #28476516, 0 0 0 3px #168aa10c;
}
.home-pillar-card:hover::after { transform: scale(1.16); }
.home-pillar-card:focus-visible,
.home-insight-list a:focus-visible,
.home-text-link:focus-visible { outline: 3px solid #168aa166; outline-offset: 3px; }
.home-pillar-index {
  margin-bottom: 20px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
}
.home-pillar-status {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 10px;
  color: var(--cyan);
  background: var(--cyan-dim);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.home-pillar-card h3 { margin: 0 0 8px; color: var(--text-hi); font-size: 22px; }
.home-pillar-card p { max-width: 26ch; margin: 0 0 22px; color: var(--text-mid); }
.home-pillar-link,
.home-text-link { position: relative; z-index: 1; color: var(--cyan); font-size: 14px; font-weight: 700; }
.home-pillar-link { margin-top: auto; }

.home-domains { background: linear-gradient(180deg, #eef5f9 0%, #f6f9fc 100%); }
.home-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-domain-card {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: var(--text-hi);
  background: #ffffffd9;
  border: 1px solid #e1eaf1;
  border-radius: 14px;
  box-shadow: 0 6px 20px #29486908;
  font-size: 14px;
  font-weight: 650;
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-domain-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px #29486912; }
.home-domain-card span { color: var(--gold); font-family: var(--font-mono); font-size: 11px; }
.home-about {
  max-width: 760px;
  margin: 36px auto 0;
  color: var(--text-mid);
  background: #ffffffa8;
  border: 1px solid #e1eaf1;
  border-radius: 14px;
}
.home-about summary { padding: 16px 20px; color: var(--text-hi); cursor: pointer; font-weight: 700; }
.home-about p { margin: 0; padding: 0 20px 20px; }

.home-offerings { background: #ffffff8c; }
.home-accordion-list { display: grid; gap: 14px; max-width: 940px; margin: 0 auto; }
.home-accordion {
  overflow: hidden;
  background: #ffffffdf;
  border: 1px solid #dfe9f0;
  border-radius: 18px;
  box-shadow: 0 10px 28px #2948690a;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.home-accordion[open] {
  border-color: #b8dbe3;
  box-shadow: 0 16px 38px #29486912;
}
.home-accordion summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px 24px;
  color: var(--text-hi);
  cursor: pointer;
  list-style: none;
}
.home-accordion summary::-webkit-details-marker { display: none; }
.home-accordion summary:focus-visible { outline: 3px solid #168aa166; outline-offset: -4px; }
.home-accordion-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  color: var(--cyan);
  background: var(--cyan-dim);
  border-radius: 15px;
}
.home-accordion-icon svg { width: 25px; height: 25px; }
.home-accordion-icon-services { color: #b47b1c; background: var(--gold-dim); }
.home-accordion-title { display: grid; gap: 4px; flex: 1; }
.home-accordion-title strong { font-family: var(--font-display); font-size: clamp(17px, 2vw, 21px); }
.home-accordion-title small { color: var(--text-low); font-size: 13px; }
.home-accordion-hint-open { display: none; }
.home-accordion[open] .home-accordion-hint-closed { display: none; }
.home-accordion[open] .home-accordion-hint-open { display: inline; }
.home-accordion-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  margin-right: 5px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.home-accordion[open] .home-accordion-chevron { transform: rotate(225deg) translate(-2px, -1px); }
.home-accordion-content {
  padding: 0 28px 28px;
  border-top: 1px solid #e8eef3;
  animation: home-accordion-reveal .2s ease-out;
}
@keyframes home-accordion-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.home-accordion-intro { margin: 20px 0; color: var(--text-mid); }
.home-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.home-offer-grid li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 14px;
  color: var(--text-hi);
  background: #f5f9fb;
  border: 1px solid #e7eef3;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
}
.home-offer-grid li span { color: var(--gold); }
.home-offer-grid-services li span { color: var(--cyan); }
.home-accordion-subheading { margin: 22px 0 14px; font-size: 17px; }
.home-accordion-cta { margin-top: 22px; border-radius: 999px; }

.home-insights-grid { gap: 18px; }
.home-insight-group {
  padding: 26px;
  background: #ffffffd9;
  border: 1px solid #e1eaf1;
  border-radius: 18px;
  box-shadow: 0 10px 28px #29486909;
}
.home-insight-group h3 { margin-bottom: 6px; font-size: 20px; }
.home-insight-group > p { min-height: 44px; margin-bottom: 18px; font-size: 14px; }
.home-insight-list { margin: 0 0 16px; padding: 0; list-style: none; }
.home-insight-list li + li { border-top: 1px solid #e8eef3; }
.home-insight-list a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  color: var(--text-hi);
  text-decoration: none;
}
.home-insight-list a:hover span { color: var(--cyan); }
.home-insight-list time { flex: 0 0 auto; color: var(--text-low); font-size: 11px; }
.home-text-link { display: inline-flex; gap: 7px; text-decoration: none; }
.home-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.home-catalog-block { margin-top: 56px; padding-top: 44px; background: #ffffff8c; border-top: 1px solid #e5edf4; }
.home-content-grid { gap: 16px; }
.home-content-grid .card {
  background: #fff;
  border-color: #e1eaf1;
  border-radius: 16px;
  box-shadow: 0 8px 24px #2948690b;
}
.home-content-grid .card h3 { color: var(--text-hi); }
.home-content-grid .card:hover { border-color: #b9dce3; box-shadow: 0 14px 32px #29486912; }
.home-catalog-block > .home-text-link { margin-top: 22px; }
.home-final-cta .cta-banner {
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(ellipse at 85% 20%, #f5d99145, transparent 42%),
    linear-gradient(135deg, #fff, #eef8fa);
  border-color: #dce9ef;
  border-radius: 22px;
  box-shadow: 0 20px 48px #29486912;
}
.home-final-cta .cta-banner h2 { font-size: clamp(26px, 3.5vw, 38px); }
.home-page .footer { border-color: #e5edf4; }

.site-footer {
  --paper-100: #ffffff;
  --paper-200: #f2f7fa;
  --line: #dce6ef;
  --text-hi: #172b45;
  --text-mid: #52677f;
  --text-low: #71849a;
  --cyan: #168aa1;
  --cyan-dim: #168aa114;
  --gold-dim: #d99b2b18;
  padding: 0 0 22px;
  border-top: 0;
  text-align: left;
}
.footer-contact-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.1fr);
  gap: 24px 42px;
  margin: 0 0 28px;
  padding: clamp(26px, 5vw, 44px);
  color: var(--text-hi);
  text-align: left;
  background:
    radial-gradient(ellipse at 86% 12%, #f2cc7640, transparent 38%),
    linear-gradient(135deg, var(--paper-100), var(--paper-200));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 46px #29486912;
}
.footer-contact-copy .eyebrow { margin-bottom: 10px; }
.footer-contact-copy h2 { margin-bottom: 8px; font-size: clamp(24px, 3vw, 34px); }
.footer-contact-copy p { max-width: 42ch; margin: 0; }
.footer-contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: center; }
.footer-contact-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: var(--text-hi);
  text-decoration: none;
  background: #ffffffc9;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  transform: translateY(-2px);
  border-color: #a8d9e3;
  box-shadow: 0 10px 24px #29486912;
}
.footer-contact-link:focus-visible,
.footer-social a:focus-visible,
.footer-links a:focus-visible { outline: 3px solid #168aa166; outline-offset: 3px; }
.footer-contact-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  color: var(--cyan);
  background: var(--cyan-dim);
  border-radius: 12px;
}
.footer-contact-icon svg { width: 21px; height: 21px; }
.footer-contact-link > span:last-child { display: grid; min-width: 0; gap: 2px; }
.footer-contact-link small { color: var(--text-low); font-size: 11px; }
.footer-contact-link strong { overflow-wrap: anywhere; font-size: 13px; }
.footer-social {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-social > span { margin-right: 6px; color: var(--text-mid); font-size: 13px; font-weight: 700; }
.footer-social a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text-mid);
  text-decoration: none;
  background: #ffffffb8;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.footer-social a:hover { transform: translateY(-2px); color: var(--cyan); background: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
}
.footer-bottom .footer-brand { margin: 0; }
.footer-bottom .footer-brand strong { color: var(--text-mid); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.footer-links a { color: var(--text-low); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-copyright { margin: 0; color: var(--text-low); font-size: 12px; }

.contact-launcher {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 900;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  background: var(--cyan);
  border: 1px solid #08788e;
  border-radius: 999px;
  box-shadow: 0 10px 28px #173a4b30;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.contact-launcher svg { width: 21px; height: 21px; flex: 0 0 21px; }
.contact-launcher:hover { transform: translateY(-2px); background: #08788e; box-shadow: 0 14px 32px #173a4b40; }
.contact-launcher:focus-visible { outline: 3px solid #168aa166; outline-offset: 4px; }

@media (max-width: 860px) {
  .home-domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact-panel { grid-template-columns: 1fr; gap: 22px; }
  .footer-social { grid-column: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .home-hero { padding-top: 48px; }
  .home-hero-logo { width: 130px; height: 72px; }
  .home-tech-badge { gap: 8px; padding: 10px 14px; font-size: 12px; }
  .home-pillar-card { min-height: 205px; padding: 24px; }
  .home-domain-grid { gap: 9px; }
  .home-domain-card { min-height: 68px; gap: 9px; padding: 12px; font-size: 12px; }
  .home-accordion summary { gap: 12px; min-height: 82px; padding: 15px; }
  .home-accordion-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
  .home-accordion-title small { font-size: 11px; }
  .home-accordion-content { padding: 0 16px 20px; }
  .home-offer-grid { grid-template-columns: 1fr; gap: 8px; }
  .home-insight-group { padding: 20px; }
  .home-insight-list a { flex-direction: column; gap: 4px; }
  .home-page .section { padding: 52px 0; }
  .footer-contact-details { grid-template-columns: 1fr; }
  .footer-social { align-items: flex-start; }
  .footer-social > span { width: 100%; }
  .footer-links { gap: 8px 12px; }
  .footer-copyright { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .home-pillar-card,
  .home-pillar-card::after,
  .home-domain-card,
  .home-accordion,
  .home-accordion-chevron,
  .footer-contact-link,
  .footer-social a { transition: none; }
  .home-accordion-content { animation: none; }
}

@media (max-width: 640px) {
  .contact-launcher {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 48px;
    padding: 11px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-launcher { transition: none; }
}

/* ==========================================================================
   Homepage announcements + promotional slideshow (admin-managed).
   Appended block — reuses the template's tokens; no rule above is changed.
   ========================================================================== */

.home-announcements { padding: 28px 0 0; }
.home-announcement-list {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.home-announcement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 18px;
  background: #ffffffd9;
  border: 1px solid #e1eaf1;
  border-left: 4px solid var(--cyan);
  border-radius: 14px;
  box-shadow: 0 10px 28px #2847650b;
}
.home-announcement-success { border-left-color: var(--good); }
.home-announcement-warning { border-left-color: var(--gold); }
.home-announcement-tag {
  flex-shrink: 0;
  padding: 4px 10px;
  color: var(--cyan);
  background: var(--cyan-dim);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.home-announcement-success .home-announcement-tag { color: var(--good); background: var(--good-dim); }
.home-announcement-warning .home-announcement-tag { color: var(--gold); background: var(--gold-dim); }
.home-announcement-text {
  flex: 1 1 260px;
  margin: 0;
  color: var(--text-hi);
  font-size: 14px;
  line-height: 1.55;
}
.home-announcement-link {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.home-announcement-link:hover { text-decoration: underline; }

.home-slideshow-section { padding: 36px 0 0; }
.home-slideshow {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}
.home-slides {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 20px;
  box-shadow: 0 12px 34px #2847650b;
  background: var(--paper-200);
}
.home-slides::-webkit-scrollbar { display: none; }
.home-slides:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
/* The frame takes the shape of the published images (--slide-ratio, set by
   routes/site.js from their dimensions); each image is shown whole. An image
   of a different shape is centred, with a blurred copy of itself filling the
   remaining space. */
.home-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  aspect-ratio: var(--slide-ratio, 16 / 9);
  background: #0f1f33;
}
.home-slide-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) brightness(.85);
  transform: scale(1.15);
}
.home-slide-link { position: relative; z-index: 1; display: block; width: 100%; height: 100%; color: inherit; }
.home-slide-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-slide-caption {
  z-index: 2;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 4px;
  padding: 18px 24px 22px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 0%, #0f1f33b3 100%);
  font-size: 14px;
}
.home-slide-caption strong { font-family: var(--font-display); font-size: clamp(16px, 2.2vw, 22px); }
.home-slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.home-slideshow-controls[hidden] { display: none; }
.home-slideshow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--text-hi);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.home-slideshow-btn:hover { background: var(--paper-200); }
.home-slideshow-pause { font-size: 11px; }
.home-slideshow-dots { display: flex; gap: 8px; }
.home-slideshow-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: var(--paper-300);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.home-slideshow-dot[aria-current="true"] { width: 26px; background: var(--cyan); }
.home-slideshow-btn:focus-visible,
.home-slideshow-dot:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.home-slide-play { position: relative; }
.home-slide-play[hidden] { display: none; }
.home-slide-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  padding-left: 5px;
  color: #ffffff;
  background: #0f1f33b3;
  border: 2px solid #ffffffcc;
  border-radius: 999px;
  font-size: 24px;
  transform: translate(-50%, -50%);
  transition: background .2s ease;
}
.home-slide-play:hover .home-slide-play-icon,
.home-slide-play:focus-visible .home-slide-play-icon { background: var(--cyan); }
.home-slide-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}
.home-slide-video .home-slide-frame + .home-slide-caption { display: none; }

@media (max-width: 640px) {
  .home-slide-caption { padding: 12px 16px 14px; font-size: 13px; }
  .home-announcement { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-slides { scroll-behavior: auto; }
}

/* ==========================================================================
   Academy: imported lesson content (helpers/lessonBlocks.js) and quiz
   hints / correction. Appended block — reuses the template's tokens; no
   platform rule above is changed.
   ========================================================================== */

.lesson-body { color: var(--text-hi); font-size: 15px; line-height: 1.7; }
.lesson-body > :first-child { margin-top: 0; }
.lesson-body-after-media { margin-top: 20px; }
.lesson-heading { margin: 28px 0 10px; font-family: var(--font-display); color: var(--text-hi); }
h2.lesson-heading { font-size: 20px; }
h3.lesson-heading { font-size: 17px; }
.lesson-paragraph { margin: 0 0 14px; color: var(--text-hi); }
.lesson-list { margin: 0 0 16px; padding-left: 22px; }
.lesson-list li { margin-bottom: 6px; }
.lesson-body code {
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: .9em;
  color: var(--cyan);
  background: var(--cyan-dim);
  border-radius: var(--radius-sm);
}
.lesson-code { margin: 0 0 18px; }
.lesson-code-title {
  margin-bottom: 6px;
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lesson-code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: #e6edf6;
  background: #10203a;
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
}
.lesson-code pre code { padding: 0; color: inherit; background: none; font-size: inherit; }
.lesson-table { margin: 0 0 18px; }
.lesson-callout {
  display: flex;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--cyan-dim);
  border: 1px solid #168aa140;
  border-radius: var(--radius);
}
.lesson-callout p { margin: 4px 0 0; }
.lesson-callout-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #ffffff;
  background: var(--cyan);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.lesson-callout-title { color: var(--text-hi); }
.lesson-callout-tip { background: var(--good-dim); border-color: #2bb89440; }
.lesson-callout-tip .lesson-callout-icon { background: var(--good); }
.lesson-callout-warning { background: var(--warn-dim); border-color: #f2a93b55; }
.lesson-callout-warning .lesson-callout-icon { background: var(--warn); }
.lesson-image { margin: 0 0 18px; }
.lesson-image img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.lesson-image figcaption { margin-top: 6px; color: var(--text-mid); font-size: 13px; }

.quiz-hint { margin-top: 6px; }
.quiz-hint summary { color: var(--cyan); font-size: 13px; font-weight: 600; cursor: pointer; }
.quiz-hint p { margin: 6px 0 0; color: var(--text-mid); font-size: 13px; }
.quiz-review { margin-bottom: 24px; }
.quiz-review-title { margin-bottom: 8px; font-size: 18px; }
.quiz-review-item {
  margin-bottom: 10px;
  padding: 12px 14px;
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-left: 4px solid var(--good);
  border-radius: var(--radius);
}
.quiz-review-ko { border-left-color: var(--danger); }
.quiz-review-question { margin: 0 0 6px; color: var(--text-hi); font-weight: 600; }
.quiz-review-mark { margin-right: 6px; color: var(--good); }
.quiz-review-ko .quiz-review-mark { color: var(--danger); }
.quiz-review-line { margin: 0 0 4px; color: var(--text-mid); font-size: 14px; }
.quiz-review-status { font-weight: 600; }
.quiz-review-explanation { margin: 4px 0 6px; color: var(--text-mid); font-size: 13px; }
