/* Content page pattern — The Security Checklist
   Scoped under html.cp-page so this file is inert on legacy pages.
   Pages using this pattern load ONLY this stylesheet (plus fonts):
   no styles.css, no post-styles.css, no footer.css.
   See docs/content-page-pattern.md. */

/* ---------- Tokens ---------- */
html.cp-page {
  --cp-navy: #0f172a;
  --cp-accent: #2980b9;
  --cp-link: #1b5e96;
  --cp-bg: #f6f7f9;
  --cp-surface: #ffffff;
  --cp-thead-bg: #eef1f5;
  --cp-rule: #e3e7ed;
  --cp-rule-light: #eef1f5;
  --cp-input-border: #cfd6df;
  --cp-list-rule: #dfe4ea;
  --cp-meta-divider: #d4dae3;
  --cp-body-text: #354052;
  --cp-secondary: #5a6478;
  --cp-muted: #6b7688;
  --cp-ondark-1: #ffffff;
  --cp-ondark-2: rgba(255, 255, 255, 0.72);
  --cp-ondark-3: rgba(255, 255, 255, 0.6);
  --cp-ondark-border: rgba(255, 255, 255, 0.28);
  --cp-ondark-hairline: rgba(255, 255, 255, 0.08);
  --cp-font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --cp-font-mono: 'IBM Plex Mono', monospace;
  --cp-max: 1240px;
  --cp-gutter: 32px;
  --cp-header-h: 60px;
  --cp-scroll-offset: 90px;
}

/* ---------- Scoped base ---------- */
html.cp-page {
  scroll-behavior: smooth;
}

