header.public-header {
  --header-ink: #342f29;
  --header-muted: #625b52;
  --header-line: #e2dbcf;
  --header-bg: #faf7f1;
  --header-accent: #a54d39;
  display: block;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-image: linear-gradient(to top, var(--header-line) 1px, var(--header-bg) 1px) fill 0//0 100vmax;
  color: var(--header-ink);
  font: 15px/1.25 'Segoe UI', system-ui, sans-serif;
}

.public-header-inner {
  width: min(1200px, calc(100% - 48px));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.public-header .public-header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
}

.public-header .public-header-brand img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 44px;
  object-fit: contain;
}

header.public-header nav.public-header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 26px);
  width: auto;
  margin-left: auto;
  font-size: inherit;
}

.public-header .public-header-links a,
.public-header .public-header-language a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--header-ink);
  text-decoration: none;
  white-space: nowrap;
}

.public-header .public-header-links a:hover,
.public-header .public-header-links a[aria-current="page"],
.public-header .public-header-language a:hover {
  color: var(--header-accent);
}

.public-header .public-header-links a.public-header-cta {
  padding-inline: 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--header-accent);
  font-weight: 600;
}

.public-header .public-header-links a.public-header-cta:hover {
  color: #fff;
  background: #873f2f;
}

.public-header-language {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
  color: var(--header-ink);
  font-size: 12px;
}

.public-header .public-header-language > * {
  display: inline-grid;
  min-width: 28px;
  place-items: center;
  justify-content: center;
}

.public-header .public-header-language a { color: var(--header-muted); }
.public-header-language [aria-current="true"] { font-weight: 700; }

.public-header a:focus-visible {
  outline: 2px solid var(--header-accent);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .public-header-inner {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'brand language' 'links links';
    gap: 0 12px;
    padding-block: 4px;
  }

  .public-header-brand { grid-area: brand; }
  .public-header .public-header-brand img { height: 36px; }
  .public-header-language { grid-area: language; }

  header.public-header nav.public-header-links {
    grid-area: links;
    flex-wrap: wrap;
    gap: 0 clamp(8px, 2.2vw, 16px);
    margin-left: 0;
    font-size: 13px;
  }

  .public-header .public-header-links a.public-header-cta { padding-inline: 11px; }
}
