/* WriteUpCafe — header + main menu revamp (nav_v2, 2026-11-18, data/plans/2026-11-18-header-menu-revamp.md).
   Loaded by partials/nav_app.php when nav_v2 is on. The header bar itself keeps wuc-nav-app.css. */

/* ── Write button + menu ──────────────────────────────────── */
.nav2-write { position: relative; }
.nav-app--v2 .nav-btn-create { gap: 6px; cursor: pointer; border: 0; font-family: var(--wuc-font-body); }
.nav-app--v2 .nav-btn-create .nav2-chev { width: 13px; height: 13px; opacity: .85; }
.nav2-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 210; width: 300px; padding: 6px;
  background: var(--wuc-espresso-mid, #251508); border: 1px solid rgba(193,125,60,.28); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45); box-sizing: border-box;
}
.nav2-pop[hidden] { display: none; }
.nav2-pop__item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--wuc-cream, #e8ddd0); outline: none; }
.nav2-pop__item:hover, .nav2-pop__item:focus-visible { background: rgba(255,255,255,.06); }
.nav2-pop__item:focus-visible { box-shadow: 0 0 0 2px var(--wuc-primary, #e87a35) inset; }
.nav2-pop__item.is-primary .nav2-pop__ico { background: var(--wuc-primary, #e87a35); color: #fff; }
.nav2-pop__ico { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; background: rgba(232,122,53,.16); color: var(--wuc-gold-highlight, #f0c080); display: flex; align-items: center; justify-content: center; font: 600 14px var(--wuc-font-body); }
.nav2-pop__item strong { display: block; font: 600 14px/1.3 var(--wuc-font-body); color: var(--wuc-cream, #e8ddd0); }
.nav2-pop__item em { display: block; margin-top: 2px; font: 400 12px/1.4 var(--wuc-font-body); font-style: normal; color: rgba(221,208,192,.65); }

/* ── Profile menu, grouped ────────────────────────────────── */
.nav-app--v2 .nav-profile-dropdown { width: 280px; }
.nav-app--v2 .nav-profile-dropdown__header { border-bottom: 0; padding-bottom: 4px; }
.nav2-viewprofile { display: block; padding: 0 16px 12px; border-bottom: 1px solid rgba(193,125,60,.18); font: 500 13px var(--wuc-font-body); color: var(--wuc-gold-highlight, #f0c080); text-decoration: none; }
.nav2-viewprofile:hover { color: var(--wuc-primary, #e87a35); }
.nav2-groups { padding: 0 !important; }
.nav2-group { padding: 6px 0; }
.nav2-group + .nav2-group { border-top: 1px solid rgba(193,125,60,.18); }
.nav2-group .nav-profile-dropdown__link { justify-content: space-between; padding: 10px 16px; font-size: 14px; }
.nav2-note { font: 500 12px var(--wuc-font-body); color: rgba(221,208,192,.6); }
.nav2-note--go { color: var(--wuc-gold-highlight, #f0c080); }

/* ── Main menu row ────────────────────────────────────────── */
.nav2-menu { background: var(--wuc-parchment-raised, #fbf7ef); border-bottom: 1px solid rgba(139,69,19,.18); font-family: var(--wuc-font-body); position: relative; z-index: 30; }
.nav2-menu__inner { max-width: 1340px; margin: 0 auto; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 24px; box-sizing: border-box; }
.nav2-menu__items { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav2-menu__items::-webkit-scrollbar { display: none; }
.nav2-menu__item { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; display: inline-flex; align-items: center; flex-shrink: 0; font-size: 14px; font-weight: 500; color: var(--wuc-fg2, #3d2a18); text-decoration: none; white-space: nowrap; }
.nav2-menu__item:hover { color: #c4622d; text-decoration: none; }
.nav2-menu__item.is-on { background: rgba(232,122,53,.12); border-color: rgba(232,122,53,.35); color: #c4622d; }
.nav2-menu__item:focus-visible, .nav2-gopro:focus-visible { outline: 2px solid var(--wuc-primary, #e87a35); outline-offset: 2px; }
.nav2-gopro { height: 32px; padding: 0 14px; flex-shrink: 0; border-radius: 999px; background: var(--wuc-espresso-dark, #1a0f06); border: 1px solid rgba(193,125,60,.4); color: var(--wuc-gold-highlight, #f0c080); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.nav2-gopro:hover { color: #fff; text-decoration: none; }

/* The deals ticker sits under the menu, a little slimmer. */
body:has(.nav2-menu) .dt.dt--strip { min-height: 34px; }
body:has(.nav2-menu) .dt.dt--strip .dt-item { height: 34px; }

/* ── Phone sheet ──────────────────────────────────────────── */
.nav2-sheet { position: fixed; inset: 0; z-index: 10050; background: rgba(26,15,6,.5); display: flex; align-items: flex-end; }
.nav2-sheet[hidden] { display: none; }
.nav2-sheet__panel { width: 100%; max-height: 92vh; display: flex; flex-direction: column; background: var(--wuc-parchment, #f5f0e8); border-radius: 18px 18px 0 0; font-family: var(--wuc-font-body); color: var(--wuc-fg1, #1a0f06); }
.nav2-sheet__head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-bottom: 1px solid rgba(139,69,19,.15); }
.nav2-sheet__av { width: 44px; height: 44px; border-radius: 999px; overflow: hidden; flex-shrink: 0; background: var(--wuc-copper-dark, #8b4513); color: #f5f0e8; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.nav2-sheet__av img { width: 100%; height: 100%; object-fit: cover; }
.nav2-sheet__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nav2-sheet__who strong { font-size: 16px; font-weight: 600; }
.nav2-sheet__who a { font-size: 13px; color: var(--wuc-copper-dark, #8b4513); }
.nav2-sheet__close { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--wuc-fg1, #1a0f06); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nav2-sheet__body { overflow-y: auto; padding: 0 16px 24px; }
.nav2-sheet__label { margin: 16px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--wuc-copper-dark, #8b4513); }
.nav2-sheet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nav2-sheet__grid a { min-height: 44px; padding: 0 12px; border-radius: 10px; background: var(--wuc-parchment-raised, #fbf7ef); border: 1px solid rgba(139,69,19,.15); display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 14px; font-weight: 500; color: var(--wuc-fg1, #1a0f06); text-decoration: none; }
.nav2-sheet__grid a.is-on { background: rgba(232,122,53,.12); border-color: rgba(232,122,53,.35); color: #c4622d; }
.nav2-sheet__grid a span { font-size: 12px; color: rgba(26,15,6,.6); }
.nav2-sheet__pro { margin-top: 16px; height: 48px; border-radius: 999px; background: var(--wuc-espresso-dark, #1a0f06); color: var(--wuc-gold-highlight, #f0c080); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; text-decoration: none; }
.nav2-sheet__logout { margin: 12px 0 0; }
.nav2-sheet__logout button { width: 100%; min-height: 44px; border: 1px solid rgba(139,69,19,.2); border-radius: 999px; background: transparent; font: 500 14px var(--wuc-font-body); color: var(--wuc-fg2, #3d2a18); cursor: pointer; }

@media (max-width: 720px) {
  .nav-app--v2 .nav-profile-wrap { display: block !important; }   /* app.css hid it for the old hamburger; the picture opens the sheet now */
  .nav-app--v2 .nav-profile-btn { width: 36px; height: 36px; }
  .nav-app--v2 .nav-btn-create .nav2-chev { display: none; }
  .nav-app--v2 .nav-hamburger { display: none !important; }
  .nav2-pop--write { position: fixed; top: 60px; right: 8px; left: 8px; width: auto; }
  .nav2-menu__inner { padding: 0 12px; gap: 8px; }
  .nav2-gopro { display: none; }               /* it is in the sheet */
}

/* ── Section rows under the main menu ─────────────────────── */
/* SEO tools: the main menu has "SEO tools", so the tools header drops its own home link and becomes underline tabs. */
body:has(.nav2-menu) .t2bar__home, body:has(.nav2-menu) .t2bar__sep { display: none; }
body:has(.nav2-menu) .t2bar { background: transparent; }
body:has(.nav2-menu) .t2bar__row { align-items: stretch; }
body:has(.nav2-menu) .t2bar__tabs { gap: 24px; align-items: stretch; }
body:has(.nav2-menu) .t2tab { height: auto; min-height: 46px; padding: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; }
body:has(.nav2-menu) .t2tab.is-on { background: none; border-bottom-color: var(--wuc-primary, #e87a35); color: #c4622d; }
body:has(.nav2-menu) .t2bar__row > .t2find { align-self: center; }
/* Series & books: the type switcher becomes the same underline row. */
body:has(.nav2-menu) .slv-types { background: transparent; }
body:has(.nav2-menu) .slv-types__in { padding: 0 40px; gap: 24px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
body:has(.nav2-menu) .slv .slv-types__link { min-height: 46px; padding: 0; border-radius: 0; border-bottom: 2px solid transparent; font-weight: 500; white-space: nowrap; background: none; }
body:has(.nav2-menu) .slv .slv-types__link:hover { background: none; color: #c4622d; }
body:has(.nav2-menu) .slv .slv-types__link.is-current { background: none; color: #c4622d; border-bottom-color: var(--wuc-primary, #e87a35); font-weight: 600; }
body:has(.nav2-menu) .slv .slv-types__link--mine { margin-left: auto; }
@media (max-width: 720px) {
  body:has(.nav2-menu) .slv-types__in { padding: 0 16px; }
  body:has(.nav2-menu) .slv .slv-types__link--mine { margin-left: 0; }
}

/* Narrow phones: Messages is in the sheet, so the header keeps search, Write, bell and the picture. */
@media (max-width: 430px) {
  .nav-app--v2 .nav-icon-btn--messages { display: none; }
}
