/* Safer Ground · AI & Jobs field guide
   Design: "Field Notes" lineage (Space Grotesk + IBM Plex Mono, paper, ink
   rules, mono metadata, offset-on-hover records) with an exposure heat palette:
   machine(red) -> fast(amber) -> shared(blue) -> human(green). */

:root {
  --bg: #f4f3ee;
  --card: #fdfdfb;
  --ink: #16181a;
  --muted: #6f7479;
  --line: #cbc9bf;

  /* band palette (also set inline per element) */
  --b-machine: #c0341d; --b-fast: #bb6a0c; --b-shared: #2257d6; --b-human: #1f8a4c;

  --cat: #2257d6; --cat-ink: #1b46ad; --tint: #e7edfb;

  --grot: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --maxw: 1160px; --reading: 760px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
* { box-sizing: border-box; }
html { font-family: var(--grot); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
body { margin: 0; font-size: 16px; line-height: 1.55; }
h1,h2,h3,h4 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--cat-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.reading { max-width: var(--reading); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.file { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); display: flex; gap: 26px; flex-wrap: wrap; }
.file span::before { content: "// "; color: var(--ink); }

/* header */
.site-header { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--ink); z-index: 50; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand-lockup a { font-family: var(--mono); font-weight: 600; font-size: 0.88rem; color: var(--ink); display: inline-flex; align-items: center; }
.brand-lockup a:hover { text-decoration: none; }
.brand-lockup b { background: var(--ink); color: var(--bg); padding: 3px 7px; margin-right: 9px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); }
.nav a.cta { border: 1px solid var(--ink); padding: 7px 14px; background: var(--card); }
.nav a.cta:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
@media (max-width: 760px) { .nav a.lnk { display: none; } }
@media (max-width: 460px) { .brand-lockup .path { display: none; } }

/* buttons */
.btn { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; color: var(--ink); border: 1px solid var(--ink); padding: 13px 22px; display: inline-block; background: var(--card); transition: background 130ms var(--ease), color 130ms var(--ease); }
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.dark:hover { background: #000; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* hero */
.hero { padding: 70px 0 54px; border-bottom: 1px solid var(--ink); }
.hero .file { margin-bottom: 28px; }
.hero h1 { margin: 0 0 22px; max-width: 17ch; }
.hero h1 mark { background: transparent; color: var(--b-shared); position: relative; }
.hero h1 mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.2em; background: rgba(34,87,214,0.16); z-index: -1; }
.hero .lede { font-size: 1.08rem; color: var(--muted); max-width: 60ch; margin: 0 0 30px; }
.hero .meta { margin-top: 24px; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.hero .meta a { color: var(--cat-ink); }

/* sections */
.section { padding: 58px 0; }
.section.ruled { border-bottom: 1px solid var(--ink); }
.section.tintbg { background: #efeee8; }
.section-head { max-width: 64ch; margin-bottom: 30px; }
.section-head .file { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }

/* legend (exposure scale) */
.legend-sec { border-bottom: 1px solid var(--ink); padding: 54px 0; }
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.legend .cell { border: 1px solid var(--ink); background: var(--tint); padding: 18px 18px 20px; display: block; color: var(--ink); }
.legend a.cell:hover { text-decoration: none; transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.legend .cell { transition: transform 120ms var(--ease), box-shadow 120ms var(--ease); }
.legend .id { font-family: var(--mono); font-size: 0.72rem; color: var(--cat-ink); }
.legend .cell h3 { margin: 7px 0 8px; display: flex; align-items: center; gap: 9px; font-size: 1.06rem; }
.legend .cell h3 i { width: 12px; height: 12px; background: var(--cat); display: inline-block; flex: none; }
.legend .cell p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.legend.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .legend, .legend.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .legend, .legend.four { grid-template-columns: 1fr; } }

/* band chip */
.band-chip { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; color: var(--cat-ink); display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--cat); padding: 3px 8px; background: var(--tint); white-space: nowrap; }
.band-chip i { width: 8px; height: 8px; background: var(--cat); display: inline-block; }
.band-chip.big { font-size: 0.74rem; padding: 5px 11px; }

/* record tiles (fields) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--ink); color: var(--ink); display: block; transition: transform 120ms var(--ease), box-shadow 120ms var(--ease); }
.tile:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; }
.tile .head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 0.74rem; font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--ink); }
.tile .head i { width: 9px; height: 9px; background: var(--cat); display: inline-block; flex: none; }
.tile .imgwrap { padding: 12px 12px 6px; background: repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(22,24,26,0.035) 11px, rgba(22,24,26,0.035) 12px); }
.tile .imgwrap img { width: 100%; height: auto; }
.tile .cap { padding: 10px 13px 13px; border-top: 1px solid var(--ink); }
.tile .cap .dd { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); line-height: 1.5; min-height: 2.1em; }
.tile .cap .bb { margin-top: 9px; }

/* signal teaser cards */
.sig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sig-card { border: 1px solid var(--ink); background: var(--card); padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); transition: transform 120ms var(--ease), box-shadow 120ms var(--ease); }
.sig-card:hover { text-decoration: none; transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.sig-card .sig-k { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.sig-card .sig-k::before { content: "// "; color: var(--ink); }
.sig-card h3 { font-size: 1.12rem; }
.sig-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.sig-card .more { margin-top: auto; font-family: var(--mono); font-size: 0.74rem; color: var(--cat-ink); }
@media (max-width: 820px) { .sig-grid { grid-template-columns: 1fr; } }

/* decks strip */
.decks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.deck { border: 1px solid var(--ink); background: var(--card); padding: 0; }
.deck .deck-h { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); padding: 8px 14px; border-bottom: 1px solid var(--ink); }
.deck h3 { padding: 14px 16px 2px; font-size: 1.04rem; }
.deck p { padding: 0 16px 18px; margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 880px) { .decks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .decks { grid-template-columns: 1fr; } }

/* library hero + controls (atlas, competencies) */
.lib-hero { padding: 54px 0 28px; }
.lib-hero .file { margin-bottom: 16px; }
.lib-hero h1 { margin-bottom: 14px; }
.lib-hero p { color: var(--muted); font-size: 1.04rem; max-width: 62ch; }
.lib-controls { position: sticky; top: 56px; z-index: 30; background: var(--bg); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 12px 0; }
.lib-controls .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 240px; position: relative; min-width: 200px; }
.search input { width: 100%; font-family: var(--mono); font-size: 0.85rem; padding: 11px 12px 11px 38px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); }
.search input:focus { outline: 2px solid var(--b-shared); outline-offset: 1px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 0.76rem; font-weight: 500; cursor: pointer; padding: 9px 13px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; transition: background 120ms var(--ease), color 120ms var(--ease); }
.chip .sw { width: 9px; height: 9px; background: var(--cat, var(--ink)); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* atlas cluster blocks */
.cat-block { padding: 46px 0 6px; scroll-margin-top: 130px; }
.cat-block .cat-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px dashed var(--line); padding-bottom: 12px; }
.cat-block .cat-title .id { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.cat-block .cat-title h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.cat-block .cat-title .count { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-left: auto; }
.no-results { display: none; padding: 40px 0; color: var(--muted); font-family: var(--mono); font-size: 0.9rem; }

/* field dossier */
.crumbs { padding: 22px 0 0; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 7px; }
.dossier { margin: 22px 0 0; background: var(--card); border: 1px solid var(--ink); }
.dossier .top { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 0.74rem; padding: 10px 18px; border-bottom: 1px solid var(--ink); background: var(--bg); }
.dossier .body { display: grid; grid-template-columns: 340px 1fr; }
.dossier .left { padding: 26px; border-right: 1px dashed var(--line); background: repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(22,24,26,0.03) 12px, rgba(22,24,26,0.03) 13px); }
.dossier .left img { width: 100%; height: auto; }
.dossier .right { padding: 30px 36px 34px; }
.dossier h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 6px; }
.dossier .descriptor { font-family: var(--mono); font-size: 0.86rem; color: var(--cat-ink); margin: 0 0 18px; }
.dossier .descriptor::before { content: "// "; color: var(--ink); }
.dossier .exposure { font-size: 1.06rem; font-weight: 500; margin: 0 0 14px; }
.dossier .lead { font-size: 1.0rem; color: var(--ink); max-width: 60ch; margin: 0; }
@media (max-width: 860px) { .dossier .body { grid-template-columns: 1fr; } .dossier .left { border-right: 0; border-bottom: 1px dashed var(--line); max-width: 380px; } }

