@import url("/orbita.css");
@import url("/language-flags.css");

/* The same header is used by the landing page, member pages and exercise library. */
@media screen {
  body > header#vect-header {
    display:block; position:relative; z-index:20; min-height:0; margin:0; padding:0;
    background:var(--orb-canvas); color:var(--orb-text);
    border:0; border-bottom:1px solid var(--orb-line); box-shadow:none;
    font-family:"Segoe UI",Helvetica,Arial,sans-serif;
  }
  #vect-header *, #vect-header *::before, #vect-header *::after {box-sizing:border-box}
  #vect-header [hidden] {display:none!important}
  #vect-header .header-row {
    display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap;
    gap:clamp(12px,2vw,32px); width:min(calc(100% - 2 * clamp(16px,5vw,80px)),76rem);
    min-height:68px; padding:0; margin:0 auto;
  }
  #vect-header .brand {
    display:inline-flex; align-items:center; flex:0 0 auto; gap:10px; min-height:44px;
    padding:0; margin:0; color:var(--orb-text); text-decoration:none; background:transparent;
  }
  #vect-header .brand::before, #vect-header .brand::after {display:none; content:none}
  #vect-header .brand img {display:block; width:38px; height:38px}
  #vect-header .brand span {font-size:24px; line-height:1; letter-spacing:-.045em; font-weight:760}
  #vect-header .section-nav {
    display:flex; flex:0 1 auto; align-items:center; justify-content:center; flex-wrap:nowrap;
    width:auto; margin:0; padding:0; gap:clamp(4px,1.5vw,24px); border:0;
  }
  #vect-header .section-nav a, #vect-header .account {
    display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:6px 8px;
    color:var(--orb-text); border:0; border-radius:8px; background:none; box-shadow:none;
    text-decoration:none; white-space:nowrap; font-size:15px; font-weight:600; line-height:1.3;
  }
  #vect-header .section-nav a:is(:hover,[aria-current=page]), #vect-header .account:is(:hover,[aria-current=page]) {
    background:var(--orb-tint); color:var(--orb-action);
  }
  #vect-header .tools {display:flex; align-items:center; gap:6px; margin:0; flex:0 0 auto}
  #vect-header .tools .account {gap:6px; border:1px solid var(--orb-line); border-radius:999px; padding:6px 13px; font-size:14px}
  #vect-header .account svg {display:block; flex:none; width:18px; height:18px}
  #vect-header :is(.sr-only,.language>span) {position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
  #vect-header .language {display:inline-flex; position:relative; align-items:center; width:auto; margin:0}
  #vect-header .language::after {display:none}
  #vect-header .language select {
    appearance:auto; margin:0; width:auto; min-width:0; max-width:118px; min-height:44px;
    padding:4px; cursor:pointer; color:var(--orb-text); background:var(--orb-canvas);
    border:0; font-size:14px; font-weight:600; border-radius:6px;
  }
  #vect-header .vect-options {position:relative; margin:0; padding:0; border:0; color:inherit; background:none}
  #vect-header :is(.vect-options>summary,.ma-bell) {
    display:inline-flex; align-items:center; justify-content:center; position:relative; cursor:pointer;
    margin:0; padding:0; width:44px; min-width:44px; height:44px; min-height:44px;
    border:1px solid var(--orb-line); border-radius:50%; background:transparent; color:var(--orb-text);
  }
  #vect-header .vect-options>summary {list-style:none}
  #vect-header .vect-options>summary::-webkit-details-marker {display:none}
  #vect-header .vect-options>summary::after {content:none}
  #vect-header .ma-bell-label {display:none}
  #vect-header .ma-bell-count {position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 3px; line-height:18px; font-size:11px}
  #vect-header .vect-options-panel {
    display:grid; position:absolute; z-index:30; inset:auto 0 auto auto; top:calc(100% + 8px);
    width:17.5rem; max-height:65vh; overflow:auto; overscroll-behavior:contain;
    gap:4px; padding:10px; color:var(--orb-text); background:var(--orb-panel);
    border:1px solid var(--orb-line); border-radius:12px; box-shadow:0 10px 30px #160d292e;
  }
  #vect-header .vect-options:not([open])>.vect-options-panel {display:none}
  #vect-header .theme-picker {display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%;margin:0;padding:4px 6px;color:inherit}
  #vect-header .theme-picker select {min-height:44px; width:auto; margin:0; padding:4px 8px;color:inherit;background:var(--orb-raised);border:1px solid var(--orb-line);border-radius:6px}
  #vect-header .vect-options-panel .site-admin-nav {width:100%; color:inherit}
  #vect-header .vect-options-panel .site-admin-nav nav {position:static; width:100%; max-width:100%; max-height:none; margin:0; box-shadow:none; border:0}
  #vect-header .vect-options-panel :is(.vect-chat-shortcut,.site-admin-nav>summary) {display:flex; justify-content:flex-start; align-items:center;min-height:44px; margin:0; padding:8px; color:inherit; border:0; text-decoration:none; font-size:14px}
  #vect-header .vect-options-panel :is(a,summary):hover, #vect-header .vect-options[open]>summary {color:var(--orb-action);background:var(--orb-tint)}
  #vect-header :focus-visible {outline:var(--orb-focus); outline-offset:2px}
  body.client-shell>#client-nav-trigger:not([hidden]) {display:flex; align-items:center; gap:6px; margin:8px 16px; padding:0 12px; color:var(--orb-text); background:var(--orb-panel); border:1px solid var(--orb-line); border-radius:8px}
}
@media screen and (min-width:63rem) {
  #vect-header .vect-options>summary {width:auto; gap:6px; padding:0 12px; border-radius:999px}
  #vect-header .vect-options>summary [data-header-tools] {position:static; width:auto; height:auto; overflow:visible; clip-path:none; font-size:14px; font-weight:600}
}
@media screen and (max-width:62rem) {
  #vect-header .header-row {flex-wrap:wrap; min-height:0; gap:0 4px; padding-top:5px}
  #vect-header .section-nav {order:1; width:100%; justify-content:space-between; border-top:1px solid var(--orb-line); margin-top:4px; gap:0}
  #vect-header .section-nav a {flex:0 1 auto}
}
@media screen and (max-width:32rem) {
  #vect-header .header-row {width:calc(100% - 20px)}
  #vect-header .brand {gap:5px}
  #vect-header .brand img {width:30px;height:30px}
  #vect-header .brand span {font-size:20px}
  #vect-header .section-nav a {font-size:13px; padding:5px}
  #vect-header .tools {gap:2px}
  #vect-header .tools .account {padding:0; width:44px; height:44px}
  #vect-header .account span {position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
  #vect-header .language select {font-size:13px; max-width:90px; padding-inline:0}
  #vect-header .vect-options-panel {width:min(16rem,calc(100vw - 66px))}
}
@media screen and (max-width:24rem) {
  #vect-header .language select {width:56px; color:transparent; appearance:none}
  #vect-header .language select option {color:var(--orb-text); background:var(--orb-canvas)}
  #vect-header .language[data-short]::after {
    content:attr(data-short); display:block; position:absolute; inset:50% 0 auto;
    transform:translateY(-50%); width:auto; height:auto; border:0; pointer-events:none;
    text-align:center; font:600 13px/1.2 "VECT Language Flags","Segoe UI",sans-serif; color:var(--orb-text);
  }
}
@media print {#vect-header, #client-nav-trigger {display:none!important}}

.product-directory {padding-block:clamp(2rem,6vw,5rem)}
.product-directory h2 {margin:0 0 1.2rem;font-size:clamp(1.5rem,4vw,2.5rem)}
.product-directory ul {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 2rem}
.product-directory li {border-block-start:1px solid var(--orb-line)}
.product-directory a {display:grid;grid-template-columns:1.6rem 1fr;gap:.5rem 1rem;align-items:start;padding:1rem .25rem;color:inherit;text-decoration:none}
.product-directory svg {color:var(--product-accent);stroke-linecap:round;stroke-linejoin:round}
.product-directory strong,.product-directory a span span {display:block}
.product-directory strong {font-size:1.1rem;margin-bottom:.25rem}
.product-directory small {grid-column:2;color:var(--orb-muted,currentColor)}
.product-directory a:is(:hover,:focus-visible) strong {text-decoration:underline;text-underline-offset:.2em}
.product-caption {margin:0;color:var(--orb-muted,currentColor)}
@media (max-width:42rem){.product-directory ul{grid-template-columns:minmax(0,1fr)}}
