/* ─── Tabs ─────────────────────────────────────────────────────── */
.hzo-tabs__list {
    display: flex;
    gap: var(--space-xs);
    border-bottom: var(--border-1) solid var(--border);
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hzo-tabs__list::-webkit-scrollbar { display: none; }
/* Tabs can be authored as <button> or <a>. !important on color fights
   a:visited from per-client main.css when authored as <a>. The rest
   of the rule wins on class specificity alone. */
.hzo-tabs__tab {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    border-bottom: var(--border-2) solid transparent;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    padding: 14px var(--space-lg);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: var(--fw-500, 500);
    color: var(--text-muted) !important;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
    line-height: 1.2;
    flex-shrink: 0;
    white-space: nowrap;
}
.hzo-tabs__tab:hover { color: var(--brand-text) !important; }
.hzo-tabs__tab:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-focus) 35%, transparent); border-radius: 3px; }
.hzo-tabs__tab[disabled], .hzo-tabs__tab[aria-disabled="true"] { opacity: var(--opacity-disabled); pointer-events: none; }
.hzo-tabs__tab.is-active {
    color: var(--brand-text) !important;
    border-bottom-color: var(--brand-text);
    font-weight: var(--fw-600, 600);
}
/* Tab panels — switched by tabs.js (manual activation by default: arrow
   keys move focus between tabs; Enter/Space/click activates. Options via
   data-hzo-tabs-* attributes on the .hzo-tabs root; all default off). */
.hzo-tabs__panel { padding-top: var(--space-lg); }
.hzo-tabs__panel[hidden] { display: none; }
.hzo-tabs__panel:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }
.hzo-tabs__panel > :first-child { margin-top: 0; }
.hzo-tabs__panel > :last-child { margin-bottom: 0; }

/* ── Vertical variant — .hzo-tabs--vertical on the root, paired with
      aria-orientation="vertical" on the tablist so the arrow-key axis
      (tabs.js) matches the layout. Emitted by [hzo_tabs orientation=
      "vertical"]; pattern authors add both by hand. ── */
.hzo-tabs--vertical {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}
.hzo-tabs--vertical .hzo-tabs__list {
    flex-direction: column;
    flex-shrink: 0;
    border-bottom: 0;
    border-right: 1px solid var(--border);
    overflow-x: visible;
}
.hzo-tabs--vertical .hzo-tabs__tab {
    border-bottom: 0;
    border-left: 2px solid transparent;
    margin-bottom: 0;
    margin-right: -1px;
    text-align: left;
}
.hzo-tabs--vertical .hzo-tabs__tab.is-active { border-left-color: var(--brand-text); }
.hzo-tabs--vertical .hzo-tabs__panel {
    padding-top: 0;
    flex: 1;
    min-width: 0;
}
/* Narrow screens: stack the tab rail above the panel. The rail stays a
   COLUMN (not a row) so aria-orientation="vertical" — and the Up/Down
   arrow-key axis — remains truthful to the visual layout. */
@media (max-width: 767px) {
    .hzo-tabs--vertical { flex-direction: column; }
    .hzo-tabs--vertical .hzo-tabs__list {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .hzo-tabs--vertical .hzo-tabs__tab { margin-right: 0; }
    .hzo-tabs--vertical .hzo-tabs__panel { padding-top: var(--space-lg); }
}

/* Reduced motion: kill the tab-chrome transitions (panel switching itself
   is instant — tabs.js animates nothing). */
@media (prefers-reduced-motion: reduce) {
    .hzo-tabs__tab,
    .hzo-tabs__panel { transition: none; }
}