/* dual columns: pressure / leverage */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ink); border-top: 0; }
.dual .col { padding: 26px 24px 28px; }
.dual .col.pressure { border-right: 1px dashed var(--line); }
.dual h2 { font-size: 1.2rem; margin-bottom: 4px; }
.dual .hint { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin-bottom: 16px; }
@media (max-width: 720px) { .dual { grid-template-columns: 1fr; } .dual .col.pressure { border-right: 0; border-bottom: 1px dashed var(--line); } }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); border: 1px solid var(--ink); background: var(--card); padding: 6px 11px; display: inline-flex; align-items: center; gap: 7px; transition: background 110ms var(--ease); }
.pill i { width: 9px; height: 9px; display: inline-block; flex: none; }
a.pill:hover { text-decoration: none; background: var(--bg); box-shadow: 2px 2px 0 var(--ink); }

/* blocks */
.block { padding: 30px 0 8px; border-bottom: 1px dashed var(--line); }
.block:first-of-type { border-top: 0; }
.block > h2 { font-size: 1.25rem; margin-bottom: 4px; }
.block > .hint { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin-bottom: 18px; }
.safer-block { padding-top: 30px; }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; padding-bottom: 14px; }
.mini { border: 1px solid var(--ink); background: var(--card); padding: 12px 14px; }
.mini .mini-t { font-weight: 600; font-size: 0.98rem; }
.mini .mini-d { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }

