/* Tablet and phone layout for chinatech.be.
   The pages use inline styles, so page gutters and section spacing are variables:
   var(--ct-gx,64px) for the left/right gutter and calc(Npx*var(--ct-vs,1)) for vertical section spacing.
   The classes below cover what a variable can't (menu, sticky columns, the review list). */
:root { --ct-gx: 64px; --ct-vs: 1; }
.ct-mobile-only { display: none; }

@media (max-width: 1024px) {
  :root { --ct-gx: 40px; --ct-vs: .8; }
}

@media (max-width: 640px) {
  :root { --ct-gx: 20px; --ct-vs: .6; }

  /* Menu: logo and newsletter button on one row, sections in a swipeable row below. */
  .ct-nav { padding-top: 12px !important; padding-bottom: 12px !important; min-height: 0 !important; gap: 10px 12px !important; }
  .ct-nav > :first-child { font-size: 22px !important; }
  .ct-nav-links { order: 3; flex: 1 0 100%; flex-wrap: nowrap !important; gap: 22px !important; overflow-x: auto; box-sizing: border-box; padding: 2px 32px 4px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } /* fade hints that the row swipes */
  .ct-nav-links::-webkit-scrollbar { display: none; }
  .ct-nav-links > * { flex: none; white-space: nowrap; }
  .ct-nav-cta { order: 2; }
  .ct-nav-cta > :first-child { display: none !important; } /* "Voor merken" moves into the section row */
  .ct-nav-cta > * { padding: 8px 12px !important; font-size: 13px !important; }
  .ct-mobile-only { display: inline; }

  /* iPhones zoom into form fields with text under 16px. */
  input, textarea, select { font-size: 16px !important; }

  /* Side columns that stick on desktop would slide over the text once stacked. */
  .ct-sticky { position: static !important; }

  /* Homepage review list: date, section and verdict on one line, title below. */
  .ct-list-row { grid-template-columns: auto 1fr auto !important; }
  .ct-list-row > :nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .ct-list-row > :nth-child(4) { grid-column: 3; grid-row: 1; }
}
