:root { color-scheme: light; }
/* Compact editorial header, shared by all website pages. */
.site-nav.compact-header {
  background: linear-gradient(90deg, rgb(255 255 255 / 0%), rgb(255 255 255 / 80%) 14%, rgb(255 255 255 / 80%) 86%, rgb(255 255 255 / 0%));
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 300ms ease-out, box-shadow 300ms ease-out, border-color 300ms ease-out;
}
.site-nav.compact-header.is-scrolled {
  border-bottom-color: rgb(227 219 211 / 70%);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}


.compact-header .nav-inner {
  height: 100%;
  max-width: 1100px;
  padding: 0 24px;
  gap: 16px;
}
.compact-header .app-brand { margin-right: auto; }
.compact-header .app-brand-copy strong {
  font-style: normal;
  color: hsl(var(--warm-800) / var(--tw-text-opacity, 1));
}
.header-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--text-primary);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -1.2px;
  white-space: nowrap;
}
.header-brand-dot {
  width: 7px;
  height: 7px;
  background: #f28b39;
  border-radius: 1px;
  flex: none;
}
.header-desktop-links { display: flex; align-items: center; gap: 24px; }
.header-desktop-links a {
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 200ms ease;
}
.header-desktop-links a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  background: #f17127;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.header-desktop-links a:hover::after,
.header-desktop-links a:focus-visible::after { transform: scaleX(1); }
.header-desktop-links a:hover,
.header-desktop-links a[aria-current="page"] { color: var(--accent-blue); }
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.compact-header .header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px !important;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.compact-header .header-action:hover,
.compact-header .header-action[aria-expanded="true"] {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.compact-header .header-menu-toggle { display: none; }
.compact-header .header-sign-in {
  width: auto;
  gap: 8px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.header-sign-in-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-action svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-menu-close, [aria-expanded="true"] .header-menu-lines { display: none; }
[aria-expanded="true"] .header-menu-close { display: block; }
.compact-header :is(a, button):focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}
.header-navigation[hidden] { display: none; }
.header-navigation {
  position: absolute;
  top: calc(100% + 9px);
  right: 24px;
  width: 300px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - var(--nav-height) - 24px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border-normal);
  border-radius: 14px !important;
  background: var(--bg-card);
  box-shadow: 0 16px 48px rgb(15 23 42 / 14%);
}
.header-menu-label {
  display: block;
  padding: 8px 12px 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.compact-header .header-menu-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px !important;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}
.header-menu-link .app-bottom-icon { width: 21px; height: 21px; flex: 0 0 21px; }
.header-menu-add svg { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.header-menu-link > span:last-child { overflow-wrap: anywhere; }
.compact-header .header-menu-link:hover { background: var(--bg-secondary); color: var(--text-primary); }
.compact-header .header-menu-link.active { background: var(--accent-blue-soft); color: var(--accent-blue); }
.compact-header .header-menu-contact {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 14px 12px 4px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
}
@media (min-width: 861px) {
  .header-navigation { display: none; }
}
@media (max-width: 860px) {
  .compact-header .header-add-clue { display: none; }
  .header-desktop-links { display: none; }
  .header-sign-in-label { display: none; }
  .compact-header .header-sign-in { width: 44px; padding: 0; }
  .compact-header .header-menu-toggle { display: inline-flex; }
}
@media (max-width: 680px) {
  .compact-header .nav-inner { padding: 0 14px; gap: 8px; }
  .header-wordmark { font-size: 24px; letter-spacing: -1px; gap: 5px; }
  .header-actions { gap: 0; }
  .header-navigation { right: 14px; }
}
@media (max-width: 360px) {
  .compact-header .nav-inner { padding: 0 10px; gap: 4px; }
  .header-wordmark { font-size: 21px; }
  .compact-header .header-action { width: 40px; }
}
