/* Security Center. Builds on ../wiki/wiki.css (rail, drawer, reading bar) and the shared site tokens. */
.sc { --sc-ok: #2F6B4F; --sc-ok-bg: #E2EDE4; --sc-progress: #876024; --sc-progress-bg: #F6EBD2; --sc-pending: #5B6156; --sc-pending-bg: #EAE7DA; --sc-high: #A1322B; --sc-high-bg: #F6E2DD; }
.sc .wiki-layout { padding-bottom: 96px; }

/* Signed-in bar under the site nav */
.sc-session { background: var(--color-tint); border-bottom: 1px solid var(--color-rule); font-size: .88rem; }
.sc-session-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; min-height: 44px; padding-block: 6px; }
.sc-session-who { color: var(--color-muted); }
.sc-session-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.sc-session-links a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 650; color: var(--color-accent); }
.sc-session-links a[hidden] { display: none; }

/* Rail */
.sc-nav .sc-group { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; font-size: .9rem; font-weight: 650; color: var(--color-ink); }
.sc-nav a[aria-current="page"] { background: var(--color-tint); color: var(--color-accent); font-weight: 700; }
.sc-nav .wiki-children a { justify-content: space-between; gap: 8px; }
.sc-nav .sc-sections { margin: 4px 0 8px 10px; border-inline-start: 2px solid var(--honey, #D29A46); padding-inline-start: 4px; }
.sc-nav .sc-sections a { min-height: 36px; font-size: .84rem; padding-block: 6px; }
.sc-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--sc-pending); opacity: .55; }
.sc-dot[data-tone="progress"] { background: var(--honey, #D29A46); opacity: 1; }
.sc-dot[data-tone="partial"] { background: var(--sage, #8FA894); opacity: 1; }

/* Page header */
.sc-head { padding-bottom: 32px; border-bottom: 1px solid var(--color-rule); margin-bottom: 8px; }
.sc-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .85rem; color: var(--color-muted); }
.sc-crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--color-rule); }
.sc-crumbs a { font-weight: 600; }
.sc-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 650; color: var(--honey-ink, #876024); margin-bottom: 14px; }
.sc-head h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.08; color: var(--color-accent); max-width: 22ch; }
.sc-lede { margin-top: 16px; font-size: 1.12rem; line-height: 1.6; color: var(--color-muted); max-width: 60ch; }
.sc-scope { margin-top: 12px; max-width: 60ch; font-size: 0.98rem; line-height: 1.6; color: var(--color-muted); }
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.sc-actions .btn .wiki-icon { width: 18px; height: 18px; }
.sc-download[aria-disabled="true"] { background: var(--sc-pending-bg); color: var(--sc-pending); border-color: transparent; cursor: default; }
.sc-version { font-size: .9rem; color: var(--color-muted); }
.sc-facts { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 28px; background: var(--color-rule); border: 1px solid var(--color-rule); border-radius: 12px; overflow: hidden; }
.sc-facts > div { flex: 1 1 210px; background: var(--color-surface); padding: 14px 18px; min-width: 0; }
.sc-facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--color-muted); }
.sc-facts dd { margin-top: 4px; font-weight: 600; line-height: 1.45; color: var(--color-ink); overflow-wrap: anywhere; }

/* Body */
.sc-intro { margin-top: 28px; padding: 22px 24px; background: var(--color-surface); border: 1px solid var(--color-rule); border-inline-start: 4px solid var(--color-accent); border-radius: 0 12px 12px 0; }
.sc-intro p { max-width: 68ch; line-height: 1.7; }
.sc-intro p + p { margin-top: 12px; }
.sc-section { padding-top: clamp(40px, 4.5vw, 56px); scroll-margin-top: var(--wiki-anchor-top); }
.sc-section > h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.25; font-weight: 700; color: var(--color-accent); margin-bottom: 18px; }
.sc-section h3 { font-size: 1.1rem; line-height: 1.4; font-weight: 700; margin: 32px 0 10px; scroll-margin-top: var(--wiki-anchor-top); }
.sc-section > h2 + h3 { margin-top: 8px; }
.sc-section p { max-width: 68ch; line-height: 1.7; }
.sc-section p + p, .sc-section .sc-table-wrap + p, .sc-section ul + p, .sc-section ol + p { margin-top: 16px; }
.sc-section p + .sc-table-wrap, .sc-section .sc-table-wrap + .sc-table-wrap { margin-top: 20px; }
.sc-section ul { padding-inline-start: 22px; margin-top: 14px; }
.sc-section ul li { margin-bottom: 10px; max-width: 66ch; line-height: 1.65; }
.sc-article a { color: var(--color-accent); font-weight: 650; text-decoration: underline; text-decoration-color: var(--line-pine, rgba(31,61,52,.25)); text-underline-offset: 3px; }
.sc-article a:hover { text-decoration-color: currentColor; }
.sc-article .btn, .sc-article .sc-card, .sc-article .sc-row-link { text-decoration: none; }
.sc-article .btn-primary { color: #fff; }
.sc-steps { list-style: none; counter-reset: step; padding: 0; margin: 16px 0 0; display: grid; gap: 2px; }
.sc-steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 0; line-height: 1.65; max-width: 70ch; }
.sc-steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--color-tint); color: var(--color-accent); font-weight: 700; font-size: .85rem; }
.sc-note { margin-top: 28px; }
.sc-note p { max-width: 68ch; line-height: 1.65; }

