/*
 * cognavis — handout.css
 * Print-optimised handout styles (A4-ready)
 * Version 2.0 | September 2026
 *
 * Scope: styles that apply ONLY to handout pages.
 * This file intentionally uses .handout-section and .handout-section-label
 * rather than .section and .section-label to avoid cascade conflicts with
 * the shared utilities defined in global.css.
 *
 * NOTE: This stylesheet overrides body background and font-size for the
 * print/handout context. This is expected and intentional.
 */

/* ─── HANDOUT BODY OVERRIDE ──────────────────────────────────────────────── */
body {
  background: var(--handout-page-bg);   /* warm grey surround behind the page card */
  padding: 28px 16px;
  font-size: 14px;
}

/* ─── HANDOUT PAGE CARD ──────────────────────────────────────────────────── */
.page {
  max-width: 760px;
  margin: 0 auto;
  background: var(--cloud);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(26,9,5,.15);
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.header {
  background: var(--cocoa);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-series  { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cocoa-40); margin-bottom: 3px; }
.header-title   { font-size: 18px; font-weight: 600; color: var(--linen-light); line-height: 1.2; }
.header-anchor  { font-size: 11px; font-style: italic; font-weight: 300; color: var(--rose); margin-top: 3px; }
.header-right   { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.header-logo {
  font-family: 'Montserrat Underline', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--linen-light);
  letter-spacing: 0;
}
.header-tagline { font-size: 10px; font-style: italic; font-weight: 300; color: var(--rose); letter-spacing: 0.15em; }

/* Badges */
.badge-row  { display: flex; gap: 5px; flex-wrap: wrap; }
.badge      { display: inline-block; padding: 3px 9px; border-radius: 20px; font-weight: 700; font-size: 9px; letter-spacing: 0.3px; text-transform: uppercase; }
.b-linen    { background: var(--linen); color: var(--cocoa-60); }
.b-slate    { background: var(--slate); color: var(--white); }

/* ─── CAREGIVER NOTE STRIP ───────────────────────────────────────────────── */
.cg-strip {
  background: var(--slate-bg);
  border-bottom: 2px solid var(--slate-light);
  padding: 12px 32px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cg-icon  { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.cg-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--slate); margin-bottom: 3px; }
.cg-strip p { font-size: 12px; font-weight: 600; color: var(--cocoa-60); line-height: 1.65; }

/* ─── NAME ROW ───────────────────────────────────────────────────────────── */
.name-row {
  background: var(--linen-50);
  padding: 11px 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1.5px solid var(--cocoa-10);
}
.name-field           { display: flex; align-items: center; gap: 10px; flex: 1; }
.name-field label     { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--cocoa-40); white-space: nowrap; }
.name-field .line     { flex: 1; border-bottom: 1.5px solid var(--cocoa-20); height: 20px; }

/* ─── BODY ───────────────────────────────────────────────────────────────── */
.body { padding: 28px 32px; }

/*
 * .handout-section (not .section) — avoids collision with global.css .section
 * which sets page-level padding (72px 32px).
 */
.handout-section { margin-bottom: 24px; }

.handout-divider { border: none; border-top: 1.5px solid var(--cocoa-10); margin: 22px 0; }

/* Section heads — .handout-section-label (not .section-label) */
.handout-section-label { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cocoa-40); margin-bottom: 6px; }
.section-title         { font-size: 15px; font-weight: 700; color: var(--cocoa); margin-bottom: 6px; line-height: 1.3; }
.section-sub           { font-size: 11px; font-weight: 600; color: var(--cocoa-40); margin-bottom: 12px; line-height: 1.5; }
.handout-body          { font-size: 13px; font-weight: 600; color: var(--cocoa-60); line-height: 1.75; margin-bottom: 12px; }
.handout-note          { font-size: 12px; font-weight: 600; color: var(--cocoa-60); line-height: 1.7; margin-top: 14px; }

/* Handout pull quote */
.handout-quote {
  background: var(--burg-bg);
  border-left: 3px solid var(--burgundy);
  padding: 13px 18px;
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--cocoa);
  line-height: 1.7;
  margin: 16px 0;
}

