/* Security page. Builds on site.css: .sec-head, .data, .marks, .mended, .closing, .night tokens. */

/* stage: the access screenshot in the white frame used by the homepage showcase */
.sec-stage .showcase { max-width: 1120px; }
.sec-stage .showcase img { border-radius: 20px; }

/* what we store: the table in a white frame, row heads in ink */
.store { padding: 6px; border-radius: var(--r-lg); background: var(--surface); }
.store .table-scroll { border-radius: 22px; }
.store .data { margin-top: 0; border-radius: 22px; font-size: 1rem; min-width: 44rem; }
.store .data caption { caption-side: bottom; padding: 1rem 1rem 0.6rem; text-align: left; font-size: var(--step-small); color: var(--muted); }
.store .data tbody th { padding: 0.95rem 1rem; border-top: 1px solid var(--hair); text-align: left; vertical-align: top; font-weight: 600; color: var(--ink); width: 26%; }
.store .data td { padding: 0.95rem 1rem; }
.store .data td:nth-child(2) { width: 30%; }

/* write access: one night card */
.night-card { padding: clamp(1.5rem, 5vw, 4.5rem); border-radius: 36px; background: var(--night); color: var(--night-ink); }
.nc-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.nc-head .head { color: var(--night-ink); }
.nc-head .lead { color: rgba(255, 244, 225, 0.9); }
.dark-cells { display: grid; gap: 1px; background: rgba(255, 255, 255, 0.08); border-radius: 22px; overflow: hidden; }
.dark-cells > li { padding: 1.5rem; background: var(--night-2); display: flex; flex-direction: column; gap: 0.5rem; }
.dark-cells b { font-size: var(--step-sub); letter-spacing: -0.025em; line-height: 1.15; color: var(--gold-2); }
.dark-cells span { font-size: 1rem; color: var(--night-muted); }
.nc-facts { margin-top: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nc-pair { display: grid; grid-template-columns: minmax(0, 815fr) minmax(0, 1251fr); gap: 1rem; margin-top: 1rem; align-items: start; }
.nc-pair figure { padding: 5px; border-radius: 22px; background: var(--night-3); }
.nc-pair img { width: 100%; border-radius: 17px; }
@media (max-width: 64em) { .nc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 56em) { .nc-head, .nc-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 30em) { .nc-facts { grid-template-columns: minmax(0, 1fr); } }

/* secrets never reach a model */
.models-split { align-items: center; }
.models-lead { margin-top: 1.25rem; }
.models-body { margin-top: 1rem; color: var(--ink-2); }
.frame { padding: 6px; border-radius: var(--r-lg); background: var(--surface); }
.frame img { border-radius: 22px; }

/* the redaction illustration: two dark columns, before and after */
.redact { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 6px; border-radius: var(--r-lg); background: var(--night); color: var(--night-ink); }
.redact-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.redact-col { padding: 1.25rem 1.4rem 1.4rem; border-radius: 22px; background: var(--night-2); min-width: 0; }
.redact-col.sent { background: var(--night-3); }
.redact-k { font-size: 1rem; font-weight: 600; color: var(--night-ink); }
.redact-col.sent .redact-k { color: var(--gold-2); }
.redact pre { margin-top: 0.9rem; font-size: 0.875rem; line-height: 1.9; color: rgba(255, 244, 225, 0.82); white-space: pre-wrap; overflow-wrap: anywhere; }
.redact pre code { font-size: 1em; }
.redact mark { padding: 0.05em 0.3em; border-radius: 5px; background: rgba(217, 168, 69, 0.2); color: var(--gold-2); }
.redact-cap { padding: 0.9rem 1rem 0.7rem; font-size: var(--step-small); color: var(--night-muted); }
@media (max-width: 56em) { .redact-cols { grid-template-columns: minmax(0, 1fr); } }

/* disclosure: the three promises as tone-separated rows on the white dialog surface */
.disc-list { display: grid; gap: 1px; background: rgba(255, 255, 255, 0.08); border-radius: 22px; overflow: hidden; }
.disc-list li { padding: 1.4rem 1.5rem; background: var(--night-2); display: flex; flex-direction: column; gap: 0.35rem; }
.disc-list b { font-size: var(--step-sub); letter-spacing: -0.025em; line-height: 1.15; color: var(--gold-2); }
.disc-list span { font-size: 1rem; color: var(--night-muted); }
.closing-text .btn { margin-top: 0.4rem; }


/* narrow screens: each row becomes a block, so the table never scrolls sideways */
@media (max-width: 40em) {
  .store .data { min-width: 0; }
  .store .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .store .data tr, .store .data tbody th, .store .data td { display: block; width: auto; }
  .store .data tbody tr { padding: 1rem 1.1rem; border-top: 1px solid var(--hair); }
  .store .data tbody tr:first-child { border-top: 0; }
  .store .data tbody th, .store .data td { padding: 0; border-top: 0; background: none; }
  .store .data td, .store .data td:nth-child(2) { margin-top: 0.5rem; width: auto; }
  .store .data td::before { display: block; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
  .store .data td:nth-child(2)::before { content: "Stored as"; }
  .store .data td:nth-child(3)::before { content: "Notes"; }
}
