/* ==========================================================================
   Genetix — analytical testing site
   Tokens: purple ink + violet primary on white, lavender tint for sections.
   Type: Poppins throughout (IBM Plex Mono for report keys).
   ========================================================================== */

:root {
  --ink: #1B1033;
  --plum: #2E1A5E;
  --violet: #5E2BD9;
  --violet-dark: #4A1FB0;
  --orchid: #A78BFA;
  --lilac: #C4B5FD;
  --lavender: #F4F0FF;
  --mist: #E9E2FA;
  --muted: #6B5B95;
  --white: #FFFFFF;
  --verified: #0F8A5F;
  --verified-bg: #E6F6EF;
  --warn: #9A6412;
  --warn-bg: #FFF4DF;
  --alert: #B42B18;
  --alert-bg: #FDECE8;
  --font-display: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --container: 1140px;
  --shadow-soft: 0 12px 40px -20px rgba(46, 26, 94, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--plum); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet-dark); }
:focus-visible { outline: 3px solid var(--orchid); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; height: auto; }
ul { padding-left: 1.2em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

.container { width: min(var(--container), calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section.tint { background: var(--lavender); }
.section.plum { background: var(--plum); color: var(--white); }
.section.plum h2, .section.plum h3 { color: var(--white); }
.section.plum p { color: var(--lilac); }
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* --------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--mist); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.site-header .logo img { display: block; height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--plum); text-decoration: none; font-weight: 500; padding: .55rem .85rem; border-radius: 8px; }
.nav a:hover { background: var(--lavender); }
.nav a.active { color: var(--violet); background: var(--lavender); }
.nav-toggle { display: none; background: none; border: 1px solid var(--mist); border-radius: 8px; padding: .45rem .6rem; font: inherit; color: var(--plum); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 74px; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--mist); padding: .75rem 1.25rem 1.25rem; }
  .nav.open { display: flex; }
  .nav .btn { margin-top: .5rem; text-align: center; }
}

/* --------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: .98rem; padding: .78rem 1.35rem; border-radius: var(--radius); border: 1.5px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: var(--violet-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn-outline:hover { background: var(--lavender); }
.btn-light { background: var(--white); color: var(--plum); }
.btn-light:hover { background: var(--lavender); }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--mist); }
.btn-ghost:hover { background: var(--lavender); }
.btn-sm { padding: .5rem .9rem; font-size: .88rem; }
.btn-danger { background: var(--alert-bg); color: var(--alert); border-color: transparent; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--lavender); padding: 4.5rem 0 4rem; }
.hero .trace { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; pointer-events: none; }
.hero .trace svg { width: 100%; height: 100%; display: block; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: .6em; }
.hero .lede { margin-bottom: 1.6rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--mist); }
.hero .facts div { font-size: .92rem; color: var(--muted); }
.hero .facts strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--plum); font-weight: 600; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; gap: 2.5rem; } }

/* --------------------------------------------------------------- verify card */
.verify-card { background: var(--white); border: 1px solid var(--mist); border-top: 5px solid var(--violet); border-radius: var(--radius-lg); padding: 1.75rem 1.75rem 1.5rem; box-shadow: var(--shadow-soft); }
.verify-card h2 { font-size: 1.35rem; margin-bottom: .25rem; }
.verify-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.verify-card .hint { margin: .9rem 0 0; font-size: .85rem; }
.verify-card .hint code { background: var(--lavender); padding: .1em .4em; border-radius: 4px; font-size: .95em; }

/* --------------------------------------------------------------- forms */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; font-size: .95rem; color: var(--plum); }
.field .help { font-size: .84rem; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field input[type="password"], .field input[type="date"], .field input[type="url"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--mist); border-radius: var(--radius); padding: .72rem .9rem; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(94, 43, 217, .15); }
.field textarea { min-height: 140px; resize: vertical; }
.field input.key { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.field input[type="file"] { font-size: .92rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; }
.check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--violet); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.notice { border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .95rem; margin-bottom: 1rem; border: 1px solid transparent; }
.notice.error { background: var(--alert-bg); color: var(--alert); border-color: #F3C6BD; }
.notice.ok { background: var(--verified-bg); color: var(--verified); border-color: #BFE7D3; }
.notice.warn { background: var(--warn-bg); color: var(--warn); border-color: #F1DDB4; }
.notice ul { margin: .25rem 0 0; }

/* --------------------------------------------------------------- how it works (sequence) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { list-style: none; position: relative; padding-top: 3.25rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--violet); color: var(--white); font-family: var(--font-display); font-weight: 600; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; top: 1.25rem; left: 2.9rem; right: -1.5rem; height: 1px; background: var(--mist); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.steps p { font-size: .95rem; color: var(--muted); margin: 0; }
.steps { padding: 0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(2)::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li::after { display: none; } }

/* --------------------------------------------------------------- service list (ruled rows, not cards) */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mist); }
.service-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 1.25rem 2rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--mist); }
.service-list .name { font-family: var(--font-display); font-weight: 600; color: var(--plum); font-size: 1.05rem; text-decoration: none; }
.service-list .name:hover { color: var(--violet); }
.service-list .meta { display: block; color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.service-list .price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--plum); white-space: nowrap; }
.service-list .price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--muted); text-align: right; }
@media (max-width: 640px) { .service-list li { grid-template-columns: 1fr; gap: .75rem; } .service-list .price small { text-align: left; } }