/* Tables */
.sc-table-wrap { border: 1px solid var(--color-rule); border-radius: 12px; overflow: hidden; background: var(--color-surface); }
.sc-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
.sc-table th { text-align: start; vertical-align: bottom; padding: 13px 16px; background: var(--color-accent); color: #fff; font-size: .8rem; font-weight: 650; letter-spacing: .01em; }
.sc-table td { vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--color-rule); overflow-wrap: anywhere; }
.sc-table tbody tr:first-child td { border-top: 0; }
.sc-table td:first-child { font-weight: 600; color: var(--color-ink); }
.sc-table tbody tr:nth-child(even) td { background: color-mix(in oklch, var(--color-paper) 45%, var(--color-surface)); }
.sc-level { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--sc-pending-bg); color: var(--sc-pending); white-space: nowrap; }
.sc-level[data-level="low"], .sc-level[data-level="met"], .sc-level[data-level="routine"] { background: var(--sc-ok-bg); color: var(--sc-ok); }
.sc-level[data-level="medium"], .sc-level[data-level="in-progress"] { background: var(--sc-progress-bg); color: var(--sc-progress); }
.sc-level[data-level="high"], .sc-level[data-level="critical"] { background: var(--sc-high-bg); color: var(--sc-high); }

/* Figure */
.sc-figure { margin: 28px 0 0; }
.sc-figure a { display: block; border: 1px solid var(--color-rule); border-radius: 12px; overflow: hidden; background: #F4F2E8; }
.sc-figure img { display: block; width: 100%; height: auto; }
.sc-figure figcaption { margin-top: 10px; font-size: .85rem; color: var(--color-muted); }

/* Status badges */
.sc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.3; white-space: nowrap; background: var(--sc-pending-bg); color: var(--sc-pending); }
.sc-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sc-badge[data-tone="ok"] { background: var(--sc-ok-bg); color: var(--sc-ok); }
.sc-badge[data-tone="progress"] { background: var(--sc-progress-bg); color: var(--sc-progress); }
.sc-badge[data-tone="partial"] { background: #E3E9DE; color: #33564A; }

/* Cards */
.sc-cards { display: grid; gap: 16px; }
.sc-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: 14px; color: var(--color-ink); transition: border-color .18s, transform .18s, box-shadow .18s; min-width: 0; }
.sc-card:hover { border-color: var(--color-accent); transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(31, 61, 52, .45); }
.sc-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sc-card-meta { font-size: .78rem; color: var(--color-muted); }
.sc-card-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--color-accent); }
.sc-card-text { font-size: .92rem; line-height: 1.55; color: var(--color-muted); }
.sc-card-go { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 700; color: var(--color-accent); }
.sc-card-go .wiki-icon { width: 16px; height: 16px; transition: transform .18s; }
.sc-card:hover .sc-card-go .wiki-icon { transform: translateX(3px); }
.sc-related { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--color-rule); }
.sc-related h2 { font-size: 1.2rem; color: var(--color-ink); margin-bottom: 16px; }

/* Home */
.sc-hero { padding-bottom: 40px; }
.sc-hero h1 { max-width: 20ch; }
.sc-tiles { display: grid; gap: 14px; }
.sc-tile { padding: 18px 20px; background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: 14px; }
.sc-tile dt { font-size: .8rem; font-weight: 600; color: var(--color-muted); }
.sc-tile dd { margin-top: 6px; font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--color-accent); }
.sc-library > h2 .wiki-icon { width: 24px; height: 24px; }
.sc-log { list-style: none; padding: 0; margin: 20px 0 0; border-inline-start: 2px solid var(--color-rule); }
.sc-log > li { position: relative; padding: 0 0 26px 24px; }
.sc-log > li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-paper); border: 2px solid var(--color-accent); }
.sc-log time { font-weight: 700; color: var(--color-accent); }
.sc-log ul { margin-top: 8px; }
.sc-contact p { font-size: 1.02rem; }

/* Agreements list */
.sc-items { list-style: none; padding: 0 !important; margin: 0 !important; border: 1px solid var(--color-rule); border-radius: 12px; background: var(--color-surface); }
.sc-item { display: grid; gap: 14px; padding: 20px 22px; margin: 0 !important; max-width: none !important; }
.sc-item + .sc-item { border-top: 1px solid var(--color-rule); }
.sc-item h3 { margin: 0 0 6px; font-size: 1.02rem; }
.sc-item p { font-size: .94rem; color: var(--color-muted); }
.sc-item-side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Downloads table */
.sc-downloads td:first-child a { font-weight: 700; }
.sc-downloads td:nth-child(2), .sc-downloads td:nth-child(3) { width: 1%; white-space: nowrap; }
.sc-downloads .btn-sm { padding: 7px 14px; font-size: .85rem; }
.sc-downloads .btn .wiki-icon { width: 16px; height: 16px; }
.sc-row-meta { display: block; margin-top: 2px; font-size: .8rem; font-weight: 400; color: var(--color-muted); }
.sc-row-link { display: inline-flex; align-items: center; gap: 2px; font-size: .88rem; }
.sc-row-link .wiki-icon { width: 16px; height: 16px; }
.sc-group-row th { background: var(--color-tint); color: var(--color-accent); font-size: .82rem; padding-block: 10px; }

