/* Two-step login, the account security page and the public security overview. Loaded only by those pages; every colour
   comes from the tokens in site.css, so light and dark follow the rest of the product. */

.ts-narrow { max-width: 520px; }
.ts-links { margin-top: 18px; display: grid; gap: 4px; }
.ts-links a { display: inline-block; padding-block: 8px; }

/* the code field is the one loud thing on these pages: big digits, spaced like the app shows them */
input.ts-code { font-family: var(--mono); font-size: 1.9rem; font-weight: 600; letter-spacing: .32em; text-align: center;
  padding: 12px 10px 12px calc(10px + .32em); min-height: 64px; width: 100%; max-width: 100%; font-variant-numeric: tabular-nums; }
input.ts-code::placeholder { color: var(--line); letter-spacing: .32em; }
input.ts-code.ts-code-long { font-size: 1.25rem; letter-spacing: .12em; padding-left: calc(10px + .12em); }
input.ts-code.ts-code-long::placeholder { letter-spacing: .12em; }
input.ts-code.ts-code-small { font-size: 1.1rem; letter-spacing: .14em; min-height: var(--tap); padding: 8px 10px; width: 11.5em; text-align: left; }
input.ts-code.ts-code-small::placeholder { letter-spacing: .14em; }

.ts-inline { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin: 10px 0 6px; }
.ts-inline .ts-code { flex: 1 1 200px; width: auto; }
.ts-inline .ts-code.ts-code-small { flex: 0 1 11.5em; }
.ts-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* enrolment, one step at a time (static/walk.js): the steps in one column, the QR code inside step 2. It sits on white in
   both themes, because a phone camera needs the contrast */
.ts-setup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.ts-qr { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; width: 242px; max-width: 100%; margin: 12px 0 10px; }
.ts-qr img { display: block; width: 100%; height: auto; }
.ts-setup > * { min-width: 0; }
.ts-steps { margin: 0; padding-left: 1.3em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.ts-steps > li { min-width: 0; }
.ts-narrow .field.check .hint { display: block; }
.ts-card-h, .card > .ts-head h2, #sessions > h2, #browsers > h2 { font-size: 1.3rem; letter-spacing: -.01em; }
.ts-steps li::marker { font-weight: 700; color: var(--accent); }
.ts-steps .hint { margin-top: 2px; }
.ts-key { display: inline-block; background: var(--surface-2); border-radius: 6px; padding: 6px 10px; letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }

/* recovery codes: a sheet to print or copy, two columns of ten */
.ts-sheet { border-style: dashed; border-width: 2px; }
.ts-sheet-h { font-weight: 700; margin-bottom: 12px; }
.ts-codes { list-style: decimal-leading-zero; margin: 0 0 14px; padding-left: 2.4em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 40px; }
@media (min-width: 480px) { .ts-codes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ts-codes li::marker { color: var(--ink-2); font-size: .85rem; }
.ts-codes code { font-size: 1.12rem; font-weight: 600; letter-spacing: .08em; user-select: all; }

/* the security page */
.ts-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ts-head h2 { margin: 0; }
.pill.ts-on { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); font-weight: 600; }
.pill.ts-off { background: var(--surface-2); color: var(--ink-2); }
.ts-warn { color: var(--warn); font-weight: 600; }
.ts-more { border-top: 1px solid var(--line); padding: 10px 0 2px; }
.ts-more summary { cursor: pointer; font-weight: 600; min-height: var(--tap); display: flex; align-items: center; }
.ts-more summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--ink-2); }
.ts-more[open] summary::before { content: "\2212"; }
.ts-more summary::-webkit-details-marker { display: none; }
.ts-list { list-style: none; margin: 0 0 16px; padding: 0; }
.ts-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.ts-list li:last-child { border-bottom: 1px solid var(--line); }
.ts-list .hint { margin: 2px 0 0; }

/* the public security overview: a document a firm prints and files with its own security plan */
.so-doc { max-width: 820px; }
.so-meta { color: var(--ink-2); font-size: .92rem; margin: 0 0 18px; }
.so-glance { width: 100%; border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; margin: 0 0 8px; background: var(--surface); }
.so-glance th, .so-glance td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); white-space: normal; }
.so-glance tr:first-child th, .so-glance tr:first-child td { border-top: 0; }
.so-glance th { width: 34%; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: .94rem; }
.so-doc h2 { margin-top: 1.9em; padding-top: .9em; border-top: 2px solid var(--ink); font-size: 1.3rem; }
.so-doc h2:first-of-type { margin-top: 1.4em; }
.so-doc table.so-table { display: table; width: 100%; border: 1px solid var(--line); margin: 1em 0; }
.so-doc table.so-table th, .so-doc table.so-table td { text-align: left; vertical-align: top; padding: 8px 12px; border-top: 1px solid var(--line); white-space: normal; }
.so-not { border-left: 4px solid var(--warn); background: var(--surface); padding: 12px 16px; border-radius: 6px; }
.so-not ul { margin-bottom: 0; }
.so-print-only { display: none; }

@media print {
  .ts-noprint, .geo-bar, .cookie-banner, .so-noprint, .flash, .notice, .crumbs { display: none !important; }
  .ts-sheet { border: 2px dashed #000; }
  .so-print-only { display: block; }
  .so-doc { max-width: none; font-size: 10.5pt; }
  .so-doc h2 { border-top-color: #000; break-after: avoid; }
  .so-doc table, .so-doc ul, .so-not { break-inside: avoid; }
  .so-glance, .so-doc table.so-table { border-color: #999; }
  .so-doc a { color: #000; text-decoration: none; }
  .page-head { padding-block: 0 8px; }
  .page-head h1 { font-size: 20pt; margin-bottom: 6pt; }
  .page-head .lead { font-size: 11pt; }
  section { padding-block: 0 !important; }
  .so-doc h2 { font-size: 13pt; margin-top: 1.2em; padding-top: .5em; }
  .so-doc p, .so-doc li { line-height: 1.4; }
  @page { margin: 16mm 15mm; }
}
/* Design review 18 Oct 2026: the "Remember this browser" box is a 44 px target like every check box on the site (C4), its label beside it. */
#ts-remember { block-size: var(--tap, 44px); inline-size: 22px; margin-block: 0; }
