/* ───────────────────────────────────────────────────────────────────
   Security on marketing v2, tier 3 (2026-11-29). Loads after
   security-page.css. Screen rules sit inside @media screen so the printed
   PDF (legal/pdf/security.pdf, legal-print.css + security-page.css's print
   block) keeps its own layout; the print block at the end only quiets the
   v2 type. Ids kept: #sec-status-h, #vulnerability-disclosure,
   #sec-collect-h, #isolation, #direct-delivery, #retention, #subprocessors,
   #outcome-disclosure, #questionnaires.
   ─────────────────────────────────────────────────────────────────── */

@media screen {
  body.v2.sec-page { color: var(--navy); }

  /* hero: v2 ref header; the old centred hero rules step aside */
  body.v2 .sec-hero.v2-hero--ref { text-align: left; }
  body.v2 .sec-hero .v2-lede a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(14,116,144,.35); text-underline-offset: 3px; }
  body.v2 .sec-effective { margin: 26px 0 0; font: 500 14px/1.5 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--slate-2); }
  body.v2 .sec-jump { margin: 18px 0 0; justify-content: flex-start; gap: 10px; max-width: 760px; }
  body.v2 .sec-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; color: var(--navy); text-decoration: none; transition: background-color .15s ease; }
  body.v2 .sec-jump a:hover { transform: none; background: var(--wash); }

  /* blocks: the shared tier 3 rhythm */
  body.v2 .sec-shell { max-width: 1200px; padding: 0 40px; }
  body.v2 .sec-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; padding: 96px 0; border-top: 1px solid var(--line); }
  body.v2 .sec-block:first-of-type { border-top: 0; padding-top: 96px; }
  body.v2 .sec-block-slim { padding: 72px 0; }
  body.v2 .sec-bhead .v2-h2 { max-width: 14ch; }
  body.v2 .sec-note, body.v2 .sec-note-list li { color: var(--slate); }
  body.v2 .sec-shell a:not(.v2-btn):not(.v2-link) { color: var(--teal); text-decoration-color: rgba(14,116,144,.35); }

  /* every fold on the page reads as one quiet row: controls, GPC, direct
     delivery, providers */
  body.v2 .sec-cards { display: block; border-top: 1px solid var(--line); }
  body.v2 .sec-card { background: none; border-radius: 0; padding: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
  body.v2 .sec-card > summary.sec-card-top { list-style: none; cursor: pointer; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h st" "l st"; column-gap: 16px; align-items: center; margin: 0; min-height: 64px; padding: 16px 48px 16px 0; }
  body.v2 .sec-card > summary::-webkit-details-marker { display: none; }
  body.v2 .sec-card h3 { grid-area: h; font-size: 18px; font-weight: 600; color: var(--navy); }
  body.v2 .sec2-line { grid-area: l; margin-top: 2px; font-size: 15.5px; line-height: 1.45; color: var(--slate); }
  body.v2 .sec-status { grid-area: st; font: 600 13px/1 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; padding: 7px 11px; border-radius: 999px; background: var(--tint); color: var(--teal); }
  body.v2 .sec-status.is-none { background: var(--wash); color: var(--slate); box-shadow: inset 0 0 0 1px var(--line); }
  body.v2 .sec-card > summary.sec-card-top::after,
  body.v2 details[data-fold-all] > summary.sec-fold-sum::after { content: ''; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border: 0; border-radius: 50%; transform: none; transition: none;
    background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' fill='none' stroke='%230E7490' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
  body.v2 .sec-card[open] > summary.sec-card-top::after,
  body.v2 details[data-fold-all][open] > summary.sec-fold-sum::after { transform: none; margin-top: -14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%230E7490' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
  body.v2 .sec-card ul { padding: 0 48px 22px 0; }
  body.v2 .sec-card li { font-size: 15.5px; color: var(--slate); border-top-color: var(--line); }
  body.v2 .sec-card > summary:focus-visible, body.v2 .sec-fold > summary:focus-visible { outline: 2px solid var(--cyan-ui); outline-offset: 2px; }

  body.v2 details[data-fold-all] > summary.sec-fold-sum { list-style: none; cursor: pointer; position: relative; display: flex; align-items: center; min-height: 64px; padding: 16px 48px 16px 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; color: var(--navy); }
  body.v2 details[data-fold-all][open] > summary.sec-fold-sum { margin-bottom: 18px; }
  body.v2 details[data-fold-all] > summary.sec-fold-sum h3 { margin: 0; font-size: 17px; font-weight: 600; }
  body.v2 details[data-fold-all] > summary.sec-fold-btn { display: flex; }
  body.v2 .sec2-gpc { margin-top: 28px; }
  body.v2 .sec2-gpc .sec-note { margin-bottom: 0; }

  /* what we record: two plain columns, no tinted panels */
  body.v2 .sec-collect { gap: 40px; }
  body.v2 .sec-collect-col, body.v2 .sec-collect-col.is-never { background: none; box-shadow: none; padding: 0; border-radius: 0; }
  body.v2 .sec-collect-col > summary { list-style: none; cursor: default; }
  body.v2 .sec-collect-col > summary::-webkit-details-marker { display: none; }
  body.v2 .sec-collect-col h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  body.v2 .sec-collect-col li { font-size: 15.5px; color: var(--slate); }
  body.v2 .sec-collect-col li::before { background: var(--tint); color: var(--teal); }
  body.v2 .sec-collect-col.is-never li::before { background: var(--wash); color: var(--slate-2); box-shadow: inset 0 0 0 1px var(--line); }

  /* isolation diagram: neutral */
  body.v2 .sec-iso { background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
  body.v2 .sec-iso-head, body.v2 .sec-iso-feed { font-family: Inter, system-ui, sans-serif; font-size: 13px; letter-spacing: 0; text-transform: none; }
  body.v2 .sec-iso-head { color: var(--teal); }
  body.v2 .sec-iso-feed { color: var(--slate-2); }
  body.v2 .sec-iso-box span { font-family: Inter, system-ui, sans-serif; font-size: 13px; letter-spacing: 0; color: var(--slate-2); }
  body.v2 .sec-iso-pool { border: 0; box-shadow: inset 0 0 0 1px var(--line); }
  body.v2 .sec-iso-pool a { display: inline-block; padding: 12px 0; margin: -12px 0; }

  /* own site: a plain fold, not a card */
  body.v2 .sec-dd { margin-top: 40px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  body.v2 .sec-dd details[data-fold-all] > summary.sec-fold-sum { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 48px 16px 0; }
  body.v2 ul.sec-spec li { color: var(--slate); border-bottom-color: var(--line); }
  body.v2 ul.sec-spec { border-top-color: var(--line); }
  body.v2 .sec-sub2 { border-top-color: var(--line); }
  body.v2 .sec-sub2 h3 { font-size: 19px; }
}

@media screen and (max-width: 980px) {
  body.v2 .sec-block { grid-template-columns: 1fr; gap: 32px; padding: 72px 0; }
  body.v2 .sec-block:first-of-type { padding-top: 72px; }
  body.v2 .sec-cards { display: block; }
}
@media screen and (max-width: 600px) {
  body.v2 .sec-shell { padding: 0 20px; }
  body.v2 .sec-block, body.v2 .sec-block:first-of-type { padding: 56px 0; gap: 24px; }
  body.v2 .sec-jump { gap: 8px; }
  body.v2 .sec-jump a { padding: 0 14px; font-size: 14.5px; }
  body.v2 .sec-card > summary.sec-card-top { min-height: 56px; padding: 14px 44px 14px 0; }
  body.v2 .sec-card h3 { font-size: 16.5px; }
  body.v2 .sec2-line { font-size: 14.5px; }
  body.v2 .sec-card ul { padding-right: 0; }
  body.v2 .sec-collect { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  body.v2 .sec-collect-col, body.v2 .sec-collect-col.is-never { padding: 0; border-bottom: 1px solid var(--line); }
  body.v2 .sec-collect-col > summary { position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 44px 14px 0; cursor: pointer; }
  body.v2 .sec-collect-col[open] > summary { margin-bottom: 4px; }
  body.v2 .sec-collect-col ul { padding-bottom: 18px; }
  body.v2 .sec-collect-col h3 { flex: 1; margin: 0; padding-bottom: 0; border-bottom: 0; font-size: 16.5px; }
  body.v2 .sec-collect-col > summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' fill='none' stroke='%230E7490' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
  body.v2 .sec-collect-col[open] > summary::after { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%230E7490' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
  body.v2 .sec2-gpc { margin-top: 0; }
  body.v2 .sec2-gpc > summary.sec-fold-sum { border-top: 0; min-height: 56px; }
  body.v2 .sec-iso { padding: 20px 16px; gap: 0 16px; }
}
@media screen and (prefers-reduced-motion: reduce) { body.v2 .sec-jump a { transition: none; } }

/* print: the PDF keeps its plain headings */
@media print {
  body.v2 .sec-shell .v2-h2 { font-size: 16pt; line-height: 1.2; letter-spacing: -.01em; max-width: none; }
  body.v2 .sec-shell .v2-h2 span { display: inline; color: inherit; }
  body.v2 .sec2-line { display: none; }
  body.v2 .v2-close { display: none !important; }
}

/* phone polish (2026-11-30): stacked, a section that follows a block ending in
   a hairline row drops its own top rule (no second hairline with empty space
   between), and the GPC fold shares the rule above it instead of doubling it */
@media screen and (max-width: 980px) {
  body.v2 .sec-block[aria-labelledby="sec-collect-h"], body.v2 #isolation, body.v2 #retention { border-top: 0; padding-top: 16px; }
}
@media screen and (max-width: 600px) {
  body.v2 details.sec2-gpc[data-fold-all] > summary.sec-fold-sum { border-top: 0; }
}

/* Phones: the questionnaire turnaround is proof reviewers check on a phone (2026-11-30) */
@media (max-width: 600px) { body.v2 #questionnaires { display: block; } }

/* Motion pass (2026-11-30): the fold's plus turns into a cross. */
@media screen and (prefers-reduced-motion: no-preference) {
  body.v2 .sec-card > summary.sec-card-top::after,
  body.v2 details[data-fold-all] > summary.sec-fold-sum::after,
  body.v2 .sec-collect-col > summary::after { transition: transform .18s ease-out; }
  body.v2 .sec-card[open] > summary.sec-card-top::after,
  body.v2 details[data-fold-all][open] > summary.sec-fold-sum::after,
  body.v2 .sec-collect-col[open] > summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' fill='none' stroke='%230E7490' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); transform: rotate(45deg); }
}
