/* Vibe-HIPAA mockup additions (Edwin, 2026-11-07). Builds on pahl-base.css tokens. Cobalt #2433D9 = accent only. */
:root { --cobalt: #2433D9; --warn-bg: #FFF7E6; --warn-ink: #6B4500; }
.draft-banner { position: relative; z-index: 21; background: #16212B; color: #fff; font-size: 13px; line-height: 1.5; }
.draft-banner .wrap { padding-top: 8px; padding-bottom: 8px; }
.draft-banner strong { color: #fff; }
.kicker-accent { color: var(--cobalt); }
.note { background: var(--bg-1); border: 1px solid var(--hair); border-left: 3px solid var(--cobalt); border-radius: 10px; padding: 16px 18px; margin: 18px 0; font-size: 15px; color: var(--ink-2); }
.note strong { color: var(--ink); }
.phi-warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid rgba(107,69,0,.25); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 0 0 18px; max-width: 60ch; }
.phi-warn strong { color: var(--warn-ink); }
.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .paths { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.paths li { background: var(--bg-1); border: 1px solid var(--hair); border-radius: 10px; padding: 18px; }
.paths h3 { font-family: 'Space Grotesk',sans-serif; font-weight: 500; font-size: 18px; margin: 0 0 6px; }
.paths .when { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 8px; }
.paths p { font-size: 14.5px; margin: 0; }
.split { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } }
.split > div { background: var(--bg-1); border: 1px solid var(--hair); border-radius: 10px; padding: 18px; }
.split h3 { font-family: 'Space Grotesk',sans-serif; font-weight: 500; font-size: 17px; margin: 0 0 8px; }
.split p, .split li { font-size: 14.5px; color: var(--ink-2); }
.split ul { margin: 0; padding-left: 18px; }
.cta .btn.btn-primary { min-height: 44px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.todo { font-size: 12px; color: var(--muted); font-style: italic; }
/* Matrix */
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; background: var(--bg-1); border: 1px solid var(--hair); border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; }
.filters label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; max-width: 100%; font-size: 12.5px; color: var(--ink-2); }
.filters select { max-width: 100%; }
.filters input, .filters select { font: inherit; font-size: 15px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--hair-strong); border-radius: 8px; background: #fff; color: var(--ink); }
.filters input { min-width: 220px; }
.count { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.legend { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); margin: 0 0 18px; padding: 0; list-style: none; }
.mx-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 10px; background: var(--bg-1); }
table.mx { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 900px; }
table.mx caption { text-align: left; padding: 14px 16px 6px; font-family: 'Space Grotesk',sans-serif; font-size: 17px; font-weight: 500; }
table.mx th, table.mx td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--hair); }
table.mx thead th { position: sticky; top: 0; background: var(--bg-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
table.mx tbody th { font-family: 'Space Grotesk',sans-serif; font-weight: 500; font-size: 15.5px; }
/* Row headers are names, not column labels: undo the uppercase .prose th applies to every th. */
.prose table.mx tbody th { text-transform: none; letter-spacing: 0; }
table.mx td a { color: var(--cobalt); word-break: break-word; }
.st { display: inline-block; font-weight: 600; font-size: 13px; padding: 2px 8px; border-radius: 6px; border: 1px solid currentColor; }
.st::before { margin-right: 4px; }
.st-yes { color: #0B5E52; } .st-yes::before { content: "✓"; }
.st-no { color: #8A1C1C; } .st-no::before { content: "✕"; }
.st-cond { color: #1F2DA8; } .st-cond::before { content: "◐"; }
.st-unk { color: #6B4500; } .st-unk::before { content: "?"; }
.vs { display: block; margin-top: 6px; font-size: 12.5px; }
.vs-ok { color: #0B5E52; } .vs-need { color: #6B4500; font-weight: 600; }
.grp td { background: var(--bg-2); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
/* Desktop: fixed column widths (auto layout let the row-header column take almost all the width), and the
   table breaks out of the 880px reading column up to 1080px so five or six columns stay readable. */
@media (min-width: 761px) {
  .mx-wrap { margin-inline: min(0px, calc((100% - min(1080px, 100vw - 2 * var(--pad-x))) / 2)); }
  table.mx { table-layout: fixed; }
  table.mx th, table.mx td { overflow-wrap: break-word; }
  #mx thead th:nth-child(1) { width: 18%; } #mx thead th:nth-child(2) { width: 13%; } #mx thead th:nth-child(3) { width: 24%; }
  #mx thead th:nth-child(4) { width: 15%; } #mx thead th:nth-child(5) { width: 16%; }
}
@media (max-width: 760px) {
  table.mx { min-width: 0; }
  table.mx thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.mx, table.mx tbody, table.mx tr, table.mx th, table.mx td { display: block; width: 100%; }
  table.mx tr { border-top: 1px solid var(--hair-strong); padding: 6px 0; }
  table.mx tbody th { border-top: 0; white-space: normal; }
  table.mx td { border-top: 0; padding: 4px 14px 8px; }
  table.mx td::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .mx-wrap { overflow: visible; }
  .filters input { min-width: 0; width: 100%; } .filters label { flex: 1 1 100%; }
}
[hidden] { display: none !important; }
/* ---- CTA components v1 ---- */
.btn { min-height: 44px; }
.btn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 11px 18px; border-radius: 8px; border: 1px solid var(--hair-strong); background: var(--bg-1); color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.btn-secondary:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn[aria-disabled="true"], .btn-secondary[aria-disabled="true"], button[disabled] { background: var(--bg-2); color: var(--muted); border: 1px dashed var(--hair-strong); cursor: not-allowed; box-shadow: none; transform: none; }
.dl-box { display: grid; gap: 10px; grid-template-columns: 1fr; background: var(--bg-1); border: 1px solid var(--hair); border-radius: 10px; padding: 18px; margin: 18px 0; }
@media (min-width: 640px) { .dl-box { grid-template-columns: 1fr auto; align-items: center; } }
.dl-box h3 { font-family: 'Space Grotesk',sans-serif; font-weight: 500; font-size: 17px; margin: 0 0 4px; }
.dl-box p { margin: 0; font-size: 14.5px; }
.dl-meta { font-size: 12.5px; color: var(--muted); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.cards li { background: var(--bg-1); border: 1px solid var(--hair); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.cards h3 { font-family: 'Space Grotesk',sans-serif; font-weight: 500; font-size: 18px; margin: 0; }
.cards p { margin: 0; font-size: 14.5px; }
.cards .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid currentColor; color: #6B4500; }
.tag.ok { color: #0B5E52; }
body.has-sticky { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.sticky-cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--hair); display: flex; gap: 10px; justify-content: center; align-items: center; }
.sticky-cta .close { min-width: 44px; min-height: 44px; border: 1px solid var(--hair-strong); background: var(--bg-1); border-radius: 8px; font-size: 18px; cursor: pointer; color: var(--ink-2); }
.sticky-cta .close:hover { color: var(--cobalt); border-color: var(--cobalt); }
:target, main :focus { scroll-margin-bottom: 100px; }
@media print { .sticky-cta, .draft-banner { display: none; } body.has-sticky { padding-bottom: 0; } }
.placeholder-panel { border: 2px dashed var(--hair-strong); border-radius: 10px; padding: 22px; background: var(--bg-1); }
.placeholder-panel h3 { margin: 0 0 6px; font-family: 'Space Grotesk',sans-serif; font-weight: 500; }
.demo { border: 1px dashed var(--hair-strong); border-radius: 12px; padding: 18px; margin: 12px 0 28px; background: var(--bg); }
.demo-label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
