/* Public header — invariant 56px, accent layer, brand left, sign-in right.
   Geometry stays identical across every public page (Landing, Sign in, Forgot,
   Imprint, Privacy). */

.public-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-public-h);
  background: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  overflow: hidden;
  flex: 0 0 auto;
}
/* Two-layer geometry mirrors the accordion-trigger pattern:
   .public-header-pad   — full-width, page-inset (mobile safe-area padding)
   .public-header-row   — max-width 920 centered, flex container.
   The brand thus aligns with the chevron column, the sign-in pill aligns
   with the right edge of the subscribe button — both at every viewport. */
.public-header-pad {
  height: 100%;
}
.public-header-row {
  height: 100%;
  max-width: var(--max-hero);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-width: 0;
}
.brand {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

/* Header sign-in pill — filled --ink, --accent slide-in on hover.
   Same hover machinery as form submit buttons. On /signin itself the pill
   gets aria-current=page, becomes inert, color-only. */
.header-login {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--bg);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--duration-medium) var(--ease-standard),
              filter var(--duration-quick) var(--ease-standard);
}
.header-login::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform var(--duration-medium) var(--ease-standard);
  z-index: -1;
}
.header-login > * { position: relative; z-index: 1; }
.header-login:hover::after { transform: translateX(0); }
.header-login:hover { color: var(--ink); }
.header-login:active { transform: translateY(1px); filter: brightness(0.97); }
.header-login:focus-visible { box-shadow: inset 0 0 0 2px var(--bg); }

/* Hairline rule above footer — full-bleed, mandatory on every page */
.footer-rule {
  height: 1px;
  background: var(--rule);
  width: 100%;
  flex: 0 0 auto;
}

.public-footer {
  height: var(--footer-public-h);
  overflow: hidden;
  flex: 0 0 auto;
}
.public-footer-pad {
  height: 100%;
}
.footer-row {
  height: 100%;
  max-width: var(--max-hero);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
}
.footer-copy {
  font-family: var(--body-font);
  font-size: var(--step--1);
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.footer-link {
  font-family: var(--body-font);
  font-size: var(--step--1);
  color: var(--ink-mute);
  text-decoration: none;
  transition: color var(--duration-quick) var(--ease-standard);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-link[aria-current="page"] {
  color: var(--ink);
}
