/* Public navigation and footer share one responsive layout contract. */
.public-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: none;
  height: 72px;
  margin: 0;
  padding: 0 max(24px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid #d7ded8;
  background: #f4f5f2;
  backdrop-filter: none;
  letter-spacing: 0;
}
.public-topbar .brand { flex-shrink: 0; gap: 10px; font-size: 18px; }
.public-topbar .brand-icon {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: url('/favicon.svg') center / 30px 30px no-repeat;
  box-shadow: none;
}
.public-topbar .brand-icon::after { content: none; }
.public-topbar .nav-links { display: flex; gap: 24px; }
.public-topbar .nav-actions { display: flex; gap: 12px; min-width: 0; margin-left: auto; }
.public-topbar a { text-decoration: none; white-space: nowrap; letter-spacing: 0; }
.public-topbar .nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: #48574f; font-size: 14px; }
.public-topbar .auth-status { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-topbar .nav-cta, .public-topbar .nav-console-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}
.public-topbar .nav-cta { background: #19715b; color: white; }
.public-topbar .nav-console-cta { border: 1px solid #d7ded8; background: #fbfcfa; color: #17221f; }
.public-topbar .nav-console-cta svg { width: 14px; height: 14px; }
.public-topbar [hidden] { display: none !important; }
.public-menu { display: none; position: relative; flex-shrink: 0; }
.public-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d7ded8;
  border-radius: 6px;
  color: #17221f;
  cursor: pointer;
  list-style: none;
  font-size: 22px;
}
.public-menu summary::-webkit-details-marker { display: none; }
.public-menu[open] summary { background: #e6f0eb; }
.public-menu nav {
  position: absolute;
  top: 52px;
  right: 0;
  width: 220px;
  display: grid;
  padding: 8px;
  border: 1px solid #d7ded8;
  border-radius: 6px;
  background: #fbfcfa;
  box-shadow: 0 8px 24px rgba(23,34,31,.12);
}
.public-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: #17221f; }
.public-topbar a:hover, .public-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.public-menu nav a:hover { background: #e6f0eb; }
.public-topbar :focus-visible, .public-footer :focus-visible { outline: 2px solid #19715b; outline-offset: 3px; }
.public-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
  padding: 28px 0 38px;
  gap: 34px;
  border-top: 1px solid #d7ded8;
  letter-spacing: 0;
}
.public-footer .footer-brand-tagline { display: grid; gap: 8px; max-width: 340px; }
.public-footer .footer-brand-tagline > span:first-child { font-size: 16px; font-weight: 760; color: #17221f; }
.public-footer .footer-brand-tagline > span:last-child { font-size: 13px; line-height: 1.55; color: #52635d; }
.public-footer .footer-brand-tagline > span:last-child strong { color: #19715b; font-weight: 800; }
.public-footer .footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 22px; }
.public-footer .footer-group { display: grid; gap: 5px; align-content: start; min-width: 0; }
.public-footer .footer-group > span { margin-bottom: 2px; color: #31453e; font-size: 12px; font-weight: 760; line-height: 1.4; text-transform: uppercase; }
.public-footer .footer-group a { display: inline-flex; min-height: 24px; align-items: center; font-size: 13px; font-weight: 540; line-height: 1.45; color: #5c6c66; text-decoration: none; }
.public-footer .footer-group a svg { width: 15px; height: 15px; margin-right: 7px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; }
.public-footer .footer-group a span { min-width: 0; }
.public-footer .footer-group a:hover { color: #15362d; }
.docs-article .docs-breadcrumb { flex-wrap: nowrap; white-space: nowrap; }
.docs-article .docs-article-header h1 { max-width: 900px; text-wrap: pretty; }
.docs-article .docs-article-header .lede { max-width: 760px; margin-right: 0; margin-left: 0; text-align: left; }
.legal-page { width: min(900px, calc(100% - 48px)); }
.legal-page h1 { max-width: 900px; text-wrap: pretty; }
.legal-page .lede { max-width: 760px; margin-right: 0; margin-left: 0; text-align: left; }
.public-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  width: min(calc(100% - 48px), 1240px);
  margin: 16px auto 0;
  color: #48574f;
  font-size: 14px;
}
.public-section-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.public-section-nav a[aria-current], .public-topbar a[aria-current] { color: #19715b; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.public-section-nav a:focus-visible { outline: 2px solid #19715b; outline-offset: 3px; }
.docs-article, .legal-page { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .public-topbar .auth-status { display: none; }
}
@media (max-width: 1000px) {
  .public-topbar .nav-links { display: none; }
  .public-menu { display: block; }
  .public-footer { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .public-topbar { height: 64px; padding: 0 18px; gap: 8px; }
  .public-topbar .brand { font-size: 16px; gap: 6px; }
  .public-topbar .brand-icon { width: 28px; height: 28px; background-size: 26px 26px; }
  .public-topbar .nav-actions { gap: 8px; }
  .public-topbar .nav-cta { font-size: 12px; padding: 0 10px; }
  .public-topbar .nav-console-cta { width: 44px; min-width: 44px; padding: 0; }
  .public-topbar .nav-console-cta span { display: none; }
  .public-footer { width: min(calc(100% - 28px), 1180px); grid-template-columns: 1fr; gap: 24px; padding: 28px 0 38px; }
  .public-footer .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .public-footer .footer-group a { min-height: 40px; }
}
