/* Panel 1: Header and menu */
.site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-soft); }

/* Blue top strip (current cimule.com) */
.topbar { background: var(--c-blue); color: #fff; font-size: .8rem; letter-spacing: .06em; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.topbar a:hover, .topbar a[aria-current="page"] { text-decoration: underline; }
.topbar a:focus-visible { outline-color: var(--c-gold); }
.topbar__links ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.topbar__lang { gap: .35rem; font-weight: 600; white-space: nowrap; }
.topbar__lang .pe-7s-global { font-size: 1.15rem; }

/* Logo: hexagon mark + wordmark */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--c-blue); }
.logo:hover { text-decoration: none; color: var(--c-blue-dark); }
.logo__word { font-weight: 700; font-size: 1.45rem; letter-spacing: .02em; }

/* Main bar */
.mainbar__inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; padding-top: .5rem; padding-bottom: .5rem; }
.site-menu { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.site-menu__list { display: flex; flex-wrap: wrap; gap: 0 1.35rem; margin: 0; padding: 0; list-style: none; }
.site-menu__list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-ink); text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.site-menu__list a:hover { color: var(--c-blue); }
.site-menu__list a[aria-current="page"] { color: var(--c-blue); border-bottom-color: var(--c-blue); }
.site-menu__account { display: flex; align-items: center; gap: 1rem; }
.site-menu__login { font-size: .85rem; font-weight: 600; color: var(--c-ink); text-decoration: none; }
.site-menu__login:hover { color: var(--c-blue); text-decoration: underline; }
.site-menu__extra { display: none; }

/* Menu button (phones and tablets) */
.menu-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .8rem; background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--pill); font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.menu-toggle[hidden] { display: none; }
@media (min-width: 1200px) { .menu-toggle { display: none; } }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1199.98px) {
  /* The menu wraps below the logo; folded behind the Menu button from the first paint (9.2: folding it only once
     the script ran made the whole page jump on slow phones, CLS 0.6). Without the script, css/nojs.css (loaded
     in a <noscript>) shows it open and hides the button. */
  .mainbar__inner { flex-wrap: wrap; }
  .site-menu { width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding-bottom: 1rem; }
  .site-menu__list { flex-direction: column; }
  .site-menu__list a { width: 100%; min-height: 48px; border-bottom: 1px solid var(--c-soft); font-size: .85rem; }
  .site-menu__list a[aria-current="page"] { border-bottom-color: var(--c-soft); border-left: 3px solid var(--c-blue); padding-left: .6rem; }
  .site-menu__account { justify-content: space-between; padding: 1rem 0 .5rem; }
  .site-menu__extra { display: block; margin: .5rem 0 0; padding: 0; list-style: none; font-size: .9rem; }
  .site-menu__extra a { display: inline-flex; min-height: 44px; align-items: center; }
  .site-menu { display: none; }
  .site-header.is-open .site-menu { display: flex; }
  .topbar__links { display: none; }
  .topbar__inner { justify-content: flex-end; }
}