.prompts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; max-width: 800px; }
.prompts .prompt { border-left: 3px solid var(--cat); padding: 6px 0 6px 14px; }
.prompts .prompt .q { font-weight: 600; font-size: 1.02rem; display: block; }
.prompts .prompt .d { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }

/* signal rows */
.sig-rows { display: grid; gap: 0; border: 1px solid var(--ink); margin-bottom: 14px; }
.sig-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 18px; border-bottom: 1px dashed var(--line); color: var(--ink); }
.sig-row:last-child { border-bottom: 0; }
.sig-row:hover { background: var(--card); text-decoration: none; }
.sig-row .sig-row-t { font-weight: 600; font-size: 1.0rem; }
.sig-row .sig-row-d { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); grid-column: 1; }
.sig-row .sig-row-a { grid-row: 1 / span 2; align-self: center; color: var(--muted); }

/* siblings */
.siblings { padding: 36px 0 50px; }
.siblings h2 { font-size: 1.2rem; margin-bottom: 18px; }
.sib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; padding: 30px 0 0; flex-wrap: wrap; }
.prevnext a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); max-width: 48%; transition: box-shadow 120ms var(--ease); }
.prevnext a:hover { text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.prevnext a .dir { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); display: block; }
.prevnext a .ttl { font-weight: 600; font-size: 0.95rem; }
.prevnext a.next { margin-left: auto; text-align: right; }

