/* =========================================================
   index2.htm / index3.htm — the editorial layout on wide screens
   De gesloten telefoon (klein, staand) houdt de gestapelde layout;
   vanaf 620 px breedte — de opengeklapte telefoon, landscape, tablets
   — komt de expertisezin rechts te staan zoals op desktop.
   ========================================================= */

@media (min-width: 620px) {
  .masthead .content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    grid-template-rows: 1fr auto;
    justify-content: stretch;
    align-content: stretch;
    padding-top: clamp(70px, 12vh, 130px);
    padding-bottom: calc(var(--pad) + var(--safe-bottom) + 34px);
  }

  .aside {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 380px;
    margin: 0;
  }

  .statement {
    max-width: 34ch;
    margin-top: 18px;
    font-size: clamp(0.98rem, 1.1vw, 1.15rem);
    line-height: 1.6;
  }

  /* De labelregel is krimpbare breedte, zodat hij (op een kort scherm)
     nooit over de schakelaar rechts heen valt. */
  .eyebrow {
    display: inline-flex;
  }

  .name {
    grid-row: 2;
    grid-column: 1 / -1;
    align-self: end;
    width: auto;
  }

  .side-label {
    display: block;
  }

  .topbar__meta p:last-child {
    display: block;
  }
}

/* ---------- Kort scherm (telefoon in landscape) ---------- */

@media (min-width: 620px) and (max-height: 640px) {
  .masthead .content {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    padding-top: calc(var(--pad) + 22px);
    padding-bottom: calc(var(--pad) + min(var(--safe-bottom), 21px) + 26px);
  }

  .aside {
    max-width: 420px;
  }

  .statement {
    max-width: none;
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .linkedin {
    margin-top: 16px;
  }

  /* De naam meet zichzelf op breedte; op een kort scherm is er weinig
     hoogte, dus de maat wordt hier begrensd. */
  .hero {
    font-size: min(11vw, 26vh) !important;
  }

  .side-label {
    display: none;
  }
}
