/* Shared top bar: the exact bar the homepage uses (copied from home-v2.css and
   draft-serif.css), so About's header sits in the same place and has the mood
   button. Used by about/index.html. */
/* Logo is an inline SVG (fill="currentColor" on its paths) so it always
   tracks the one accent color via this element's own `color`. */
.v2-logo { display: inline-flex; text-decoration: none; color: var(--accent); }
.v2-logo-img { height: 20px; width: auto; display: block; }
.v2-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1600px; margin: 0 auto; padding: 28px 96px; box-sizing: border-box;
  position: sticky; top: 0; background: var(--white); z-index: 100;
}
.d-nav { max-width: 1200px; padding-left: 24px; padding-right: 24px; }
.d-nav .v2-logo-img { height: 30px; }
.d-nav-links { display: flex; align-items: center; gap: 28px; }
/* Normal-case labels (not the all-caps site-wide nav style) in the
   site's muted gray-mid, same as everywhere else — just without the
   uppercase/letter-spacing treatment. Selected page gets an underline. */
.d-nav-links a {
  font-size: 14px; font-weight: 400; color: var(--gray-mid); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.d-nav-links a.is-active { color: var(--black); border-bottom-color: var(--black); }
.d-nav-links a:hover { color: var(--black); }
/* Resting color already matches the circle graphic's live accent color
   (teal/orange with mood), not just on hover — and lighter weight than
   the plain nav links since it's a value being displayed, not a label. */
.d-mood-cycle {
  /* Fixed width (sized to the longest label, "[snappy]") and left-aligned
     text — so cycling to a shorter label like "[zen]" never changes this
     button's own footprint, which would otherwise shift Home/About/
     LinkedIn to its left (this whole group is flush against the nav's
     right edge via .v2-nav's space-between). */
  display: inline-block; min-width: 62px; text-align: left;
  font-size: 13px; font-weight: 400; color: var(--accent-text);
  background: none; cursor: pointer; font-family: inherit;
  transition: opacity 0.15s ease;
  -webkit-user-select: none; user-select: none;
  /* .d-nav-links a has an invisible 1px border-bottom + 2px padding-bottom
     reserved for its active-page underline — without the same here, this
     button's own box is 3px shorter, and .v2-nav's align-items:center
     centers each on its own box, so its text lands a couple px lower
     than the links' text. Matching (transparent) border keeps the boxes
     the same height without showing anything extra. */
  border: none; border-bottom: 1px solid transparent; padding: 0 0 2px;
  /* <button> elements get their own browser-default line-height
     ("normal") instead of actually inheriting the page's, unlike the
     <a> links next to it — forcing it back to inherit is what was
     really causing the couple-px vertical offset, more than the
     border/padding box-height mismatch above. */
  line-height: inherit;
}
.d-mood-cycle:hover { opacity: 0.7; }

/* No default browser focus ring (blue box) or text-select cursor on any
   of this draft's clickable bits — mouse clicks shouldn't leave a
   lingering outline, and text-swap buttons shouldn't look editable. */
.d-mood-cycle:focus,
.d-nav-links a:focus,
.v2-scroll-nav-btn:focus,
.v2-logo:focus { outline: none; }
.d-mood-cycle:focus-visible,
.d-nav-links a:focus-visible,
.v2-scroll-nav-btn:focus-visible,
.v2-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.d-nav-links a, .v2-scroll-nav-btn, .v2-logo {
  -webkit-user-select: none; user-select: none;
}
@media (max-width: 780px) {
  .d-nav { padding-left: 20px; padding-right: 20px; position: relative; z-index: 50; }
  /* The dropdown's parent here is .d-nav-links (no padding to inherit), so
     match the nav's 20px side padding directly. */
  .d-nav .nav-menu { padding-left: 20px; padding-right: 20px; }
  .d-nav .v2-logo-img { height: 28px; }
  .d-nav-links { gap: 16px; }
  /* Beside the burger the mood label hugs it: right-aligned in its fixed box
     (so "[zen]" and "[snappy]" both end at the same spot) and pulled in
     toward the icon. */
  .d-mood-cycle { min-width: 58px; text-align: right; margin-right: -12px; }
}
@media (max-width: 340px) {
  .d-nav { padding-left: 16px; padding-right: 16px; }
  .d-nav .nav-menu { padding-left: 16px; padding-right: 16px; }
  .d-nav .v2-logo-img { height: 24px; }
  .d-nav-links { gap: 10px; }
  .d-nav-links a { font-size: 13px; }
  .d-mood-cycle { min-width: 54px; font-size: 12px; }
}
@media (max-width: 640px) { .v2-nav { padding-left: 24px; padding-right: 24px; } }