/* Insight grid */
.insight-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.insight-card   { background: var(--linen); border: 1px solid var(--cocoa-10); border-radius: var(--r); padding: 14px 16px; }
.ic-icon        { font-size: 18px; margin-bottom: 6px; }
.ic-label       { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--cocoa-40); margin-bottom: 4px; }
.ic-text        { font-size: 12px; font-weight: 600; color: var(--cocoa-60); line-height: 1.6; }

/* Signals grid */
.signals-grid           { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.signal-card            { background: var(--linen-50); border-radius: var(--r); padding: 12px 15px; border: 1px solid var(--cocoa-10); }
.signal-felt            { border-left: 3px solid var(--slate); }
.signal-not             { border-left: 3px solid var(--burgundy); }
.sig-head               { font-size: 11px; font-weight: 700; color: var(--cocoa); margin-bottom: 6px; }
.signal-card ul         { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.signal-card ul li      { font-size: 11px; font-weight: 600; color: var(--cocoa-60); line-height: 1.5; padding-left: 12px; position: relative; }
.signal-card ul li::before { content: "→"; position: absolute; left: 0; color: var(--rose); font-size: 10px; }

/* Reflection prompts */
.reflect-block  { background: var(--linen); border: 1px solid var(--cocoa-10); border-radius: var(--r); padding: 18px 20px; margin-top: 12px; }
.reflect-prompt { display: flex; gap: 12px; margin-bottom: 14px; }
.reflect-prompt.last { margin-bottom: 0; }
.rp-num         { font-size: 12px; font-weight: 700; color: var(--burgundy); min-width: 18px; padding-top: 1px; }
.rp-text        { font-size: 12px; font-weight: 600; color: var(--cocoa-60); line-height: 1.6; flex: 1; }
.write-line     { border-bottom: 1.5px solid var(--cocoa-10); margin-top: 6px; height: 20px; }
.write-line.mt  { margin-top: 8px; }

/* Home activity grid */
.home-grid  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 12px; }
.home-card  { background: var(--slate-bg); border: 1px solid var(--slate-light); border-radius: var(--r); padding: 13px 14px; text-align: center; }
.hc-icon    { font-size: 20px; margin-bottom: 5px; }
.hc-text    { font-size: 11px; font-weight: 700; color: var(--cocoa-60); line-height: 1.5; }

/* Evidence & safety notes */
.evidence-note      { background: var(--linen-50); border-radius: var(--r); padding: 13px 16px; border: 1px solid var(--cocoa-10); margin-top: 12px; }
.evidence-note p    { font-size: 11px; font-weight: 600; color: var(--cocoa-60); line-height: 1.65; }
.evidence-note strong { color: var(--cocoa); }
.evidence-note em   { color: var(--cocoa-40); }
.safe-note          { background: var(--burg-bg); border-radius: var(--r); padding: 11px 15px; margin-top: 10px; }
.safe-note p        { font-size: 11px; font-weight: 600; color: var(--cocoa-60); line-height: 1.6; }

/* ─── HANDOUT FOOTER ─────────────────────────────────────────────────────── */
.handout-footer {
  background: var(--linen);
  padding: 11px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--cocoa-10);
}
.handout-footer span { font-size: 10px; font-weight: 700; color: var(--cocoa-40); }
.footer-logo-sm {
  font-family: 'Montserrat Underline', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--cocoa);
  letter-spacing: 0;
}

/* ─── PRINT ──────────────────────────────────────────────────────────────── */
@media print {
  body  { background: var(--white); padding: 0; }
  .page { box-shadow: none; border-radius: 0; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .insight-grid,
  .signals-grid,
  .home-grid        { grid-template-columns: 1fr; }
  .name-row         { flex-direction: column; gap: 10px; }
  .header           { flex-direction: column; align-items: flex-start; gap: 12px; }
  .handout-footer   { flex-direction: column; gap: 6px; text-align: center; }
}


/* ── Anchor icon badge — handout override ───────────────────────────────────
   The cg-strip uses a compact badge. Override the global size for print context.
*/
.cg-icon.anchor-icon-badge {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
}
.cg-icon.anchor-icon-badge svg {
  width: 34px;
  height: 34px;
}
