﻿/* ==========================================================================
   Audit Internal ISO/IEC 27001:2022 — Diskominfo Kabupaten Badung
   Sistem desain: navy/teal/emas, kartu bersih, tipografi humanis.
   ========================================================================== */
:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #123456;
  --navy-600: #1b4570;
  --blue: #175ca8;
  --blue-soft: #e8f0fa;
  --teal: #0d9488;
  --teal-soft: #e6f6f4;
  --gold: #c69c3e;
  --gold-soft: #f8f0dc;
  --ink: #1b2430;
  --ink-2: #46536b;
  --ink-3: #6b7891;
  --line: #e3e8ef;
  --bg: #f5f7fa;
  --white: #fff;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --warning: #9a6700;
  --warning-soft: #fff6e0;
  --success: #0f7b4f;
  --success-soft: #e6f5ee;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 1px 3px rgba(11, 37, 69, .05);
  --shadow: 0 6px 24px rgba(11, 37, 69, .08), 0 2px 6px rgba(11, 37, 69, .05);
  --shadow-lg: 0 18px 50px rgba(11, 37, 69, .14);
  --font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bookman Old Style", Georgia, "Times New Roman", serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy-800); letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1em; }
small { font-size: .84rem; }
.mono { word-break: break-all; overflow-wrap: anywhere; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: 1320px; }

/* ------------------------------------------------------------------ header */
.site-head {
  background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-head .inner {
  max-width: 1320px; margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy-800); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: .93rem; letter-spacing: .02em; }
