/* RegBench prototype stylesheet.
   Identity: RegBench brand kit v4.0.0 (navy, blue and teal; Outfit headings, Plus Jakarta Sans body and
   controls, JetBrains Mono identifiers). The fonts are self-hosted from /static/fonts/ (see fonts.css there),
   with Segoe UI and the system sans as fallbacks. Logo files live in /static/brand/. */
:root {
  --navy: #071F46; --navy-deep: #06172F;
  --blue: #1467B8; --blue-deep: #0F4E8D;
  --teal: #00B8AD; --teal-press: #00A69D; --teal-text: #006B66;
  --canvas: #F8FAFB; --paper: #FFFFFF;
  --mint: #E8F7F3; --ice: #EAF2FC; --cyan: #E6F6FA;
  --ink: #071F46; --body-ink: #40536B; --slate: #56667A;
  --border: #DCE3EB; --control: #748396; --on-dark-muted: #C2D0E2;
  /* Status pairs: meaningful workflow states only, always next to a text label. */
  --pass: #17654B; --pass-bg: #E8F5EE; --pass-line: #BFE3D0;
  --flag: #8A4B08; --flag-bg: #FFF3DB; --flag-line: #F2D9A6; --flag-accent: #D99A2B;
  --hold: #B42318; --hold-bg: #FEECEB; --hold-line: #F4C3BE;
  --deferred: #40536B; --deferred-bg: #EAF2FC;
  --cloud: var(--canvas); --mist: var(--border); --tint: var(--ice);
  --display: "Outfit", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --shadow-soft: 0 1px 2px #071F4612;
  --shadow-card: 0 1px 2px #071F460D, 0 10px 30px #071F460F;
  --shadow-lift: 0 2px 4px #071F460F, 0 22px 50px #071F461F;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hero-gradient: radial-gradient(120% 120% at 88% -8%, rgba(0,184,173,.16), transparent 52%), radial-gradient(110% 120% at 2% 4%, rgba(20,103,184,.12), transparent 50%), radial-gradient(90% 90% at 50% 120%, rgba(7,31,70,.05), transparent 60%), #F8FAFB;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.55; color: var(--body-ink); background: var(--canvas); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
::selection { background: var(--mint); color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); margin: 0 0 .4rem; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: 2rem; font-weight: 600; } h2 { font-size: 1.45rem; margin-top: 1.6rem; } h3 { font-size: 1.15rem; margin-top: 1rem; } h4 { letter-spacing: 0; }
p { margin: .4rem 0 .8rem; }
strong { color: var(--navy); }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 20px; }

/* Header: light bar, approved horizontal logo, pill links, navy for the current page. */
.print-brand { display: none; }
.nav { background: rgba(248, 250, 251, .94); border-bottom: 1px solid var(--border); z-index: 50; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.nav .wrap { max-width: 80rem; display: flex; align-items: center; gap: 4px 4px; flex-wrap: wrap; padding: 10px 20px; }
.brand { display: inline-flex; align-items: center; margin-right: 10px; border-radius: 8px; }
.brand img { height: 46px; width: auto; display: block; }
.nav a.link { color: var(--body-ink); text-decoration: none; font-size: .875rem; font-weight: 500; line-height: 1; padding: 10px 11px; border-radius: 999px; transition: background .16s var(--ease), color .16s var(--ease); }
.nav a.link:hover { background: var(--mint); color: var(--navy); }
.nav a.link.active { background: var(--navy); color: #fff; }
.nav .spacer { flex: 1; }

/* Landing hero: the kit's layered radial gradient on the pale canvas, navy headline, teal underline. */
.hero { background: var(--hero-gradient); border-bottom: 1px solid var(--border); padding: 3.2rem 0 2.8rem; }
.hero h1 { font-size: clamp(2.1rem, 1.55rem + 1.8vw, 3.05rem); font-weight: 600; line-height: 1.07; max-width: 21ch; margin-top: 1rem; }
.hero p.lead { color: var(--body-ink); font-size: 1.125rem; line-height: 1.625; max-width: 46rem; margin-top: 1.2rem; }
.underline { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 3px; text-underline-offset: 7px; text-decoration-skip-ink: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-text); }
.eyebrow::before { content: ""; width: 26px; height: 2px; flex-shrink: 0; border-radius: 2px; background: var(--teal); }

main { padding: 1.6rem 0 3rem; }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid > * { min-width: 0; }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: 22px; padding: 1.2rem 1.4rem; box-shadow: var(--shadow-soft); }
.card h3 { margin-top: 0; }
.stat { background: var(--paper); border: 1px solid var(--border); border-radius: 22px; padding: 1rem 1.2rem; box-shadow: var(--shadow-soft); }
.stat .n { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -.025em; }
.stat .l { font-size: .74rem; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }

