/* Sam Marks Editorial CV — Print styles */

@page {
  size: A4;
  margin: 14mm 16mm 15mm;
}

@media print {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html,
  body {
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 10pt;
    line-height: 1.45;
  }

  body.is-loaded .page,
  .page {
    opacity: 1 !important;
  }

  .no-print,
  .skip-link,
  .export-control,
  .download-cv-button {
    display: none !important;
  }

  .page {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  a {
    color: #111111 !important;
    text-decoration: none;
  }

  a[href^="mailto:"]::after,
  a[href^="tel:"]::after,
  a[href^="http"]::after {
    content: none;
  }

  /* Page breaks */

  .print-page-2 {
    break-before: page;
    page-break-before: always;
  }

  .print-page-3 {
    break-before: page;
    page-break-before: always;
  }

  .section-label,
  .achievements-subtitle,
  .case-study-title,
  .case-study-label,
  .career-company {
    break-after: avoid;
    page-break-after: avoid;
  }

  .case-study,
  .career-row,
  .metric-item,
  .principle-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .achievements-columns,
  .ai-split,
  .case-study-meta {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Hero */

  .hero {
    margin-bottom: 6mm;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 42mm;
    gap: 8mm;
  }

  .hero-name {
    font-size: 22pt;
    letter-spacing: 0.03em;
    margin-bottom: 3mm;
  }

  .hero-descriptor {
    font-size: 12pt;
    margin-bottom: 1.5mm;
  }

  .hero-tagline {
    font-size: 9pt;
    margin-bottom: 4mm;
  }

  .hero-statement {
    font-size: 14pt;
    line-height: 1.25;
    max-width: none;
  }

  .hero-contact {
    font-size: 8pt;
    text-align: right;
  }

  .hero-rule {
    margin-top: 5mm;
  }

  /* Sections */

  .section {
    margin-bottom: 6mm;
  }

  .section-label {
    font-size: 7pt;
    margin-bottom: 3mm;
    letter-spacing: 0.12em;
  }

  /* About */

  .about-body {
    max-width: 130mm;
  }

  .about-body p {
    margin-bottom: 2.5mm;
    font-size: 9.5pt;
  }

  .about-lead {
    font-size: 10.5pt;
  }

  /* Principles */

  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 4mm;
  }

  .principle-item {
    padding: 2.5mm 0;
    font-size: 9pt;
    border-top: 0.25pt solid #d9d9d4;
  }

  .principles-grid .principle-item:nth-last-child(-n + 3) {
    border-bottom: 0.25pt solid #d9d9d4;
  }

  /* Achievements */

  .metrics-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 2mm;
    margin-bottom: 5mm;
  }

  .metric-value {
    font-size: 14pt;
  }

  .metric-label {
    font-size: 6.5pt;
  }

  .achievements-columns {
    grid-template-columns: 1fr 1fr;
    gap: 6mm;
  }

  .achievements-subtitle {
    font-size: 10pt;
    margin-bottom: 2mm;
  }

  .achievements-list li {
    font-size: 9pt;
    margin-bottom: 1.5mm;
    padding-left: 3mm;
  }

  .achievements-list li::before {
    width: 1pt;
    height: 1pt;
    top: 0.55em;
  }

  /* AI Innovation */

  .ai-split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 8mm;
  }

  .ai-intro p {
    font-size: 9pt;
    margin-bottom: 2mm;
    max-width: none;
  }

  .ai-areas-list li {
    font-size: 9pt;
    padding: 1.5mm 0;
    border-top: 0.25pt solid #d9d9d4;
  }

  .ai-areas-list li:last-child {
    border-bottom: 0.25pt solid #d9d9d4;
  }

  /* Selected work */

  .case-study {
    margin-bottom: 5mm;
    padding-bottom: 5mm;
    border-bottom: 0.25pt solid #d9d9d4;
  }

  .case-study:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .case-study-title {
    font-size: 13pt;
    margin-bottom: 1.5mm;
  }

  .case-study-subtitle {
    font-size: 9pt;
    margin-bottom: 3mm;
    max-width: none;
  }

  .case-study-meta {
    grid-template-columns: 1fr 1fr;
    gap: 5mm;
    margin-bottom: 2mm;
  }

  .case-study-label {
    font-size: 6.5pt;
    margin-bottom: 1mm;
  }

  .case-study-block p,
  .case-study-impact li {
    font-size: 9pt;
    max-width: none;
  }

  .case-study-impact li {
    padding: 0.5mm 0 0.5mm 3mm;
  }

  /* Expertise */

  .expertise-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5mm 3mm;
  }

  .expertise-grid li {
    font-size: 8.5pt;
  }

  /* Career */

  .career-row {
    grid-template-columns: 32mm 1fr;
    gap: 4mm;
    padding: 2mm 0;
    border-top: 0.25pt solid #d9d9d4;
  }

  .career-row:last-child {
    border-bottom: 0.25pt solid #d9d9d4;
  }

  .career-date {
    font-size: 8.5pt;
  }

  .career-company {
    font-size: 9.5pt;
  }

  .career-role {
    font-size: 8.5pt;
  }

  /* Footer */

  .footer {
    padding-top: 4mm;
    border-top: 0.25pt solid #d9d9d4;
    margin-top: 4mm;
  }

  .footer-tagline,
  .footer-links {
    font-size: 8pt;
  }
}
