/* Shared global navigation for the prediction workspace and specialty pages. */
.site-header {
  --text: #1f2937;
  --muted: #64748b;
  --cyan: #087ea4;
  --line: rgba(30, 41, 59, .14);
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  color: var(--text);
  box-shadow: 0 1px 8px rgba(30, 41, 59, .04);
  backdrop-filter: blur(18px);
  font: .93rem/1.6 Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.site-header, .site-header * { box-sizing: border-box; }
.site-header a { color: inherit; text-decoration: none; }
.site-header .brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; }
.site-header .brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(8, 126, 164, .32);
  border-radius: 9px;
  background: #eef8fb;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: none;
}
.site-header .brand > span:last-child { display: grid; line-height: 1.15; }
.site-header .brand strong { letter-spacing: .01em; }
.site-header .brand small { margin-top: 2px; color: var(--muted); font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; }
.site-header .brand-title-row { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.site-header .brand-case-count { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border: 1px solid rgba(8, 126, 164, .2); border-radius: 6px; background: #eef8fb; color: var(--cyan); font-size: .72rem; white-space: nowrap; }
.site-header .brand-case-count b { color: var(--cyan); font-weight: 700; }
.site-header .site-nav { display: flex; min-width: 0; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px; }
.site-header .site-nav a { padding: 6px 9px; border-radius: 999px; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.site-header .site-nav a:hover, .site-header .site-nav a[aria-current="page"] { color: #075d7a; background: #e7f4f8; }
.site-header .language-toggle {
  flex-shrink: 0;
  min-width: 86px;
  max-width: 155px;
  margin-left: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .76rem;
  cursor: pointer;
}
.site-header .language-toggle option { color: var(--text); background: #fff; }
.site-header .nav-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: transparent; padding: 7px 11px; font: inherit; cursor: pointer; }
.business-section-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 10px max(20px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); font-size: 12px; }
.business-section-nav nav { display: flex; flex-wrap: wrap; gap: 16px; }
.business-section-nav a { color: var(--accent); }
.business-section-nav a[aria-current="page"] { font-weight: 700; }
@media (max-width: 680px) {
  .site-header { min-height: 56px; padding-inline: 14px; gap: 8px; }
  .site-header .brand { gap: 6px; margin-right: auto; }
  .site-header .brand-mark { width: 30px; height: 30px; }
  .site-header .brand strong { font-size: .78rem; }
  .site-header .brand-title-row { gap: 6px; }
  .site-header .brand-case-count { padding: 2px 5px; font-size: .7rem; }
  .site-header #home-case-count-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header .brand small { display: none; }
  .site-header .nav-toggle { display: block; padding: 6px 8px; font-size: .76rem; }
  .site-header.has-case-count .nav-toggle { width: 32px; height: 32px; padding: 0; flex-shrink: 0; font-size: 0; }
  .site-header.has-case-count .nav-toggle::before { content: "☰" / ""; font-size: 1.05rem; }
  .site-header .language-toggle { width: clamp(86px, 26vw, 135px); min-width: 86px; margin-left: 0; padding-inline: 6px; }
  .site-header .site-nav { position: absolute; top: 100%; right: 14px; display: none; width: min(260px, calc(100vw - 28px)); align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(30, 41, 59, .10); }
  .site-header .site-nav.is-open { display: grid; }
  .site-header .site-nav a { padding: 11px 13px; }
  .business-section-nav { padding-inline: 14px; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 10px; gap: 6px; }
  .site-header .nav-toggle { padding-inline: 6px; }
  .site-header.has-case-count .brand { gap: 4px; }
  .site-header.has-case-count .brand-mark { width: 26px; height: 26px; }
  .site-header.has-case-count .brand strong { font-size: .7rem; }
  .site-header.has-case-count .brand-title-row { gap: 4px; }
}