/* competency matrix */
.cband { padding: 40px 0 10px; scroll-margin-top: 130px; }
.cband-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 20px; }
.cband-head .sq { width: 14px; height: 14px; background: var(--cat); align-self: center; }
.cband-head h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); color: var(--cat-ink); }
.cband-head .count { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.cband-head p { width: 100%; margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; max-width: 70ch; }
.crows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.crow { border: 1px solid var(--ink); background: var(--card); display: flex; flex-direction: column; scroll-margin-top: 130px; }
.crow-img { border-bottom: 1px dashed var(--line); padding: 12px 12px 6px; background: repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(22,24,26,0.035) 11px, rgba(22,24,26,0.035) 12px); }
.crow-img img { width: 100%; height: auto; }
.crow-body { padding: 14px 16px 16px; }
.crow-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crow-h h3 { font-size: 1.08rem; }
.crow-desc { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin: 4px 0 8px; }
.crow-note { font-size: 0.9rem; margin: 0 0 10px; }
.crow-sig { font-family: var(--mono); font-size: 0.72rem; color: var(--cat-ink); }
@media (max-width: 900px) { .crows { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .crows { grid-template-columns: 1fr; } }

/* signal article */
.signal { padding: 16px 0 50px; }
.signal .file { margin: 14px 0 16px; }
.signal h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 12px; }
.signal .dek { font-family: var(--mono); font-size: 0.86rem; color: var(--muted); margin: 0 0 22px; }
.signal .lead { font-size: 1.16rem; line-height: 1.5; margin: 0 0 30px; }
.signal h2 { font-size: 1.3rem; margin: 34px 0 16px; }
.evidence { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.evidence li { border-left: 3px solid var(--b-shared); padding: 4px 0 4px 16px; }
.evidence li p { margin: 0 0 6px; font-size: 1.02rem; }
.src { font-family: var(--mono); font-size: 0.74rem; }
.src a { color: var(--cat-ink); }
.src .src-meta { color: var(--muted); display: block; margin-top: 2px; }
.counter { border: 1px solid var(--ink); background: #efeee8; padding: 18px 20px; margin: 6px 0 26px; }
.counter .counter-k { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin-bottom: 6px; }
.counter p { margin: 0; font-size: 0.98rem; }
.takeaway { border: 1px solid var(--ink); background: var(--ink); color: var(--bg); padding: 20px 22px; margin: 0 0 10px; }
.takeaway .takeaway-k { font-family: var(--mono); font-size: 0.72rem; color: #b9c4cf; margin-bottom: 8px; }
.takeaway p { margin: 0; font-size: 1.08rem; font-weight: 500; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 26px; }
.pk-wrap { display: block; color: var(--ink); }
.pk-wrap:hover { text-decoration: none; }
.pk { border: 1px solid var(--ink); background: var(--card); padding: 13px 15px; height: 100%; transition: box-shadow 110ms var(--ease); }
a.pk-wrap:hover .pk { box-shadow: 3px 3px 0 var(--ink); }
.pk .pk-k { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.pk .pk-k::before { content: "// "; color: var(--ink); }
.pk .pk-t { font-weight: 600; font-size: 1.0rem; margin-top: 4px; }
.pk .pk-d { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fchip { font-family: var(--mono); font-size: 0.76rem; color: var(--ink); border: 1px solid var(--ink); background: var(--card); padding: 6px 11px; display: inline-flex; align-items: center; gap: 7px; }
.fchip i { width: 8px; height: 8px; background: var(--cat); display: inline-block; }
.fchip:hover { text-decoration: none; box-shadow: 2px 2px 0 var(--ink); }

/* methodology prose */
.prose { padding: 10px 0 50px; }
.prose h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.prose p { font-size: 1.04rem; max-width: 72ch; color: var(--ink); }
.prose .bandlist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.prose .bandlist li { font-size: 1.0rem; padding-left: 14px; border-left: 3px solid var(--line); }
.srcs { display: grid; gap: 0; border: 1px solid var(--ink); margin: 8px 0 18px; }
.srcrow { padding: 16px 18px; border-bottom: 1px dashed var(--line); }
.srcrow:last-child { border-bottom: 0; }
.srcrow-h { font-weight: 600; }
.srcrow-h .yr { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); font-weight: 400; }
.srcrow-a { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin: 2px 0 6px; }
.srcrow p { margin: 0; font-size: 0.95rem; color: var(--ink); }

/* footer */
.site-footer { border-top: 1px solid var(--ink); background: var(--bg); margin-top: 30px; }
.site-footer .cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; padding: 44px 0 34px; }
.site-footer h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.site-footer .about p { color: var(--muted); max-width: 46ch; font-size: 0.94rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); }
.site-footer .logos { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.site-footer .logos img { height: 24px; width: auto; opacity: 0.9; }
.site-footer .legal { border-top: 1px dashed var(--line); padding: 16px 0 44px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr; gap: 24px; } }

/* ============================ v2: card web, professions, audit ============================ */

/* exposure bar */
.xbar { width: 100%; }
.xbar-bar { display: flex; height: 16px; border: 1px solid var(--ink); background: var(--card); overflow: hidden; }
.xbar-bar i { display: block; height: 100%; }
.xbar-leg { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.xbar-leg b { display: inline-block; width: 9px; height: 9px; margin-right: 5px; vertical-align: middle; }
.xbar-big .xbar-bar { height: 26px; }
.xbar-note { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 12px; }

/* relation model (decks page) */
.relmodel { display: grid; gap: 0; border: 1px solid var(--ink); margin: 24px 0 10px; }
.relrow { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--ink); background: var(--tint); }
.relrow:last-child { border-bottom: 0; }
.relrow .rel-k { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--cat-ink); padding: 20px 18px; border-right: 1px solid var(--ink); display: flex; align-items: center; }
.relrow .rel-b { padding: 18px 22px; }
.relrow .rel-b h2 { font-size: 1.15rem; margin-bottom: 6px; }
.relrow .rel-b p { margin: 0; color: var(--ink); font-size: 0.96rem; }
@media (max-width: 620px) { .relrow { grid-template-columns: 1fr; } .relrow .rel-k { border-right: 0; border-bottom: 1px dashed var(--line); padding: 10px 18px; } }

/* professions index rows */
.prows { display: grid; gap: 10px; padding: 30px 0 10px; }
.prow { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 18px; align-items: center; border: 1px solid var(--ink); background: var(--card); padding: 14px 18px; color: var(--ink); transition: box-shadow 120ms var(--ease), transform 120ms var(--ease); }
.prow:hover { text-decoration: none; transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.prow .prow-t { font-weight: 600; font-size: 1.05rem; }
.prow .prow-f { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.prow .prow-bar { min-width: 120px; }
@media (max-width: 680px) { .prow { grid-template-columns: 1fr; gap: 8px; } }

/* mix grid (profession page) */
.mixgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; padding-bottom: 14px; }
.mixrow { display: flex; align-items: center; justify-content: flex-start; gap: 9px; }
.mixrow .mix-w { font-size: 0.7rem; letter-spacing: 1px; color: var(--cat-ink); white-space: nowrap; }

/* audit */
.audit-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 30px; }
.audit-task { font-family: var(--mono); font-size: 0.8rem; cursor: pointer; border: 1px solid var(--ink); background: var(--card); color: var(--ink); padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; transition: background 90ms var(--ease); }
.audit-task i { width: 10px; height: 10px; background: var(--cat); display: inline-block; opacity: 0.35; transition: opacity 90ms; }
.audit-task[data-w="1"] { background: var(--tint); } .audit-task[data-w="1"] i { opacity: 1; }
.audit-task[data-w="2"] { background: var(--tint); box-shadow: inset 0 0 0 1px var(--cat); } .audit-task[data-w="2"] i { opacity: 1; }
.audit-task[data-w="2"] .w::after { content: "\00d7""2"; }
.audit-task[data-w="3"] { background: var(--cat); color: #fff; } .audit-task[data-w="3"] i { opacity: 1; background: #fff; }
.audit-task[data-w="3"] .w::after { content: "\00d7""3"; }
.audit-task .w { font-size: 0.66rem; }
.audit-result { padding: 0 0 50px; scroll-margin-top: 70px; }
.audit-result .dual { border: 0; }
.audit-result .dual .col { padding-top: 6px; }
.audit-result .dual .col.pressure { border-right: 1px dashed var(--line); }
@media (max-width: 720px) { .audit-result .dual .col.pressure { border-right: 0; border-bottom: 1px dashed var(--line); } }
