/* Compute Assay — header + what's-new layout (injected after style.css/extra.css by postbuild.js) */

/* ---------- masthead nav ---------- */
header.site .inner { gap: 20px; }
nav.nav2 { overflow: visible; display: flex; align-items: center; gap: 0; }
.nav2 .nav-primary { display: flex; align-items: center; gap: 22px; }
.nav2 a, .nav2 summary {
  color: rgba(247, 245, 240, 0.62); text-decoration: none;
  font-size: 12.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.09em; white-space: nowrap; padding: 4px 0;
}
.nav2 a:hover, .nav2 summary:hover { color: var(--paper); }
.nav2 a.active { color: var(--paper); box-shadow: 0 2px 0 #e8836a; }

/* dropdowns (native <details>, no JS needed to open) */
.nav2 details { position: relative; margin: 0; }
.nav2 summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; user-select: none; }
.nav2 summary::-webkit-details-marker { display: none; }
.nav2 summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .15s;
}
.nav2 details[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nav2 details[open] > summary, .nav2 summary.active { color: var(--paper); }
.nav2 summary.active { box-shadow: 0 2px 0 #e8836a; }
.nav2 .nav-menu {
  position: absolute; right: -12px; top: calc(100% + 14px); z-index: 50;
  min-width: 230px; padding: 8px; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(20, 19, 14, 0.18);
}
.nav2 .nav-menu a {
  color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 14.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 7px; box-shadow: none;
}
.nav2 .nav-menu a span { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.nav2 .nav-menu a:hover { background: #f3f1ea; color: var(--ink); }
.nav2 .nav-menu a.active { background: #f3efe6; box-shadow: inset 3px 0 0 #e8836a; color: var(--ink); }
.nav2 .nav-menu .sep { height: 1px; background: var(--rule); margin: 6px 4px; }

.nav2 .nav-more { margin-left: 22px; }
.nav2 .nav-mobile { display: none; }

@media (max-width: 920px) {
  .nav2 .nav-primary { display: none; }
  .nav2 .nav-mobile { display: block; }
  .nav2 .nav-mobile .nav-menu { right: -8px; width: min(320px, calc(100vw - 32px)); }
}
@media (max-width: 420px) {
  header.site .inner { padding: 0 16px; }
  .wordmark { font-size: 20px; }
}

/* ---------- what's-new strip: one line, rest in a dropdown ---------- */
.whatsnew2 { background: #0f1f17; color: #e9f3ec; font: 14px/1.4 Inter, system-ui, sans-serif; }
.whatsnew2 .inner {
  max-width: 1100px; margin: 0 auto; padding: 9px 24px;
  display: flex; align-items: center; gap: 12px; min-height: 42px;
}
.whatsnew2 .tag {
  flex: none; background: #2f7a4f; color: #fff; border: none; border-radius: 3px; margin: 0;
  padding: 2px 7px; font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
}
.whatsnew2 .lead { color: #e9f3ec; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whatsnew2 .lead strong { font-weight: 600; }
.whatsnew2 .lead:hover { text-decoration: underline; text-underline-offset: 3px; }
.whatsnew2 details { position: relative; margin: 0 0 0 auto; flex: none; }
.whatsnew2 summary {
  list-style: none; cursor: pointer; color: rgba(233, 243, 236, .78); font-weight: 500; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.whatsnew2 summary::-webkit-details-marker { display: none; }
.whatsnew2 summary::after {
  content: ""; width: 5px; height: 5px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.whatsnew2 details[open] summary { color: #fff; }
.whatsnew2 details[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.whatsnew2 .wn-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: min(380px, calc(100vw - 32px));
  background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(20, 19, 14, .18); padding: 8px;
}
.whatsnew2 .wn-menu a { display: block; padding: 8px 12px; border-radius: 7px; color: var(--ink); text-decoration: none; font-weight: 600; }
.whatsnew2 .wn-menu a span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.whatsnew2 .wn-menu a:hover { background: #f3f1ea; }
@media (max-width: 640px) {
  .whatsnew2 .inner { padding: 8px 16px; gap: 10px; }
  .whatsnew2 .lead .rest { display: none; }
  .whatsnew2 summary .long { display: none; }
}

/* ---------- stale-price banner: one quiet line instead of a yellow slab ---------- */
.fresh { padding: 7px 24px; font-size: 13px; line-height: 1.45; text-align: center; background: #fbf4df; border-bottom: 1px solid #eadfb8; color: #5a4a12; }
.fresh strong { font-weight: 600; }
@media (max-width: 640px) { .fresh { text-align: left; padding: 7px 16px; } }
