/* WRAPT LMS — Stylesheet */
/* Colour palette matches WRAPT green branding across the ecosystem.
   Visual language: layered, colour-matched shadows (not one flat grey
   blur on everything) + purposeful gradients on interactive/brand
   surfaces (buttons, nav, progress, active states) with a soft satin
   highlight — restrained, not a glassy bubble-button look. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #4a7c59;
  --green-dark: #3d684b;
  --green-xd:   #2e5237;
  --green-lite: #c8e6c9;
  --green-a:    #5f9470;  /* gradient light stop */
  --green-b:    #3d684b;  /* gradient dark stop */
  --accent:     #4a7c59;
  --success:    #276749;
  --danger:     #c0392b;
  --warn:       #975a16;
  --bg:         #eef2ee;
  --card:       #ffffff;
  --border:     #e3e6e2;
  --text:       #222222;
  --muted:      #666666;
  --radius:     12px;

  /* Neutral shadows carry a faint green-grey undertone (never pure
     black) so they read as this brand's shadows, not a generic kit's.
     Two layers each: a tight "contact" shadow + a soft diffuse one. */
  --shadow-sm: 0 1px 2px rgba(28,40,30,.06), 0 1px 1px rgba(28,40,30,.04);
  --shadow-md: 0 1px 2px rgba(28,40,30,.05), 0 10px 24px -8px rgba(28,40,30,.16);
  --shadow-lg: 0 2px 4px rgba(28,40,30,.06), 0 20px 48px -10px rgba(28,40,30,.22);
  --shadow:    var(--shadow-md); /* kept for anything still referencing the old single token */

  /* Colour-matched glow shadows for brand-coloured surfaces */
  --glow-green: 0 6px 16px -4px rgba(46,82,55,.4), 0 2px 4px rgba(46,82,55,.25);
  --glow-danger: 0 6px 16px -4px rgba(192,57,43,.35), 0 2px 4px rgba(192,57,43,.2);
  --glow-success: 0 6px 16px -4px rgba(39,103,73,.35), 0 2px 4px rgba(39,103,73,.2);

  /* A thin, near-invisible highlight line used on the upper edge of
     raised elements — the "satin" part of the glossy feel. */
  --sheen: inset 0 1px 0 rgba(255,255,255,.5);
  --sheen-dark: inset 0 1px 0 rgba(255,255,255,.16);
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #f7faf7 0%, var(--bg) 340px);
  background-attachment: fixed;
  color: var(--text); line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ── Navbar ──
   Desktop (≥860px): brand + a single horizontal row of links/dropdown
   groups, as before. Mobile (<860px): brand + a hamburger button. Links
   live in a dropdown panel toggled by a hidden checkbox (no JS needed,
   so it can't break); the nav-dropdown groups become inline accordions
   there instead of floating panels — see the mobile override below. */
.navbar {
  background: linear-gradient(155deg, var(--green-a) 0%, var(--green) 45%, var(--green-b) 100%);
  color: #fff; padding: .75rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100; flex-wrap: nowrap;
  box-shadow: var(--sheen), 0 2px 4px rgba(0,0,0,.12), 0 10px 24px -6px rgba(23,41,27,.35);
}
.navbar .brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.navbar .brand-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0;
  background: linear-gradient(155deg, rgba(255,255,255,.32), rgba(255,255,255,.08));
  box-shadow: var(--sheen), inset 0 -1px 2px rgba(0,0,0,.15);
}

