.af-public-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}
.blog-page > h1,
.blog-hero h1 { overflow-wrap: anywhere; }
.af-public-header-inner {
  display: flex;
  min-height: 4.75rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.25rem;
  align-items: center;
  gap: 1.5rem;
}
.af-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -.03em;
  text-decoration: none;
}
.af-brand-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: .9rem;
  color: #fff;
  background: var(--green);
  box-shadow: 0 .6rem 1.5rem rgba(18, 105, 79, .18);
}
.af-brand-mark svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.af-brand-mark circle { fill: currentColor; stroke: none; }
.af-brand-name { font-size: 1.05rem; }
.af-public-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 1.15rem;
}
.af-public-nav a,
.af-mobile-nav a,
.af-mobile-sign-in,
.af-public-footer a {
  color: var(--muted);
  font-weight: 720;
  text-decoration: none;
}
.af-public-nav a { font-size: .86rem; }
.af-public-nav a:hover,
.af-public-nav a[aria-current="page"],
.af-mobile-nav a:hover,
.af-mobile-nav a[aria-current="page"],
.af-mobile-sign-in:hover,
.af-public-footer a:hover { color: var(--ink); }
.af-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .55rem;
}
.af-shell-button {
  display: inline-flex;
  min-height: 2.85rem;
  padding: .65rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}
.af-shell-button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 .55rem 1.3rem rgba(18, 105, 79, .16);
}
.af-shell-button-primary:hover { background: #0d5a43; }
.af-shell-button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}
.af-brand:focus-visible,
.af-public-nav a:focus-visible,
.af-shell-button:focus-visible,
.af-mobile-menu summary:focus-visible,
.af-mobile-nav a:focus-visible,
.af-mobile-sign-in:focus-visible,
.af-public-footer a:focus-visible {
  outline: .2rem solid #000000;
  outline-offset: .16rem;
}
.af-mobile-menu { display: none; position: relative; }
.af-mobile-menu summary {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  list-style: none;
}
.af-mobile-menu summary::-webkit-details-marker { display: none; }
.af-mobile-menu summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.af-mobile-menu summary svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.af-mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .65rem);
  width: min(19rem, calc(100vw - 2rem));
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow);
}
.af-mobile-menu:not([open]) .af-mobile-menu-panel { display: none; }
.af-mobile-nav { display: grid; }
.af-mobile-nav a,
.af-mobile-sign-in {
  min-height: 2.8rem;
  padding: .7rem .8rem;
  border-radius: .65rem;
}
.af-mobile-nav a:hover,
.af-mobile-sign-in:hover { background: var(--green-tint); }
.af-mobile-sign-in {
  display: block;
  margin-top: .3rem;
  border-top: 1px solid var(--line);
}
.af-public-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.af-public-footer-inner {
  display: flex;
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.af-public-footer p { margin: 0; }
.af-public-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 920px) {
  .af-public-nav { gap: .8rem; }
  .af-public-nav a { font-size: .8rem; }
}
@media (max-width: 800px) {
  .af-public-header-inner { min-height: 4rem; gap: .7rem; flex-wrap: wrap; }
  .af-public-nav,
  .af-desktop-sign-in { display: none; }
  .af-header-actions { margin-left: auto; }
  .af-mobile-menu { display: block; }
  .af-shell-button { min-height: 2.75rem; padding-inline: .85rem; }
}
@media (max-width: 520px) {
  .af-public-header-inner { padding-inline: 1rem; }
  .af-brand { min-width: 0; gap: .5rem; flex: 1 1 100%; }
  .af-brand-mark { width: 2.35rem; height: 2.35rem; border-radius: .75rem; }
  .af-brand-name { min-width: 0; font-size: .9rem; white-space: normal; overflow-wrap: anywhere; }
  .af-shell-button { padding-inline: .72rem; font-size: .78rem; }
  .af-mobile-menu summary { width: 2.7rem; height: 2.7rem; }
  .af-header-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .af-mobile-menu { flex: 1 1 100%; }
  .af-shell-button-primary { min-width: 0; flex: 1 1 100%; overflow-wrap: anywhere; }
  .af-public-footer-inner { padding: 1.8rem 1rem; align-items: flex-start; flex-direction: column; }
  .af-public-footer p, .af-public-footer a { overflow-wrap: anywhere; }
  .af-public-footer nav { width: 100%; }
  .af-mobile-nav a,
  .af-mobile-sign-in { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 390px) {
  .af-shell-button { padding-inline: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  .af-public-header { backdrop-filter: none; }
}
