/*
 * Obsidian Tek monochrome visual system for DHCP reports and presentations.
 * Not loaded by the core DHCP CLI (core output is Markdown + JSON).
 * Use for any HTML report rendering, promo pages, or demo material so the
 * product keeps the established Obsidian Tek look.
 */

@font-face {
  font-family: "Teko";
  src: url("../assets/Teko-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* Core monochrome tokens */
  --obsidian: #080808;
  --graphite: #202020;
  --charcoal: #3d3d3d;
  --muted: #666666;
  --paper: #f5f5f5;
  --card: #ffffff;
  --soft: #ececec;
  --line: #d1d1d1;
  --line-strong: #9a9a9a;

  /* Status colors — text-backed, WCAG-checked against their bg pairs.
   * They describe evidence state, never a compliance judgment. */
  --status-green: #176b3a;
  --status-green-bg: #e4f3e9;
  --status-yellow: #765300;
  --status-yellow-bg: #fff1bd;
  --status-red: #9a1d20;
  --status-red-bg: #fbe4e5;
  --status-gray: #525252;
  --status-gray-bg: #ededed;
}

* { box-sizing: border-box; }
::selection { color: var(--card); background: var(--obsidian); }

body {
  margin: 0;
  color: var(--obsidian);
  background: linear-gradient(115deg, #e2e2e2 0%, #f4f4f4 48%, #ffffff 100%) fixed;
  font: 400 18px/1.4 "Teko", Impact, "Arial Narrow", sans-serif;
  letter-spacing: .012em;
}

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 64px; }

h1, h2, h3, h4, p { margin-top: 0; }
h1 { font: 650 clamp(1.7rem, 2.15vw, 2.2rem)/1 "Teko", Impact, sans-serif; letter-spacing: -.01em; margin-bottom: 7px; }
h2 { font: 600 2.15rem/.95 "Teko", Impact, sans-serif; letter-spacing: -.01em; margin-bottom: 18px; }
h3 { font: 600 1.8rem/1 "Teko", Impact, sans-serif; margin-bottom: 5px; }
h4 { font-size: 1.25rem; line-height: 1; margin-bottom: 8px; }

/* Identifiers, URNs, control IDs stay monospace even under Teko */
code { font: .84rem ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

/* Shared card treatment */
.card {
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: 8px 8px 0 rgb(8 8 8 / 7%);
}

/* Status chips: always pair color with visible text — color is never the
 * only signal. */
.status-pass    { color: var(--status-green);  background: var(--status-green-bg); }
.status-partial { color: var(--status-yellow); background: var(--status-yellow-bg); }
.status-fail    { color: var(--status-red);    background: var(--status-red-bg); }
.status-na      { color: var(--status-gray);   background: var(--status-gray-bg); }
@page { size: Letter; margin: 14mm 12mm; }
html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
main { width: min(1100px, calc(100% - 32px)); padding-top: 0; }
a { color: var(--obsidian); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.mono { font: .78rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.break { overflow-wrap: anywhere; }
.kicker, .eyebrow { font: 500 .9rem/1 "Teko", Impact, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.kicker a { color: inherit; }
.report-head { display: flex; align-items: center; gap: 16px; padding: 26px 0 14px; border-bottom: 2px solid var(--obsidian); }
.report-head .mark { width: 48px; height: 48px; }
.report-head h1 { font-size: clamp(2.7rem, 5.7vw, 4.5rem); line-height: .88; margin: 6px 0 8px; }
.report-head .acronym { font-size: .48em; letter-spacing: .06em; color: var(--muted); vertical-align: .14em; }
.report-head .subtitle { font-size: 1.3rem; color: var(--charcoal); margin: 0; }
.report-head .document-type { font-weight: 600; }
.hero { padding: 34px 0 8px; }
.hero .lede { max-width: 780px; font-size: 1.2rem; line-height: 1.35; color: var(--graphite); }
.meta, .tally { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-block; padding: 4px 10px 2px; border: 1px solid var(--line-strong); background: var(--card); font: 500 .88rem/1.25 "Teko", Impact, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.boundary { border-left: 6px solid var(--obsidian); background: color-mix(in srgb, var(--card) 84%, transparent); padding: 14px 18px; margin: 24px 0 38px; }
.boundary p { margin: 0; color: var(--graphite); }
.section-title { margin: 44px 0 16px; font-size: 2.15rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { padding: 20px; }
.observation { break-inside: avoid; page-break-inside: avoid; }
.observation h3 { margin: 8px 0 12px; }
.observation .ratio { font: 650 2.7rem/.9 "Teko", Impact, sans-serif; }
.bar { height: 14px; border: 1px solid var(--line-strong); margin: 15px 0 8px; background: var(--soft); }
.fill { height: 100%; background: var(--obsidian); }
.fill-5714 { width: 57.14%; }
.fill-6667 { width: 66.67%; }
.fill-7778 { width: 77.78%; }
.fill-8889 { width: 88.89%; }
.fill-100 { width: 100%; }
.counts { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .92rem; }
.asset-scope { margin: 28px 0 10px; }
.asset-scope p, .named-gaps > p { margin-bottom: 0; color: var(--muted); }
.asset-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.asset-name { display: inline-block; padding: 5px 8px; border: 1px solid var(--line-strong); background: var(--soft); font: .78rem/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; }
.gap-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.gap-table th, .gap-table td { border-top: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: top; }
.gap-table th { color: var(--muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.gap-table td:first-child { width: 36%; font-weight: 600; }
.gap-table .asset-list { margin-top: 0; }
.profile { margin: 0 0 22px; }
.profile > h3 { margin-bottom: 4px; }
.source { color: var(--muted); margin-bottom: 16px; }
.profile-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; margin: 20px 0 24px; }
.profile-dashboard-head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.profile-dashboard-head p { margin: 0; color: var(--muted); }
.profile-metric { border: 1px solid var(--line-strong); background: var(--soft); padding: 14px 16px; }
.profile-metric .eyebrow { font-size: clamp(.7rem, 1vw, .8rem); letter-spacing: .1em; white-space: nowrap; }
.profile-metric .metric-count { font: 650 2.35rem/.9 "Teko", Impact, sans-serif; margin: 8px 0 4px; }
.profile-metric .metric-percent { color: var(--graphite); }
.metric-assets { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; color: var(--graphite); font-size: .88rem; }
.metric-assets .asset-list { margin-top: 7px; }
.objective { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.objective h4 { font-size: 1.35rem; break-after: avoid; }
.objective p { break-inside: avoid; }
.label { font-weight: 600; }
.limit, .action { border-left: 4px solid var(--line-strong); padding-left: 12px; }
.action { border-color: var(--obsidian); }
.surfaces { break-inside: avoid; }
.analysis { border: 1px solid var(--line-strong); border-left: 6px solid var(--obsidian); background: var(--card); box-shadow: 8px 8px 0 rgb(8 8 8 / 7%); padding: 22px; white-space: pre-wrap; }
.analysis-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.provenance { line-height: 1.65; }
.report-foot { display: flex; align-items: flex-start; gap: 12px; border-top: 2px solid var(--obsidian); padding-top: 18px; margin-top: 48px; }
.report-foot .mark { width: 30px; height: 30px; flex: 0 0 auto; }
.report-foot p { margin: 0; }
.report-foot .attribution { letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 560px) { .report-head { align-items: flex-start; } .counts { display: block; } }
@media print { body { background: #fff; } .card, .analysis { box-shadow: none; } main { width: auto; } }
