/*
 * Site header v2 (2026-10-25). Loaded by inc/header-v2.php only when the v2 header is on.
 * Fixed, like the old bars, and with their heights (56 / 66 / 76px), because page paddings were
 * built around them. No backdrop-filter or transform on .gh: the language switcher's dropdown
 * inside it is position:fixed and would lose the window as its frame.
 * Logical properties, so RTL languages need no second sheet.
 */
.gh {
    --gh-ink: #16142b;
    --gh-body: #4b4866;
    --gh-muted: #6b6886;
    --gh-line: #ebe8f6;
    --gh-tint: #f5f3fe;
    --gh-violet: #4f3fc9;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    height: 56px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--gh-line);
    box-shadow: 0 6px 24px -18px rgba(22, 20, 43, .35);
    color: var(--gh-ink);
    font-family: var(--wp--preset--font-family--manrope, Manrope), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}
/* The site's gradient as a hairline on top, the same line the footer starts with. */
.gh::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2 55%, #f472b6);
}
.gh *, .gh *::before, .gh *::after, .gh-sheet *, .gh-sheet *::before, .gh-sheet *::after { box-sizing: border-box; }
.gh :where(ul, li, p), .gh-sheet :where(ul, li, p) { margin: 0; padding: 0; list-style: none; }
.gh a, .gh-sheet a { color: inherit; text-decoration: none; }
.gh :focus-visible, .gh-sheet :focus-visible { outline: 3px solid rgba(102, 126, 234, .55); outline-offset: 2px; border-radius: 10px; }
.gh button, .gh-sheet button { font-family: inherit; }

.gh-bar {
    display: flex; align-items: center; gap: 8px;
    height: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px;
}
.gh-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-inline-end: auto; }
.gh-mark {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #ffffff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 16px -8px rgba(102, 126, 234, .8);
}
.gh-word { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--gh-ink); }
.gh-word b {
    font-weight: 800;
    background: linear-gradient(90deg, #667eea, #764ba2); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Desktop menu (from 1181px; below that the sheet takes over). */
.gh-nav { display: none; }
.gh-menu { display: flex; align-items: center; gap: 2px; }
.gh-item { position: relative; }
.gh-link {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
    border: 0; border-radius: 10px; background: none; cursor: pointer;
    color: var(--gh-ink); font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.gh-link:hover, .gh-item.open > .gh-link { background: var(--gh-tint); }
.gh-link.is-here { color: var(--gh-violet); background: var(--gh-tint); }
.gh-link-quiet { color: var(--gh-body); font-size: 14.5px; }
.gh-chev { color: var(--gh-muted); transition: transform .15s ease; }
.gh-item.open > .gh-link .gh-chev { transform: rotate(180deg); }

/* Panels hang from their button; the top padding bridges the gap so hovering into them works. */
.gh-panel { position: absolute; top: 100%; inset-inline-start: -8px; padding-top: 12px; display: none; z-index: 2; }
.gh-end .gh-panel { inset-inline-start: auto; inset-inline-end: -8px; }
.gh-item.open > .gh-panel { display: block; }
@media (hover: hover) and (min-width: 1181px) {
    .gh-has-panel:hover > .gh-panel { display: block; }
    .gh-has-panel:hover > .gh-link .gh-chev { transform: rotate(180deg); }
}
.gh-panel-in {
    padding: 10px; border-radius: 18px; background: #ffffff; border: 1px solid var(--gh-line);
    box-shadow: 0 28px 60px -24px rgba(22, 20, 43, .38), 0 2px 6px rgba(22, 20, 43, .05);
}
.gh-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: 540px; }
.gh-panel-in.gh-grid-2 { width: 560px; }
.gh-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; width: 540px; }
.gh-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background-color .15s ease; }
.gh-opt:hover, .gh-opt[aria-current="page"] { background: var(--gh-tint); }
.gh-opt-logo { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--gh-tint); }
.gh-opt:hover .gh-opt-logo { background: #ffffff; box-shadow: 0 2px 8px rgba(22, 20, 43, .08); }
.gh-opt-text b { display: block; font-size: 14.5px; font-weight: 800; color: var(--gh-ink); }
.gh-opt-text small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--gh-muted); }
.gh-opt-sm { padding: 8px 10px; gap: 10px; }
.gh-opt-sm .gh-opt-logo { width: 34px; height: 34px; }
.gh-panel-foot { display: flex; gap: 8px; margin-top: 8px; padding: 10px 6px 2px; border-top: 1px solid var(--gh-line); }
.gh-panel-foot a { padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--gh-violet); }
.gh-panel-foot a:hover { background: var(--gh-tint); }
.gh-panel-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin-bottom: 6px; padding: 8px 12px 12px; border-bottom: 1px solid var(--gh-line);
}
.gh-panel-head b { font-size: 15px; font-weight: 800; }
.gh-panel-head span { font-size: 13.5px; font-weight: 700; color: var(--gh-violet); }
.gh-list { display: grid; width: 240px; }
.gh-list a { padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 700; }
.gh-list a:hover, .gh-list a[aria-current="page"] { background: var(--gh-tint); }
.gh-list .gh-quiet { font-size: 13.5px; font-weight: 600; color: var(--gh-muted); padding-block: 7px; }
.gh-sep { display: block; height: 1px; margin: 6px 8px; background: var(--gh-line); }

