/* =========================================================
   IDENTITYVEIL — Resources / article pages
   Shared by every page under Resources. Uses the site's own design tokens
   from style.css (accent, borders, radii, fonts), so a change there carries over.
   Page structure: .page-hero (site) > .article-body-wrap > .article-body ... > CTA (site section--dark)
   ========================================================= */

/* ── Hero ─────────────────────────────────────────────── */
.article-crumb { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 18px; }
.article-crumb a { color: var(--accent); text-decoration: none; }
.article-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-crumb .sep { margin: 0 8px; opacity: .55; }
.article-hero h1 { max-width: 900px; margin: 0 0 20px; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.03em; color: var(--text-primary); }
.article-dek { max-width: 760px; margin: 0; font-size: 1.12rem; line-height: 1.7; color: var(--text-secondary); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 28px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.article-meta span + span::before { content: "·"; margin: 0 14px; opacity: .6; }

/* ── Body ─────────────────────────────────────────────── */
.article-body-wrap { padding-top: 64px; padding-bottom: 84px; }
.article-body { max-width: 760px; margin: 0 auto; font-size: 1.05rem; line-height: 1.78; color: var(--text-dark-2); }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 56px 0 16px; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.02em; }
.article-body h3 { margin: 30px 0 8px; font-size: 1.15rem; line-height: 1.3; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--accent); text-underline-offset: 3px; }
.article-body em { font-style: italic; }
.article-body code { font-family: var(--font-mono); font-size: .88em; padding: 2px 6px; border-radius: 4px; background: var(--bg-light-2); border: 1px solid var(--border-light); }
.article-body blockquote { margin: 32px 0; padding: 22px 26px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--bg-light-2); font-size: 1.1rem; line-height: 1.65; }
.article-body blockquote p:last-child { margin-bottom: 0; }

/* Content blocks used across the articles */
.callout, .answer, .checklist { margin: 32px 0; padding: 26px 28px; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: var(--bg-light-2); }
.callout h3, .checklist h3 { margin-top: 0; margin-bottom: 10px; }
.callout p:last-child, .answer p:last-child { margin-bottom: 0; }
.checklist ul { margin-bottom: 0; }
.answer { border-left: 4px solid var(--accent); }
.answer .label { margin-bottom: 10px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

.decision-grid, .flow { display: grid; gap: 12px; margin: 30px 0; }
.decision, .flow-step, .workflow-step { padding: 20px 22px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--bg-light-2); }
.decision strong, .flow-step strong { display: block; margin-bottom: 4px; }
.workflow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 30px 0; }
.workflow-step { padding: 20px 18px; }
.workflow-step strong { display: block; margin-bottom: 6px; }
.workflow-step h3 { margin: 0 0 6px; font-size: .98rem; }
.workflow-step p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--text-secondary); }
.num { display: inline-block; margin-bottom: 8px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--accent); }

/* Prompt boxes shown as preformatted text (GDPR article) */
.article-body pre { margin: 22px 0; padding: 18px 22px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: #111; color: #f5f5f5; font-family: var(--font-mono); font-size: .88rem; line-height: 1.65; white-space: pre-wrap; overflow-x: auto; }

/* Two-column variant of the card grid */
.decision-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .decision-grid--2 { grid-template-columns: 1fr; } }

/* Simple horizontal diagram of how a document travels (GDPR article) */
.architecture { margin: 30px 0; padding: 22px; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: var(--bg-light-2); overflow-x: auto; }
.architecture .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; }
.architecture .row + .row { margin-top: 14px; }
.architecture .node { padding: 9px 14px; border: 1px solid var(--border-light); border-radius: 999px; background: var(--bg-light); font-family: var(--font-head); font-size: .84rem; font-weight: 600; line-height: 1.2; }
.architecture .arrow { color: var(--accent); font-weight: 700; }

/* Cards with a heading + text (enterprise articles) */
.decision h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.3; }
.decision p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--text-secondary); }

/* Stacked architecture: one labelled row per layer */
.architecture-row { display: grid; grid-template-columns: minmax(130px, 190px) 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.architecture-row:first-child { padding-top: 0; }
.architecture-row:last-child { padding-bottom: 0; border-bottom: 0; }
.architecture-row strong { font-family: var(--font-head); color: var(--accent); }
.architecture-row span { font-size: .94rem; line-height: 1.55; color: var(--text-dark-2); }
@media (max-width: 640px) { .architecture-row { grid-template-columns: 1fr; } }

/* Label on top of an example box, and code shown as a block inside it */
.example-label { margin-bottom: 8px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #9aa0a6; }
.article-body .example code { display: block; padding: 0; border: 0; background: transparent; color: inherit; font-size: .9rem; line-height: 1.75; }

/* Quoted prompts / examples */
.example { margin: 26px 0; padding: 20px 24px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: #111; color: #f5f5f5; overflow-x: auto; }
.example p { margin: 0; }
.example p + p { margin-top: 12px; }

/* Comparison table (scrolls sideways on narrow screens instead of squeezing) */
.table-scroll { margin: 30px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .95rem; line-height: 1.55; }
.comparison th, .comparison td { padding: 14px; border: 1px solid var(--border-light); text-align: left; vertical-align: top; }
.comparison th { background: var(--bg-light-2); font-weight: 700; }

/* Notes, sources, related reading */
.article-note { margin-top: 44px; font-size: .88rem; line-height: 1.65; color: var(--text-secondary); }
.article-note a { color: var(--accent); }
.article-note ul { margin: 8px 0 14px; padding-left: 20px; }
.article-note li { margin-bottom: 4px; }
.article-related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border-light); }
.article-related h2 { margin: 0 0 8px; font-size: 1.3rem; }
.article-related a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border-light); color: inherit; text-decoration: none; font-weight: 600; }
.article-related a:hover { color: var(--accent); }
.article-related a .arrow { float: right; color: var(--accent); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 850px) {
  .article-body-wrap { padding-top: 48px; padding-bottom: 64px; }
  .article-body h2 { margin-top: 46px; font-size: 1.55rem; }
}
@media (max-width: 560px) {
  .article-body { font-size: 1rem; }
  .callout, .answer, .checklist { padding: 22px 20px; }
  .article-meta span + span::before { margin: 0 10px; }
}
