/* PS-PROFILE-HEADER-ONE-ROW-001: the one glass header row of the public profile pages (My Resume and My Story).
   Pete, Nov 12, 2026: "glass row header is approved" (pictures P-1108 to P-1113, Handoffs/evidence/header-ideas-mock-20261111/, with the mock's
   measured CSS in source/mock.css, whose numbers are kept here). The page is body.ps-one-row (base.html; only those pages load this sheet).

   One row: the PeerSlate logo at the left, the Glass Switch centered, then the theme toggle, Menu and Sign in (visible gaps of 10px and 10px).
   The second header row, the top bar's links, the green Ask Pete AI button and the profile strip are not drawn on these pages (site_header.html),
   so there is nothing to hide here. Scrolled, the header is live's own frosted glass (about 72% fill, 12px blur); this sheet does not touch it.
   Loads after site-header.css; every rule is anchored on body.ps-one-row #site-header, which outranks the header sheets' (1,1,x) rules. */

body.ps-one-row #site-header {
    --ps1-ink: rgb(11, 29, 42);
    --ps1-tab: rgb(55, 76, 90);
    --ps1-switch-rim: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(15, 23, 42, .12), inset 0 2px 4px -2px rgba(20, 38, 62, .22);
    --ps1-pill-bg: #fff;
    --ps1-pill-ink: var(--ps1-ink);
    --ps1-pill-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 1px 2px rgba(20, 38, 62, .16), 0 6px 12px -8px rgba(20, 38, 62, .45);
}
html[data-theme="dark"] body.ps-one-row #site-header {
    --ps1-ink: rgb(214, 220, 224);
    --ps1-tab: rgb(176, 194, 207);
    --ps1-switch-rim: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 2px 4px -2px rgba(0, 0, 0, .5);
    --ps1-pill-bg: rgb(62, 73, 88);
    --ps1-pill-ink: rgb(240, 244, 247);
    --ps1-pill-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(0, 0, 0, .25), 0 6px 12px -8px rgba(0, 0, 0, .7);
}

/* The row: logo | switch | tools. Equal outer columns keep the switch on the page's center line. */
body.ps-one-row #site-header .ps-top { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
body.ps-one-row #site-header .ps-top > .ps-top__lockup { grid-column: 1; justify-self: start; }
body.ps-one-row #site-header .ps-top > .ps-switch { grid-column: 2; align-self: center; }
body.ps-one-row #site-header .ps-top > .ps-top__tools { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 0; }

/* Theme toggle, Menu and Sign in are spaced by their VISIBLE edges: the theme circle is drawn about 3.5px inside its box and Menu's ring sits 1px
   outside its box, so 8px and 11px box gaps give equal 10px visible gaps (measured in the mock's check3.log). */
body.ps-one-row #site-header .ps-top__tools > .ps-theme-switch { margin-right: 8px; }
body.ps-one-row #site-header .ps-top__tools > .ps-top__right { gap: 11px; }

/* Menu now shows at every width (it carries the links the bar used to), as the pill in the pictures. Its size, ring and colors are the site's own
   (site-header.css and the Graphite sheet): the pictures draw exactly that, so only its display changes here. */
body.ps-one-row #site-header .ps-top__menu { display: inline-flex; }

/* The Glass Switch: a clear inset track and a white (dark: slate) pill on the current page. The pill is the picture's 32px; each tab's own box is
   the site's 44px tap target (a 6px margin each way folds the extra back out of the track), and the pill is painted by ::before inside it. */
body.ps-one-row #site-header .ps-switch {
    display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: transparent; box-shadow: var(--ps1-switch-rim);
}
body.ps-one-row #site-header .ps-switch__tab {
    position: relative; isolation: isolate; min-width: 96px; height: 44px; margin-block: -6px; display: flex; align-items: center; justify-content: center;
    padding: 0 18px; border-radius: 999px; font: 680 13px/1 Inter, system-ui, sans-serif; letter-spacing: .01em; color: var(--ps1-tab); text-decoration: none;
}
body.ps-one-row #site-header .ps-switch__tab::before {
    content: ""; position: absolute; inset: 6px 0; z-index: -1; border-radius: 999px;
}
body.ps-one-row #site-header .ps-switch__tab:hover { color: var(--ps1-ink); }
body.ps-one-row #site-header .ps-switch__tab[aria-current="page"] { color: var(--ps1-pill-ink); }
body.ps-one-row #site-header .ps-switch__tab[aria-current="page"]::before { background: var(--ps1-pill-bg); box-shadow: var(--ps1-pill-shadow); }
body.ps-one-row #site-header .ps-switch__tab:focus-visible { outline-offset: 0; border-radius: 999px; }

