/*
 * deadkey.net — print-trusted.html page-local styles
 * Extracted from an inline <style> block as part of the CSP hardening pass.
 */

body {
  background-color: var(--color-bg);
}

/* Print action bar (screen only) */
.print-action-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-banner);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.print-action-bar p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 100%;
}

.print-action-bar .cluster {
  flex-shrink: 0;
}

/* v0.7 — screen-only toggle for previewing the four sheet variants
   (passphrase / codebook-assisted / codebook-char / codebook-tinfoil).
   Deliberately a distinct, page-local component rather than reusing
   create.css's .segmented-control — this page doesn't load create.css, and
   this control is preview-only chrome, not a real form input the way
   create.html's is. Also reused as-is by codebook-template.html's
   numeric/character grid-variant toggle (that page already links this
   stylesheet for .print-action-bar). */
.preview-toggle {
  display: flex;
  gap: var(--space-2);
  max-width: 900px;
  margin: var(--space-4) auto 0;
  padding: 0 var(--space-6);
}

.preview-toggle__option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.preview-toggle__option:hover { border-color: var(--color-border-strong); }

.preview-toggle__option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.preview-toggle__option:has(input:checked) {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.preview-toggle__option:has(input:focus-visible) {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.preview-toggle__note {
  max-width: 900px;
  margin: var(--space-2) auto 0;
  padding: 0 var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Owner-name write-in blank on the Recovery Sheet (trustee-facing copy) —
   the owner's name is intentionally NOT auto-printed here (unlike the
   private Owner Sheet, which does show it); this is a blank line the owner
   or trusted person can fill in by hand, or leave empty, so identifying
   information isn't committed to a paper that could be lost or copied. */
.print-data__blank {
  display: inline-block;
  min-width: 12rem;
  height: 1.1em;
  border-bottom: 1px solid var(--color-text-primary);
  vertical-align: bottom;
}