.brand-text span { font-size: .74rem; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a.btn-primary { --btn-bg: var(--blue); color: #fff; }
.site-nav a.btn-primary:hover { color: #fff; }
.site-nav a {
  color: var(--ink-2); font-size: .92rem; font-weight: 500; padding: 8px 12px;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--blue-soft); color: var(--navy-800); text-decoration: none; }
.site-nav a.active { background: var(--navy-800); color: #fff; }
.site-nav .divider { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav-user { font-size: .85rem; color: var(--ink-3); padding: 0 8px; }
.site-head .nav-toggle { display: none; }

.topband {
  background: linear-gradient(90deg, var(--navy-800), var(--navy-600) 55%, var(--teal));
  color: #dbe7f5; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
.topband .inner {
  max-width: 1320px; margin: 0 auto; padding: 6px 22px; display: flex;
  justify-content: space-between; gap: 16px;
}
.topband a { color: #fff; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 480px at 82% -12%, rgba(13, 148, 136, .5), transparent 62%),
    radial-gradient(700px 420px at 8% 112%, rgba(198, 156, 62, .28), transparent 60%),
    linear-gradient(140deg, var(--navy-900) 0%, var(--navy-800) 46%, #123a63 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 500px at 70% 20%, #000, transparent 78%);
}
.hero .inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: 62px 22px 54px; display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 42px; align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #a9d8e8;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.85rem); margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: #7fe0d4; }
.hero .lead { color: #c9d8ea; font-size: 1.02rem; max-width: 52ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: .8rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  padding: 6px 11px; border-radius: 999px; color: #e6eef8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px; padding: 22px; backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.hero-card h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.hero-card p { color: #c9d8ea; font-size: .88rem; }
.hero-card .step h4 { color: #fff; font-size: .95rem; margin: 1px 0 2px; }
.hero-card .step p { color: #a9c0d8; font-size: .84rem; margin: 0; }
.seal-mini { width: 74px; height: 74px; float: right; margin: -6px -2px 6px 10px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --btn-bg: var(--navy-800); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid transparent;
  padding: 11px 20px; border-radius: 10px; font: inherit; font-weight: 600; font-size: .93rem;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: 0 1px 2px rgba(11, 37, 69, .18);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11, 37, 69, .2); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--blue); }
.btn-gold { --btn-bg: var(--gold); --btn-fg: #241a05; }
.btn-teal { --btn-bg: var(--teal); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--navy-800); border-color: #c9d3e0; box-shadow: none; }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn-danger { --btn-bg: var(--danger); }
.btn-sm { padding: 7px 13px; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ------------------------------------------------------------------ layout */
.section { padding: 46px 0; }
.section-head { max-width: 720px; margin-bottom: 26px; }
.section-head p { color: var(--ink-2); }
.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px;
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.6fr .9fr; gap: 26px; align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.card-flush { padding: 0; overflow: hidden; }
.card-head {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.card-head h3 { margin: 0; font-size: 1.02rem; }
.card-body { padding: 20px 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: #fafbfd; }

a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step .num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  background: var(--blue-soft); color: var(--blue); border: 1px solid #d3e2f5;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h4 { margin: 2px 0 3px; font-size: .98rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .89rem; }
.step.done .num { background: var(--success-soft); color: var(--success); border-color: #bfe3d2; }

/* stat */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.stat .k { font-size: 1.7rem; font-weight: 700; color: var(--navy-800); line-height: 1.1; }
.stat .l { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--blue-soft); color: var(--blue); }
.badge-muted { background: #eef1f5; color: var(--ink-3); }
.badge-gold { background: var(--gold-soft); color: #7a5a10; }

/* progress */
.progress { height: 9px; border-radius: 99px; background: #e8edf3; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: 99px; transition: width .5s ease; }
.progress.gold > span { background: linear-gradient(90deg, #d8b15a, var(--gold)); }
.progress-row { display: flex; align-items: center; gap: 12px; }
.progress-row .progress { flex: 1; }

/* ------------------------------------------------------------------ forms */
.field { margin-bottom: 16px; }
.field > label, .label {
  display: block; font-weight: 600; font-size: .88rem; color: var(--navy-800); margin-bottom: 6px;
}
.field .hint { font-size: .8rem; color: var(--ink-3); margin: -2px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #cbd5e1; border-radius: 9px; padding: 10px 12px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 92, 168, .14);
}
textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-narrow { max-width: 460px; }

.radio-cards { display: grid; gap: 10px; }
.radio-card {
  display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.radio-card:hover { border-color: #b9c8db; background: #fbfcfe; }
.radio-card input { margin-top: 4px; accent-color: var(--blue); }
.radio-card b { font-size: .93rem; }
.radio-card small { display: block; color: var(--ink-3); }
.radio-card:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }

.opt {
  display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer;
  margin-bottom: 9px; transition: border-color .12s ease, background .12s ease;
}
.opt:hover { border-color: #b9c8db; background: #fbfcfe; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .key {
  width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  background: #eef1f5; color: var(--ink-2); font-weight: 700; font-size: .84rem;
}
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.opt:has(input:checked) .key { background: var(--blue); color: #fff; }
.opt.correct { border-color: var(--success); background: var(--success-soft); }
.opt.correct .key { background: var(--success); color: #fff; }
.opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
.opt.wrong .key { background: var(--danger); color: #fff; }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .89rem; }
table.data th, table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
  background: #f8fafc; font-weight: 700; white-space: nowrap;
}
table.data tbody tr:hover { background: #f9fbfe; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.total td { font-weight: 700; background: #f8fafc; }

/* ------------------------------------------------------------------ misc */
.alert {
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 15px; border-radius: 10px;
  font-size: .9rem; margin-bottom: 16px; border: 1px solid transparent;
}
.alert-ok { background: var(--success-soft); border-color: #c4e6d5; color: #0b5e3c; }
.alert-error { background: var(--danger-soft); border-color: #f3c9c5; color: #8c1d18; }
.alert-warning { background: var(--warning-soft); border-color: #f0dcaa; color: #7a5200; }
.alert-info { background: var(--blue-soft); border-color: #cadff5; color: #144a85; }
.alert .ico { font-weight: 700; }

.note {
  background: var(--gold-soft); border-left: 4px solid var(--gold);
  padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: .89rem; color: #5b4512;
}
.note-blue { background: var(--blue-soft); border-left-color: var(--blue); color: #123f70; }

.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.tiny { font-size: .76rem; }
.center { text-align: center; }
.right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.nowrap { white-space: nowrap; }
.hr { height: 1px; background: var(--line); border: 0; margin: 20px 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }

.quote {
  border-left: 3px solid var(--gold); padding: 2px 0 2px 14px; color: var(--ink-2);
  font-style: italic; font-size: .9rem;
}

.kbd {
  background: #eef1f5; border: 1px solid #dbe1ea; border-bottom-width: 2px; border-radius: 6px;
  padding: 1px 6px; font-size: .8em; font-weight: 600; color: var(--ink-2);
}

/* case focus card */
.focus-card { position: relative; display: grid; gap: 8px; }
.focus-card .no {
  width: 34px; height: 34px; border-radius: 9px; background: var(--navy-800); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .88rem;
}
.focus-card h3 { margin: 0; font-size: 1.02rem; }
.focus-card .meta { font-size: .8rem; color: var(--ink-3); }
.focus-card .score-line { display: flex; align-items: center; gap: 10px; margin-top: 6px; }

/* evidence list */
.evidence { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.evidence li {
  display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: start;
  background: #fbfcfe; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
  font-size: .87rem;
}
.evidence .type {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue); background: var(--blue-soft); padding: 3px 7px; border-radius: 6px;
  text-align: center;
}
.evidence b { display: block; color: var(--navy-800); font-size: .88rem; }
.evidence span { color: var(--ink-2); }

/* rubric meter */
.rubric { display: grid; gap: 9px; }
.rubric-row { display: grid; grid-template-columns: 130px 1fr 52px; gap: 10px; align-items: center; font-size: .85rem; }
.rubric-row .bar { height: 8px; background: #e8edf3; border-radius: 99px; overflow: hidden; }
.rubric-row .bar span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }

/* score ring */
.ring { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--p) * 1%), #e8edf3 0);
}
.ring::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.ring .val { position: relative; z-index: 2; text-align: center; line-height: 1.1; }
.ring .val b { font-size: 1.85rem; color: var(--navy-800); display: block; }
.ring .val small { font-size: .7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

/* flashcard */
.flash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flash {
  perspective: 900px; height: 148px; cursor: pointer; background: none; border: 0; padding: 0;
  font: inherit; text-align: left;
}
.flash .inner {
  position: relative; width: 100%; height: 100%; transition: transform .5s;
  transform-style: preserve-3d;
}
.flash.flipped .inner { transform: rotateY(180deg); }
.flash .face {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
}
.flash .front b { font-size: .95rem; color: var(--navy-800); }
.flash .front span { font-size: .72rem; color: var(--ink-3); margin-top: 6px; }
.flash .back {
  transform: rotateY(180deg); background: var(--navy-800); color: #e8f0fa; font-size: .78rem;
  line-height: 1.45; border-color: var(--navy-700);
}
.flash .back b { color: #7fe0d4; }

/* quiz */
.quiz-bar {
  position: sticky; top: 62px; z-index: 30; background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line); padding: 10px 0; backdrop-filter: blur(6px);
}
.quiz-bar .inner { max-width: 900px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 16px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy-800); }
.timer.low { color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.question { margin-bottom: 26px; }
.question .q-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.question .q-no {
  background: var(--navy-800); color: #fff; border-radius: 7px; font-size: .76rem;
  font-weight: 700; padding: 3px 8px; white-space: nowrap;
}

/* certificate */
.cert-page { background: #e9edf2; padding: 30px 0 60px; }
.cert-shell {
  max-width: 1120px; min-height: 640px; margin: 0 auto; background: #fbf8f1; border-radius: 4px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden; padding: 38px;
}
.cert-frame {
  position: absolute; inset: 16px; border: 5px solid var(--navy-800);
  outline: 1px solid var(--gold); outline-offset: 5px; pointer-events: none;
}
.cert-inner { position: relative; height: 100%; display: flex; flex-direction: column; text-align: center; padding: 8px 30px; }
.cert-head { display: flex; justify-content: space-between; align-items: flex-start; text-align: left; gap: 20px; }
.cert-head .org { display: flex; gap: 12px; align-items: center; }
.cert-head .org img { width: 54px; }
.cert-head .org b { display: block; color: var(--navy-800); font-size: .86rem; letter-spacing: .02em; }
.cert-head .org small { color: var(--ink-3); font-size: .74rem; display: block; }
.cert-head .partner { font-size: .72rem; color: var(--ink-3); text-align: right; }
.cert-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .22em; color: var(--navy-800); margin: 14px 0 0; }
.cert-sub { letter-spacing: .34em; font-size: .78rem; color: #8c6a22; font-weight: 700; }
.cert-no { font-size: .74rem; color: var(--ink-3); margin-top: 4px; }
.cert-to { font-style: italic; color: var(--ink-3); font-size: .88rem; margin: 14px 0 2px; }
.cert-name {
  font-family: var(--font-display); color: var(--teal); font-size: clamp(1.5rem, 3vw, 2.4rem);
  border-bottom: 1.5px solid var(--gold); display: inline-block; padding: 0 26px 6px; margin: 0 auto;
  max-width: 92%;
}
.cert-statement { font-size: .85rem; margin: 12px 0 4px; }
.cert-program { font-family: var(--font-display); font-size: clamp(1rem, 1.8vw, 1.35rem); color: var(--navy-800); }
.cert-meta { font-size: .76rem; color: var(--ink-3); }
.cert-score {
  display: inline-flex; gap: 18px; align-items: center; justify-content: center; margin: 10px auto 0;
  border: 1px solid #ddd5c4; background: #fff; border-radius: 10px; padding: 8px 26px;
}
.cert-score small { font-size: .62rem; letter-spacing: .1em; color: var(--ink-3); display: block; }
.cert-score b { font-size: 1.3rem; color: var(--navy-800); }
.cert-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; text-align: left; gap: 20px; padding: 0 10px; }
.cert-sign { min-width: 200px; flex: none; }
.cert-sign .role { font-size: .7rem; color: var(--ink-3); }
.cert-sign .cert-ttd { display: block; height: 46px; margin: 0 0 2px; }
.cert-sign .name { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-800); border-top: 1px solid #b9ae97; padding-top: 4px; }
.cert-sign .creds { font-size: .58rem; color: var(--ink-3); line-height: 1.25; }
.cert-sign .note { font-size: .64rem; color: var(--ink-3); margin-top: 3px; }
.cert-seal { width: 92px; height: 92px; flex: none; min-width: 92px; }
.cert-qr { text-align: center; font-size: .62rem; color: var(--ink-3); flex: none; min-width: 96px; }
.cert-qr img { width: 74px; height: 74px; display: block; margin: 0 auto 3px; }
.cert-legal { font-size: .62rem; color: #8a8577; margin-top: 6px; }
.cert-actions { max-width: 1120px; margin: 18px auto 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* verify */
.verify-card { max-width: 700px; margin: 0 auto; }
.verify-badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; font-size: 2rem; }
.verify-badge.ok { background: var(--success-soft); color: var(--success); }
.verify-badge.bad { background: var(--danger-soft); color: var(--danger); }
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: .9rem; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; font-weight: 600; color: var(--navy-800); }

/* admin */
.admin-hero { background: var(--navy-800); color: #fff; padding: 26px 0; }
.admin-hero h1 { color: #fff; font-size: 1.5rem; margin: 0; }
.admin-hero p { color: #a9bad2; margin: 3px 0 0; font-size: .88rem; }
.admin-hero .btn-ghost { --btn-fg: #dbe7f5; border-color: rgba(255,255,255,.28); }
.admin-hero .btn-ghost:hover { background: rgba(255,255,255,.1); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input[type=text] { max-width: 280px; }
.filters select { max-width: 170px; }

.detail-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 22px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; font-size: .84rem; }
.timeline .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); margin-top: 6px; }
.timeline time { color: var(--ink-3); font-size: .74rem; display: block; }

/* footer */
.site-foot { background: var(--navy-900); color: #9fb3ca; padding: 38px 0 26px; margin-top: 40px; font-size: .86rem; }
.site-foot a { color: #cfe0f2; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.site-foot h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .78rem; }

/* print */
@media print {
  .site-head, .site-foot, .topband, .cert-actions, .no-print { display: none !important; }
  body { background: #fff; }
  .cert-page { padding: 0; background: #fff; }
  .cert-shell { box-shadow: none; border-radius: 0; width: 100%; max-width: none; }
  @page { size: A4 landscape; margin: 0; }
}

/* responsive */
@media (max-width: 980px) {
  .hero .inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-card { order: -1; }
  .grid-4, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split-even, .detail-grid { grid-template-columns: 1fr; }
  .flash-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; position: absolute; top: 60px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 10px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-head .nav-toggle { display: inline-flex; margin-left: auto; }
  .grid-2, .grid-3, .grid-4, .stat-grid, .field-row { grid-template-columns: 1fr; }
  .flash-grid { grid-template-columns: 1fr; }
  .cert-shell { padding: 16px; aspect-ratio: auto; }
  .cert-foot { flex-direction: column; align-items: center; }
  .rubric-row { grid-template-columns: 92px 1fr 44px; }
  .dl { grid-template-columns: 1fr; }
  .section { padding: 30px 0; }
  .topband .inner { flex-direction: column; gap: 2px; }
}


