/* Shared navigation for the five original oddz designs. */
header { position: relative; z-index: 10; gap: 14px; flex-wrap: wrap; }
header nav { align-items: center; flex-wrap: wrap; }
header .theme-picker { position: relative; color: var(--picker-text); }
header .theme-picker summary {
  display: inline-flex; align-items: center; gap: 7px;
  list-style: none; cursor: pointer; user-select: none;
  min-height: 36px; padding: 7px 12px;
  border: 1px solid var(--picker-line); border-radius: 9px;
  background: var(--picker-bg); color: var(--picker-text);
  font: 600 0.82rem/1.3 'Pretendard Variable', 'Pretendard', sans-serif;
  white-space: nowrap;
}
header .theme-picker summary::-webkit-details-marker { display: none; }
header .theme-picker summary::after { content: '⌄'; font-size: 1rem; line-height: 0.7; transition: transform .2s; }
header .theme-picker[open] summary::after { transform: rotate(180deg); }
header .theme-picker summary:hover, header .theme-picker[open] summary {
  border-color: var(--picker-accent);
}
header .theme-picker summary:focus-visible,
header .theme-picker a:focus-visible { outline: 2px solid var(--picker-accent); outline-offset: 3px; }
header .theme-picker__list {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 20;
  display: grid; gap: 3px; width: 185px; padding: 7px;
  border: 1px solid var(--picker-line); border-radius: 12px;
  background: var(--picker-menu); box-shadow: 0 14px 34px rgba(0,0,0,.3);
}
header .theme-picker__list a {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 40px; padding: 8px 10px;
  margin: 0; border: 0; border-radius: 7px; background: transparent;
  color: var(--picker-text); font: 500 .85rem/1.3 'Pretendard Variable', 'Pretendard', sans-serif;
  text-decoration: none; text-transform: none; letter-spacing: normal;
  white-space: nowrap;
}
header .theme-picker__list a:hover,
header .theme-picker__list a[aria-current='page'] {
  background: var(--picker-hover); color: var(--picker-text);
}
header .theme-picker__list a[aria-current='page']::after {
  content: '✓'; margin-left: auto; color: var(--picker-accent);
}
header .theme-picker__swatch {
  flex: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--swatch); box-shadow: 0 0 0 1px rgba(255,255,255,.4);
}
@media (max-width: 640px) {
  header nav { gap: 8px; }
  header .theme-picker__list { width: 175px; }
}
/* Keep the new journal link usable alongside the theme picker on narrow screens. */
header nav { flex-wrap: wrap; justify-content: flex-end; align-items: center; }
@media (max-width: 640px) { header { gap: 12px; flex-wrap: wrap; } header nav { row-gap: 8px; } }
