/* The same navigation, appearance control and focus treatment on every page. */
.df-header {
  --shell-bg: #111315f5;
  --shell-panel: #111315;
  --shell-ink: #f0f3f5;
  --shell-muted: #aaafb4;
  --shell-line: #343a3e;
  --shell-accent: #87dbbc;
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--shell-bg);
  border-bottom: 1px solid var(--shell-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font: 400 13px/1.5 Manrope, system-ui, sans-serif;
  color: var(--shell-ink);
}
[data-theme="light"] .df-header {
  --shell-bg: #e8efedf5;
  --shell-panel: #e8efed;
  --shell-ink: #20272b;
  --shell-muted: #535e63;
  --shell-line: #a6b7b0;
  --shell-accent: #005e49;
}
.df-header * { box-sizing: border-box; }
.df-nav { width: min(1200px, calc(100% - 112px)); min-height: 80px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.df-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.df-brand img { display: block; height: auto; }
.df-brand .df-ghosts { width: 40px; }
.df-brand .df-logo { width: 155px; }
.df-brand .df-logo-light { display: none; }
[data-theme="light"] .df-brand .df-logo-dark { display: none; }
[data-theme="light"] .df-brand .df-logo-light { display: block; }
.df-header a { text-decoration: none; }
.df-links { display: flex; align-items: center; gap: 24px; }
.df-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--shell-muted); }
.df-links a:hover, .df-links a[aria-current="page"] { color: var(--shell-ink); }
.df-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--shell-accent); text-underline-offset: 7px; }
.df-actions { display: flex; align-items: center; gap: 10px; }
.df-header button, .df-download { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 44px; border: 1px solid var(--shell-line); border-radius: 8px; background: transparent; color: var(--shell-ink); font: 600 12px Manrope, system-ui, sans-serif; cursor: pointer; }
.df-header button:hover, .df-download:hover { border-color: var(--shell-accent); }
.df-header button { width: 44px; padding: 12px; }
.df-header svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.df-download { background: var(--shell-accent); color: var(--shell-panel); border-color: transparent; gap: 12px; padding: 0 16px; white-space: nowrap; }
.df-header .df-menu { display: none; flex-direction: column; gap: 6px; }
.df-menu span { width: 18px; height: 1px; background: currentColor; transition: transform .2s; }
.df-menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.df-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.df-header :focus-visible { outline: 2px solid var(--shell-accent); outline-offset: 4px; }
.df-skip { position: fixed; top: -100px; left: 20px; z-index: 200; padding: 12px 20px; border-radius: 6px; color: #111315; background: #87dbbc; font: 600 14px Manrope, sans-serif; }
.df-skip:focus { top: 10px; }
html { scroll-padding-top: 104px; }
@media (max-width: 1150px) { .df-nav { width: calc(100% - 72px); } }
@media (max-width: 1100px) {
  .df-header .df-menu { display: flex; }
  .df-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--shell-panel); padding: 18px 36px 24px; border-bottom: 1px solid var(--shell-line); box-shadow: 0 16px 24px #0002; }
  .df-links[data-open="true"] { display: flex; flex-wrap: wrap; gap: 8px 32px; }
  .df-links a { font-size: 14px; }
}
@media (max-width: 700px) {
  .df-nav { width: calc(100% - 40px); min-height: 72px; gap: 12px; }
  .df-brand { gap: 8px; }
  .df-brand .df-ghosts { width: 32px; }
  .df-brand .df-logo { width: 125px; }
  .df-actions { gap: 8px; }
  .df-download { padding-inline: 12px; }
  .df-download svg { display: none; }
  .df-links { padding: 12px 20px 20px; }
  .df-links[data-open="true"] { flex-direction: column; align-items: stretch; gap: 0; }
  .df-links a { min-height: 48px; }
  html { scroll-padding-top: 92px; }
}
@media (max-width: 480px) {
  .df-nav { width: calc(100% - 24px); min-height: 64px; gap: 6px; }
  .df-brand .df-logo { width: clamp(83px, 25vw, 116px); }
  .df-brand .df-ghosts { width: 26px; }
  .df-brand, .df-actions { gap: 4px; }
  .df-download { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { .df-menu span { transition: none; } }
@media (prefers-contrast: more) { .df-header { background: var(--bg, var(--bg-deep)); backdrop-filter: none; } }

.df-footer {
  --footer-ink: #edf1f2;
  --footer-muted: #aab3b5;
  --footer-accent: #87dbbc;
  --footer-line: #343a3e;
  color: var(--footer-muted);
  background: #111315;
  border-top: 1px solid var(--footer-line);
  font: 400 14px/1.6 Manrope, system-ui, sans-serif;
}
[data-theme="light"] .df-footer {
  --footer-ink: #20272b;
  --footer-muted: #535e63;
  --footer-accent: #005e49;
  --footer-line: #b6c5bf;
  background: #e8efed;
}
.df-footer__inner { width: min(1200px, calc(100% - 80px)); margin: auto; padding: 48px 0 28px; }
.df-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--footer-ink); text-decoration: none; }
.df-footer a:hover, .df-footer a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.df-footer a:focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 3px; }
.df-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; }
.df-footer__top, .df-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.df-footer__brand img { width: 145px; height: auto; }
.df-footer .df-footer__logo-light, [data-theme="light"] .df-footer .df-footer__logo-dark { display: none; }
[data-theme="light"] .df-footer .df-footer__logo-light { display: block; }
.df-footer p { margin: 0; color: inherit; font-size: inherit; }
.df-footer__actions { margin-top: 6px; }
.df-footer__actions a { gap: 7px; }
.df-footer .df-footer__download { color: var(--footer-accent); font-weight: 650; }
.df-footer__bottom { margin-top: 24px; border-top: 1px solid var(--footer-line); font-size: 13px; padding-top: 10px; }
.df-footer__bottom a { color: var(--footer-muted); }
.df-footer blockquote { margin: 20px 0 0; font-size: 13px; }
.df-footer cite { display: block; font-size: 12px; margin-top: 4px; font-style: normal; }
@media (max-width: 700px) {
  .df-footer__inner { width: calc(100% - 40px); padding: 28px 0; }
  .df-footer__top, .df-footer__bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .df-footer__bottom { margin-top: 16px; padding-top: 20px; gap: 0; }
  .df-footer nav { gap: 0 18px; }
}
@media (max-width: 1100px) {
  .df-links { max-height: calc(100dvh - 80px); overflow-y: auto; }
}