.category-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.category-nav a { text-decoration: none; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--mist); color: var(--plum); font-size: .92rem; font-weight: 500; }
.category-nav a:hover { border-color: var(--orchid); background: var(--lavender); }
.category-block { padding: 2.25rem 0; }
.category-block + .category-block { border-top: 1px solid var(--mist); }

/* --------------------------------------------------------------- feature columns */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2.25rem 2.5rem; }
.columns h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.columns p { font-size: .96rem; margin: 0; }
.columns .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--lavender); color: var(--violet); display: grid; place-items: center; margin-bottom: .9rem; }
.section.plum .columns .icon { background: rgba(255,255,255,.08); color: var(--lilac); }

/* --------------------------------------------------------------- results tables */
.table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table th, .table td { text-align: left; padding: .8rem .75rem; border-bottom: 1px solid var(--mist); vertical-align: top; }
.table th { font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--muted); background: var(--lavender); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table a { text-decoration: none; font-weight: 500; }
.table-wrap { overflow-x: auto; }

.pill { display: inline-block; padding: .2em .65em; border-radius: 999px; font-size: .8rem; font-weight: 600; font-family: var(--font-display); }
.pill.issued { background: var(--verified-bg); color: var(--verified); }
.pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.withdrawn { background: var(--alert-bg); color: var(--alert); }
.pill.public { background: var(--lavender); color: var(--violet); }

/* --------------------------------------------------------------- report document */
.report-page { background: var(--lavender); padding: 3rem 0 4rem; }
.report-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.report-status .badge { display: inline-flex; align-items: center; gap: .55rem; background: var(--verified-bg); color: var(--verified); border: 1px solid #BFE7D3; font-family: var(--font-display); font-weight: 600; padding: .55rem .95rem; border-radius: 999px; }
.report-status .badge.pending { background: var(--warn-bg); color: var(--warn); border-color: #F1DDB4; }
.report-status .badge.withdrawn { background: var(--alert-bg); color: var(--alert); border-color: #F3C6BD; }
.report-status .badge svg { width: 18px; height: 18px; }
.report-status .tools { display: flex; gap: .5rem; flex-wrap: wrap; }

.document { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius-lg); max-width: 920px; margin: 0 auto; overflow: hidden; box-shadow: var(--shadow-soft); }
.document .doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; padding: 2rem 2.5rem 1.5rem; border-bottom: 1px solid var(--mist); border-top: 6px solid var(--violet); }
.document .doc-head img { height: 40px; width: auto; }
.document .doc-head .ref { text-align: right; }
.document .doc-head .ref .task { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--plum); line-height: 1.1; }
.document .doc-head .ref .key { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; color: var(--muted); font-size: .95rem; }
.document .doc-title { padding: 1.75rem 2.5rem 0; }
.document .doc-title h1 { font-size: 1.7rem; margin-bottom: .2rem; }
.document .doc-title p { color: var(--muted); margin: 0; }
.document .doc-body { padding: 1.5rem 2.5rem 2.25rem; display: grid; gap: 2rem; }
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem 2rem; margin: 0; }
.doc-meta div { border-top: 1px solid var(--mist); padding-top: .6rem; }
.doc-meta dt { font-size: .82rem; color: var(--muted); }
.doc-meta dd { margin: .1rem 0 0; font-weight: 500; }
.doc-section h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.doc-conclusion { border-left: 4px solid var(--violet); background: var(--lavender); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; }
.doc-conclusion p { margin: 0; }
.attachments { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.attachment { border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; background: var(--lavender); }
.attachment img { display: block; width: 100%; height: auto; }
.attachment .cap { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .9rem; font-size: .88rem; background: var(--white); border-top: 1px solid var(--mist); }
.attachment .pdf { display: grid; place-items: center; padding: 2.5rem 1rem; color: var(--violet); font-family: var(--font-display); font-weight: 600; }
.doc-foot { padding: 1.25rem 2.5rem 1.75rem; border-top: 1px solid var(--mist); display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; font-size: .85rem; color: var(--muted); }
.doc-foot p { margin: 0; max-width: none; }
.doc-foot #qr { width: 84px; height: 84px; flex: 0 0 84px; }
.doc-foot #qr:empty { display: none; }
@media (max-width: 640px) {
  .document .doc-head, .document .doc-title, .document .doc-body, .doc-foot { padding-inline: 1.25rem; }
  .document .doc-head { flex-direction: column; }
  .document .doc-head .ref { text-align: left; }
}

/* --------------------------------------------------------------- content pages */
.page-head { padding: 3.5rem 0 2rem; }
.page-head h1 { margin-bottom: .3em; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }
.aside { background: var(--lavender); border-radius: var(--radius-lg); padding: 1.6rem; }
.aside h3 { font-size: 1.05rem; }
.aside p { font-size: .95rem; margin-bottom: .6em; }
.aside address { font-style: normal; font-size: .95rem; }
.aside .locations div { padding: .6rem 0; border-top: 1px solid var(--mist); font-size: .92rem; }
.aside .locations strong { display: block; font-weight: 500; color: var(--plum); }

.faq details { border-top: 1px solid var(--mist); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--mist); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--plum); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .75rem; color: var(--ink); }

