/* ── Header: pill tabs and the design switch on one row ──
   flex-start keeps the switch level with the first row of tabs when they wrap.
   The tabs sit in the same spot on every Ronde page only because each page puts
   .rh-head in the same column: max-width 1120px with 32px side padding, 16px at
   760px and below. Keep new pages on that column. */
/* Always reserve the scrollbar's space. Otherwise pages too short to scroll
   (contact, resume) are 15px wider where scrollbars take room, and the
   centred column, tabs included, sits 7.5px further right than elsewhere. */
html { scrollbar-gutter: stable; }

.rh-head__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
}

/* min-width is the home page's "Classic design" switch, so a shorter label
   (Experience's "Appearance" toggle) keeps the same size and left edge. */
.rh-switch {
    display: inline-flex;
    flex-shrink: 0;
    min-width: 142px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--rh-line-strong);
    border-radius: 999px;
    font-size: 14px;
    transition: background .2s, transform .15s;
}

.rh-switch:hover { background: var(--rh-fill-hover); }
.rh-switch:active { transform: scale(.96); }

.rh-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rh-tabs a {
    display: inline-flex;
    height: 40px;
    align-items: center;
    padding: 0 22px;
    border: 1px solid var(--rh-ink);
    border-radius: 999px;
    font-size: 14px;
    transition: background .2s, transform .15s;
}

.rh-tabs a:hover:not([aria-current]) { background: var(--rh-fill-hover); }
.rh-tabs a:active { transform: scale(.96); }
/* The current page's tab is solid ink (black, or white in dark mode). */
.rh-tabs a[aria-current] { background: var(--rh-ink); color: var(--rh-bg); }

/* The switch drops its label before the six tabs would wrap onto a
   second row beside it (tablets in portrait). */
@media (max-width: 860px) {
    .rh-switch__text { display: none; }
    .rh-switch { width: 40px; min-width: 0; padding: 0; }
}

@media (max-width: 760px) {
    .rh-tabs a { padding: 0 16px; }
}
