/* Metal Stack — verification register · "Assay House" design system
   (dark vault · guilloché security engraving · metallic foils · holographic seal
    · Fraunces / Schibsted Grotesk / IBM Plex Mono · volt-green demoted to a status LED) */

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--grot);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}
/* fine grain — tactile metal/paper tooth */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 clamp(24px, 3vw, 48px); }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 clamp(24px, 3vw, 48px); }
.mono { font-family: var(--mono); }
h1, h2, h3, h4 { font-weight: 500; }
.wrap > h1, .wrap-narrow > h1 { font-family: var(--serif); font-weight: 420; letter-spacing: -.01em; }

/* ---------- top nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7,8,11,.78); backdrop-filter: blur(11px); border-bottom: 1px solid var(--hair); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-top: 18px; padding-bottom: 18px; }
.nav-logo img { height: 34px; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-volt, .nav-links a.btn-gold { color: var(--gold); }

/* Mobile nav — CSS-only checkbox toggle (no JS needed under the strict CSP). */
.nav-toggle { display: none; }
.nav-burger { display: none; }
@media (max-width: 760px) {
  .nav-in { position: relative; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; padding: 10px 4px; cursor: pointer; }
  .nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform .18s, opacity .18s; }
  .nav-links { position: absolute; top: 100%; left: -24px; right: -24px; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #07080b; border-bottom: 1px solid var(--hair); padding: 6px 24px 20px; }
  .nav-links a { padding: 13px 2px; border-bottom: 1px solid var(--hair); }
  .nav-links a.btn-volt, .nav-links a.btn-gold { margin-top: 12px; text-align: center; justify-content: center; border-bottom: none; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- buttons & forms ---------- */
.btn-volt {
  display: inline-flex; align-items: center; gap: 9px; background: var(--volt); color: #16210a;
  font-family: var(--grot); font-weight: 800; font-size: 14px; letter-spacing: .03em;
  padding: 13px 26px; border-radius: 3px; border: none; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(198,255,74,.4), 0 12px 36px rgba(198,255,74,.16);
}
.btn-volt:hover { box-shadow: 0 0 0 1px var(--volt), 0 16px 46px rgba(198,255,74,.28); }
/* gold-outline variant for nav CTA (Get verified) */
.nav-links a.btn-volt { background: none; box-shadow: none; border: 1px solid var(--gold); color: var(--gold);
  padding: 10px 20px; letter-spacing: .16em; font-size: 12px; }
.nav-links a.btn-volt:hover { background: var(--gold); color: var(--ink); box-shadow: none; }
.btn-ghost { display: inline-block; border: 1px solid var(--hair-2); color: var(--text); padding: 12px 24px;
  border-radius: 3px; font-weight: 600; font-size: 14px; cursor: pointer; background: none; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; box-sizing: border-box; background: var(--ink); border: 1px solid var(--hair-2);
  border-radius: 4px; color: var(--text); font-size: 14.5px; padding: 12px 14px; outline: none; font-family: var(--grot);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--volt); box-shadow: 0 0 0 3px rgba(198,255,74,.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- lookup home ---------- */
.vhero { position: relative; text-align: center; padding: 72px 0 26px; overflow: hidden; }
.vhero::before {
  content: ""; position: absolute; left: 50%; top: -180px; width: 760px; height: 760px; transform: translateX(-50%);
  background: url(/assets/guilloche/rosette-gold.svg) center/contain no-repeat; opacity: .22; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 38%, transparent 72%); mask-image: radial-gradient(circle at 50% 40%, #000 38%, transparent 72%);
}
.vhero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% -2%, rgba(226,180,56,.10), transparent 55%);
}
.vhero .sealwrap { width: 116px; height: 116px; margin: 0 auto 28px; position: relative; z-index: 2; }
.vhero h1 { position: relative; z-index: 2; font-family: var(--serif); font-size: 50px; font-weight: 360; letter-spacing: -.018em; margin: 0 0 16px; }
.vhero p { position: relative; z-index: 2; color: var(--steel); font-size: 16px; line-height: 1.66; max-width: 540px; margin: 0 auto; }
.lookup { position: relative; z-index: 2; padding-top: 26px; padding-bottom: 8px; }
.lookup-form { display: flex; gap: 12px; }
.lookup-form input {
  flex: 1; background: var(--ink); border: 1px solid var(--hair-2); border-radius: 5px; color: var(--text);
  font-family: var(--mono); font-size: 21px; letter-spacing: .14em; padding: 18px 22px; outline: none; min-width: 0;
}
.lookup-form input:focus { border-color: var(--volt); box-shadow: 0 0 0 3px rgba(198,255,74,.13); }
.lookup-form button { background: var(--volt); border: none; cursor: pointer; color: #16210a; font-weight: 800; font-size: 15px; font-family: var(--grot); padding: 0 34px; border-radius: 5px; }
.lookup-hint { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 16px; text-align: center; letter-spacing: .03em; }
.lookup-hint b { color: var(--gold); }

.err-box, .ok-box, .warn-box { margin: 16px 0; padding: 14px 18px; border-radius: 6px; font-size: 13.5px; line-height: 1.62; }
.err-box { border: 1px solid rgba(255,107,107,.42); background: rgba(255,107,107,.08); color: #ffb3b3; }
.err-box b { color: #ffd5d5; }
.ok-box { border: 1px solid rgba(198,255,74,.4); background: rgba(198,255,74,.07); color: var(--text); }
.warn-box { border: 1px solid rgba(255,170,60,.45); background: rgba(255,170,60,.08); color: #ffe1b0; }
.warn-box b { color: #ffd591; }

/* ---------- register / ledger ---------- */
.rh { display: flex; align-items: baseline; gap: 14px; margin: 38px 0 14px; }
.rh h2 { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; margin: 0; color: var(--steel); }
.rh .rule { flex: 1; height: 1px; background: var(--hair); }
.rh .more { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--gold); }
.rlist { border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; }
.rrow { display: grid; grid-template-columns: 44px 100px 1fr 116px 130px; gap: 14px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--hair); background: var(--ink-2); font-size: 13.5px; }
.rrow:last-child { border-bottom: none; }
a.rrow:hover { background: var(--ink-3); }
.rrow .id { font-family: var(--mono); color: var(--gold); font-weight: 600; font-size: 12.5px; }
.rrow .nm { font-weight: 600; min-width: 0; }
.rrow .nm small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--faint); font-weight: 400; margin-top: 3px; }
.rrow .xrf { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rrow .rimg { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; border: 1px solid var(--hair); background: #12151c; display: flex; }
.rrow .rimg img { width: 100%; height: 100%; object-fit: cover; }
.rrow .rimg .ph { width: 100%; height: 100%; background: radial-gradient(ellipse at 40% 30%, #2a2f39, #12151c); }
.rrow .rimg .ph.gold { background: radial-gradient(ellipse at 40% 30%, rgba(226,180,56,.28), #12151c); }
.rrow .rimg .ph.silver { background: radial-gradient(ellipse at 40% 30%, rgba(201,210,220,.22), #12151c); }
.rrow .rimg .ph.platinum { background: radial-gradient(ellipse at 40% 30%, rgba(170,182,196,.22), #12151c); }
@media (max-width: 640px) { .rrow { grid-template-columns: 44px 1fr 116px; } .rrow .id, .rrow .xrf { display: none; } }

/* register heartbeat — bench output + anchor, never lookup activity */
.pulse { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); line-height: 1.7; }
.pulse .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 8px var(--volt); flex: 0 0 auto; align-self: center; animation: pulsebeat 2.2s ease-in-out infinite; }
.pulse b { color: var(--text); }
.pulse a { color: var(--gold); text-decoration: underline; }
@keyframes pulsebeat { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pulse .dot { animation: none; } }

/* status pills (traffic light: green=verified · amber=inconclusive · red=flagged/revoked) */
.st { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; text-align: center; padding: 6px 9px; border-radius: 99px; white-space: nowrap; }
.st-ok { background: rgba(198,255,74,.1); color: var(--volt); border: 1px solid rgba(198,255,74,.34); }
.st-listed { background: rgba(226,180,56,.1); color: var(--gold); border: 1px solid rgba(226,180,56,.4); }
.st-sold { background: rgba(201,208,218,.07); color: var(--steel); border: 1px solid var(--hair-2); }
.st-bad { background: rgba(255,107,107,.1); color: #ff9b9b; border: 1px solid rgba(255,107,107,.4); }
.st-warn { background: rgba(255,170,60,.1); color: #ffc266; border: 1px solid rgba(255,170,60,.42); }

/* trust boxes */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 42px 0 60px; }
@media (max-width: 640px) { .trust { grid-template-columns: 1fr; } }
.tbox { border: 1px solid var(--hair); border-radius: 6px; padding: 20px 22px; background: var(--ink-2); }
.tbox .t { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 9px; }
.tbox .t.warn { color: var(--gold); }
.tbox .t.ok { color: var(--volt); }
.tbox p { margin: 0; font-size: 13px; line-height: 1.62; color: var(--steel); }
.tbox b { color: var(--text); }

/* ---------- record page ---------- */
.status-banner {
  position: relative; margin: 32px 0 0; padding: 22px 26px; border: 1px solid rgba(198,255,74,.3); border-radius: 8px;
  background: linear-gradient(110deg, rgba(198,255,74,.1), rgba(198,255,74,.02) 55%, transparent);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; overflow: hidden;
}
.status-banner.warn { border-color: rgba(255,170,60,.5); background: linear-gradient(110deg, rgba(255,170,60,.12), transparent 70%); }
.status-banner.bad { border-color: rgba(255,107,107,.5); background: linear-gradient(110deg, rgba(255,107,107,.12), transparent 70%); }
.status-banner .sb-seal { width: 64px; height: 64px; flex: 0 0 auto; }
.status-banner .badge {
  width: 50px; height: 50px; border-radius: 50%; flex: 0 0 auto; background: linear-gradient(135deg, var(--volt), #8fd622);
  color: var(--ink); font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 26px rgba(198,255,74,.32);
}
.status-banner.warn .badge { background: linear-gradient(135deg, #ffb43c, #d68a25); color: #2a1c05; box-shadow: 0 0 26px rgba(255,170,60,.3); }
.status-banner.bad .badge { background: linear-gradient(135deg, #ff6b6b, #d64545); color: #fff; box-shadow: 0 0 26px rgba(255,107,107,.3); }
.status-banner .t { font-family: var(--serif); font-size: 25px; font-weight: 400; }
.status-banner .t small { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.status-banner .state { margin-left: auto; text-align: right; font-family: var(--mono); }
.status-banner .state .k { font-size: 9.5px; letter-spacing: .26em; color: var(--faint); text-transform: uppercase; }
.status-banner .state .v { font-size: 14px; color: var(--volt); font-weight: 600; margin-top: 6px; }
.status-banner.warn .state .v { color: #ffc266; }
.status-banner.bad .state .v { color: #ff9b9b; }

.buy-strip { margin-top: 14px; display: flex; align-items: center; gap: 18px; border: 1px solid rgba(226,180,56,.4); background: rgba(226,180,56,.07); border-radius: 8px; padding: 14px 20px; flex-wrap: wrap; }
.buy-strip .price { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--gold); }
.buy-strip .note { font-size: 12px; color: var(--muted); }
.buy-strip form { margin-left: auto; }

.overview { display: grid; grid-template-columns: 1.02fr 1fr; gap: 32px; margin: 30px 0 0; align-items: start; }
@media (max-width: 760px) { .overview { grid-template-columns: 1fr; } }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.photo-main { border-radius: 6px; aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 36%, #2a2f39, #0f1217); border: 1px solid var(--hair-2); display: flex; align-items: center; justify-content: center; }
.photo-main img { width: 100%; height: 100%; object-fit: cover; }
.photo-main .none { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--faint); text-transform: uppercase; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.thumb { aspect-ratio: 1; border-radius: 5px; border: 1px solid var(--hair); overflow: hidden; background: #12151c; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--gold); }

/* responsive replacements for former inline grids */
.lights3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) { .lights3 { grid-template-columns: 1fr; } }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .stat-tiles { grid-template-columns: 1fr; } }

/* live melt-value line (spot.js — hidden until the feed answers) */
.spot-line { display: none; margin-top: 14px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--muted); }
.spot-line.on { display: block; }
.spot-line b { color: var(--gold); font-weight: 600; }
.spot-line span { color: var(--faint); }
.photo-main a { display: block; width: 100%; height: 100%; cursor: zoom-in; }

/* full-screen photo overlay (lightbox.js) */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(5,6,10,.94); padding: 4vmin; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.lightbox .lb-close { position: absolute; top: 18px; right: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); }

.item-head h1 { font-family: var(--serif); font-size: 36px; font-weight: 400; margin: 0 0 8px; line-height: 1.05; letter-spacing: -.015em; }
.item-head .sub { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.item-head .sub b { color: var(--gold); font-weight: 600; }
.summary { font-size: 14px; line-height: 1.7; color: var(--steel); margin: 0 0 18px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; }
.spec { background: var(--ink-2); padding: 14px 17px; }
.spec .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.spec .v { font-size: 16px; font-weight: 600; margin-top: 6px; font-family: var(--mono); color: var(--text); }
.spec .v em { font-style: normal; color: var(--gold); }

.sec { margin-top: 50px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.sec-head .n { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.sec-head h2 { font-family: var(--serif); font-size: 23px; font-weight: 420; margin: 0; letter-spacing: -.005em; text-transform: none; }
.sec-head .rule { flex: 1; height: 1px; background: var(--hair); }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
@media (max-width: 760px) { .points { grid-template-columns: repeat(2, 1fr); } }
.point { border: 1px solid var(--hair); border-radius: 6px; padding: 16px 16px 14px; background: linear-gradient(180deg, rgba(255,255,255,.022), transparent 70%), var(--ink-2); position: relative; }
.point .pass { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--volt); border: 1px solid rgba(198,255,74,.4); border-radius: 999px; padding: 3px 8px; }
.point .pass.fail { color: #ff9b9b; border-color: rgba(255,107,107,.45); }
.point .nm { font-size: 13.5px; font-weight: 700; margin: 2px 0 6px; letter-spacing: .01em; }
.point .dt { font-family: var(--mono); font-size: 10.5px; color: var(--muted); line-height: 1.55; word-break: break-word; }

.analysis { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; }
@media (max-width: 760px) { .analysis { grid-template-columns: 1fr; } }
.an-meta { background: var(--ink-2); padding: 22px 24px; }
.an-meta .row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--hair); font-family: var(--mono); font-size: 12px; }
.an-meta .row:last-child { border-bottom: none; }
.an-meta .row .k { color: var(--faint); text-transform: uppercase; font-size: 10px; letter-spacing: .16em; padding-top: 2px; flex: 0 0 auto; }
.an-meta .row .v { color: var(--text); text-align: right; }
.an-read { background: #0a0c11; padding: 22px 24px; }
.an-read .rt { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.elem { margin-bottom: 12px; }
.elem .er { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; margin-bottom: 5px; }
.elem .er b { color: var(--text); font-weight: 600; }
.elem .er span { color: var(--volt); font-weight: 600; }
.elem .bar { height: 7px; border-radius: 99px; background: #1b1f27; overflow: hidden; }
.elem .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--volt-deep), var(--volt)); }
.elem.trace .er span { color: var(--steel); }
.elem.trace .bar i { background: #4a4f5a; }

/* certificate — the ivory security document */
.cert { position: relative; margin-top: 8px; border-radius: 8px; overflow: hidden; color: var(--paper-ink);
  background: linear-gradient(180deg, #FBF7EE, #EFE8D8); padding: 40px 44px 30px; box-shadow: 0 38px 84px rgba(0,0,0,.58); }
.cert::before { /* guilloché engraving watermark */
  content: ""; position: absolute; left: 50%; top: 52%; width: 520px; height: 520px; transform: translate(-50%, -50%);
  background: url(/assets/guilloche/cert-rosette.svg) center/contain no-repeat; opacity: .5; pointer-events: none;
}
.cert::after { /* top + bottom woven security band */
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 22px; pointer-events: none; opacity: .6;
  background: url(/assets/guilloche/cert-band.svg) center/100% 100% no-repeat;
}
.cert-inner { position: relative; z-index: 2; }
.cert-top { text-align: center; border-bottom: 1.5px solid var(--paper-ink); padding-bottom: 17px; margin-bottom: 21px; }
.cert-top img.cl { height: 26px; display: inline-block; margin-bottom: 10px; }
.cert-top h3 { font-family: var(--serif); font-size: 27px; font-weight: 460; letter-spacing: .02em; margin: 0; }
.cert-top .ref { font-family: var(--mono); font-size: 11px; color: var(--paper-mut); margin-top: 8px; word-break: break-all; }
.cert-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 22px; }
@media (max-width: 700px) { .cert-cols { grid-template-columns: 1fr; } }
.cert-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 8px; background: rgba(25,40,59,.05); padding: 8px 12px; border-left: 3px solid var(--gold); color: var(--paper-ink); }
.cert-col .cr { display: flex; padding: 6px 12px; font-size: 12px; font-family: var(--mono); }
.cert-col .cr:nth-child(even) { background: rgba(25,40,59,.045); }
.cert-col .cr .k { width: 122px; flex: 0 0 auto; color: var(--paper-mut); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding-top: 1px; }
.cert-col .cr .v { color: var(--paper-ink); font-weight: 500; word-break: break-word; }
.audit h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 8px; background: rgba(25,40,59,.05); padding: 8px 12px; border-left: 3px solid var(--volt-deep); color: var(--paper-ink); }
.audit table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; }
.audit th { text-align: left; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-mut); padding: 7px 10px; border-bottom: 1px solid rgba(25,40,59,.2); font-weight: 600; }
.audit td { padding: 7px 10px; border-bottom: 1px solid rgba(25,40,59,.1); color: var(--paper-ink); vertical-align: top; }
.audit td.ts { white-space: nowrap; color: var(--paper-mut); width: 188px; }
.cert-hash { margin-top: 20px; padding: 13px 16px; border: 1px dashed rgba(25,40,59,.35); border-radius: 6px; font-family: var(--mono); font-size: 10.5px; color: #33485f; display: flex; gap: 14px; align-items: center; word-break: break-all; }
.cert-hash .k { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-mut); flex: 0 0 auto; }
.cert-foot { margin-top: 18px; font-size: 11px; color: var(--paper-mut); line-height: 1.65; text-align: center; }
.cert-stamp { position: absolute; top: 22px; right: 28px; width: 76px; height: 76px; z-index: 3; }

/* in-browser hash verifier */
.verifybox { margin-top: 16px; border: 1px solid var(--hair); border-radius: 6px; background: var(--ink-2); padding: 18px 22px; }
.verifybox .vb-txt { font-size: 13px; line-height: 1.62; color: var(--steel); }
.verifybox .vb-txt b { color: var(--text); }
.verifybox .vb-txt a { color: var(--gold); text-decoration: underline; }
.verifybox .vb-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.verifybox .vb-out { font-size: 12px; color: var(--muted); }
.verifybox .vb-chain { display: flex; gap: 11px; align-items: flex-start; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--hair); font-size: 12.5px; line-height: 1.6; color: var(--steel); }
.verifybox .vb-chain b { color: var(--gold); }
.verifybox .vb-chain a { color: var(--gold); text-decoration: underline; }
.verifybox .vb-chain-ico { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-weight: 700; background: linear-gradient(135deg, #f6df8b, #e2b438 55%, #b9852a); color: #1a1405; }

/* ---------- verification console (record-verify.js / root-verify.js) ---------- */
.vc { margin-top: 16px; border: 1px solid var(--hair-2); border-radius: 6px; background: #07080b; padding: 16px 18px; font-family: var(--mono); font-size: 12px; line-height: 1.7; }
.vc-line { color: var(--steel); }
.vc-line.ok { color: var(--volt); }
.vc-line.no { color: #ff9b9b; }
.vc-snip { margin: 6px 0 10px; padding: 9px 12px; border-left: 2px solid var(--gold); background: rgba(226,180,56,.05); color: var(--muted); word-break: break-all; font-size: 11px; }
.vc-hash { display: flex; gap: 12px; align-items: baseline; margin: 4px 0; }
.vc-hash-k { flex: 0 0 76px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.vc-hash-v { word-break: break-all; letter-spacing: .04em; }
.vc-hash-v i { font-style: normal; color: var(--text); }
.vc-hash-v i.ok { color: var(--volt); }
.vc-hash-v i.no { color: #ff6b6b; background: rgba(255,107,107,.12); }
.vc-verdict { margin-top: 12px; padding: 11px 14px; border-radius: 6px; font-family: var(--grot); font-size: 13px; font-weight: 600; line-height: 1.55; }
.vc-verdict.ok { border: 1px solid rgba(198,255,74,.4); background: rgba(198,255,74,.07); color: #d9ffa1; }
.vc-verdict.no { border: 1px solid rgba(255,107,107,.45); background: rgba(255,107,107,.08); color: #ffb3b3; }
.vc-lab { margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--hair-2); }
.vc-lab-h { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.vc-lab-p { font-family: var(--grot); font-size: 12.5px; color: var(--steel); line-height: 1.6; margin-bottom: 10px; }
.vc-lab-p b { color: var(--text); }
.vc-ta { width: 100%; box-sizing: border-box; min-height: 86px; resize: vertical; background: var(--ink); border: 1px solid var(--hair-2); border-radius: 5px; color: var(--text); font-family: var(--mono); font-size: 11px; line-height: 1.6; padding: 10px 12px; outline: none; }
.vc-ta:focus { border-color: var(--gold); }
.vc-meter { margin-top: 8px; font-size: 12px; font-weight: 600; }
.vc-meter.ok { color: var(--volt); }
.vc-meter.no { color: #ff9b9b; }
.vc-reset { margin-top: 12px; font-size: 12px; padding: 8px 16px; }
.vc-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.vc-share-btn { font-size: 12px; padding: 8px 16px; }
.vc-share-cap { font-size: 11px; color: var(--faint); }

/* trust strip under the status banner (verified records) */
.trustbar { display: flex; align-items: center; gap: 11px; margin-top: 10px; padding: 11px 18px; border: 1px solid rgba(226,180,56,.3); border-radius: 8px; background: linear-gradient(110deg, rgba(226,180,56,.08), transparent 72%); font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; color: var(--steel); text-decoration: none; }
.trustbar:hover { border-color: rgba(226,180,56,.5); }
.trustbar b { color: var(--gold); font-weight: 600; }
.trustbar .tb-i { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; background: linear-gradient(135deg, #f6df8b, #e2b438 55%, #b9852a); color: #1a1405; }
.trustbar .tb-go { margin-left: auto; color: var(--volt); font-weight: 600; white-space: nowrap; }

/* ---------- footer ---------- */
.site-foot { margin-top: 66px; border-top: 1px solid var(--hair); padding: 46px 0 54px; background: var(--ink-2); }
.site-foot .foot-in { display: flex; justify-content: space-between; gap: 44px; align-items: flex-start; flex-wrap: wrap; }
.site-foot .foot-in > div > img { height: 32px; display: block; }
.foot-links { display: flex; gap: 54px; flex-wrap: wrap; }
.foot-col .h { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin-bottom: 13px; }
.foot-col a { display: block; font-size: 13.5px; color: var(--steel); margin-bottom: 9px; }
.foot-col a:hover { color: var(--volt); }
.foot-legal { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: 11.5px; line-height: 1.8; color: var(--faint); }
.foot-legal b { color: var(--steel); }

/* ---------- services tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
@media (max-width: 700px) { .tiers { grid-template-columns: 1fr; } }
.tier { border: 1px solid var(--hair); border-radius: 8px; padding: 22px 22px 18px; background: var(--ink-2); position: relative; }
.tier.sel { border-color: var(--volt); box-shadow: 0 0 0 3px rgba(198,255,74,.12); }
.tier .nm { font-size: 16px; font-weight: 700; }
.tier .items { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 3px; }
.tier .pr { font-family: var(--serif); font-size: 30px; font-weight: 420; color: var(--gold); margin: 12px 0 8px; }
.tier p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--steel); }

/* ---------- the holographic tamper seal (shared) ---------- */
.sealwrap, .cert-stamp { position: relative; }
.sealwrap .seal-holo, .cert-stamp .seal-holo {
  position: absolute; inset: 7%; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff5f6d, #ffc371, #c6ff4a, #6dd5fa, #a18cd1, #ff5f6d);
  filter: saturate(.85) brightness(.9); opacity: .3; mix-blend-mode: screen; animation: seal-holo 14s linear infinite;
}
.sealwrap .seal-eng, .cert-stamp .seal-eng {
  position: absolute; inset: 0; background: url(/assets/guilloche/seal-engrave.svg) center/contain no-repeat; opacity: .8;
}
.sealwrap .seal-svg, .cert-stamp .seal-svg { position: absolute; inset: 0; }
.sealwrap img.em, .cert-stamp img.em { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34%; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
@keyframes seal-holo { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal-holo { animation: none; } }
/* gold seal on the dark register pages */
.sealwrap svg .ring-o { fill: rgba(10,9,7,.5); stroke: var(--gold-lt); stroke-width: 1.4; }
.sealwrap svg .ring-i { fill: none; stroke: rgba(232,200,121,.55); stroke-width: .7; stroke-dasharray: 2.4 2; }
.sealwrap svg .arc { font-family: var(--mono); font-size: 8.6px; font-weight: 600; letter-spacing: .12em; fill: var(--gold-lt); }
/* darker seal stamped on the ivory certificate */
.cert-stamp svg .ring-o { fill: none; stroke: #b89540; stroke-width: 1.6; }
.cert-stamp svg .ring-i { fill: none; stroke: rgba(184,149,64,.6); stroke-width: .7; stroke-dasharray: 2.4 2; }
.cert-stamp svg .arc { font-family: var(--mono); font-size: 8.6px; font-weight: 600; letter-spacing: .12em; fill: #9a7b34; }
.cert-stamp .seal-holo { opacity: .22; }

/* Large screens: make better use of space by scaling the CONTENT, not just the box.
   Standard CSS zoom (Interop 2024 — Chrome/Edge/Safari/Firefox 126+); older Firefox
   simply keeps the unscaled layout. Print-route pages (cards, certificate) have their
   own stylesheets and are unaffected. */
@media (min-width: 2040px) { body { zoom: 1.12; } }

/* mobile: certificate details breathe (QA findings 2/8/9) */
@media (max-width: 640px) {
  .cert-hash { display: block; }
  .cert-hash .k { display: block; margin-bottom: 6px; }
  .audit td.ts { white-space: normal; width: 96px; }
  .cert-top .ref { word-break: break-word; }
}
@media (max-width: 430px) {
  .points { grid-template-columns: 1fr; }
}

/* demo/specimen records */
.st-demo { background: rgba(201,208,218,.1); color: var(--steel); border: 1px dashed var(--hair-2); }
.demo-note { margin: 22px 0 -6px; padding: 12px 16px; border: 1px dashed var(--hair-2); border-radius: 7px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--steel); background: rgba(201,208,218,.04); }
.demo-note b { color: var(--text); }
