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

/* the menu moves left as the screen narrows, so the note under it needs room above the breadcrumbs */
@media (max-width: 1400px) {
  .page-grid { padding-top: 68px; }
}

@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .menu { gap: 24px; }
  .page-grid { column-gap: 48px; }
  .human { grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; padding: 36px 40px; }
  .human-team { width: 240px; }
  .human-cols { flex-direction: column; gap: 18px; }
  .foot-cols { grid-template-columns: 1fr 1fr 1fr; }
  .foot-logo { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .top { grid-template-columns: 1fr auto; }
  .menu { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .top-end { grid-column: 2; grid-row: 1; }
}

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

  .top { min-height: 0; gap: 10px 12px; padding: 14px 16px 10px; }
  .logo-tag { display: none; }
  .wordmark { font-size: 30px; }
  .lang { display: none; }
  .top-btn { padding: 12px 16px; font-size: 15px; }
  .menu { flex-wrap: wrap; gap: 2px 20px; font-size: 15.5px; }
  .note { display: none; }

  /* page 1: the card comes right after the facts, then the letter */
  .sky-top { height: 380px; }
  .dots { display: none; }
  .page-grid { display: flex; flex-direction: column; padding-top: 22px; }
  .col { display: contents; }
  .status { order: 1; width: auto; margin: 30px 0 0; padding: 22px 18px 18px; }
  .stile b { font-size: 24px; }
  .dtiles { grid-template-columns: 1fr; gap: 8px; }
  .letter { order: 2; font-size: 16px; line-height: 1.62; margin-top: 36px; }
  .col + .col .letter { order: 3; margin-top: 28px; }
  .crumbs { flex-wrap: wrap; }
  .title { font-size: 38px; }
  .facts { gap: 10px; justify-content: space-between; margin-top: 24px; }
  .facts li { min-width: 0; flex: 1; }
  .facts span:not(.fact-ico) { white-space: normal; }
  .human { grid-template-columns: 1fr; gap: 26px; margin-top: 44px; padding: 28px 18px 26px; border-radius: 22px; font-size: 16px; }
  .human h2 { font-size: 26px; }
  .human-team { width: min(280px, 80%); margin: 0 auto; }

  /* page 2: each table row becomes a small card */
  .cv-top { padding-top: 22px; }
  .sky-top--short { height: 300px; }
  .cv-head { flex-direction: column; gap: 10px; }
  .quote { width: auto; margin: 26px 0 0; }
  .quote-bubble { font-size: 24px; }
  .quote-reply { padding-left: 18px; }
  .cv-panel { margin-top: 44px; }
  .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 var(--line); }
  .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; }
  .kit { grid-template-columns: 1fr; }

  .foot { margin-top: 90px; }
  .foot-cta { flex-direction: column; align-items: stretch; gap: 16px; padding: 22px 18px; }
  .foot-cta p b { font-size: 20px; }
  .foot-cta p span { font-size: 16px; }
  .foot-field { flex-basis: auto; padding-left: 14px; }
  .foot-field span { font-size: 14px; }
  .foot-field b { padding: 17px 20px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 40px 0 30px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .top-btn { padding: 11px 12px; font-size: 14px; }
  .wordmark { font-size: 27px; }
  .facts b { font-size: 14px; }
  .fact-ico { width: 46px; height: 46px; }
}
