/* cdob-nav.css v0.4.0 | 2026-07-03 | Generated by Claude, session CDOB-S11
   (v0.3.1 2026-07-03 CDOB-S9; v0.3.0 2026-07-03 CDOB-S8; v0.2.0 2026-07-01 CDOB-S5)
   v0.4.0 (CDOB-S11): utility bar left cluster (.cdob-utility__left) groups the
   network menu + a square single-color social row (.cdob-social); __inner wraps
   on narrow viewports. Social-link focus ring comes from the cdob-core dark
   -context list (.cdob-utility added there; flame 4.69:1 on ink).
   Utility bar + main navigation for cdob-starter-theme.
   All colors reference the cdob token layer (cdob-core.css). Verified pairs
   (sRGB-linearized): paper on ink 16.48 | on-dark-soft on ink 10.26 |
   navy on paper 10.40 | ink on flame 4.69 | ghost border 0.55 on ink 5.86.
   Focus outlines come from cdob-core (:focus-visible; flame on dark contexts,
   flame outline on paper submenu clears UI 3:1 at 3.51).
   v0.3.0 (CDOB-S8, Phase G nav polish):
   - 44px tap-target floor (--cdob-tap-min) on main nav links, submenu links,
     utility links, and the mobile toggle (WCAG 2.5.5).
   - Desktop submenu touch/keyboard disclosure: .cdob-subnav-toggle button
     (injected by js/cdob-nav.js v0.3.0) replaces the pure-CSS caret on
     parent links; li.is-sub-open shows the panel alongside the existing
     :hover / :focus-within behaviors. Caret triangle uses paper on the ink
     header (decorative; state is exposed via aria-expanded).
   - Toggle buttons are display:none below 900px where submenus render
     expanded inline.
   v0.3.1 (CDOB-S9, single-line header fix): the five injected 44px toggles
     added ~220px inside the 1080px wrap and wrapped the nav below the site
     title. Toggles compact to 24px wide on fine pointers (WCAG 2.5.8 AA
     >=24px; 44px height kept; full 44px width restored under
     (pointer: coarse)) and overlap the parent link's right padding via
     negative margin; list gap 4->2px; link padding 12->10px; Support keeps
     14px button padding. Effective parent-link target stays >=47px wide. */

.cdob-utility {
  background: var(--cdob-ink);
  font-size: var(--fs-400);
}
.cdob-utility__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 20px;
}
.cdob-utility__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}
.cdob-utility__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cdob-tap-min); /* tap floor; bar height comes from links */
  color: var(--cdob-on-dark-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cdob-utility__list a:hover {
  color: var(--cdob-paper);
}

/* Utility bar left cluster: network menu + social icon row. */
.cdob-utility__left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Square, single-color social icons. Color inherits the utility bar's
   on-dark-soft; the glyph is fill: currentColor so it tracks link + hover. */
.cdob-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.cdob-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px; /* fine-pointer compact; > WCAG 2.5.8 AA 24px. Coarse -> 44px below. */
  min-height: var(--cdob-tap-min); /* matches the bar height set by text links */
  color: var(--cdob-on-dark-soft);
}
.cdob-social__link:hover {
  color: var(--cdob-paper);
}
.cdob-social__icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Touch pointers get the full 44px square hit area (WCAG 2.5.5). */
@media (pointer: coarse) {
  .cdob-social__link {
    min-width: var(--cdob-tap-min);
  }
}

.cdob-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cdob-nav-toggle {
  display: none;
  background: transparent;
  color: var(--cdob-paper);
  border: 2px solid var(--cdob-ui-border-dark-strong);
  font: inherit;
  font-size: var(--fs-400);
  font-weight: 600;
  min-height: var(--cdob-tap-min);
  min-width: var(--cdob-tap-min);
  padding: 8px 14px;
  cursor: pointer;
}