.includes { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.includes li { padding-left: 1.6rem; position: relative; }
.includes li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--verified-bg); border: 2px solid var(--verified); }

.price-block { display: flex; align-items: baseline; gap: .75rem; margin: 1rem 0 1.5rem; }
.price-block .amount { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--plum); }
.price-block .per { color: var(--muted); }

.spec { list-style: none; padding: 0; margin: 0; }
.spec li { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--mist); font-size: .95rem; }
.spec li span:first-child { color: var(--muted); }

.cta-band { background: var(--plum); color: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { color: var(--white); margin: 0 0 .25rem; font-size: 1.5rem; }
.cta-band p { color: var(--lilac); margin: 0; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--plum); color: var(--lilac); padding: 3.5rem 0 2rem; margin-top: auto; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; font-size: .93rem; }
.site-footer a { color: var(--lilac); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; font-size: .93rem; line-height: 1.55; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.site-footer .bottom form { display: inline; }
.site-footer .bottom button { background: none; border: none; color: var(--lilac); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
@media (max-width: 860px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .grid { grid-template-columns: 1fr; } }

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* --------------------------------------------------------------- admin */
.admin-bar { background: var(--ink); color: var(--lilac); font-size: .85rem; }
.admin-bar .container { display: flex; gap: 1.25rem; align-items: center; height: 38px; }
.admin-bar a { color: var(--white); text-decoration: none; }
.admin-bar a:hover { text-decoration: underline; }
.admin-bar .spacer { flex: 1; }
.admin-page { padding: 2.5rem 0 4rem; }
.admin-page h1 { font-size: 1.8rem; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.stat { background: var(--lavender); border-radius: var(--radius); padding: .9rem 1.2rem; min-width: 150px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--plum); }
.stat span { font-size: .85rem; color: var(--muted); }
.results-editor { border: 1px solid var(--mist); border-radius: var(--radius); overflow-x: auto; }
.results-editor table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.results-editor th { text-align: left; background: var(--lavender); padding: .55rem .5rem; font-weight: 500; font-size: .82rem; color: var(--muted); }
.results-editor td { padding: .35rem .3rem; border-top: 1px solid var(--mist); }
.results-editor input { width: 100%; min-width: 90px; font: inherit; font-size: .9rem; padding: .45rem .5rem; border: 1px solid var(--mist); border-radius: 6px; }
.results-editor .rm { background: none; border: none; color: var(--alert); cursor: pointer; font-size: 1.1rem; }
.message-card { border: 1px solid var(--mist); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.message-card.handled { opacity: .6; }
.message-card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .9rem; margin-bottom: .6rem; }
.message-card pre { white-space: pre-wrap; background: var(--lavender); padding: .75rem .9rem; border-radius: 8px; font-size: .85rem; margin: .5rem 0 0; }
.inline-form { display: inline; }
.card { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius-lg); padding: 2rem; max-width: 460px; margin: 3rem auto; }

/* --------------------------------------------------------------- print (report) */
@media print {
  .site-header, .site-footer, .admin-bar, .report-status .tools, .no-print { display: none !important; }
  body { background: white; font-size: 12pt; }
  .report-page { background: white; padding: 0; }
  .document { box-shadow: none; border: none; max-width: none; }
  .attachment img { max-height: 90vh; object-fit: contain; }
  a { color: inherit; text-decoration: none; }
}

/* --------------------------------------------------------------- certificate additions */
.key-inline { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
@media (max-width: 640px) { .two-up { grid-template-columns: 1fr; } }
.kv { margin: 0; background: var(--lavender); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .93rem; }
.kv div { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: .5rem; padding: .22rem 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; }
.kpis div { padding: 1rem .75rem; text-align: center; background: var(--lavender); border-left: 1px solid var(--mist); }
.kpis div:first-child { border-left: none; }
.kpis strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--violet); font-weight: 600; font-variant-numeric: tabular-nums; }
.kpis span { font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis div:nth-child(3) { border-left: none; } .kpis div:nth-child(n+3) { border-top: 1px solid var(--mist); } }
.table tr.main-peak td { font-weight: 600; background: #FAF8FF; }
.pdf-frame { border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; background: var(--lavender); }
.pdf-frame object { display: block; width: 100%; height: min(78vh, 1000px); }
@media print { .pdf-frame { display: none; } }