/* Menu. Under 744px (no switch in the header) it is the site's own phone sheet, as today, with the Profile group first. From 744px up Story and Resume
   are already in the header's switch, so Menu does not repeat them: it lists only what the header does not show (About and, signed in, the member's own
   My Resume), in a compact panel hung under the Menu button, as wide as its rows, with even padding and the header's own glass
   (site-header.css and the Graphite sheet give the frost fill and blur). */
body.ps-one-row #site-header .platform-menu__inner { display: grid; gap: .15rem; }   /* one gap between every row, whichever list it is in */
body.ps-one-row #site-header .platform-menu__group {
    margin: 0 4px; font: 700 12px/1.2 var(--ps-top-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ps-top-soon);
}
@media (min-width: 744px) {
    body.ps-one-row #site-header .platform-menu__group,
    body.ps-one-row #site-header .platform-menu__links:not(.platform-menu__links--more) { display: none; }
    body.ps-one-row #site-header .platform-menu:not([hidden]) {
        position: absolute; top: calc(var(--ps-public-header-height) + 6px); left: auto; right: var(--ps1-menu-right, calc(40px * var(--ps-scale)));
        z-index: 1210; display: block; box-sizing: border-box; width: max-content; min-width: 7rem; max-width: calc(100vw - 2 * var(--ps-public-nav-gutter));
        max-height: calc(100dvh - var(--ps-public-header-height) - 24px); overflow-y: auto; overscroll-behavior: contain;
        padding: 8px; border: 1px solid var(--ps-top-line); border-radius: 16px;
        box-shadow: 0 18px 40px -18px rgba(20, 38, 62, .38), 0 2px 6px rgba(20, 38, 62, .08);
    }
    html[data-theme="dark"] body.ps-one-row #site-header .platform-menu:not([hidden]) { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3); }
    body.ps-one-row #site-header .platform-menu__inner { padding: 0; }
    body.ps-one-row #site-header .platform-menu__links { display: grid; gap: .15rem; }
    body.ps-one-row #site-header .platform-menu__links a { padding: 13px 12px; border-bottom: 0; border-radius: 10px; white-space: nowrap; }
    body.ps-one-row #site-header .platform-menu__links a:hover,
    body.ps-one-row #site-header .platform-menu__links a:focus-visible { background: var(--lg-glass-faint, rgba(255, 255, 255, .05)); }
    /* The account rows (Public Resume, My PeerSlate, Settings, Sign out) are what the header's account button already opens, so the wide panel does not
       repeat them. Under 744px the phone sheet keeps its account group. */
    body.ps-one-row #site-header .platform-menu__account { display: none; }
}

/* 744 to 899: the switch yields the exact centering so nothing overlaps (logo and tools keep their widths). */
@media (max-width: 899px) {
    body.ps-one-row #site-header .ps-top { grid-template-columns: auto 1fr auto; }
    body.ps-one-row #site-header .ps-top > .ps-switch { justify-self: center; }
}
/* Phones (under 744px) keep the plain bar they have today: the bottom tab bar is their switch. */
@media (max-width: 743px) {
    body.ps-one-row #site-header .ps-switch { display: none; }
    body.ps-one-row #site-header .ps-top { grid-template-columns: auto 1fr; }
    body.ps-one-row #site-header .ps-top > .ps-top__tools { grid-column: 2; }
}

@media (forced-colors: active) {
    body.ps-one-row #site-header .ps-switch { border: 1px solid CanvasText; }
    body.ps-one-row #site-header .ps-switch__tab[aria-current="page"]::before { border: 1px solid Highlight; }
}
