/* Sitewide header — aligned to Corzo 1320px content column; no desktop overlap. */

:root {
  --oda-ink: #1c2128;
  --oda-ink-soft: #4a5560;
  --oda-line: #d8dde3;
  --oda-line-soft: #e8ecf0;
  --oda-surface: #ffffff;
  --oda-accent: #1f6b4a;
}

.oda-header {
  position: sticky;
  top: 0;
  z-index: 110;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--oda-line-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}

.oda-header *,
.oda-header *::before,
.oda-header *::after {
  box-sizing: border-box;
  float: none !important;
}

.oda-header a {
  position: static !important;
}

.oda-header [hidden] {
  display: none !important;
}

/* Match Corzo .corzo-container (1320px / 20px pad) so logo lines up with page content. */
.oda-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.oda-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.oda-logo-link {
  flex: 0 0 auto;
  line-height: 0;
}

.oda-logo {
  height: 32px;
  width: auto;
  display: block;
  max-width: none;
}

.oda-nav {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--oda-ink-soft);
  min-width: 0;
}

.oda-nav a {
  text-decoration: none !important;
  color: var(--oda-ink-soft) !important;
  white-space: nowrap !important;
  flex: 0 0 auto;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  word-break: normal !important;
}

.oda-nav a:hover {
  color: var(--oda-accent) !important;
}

.oda-nav-sep {
  color: #c5ccd4;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1;
  user-select: none;
  flex: 0 0 auto;
}

.oda-header-actions {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
}

.oda-header-actions .oda-nav-reclaim {
  color: var(--oda-accent) !important;
  border: 1px solid var(--oda-accent);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.oda-header-actions .oda-nav-reclaim:hover {
  color: #18563b !important;
  border-color: #18563b;
}

.oda-header a.oda-yt {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #cc0000;
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex: 0 0 auto;
  line-height: 1.2 !important;
}

.oda-header a.oda-yt:hover {
  background: #a80000;
  color: #fff !important;
}

.oda-header-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.oda-burger {
  width: 42px;
  height: 38px;
  border: 1px solid var(--oda-line);
  border-radius: 8px;
  background: var(--oda-surface);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.oda-burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--oda-ink);
}

.oda-mobile-menu {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--oda-line-soft);
  background: var(--oda-surface);
}

.oda-mobile-menu a {
  padding: 13px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--oda-ink-soft) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--oda-line-soft);
}

.oda-mobile-menu a:hover {
  color: var(--oda-accent) !important;
  background: #f7f9fa;
}

@media (min-width: 900px) {
  .oda-nav {
    display: flex;
  }

  .oda-header-actions {
    display: flex;
  }

  .oda-header-mobile {
    display: none !important;
  }

  .oda-mobile-menu {
    display: none !important;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .oda-header-left {
    gap: 14px;
  }

  .oda-nav {
    gap: 8px;
    font-size: 0.82rem;
  }

  .oda-header-actions {
    gap: 10px;
  }

  .oda-header-actions .oda-nav-reclaim,
  .oda-header a.oda-yt {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

html.admin-bar .oda-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  html.admin-bar .oda-header {
    top: 46px;
  }
}
