/* Narrower screens. Not loaded by the printable sheets, which always keep the full layout. */

@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .menu { gap: 26px; }
  .page-grid { column-gap: 50px; }
  .human { grid-template-columns: minmax(0, 1fr) 340px; }
  .human-photo { width: 350px; }
}

@media (max-width: 900px) {
  :root { --gutter: 18px; }
  body { font-size: 16.5px; }

  .top { min-height: 0; flex-direction: column; gap: 12px; padding: 14px 12px 10px; }
  .top-brand { flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
  .menu { flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: 18px; }
  .flag { display: none; }

  /* page 1: the card comes right after the facts, then the letter */
  .page-grid { display: flex; flex-direction: column; padding-top: 22px; }
  .cv-top { padding-top: 22px; }
  .col { display: contents; }
  .buy { order: 1; width: auto; margin: 28px 6px 0 0; }
  .letter { order: 2; font-size: 16.5px; line-height: 1.55; margin-top: 36px; }
  .col + .col .letter { order: 3; margin-top: 30px; }
  .letter-bg { display: none; }
  .crumbs { flex-wrap: wrap; gap: 4px 18px; }
  .title { font-size: 46px; }
  .facts { gap: 14px; justify-content: space-between; margin-top: 26px; }
  .facts li { min-width: 0; flex: 1; }
  .facts span { white-space: normal; }
  .human { grid-template-columns: 1fr; gap: 24px; margin-top: 44px; padding: 24px 20px 22px; border-right: 3px solid #000; border-radius: var(--cut-big); font-size: 16.5px; line-height: 1.55; box-shadow: 6px 7px 0 var(--teal); }
  .human-cols { flex-direction: column; gap: 20px; }
  .human-photo { width: 100%; margin: 0; }

  /* page 2: each table row becomes a small card */
  .cv-head { flex-direction: column; gap: 10px; }
  .quote { width: auto; margin: 26px 8px 0 0; }
  .cv-inner { width: calc(100% - 2 * var(--gutter)); }
  .cv-table thead { display: none; }
  .cv-table, .cv-table tbody, .cv-table tr, .cv-table td { display: block; width: auto !important; }
  .cv-table tr { padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.32); }
  .cv-table td { height: auto; padding: 1px 0; border: 0; font-size: 15px; white-space: normal !important; }
  .cv-table td:first-child { font-size: 16.5px; }
  .cv-table td:nth-child(2) { font-family: var(--mono); font-size: 12.5px; color: #444; }
  .cv-table td:nth-child(3) { font-weight: 500; }
  .kit { grid-template-columns: 1fr; }

  .foot { margin-top: 56px; }
  .foot-links { gap: 0 22px; font-size: 15px; }
  .foot-links a { padding: 12px 0; }
  .foot-addr { text-align: center; line-height: 1.6; }
  .foot-copy, .foot-note { position: static; margin-top: 8px; text-align: center; }
}
