/* print.css: light, static, A4. Loaded with media="print".
   The PDF is rendered by Playwright with scale 0.8, so the layout viewport is wider
   than 768px and the desktop layout applies. Rules below only tidy it for paper. */

@page { size: A4; margin: 12mm; }

* , *::before, *::after {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  animation: none !important;
  transition: none !important;
}

html { scroll-behavior: auto; }
body { background: #fff; color: var(--text-primary); font-size: 14px; line-height: 1.5; overflow: visible; }

/* No nav, skip link, decoration or interaction hints */
.nav, .skip-link, .hero-ctas, .shot-cap, .hero::before { display: none !important; }

/* Everything visible: no scroll reveals */
.js .reveal, .reveal { opacity: 1 !important; transform: none !important; }

/* Sections: tighter, light only */
.section, .cta { padding: 1.75rem 0 !important; background: #fff !important; }
.section--surface { background: var(--bg-surface) !important; }
.hero { padding: 0 0 1.5rem !important; background: #fff !important; min-height: 0; }
.container { max-width: none; }
.section-headline { font-size: 34px; margin-bottom: 0.75rem; }
.hero-headline { font-size: 56px; }
.hero-sub { font-size: 16px; margin-top: 1rem; }
.lede { font-size: 14.5px; margin-bottom: 0.9rem; }
.sub-headline { font-size: 21px; margin: 1.5rem 0 0.8rem; }
.subcase { margin-top: 2rem; }
.subcase .lede { margin-bottom: 1rem; }

/* Case studies start on a fresh page; headings stay with what follows */
/* B1, B2(+B3) and Community each start a page, so lead-ins never strand */
.subcase, #community { break-before: page; }
.subcase { break-inside: avoid; }
.subcase + .subcase { break-before: page; }
/* B3 follows B2 on the same page */
.subcase:last-child { break-before: auto; }
.section-label, .section-headline, .sub-headline, .card-kicker, .chips-label, .lede, .role { break-after: avoid; }

/* Keep components intact across page breaks */
.metric-card, .info-card, .work-card, .results-dashboard, .insight-box, .combined,
.combined-row li, .step-card, .exp-entry, .kv > div, .data-table tr, .dashboard-footer,
.post-card .shot, .check-list li, .pill {
  break-inside: avoid;
  page-break-inside: avoid;
}
.card-pair, .problem-strategy, .process-grid, .kada-intro { break-inside: auto; }

/* Hero stats: four across */
.stat-grid { grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-top: 1.75rem; }
.stat-card { padding: 1rem; }
.stat-card .metric-number { font-size: 30px; }
.stat-card .metric-label { font-size: 12px; }
.stat-card .metric-context { font-size: 11px; }
.mini-stats { gap: 0.8rem; }
.mini-stats .metric-number { font-size: 32px; }

/* Process: 4 across keeps it on one page */
.process-grid { grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-top: 1rem; }
.step-card { padding: 1rem; }
.step-body { font-size: 12.5px; }

/* Screenshots: scale to the card, never clip */
.shot-img { max-width: 100%; height: auto; }
.card-pair { gap: 1rem; }
.post-card .work-card-body { padding: 1rem; }
.kv dd { font-size: 12.5px; }

/* Cards: flat, no hover lift */
.metric-card, .work-card, .info-card, .step-card { box-shadow: none !important; transform: none !important; }

/* Contact + footer: light, not the dark island */
.dark-island { background: #fff !important; color: var(--text-primary) !important; }
.cta { text-align: left; border-top: 1px solid var(--border); }
.cta-headline { color: var(--text-primary); font-size: 36px; margin: 0.5rem 0; }
.cta-body { color: var(--text-muted); margin-bottom: 1rem; font-size: 14px; }
.cta-label { color: var(--blue-text); }
.cta-buttons { justify-content: flex-start; }
.btn-cta-primary, .btn-cta-secondary {
  background: transparent !important; color: var(--text-primary) !important;
  border: 0 !important; padding: 0 !important; font-size: 14px; border-radius: 0; box-shadow: none !important;
}
.site-footer { padding: 1rem 0 0 !important; border-top: 1px solid var(--border); }
.footer-brand { color: var(--text-primary); }
.footer-tagline, .footer-contact { color: var(--text-muted); }

/* Print the URL after each external link */
a[href^="http"]:not(.shot a)::after {
  content: " (" attr(href) ")";
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.link-arrow span[aria-hidden] { display: none; }
.link-arrow { display: block; max-width: 100%; }
.btn-cta-secondary::after { display: inline; }
a[href^="mailto:"]::after { content: none; }
.shot a::after { content: none !important; }

/* Compact B.I.G. block so problem, strategy and results table share page 1 */
#case-big { padding-top: 1rem !important; }
#case-big .problem-strategy { margin: 1rem 0; gap: 0.8rem; }
#case-big .info-card { padding: 0.9rem 1rem; }
#case-big .check-list { gap: 0.35rem; font-size: 12.5px; }
#case-big .table-card { padding: 1rem 1.2rem; }
#case-big .data-table { margin-top: 0.4rem; font-size: 13px; }
#case-big .data-table th, #case-big .data-table td { padding: 0.4rem 0.75rem 0.4rem 0; }
#case-big .methodology { margin-top: 0.6rem; font-size: 11px; padding-top: 0.6rem; }
#case-big .role { font-size: 13px; }
#case-big .sub-headline { margin: 1rem 0 0.6rem; }
.hero { padding-bottom: 0.5rem !important; }
.stat-grid { margin-top: 1.25rem; }