.nav-toggle-checkbox { display: none; }
.nav-toggle-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle-btn span { display: block; width: 22px; height: 2.5px; background: #fff; border-radius: 2px; }
.nav-overlay { display: none; }

.nav-links { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.nav-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .88rem; padding: .3rem .65rem; border-radius: 6px; transition: background .15s; }
.nav-links a:hover { background: rgba(255,255,255,.16); color: #fff; }
.nav-links a.active { background: rgba(255,255,255,.22); color: #fff; box-shadow: var(--sheen-dark), 0 1px 3px rgba(0,0,0,.15); }
.nav-links a.nav-dim { color: rgba(255,255,255,.6); }
.nav-user { color: rgba(255,255,255,.75); font-size: .85rem; padding: .2rem .5rem; }
.nav-logout { background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.32); border-radius: 6px !important; }
.nav-logout:hover { background: rgba(255,255,255,.22) !important; }

/* ── Nav dropdown groups (Admin / Trainer / Settings) ──
   Desktop: a button that toggles a floating panel of links, positioned
   with plain CSS (position:relative on the group, absolute on the
   panel) — the navbar has no overflow:hidden ancestor, unlike the
   in-table row-menu, so it doesn't need JS-computed fixed positioning. */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  background: none; border: none; cursor: pointer; font: inherit;
  color: rgba(255,255,255,.85); font-size: .88rem; padding: .3rem .65rem; border-radius: 6px;
  display: inline-flex; align-items: center; gap: .3rem; transition: background .15s;
}
.nav-dropdown-btn:hover, .nav-dropdown-btn[aria-expanded="true"] { background: rgba(255,255,255,.16); color: #fff; }
.nav-dropdown-btn .caret { font-size: .65em; transition: transform .15s; }
.nav-dropdown-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: 100%; left: 0; margin-top: .5rem; min-width: 190px;
  background: #fff; border-radius: 12px; box-shadow: var(--sheen), var(--shadow-lg);
  padding: .4rem; display: none; z-index: 150;
}
.nav-dropdown-panel.open { display: block; }
.nav-dropdown-panel a {
  display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600; transition: background .1s;
}
.nav-dropdown-panel a:hover { background: #f0f7f2; }
.nav-dropdown-panel a.active { background: #e3f0e6; color: var(--green-xd); }

@media (max-width: 860px) {
  .nav-toggle-btn { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 82vw);
    background: linear-gradient(165deg, var(--green-xd), #223f2c 120%); flex-direction: column; align-items: stretch;
    gap: 0; padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem 1rem;
    transform: translateX(100%); transition: transform .22s ease; z-index: 210;
    overflow-y: auto; box-shadow: -6px 0 32px rgba(0,0,0,.38);
  }
  .nav-links a, .nav-links .nav-user { width: 100%; padding: .9rem .75rem; font-size: 1rem; border-radius: 8px; box-sizing: border-box; }
  .nav-links .nav-user { color: rgba(255,255,255,.7); }
  .nav-links .nav-logout { margin-top: .5rem; text-align: center; }

  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; }

  .nav-toggle-checkbox:checked ~ .nav-overlay { display: block; }
  .nav-toggle-checkbox:checked ~ .nav-links { transform: translateX(0); }

  /* Dropdown groups become inline accordions in the flyout rather than
     floating panels — a floating panel inside a narrow, scrollable
     flyout is awkward, an inline expand reads naturally as a list. */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-btn { width: 100%; padding: .9rem .75rem; font-size: 1rem; border-radius: 8px; justify-content: space-between; }
  .nav-dropdown-panel {
    position: static; margin-top: 0; box-shadow: none; background: transparent; padding: 0 0 0 .75rem;
    border-left: 2px solid rgba(255,255,255,.18); margin-left: .75rem;
  }
  .nav-dropdown-panel a { color: rgba(255,255,255,.8); padding: .8rem .75rem; font-size: .95rem; }
  .nav-dropdown-panel a:hover, .nav-dropdown-panel a.active { background: rgba(255,255,255,.12); color: #fff; }
}

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem; }

/* ── Buttons ──
   Each filled variant is a gradient (light-to-dark of its own hue)
   with a matching colour-glow shadow and a thin satin highlight along
   the top edge. Press state flattens the gradient and drops the glow
   so pressing one feels physically like pushing a raised surface in
   and back out — no separate "loading"/"active" styling needed. */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .58rem 1.25rem; border-radius: 999px; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; border: none; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1.5px); filter: brightness(1.04); }
.btn:active { transform: translateY(0); filter: brightness(.97); }

