/* Shared navigation for the landing pages, documentation and legal pages. */
.site-header.top { display:flex; align-items:center; gap:24px; height:88px; border-bottom:1px solid var(--line); }
.site-header .brand { flex:none; font-size:21px; gap:10px; letter-spacing:-.4px; }
.site-header .brand svg { width:36px; height:36px; }
.site-header .nav { display:flex; gap:2px; margin-left:auto; }
.site-header .nav a { height:40px; padding:0 12px; font-size:13px; white-space:nowrap; }
.site-header .top-actions { display:flex; align-items:center; gap:6px; margin-left:0; flex:none; }
.header-icon, .lang-switch { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; padding:0; border:1px solid var(--line); border-radius:12px; color:var(--ink-muted); transition:color 180ms ease,background 180ms ease,border-color 180ms ease; }
.header-icon:hover, .lang-switch:hover { background:var(--tile); color:var(--ink); border-color:var(--line-strong); }
.header-icon svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.header-icon img { width:22px; height:22px; }
.lang-switch { font:600 12px/1 var(--font-sans); }
.site-header .header-download svg { display:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.site-header .header-download { height:40px; padding-inline:20px; margin-left:4px; font-size:13px; }
footer.site-footer.wrap { display:flex; align-items:center; justify-content:space-between; gap:24px 48px; margin-top:88px; padding-top:32px; padding-bottom:36px; font-size:12px; }
.site-footer .brand { color:var(--ink); font-size:17px; gap:10px; }
.site-footer .brand svg { width:30px; height:30px; }
.footer-intro p { margin:10px 0 0; color:var(--ink-muted); font-size:12px; }
.site-footer .footer-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:12px 24px; max-width:570px; }
.site-footer .footer-links a { padding-block:4px; overflow-wrap:anywhere; }
@media(max-width:1000px) {
  .site-header.top { flex-wrap:wrap; height:auto; min-height:80px; padding-top:16px; padding-bottom:12px; gap:10px 16px; }
  .site-header .top-actions { margin-left:auto; }
  .site-header .nav { order:3; width:100%; margin:0; justify-content:center; }
  .site-header .nav a { font-size:13px; }
}
@media(max-width:640px) {
  .site-header.top { padding-top:14px; padding-bottom:8px; gap:8px; }
  .site-header .brand { font-size:18px; gap:8px; }
  .site-header .brand svg { width:30px; height:30px; }
  .site-header .top-actions { gap:4px; }
  .header-icon, .lang-switch { width:36px; height:36px; border-radius:10px; }
  .site-header .header-download { height:36px; padding-inline:12px; margin-left:2px; font-size:12px; }
  .site-header .nav { flex-wrap:wrap; }
  .site-header .nav a { padding-inline:9px; height:36px; font-size:12px; }
  footer.site-footer.wrap { margin-top:64px; align-items:flex-start; gap:24px; padding-top:28px; padding-bottom:32px; }
  .site-footer .footer-links { justify-content:flex-start; gap:8px 20px; }
}
@media(max-width:370px) {
  .site-header .brand { font-size:16px; gap:6px; }
  .site-header .brand svg { width:26px; height:26px; }
  .header-icon, .lang-switch { width:32px; height:36px; }
  .site-header .top-actions { gap:3px; }
  .site-header .header-download { width:36px; padding:0; }
  .site-header .header-download span { display:none; }
  .site-header .header-download svg { display:block; }
  .site-header .nav a { padding-inline:6px; }
}
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.doc-card { display: block; padding: 24px; border-radius: var(--r-card); background: var(--tile); border: 1px solid var(--line); }
.doc-card:hover { background: var(--tile-high); }
.doc-card h2 { margin: 0 0 8px; font-size: 20px; }
.doc-card p { margin: 0; color: var(--ink-muted); }
@media (max-width: 560px) {
  .btn-docs { height: 36px; padding: 0 14px; font-size: 14px; }
  .lang-switch { height: 36px; min-width: 40px; }
  .doc-cards { grid-template-columns: minmax(0, 1fr); }
}
.legal .doc-card, .legal .doc-card * { text-decoration: none; }
.legal .doc-card h2 { color: var(--ink); }

/* Keep short article pages tall enough for the footer to reach the viewport bottom. */
body:has(> main.legal) {
  min-height: calc(100vh - 16px);
  min-height: calc(100dvh - 16px);
  display: flex;
  flex-direction: column;
}
body:has(> main.legal) > header,
body:has(> main.legal) > footer { width: 100%; flex-shrink: 0; }
body:has(> main.legal) > main.legal { flex: 1 0 auto; width: 100%; }
body:has(> main.legal) > footer.wrap { margin-top: 32px; }
