/* ==========================================================================
   Let's Get Hairy -- Referral Consultant Training Platform
   Brand theme: navy #0d1b2e, gold #c9a84c, Georgia serif.
   A Wolf Pak Strategies product.
   ========================================================================== */

:root {
  --navy: #0d1b2e;
  --navy-soft: #1e2e44;
  --gold: #c9a84c;
  --gold-dark: #8a6a00;
  --ink: #1a1a2e;
  --grey: #666;
  --line: #e4e0d6;
  --bg: #f6f4ef;
  --card: #ffffff;
  --green: #1a7a2e;
  --red: #b22222;
  --shadow: 0 2px 10px rgba(13, 27, 46, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--navy); }

/* ---- Top bar ---- */
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
/* LOGO SWAP POINT: replace .brand-mark with an <img> of the client logo
   once Let's Get Hairy delivers brand assets. */
.brand-mark {
  width: 38px; height: 38px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-weight: bold; font-size: 15px;
  letter-spacing: .02em;
}
.brand-text { line-height: 1.15; }
.brand-name { color: var(--gold); font-weight: bold; font-size: 15px;
  letter-spacing: .04em; }
.brand-sub { font-size: 10px; color: #7a9ab0; letter-spacing: .1em;
  text-transform: uppercase; }

.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a { color: #cdd8e4; text-decoration: none; font-size: 14px; }
.topnav a:hover { color: var(--gold); }
.topnav .who { color: #7a9ab0; font-size: 13px; }

/* ---- Layout ---- */
.wrap { max-width: 960px; margin: 0 auto; padding: 32px 24px 64px; }
.wrap-narrow { max-width: 620px; }

h1 { font-size: 26px; color: var(--navy); margin-bottom: 6px; }
h2 { font-size: 20px; color: var(--navy); margin: 26px 0 10px; }
h3 { font-size: 17px; color: var(--navy); margin: 18px 0 8px; }
p { margin-bottom: 12px; }
.lead { color: var(--grey); font-size: 16px; margin-bottom: 20px; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin-bottom: 20px;
}
.card-gold { border-left: 4px solid var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--navy-soft); }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: bold; }
.btn-gold:hover { background: #b8942f; }
.btn-ghost { background: transparent; color: var(--navy);
  border: 1px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #8f1a1a; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled, .btn.disabled { background: #b8b8b8; color: #f0f0f0;
  cursor: not-allowed; pointer-events: none; }

/* ---- Module list ---- */
.module-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.module-row:last-child { border-bottom: none; }
.module-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 18px; flex-shrink: 0;
}
.module-badge.done { background: var(--green); color: #fff; }
.module-badge.locked { background: #cfcabb; color: #fff; }
.module-info { flex: 1; }
.module-info .t { font-weight: bold; color: var(--navy); font-size: 17px; }
.module-info .s { color: var(--grey); font-size: 14px; }
.module-status { font-size: 13px; text-transform: uppercase;
  letter-spacing: .06em; }
.status-done { color: var(--green); font-weight: bold; }
.status-locked { color: #a09a88; }

/* ---- Lesson content ---- */
.lesson h2 { border-left: 4px solid var(--gold); padding-left: 12px; }
.lesson p { font-size: 16px; }
.progress-note { color: var(--grey); font-size: 14px; margin-bottom: 18px; }

/* ---- Quiz ---- */
.q-block { margin-bottom: 26px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line); }
.q-block:last-of-type { border-bottom: none; }
.q-type { font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold-dark); font-weight: bold; }
.q-text { font-weight: bold; color: var(--navy); margin: 4px 0 12px;
  font-size: 17px; }
.opt { display: block; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 6px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.opt:hover { border-color: var(--gold); background: #fffdf6; }
.opt input { margin-right: 10px; }
.opt.correct { border-color: var(--green); background: #f0f9f1; }
.opt.wrong { border-color: var(--red); background: #fdf0f0; }
.explain { font-size: 14px; color: var(--grey); margin-top: 8px;
  padding-left: 14px; border-left: 3px solid var(--line); }

/* ---- Score banner ---- */
.score-banner { text-align: center; padding: 28px; border-radius: 10px;
  margin-bottom: 24px; }
.score-pass { background: #eef8f0; border: 2px solid var(--green); }
.score-fail { background: #fdf2f2; border: 2px solid var(--red); }
.score-big { font-size: 44px; font-weight: bold; }
.score-pass .score-big { color: var(--green); }
.score-fail .score-big { color: var(--red); }

/* ---- Certificate preview ---- */
.cert-preview {
  border: 6px solid var(--navy); border-radius: 6px; padding: 40px 30px;
  text-align: center; background: #fff; position: relative; margin-bottom: 20px;
}
.cert-preview::after {
  content: ''; position: absolute; inset: 10px;
  border: 1.5px solid var(--gold); border-radius: 3px; pointer-events: none;
}
.cert-brand { color: var(--gold); font-weight: bold; letter-spacing: .04em; }
.cert-title { font-size: 26px; color: var(--navy); margin: 14px 0; }
.cert-name { font-size: 28px; font-weight: bold; color: var(--ink);
  margin: 10px 0; }
.cert-meta { display: flex; justify-content: space-between; margin-top: 30px;
  font-size: 14px; }
.cert-cred { color: var(--navy); font-weight: bold; }

/* ---- Forms ---- */
label.field { display: block; margin-bottom: 14px; }
label.field span { display: block; font-size: 13px; color: var(--grey);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
input[type=text], input[type=password], input[type=email] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 6px; font-family: inherit; font-size: 15px; background: #fff;
}
input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

/* ---- Tables (admin) ---- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: var(--navy); color: var(--gold); text-align: left;
  padding: 10px 12px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .05em; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line);
  vertical-align: middle; }
.table tr:nth-child(even) td { background: #faf9f5; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 11px; font-weight: bold; text-transform: uppercase;
  letter-spacing: .04em; }
.pill-green { background: #e2f3e6; color: var(--green); }
.pill-grey { background: #eceae3; color: var(--grey); }
.pill-red { background: #f8e2e2; color: var(--red); }
.pill-gold { background: #f7eecb; color: var(--gold-dark); }

/* ---- Stats ---- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow); }
.stat .n { font-size: 30px; font-weight: bold; color: var(--navy); }
.stat .l { font-size: 12px; color: var(--grey); text-transform: uppercase;
  letter-spacing: .05em; }

/* ---- Flash ---- */
.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px;
  font-size: 14px; }
.flash-error { background: #fdf0f0; border: 1px solid #e8a8a8;
  color: var(--red); }
.flash-success { background: #eef8f0; border: 1px solid #9dd3a8;
  color: var(--green); }

/* ---- Banner (compliance / notice) ---- */
.notice { background: #fffbf0; border: 1px solid #e8d48a; border-radius: 8px;
  padding: 12px 18px; font-size: 14px; color: #4a3a00; margin-bottom: 20px; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #7a9ab0; padding: 20px 28px;
  font-size: 12px; text-align: center; line-height: 1.7; }
.site-footer a { color: var(--gold); text-decoration: none; }

/* ---- Utility ---- */
.row-between { display: flex; justify-content: space-between; align-items: center; }
.mt { margin-top: 18px; }
.muted { color: var(--grey); }
.center { text-align: center; }

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .topnav { gap: 12px; }
  .cert-meta { flex-direction: column; gap: 8px; }
  .wrap { padding: 20px 14px 48px; }
}

/* ---- Verify page: compact layout ------------------------------------
   The result was spilling onto a second screen for very little content.
   Scoped to .verify-tight so the rest of the platform keeps its spacing. */
.verify-tight h1 { font-size: 22px; margin-bottom: 10px; }
.verify-tight .lead { font-size: 14px; margin-bottom: 12px; }
.verify-tight .card { padding: 14px 16px; margin-bottom: 12px; }
.verify-tight .verify-search { padding: 12px 16px; }
.verify-tight .verify-form { display: flex; gap: 10px; align-items: center; }
.verify-tight .verify-form input {
    flex: 1 1 auto; margin: 0; padding: 9px 11px;
    border: 1px solid var(--line); border-radius: 6px; font-size: 15px;
}
.verify-tight .verify-form .btn { flex: 0 0 auto; margin: 0; }
.verify-tight .verify-head { margin: 0 0 10px; font-size: 15px; line-height: 1.45; }
.verify-tight .verify-head .pill { margin-right: 6px; }
.verify-tight .table { font-size: 13.5px; }
.verify-tight .table td { padding: 6px 10px; }
.verify-tight .table td:first-child { color: var(--grey); white-space: nowrap; width: 1%; }
.verify-tight .table tr.table-section td {
    background: var(--navy); color: var(--gold);
    font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
    padding: 5px 10px; white-space: normal; width: auto;
}
.verify-tight .fingerprint {
    font-size: 11px; word-break: break-all; color: var(--grey); line-height: 1.3;
}
@media (max-width: 520px) {
    .verify-tight .verify-form { flex-wrap: wrap; }
    .verify-tight .verify-form .btn { width: 100%; }
}

/* ---- Admin dashboard: participants table -----------------------------
   The default 960px wrapper squeezed six columns and five buttons into a
   narrow Actions cell, so names, credential IDs and buttons all stacked.
   Scoped to .admin-page so nothing else changes. */
.wrap-wide { max-width: 1400px; }

.admin-page .table-scroll { overflow-x: auto; }
.admin-page .table.participants { font-size: 14px; }
.admin-page .table.participants td { padding: 10px 12px; vertical-align: middle; }

/* keep names and credential IDs on one line */
.admin-page .table.participants td:nth-child(1),
.admin-page .table.participants td:nth-child(3),
.admin-page .table.participants td:nth-child(5) { white-space: nowrap; }
.admin-page .table.participants td:nth-child(2) {
    max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-page .cert-cred {
    display: inline-block; white-space: nowrap; font-weight: 700;
    font-variant-numeric: tabular-nums; margin-right: 6px;
}

/* actions: one compact row, never one-button-per-line */
.admin-page .row-actions {
    display: flex; flex-wrap: nowrap; gap: 6px; align-items: center;
    justify-content: flex-end;
}
.admin-page .row-actions form { margin: 0; }
.admin-page .row-actions .btn {
    white-space: nowrap; padding: 4px 9px; font-size: 12px; line-height: 1.2;
}
/* usernames are the flexible column - let them ellipsis before buttons clip */
.admin-page .table.participants td:nth-child(2) { max-width: 200px; }
.admin-page .table.participants td:last-child { width: 1%; white-space: nowrap; }

@media (max-width: 900px) {
    .admin-page .row-actions { flex-wrap: wrap; justify-content: flex-start; }
}
.admin-page .table.participants .pill { white-space: nowrap; }
.admin-page .table.participants td:nth-child(4) { white-space: nowrap; }

/* ---- Admin: slim stats + tabbed sections -----------------------------
   Five stat cards took a quarter of the page to show five small numbers,
   and three stacked cards meant scrolling past the two you weren't using. */
.admin-page .stat-strip {
    display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline;
    margin: 14px 0 18px; color: var(--grey); font-size: 14px;
}
.admin-page .stat-strip b { color: var(--navy); font-size: 17px; margin-right: 3px; }
.admin-page .stat-strip .warn b { color: var(--red); }

.admin-page .tabs {
    display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 0;
}
.admin-page .tab {
    appearance: none; background: none; border: 0; cursor: pointer;
    font: inherit; font-size: 14.5px; color: var(--grey);
    padding: 10px 18px; border-radius: 8px 8px 0 0;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.admin-page .tab:hover { color: var(--navy); background: rgba(0,0,0,.03); }
.admin-page .tab.is-active {
    color: var(--navy); font-weight: 700; border-bottom-color: var(--gold);
    background: var(--card);
}
.admin-page .tab-panel { display: none; }
.admin-page .tab-panel.is-active { display: block; }
.admin-page .tab-panel > .card { border-top-left-radius: 0; margin-top: 0; padding: 16px 18px; }

/* no JS? show everything rather than an empty page */
.admin-page.no-js .tab-panel { display: block; }
.admin-page.no-js .tabs { display: none; }

/* ---- Page frame (2026-08-21) --------------------------------------------
   Two fixes for wide monitors:
   1. Sticky footer - short pages (e.g. admin with 3 rows) were leaving the
      navy footer floating in the middle of the screen. Body is now a
      flex column so .wrap absorbs the slack and the footer sits at the
      bottom of the viewport.
   2. Gutters that grow with the screen - the top bar keeps its full-bleed
      navy background, but its CONTENTS stop at the same 1400px frame the
      page uses, so the logo and the menu are no longer pinned to the far
      corners of a 25" monitor.
   ------------------------------------------------------------------------ */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { flex: 1 0 auto; width: 100%; }
.site-footer { flex-shrink: 0; }

.topbar,
.site-footer {
  padding-left:  max(28px, calc((100% - 1400px) / 2 + 24px));
  padding-right: max(28px, calc((100% - 1400px) / 2 + 24px));
}
