/* Unica intestazione pubblica. Riferimento: Partecipa, commit 1cd8829.
   Valori in px per non dipendere dalla dimensione radice delle singole pagine. */
header[data-site-header] {
  background: #123f35;
  color: #fff9ef;
  font:
    400 16px/1.6 system-ui,
    sans-serif;
  border: 0;
  padding: 0;
}
header[data-site-header] .header-bar {
  box-sizing: border-box;
  width: min(1184px, calc(100% - 32px));
  min-height: 0;
  margin-inline: auto;
  padding-block: 12.8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10.4px 16px;
  flex-wrap: wrap;
}
body [data-site-brand].brand {
  display: inline-flex;
  align-items: center;
  gap: 5.6px;
  flex-shrink: 0;
  color: #fff9ef;
  text-decoration: none;
  font:
    700 23.2px/1.6 Georgia,
    serif;
  letter-spacing: normal;
  white-space: nowrap;
  opacity: 1;
}
body [data-site-brand] .brand-word {
  color: #fff9ef;
}
body [data-site-brand] .brand-suffix {
  color: #f4c44e;
  font-style: italic;
}
svg.brand-mark {
  width: 36px;
  height: 36px;
  color: #f4c44e;
  flex: 0 0 auto;
}
header[data-site-header] .public-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 22.4px;
  margin: 0;
  padding: 0;
}
header[data-site-header] .public-nav > a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  color: #fcf0d6;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  font:
    600 13.44px/1.6 system-ui,
    sans-serif;
  text-decoration: none;
  opacity: 1;
}
header[data-site-header] .public-nav > a:hover,
header[data-site-header] .public-nav > a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6.4px;
}
header[data-site-header] .public-nav > .header-github {
  padding-inline: 6px;
}
header[data-site-header] .public-nav > .header-github svg {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}
header[data-site-header] .public-nav > .header-github:hover {
  color: #f4c44e;
}
header[data-site-header] .public-nav > .header-login {
  border: 1px solid #f4c44e;
  border-radius: 8.8px;
  padding-inline: 13.6px;
  color: #f4c44e;
  font-weight: 650;
  background: transparent;
}
header[data-site-header] .public-nav > .header-login:hover {
  background: #f4c44e;
  color: #123f35;
  text-decoration: none;
}
header[data-site-header] :focus-visible {
  outline: 3px solid #f4c44e;
  outline-offset: 4px;
}
header[data-site-header] .account-options :focus-visible {
  outline-color: #9d3d27;
}
header[data-site-header] .account-menu {
  position: relative;
  margin: 0;
}
header[data-site-header] .account-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: min(240px, 40vw);
  padding: 4px 8.8px;
  border: 1px solid #f4c44e;
  border-radius: 8.8px;
  cursor: pointer;
  font-weight: 650;
}
header[data-site-header] .account-menu summary::after {
  content: "▾";
  color: #f4c44e;
}
header[data-site-header] .account-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
header[data-site-header] .account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 28.8px;
  height: 28.8px;
  border-radius: 50%;
  background: #f4c44e;
  color: #123f35;
  font-size: 12.8px;
}
header[data-site-header] .account-options {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0;
  margin-block-start: 6.4px;
  width: min(256px, 85vw);
  padding: 10.4px;
  border: 1px solid #c9d3ca;
  border-radius: 9.6px;
  color: #173f35;
  background: white;
  box-shadow: 0 4px 16px #123f3520;
}
header[data-site-header] .account-options a,
header[data-site-header] .account-options button {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}
header[data-site-header] .account-options button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 640px) {
  header[data-site-header] .public-nav {
    flex-basis: 100%;
    justify-content: space-between;
    gap: 4px 12px;
  }
}
