/* One header for the main pages and standalone articles. */
.site-top {
  --header-bg: #f7f7f2;
  --header-ink: #242521;
  --header-text: #55574e;
  --header-soft: #eeeee8;
  --header-surface: #fff;
  --header-line: #dedfd5;
  --header-accent: #a13c21;
  padding-block: 24px;
  background: var(--header-bg);
  color: var(--header-ink);
  font: 400 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
:root[data-theme=dark] .site-top {
  --header-bg: #181a18;
  --header-ink: #f1f2e9;
  --header-text: #c1c5b8;
  --header-soft: #2a2e28;
  --header-surface: #20231f;
  --header-line: #3b4136;
  --header-accent: #ffb397;
}
.site-top .top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: min(1160px, calc(100% - 80px));
  margin-inline: auto;
}
.site-top a { color: inherit; text-decoration: none; }
.site-top .identity { justify-self: start; }
.site-top .site-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  padding: 5px;
  background: var(--header-soft);
  border-radius: 99px;
}
.site-top .site-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 17px;
  border-radius: 99px;
  color: var(--header-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}
.site-top .site-nav a:hover,
.site-top .site-nav a[aria-current=page] { color: var(--header-ink); }
.site-top .site-nav .nav-pill { background: var(--header-surface); }
.site-top .top-actions { gap: 8px; }
.site-top .top-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--header-line);
  border-radius: 8px;
  background: var(--header-soft);
  color: var(--header-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease;
}
.site-top .top-contact:is(:hover, :focus-visible) {
  background: var(--header-surface);
  border-color: var(--header-text);
}
.site-top .language-toggle { border-color: var(--header-line); }
.site-top .icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--header-line);
  border-radius: 50%;
  background: transparent;
  color: var(--header-ink);
  cursor: pointer;
}
.site-top .icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-top :focus-visible { outline: 3px solid var(--header-ink); outline-offset: 5px; }
.site-top [hidden] { display: none; }
@media (max-width: 1000px) {
  .site-top .top-inner { width: calc(100% - 48px); grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
  .site-top .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .site-top .site-nav a { padding-inline: 15px; }
  .site-top .top-actions { grid-column: 2; grid-row: 1; }
  .site-top .top-contact { font-size: 12px; }
}
@media (max-width: 740px) {
  .site-top { padding-block: 18px; }
  .site-top .top-inner { width: calc(100% - 36px); }
  .site-top .site-nav { width: 100%; justify-content: center; }
  .site-top .site-nav a { flex: 1; justify-content: center; padding: 8px 12px; }
}
@media (max-width: 480px) {
  .site-top .top-inner { column-gap: 10px; }
  .site-top .top-contact { display: none; }
}
@media (max-width: 390px) {
  .site-top .site-nav a { padding-inline: 8px; }
}
@media print { .site-top { display: none !important; } }