html.cp-page body {
  margin: 0;
  background: var(--cp-bg);
  color: var(--cp-navy);
  font-family: var(--cp-font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

html.cp-page *,
html.cp-page *::before,
html.cp-page *::after {
  box-sizing: border-box;
}

html.cp-page h1,
html.cp-page h2,
html.cp-page h3,
html.cp-page p,
html.cp-page ul,
html.cp-page li {
  margin: 0;
}

/* :where() keeps these defaults at zero specificity so any single
   component class (.cp-wordmark, .cp-toc-link, …) can override them. */
:where(html.cp-page) a {
  color: var(--cp-link);
  text-decoration: none;
}

:where(html.cp-page) a:where(:hover) {
  color: var(--cp-navy);
  text-decoration: underline;
}

html.cp-page a:focus-visible,
html.cp-page button:focus-visible,
html.cp-page input:focus-visible,
html.cp-page summary:focus-visible {
  outline: 2px solid var(--cp-accent);
  outline-offset: 2px;
}

.cp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Site header ---------- */
.cp-header {
  background: var(--cp-navy);
  color: var(--cp-ondark-1);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--cp-ondark-hairline);
}

.cp-header-inner {
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 0 var(--cp-gutter);
  height: var(--cp-header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.cp-wordmark {
  color: var(--cp-ondark-1);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cp-wordmark:hover {
  color: var(--cp-ondark-1);
  text-decoration: none;
}

.cp-header-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
}

.cp-header-nav a {
  color: var(--cp-ondark-2);
}

.cp-header-nav a:hover {
  color: var(--cp-ondark-1);
  text-decoration: none;
}

.cp-btn-help {
  color: var(--cp-ondark-1);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--cp-ondark-border);
  padding: 7px 14px;
  white-space: nowrap;
}

.cp-btn-help:hover {
  color: var(--cp-ondark-1);
  background: var(--cp-accent);
  border-color: var(--cp-accent);
  text-decoration: none;
}

/* ---------- Title block ---------- */
.cp-titleblock {
  background: var(--cp-surface);
  border-bottom: 1px solid var(--cp-rule);
}

.cp-titleblock-inner {
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 40px var(--cp-gutter) 36px;
}

.cp-crumbs {
  font-family: var(--cp-font-mono);
  font-size: 12px;
  color: var(--cp-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}

.cp-crumbs a {
  color: var(--cp-muted);
}

.cp-crumb-current {
  color: var(--cp-navy);
}

.cp-h1 {
  font-size: 42px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 780px;
  text-wrap: pretty;
}

.cp-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  font-family: var(--cp-font-mono);
  font-size: 12px;
  color: var(--cp-muted);
  flex-wrap: wrap;
}

.cp-meta-divider {
  width: 1px;
  height: 12px;
  background: var(--cp-meta-divider);
}

/* ---------- Body grid ---------- */
.cp-body {
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 0 var(--cp-gutter);
  display: grid;
  /* minmax(0, …) is load-bearing: long unbreakable tokens (emails,
     domains) otherwise blow out the columns. */
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

/* ---------- Sidebar TOC ---------- */
.cp-toc {
  position: sticky;
  top: var(--cp-header-h);
  padding: 48px 0;
  align-self: start;
}

.cp-toc-label {
  display: block;
  font-family: var(--cp-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cp-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cp-rule);
}

.cp-toc-list {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  padding: 0;
  list-style: none;
}

.cp-toc-link {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  padding: 9px 0 9px 14px;
  color: var(--cp-secondary);
  border-left: 2px solid var(--cp-rule);
}

.cp-toc-link:hover {
  color: var(--cp-navy);
  text-decoration: none;
}

.cp-toc-link.is-active {
  background: var(--cp-surface);
  color: var(--cp-navy);
  font-weight: 600;
  border-left-color: var(--cp-accent);
}

.cp-jump-btn {
  display: block;
  margin-top: 24px;
  background: var(--cp-navy);
  color: var(--cp-ondark-1);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 14px;
  text-align: center;
}

.cp-jump-btn:hover {
  background: var(--cp-accent);
  color: var(--cp-ondark-1);
  text-decoration: none;
}

/* Collapsible wrapper: forced open on desktop, toggleable on mobile. */
.cp-toc-details > summary {
  cursor: pointer;
}

.cp-toc-details > summary::-webkit-details-marker {
  display: none;
}

@media (min-width: 901px) {
  .cp-toc-details > summary {
    list-style: none;
    pointer-events: none;
  }

  .cp-toc-details > *:not(summary) {
    display: block !important;
  }
}

/* ---------- Article ---------- */
.cp-article {
  padding: 48px 0 96px;
  max-width: 820px;
}

.cp-tip {
  border-left: 3px solid var(--cp-accent);
  background: var(--cp-surface);
  padding: 20px 24px;
  margin-bottom: 44px;
}

.cp-tip-label {
  font-family: var(--cp-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cp-accent);
  margin-bottom: 8px;
}

.cp-tip-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cp-body-text);
}

.cp-section {
  scroll-margin-top: var(--cp-scroll-offset);
  margin-bottom: 56px;
}

.cp-section:last-child {
  margin-bottom: 0;
}

.cp-h2 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cp-rule);
  margin-bottom: 20px;
}

.cp-h2--tight {
  margin-bottom: 8px;
}

.cp-prose {
  font-size: 17px;
  line-height: 1.72;
  color: var(--cp-body-text);
  text-wrap: pretty;
}

.cp-prose + .cp-prose {
  margin-top: 18px;
}

.cp-prose--spaced {
  margin-bottom: 20px;
}

.cp-verified {
  font-family: var(--cp-font-mono);
  font-size: 12px;
  color: var(--cp-muted);
  margin-bottom: 20px;
}

/* ---------- Article lists & subheads ---------- */
.cp-h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.cp-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: cp-step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cp-steps li {
  counter-increment: cp-step;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cp-body-text);
  padding-left: 40px;
}

.cp-steps li::before {
  content: counter(cp-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 3px;
  font-family: var(--cp-font-mono);
  font-size: 12px;
  color: var(--cp-muted);
}

.cp-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-ul li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cp-body-text);
  padding-left: 16px;
  border-left: 2px solid var(--cp-list-rule);
}

