/* Shared by the security, privacy and contact pages. A file of its own: the Content-Security-Policy allows no inline styles.
   Badge colours follow the house convention: green = in place, orange = open/risk, grey = note. */
.secp { --ok: #1F7A54; --ok-bg: rgba(47, 158, 110, .10); --warn: #9A6200; --warn-bg: rgba(214, 150, 20, .12); --flow: #0C5B90; }
[data-bs-theme="dark"] .secp { --ok: #6FCFA3; --ok-bg: rgba(111, 207, 163, .12); --warn: #E9C06A; --warn-bg: rgba(233, 192, 106, .12); --flow: #6FB1E0; }
.secp-wrap { max-width: 920px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .secp-wrap { padding-left: 24px; padding-right: 24px; } }

.secp-hero { padding: 1rem 0 1.5rem; }
.secp-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--relay-accent); margin-bottom: .4rem; }
.secp-hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .6rem; text-wrap: balance; }
.secp-lead { font-size: 1.1rem; color: var(--bs-secondary-color); max-width: 62ch; margin: 0 0 1.1rem; }
.secp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.secp-facts li { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: .7rem .9rem; font-size: .9rem; min-width: 0; }
.secp-facts strong { display: block; font-size: 1rem; }

.secp-card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .secp-card { padding: 1.6rem 1.75rem; } }
.secp-card h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .6rem; display: flex; gap: .6rem; align-items: baseline; text-wrap: balance; }
.secp-n { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--relay-solid); color: #fff; font-size: .85rem; display: inline-grid; place-items: center; transform: translateY(-1px); }
.secp-card p, .secp-card li { line-height: 1.6; }
.secp-card p { max-width: 70ch; }
.secp-card > :last-child { margin-bottom: 0; }

.secp-quote { border-left: 4px solid var(--relay-accent); background: var(--bs-body-bg); border-radius: 0 .75rem .75rem 0; padding: .9rem 1.1rem; font-size: 1.05rem; margin: 0 0 1rem; }

/* the flow: three stations and what travels between them */
.secp-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .75rem; align-items: stretch; margin: 1rem 0; }
.secp-node { border: 1.5px solid var(--bs-border-color); border-radius: .9rem; padding: .9rem 1rem; min-width: 0; background: var(--bs-tertiary-bg); }
.secp-node svg { width: 28px; height: 28px; color: var(--flow); margin-bottom: .35rem; display: block; }
.secp-node b { display: block; }
.secp-node span { font-size: .9rem; color: var(--bs-secondary-color); }
.secp-node.is-ok { border-color: var(--ok); background: var(--ok-bg); }
.secp-node.is-ok svg { color: var(--ok); }
.secp-link { align-self: center; text-align: center; font-size: .78rem; color: var(--bs-secondary-color); max-width: 7.5rem; }
.secp-link::after { content: "→"; display: block; font-size: 1.6rem; line-height: 1; color: var(--flow); }
@media (max-width: 720px) {
  .secp-flow { grid-template-columns: 1fr; }
  .secp-link { max-width: none; }
  .secp-link::after { content: "↓"; }
}
.secp-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; margin: 1rem 0 1.25rem; }
.secp-compare > div { min-width: 0; }
.secp-compare h3 { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); margin: 0 0 .35rem; }
.secp-code { background: #0A1626; color: #E6EDF5; border-radius: .7rem; padding: .8rem .9rem; font: .8rem/1.55 ui-monospace, Consolas, monospace; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.secp-code i { color: #7DBBEA; font-style: normal; }

/* who sees what */
.secp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
@media (max-width: 560px) { .secp-table { font-size: .8rem; } .secp-table th, .secp-table td { padding: .5rem .25rem; } .secp-table thead th { font-size: .66rem; letter-spacing: 0; } }
.secp-table th, .secp-table td { padding: .55rem .5rem; border-bottom: 1px solid var(--bs-border-color); text-align: center; }
.secp-table thead th { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--bs-secondary-color); }
.secp-table th[scope="row"] { text-align: left; font-weight: 400; }
.secp-table tr:last-child th, .secp-table tr:last-child td { border-bottom: 0; }
.secp-table .y { color: var(--ok); font-weight: 700; }
.secp-table .n { color: var(--bs-secondary-color); }
.secp-table .hl th, .secp-table .hl td { background: var(--ok-bg); }
.secp-scroll { overflow-x: auto; }

/* check it yourself */
.secp-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.secp-steps li { counter-increment: s; position: relative; padding-left: 2.3rem; }
.secp-steps li::before { content: counter(s); position: absolute; left: 0; top: .1rem; width: 1.6rem; height: 1.6rem; border-radius: .45rem; border: 1.5px solid var(--relay-accent); color: var(--relay-accent); font-size: .85rem; font-weight: 700; display: grid; place-items: center; }
.secp kbd { background: var(--bs-tertiary-bg); color: var(--bs-body-color); border: 1px solid var(--bs-border-color); border-radius: .35rem; padding: .05rem .4rem; font-size: .85em; }

/* outside scans */
.secp-grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin: 1rem 0; }
.secp-grade { display: block; border: 1.5px solid var(--ok); background: var(--ok-bg); border-radius: .9rem; padding: .9rem 1rem; text-decoration: none; color: var(--bs-body-color); min-width: 0; }
.secp-grade:hover { color: var(--bs-body-color); box-shadow: 0 0 0 3px var(--ok-bg); }
.secp-grade.is-open { border-color: var(--warn); background: var(--warn-bg); }
.secp-grade.is-open:hover { box-shadow: 0 0 0 3px var(--warn-bg); }
.secp-grade em { display: block; font-style: normal; font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--ok); }
.secp-grade.is-open em { color: var(--warn); font-size: 1.35rem; padding: .35rem 0; }
.secp-grade b { display: block; margin-top: .2rem; }
.secp-grade span { font-size: .85rem; color: var(--bs-secondary-color); }
.secp-note { border: 1.5px solid var(--warn); background: var(--warn-bg); border-radius: .8rem; padding: .8rem 1rem; }

/* more layers */
.secp-layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.secp-layers li { border: 1px solid var(--bs-border-color); border-radius: .8rem; padding: .8rem .95rem; font-size: .92rem; min-width: 0; background: var(--bs-tertiary-bg); }
.secp-layers strong { display: block; font-size: 1rem; margin-bottom: .1rem; }
.secp-limits { margin: 0; padding-left: 1.2rem; }
.secp-limits li { margin-bottom: .35rem; }
.secp-updated { font-size: .85rem; color: var(--bs-secondary-color); margin: 1.25rem 0 0; }

/* privacy: plain lists inside cards */
.secp-card ul:not([class]), .secp-card ol:not([class]) { padding-left: 1.2rem; max-width: 70ch; }

/* contact: the form next to short notes; the page frame of index.html gets the same width */
body:has(.secp-contact) .container-narrow { max-width: 920px; }
@media (min-width: 768px) { body:has(.secp-contact) .container-narrow { padding-left: 24px; padding-right: 24px; } }
.secp-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.secp-side { grid-template-columns: 1fr; }
.secp-side li { background: var(--bs-body-bg); }
@media (max-width: 820px) { .secp-cols { grid-template-columns: 1fr; } }
