/* Public pages: shared header and footer (SiteHeader.dc.html, SiteFooter.dc.html) */
html { scroll-padding-top: 76px; }
/* Smooth only after a click inside the page: smooth on html also applies to the jump when a page
   opens at #anchor, and Chromium then stays at the top (links from other pages to /#how). */
html:focus-within { scroll-behavior: smooth; }
.site { min-height: 100vh; display: flex; flex-direction: column; background: var(--subtle); }
.site > main { flex: 1; width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 249, 247, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ECE9E4;
}
.site-header__inner {
  max-width: 1200px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header__nav { flex: 1; display: flex; flex-wrap: wrap; gap: 26px; font-size: 14px; }
.site-header__nav a { color: var(--text-2); }
.site-header__nav a:hover { color: var(--ink); }
.site-header__login { color: var(--ink); font-size: 14px; font-weight: 500; }
.site-header__login:hover { color: var(--accent); }
.site-header__cta { height: 40px; padding: 0 18px; border-radius: var(--r-10); }

/* Footer */
.site-footer { border-top: 1px solid #ECE9E4; background: #F3F1ED; }
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 36px 28px;
}
.site-footer__brand {
  grid-column: span 2;
  min-width: 0;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.site-footer__brand .logo__word { font-size: 21px; }
.site-footer__brand p { font-size: 14.5px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.site-footer__brand .btn { height: 42px; padding: 0 18px; border-radius: var(--r-10); font-size: 14px; }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.site-footer__col .eyebrow { font-size: 11.5px; }
.site-footer__col a { font-size: 14px; color: var(--prose); }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__bottom { padding-top: 24px; border-top: 1px solid #E2DED8; font-size: 13px; color: var(--text-3); }

@media (max-width: 900px) {
  .site-header__inner { gap: 16px; }
  .site-header__nav { display: none; }
  .site-header__inner > .logo { margin-right: auto; }
}
@media (max-width: 560px) {
  .site-header__inner { padding: 0 16px; gap: 10px; }
  .site-header__login { display: none; }
  .site-header__cta { padding: 0 14px; }
  .site-footer__inner { padding: 48px 16px 28px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .site-header__inner { gap: 8px; }
  .site-header .lang-toggle > * { padding: 5px 6px; }
  .site-header__cta { padding: 0 12px; }
}