html.cp-page code {
  font-family: var(--cp-font-mono);
  font-size: 0.85em;
}

/* Tip panel used mid-article (e.g. a callout inside a section). */
.cp-tip--inline {
  margin: 24px 0 0;
}

/* ---------- Two-up cards ---------- */
.cp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cp-card {
  background: var(--cp-surface);
  border: 1px solid var(--cp-rule);
  padding: 24px;
}

.cp-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cp-card-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cp-secondary);
  margin-bottom: 16px;
}

.cp-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.cp-card-list li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--cp-body-text);
  padding-left: 16px;
  border-left: 2px solid var(--cp-list-rule);
}

/* ---------- Filter row ---------- */
.cp-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  position: sticky;
  top: var(--cp-header-h);
  /* Must match the page background so rows scroll under it seamlessly. */
  background: var(--cp-bg);
  padding: 12px 0;
  z-index: 20;
}

.cp-filter-input {
  flex: 1;
  font-family: var(--cp-font-sans);
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--cp-input-border);
  background: var(--cp-surface);
  color: var(--cp-navy);
  outline: none;
}

.cp-filter-input:focus {
  border-color: var(--cp-accent);
}

.cp-filter-count {
  font-family: var(--cp-font-mono);
  font-size: 12px;
  color: var(--cp-muted);
  min-width: 92px;
  text-align: right;
}

/* ---------- Broker table ---------- */
.cp-table {
  border: 1px solid var(--cp-rule);
  background: var(--cp-surface);
}

.cp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 20px;
}

.cp-row--head {
  padding: 12px 20px;
  background: var(--cp-thead-bg);
  border-bottom: 1px solid var(--cp-rule);
  font-family: var(--cp-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cp-secondary);
}

.cp-row--data {
  padding: 16px 20px;
  border-bottom: 1px solid var(--cp-rule-light);
}

.cp-row--data:last-child {
  border-bottom: none;
}

.cp-cell-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.cp-cell-link {
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cp-cell-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cp-secondary);
}

.cp-table-empty {
  display: none;
  border: 1px solid var(--cp-rule);
  border-top: none;
  background: var(--cp-surface);
  padding: 24px 20px;
  font-size: 15px;
  color: var(--cp-secondary);
}

/* ---------- Bulk email panel ---------- */
.cp-panel {
  border: 1px solid var(--cp-rule);
  background: var(--cp-surface);
}

.cp-panel-cell {
  padding: 20px 24px;
}

.cp-panel-cell + .cp-panel-cell {
  border-top: 1px solid var(--cp-rule-light);
}

.cp-mono-label {
  font-family: var(--cp-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cp-secondary);
  margin-bottom: 10px;
}

.cp-addresses {
  font-family: var(--cp-font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--cp-navy);
  word-break: break-word;
}

.cp-panel-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cp-body-text);
}

.cp-copy-btn {
  margin-top: 16px;
  font-family: var(--cp-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-ondark-1);
  background: var(--cp-navy);
  border: none;
  padding: 10px 16px;
  cursor: pointer;
}

.cp-copy-btn:hover {
  background: var(--cp-accent);
}

/* ---------- Fingerprint dashboard ---------- */
.cp-fp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cp-fp-card {
  background: var(--cp-surface);
  border: 1px solid var(--cp-rule);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.cp-fp-title {
  font-family: var(--cp-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cp-secondary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cp-rule);
}

.cp-fp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--cp-rule-light);
}

.cp-fp-row:last-of-type {
  border-bottom: none;
}

.cp-fp-label {
  font-size: 13px;
  color: var(--cp-secondary);
  flex-shrink: 0;
}

.cp-fp-value {
  font-family: var(--cp-font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--cp-navy);
  text-align: right;
  overflow-wrap: anywhere;
}

.cp-fp-why {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--cp-rule-light);
  font-size: 12px;
  line-height: 1.5;
  color: var(--cp-muted);
}

