/* Schools brochure — mobile + WhatsApp PDF first, then desktop */

.print-only { display: none !important; }

/* Print shell table — invisible on screen, repeating page header in print */
.print-shell,
.print-shell tbody,
.print-shell tr,
.print-shell td { display: block; width: 100%; }

.print-shell { border-collapse: collapse; }

.print-shell thead { display: none; }

.brochure-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  padding: 0.75rem 0;
  background: rgba(250, 249, 253, 0.96);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .brochure-toolbar { background: rgba(15, 15, 24, 0.96); }
}

.brochure-toolbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brochure-toolbar p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* —— Cover —— */

.cover-page {
  padding: 1.75rem 0 2.5rem;
}

.brochure-hero {
  margin-bottom: 2rem;
}

.brochure-hero h1 {
  font-size: clamp(1.75rem, 7vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.brochure-kicker {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.index-grid {
  display: grid;
  gap: 1.75rem;
}

.index-col .index-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.index-col h2 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.index-col .index-why {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.index-col ul { margin: 0; }

.index-col li {
  padding: 0.5rem 0;
  font-size: 1.0625rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
}

.index-col li:last-child { border-bottom: none; }

.index-col a {
  color: var(--text);
  font-weight: 500;
  display: block;
  padding: 0.1rem 0;
}

.index-col a:hover { color: var(--accent); }

.index-footnote {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* —— Details: document rows, not cards —— */

.details-page {
  padding: 2rem 0 1rem;
}

.details-page .section-header {
  max-width: none;
  text-align: left;
  margin: 0 0 1.75rem;
}

.details-page .section-header h2 { margin-bottom: 0.35rem; }

.details-page .section-header .lead {
  margin: 0;
  font-size: 1.0625rem;
}

.feature-group {
  margin-bottom: 2.25rem;
}

.feature-group-head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.feature-group-head .index-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.feature-group-head h2 {
  margin: 0.15rem 0 0.2rem;
  font-size: 1.35rem;
}

.feature-group-head span {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.feature-list {
  display: block;
}

.feature-row {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
  page-break-inside: avoid;
}

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

.feature-row h3 {
  margin: 0 0 0.3rem;
  font-size: 1.125rem;
}

.feature-row > p {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.feature-row ul { margin: 0; }

.feature-row li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.feature-row li:last-child { margin-bottom: 0; }

.feature-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.trust-simple {
  display: grid;
  gap: 1.25rem;
}

.trust-simple h3 {
  margin: 0 0 0.3rem;
  font-size: 1.0625rem;
}

.trust-simple p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.brochure-cta {
  padding: 0;
  background: none;
  border: none;
  max-width: none;
}

.brochure-cta h2 { margin-bottom: 0.45rem; }

.brochure-cta .lead {
  margin-bottom: 1.15rem;
  font-size: 1.0625rem;
}

.brochure-cta .btn-group {
  flex-direction: column;
}

.brochure-cta .btn {
  width: 100%;
}

.brochure-print-hint {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (min-width: 720px) {
  .cover-page { padding: 2.5rem 0 3rem; }

  .index-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.75rem; }

  .brochure-cta .btn-group {
    flex-direction: row;
  }

  .brochure-cta .btn { width: auto; }

  .trust-simple { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

/* Phone-first PDF: one column, large type, no card boxes */
@media print {
  @page {
    size: A4;
    margin: 12mm 12mm 14mm;
  }

  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f0f0f8;
    --text: #1a1a2e;
    --text-secondary: #334155;
    --text-muted: #5c6b80;
    --border: rgba(74, 74, 158, 0.16);
    --accent: #4a4a9e;
    --accent-hover: #353580;
    --accent-subtle: #f0f0f8;
    --accent-2: #6d4fc7;
    --accent-3: #9a6ae0;
    --gold: #edab3b;
    --grad: linear-gradient(120deg, #4a4a9e 0%, #6d4fc7 55%, #9a6ae0 100%);
    --header-h: 0px;
  }

  .print-only { display: block !important; }

  .print-shell {
    display: table;
    width: 100%;
    border-collapse: collapse;
  }

  .print-shell thead { display: table-header-group; }

  .print-shell tbody { display: table-row-group; }

  .print-shell tr { display: table-row; }

  .print-shell td {
    display: table-cell;
    padding: 0;
    vertical-align: top;
  }

  .print-page-head { padding: 0 0 3.5mm; }

  .print-page-head img {
    width: 22mm;
    height: auto;
    display: block;
  }

  .print-page-head::after {
    content: "";
    display: block;
    height: 1mm;
    margin-top: 2mm;
    border-radius: 1mm;
    background: var(--grad);
  }

  html { font-size: 18px; }

  body {
    background: #fff;
    color: var(--text-secondary);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .no-print,
  .site-header,
  .brochure-toolbar,
  .menu-toggle,
  .nav-mobile { display: none !important; }

  .container { max-width: none; padding: 0; }

  .cover-page {
    padding: 0;
    break-after: page;
    page-break-after: always;
  }

  .brochure-hero { margin-bottom: 5mm; }

  .brochure-hero h1 { font-size: 20pt; }

  .brochure-hero .grad-text {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--accent);
  }

  .brochure-kicker { font-size: 11.5pt; }

  .index-grid {
    display: block;
    column-count: 2;
    column-gap: 8mm;
  }

  .index-col {
    break-inside: avoid;
    margin-bottom: 3mm;
  }

  .index-col h2 { font-size: 13pt; color: var(--accent); }

  .index-col .index-why { font-size: 10pt; margin-bottom: 1.5mm; }

  .index-col li { font-size: 11pt; padding: 1.2mm 0; }

  .index-footnote { margin-top: 3mm; font-size: 9.5pt; }

  .details-page {
    padding: 0;
    break-before: page;
    page-break-before: always;
  }

  .section { padding: 0 0 8mm; }

  .section-alt { background: none; }

  .section-header {
    margin-bottom: 6mm;
    break-inside: avoid;
    break-after: avoid;
  }

  .details-page .section-header h2,
  #trust .section-header h2,
  .brochure-cta h2 { color: var(--accent); }

  .feature-group-head {
    background: var(--accent-subtle);
    border-bottom: none;
    border-left: 1.5mm solid var(--accent-2);
    border-radius: 0 2mm 2mm 0;
    padding: 3mm 4mm;
  }

  .feature-group-head h2 { color: var(--accent); }

  .feature-row h3 { color: var(--accent); }

  .trust-simple > div {
    background: var(--accent-subtle);
    border-left: 1.2mm solid var(--accent-3);
    border-radius: 0 2mm 2mm 0;
    padding: 3.5mm 4mm;
  }

  .trust-simple h3 { color: var(--accent); }

  #trust {
    break-before: page;
    page-break-before: always;
  }

  #trust .section-header {
    break-after: avoid;
    margin-bottom: 5mm;
  }

  #trust .section-header h2 { font-size: 16pt; }

  .feature-group {
    margin-bottom: 7mm;
  }

  .feature-group-head {
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: avoid;
    page-break-after: avoid;
  }

  .feature-row {
    padding: 4mm 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .feature-row h3 { font-size: 13pt; }

  .feature-row > p,
  .feature-row li { font-size: 11.5pt; }

  .trust-simple {
    grid-template-columns: repeat(2, 1fr);
    gap: 5mm 8mm;
  }

  .trust-simple > div { break-inside: avoid; }

  .brochure-cta .btn-group { display: none; }

  .cta-contact {
    background: var(--accent-subtle);
    border-left: 1.5mm solid var(--accent-2);
    border-radius: 0 2mm 2mm 0;
    padding: 3.5mm 4mm;
    margin-top: 2mm;
  }

  .cta-contact p {
    margin: 0 0 1.5mm;
    font-size: 12pt;
    line-height: 1.45;
  }

  .cta-contact p:last-child { margin-bottom: 0; }

  .cta-contact strong {
    color: var(--accent);
    display: inline-block;
    min-width: 24mm;
    font-weight: 600;
  }

  .site-footer {
    padding: 2mm 0 0;
    font-size: 9pt;
    break-inside: avoid;
  }

  .site-footer .footer-grid { display: none; }

  .site-footer .footer-bottom {
    margin-top: 0;
    padding-top: 2mm;
    break-inside: avoid;
  }

  a[href]::after { content: none !important; }
}
