/* Shared site chrome. Static markup is rendered by tools/site-chrome/header.mjs.
   Scope every rule so page themes cannot change the brand or navigation. */
.iv-site-header {
  --iv-header-height: 72px;
  position: sticky;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  padding: 0;
  background: #131317;
  border-bottom: 1px solid rgba(201, 168, 76, .18);
  color: #f2efe7;
  font-family: Inter, Arial, sans-serif;
}
.iv-site-header.iv-site-header--overlay { position: fixed; }
.iv-site-header .iv-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  min-height: calc(var(--iv-header-height) - 1px);
  margin: 0 auto;
  padding: 0 24px;
}
body a.iv-brand {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  color: #c9a84c;
  background: none;
  border: 0;
  border-radius: 0;
  font: 700 24px/1.2 'Playfair Display', Georgia, serif;
  letter-spacing: -.01em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}
body a.iv-brand span { color: #f2efe7; font-weight: 400; }
body a.iv-brand:hover { color: #c9a84c; background: none; }
.iv-site-header .iv-site-header__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.iv-site-header .iv-site-header__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: #c4c2ca;
  background: none;
  border: 0;
  border-radius: 0;
  font: 500 11px/1.4 Inter, Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}
.iv-site-header .iv-site-header__links a:hover { color: #f2efe7; }
.iv-site-header .iv-site-header__links a[aria-current="page"] {
  color: #c9a84c;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}
.iv-site-header .iv-site-header__actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.iv-site-header .iv-site-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 12px 22px;
  color: #17150d;
  background: #c9a84c;
  border: 1px solid transparent;
  border-radius: 2px;
  box-shadow: inset 0 2px 0 rgba(255, 245, 206, .3);
  font: 500 11px/1.4 Inter, Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.iv-site-header .iv-site-header__action:hover { background: #e8d48b; color: #17150d; }
.iv-site-header .iv-site-header__action--quiet {
  color: #f2efe7;
  background: transparent;
  border-color: rgba(201, 168, 76, .35);
  box-shadow: none;
}
.iv-site-header .iv-site-header__action--quiet:hover { color: #e8d48b; background: rgba(201, 168, 76, .06); border-color: #c9a84c; }
.iv-site-header .iv-site-header__email {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #aaa8b1;
  font: 400 12px/1.5 Inter, Arial, sans-serif;
  white-space: nowrap;
}
.iv-site-header .iv-site-header__email:empty { display: none; }
.iv-site-header .iv-site-header__toggle,
.iv-site-header .iv-site-menu__close {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 10px;
  color: #c9a84c;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, .3);
  border-radius: 2px;
  cursor: pointer;
}
.iv-site-header .iv-site-header__toggle { flex-direction: column; gap: 5px; }
.iv-site-header .iv-site-header__toggle span { display: block; width: 20px; height: 2px; background: currentColor; }
.iv-site-header .iv-site-menu__close { display: flex; font: 400 30px/1 Arial, sans-serif; }
.iv-site-header :is(a, button):focus-visible,
body .iv-brand:focus-visible { outline: 2px solid #e8d48b; outline-offset: 4px; box-shadow: none; }

/* Native dialog provides focus containment, Escape and an inert background. */
body.iv-site-menu-open { overflow: hidden; }
.iv-site-header .iv-site-menu {
  display: none;
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: min(400px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #131317;
  color: #f2efe7;
  border: 0;
  border-left: 1px solid rgba(201, 168, 76, .2);
}
.iv-site-header .iv-site-menu[open] { display: flex; flex-direction: column; }
.iv-site-menu::backdrop { background: rgba(0, 0, 0, .65); }
.iv-site-header .iv-site-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 var(--iv-header-height);
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(201, 168, 76, .18);
}
.iv-site-header .iv-site-menu__links { display: flex; flex-direction: column; padding: 20px 24px; margin: 0; }
.iv-site-header .iv-site-menu__links a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 0;
  color: #f2efe7;
  background: none;
  border-bottom: 1px solid rgba(201, 168, 76, .12);
  font: 400 17px/1.5 Inter, Arial, sans-serif;
  text-decoration: none;
}
.iv-site-header .iv-site-menu__links a:hover,
.iv-site-header .iv-site-menu__links a[aria-current="page"] { color: #c9a84c; }
.iv-site-header .iv-site-menu__foot { margin-top: auto; padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); }
.iv-site-header .iv-site-menu__foot .iv-site-header__action { width: 100%; }

/* Keep the existing app layout and remove its former decorative pseudo-logo. */
.iv-site-header[data-header-context="account"] + main.auth-page {
  min-height: calc(100dvh - 72px);
  padding-top: 32px;
}
.iv-site-header[data-header-context="account"] + main.auth-page::before { display: none; }
body .iv-auth-brand.iv-brand { margin-bottom: 24px; }

@media (max-width: 1100px) {
  .iv-site-header { --iv-header-height: 64px; }
  .iv-site-header .iv-site-header__inner { padding-inline: 20px; gap: 14px; }
  .iv-site-header .iv-site-header__links, .iv-site-header .iv-site-header__email { display: none; }
  .iv-site-header .iv-site-header__actions { gap: 10px; }
  .iv-site-header .iv-site-header__toggle { display: flex; }
  .iv-site-header .iv-site-header__action { padding-inline: 16px; }
  .iv-site-header[data-header-context="account"] + main.auth-page { min-height: calc(100dvh - 64px); padding-top: 28px; }
}
@media (max-width: 640px) {
  body a.iv-brand { font-size: 22px; }
  .iv-site-header .iv-site-menu { width: 100%; border-left: 0; }
  .iv-site-header .iv-site-menu__head { padding-inline: 20px; }
}
@media (max-width: 360px) {
  .iv-site-header .iv-site-header__inner { padding-inline: 16px; gap: 8px; }
  .iv-site-header .iv-site-header__actions { gap: 8px; }
  .iv-site-header .iv-site-header__action { padding-inline: 12px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .iv-site-header .iv-site-header__action, .iv-site-header .iv-site-header__links a { transition: none; }
}