.cp-btn-small {
  font-family: var(--cp-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--cp-ondark-1);
  background: var(--cp-navy);
  border: none;
  padding: 7px 12px;
  cursor: pointer;
  margin: 8px 0;
  align-self: flex-start;
}

.cp-btn-small:hover {
  background: var(--cp-accent);
}

/* ---------- Link cards (resources, keep reading) ---------- */
.cp-linkcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cp-linkcard {
  display: block;
  background: var(--cp-surface);
  border: 1px solid var(--cp-rule);
  padding: 20px;
}

.cp-linkcard:hover {
  border-color: var(--cp-accent);
  text-decoration: none;
}

.cp-linkcard-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--cp-navy);
  margin-bottom: 6px;
}

.cp-linkcard-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cp-secondary);
}

/* ---------- Footer ---------- */
.cp-footer {
  background: var(--cp-navy);
  color: var(--cp-ondark-3);
}

.cp-footer-inner {
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  flex-wrap: wrap;
}

.cp-footer-mono {
  font-family: var(--cp-font-mono);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cp-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .cp-toc {
    position: static;
    padding: 24px 0 0;
  }

  .cp-toc-details > summary.cp-toc-label::after {
    content: '+';
    float: right;
    font-size: 13px;
  }

  .cp-toc-details[open] > summary.cp-toc-label::after {
    content: '\2212';
  }

  .cp-article {
    padding: 32px 0 72px;
  }

  .cp-cards,
  .cp-linkcards,
  .cp-fp-grid {
    grid-template-columns: 1fr;
  }

  /* Broker rows stack into labeled blocks; the header row goes
     screen-reader-only (clip, not display:none, so the columnheader
     semantics survive for assistive tech). */
  .cp-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .cp-row--head {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .cp-filter-count {
    min-width: auto;
  }

  .cp-header-inner,
  .cp-titleblock-inner,
  .cp-body,
  .cp-footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cp-header-inner {
    gap: 16px;
  }

  .cp-titleblock-inner {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .cp-h1 {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .cp-header-nav {
    display: none;
  }

  .cp-btn-help {
    margin-left: auto;
  }
}

/* ---------- Atlas walkthrough player ---------- */
.cp-wt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.cp-wt-rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
}

.cp-wt-step {
  text-align: left;
  background: transparent;
  border: none;
  border-left: 2px solid var(--cp-rule);
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--cp-font-sans);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cp-wt-step:hover {
  background: var(--cp-surface);
}

.cp-wt-step-label {
  font-family: var(--cp-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cp-muted);
}

.cp-wt-step-instruction {
  font-size: 15px;
  line-height: 1.45;
  color: var(--cp-secondary);
  margin-top: 3px;
}

.cp-wt-step.is-active {
  background: var(--cp-surface);
  border-left-color: var(--cp-accent);
}

.cp-wt-step.is-active .cp-wt-step-instruction {
  color: var(--cp-navy);
  font-weight: 600;
}

.cp-wt-step.is-done .cp-wt-step-label::after {
  content: ' \2713';
  color: var(--cp-accent);
}

.cp-wt-step-detail {
  display: none;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cp-secondary);
  margin-top: 6px;
}

.cp-wt-step.is-active .cp-wt-step-detail {
  display: block;
}

.cp-wt-stagewrap {
  position: sticky;
  top: 80px;
}

.cp-wt-stage {
  background: #f5f5f7;
  border: 1px solid var(--cp-rule);
  padding: 28px 24px;
  display: flex;
  justify-content: center;
}

/* Frame matches the parents walkthrough's .iphone-frame aesthetic. */
.cp-wt-frame {
  width: 300px;
  max-width: 100%;
  background: #1d1d1f;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), inset 0 0 0 2px #3a3a3c;
}

.cp-wt-screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #f2f2f7;
}

.cp-wt-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.cp-wt-screen img.cp-wt-entering {
  animation: cp-wt-fade 0.28s ease;
}

