:root {
  --navy: #12233F; --navy-2: #1c3357; --teal: #00BAA6; --teal-d: #009484; --white: #fff;
  --bg: #F5F7FA; --line: #E2E7EE; --text: #12233F; --muted: #5d6b80;
  --red: #c8374b; --amber: #b7791f; --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; font-family: Outfit, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.5; }
a { color: var(--teal-d); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2rem; font-weight: 800; } h2 { font-size: 1.35rem; font-weight: 700; margin-top: 1.4em; } h3 { font-size: 1.05rem; margin-top: 1.3em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 60px; flex: 1; width: 100%; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.teal { color: var(--teal); }
code { background: #eef2f6; padding: 1px 5px; border-radius: 4px; }

/* logo */
.logo { display: block; height: 36px; width: auto; }
.logo.small { height: 24px; } .logo.big { height: 52px; margin: 0 auto 12px; }

/* top bar */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand:hover { text-decoration: none; }
nav { display: flex; align-items: center; gap: 18px; }
nav > a { color: var(--navy); font-weight: 500; white-space: nowrap; }
.show-sm, .menu-icon, .lbl-short { display: none; }
nav > a.active { color: var(--teal-d); }
.menu { position: relative; }
.menu summary { cursor: pointer; list-style: none; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(18,35,63,.12); min-width: 230px; padding: 8px; display: flex; flex-direction: column; }
.menu-pop a, .menu-pop .linkish { padding: 8px 10px; border-radius: 8px; color: var(--navy); text-align: left; }
.menu-pop a:hover, .menu-pop .linkish:hover { background: var(--bg); text-decoration: none; }
.menu-who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: .9rem; color: var(--muted); word-break: break-all; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--teal); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--teal-d); text-decoration: none; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; font-size: .88rem; border-radius: 8px; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: #fff; color: var(--red); border: 1px solid #efc6cd; }
.btn-danger:hover { background: #fdf0f2; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-d); cursor: pointer; font-weight: 500; }

/* cards & layout */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2:first-child { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-2.tight { gap: 14px; }
.grid-side { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.narrow { max-width: 560px; margin: 0 auto; } .narrow-form { max-width: 680px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.page-head h1, .page-head h2 { margin-bottom: 4px; }
.head-with-img { display: flex; align-items: center; gap: 16px; }
.head-with-img img { width: 72px; height: 72px; }
.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 24px; overflow-x: auto; }
.subnav a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a.active { color: var(--navy); border-color: var(--teal); }
.subnav a:hover { text-decoration: none; color: var(--navy); }
details > summary { cursor: pointer; }
h2.inline { display: inline; }
.empty { padding: 20px 0; }
.empty-state { text-align: center; padding: 48px 24px; }

/* forms */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--text); border: 1px solid #cfd7e2; border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(0,186,166,.35); border-color: var(--teal); }
input[disabled] { background: var(--bg); color: var(--muted); }
textarea.mono { font-size: .8rem; }
.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filters input { max-width: 320px; } .filters select { width: auto; }
.inline-form { display: flex; gap: 6px; }
.inline-form input { padding: 5px 8px; font-size: .85rem; width: 120px; }
.copy-field { display: flex; gap: 6px; min-width: 260px; }
.copy-field input { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; padding: 6px 8px; }
.img-preview { width: 140px; height: 140px; object-fit: contain; background: var(--bg); border-radius: 12px; }

/* flash */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; background: #eef2f6; }
.flash.ok { background: #e3f7f4; color: #075e55; }
.flash.err { background: #fdecef; color: #8f1d2e; }
.flash.warn { background: #fff6e0; color: #6d4a00; }

/* tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfd; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 16px; }

/* pills & tags */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.pill-accepted { background: #e3f7f4; color: #075e55; }
.pill-pending { background: #fff6e0; color: #6d4a00; }
.pill-revoked, .pill-expired { background: #fdecef; color: #8f1d2e; }
.pill-declined { background: #eef2f6; color: var(--muted); }
.tag { display: inline-block; background: var(--navy); color: #fff; font-size: .72rem; padding: 1px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.act { font-weight: 600; }
.act-login_failed, .act-badge_revoked { color: var(--red); }
.act-badge_claimed, .act-signup { color: var(--teal-d); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; background: var(--navy); color: #fff; border-radius: 24px; margin-bottom: 28px; overflow: hidden; min-height: 440px; }
.hero-copy { padding: 56px; align-self: center; }
.hero-visual { display: grid; place-items: center; padding: 40px; background: radial-gradient(circle at 50% 50%, rgba(0,186,166,.28), rgba(0,186,166,0) 60%); }
.hero-card { background: #fff; border-radius: 22px; padding: 26px 30px 24px; text-align: center; box-shadow: 0 24px 50px rgba(0,0,0,.35); transform: rotate(-3deg); }
.hero-card img { display: block; width: 250px; height: 250px; margin: 0 auto 6px; }
.hero-card .verified { margin: 0; }
.hero h1 { font-size: 2.75rem; color: #fff; }
.hero .lead { font-size: 1.15rem; color: #c9d3e3; max-width: 34em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--teal); margin-bottom: .6em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #3a5175; }
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
.audiences h3 { margin-top: 0; }

/* badges */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.badge-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; color: var(--text); transition: transform .15s, box-shadow .15s; height: 100%; }
.badge-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18,35,63,.1); }
.badge-card img { width: 140px; height: 140px; object-fit: contain; margin-bottom: 6px; }
.bc-name { font-weight: 700; line-height: 1.25; }
.bc-issuer { color: var(--muted); font-size: .88rem; font-weight: 400; }
.bc-date { color: var(--muted); font-size: .82rem; font-weight: 400; }
.badge-card-wrap { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.badge-card-wrap .badge-card { width: 100%; }
.pending-box { margin-bottom: 24px; border-color: #f2d48a; background: #fffcf3; }
.pending-box h2 { margin-top: 0; }
.badge-rows { display: flex; flex-direction: column; gap: 12px; }
.badge-row { display: flex; align-items: center; gap: 18px; color: var(--text); padding: 14px 20px; }
.badge-row:hover { text-decoration: none; border-color: var(--teal); }
.badge-row img { width: 64px; height: 64px; object-fit: contain; }
.br-main { flex: 1; }
.stats-mini { display: flex; gap: 22px; text-align: center; }
.stats-mini b { display: block; font-size: 1.2rem; }
.stats-mini span { font-size: .75rem; color: var(--muted); }

/* award page */
.award { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.award-art img { width: 100%; filter: drop-shadow(0 16px 26px rgba(18,35,63,.18)); }
.award h1 { font-size: 2.2rem; }
.issued-to { font-size: 1.08rem; }
.verified { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; font-size: .9rem; }
.verified svg { width: 18px; height: 18px; }
.verified-accepted { background: #e3f7f4; color: #075e55; }
.verified-revoked, .verified-expired { background: #fdecef; color: #8f1d2e; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; padding: 0; }
.facts div { background: var(--bg); border-radius: 10px; padding: 10px 14px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; word-break: break-all; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill { background: #eaf8f6; color: #075e55; border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 500; }
.share { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 6px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* training providers */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.provider-card { display: flex; flex-direction: column; gap: 10px; }
.provider-card p { margin: 0; flex: 1; }
.provider-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: var(--text); }
.provider-head:hover { text-decoration: none; } .provider-head:hover h2 { color: var(--teal-d); }
.provider-head h2 { margin: 0; font-size: 1.25rem; }
.provider-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.provider-logo { flex-shrink: 0; }
img.provider-logo { width: auto; max-width: 200px; height: 52px; object-fit: contain; border-radius: 10px; }
.provider-initials { height: 64px; }
.provider-initials { width: 64px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.4rem; }
img.provider-logo.big { max-width: 380px; height: 96px; border-radius: 14px; }
.provider-initials.big { width: 120px; height: 120px; font-size: 2.4rem; border-radius: 24px; }
img.provider-logo.tiny { max-width: 90px; height: 22px; border-radius: 4px; vertical-align: middle; }
.provider-initials.tiny { width: 24px; height: 24px; font-size: .7rem; border-radius: 6px; display: inline-grid; }
.provider-hero { display: flex; align-items: center; gap: 36px; padding: 34px; margin-bottom: 10px; }
.provider-hero h1 { margin-bottom: 8px; }
.lead-dark { font-size: 1.08rem; color: var(--muted); }
.provider-url { margin: 8px 0 0; word-break: break-all; }
.logo-preview { max-width: 260px; max-height: 100px; object-fit: contain; background: var(--bg); border-radius: 10px; padding: 8px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: auto; }

/* profile */
.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }

/* admin stats */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.stat-v { font-size: 2rem; font-weight: 800; }
.stat-l { font-weight: 600; }

/* auth */
.auth { display: flex; justify-content: center; padding-top: 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 34px; }
.auth-card h1 { text-align: center; font-size: 1.6rem; }

/* footer */
.foot { border-top: 1px solid var(--line); background: #fff; }
.foot .wrap { display: flex; gap: 16px; align-items: center; padding-top: 22px; padding-bottom: 22px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.foot .wrap a:first-of-type { margin-left: auto; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; } .hero-copy { padding: 32px; } .hero h1 { font-size: 2.2rem; }
  .hero-visual { order: -1; padding: 30px 20px 6px; } .hero-card img { width: 190px; height: 190px; }
  .audiences, .grid-2, .grid-side { grid-template-columns: 1fr; }
  .award { grid-template-columns: 1fr; padding: 24px; gap: 20px; } .award-art { max-width: 280px; margin: 0 auto; }
  nav { gap: 10px; font-size: .92rem; }
  .stats-mini { display: none; }
  .provider-hero { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
}
@media (max-width: 640px) {
  .topbar .wrap { height: 60px; gap: 10px; } .topbar .logo { height: 30px; }
  nav { gap: 14px; }
  nav .hide-sm { display: none; }
  .menu-pop .show-sm { display: block; }
  .menu summary { padding: 0; border: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--bg); }
  .menu-name { display: none; }
  .menu-icon { display: block; width: 18px; height: 2px; background: var(--navy); box-shadow: 0 -6px 0 var(--navy), 0 6px 0 var(--navy); }
  .menu-pop { top: 48px; }
  main.wrap { padding-top: 18px; }
  .hero-copy { padding: 26px 22px 30px; }
  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .eyebrow { font-size: .72rem; letter-spacing: .1em; }
}
@media (max-width: 400px) {
  .topbar .wrap { padding: 0 14px; } .topbar .logo { height: 27px; }
  nav { gap: 12px; }
  .lbl-long { display: none; } .lbl-short { display: inline; }
  .eyebrow { letter-spacing: .06em; }
}