table.data { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .9rem; }
table.data th, table.data td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { background: var(--ice); color: var(--navy); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
table.data tr:hover td { background: #FBFDFE; }
table.data.compact td, table.data.compact th { padding: .32rem .5rem; font-size: .84rem; }

/* Dispositions and severities use the kit's status pairs; PASS is green, FLAG amber, HOLD red. */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; border: 1px solid transparent; }
.badge.PASS { background: var(--pass-bg); color: var(--pass); border-color: var(--pass-line); }
.badge.FLAG { background: var(--flag-bg); color: var(--flag); border-color: var(--flag-line); }
.badge.HOLD { background: var(--hold-bg); color: var(--hold); border-color: var(--hold-line); }
.sev { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sev.info { background: var(--ice); color: var(--blue); }
.sev.low { background: var(--mint); color: var(--teal-text); }
.sev.medium { background: var(--flag-bg); color: var(--flag); }
.sev.high { background: #FDE3D0; color: #9A3F0B; }
.sev.critical { background: var(--hold-bg); color: var(--hold); }
.tag { display: inline-block; padding: 1px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: .72rem; color: var(--slate); background: var(--paper); }
.tag.layer { border-color: #BFD3EC; color: var(--blue); background: var(--ice); font-family: var(--mono); font-size: .68rem; }
.tag.advisory, .tag.warn { border-color: var(--flag-line); color: var(--flag); background: var(--flag-bg); }
.cite { display: inline-block; margin: .15rem .3rem .15rem 0; padding: 2px 10px; border: 1px solid #BFD3EC; background: var(--ice); color: var(--blue); border-radius: 999px; font-size: .78rem; }
.cite .v { color: var(--pass); font-weight: 700; }
.cite .p, .pending { color: var(--flag); font-weight: 700; }
.finding { border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 16px; padding: .9rem 1.1rem; margin: .7rem 0; background: var(--paper); box-shadow: var(--shadow-soft); }
.finding.critical, .finding.high { border-left-color: var(--hold); }
.finding.medium { border-left-color: var(--flag-accent); }
.finding.advisory { border-left-style: dashed; }
.finding h4 { margin: .2rem 0 .3rem; font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--navy); }
.finding .meta { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .9rem; font-size: .9rem; }
.kv dt { color: var(--slate); } .kv dd { margin: 0; min-width: 0; }
.mono { font-family: var(--mono); font-size: .8rem; word-break: break-all; }
.muted { color: var(--slate); }
.small { font-size: .85rem; }

/* Controls: pill buttons, navy primary with white label, outlined secondary that fills navy on hover. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid #071F4647; color: var(--navy); background: transparent; text-decoration: none; font-family: var(--body); font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease); }
.btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-soft); }
.btn.primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); box-shadow: var(--shadow-card); }
.btn.accent { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn.accent:hover { background: var(--teal-press); border-color: var(--teal-press); color: var(--navy); }
.btn.danger { border-color: var(--hold); color: var(--hold); }
.btn.danger:hover { background: var(--hold); color: #fff; }
form.inline { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; }
label { font-size: .78rem; font-weight: 600; color: var(--slate); display: block; margin-bottom: .2rem; }
input[type=text], input[type=date], input[type=password], select, textarea { font-family: var(--body); font-size: .95rem; color: var(--ink); padding: .6rem .9rem; border: 1px solid var(--control); border-radius: 14px; background: var(--paper); min-height: 44px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 103, 184, .12); }
textarea.code { font-family: var(--mono); font-size: .8rem; width: 100%; min-height: 420px; border-radius: 16px; }
pre { background: var(--navy-deep); color: #E6EEF8; padding: .9rem 1.1rem; border-radius: 16px; overflow: auto; font-family: var(--mono); font-size: .78rem; line-height: 1.5; }
pre.light { background: var(--canvas); color: var(--ink); border: 1px solid var(--border); }
details { margin: .3rem 0; } summary { cursor: pointer; color: var(--blue); font-size: .88rem; }
.notice { border-left: 4px solid var(--teal); background: var(--mint); padding: .7rem 1rem; border-radius: 12px; font-size: .9rem; }
.notice.red { border-left-color: var(--hold); background: var(--hold-bg); }
.notice.green { border-left-color: var(--pass); background: var(--pass-bg); }
.notice.blue { border-left-color: var(--blue); background: var(--ice); }
.tabs { display: inline-flex; gap: 6px; flex-wrap: wrap; max-width: 100%; margin: 1rem 0; padding: 6px; border: 1px solid var(--border); border-radius: 28px; background: var(--canvas); }
.tabs a { padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--body-ink); background: transparent; font-size: .875rem; font-weight: 600; line-height: 1.2; transition: background .2s var(--ease), color .2s var(--ease); }
.tabs a:hover { background: var(--paper); color: var(--navy); }
.tabs a.active { background: var(--navy); color: #fff; box-shadow: var(--shadow-soft); }
.docket { border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card); }
.docket header { background: var(--ice); border-bottom: 1px solid var(--border); padding: .9rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.docket .body { padding: 1.25rem; }
.specimen { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); border: 1px solid var(--slate); padding: .1rem .5rem; border-radius: 999px; }
.step { border: 1px solid var(--border); border-radius: 16px; padding: .9rem 1.1rem; margin: .7rem 0; background: var(--paper); }
.step.agent { border-left: 4px solid var(--teal); }
.step.tool { border-left: 4px solid var(--blue); }
.step .who { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.coverage td.zero { background: var(--hold-bg); color: var(--hold); font-weight: 700; }
.coverage td.n { text-align: center; }
.hash { font-family: var(--mono); font-size: .72rem; color: var(--slate); word-break: break-all; }
.ok { color: var(--pass); font-weight: 700; } .bad { color: var(--hold); font-weight: 700; }
.twocol { columns: 2; column-gap: 2rem; } .twocol > * { break-inside: avoid; }

/* Footer: deep navy, approved logo on a white holding plate (the dark PNG carries its own background). */
.footer { background: var(--navy-deep); color: var(--on-dark-muted); font-size: .85rem; padding: 2.4rem 0 2rem; margin-top: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem 3rem; align-items: start; }
.footer p { margin: .5rem 0 .6rem; }
.footer strong { color: #fff; }
.footer a { color: #fff; }
.footer .plate { display: inline-block; background: #fff; border-radius: 14px; padding: 6px 14px; }
.footer .plate img { height: 40px; width: auto; display: block; }
.footer-brand p { max-width: 34ch; margin-top: 1rem; }
.footer .mono { color: var(--on-dark-muted); font-size: .74rem; word-break: normal; }

@media (min-width: 40rem) { .wrap { padding: 0 28px; } .nav .wrap { padding: 10px 28px; } }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); } }
@media (min-width: 64rem) { .nav { position: sticky; top: 0; } }
@media (max-width: 760px) { .twocol { columns: 1; } .kv { grid-template-columns: 1fr; } .brand img { height: 40px; } main { padding-top: 1.2rem; } table.data { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .hero h1 { max-width: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } .btn:active { transform: none; } }
@media print { .nav, .footer, .noprint, form { display: none !important; } .print-brand { display: block; margin: 0 0 1rem; } .print-brand img { height: 40px; width: auto; } body { background: #fff; color: #222; } .card, .docket { break-inside: avoid; border-color: #999; box-shadow: none; } main { padding: 0; } }
