/* Elemental Success: the navigation bar shared by every page on the site,
   including the sims and the FRQ page it is added to at build time.
   Everything is prefixed es- so it can't collide with a sim's own styles. */
.es-bar {
  --es-surface: rgba(255, 255, 255, .86);
  --es-ink: #0F172A;
  --es-ink-2: #44546A;
  --es-line: #DCE5EE;
  --es-teal: #0E7490;
  --es-amber: #D97706;
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 max(16px, calc((100vw - 1120px) / 2));
  background: var(--es-surface);
  border-bottom: 1px solid var(--es-line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  font: 500 14px/1.2 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .es-bar {
    --es-surface: rgba(13, 24, 37, .86);
    --es-ink: #E6EEF6;
    --es-ink-2: #A9B8CB;
    --es-line: #22344A;
    --es-teal: #5CC8E8;
    --es-amber: #F6A93B;
  }
}
:root[data-theme="dark"] .es-bar {
  --es-surface: rgba(13, 24, 37, .86);
  --es-ink: #E6EEF6;
  --es-ink-2: #A9B8CB;
  --es-line: #22344A;
  --es-teal: #5CC8E8;
  --es-amber: #F6A93B;
}
.es-bar *, .es-bar *::before, .es-bar *::after { box-sizing: border-box; }
.es-bar a { color: inherit; text-decoration: none; }
.es-bar .es-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--es-ink);
  font: 600 16px/1 "Source Serif 4", Georgia, "Times New Roman", serif;
  letter-spacing: -.005em;
  white-space: nowrap;
}
.es-bar .es-brand svg { width: 26px; height: 26px; flex: none; }
.es-bar .es-links { display: flex; align-items: center; gap: 2px; }
.es-bar .es-links a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--es-ink-2);
  white-space: nowrap;
}
.es-bar .es-links a:hover { color: var(--es-ink); background: color-mix(in srgb, var(--es-teal) 10%, transparent); }
.es-bar .es-links a[aria-current="page"] { color: var(--es-ink); box-shadow: inset 0 -2px 0 var(--es-amber); border-radius: 8px 8px 0 0; }
.es-bar a:focus-visible { outline: 2px solid var(--es-teal); outline-offset: 2px; }
@media (max-width: 560px) {
  .es-bar { gap: 6px; }
  .es-bar .es-brand span { display: none; }
  .es-bar .es-links a { padding: 8px 8px; font-size: 13.5px; }
}
@media print { .es-bar { display: none; } }

/* The notice added to a page that lacks it. */
.es-notice {
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 16px max(16px, calc((100vw - 1120px) / 2)) 24px;
  font: 12px/1.5 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #71809A;
  text-align: center;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .es-notice { color: #7E8EA5; } }
:root[data-theme="dark"] .es-notice { color: #7E8EA5; }
