/* GPEX shared shell. The same header, typography and focus treatment on every page. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --gpex-header-height: 76px;
  --ink: #12243b;
  --navy: #122b48;
  --slate: #65748a;
  --line: #e2e8f0;
  --paper: #f5f7fa;
  --gpex-font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --gpex-focus: #587fa8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--gpex-header-height) + 24px); scrollbar-gutter: stable; }
body {
  margin: 0;
  padding-top: var(--gpex-header-height);
  font-family: var(--gpex-font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, summary, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gpex-focus); outline-offset: 4px; }
::selection { color: #fff; background: #406283; }
[hidden] { display: none !important; }

.gpex-skip-link {
  position: fixed;
  z-index: 1005;
  top: 12px;
  left: 20px;
  transform: translateY(-160%);
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.gpex-skip-link:focus { transform: translateY(0); }
.gpex-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--gpex-header-height);
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(207, 217, 229, .72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  isolation: isolate;
  view-transition-name: gpex-header;
}
.gpex-header-inner {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 56px);
}
.gpex-brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 50px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
}
.gpex-brand img { display: block; width: 45px; height: 45px; transition: transform .25s ease; }
.gpex-brand:hover img { transform: translateY(-2px); }
.gpex-primary-nav { display: flex; align-items: center; gap: 5px; }
.gpex-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  border-radius: 8px;
  color: #25344b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.gpex-nav-link:hover { color: #10243d; background: #f1f4f8; }
.gpex-nav-link[aria-current="page"] { color: #122b48; background: #eaf0f7; font-weight: 700; }
.gpex-header-end { display: flex; align-items: center; justify-self: end; }
.gpex-about-link { padding-inline: 12px; }
.gpex-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid #e0e7ef;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.gpex-nav-toggle svg { width: 20px; height: 20px; }
.gpex-nav-toggle .gpex-close-icon { display: none; }
.gpex-nav-toggle[aria-expanded="true"] .gpex-menu-icon { display: none; }
.gpex-nav-toggle[aria-expanded="true"] .gpex-close-icon { display: block; }
.gpex-mobile-about { display: none; }

/* Native page navigation stays intact. Supporting browsers keep the shared
   header in place and cross-fade the page beneath it. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: gpex-page-out .16s ease both; }
::view-transition-new(root) { animation: gpex-page-in .22s ease both; }
::view-transition-group(gpex-header) { animation-duration: 0s; }
::view-transition-old(gpex-header) { display: none; }
::view-transition-new(gpex-header) { animation: none; mix-blend-mode: normal; }
@keyframes gpex-page-out { to { opacity: 0; } }
@keyframes gpex-page-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1100px) {
  .gpex-nav-link { padding-inline: 12px; }
  .gpex-header-inner { padding-inline: 24px; }
}
@media (max-width: 900px) {
  :root { --gpex-header-height: 68px; }
  .gpex-header-inner { grid-template-columns: 1fr auto; padding-inline: 20px; }
  .gpex-brand { width: 42px; height: 44px; }
  .gpex-brand img { width: 40px; height: 40px; }
  .gpex-header-end { gap: 12px; }
  .gpex-header-end > .gpex-about-link { display: none; }
  .gpex-nav-toggle { display: inline-flex; }
  .gpex-primary-nav {
    position: absolute;
    top: calc(var(--gpex-header-height) - 1px);
    inset-inline: 0;
    display: none;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(13, 34, 57, .06);
    background: rgba(255, 255, 255, .99);
  }
  .gpex-header[data-menu-open="true"] .gpex-primary-nav { display: flex; flex-direction: column; }
  .gpex-primary-nav .gpex-nav-link { justify-content: flex-start; min-height: 44px; padding-inline: 14px; }
  .gpex-mobile-about { display: inline-flex; }
  /* A useful navigation fallback remains available if scripting is disabled. */
  html:not(.gpex-js) .gpex-primary-nav { display: flex; position: static; grid-column: 1 / -1; flex-wrap: wrap; box-shadow: none; padding: 4px 0 12px; }
  html:not(.gpex-js) .gpex-header { position: static; height: auto; }
  html:not(.gpex-js) .gpex-header-inner { min-height: 68px; }
  html:not(.gpex-js) body { padding-top: 0; }
  html:not(.gpex-js) .gpex-nav-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .gpex-brand img, .gpex-nav-link { transition: none; }
  ::view-transition-old(*), ::view-transition-new(*), ::view-transition-group(*) { animation: none !important; }
}
@media print {
  body { padding-top: 0; }
  .gpex-header { position: static; height: 64px; backdrop-filter: none; background: #fff; }
  .gpex-nav-toggle, .gpex-skip-link { display: none; }
}
