/* The security pages: the landing page's look (qwen/site.css) with a plain slate hero, an icon
   grid of who sees what, two checklists, grouped FAQ accordions, and on the technical page a
   wider article column for the diagram, the part cards and the threat table. */

/* hero */
.sec-hero { background: var(--slate); color: #fff; padding: 148px 0 88px; }
.sec-hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; font-weight: 300; letter-spacing: -0.025em; text-wrap: balance; max-width: 18em; }
.sec-hero p { margin-top: 22px; font-size: 20px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); max-width: 34em; }
.sec-hero a { color: #fff; text-underline-offset: 3px; }

/* who sees what */
.who { padding: 96px 0; }
.who h2, .lists h2, .sec-faq h2, .checked h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }
.who .lede { max-width: 44rem; margin: 18px auto 0; color: var(--dim); font-size: 18px; text-align: center; }
.who .icon-grid { margin-top: 56px; }
.who .lede-after { margin-top: 56px; }
.who .icon-grid p + p { margin-top: 2px; }

/* protects and doesn't */
.lists { padding: 96px 0; }
.two-lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 48px; }
.two-lists h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.checks.limits svg { color: var(--dim); }

/* faq */
.sec-faq { padding: 96px 0; }
.sec-faq h2 { margin-bottom: 8px; }
.faq-group { margin-top: 44px; }
.faq-group > h3 { font-size: 15px; font-weight: 650; color: var(--brand); padding-bottom: 6px; border-bottom: 2px solid var(--brand); }
details ul { color: var(--dim); margin: -8px 0 22px; padding-left: 22px; display: grid; gap: 6px; max-width: 40em; }
details p + p { margin-top: -10px; }
details p a, details li a { text-underline-offset: 3px; }

.closing p { color: rgba(255, 255, 255, 0.86); max-width: 34em; }
.foot nav { flex-wrap: wrap; }
.foot nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* technical page */
.doc-wrap.tech { max-width: 56rem; }
.tech > p, .tech > ul, .tech > ol, .tech > .callout { max-width: 44rem; }
.doc ul.toc { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15.5px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.diagram { margin: 36px 0 8px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .tall { display: none; max-width: 360px; margin: 0 auto; }
.diagram figcaption { margin-top: 12px; color: var(--faint); font-size: 14px; }
.dg text { font-family: var(--sans); fill: var(--text); }
.dg .t-title { font-size: 16px; font-weight: 700; }
.dg .t-line { font-size: 13px; fill: var(--dim); }
.dg .t-edge { font-size: 12.5px; fill: var(--brand); font-weight: 600; }
.dg .box { fill: #fff; stroke: #c9cad8; stroke-width: 1.2; }
.dg .box-ours { fill: #eef3fa; stroke: var(--brand); stroke-width: 1.4; }
.dg .box-other { fill: var(--band); stroke: #c9cad8; stroke-width: 1.2; stroke-dasharray: 4 3; }
.dg .edge { fill: none; stroke: var(--brand); stroke-width: 1.6; }
.dg .edge-dash { fill: none; stroke: var(--brand); stroke-width: 1.4; stroke-dasharray: 5 4; }
.dg .edge-grey { fill: none; stroke: #9a9cb0; stroke-width: 1.4; }
.dg .head { fill: var(--brand); }
.dg .head-grey { fill: #9a9cb0; }

.parts { display: grid; gap: 20px; margin-top: 24px; }
.part { border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; background: #fff; }
.part h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.part .where { color: var(--faint); font-size: 15px; margin-top: 2px; }
.facts { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 12px 20px; margin: 18px 0 0; }
.facts dt { color: var(--text); font-weight: 650; }
.facts dd { margin: 0; color: var(--dim); }
.facts dd ul { margin: 6px 0 0; }

.flow { margin-top: 28px; }
.flow h3 { font-size: 19px; }
.doc .flow .steps { margin-top: 12px; }

.threats-scroll { margin-top: 24px; }
.threats { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.5; }
.threats th, .threats td { padding: 16px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.threats thead th { background: var(--band); font-size: 14.5px; font-weight: 650; }
.threats tbody th { font-weight: 650; width: 20%; color: var(--text); }
.threats td { color: var(--dim); width: 40%; }
.threats tbody tr:last-child th, .threats tbody tr:last-child td { border-bottom: 0; }
.threats ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

.limit-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; max-width: 46rem; }
.limit-list li { border-left: 3px solid var(--brand); padding: 2px 0 2px 16px; color: var(--dim); }
.limit-list ul { margin: 8px 0 0; }

@media (max-width: 980px) {
  .two-lists { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 640px) {
  .sec-hero { padding: 112px 0 64px; }
  .sec-hero p { font-size: 18px; }
  .who, .lists, .sec-faq { padding: 72px 0; }
  .who .lede { font-size: 16.5px; }
  .diagram { padding: 14px; }
  .diagram .wide { display: none; }
  .diagram .tall { display: block; }
  .part { padding: 20px 18px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .facts dd { margin-bottom: 10px; }
  .threats { min-width: 680px; font-size: 14px; }
}

/* Built to be checked. */
.checked { padding: 72px 0; }
.checked .checks { max-width: 44rem; margin: 22px auto 0; }
.checked-sub { color: var(--dim); font-style: italic; margin: 8px 0 0; }

/* Diagrams of the mechanisms: columns, tubes for the tunnel, sequence lifelines and notes. */
.dg .box-key { fill: #fff; stroke: var(--text); stroke-width: 1.6; }
.dg .col { fill: #fafbfd; stroke: var(--line); stroke-width: 1.2; }
.dg .col-ours { fill: #f3f7fc; stroke: #b9cde6; stroke-width: 1.2; }
.dg .tube { fill: var(--band); stroke: #c9cad8; stroke-width: 1.2; stroke-dasharray: 4 3; }
.dg .tube-tun { fill: #e4e7ee; stroke: var(--slate); stroke-width: 1.6; }
.dg .session { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.dg .dot { fill: var(--brand); }
.dg .life { fill: none; stroke: #b6b8c9; stroke-width: 1.2; stroke-dasharray: 5 5; }
.dg .note { fill: var(--band); stroke: #d6d7e3; stroke-width: 1; }
.dg .t-slate { font-size: 12.5px; font-weight: 650; fill: var(--slate); }
.diagram.scroll { overflow-x: auto; }
@media (max-width: 640px) {
  .diagram.scroll svg { min-width: 680px; }
}