.btn-primary   { background: linear-gradient(160deg, var(--green-a), var(--green) 55%, var(--green-b)); color: #fff; box-shadow: var(--sheen), var(--glow-green); }
.btn-primary:active { box-shadow: inset 0 1px 3px rgba(0,0,0,.18); }

.btn-success   { background: linear-gradient(160deg, #34c47a, #27ae60 55%, #1e8449); color: #fff; box-shadow: var(--sheen), var(--glow-success); }
.btn-success:active { box-shadow: inset 0 1px 3px rgba(0,0,0,.18); }

.btn-danger    { background: linear-gradient(160deg, #dd5646, var(--danger) 55%, #952d21); color: #fff; box-shadow: var(--sheen), var(--glow-danger); }
.btn-danger:active { box-shadow: inset 0 1px 3px rgba(0,0,0,.18); }

.btn-secondary { background: linear-gradient(160deg, #fbfbfb, #e9e9e9); color: var(--text); box-shadow: var(--sheen), var(--shadow-sm); border: 1px solid rgba(0,0,0,.05); }
.btn-secondary:hover { background: linear-gradient(160deg, #ffffff, #ececec); }
.btn-secondary:active { box-shadow: inset 0 1px 3px rgba(0,0,0,.08); }

.btn-outline   { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; box-shadow: var(--glow-green); transform: translateY(-1.5px); }
.btn-outline:active { transform: translateY(0); }

/* Small inline action buttons — used for the clusters of per-row
   actions in admin tables (Edit / Sessions / Quiz / Publish / Delete
   etc). Fixed height + line-height regardless of whether the label
   has an emoji in it, so a row of mixed icon+text buttons lines up
   cleanly instead of the one with an emoji throwing its height off
   and making the row look ragged. */
.btn-sm { height: 30px; padding: 0 .7rem; font-size: .78rem; line-height: 1; gap: .3rem; }
.btn-sm.btn-outline { border-width: 1.5px; }

/* Groups of small action buttons in a table cell: an explicit fixed
   number of rows (set per-page via inline row grouping) rather than
   one flex-wrap pile — wrapping is what makes a row of several buttons
   of different widths look messy, since where the wrap falls shifts
   with the column's width instead of ever landing the same way twice. */
.actions-stack { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.actions-row { display: flex; gap: .4rem; align-items: center; }
.actions-row form { display: contents; } /* the form itself shouldn't take up a flex slot — only its button should */

/* ── Row overflow menu ──
   Best practice for "too many actions in a row": show only the 1–2
   most-used ones as buttons, and tuck the rest behind a "⋮" menu
   (same pattern as Gmail/GitHub/Notion row actions) rather than
   cramming every action into visible buttons. The panel is
   position:fixed and placed via JS (assets/app.js) using the
   trigger's own bounding box, rather than being positioned relative
   to its row — a plain CSS dropdown would get clipped by
   .table-wrap's overflow-x:auto (needed for wide tables) the moment
   it tried to open below the visible/scrolled area. */
.row-menu { position: relative; display: inline-flex; }
.row-menu-btn {
  width: 30px; height: 30px; padding: 0; border-radius: 999px; font-size: 1.15rem; font-weight: 700; line-height: 1;
  background: linear-gradient(160deg, #fbfbfb, #e9e9e9); color: var(--text); border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--sheen), var(--shadow-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .12s ease, filter .12s ease, background .12s ease, color .12s ease;
}
.row-menu-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.row-menu-btn[aria-expanded="true"] { background: linear-gradient(160deg, var(--green-a), var(--green-b)); color: #fff; box-shadow: var(--sheen), var(--glow-green); }

.row-menu-panel {
  position: fixed; min-width: 190px; background: #fff; border-radius: 12px; border: 1px solid var(--border);
  box-shadow: var(--sheen), var(--shadow-lg); padding: .4rem; z-index: 500; display: none;
}
.row-menu-panel.open { display: block; }
.row-menu-panel form { display: block; margin: 0; }
.row-menu-item {
  display: flex; align-items: center; gap: .55rem; width: 100%; padding: .6rem .7rem; border-radius: 8px; border: none; background: none;
  font-size: .88rem; font-weight: 600; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; transition: background .1s ease;
}
.row-menu-item:hover { background: #f0f7f2; }
.row-menu-item.danger { color: var(--danger); }
.row-menu-item.danger:hover { background: #fdf0ee; }
.row-menu-divider { height: 1px; background: var(--border); margin: .3rem .2rem; }

/* ── Cards ──
   A soft two-layer shadow plus a near-invisible top sheen, so cards
   feel gently raised off the (now faintly gradient-toned) page rather
   than merely outlined. Interactive cards (plain <a class="card">
   tiles, used for course/session pickers) lift further on hover. */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--sheen), var(--shadow-md); transition: box-shadow .18s ease, transform .18s ease; }
a.card:hover, .card[data-clickable]:hover { transform: translateY(-2px); box-shadow: var(--sheen), var(--shadow-lg); border-color: #d3dcd4; }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: var(--green-xd); }
.card-meta  { font-size: .82rem; color: var(--muted); margin-bottom: .75rem; }

/* ── Grid ── */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ── Stats bar ── */
.stats-bar { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.stat-box { background: linear-gradient(165deg, #ffffff, #fafcfa); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; flex: 1 1 140px; text-align: center; box-shadow: var(--sheen), var(--shadow-md); }
.stat-box .stat-num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(160deg, var(--green-a), var(--green-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-box .stat-lbl { font-size: .8rem; color: var(--muted); }

/* ── Alerts ── */
.alert { padding: .85rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.alert-success { background: linear-gradient(160deg, #e3f8ea, #d5f5e3); color: #1e8449; border-left: 4px solid #27ae60; }
.alert-error   { background: linear-gradient(160deg, #fce4e1, #fadbd8); color: #922b21; border-left: 4px solid #c0392b; }
.alert-info    { background: linear-gradient(160deg, #e2f0fa, #d6eaf8); color: #1a5276; border-left: 4px solid #2980b9; }

/* ── Forms ── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .9rem; color: var(--green-xd); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .55rem .85rem; border: 1px solid #ccc;
  border-radius: 8px; font-size: .95rem; color: var(--text); background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green); box-shadow: inset 0 1px 2px rgba(0,0,0,.04), 0 0 0 3px rgba(74,124,89,.18);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

/* ── Tables ──
   Desktop: normal table. Mobile (<700px): each row becomes its own
   card and each cell stacks as a label/value pair — no horizontal
   scrolling. Every <td> needs data-label="Column Name" for this to
   work (the label text comes from that attribute, not the <th>,
   since the header row itself is hidden on mobile). */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
th { background: linear-gradient(180deg, #f4faf5, #eef6f0); font-weight: 700; color: var(--green-xd); }
tr:hover td { background: #f9fdf9; }

@media (max-width: 700px) {
  .table-wrap { overflow-x: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .table-wrap tr { border: 1px solid var(--border); border-radius: var(--radius); margin: .75rem; padding: .4rem .9rem; background: #fff; box-shadow: var(--sheen), var(--shadow-sm); }
  .table-wrap tr:hover td { background: transparent; }
  .table-wrap td { border-bottom: 1px solid #f2f2f2; padding: .6rem 0; }
  .table-wrap td:last-child { border-bottom: none; }
  .table-wrap td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .25rem; }
  .table-wrap td[data-label=""]::before, .table-wrap td:not([data-label])::before { content: none; }
}

/* ── Page header ── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem; }
.page-header h1 { font-size: 1.5rem; color: var(--green-xd); }
.back-link { font-size: .85rem; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: .35rem; }
.back-link:hover { color: var(--green); }

/* ── Progress bar ── */
.progress-wrap { background: #e2e6e2; border-radius: 99px; height: 10px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
.progress-bar  { height: 100%; border-radius: 99px; transition: width .4s;
  background: linear-gradient(90deg, var(--green-a), var(--green-b));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

/* ── Badge ──
   Soft gradient fill instead of a flat pastel chip, plus a whisper of
   shadow so they read as small raised tags rather than plain text
   backgrounds — kept subtle since a badge's job is to be scanned fast. */
.badge { display: inline-block; padding: .22rem .75rem; border-radius: 99px; font-size: .75rem; font-weight: 700; box-shadow: 0 1px 2px rgba(28,40,30,.08); }
.badge-success { background: linear-gradient(160deg, #e3f8ea, #cdf0d8); color: var(--success); }
.badge-danger  { background: linear-gradient(160deg, #fce4e1, #f8cdc7); color: var(--danger); }
.badge-warn    { background: linear-gradient(160deg, #fef9e7, #fbf0c9); color: var(--warn); }
.badge-info    { background: linear-gradient(160deg, #e2f0fa, #c9e4f6); color: #1a5276; }
.badge-muted   { background: linear-gradient(160deg, #f4f4f4, #e6e6e6); color: var(--muted); box-shadow: none; }

/* ── Lesson sidebar layout ── */
.two-col { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.sidebar { position: sticky; top: 76px; }
.sidebar-title { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: .5rem .75rem .25rem; }
.lesson-link { display: block; padding: .55rem .75rem; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .88rem; margin-bottom: .2rem; border: 1px solid transparent; transition: background .12s; }
.lesson-link:hover { background: #f0f7f2; }
.lesson-link.active { background: linear-gradient(155deg, var(--green-a), var(--green-b)); color: #fff; box-shadow: var(--sheen), var(--glow-green); }
.lesson-link.done  { color: var(--muted); }
.lesson-link.done::before { content: '✓ '; color: var(--success); }

/* ── Lesson content ── */
.lesson-content { line-height: 1.9; font-size: .98rem; }
.lesson-content h2, .lesson-content h3 { margin: 1.25rem 0 .5rem; color: var(--green-xd); }
.lesson-content p  { margin-bottom: .9rem; }
.lesson-content ul, .lesson-content ol { padding-left: 1.5rem; margin-bottom: .9rem; }
.lesson-content li { margin-bottom: .3rem; }
.lesson-content blockquote { border-left: 4px solid var(--green); padding-left: 1rem; color: var(--muted); margin: 1rem 0; font-style: italic; }

/* ── Quiz ── */
.question-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--sheen), var(--shadow-md); }
.question-text  { font-weight: 700; margin-bottom: .85rem; color: var(--green-xd); }
.option-label   { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: 8px; cursor: pointer; transition: background .12s; }
.option-label:hover { background: #f0f7f2; }
.option-label input[type="radio"] { accent-color: var(--green); cursor: pointer; }

/* ── Certificate ── */
.cert-wrap {
  max-width: 760px; margin: 2rem auto; text-align: center; padding: 3rem 2.5rem;
  background: linear-gradient(165deg, #ffffff, #fbfdfb);
  border-radius: 18px;
  border: 1px solid var(--green-lite);
  box-shadow: var(--sheen), var(--shadow-lg);
  position: relative;
}
.cert-wrap::before {
  content: ''; position: absolute; inset: 12px; border: 2px solid var(--green-lite); border-radius: 12px; pointer-events: none;
}
.cert-logo  { font-size: 2.5rem; margin-bottom: .25rem; }
.cert-kicker { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.cert-body  { font-size: 1rem; margin-bottom: .4rem; color: var(--muted); }
.cert-name  {
  font-size: 2.1rem; font-weight: 700; display: inline-block; padding-bottom: .25rem; margin: .5rem 0 1rem;
  background: linear-gradient(160deg, var(--green-a), var(--green-xd));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 2px solid var(--green);
}
.cert-course { font-size: 1.3rem; font-weight: 700; color: var(--green); margin: .5rem 0 1.5rem; }
.cert-org   { font-size: .85rem; color: var(--muted); margin-top: 1.5rem; }
.cert-date  { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.cert-uuid  { font-size: .7rem; color: #bbb; margin-top: .5rem; }
@media print {
  .navbar, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .container { padding: 0; }
  .cert-wrap { box-shadow: none; }
}

/* ── Site footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 1.25rem; text-align: center; font-size: .8rem; color: var(--muted); margin-top: 3rem; }

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