@media (max-width: 47.99rem) {
  .sc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sc-table, .sc-table tbody, .sc-table tr, .sc-table td { display: block; width: auto !important; }
  .sc-table tr { padding: 14px 16px; border-top: 1px solid var(--color-rule); }
  .sc-table tbody tr:first-child { border-top: 0; }
  .sc-table tbody tr:nth-child(even) td { background: none; }
  .sc-table td { border: 0; padding: 3px 0; white-space: normal !important; }
  .sc-table td[data-label]::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 600; color: var(--color-muted); margin-top: 6px; }
  .sc-downloads td[data-label]::before { display: none; }
  .sc-downloads td + td { display: inline-block; margin: 8px 12px 0 0; }
  .sc-group-row { padding: 0 !important; }
  .sc-group-row th { display: block; padding: 10px 16px; }
}
@media (min-width: 40rem) {
  .sc-cards, .sc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .sc-item-side { justify-content: flex-end; }
}
@media (min-width: 64rem) {
  .sc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
  .sc-related, .sc-actions { display: none !important; }
  .sc-table th { background: #1F3D34 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* The site alternates main > section backgrounds; documents read as one sheet here. */
.sc .sc-article > section { background: transparent !important; }
.sc-downloads .btn { white-space: nowrap; }

/* Home page: active-development warning, directly under the header. */
.sc-warning { display: flex; gap: 14px; align-items: flex-start; margin: 28px 0 8px; padding: 18px 20px; background: #FBF1DC; border: 1px solid var(--honey-soft, #EBCB8C); border-inline-start: 4px solid var(--honey, #D29A46); border-radius: 10px; color: var(--ink, #23271F); }
.sc-warning strong { display: block; margin-bottom: 4px; color: var(--honey-ink, #876024); font-size: 1.05rem; }
.sc-warning p { margin: 0; max-width: 68ch; line-height: 1.6; }
.sc-warning a { color: var(--honey-ink, #876024); font-weight: 600; }
.sc-warning-icon { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--honey-ink, #876024); }

/* Confidential stamp: data flow diagram, vendor list, downloads. Text filled per viewer by the gate. */
.sc-confidential { display: flex; align-items: center; gap: 22px; margin: 0 0 26px; padding: 16px 20px; border: 1px solid rgba(161, 50, 43, .35); border-inline-start: 6px solid #A1322B; border-radius: 12px; background: repeating-linear-gradient(-45deg, rgba(161, 50, 43, .045) 0 12px, rgba(161, 50, 43, .09) 12px 24px); }
.sc-stamp { flex: none; transform: rotate(-6deg); padding: 4px; border: 3px solid #A1322B; border-radius: 8px; color: #A1322B; opacity: .92; }
.sc-stamp span { display: block; padding: 6px 16px 5px; border: 1.5px solid #A1322B; border-radius: 5px; font-family: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif; font-weight: 800; font-size: clamp(1.35rem, 3.2vw, 2.1rem); line-height: 1; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 0 1px rgba(161, 50, 43, .6); }
.sc-confidential-text { margin: 0; font-size: .88rem; line-height: 1.55; color: #6E1F1A; max-width: 68ch; }
.sc-confidential-text strong { color: #A1322B; font-weight: 750; }
.sc-confidential-text .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }
@media (max-width: 640px) { .sc-confidential { flex-direction: column; align-items: flex-start; gap: 14px; } }
@media print { .sc-confidential { background: none; } }

/* Public overview at /security-center/: no wiki rail, so it sets its own column. */
.scp { padding: clamp(40px, 6vw, 72px) 0 96px; }
.scp .wiki-icon { width: 20px; height: 20px; flex: none; }
.scp .sc-head { max-width: 760px; }
.scp .sc-section { max-width: 1040px; }
.scp-note { margin-top: clamp(40px, 4.5vw, 56px); padding: 22px 24px; background: var(--color-tint); border-inline-start: 3px solid var(--color-accent); border-radius: 0 12px 12px 0; max-width: 760px; }
.scp-note p { max-width: 68ch; line-height: 1.65; }
.scp-access { margin-top: 16px; color: var(--color-muted); }
.scp-groups { display: grid; gap: 28px; }
.scp-groups h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.02rem; color: var(--color-accent); }
.scp-groups ul { margin: 0; padding-inline-start: 22px; }
.scp-groups li { margin-bottom: 6px; line-height: 1.55; }
@media (min-width: 40rem) { .scp-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .scp-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
