/* site-nav.css — the compact primary navigation (scripts/inject-nav.mjs, 2026-11-10).
   Personal Reading · Relationship Reading · Learn · Pricing · More, plus a quiet
   "Restore purchase". Loaded on every English page after the page's own stylesheet.
   Uses the site's own tokens with fallbacks (some pages load css/nav.css, not content.css).
   Hover rules sit behind (hover: hover) and (pointer: fine), like the rest of the site. */
.nav-links .nav-s { display: none; }
.nav-links a[aria-current="page"] { color: var(--gold-2, #8a6e34); opacity: 1; }
.nav-strip-inner { gap: 18px; }

.nav-more { position: relative; display: inline-flex; align-items: center; }
.nav-more > summary {
  list-style: none; cursor: pointer; white-space: nowrap;
  font-family: var(--font-display, 'Cinzel', 'Times New Roman', serif); font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ink, #1a1612); opacity: .8;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ' \25BE'; font-size: 9px; }
.nav-more[open] > summary { opacity: 1; color: var(--gold-2, #8a6e34); }
.nav-more > summary:focus-visible, .nav-restore:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--gold, #a8884a); outline-offset: 3px; }
.nav-more-panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60;
  min-width: 230px; padding: 10px 0;
  background: #faf6ed; border: 1px solid rgba(168, 136, 74, .45); border-radius: 8px;
  box-shadow: 0 12px 30px rgba(60, 44, 16, .14);
  display: flex; flex-direction: column;
}
.nav-more-panel a { padding: 10px 18px; letter-spacing: 2px; font-size: 10.5px; opacity: .9; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .nav-more-panel a:hover { background: rgba(168, 136, 74, .1); } }

/* The quiet route back to a purchase: present on every page, never louder than the menu. */
.nav-restore {
  flex: 0 0 auto; white-space: nowrap;
  font-family: var(--font-body, 'Cormorant Garamond', Georgia, serif); font-style: italic; font-size: 15px;
  color: var(--ink-soft, #4a3f33); text-decoration: underline; text-decoration-color: rgba(168, 136, 74, .6); text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) { .nav-restore:hover { color: var(--gold-2, #8a6e34); } }

/* Content pages on phones and tablets: the four links + More fit on one row with short
   labels. The row no longer scrolls sideways (that clipped the More panel), it wraps. */
@media (max-width: 860px) {
  .nav-strip:not(:has(.nav-menu-btn)) .nav-strip-inner { position: relative; }
  .nav-strip:not(:has(.nav-menu-btn)) .nav-links { overflow: visible; flex-wrap: wrap; row-gap: 6px; gap: 16px; margin-right: 0; padding-right: 0; }
  .nav-strip:not(:has(.nav-menu-btn)) .nav-links .nav-l { display: none; }
  .nav-strip:not(:has(.nav-menu-btn)) .nav-links .nav-s { display: inline; }
  .nav-strip:not(:has(.nav-menu-btn)) .nav-links a,
  .nav-strip:not(:has(.nav-menu-btn)) .nav-more > summary { font-size: 11px; letter-spacing: 1.8px; min-height: 32px; display: inline-flex; align-items: center; }
  .nav-strip:not(:has(.nav-menu-btn)) .nav-more { position: static; }
  .nav-strip:not(:has(.nav-menu-btn)) .nav-more-panel { left: 16px; right: 16px; top: 100%; min-width: 0; }
  .nav-strip:not(:has(.nav-menu-btn)) .nav-more-panel a { font-size: 12px; padding: 12px 18px; }
  .nav-restore { font-size: 14px; }
}
/* Homepage (has the Menu button): the restore link stays beside the button. */
@media (max-width: 900px) {
  .nav-strip:has(.nav-menu-btn) .nav-restore { order: 2; }
}
@media (max-width: 380px) {
  .nav-strip:not(:has(.nav-menu-btn)) .nav-links { gap: 12px; }
  .nav-restore { font-size: 13px; }
}
