/* Shared site navigation — Site Redesign: the nav is a strip INSIDE the
   page card (see .page-card), Montserrat 13px, cobalt (#1f63cf) accents,
   mustard (#e0a92b) on hover. */

/* One card per page: nav strip + content share a single rounded block,
   floating over the water-ripple background. Shared by the home page
   (inline styles) and the blog (main.css), so it lives here. */
.page-card {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  /* Opaque white — the mockup's translucent whites sit on a light canvas,
     but our ripple background is dark, so transparency reads as gray */
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(20, 50, 110, 0.14);
  /* No overflow:hidden — it would clip dropdowns (e.g. the AI sub-view menu)
     when the card is short. Rounded corners are on the children instead. */
}

.site-nav {
  background: #fff;
  border-radius: 17px 17px 0 0; /* nests inside the card's 18px radius */
  border-bottom: 1px solid #e5e7eb;
  font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.site-nav-inner {
  padding: 0 22px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav-brand {
  font-weight: 600;
  font-size: 15px;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-brand:hover { color: #111827; }

/* Right-slot label on blog pages ("Paper Reviews" / "All papers").
   As a <span> it marks the current page and is not clickable. */
.site-nav-label {
  font-size: 13px;
  font-weight: 700;
  color: #1f63cf;
  /* Underline is always present but transparent, so hovering fades in the
     cobalt line without a dark flash from currentColor */
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
  white-space: nowrap;
}
.site-nav-label.dark { color: #1f2430; }
span.site-nav-label { cursor: default; }
a.site-nav-label:hover { text-decoration-color: #1f63cf; }

/* Call-to-action links: "Paper Reviews →" (home) / "← Who Am I?" (blog). */
.site-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: #4b5563;
  text-decoration: none;
  padding: 0.375rem 0.25rem;
  white-space: nowrap;
  transition: color 140ms ease;
}
/* Kill the theme's global a:hover/:focus/:active underline on the whole
   anchor (it draws a thin currentColor line under the arrow too); only the
   label span carries the cobalt underline below */
.site-nav-cta:hover,
.site-nav-cta:focus,
.site-nav-cta:active {
  color: #111827;
  text-decoration: none;
}
.site-nav-cta .site-nav-cta-lbl {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}
.site-nav-cta:hover .site-nav-cta-lbl { text-decoration-color: #1f63cf; }
.site-nav-cta-arrow {
  color: #1f63cf;
  transition: transform 140ms ease;
}
.site-nav-cta:hover .site-nav-cta-arrow {
  transform: translateX(3px);
}
.site-nav-back:hover .site-nav-cta-arrow {
  transform: translateX(-3px);
}