@keyframes cp-wt-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cp-wt-hotspot {
  position: absolute;
  border: 2.5px solid var(--cp-accent);
  border-radius: 12px;
  background: transparent;
  animation: cp-wt-pulse 1.8s ease-in-out infinite;
  cursor: pointer;
  padding: 0;
}

.cp-wt-hotspot.is-complete {
  animation: none;
  border-color: #1e9e62;
  cursor: default;
  box-shadow: none;
}

.cp-wt-hotspot:focus-visible {
  outline: 2px solid var(--cp-navy);
  outline-offset: 2px;
}

@keyframes cp-wt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(41, 128, 185, 0.5); }
  55% { box-shadow: 0 0 0 9px rgba(41, 128, 185, 0); }
}

.cp-wt-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.cp-wt-controls .cp-btn-small {
  margin: 0;
  min-width: 76px;
  text-align: center;
}

.cp-wt-controls .cp-btn-small:disabled {
  background: var(--cp-rule);
  color: var(--cp-muted);
  cursor: default;
}

.cp-wt-dots {
  display: flex;
  gap: 8px;
}

.cp-wt-dot {
  width: 8px;
  height: 8px;
  background: var(--cp-rule);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cp-wt-dot.is-active {
  background: var(--cp-accent);
}

.cp-wt-mobilebar {
  display: none;
}

.cp-wt-instruction {
  font-size: 17px;
  font-weight: 600;
  color: var(--cp-navy);
  line-height: 1.35;
  margin-top: 4px;
}

.cp-wt-textsteps {
  margin-top: 28px;
  border-top: 1px solid var(--cp-rule);
  padding-top: 16px;
}

.cp-wt-textsteps summary {
  cursor: pointer;
}

@media (max-width: 900px) {
  .cp-wt {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cp-wt-rail {
    display: none;
  }

  .cp-wt-stagewrap {
    position: static;
  }

  .cp-wt-mobilebar {
    display: block;
    padding: 4px 0 12px;
  }

  .cp-wt-stage {
    padding: 20px 12px;
  }

  .cp-wt-frame {
    width: 100%;
    max-width: 320px;
    border-radius: 40px;
    padding: 10px;
  }

  .cp-wt-screen {
    border-radius: 31px;
  }
}

/* ---------- Member gate (teaser pages; see docs/content-page-pattern.md) ----------
   The fade mask is the one sanctioned gradient on the site: it is functional
   (signals "the text continues behind the card"), not decorative. */

.cp-gate-fadeout {
  max-height: 230px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  user-select: none;
  pointer-events: none;
}

.cp-gate {
  position: relative;
  margin-top: -64px;
}

.cp-gate-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--cp-surface);
  border: 1px solid var(--cp-rule);
  padding: 34px 38px 30px;
  text-align: center;
}

.cp-gate-label {
  font-family: var(--cp-font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cp-accent);
  margin-bottom: 12px;
}

.cp-gate-title {
  font-size: 25px;
  font-weight: 700;
  color: var(--cp-navy);
  margin: 0 0 10px;
  border: none;
  padding: 0;
}

.cp-gate-sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cp-secondary);
  margin: 0 0 22px;
}

.cp-gate-cta {
  display: block;
  padding: 13px 22px;
  background: var(--cp-accent);
  color: var(--cp-ondark-1);
  font-weight: 600;
  font-size: 15px;
}

.cp-gate-cta:hover {
  background: var(--cp-navy);
  color: var(--cp-ondark-1);
  text-decoration: none;
}

.cp-gate-signin {
  font-size: 13.5px;
  color: var(--cp-muted);
  margin: 14px 0 0;
}

.cp-gate-signin a {
  color: var(--cp-link);
  text-decoration: underline;
}

.cp-gate-library {
  max-width: 480px;
  margin: 18px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cp-muted);
  text-align: center;
}

/* Teaser TOC entries are plain text — same geometry as links, muted. */
.cp-toc-locked {
  color: var(--cp-muted);
  cursor: default;
}

@media (max-width: 900px) {
  .cp-gate-card {
    padding: 26px 20px 24px;
  }
}