.gh-right { display: flex; align-items: center; gap: 6px; flex: none; }
.gh-right > .gh-item { display: none; }
.gh-burger {
    display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
    border: 1px solid var(--gh-line); border-radius: 12px; background: #ffffff; color: var(--gh-ink); cursor: pointer;
}
.gh-burger:hover { background: var(--gh-tint); }

/* The language switcher is the site's own component; only its look changes here.
   Three classes deep to win over its inline !important rules (incl. the RTL one). */
.gh .gh-right .sg-lang-desktop { position: relative !important; top: auto !important; right: auto !important; left: auto !important; z-index: 3 !important; }
.gh .gh-right .sg-lang-btn {
    padding: 0 12px; height: 40px; gap: 8px; border-radius: 10px;
    background: #ffffff; color: var(--gh-ink); border: 1px solid var(--gh-line); box-shadow: none;
    font-family: inherit; font-size: 14px; font-weight: 700;
}
.gh .gh-right .sg-lang-btn:hover { transform: none; background: var(--gh-tint); box-shadow: none; }
.gh .gh-right .sg-lang-btn img { border-color: var(--gh-line); }
.gh .gh-right .sg-lang-mobile-btn {
    margin: 0; height: 40px; padding: 0 10px; border: 1px solid var(--gh-line); border-radius: 10px;
    background: #ffffff; color: var(--gh-ink); font-family: inherit; font-weight: 700;
}
.gh .gh-right .sg-lang-mobile-btn img { border-color: var(--gh-line); }

/* The old mobile menu (mobile-menu.php) printed this top padding inside the page, after every
   stylesheet; older pages rely on it. "html body" wins over professional-nav.css, which loads later. */
@media screen and (max-width: 767px) {
    html body { padding-top: 56px !important; }
}
@media (min-width: 768px) {
    .gh { height: 66px; }
}
@media (min-width: 1181px) {
    .gh { height: 76px; }
    .gh-logo { margin-inline-end: 20px; }
    .gh-nav { display: block; margin-inline-end: auto; }
    .gh-right > .gh-item { display: block; }
    .gh-burger { display: none; }
}

/* Phone and tablet menu: a sheet from the side, tiles with the official logos first. */
.gh-scrim {
    position: fixed; inset: 0; z-index: 100000; background: rgba(22, 20, 43, .45);
    opacity: 0; transition: opacity .25s ease;
}
.gh-sheet {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 100001;
    display: flex; flex-direction: column; width: min(400px, 92vw);
    background: #ffffff; color: var(--gh-ink, #16142b);
    box-shadow: -24px 0 60px -20px rgba(22, 20, 43, .45);
    font-family: var(--wp--preset--font-family--manrope, Manrope), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 600; line-height: 1.3;
    transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
[dir="rtl"] .gh-sheet { transform: translateX(-100%); }
.gh-scrim[hidden], .gh-sheet[hidden] { display: none; }
html.gh-open .gh-scrim { opacity: 1; }
html.gh-open .gh-sheet { transform: none; }
html.gh-open, html.gh-open body { overflow: hidden; }
.gh-sheet { --gh-ink: #16142b; --gh-body: #4b4866; --gh-muted: #6b6886; --gh-line: #ebe8f6; --gh-tint: #f5f3fe; --gh-violet: #4f3fc9; }
.gh-sheet-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding-inline: 16px; border-bottom: 1px solid var(--gh-line); flex: none; }
.gh-close {
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: 12px; background: var(--gh-tint); color: var(--gh-ink); cursor: pointer;
}
.gh-sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 28px; }
.gh-sec { margin: 22px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--gh-muted); }
.gh-sec:first-child { margin-top: 0; }
.gh-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gh-tile {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 9px;
    border: 1px solid var(--gh-line); border-radius: 14px; background: #ffffff;
    font-size: 12.5px; font-weight: 700; color: var(--gh-ink); text-align: center;
}
.gh-tile:active { background: var(--gh-tint); }
.gh-tile.is-here { border-color: #c7bff5; background: var(--gh-tint); }
.gh-tile-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gh-tint); }
.gh-tile.is-here .gh-tile-logo { background: #ffffff; }
.gh-rows { border: 1px solid var(--gh-line); border-radius: 14px; overflow: hidden; }
.gh-rows li + li { border-top: 1px solid var(--gh-line); }
.gh-rows a { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; font-size: 15px; font-weight: 700; }
.gh-rows a::after { content: "›"; color: var(--gh-muted); font-size: 18px; line-height: 1; }
[dir="rtl"] .gh-rows a::after { content: "‹"; }
.gh-rows a[aria-current="page"] { color: var(--gh-violet); background: var(--gh-tint); }
.gh-api {
    display: block; margin-top: 22px; padding: 14px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, .1), rgba(118, 75, 162, .1)); border: 1px solid #ddd6fe;
}
.gh-api b { display: block; font-size: 15px; font-weight: 800; }
.gh-api small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--gh-muted); }
.gh-api-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gh-api-chips a { display: inline-block; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--gh-line); font-size: 12.5px; font-weight: 700; color: var(--gh-body); }
.gh-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 22px; }
.gh-legal a { font-size: 13px; font-weight: 600; color: var(--gh-muted); }

@media (prefers-reduced-motion: reduce) {
    .gh *, .gh-sheet, .gh-scrim { transition: none !important; }
}
@media print {
    .gh, .gh-sheet, .gh-scrim { display: none !important; }
}
