/* ==========================================================================
   Header B — three-row magazine header
   ========================================================================== */

/* ── Shared reset / base for Header B ─────────────────────────────────────── */

.df-header--b {
  background: var(--df-header-bg, #ffffff);
  border-bottom: 1px solid var(--df-border, rgba(0, 0, 0, 0.08));
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}

[data-theme="dark"] .df-header--b {
  background: var(--df-header-bg-dark, #0d0d0d);
}

/* ── Row 1: top-bar ────────────────────────────────────────────────────────── */

.df-hb__topbar {
  border-bottom: 1px solid var(--df-border, rgba(0, 0, 0, 0.08));
}

.df-hb__topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
  gap: 1rem;
}

/* Social icons — left column */
.df-hb__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
}

.df-hb__social-link {
  display: flex;
  align-items: center;
  color: var(--df-muted, #888888);
  transition: color 0.2s;
  line-height: 1;
}

.df-hb__social-link:hover {
  color: var(--df-body, #1a1a1a);
}

[data-theme="dark"] .df-hb__social-link:hover {
  color: var(--df-white, #f4f1ea);
}

.df-hb__social-link svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Logo — centre column (inherits df-header__logo styling) */
.df-hb__logo {
  justify-self: center;
  text-align: center;
}

.df-hb__logo a {
  text-decoration: none;
}

/* Utility strip — right column */
.df-hb__utility {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}

.df-hb__util-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--df-muted, #888888);
  font-family: var(--df-font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.25rem 0.4rem;
  transition: color 0.2s;
}

.df-hb__util-link:hover {
  color: var(--df-body, #1a1a1a);
}

[data-theme="dark"] .df-hb__util-link {
  color: var(--df-muted);
}

[data-theme="dark"] .df-hb__util-link:hover {
  color: var(--df-white);
}

.df-hb__util-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Reuse the existing search-toggle & hamburger styles from mega-menu.css;
   they are keyed to .df-header__search-toggle and .df-header__hamburger
   so they apply to Header B automatically. */

/* ── Row 2: main nav ──────────────────────────────────────────────────────── */

.df-hb__nav {
  border-bottom: 1px solid var(--df-border, rgba(0, 0, 0, 0.08));
}

.df-hb__nav .df-container {
  display: flex;
  justify-content: center;
}

.df-hb__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.df-hb__nav-item {
  position: relative;
}

.df-hb__nav-link {
  display: block;
  padding: 0.85rem 1.1rem;
  font-family: var(--df-font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--df-body, #1a1a1a);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.df-hb__nav-link:hover {
  color: var(--df-gold, #c9a96e);
  border-bottom-color: var(--df-gold, #c9a96e);
}

[data-theme="dark"] .df-hb__nav-link {
  color: var(--df-light, rgba(245, 244, 240, 0.85));
}

[data-theme="dark"] .df-hb__nav-link:hover {
  color: var(--df-gold, #c9a96e);
}

/* ── Row 3: sub-nav ───────────────────────────────────────────────────────── */

.df-hb__subnav {
  border-bottom: 1px solid var(--df-border, rgba(0, 0, 0, 0.06));
  background: var(--df-soft-bg, rgba(0, 0, 0, 0.018));
}

[data-theme="dark"] .df-hb__subnav {
  background: rgba(255, 255, 255, 0.03);
}

.df-hb__subnav .df-container {
  display: flex;
  justify-content: center;
}

.df-hb__subnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.df-hb__subnav-link {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--df-font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--df-muted, #888888);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
}

.df-hb__subnav-link::before {
  content: '—';
  margin-right: 0.6rem;
  opacity: 0.4;
  font-size: 0.6rem;
}

.df-hb__subnav-item:first-child .df-hb__subnav-link::before {
  display: none;
}

.df-hb__subnav-link:hover {
  color: var(--df-body, #1a1a1a);
}

[data-theme="dark"] .df-hb__subnav-link {
  color: var(--df-muted);
}

[data-theme="dark"] .df-hb__subnav-link:hover {
  color: var(--df-light);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media ( max-width: 900px ) {
  .df-hb__topbar-inner {
    height: 52px;
  }

  .df-hb__util-link .df-hb__util-label {
    display: none;
  }

  .df-hb__util-icon {
    display: flex;
  }
}

@media ( max-width: 680px ) {
  .df-hb__social {
    display: none;
  }

  .df-hb__topbar-inner {
    grid-template-columns: auto 1fr auto;
  }

  .df-hb__logo {
    justify-self: center;
  }

  .df-hb__nav-link {
    padding: 0.7rem 0.7rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }
}

@media ( max-width: 480px ) {
  .df-hb__nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .df-hb__nav .df-container {
    justify-content: flex-start;
    min-width: max-content;
    padding-left: var(--df-container-pad, 1.25rem);
    padding-right: var(--df-container-pad, 1.25rem);
  }

  .df-hb__subnav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .df-hb__subnav .df-container {
    justify-content: flex-start;
    min-width: max-content;
  }
}