.cdob-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.cdob-nav__list > li {
  position: relative;
}
.cdob-nav__list > li.menu-item-has-children {
  display: flex;
  align-items: center;
}
.cdob-nav__list a {
  display: flex;
  align-items: center;
  min-height: var(--cdob-tap-min); /* WCAG 2.5.5 tap floor */
  color: var(--cdob-paper);
  text-decoration: none;
  font-size: var(--fs-400);
  font-weight: 600;
  padding: 10px 10px;
}
.cdob-nav__list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--cdob-paper);
}

/* Submenu disclosure button (injected by cdob-nav.js). The caret that lived
   on the parent link ::after in v0.2.0 moved onto this button so it is an
   operable control; state is carried by aria-expanded. */
.cdob-subnav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px; /* fine-pointer compact; WCAG 2.5.8 AA >=24px. Coarse override below. */
  min-height: var(--cdob-tap-min);
  margin-left: -10px; /* overlaps the parent link's right padding; link target stays >=47px wide */
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.cdob-subnav-toggle::before {
  content: "";
  display: block;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--cdob-paper);
  transition: transform 0.15s ease;
}
.cdob-subnav-toggle[aria-expanded="true"]::before {
  transform: rotate(180deg);
}

/* Touch pointers keep the 44px square (WCAG 2.5.5 floor, S8); the wider
   button overlaps further into the link padding so the row stays as compact
   as the hit area allows. */
@media (pointer: coarse) {
  .cdob-subnav-toggle {
    min-width: var(--cdob-tap-min);
    margin-left: -14px;
  }
}

/* Second level: light panel; opens on hover, keyboard (:focus-within), or
   the disclosure button (li.is-sub-open). */
.cdob-nav__list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--cdob-paper);
  border: 1px solid var(--cdob-ui-border);
  border-top: 3px solid var(--cdob-navy);
  z-index: 40;
}
.cdob-nav__list > li:hover > .sub-menu,
.cdob-nav__list > li:focus-within > .sub-menu,
.cdob-nav__list > li.is-sub-open > .sub-menu {
  display: block;
}
.cdob-nav__list .sub-menu a {
  display: flex;
  align-items: center;
  min-height: var(--cdob-tap-min); /* tap floor */
  color: var(--cdob-navy);
  font-weight: 400;
  padding: 8px 16px;
}
.cdob-nav__list .sub-menu a:hover {
  color: var(--cdob-navy);
  background: rgba(var(--cdob-navy-rgb), 0.08);
}

/* SUPPORT and STORE nav buttons (menu items carry these classes). */
.cdob-nav__list li.cdob-nav-btn--support > a {
  background: var(--cdob-flame);
  color: var(--cdob-ink);
  padding: 10px 14px;
  margin-left: 8px;
}
.cdob-nav__list li.cdob-nav-btn--support > a:hover {
  color: var(--cdob-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cdob-nav__list li.cdob-nav-btn--store > a {
  border: 2px solid var(--cdob-ui-border-dark-strong);
  color: var(--cdob-paper);
  padding: 8px 12px;
  margin-left: 4px;
}

.cdob-nav__member {
  border-top: 1px solid var(--cdob-ui-border-dark);
  margin-top: 6px;
  padding-top: 6px;
}

@media (max-width: 899px) {
  .cdob-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .cdob-nav {
    display: none;
    width: 100%;
  }
  .cdob-nav.is-open {
    display: block;
  }
  .cdob-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .cdob-nav__list > li.menu-item-has-children {
    display: block;
  }
  /* Submenus render expanded inline on mobile; the disclosure button would
     be a no-op, so it is hidden here. */
  .cdob-subnav-toggle {
    display: none;
  }
  .cdob-nav__list .sub-menu {
    display: block;
    position: static;
    border: 0;
    border-left: 3px solid var(--cdob-navy);
    background: var(--cdob-paper);
    margin: 0 0 6px 12px;
  }
  .cdob-nav__list li.cdob-nav-btn--support > a,
  .cdob-nav__list li.cdob-nav-btn--store > a {
    margin: 6px 0 0;
    text-align: center;
  }
}
