:root { --ink: #16202b; --muted: #5f6b78; --line: #dde3ea; --bg: #f4f6f9; --card: #fff; --brand: #1f3a5f; --brand-2: #2d5a8e; --ok: #1a7f4b; --ok-bg: #e4f5ea; --warn: #b45309; --warn-bg: #fdf0e0; --bad: #b42318; --bad-bg: #fde8e6; --info-bg: #e7eef8; --radius: 10px; }
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--brand-2); text-decoration: none; } a:hover { text-decoration: underline; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
main.wrap { flex: 1; padding: 1.5rem 0 3rem; }
.topbar { background: var(--brand); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 1rem; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: .2px; display: flex; align-items: center; gap: .5rem; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: rgba(255,255,255,.15); font-size: 1rem; }
.nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a { color: rgba(255,255,255,.85); padding: .45rem .7rem; border-radius: 6px; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav .linkish { background: none; border: 0; color: rgba(255,255,255,.85); padding: .45rem .7rem; cursor: pointer; font: inherit; }
.nav .linkish:hover { color: #fff; }
form.inline { display: inline; }
.footer { border-top: 1px solid var(--line); padding: 1.25rem 0; font-size: .85rem; color: var(--muted); background: #fff; }
.footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; word-break: break-all; }
.center { text-align: center; }
h1 { font-size: 1.6rem; margin: 0 0 .5rem; line-height: 1.25; } h2 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; } h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.card.narrow { max-width: 480px; margin: 2rem auto; }
.grid { display: grid; gap: 1rem; }
.layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; } .layout.layout-form { grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); } .layout > * { min-width: 0; } .grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } .grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.stat .n { font-size: 1.9rem; font-weight: 700; color: var(--brand); line-height: 1.1; } .stat .l { color: var(--muted); font-size: .85rem; }
.btn { display: inline-block; padding: .5rem .95rem; border-radius: 7px; border: 1px solid var(--brand-2); background: #fff; color: var(--brand-2); font: inherit; font-weight: 600; cursor: pointer; line-height: 1.3; }
.btn:hover { background: var(--info-bg); text-decoration: none; }
.btn-primary { background: var(--brand-2); color: #fff; } .btn-primary:hover { background: var(--brand); }
.btn-ghost { border-color: var(--line); color: var(--ink); } .btn-danger { border-color: var(--bad); color: var(--bad); } .btn-danger:hover { background: var(--bad-bg); }
.btn-sm { padding: .3rem .65rem; font-size: .85rem; }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.badge-valid, .badge-issued { background: var(--ok-bg); color: var(--ok); } .badge-revoked { background: var(--bad-bg); color: var(--bad); } .badge-draft { background: var(--warn-bg); color: var(--warn); } .badge-not_found, .badge-invalid { background: var(--bad-bg); color: var(--bad); } .badge-neutral { background: var(--info-bg); color: var(--brand); }
.flashes { margin-top: 1rem; } .flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: .5rem; border: 1px solid transparent; }
.flash-success { background: var(--ok-bg); color: var(--ok); } .flash-error { background: var(--bad-bg); color: var(--bad); } .flash-info { background: var(--info-bg); color: var(--brand); }
.form label { display: block; margin-bottom: .9rem; font-weight: 600; font-size: .9rem; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=url], .form input[type=date], .form input[type=number], .form select, .form textarea { display: block; width: 100%; margin-top: .3rem; padding: .55rem .7rem; border: 1px solid #c5cdd6; border-radius: 7px; font: inherit; background: #fff; }
.form textarea { min-height: 140px; resize: vertical; } .form textarea.tall { min-height: 420px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(45,90,142,.35); border-color: var(--brand-2); }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.form .check { display: flex; align-items: center; gap: .5rem; font-weight: 500; } .form .check input { width: auto; margin: 0; }
.form .help { font-weight: 400; color: var(--muted); font-size: .8rem; display: block; margin-top: .25rem; }
.form input[type=color] { width: 48px; height: 36px; padding: 0; border: 1px solid #c5cdd6; border-radius: 6px; vertical-align: middle; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; } .table th, .table td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; } .table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; } .table tr:hover td { background: #fafbfd; }
.table .right { text-align: right; }
.doc-list { display: grid; gap: .75rem; }
.doc-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; }
.doc-item .kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.doc-item h3 { margin: .15rem 0 .25rem; font-size: 1.1rem; } .doc-item p { margin: 0; color: #3a4654; font-size: .93rem; }
.doc-item .side { text-align: right; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.filters input[type=search], .filters select { padding: .5rem .7rem; border: 1px solid #c5cdd6; border-radius: 7px; font: inherit; min-width: 220px; }
.pagination { display: flex; gap: .25rem; margin-top: 1rem; flex-wrap: wrap; } .pagination a, .pagination .current { padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; } .pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.verdict { border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; border: 2px solid; }
.verdict.valid { background: var(--ok-bg); border-color: var(--ok); color: #0f5132; } .verdict.revoked { background: var(--bad-bg); border-color: var(--bad); color: #7a1d14; } .verdict.not_found, .verdict.invalid { background: var(--bad-bg); border-color: var(--bad); color: #7a1d14; }
.verdict h2 { margin: 0 0 .25rem; font-size: 1.35rem; } .verdict p { margin: .2rem 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; font-size: .92rem; } .kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; min-width: 0; }
.checks { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; gap: .75rem; flex-wrap: wrap; } .checks li { padding: .3rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600; background: #fff; border: 1px solid var(--line); } .checks li.ok { color: var(--ok); border-color: var(--ok); } .checks li.ko { color: var(--bad); border-color: var(--bad); }
.doc-body { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; line-height: 1.7; } .doc-body h2 { font-size: 1.25rem; } .doc-body table { border-collapse: collapse; width: 100%; margin: .75rem 0; } .doc-body th, .doc-body td { border: 1px solid #bbb; padding: .4rem .6rem; } .doc-body blockquote { border-left: 4px solid var(--brand); margin: 1rem 0; padding: .5rem 1rem; background: #f6f7f9; }
.pages { display: grid; gap: 1rem; background: #e6e9ee; padding: 1rem; border-radius: 8px; max-width: 100%; } .pages .page { width: 100%; max-width: 100%; height: auto; display: block; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
pre.code { background: #0f1720; color: #e6edf3; padding: 1rem; border-radius: 8px; overflow: auto; font-size: .8rem; line-height: 1.5; }
details summary { cursor: pointer; font-weight: 600; }
.subnav { display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.subnav a { padding: .55rem .85rem; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; margin-bottom: -1px; } .subnav a.active, .subnav a:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.entity-chip { font-size: .8rem; color: var(--muted); } 
.hero { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 14px; padding: 2rem 2rem; margin-bottom: 1.5rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.hero h1 { font-size: 1.8rem; margin: 0 0 .4rem; } .hero p { margin: 0; opacity: .9; max-width: 640px; }
.hero form { display: flex; gap: .5rem; } .hero input { padding: .65rem .9rem; border-radius: 8px; border: 0; font: inherit; min-width: 260px; } .hero .btn { background: #fff; color: var(--brand); border-color: #fff; }
.secret { background: #fff8e1; border: 1px dashed #d99a0b; padding: .75rem 1rem; border-radius: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; }
.logo-thumb { max-height: 48px; max-width: 160px; background: #fff; border: 1px solid var(--line); padding: 4px; border-radius: 6px; }
.danger-zone { border-color: #f1c3bf; }
@media (max-width: 900px) { .layout, .layout.layout-form { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .doc-item { grid-template-columns: 1fr; } .doc-item .side { text-align: left; } .hero { grid-template-columns: 1fr; } .hero input { min-width: 0; width: 100%; } .kv { grid-template-columns: 1fr; } }
@media print { .topbar, .footer, .actions, .flashes { display: none !important; } }
/* ---- audit additions ---- */
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--brand); padding: .5rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(45,90,142,.55); outline-offset: 2px; }
.card { overflow-x: auto; }
.table { min-width: 560px; } .card.narrow .table, .doc-list .table { min-width: 0; }
.clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-auto { margin-left: auto; }
.fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem .25rem; margin: 1rem 0; } .fieldset legend { font-weight: 700; padding: 0 .4rem; }
[hidden] { display: none !important; }
.subnav { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
.filters input[type=search], .filters select { max-width: 100%; }
.verdict h2 { overflow-wrap: anywhere; } h1, h2, h3, .doc-item h3, .kv dd { overflow-wrap: anywhere; }
button[disabled], .btn[disabled] { opacity: .6; cursor: not-allowed; }
.pages { padding: .5rem; }
.secret { overflow-wrap: anywhere; }
img { max-width: 100%; }
@media (max-width: 720px) {
  html { font-size: 15px; }
  .topbar .wrap { min-height: 52px; } .nav a, .nav .linkish { padding: .4rem .5rem; }
  .card { padding: 1rem; } .hero { padding: 1.4rem 1.2rem; } .hero h1 { font-size: 1.4rem; }
  .page-head .actions { width: 100%; } .page-head .actions .btn { flex: 1 1 auto; text-align: center; }
  .table { min-width: 480px; }
  .form .row { grid-template-columns: 1fr; }
  .stat .n { font-size: 1.5rem; }
}
/* Top-bar sign-in button: override the white nav-link colour with a solid, legible button */
.nav a.btn { background: #fff; color: var(--brand); border: 1px solid #fff; font-weight: 700; padding: .4rem .85rem; margin-left: .35rem; }
.nav a.btn:hover, .nav a.btn:focus-visible { background: var(--info-bg); color: var(--brand); }
/* ---- configurable hero ---- */
.hero.hero-image { background-size: cover; background-position: center; min-height: 300px; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.hero.hero-single { grid-template-columns: 1fr; }
.hero.hero-center { text-align: center; grid-template-columns: 1fr; justify-items: center; }
.hero.hero-center .hero-text p { margin-left: auto; margin-right: auto; }
.hero.hero-center form { justify-content: center; margin-top: .5rem; }
.hero .hero-cta { margin-top: 1rem; }
.hero .hero-text p { white-space: pre-line; }
/* ---- confirmation dialog ---- */
.modal { border: 0; border-radius: 12px; padding: 0; width: min(480px, calc(100% - 2rem)); box-shadow: 0 20px 60px rgba(0,0,0,.35); color: var(--ink); }
.modal::backdrop { background: rgba(16,32,59,.55); backdrop-filter: blur(2px); }
.modal-body { padding: 1.5rem 1.5rem 1.25rem; margin: 0; }
.modal-body h2 { margin: 0 0 .6rem; font-size: 1.2rem; }
.modal-body p { margin: 0 0 1.25rem; color: #3a4654; overflow-wrap: anywhere; }
.modal-actions { justify-content: flex-end; }
@media (max-width: 480px) { .modal-actions { flex-direction: column-reverse; } .modal-actions .btn { width: 100%; text-align: center; } }
.pagination .gap { padding: .3rem .4rem; color: var(--muted); }
