@font-face {
  font-family: "Instrument Sans";
  src: url("/shared/fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --canvas: #f7f8f4;
  --surface: #fff;
  --fg: #171a16;
  --muted: #545b52;
  --line: #d7dcd2;
  --lime: #b8dc00;
  --ui: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --site-width: 1440px;
  --gutter: clamp(20px, 4.5vw, 72px);
  --header-height: 72px;

  --paper: var(--canvas);
  --paper-2: var(--surface);
  --paper-3: #e9ece3;
  --paper-4: #dee3d7;
  --paper-rgb: 247, 248, 244;
  --ink: var(--fg);
  --ink-2: #353b34;
  --ink-3: var(--muted);
  --ink-4: #636b60;
  --ink-5: var(--line);
  --rule: var(--line);
  --rule-2: var(--line);
  --accent: #526400;
  --accent-2: #364600;
  --accent-3: #5a6a0b;
  --accent-ink: #fff;
  --ok: #486b35;
  --err: #a0372d;
  --display: var(--ui);
  --sans: var(--ui);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #101310;
  --surface: #191d19;
  --fg: #f4f6ef;
  --muted: #b1b9ad;
  --line: #373e35;
  --paper-rgb: 16, 19, 16;
  --paper-3: #252b24;
  --paper-4: #31392e;
  --ink-2: #d4dacf;
  --ink-4: #a0a99b;
  --accent: #bfdc55;
  --accent-2: #d5f17e;
  --accent-3: #cde965;
  --accent-ink: #171a16;
  --ok: #a4cd8b;
  --err: #ffaca3;
}
html, body { margin: 0; background: var(--canvas); color: var(--fg); font-family: var(--ui); }
*, *::before, *::after { box-sizing: border-box; }
::selection { background: #d4ed6c; color: #171a16; }
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.site-frame {
  width: 100%;
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.site-header__row { min-height: calc(var(--header-height) - 1px); display: flex; align-items: center; gap: 22px; }
.site-brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.site-brand img { display: block; height: auto; max-width: none; }
.site-brand__mark { width: 28px; }
.site-brand__word { width: 105px; }
[data-theme="dark"] .site-brand__word { filter: invert(1); }
.site-header a, .site-footer a { color: inherit; text-decoration: none; }
.site-nav, .site-footer__links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.site-nav { margin-left: auto; }
.site-nav a, .site-login, .site-footer__links a { font: 500 14px/1.35 var(--ui); }
.site-nav a, .site-login { display: inline-flex; min-height: 40px; align-items: center; }
.site-nav a:hover, .site-login:hover, .site-footer a:not(.site-brand):hover, .site-nav [aria-current] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-login { padding-left: 22px; border-left: 1px solid var(--line); min-height: 22px; }
.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--lime);
  border-radius: 8px;
  background: var(--lime);
  color: #171a16;
  text-decoration: none;
  font: 600 14px/1.2 var(--ui);
  cursor: pointer;
}
.site-button:hover { background: #caeb32; border-color: #caeb32; color: #171a16; }
.site-button.site-button--outline { background: transparent; color: var(--fg); border-color: var(--line); }
.site-button.site-button--outline:hover { background: var(--surface); border-color: var(--muted); }
.site-header .site-button { color: #171a16; min-height: 38px; padding-inline: 15px; }
.site-icon-button {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.site-icon-button:hover { background: var(--surface); border-color: var(--muted); }
[data-theme] .site-theme { display: inline-flex; }
.site-theme::before, .site-menu-toggle::before {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}
.site-theme { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.1 15.4a8.6 8.6 0 0 1-11.5-11.5 8.7 8.7 0 1 0 11.5 11.5Z'/%3E%3C/svg%3E"); }
[data-theme="dark"] .site-theme { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2m0 16v2M2 12h2m16 0h2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4m0-14.2-1.4 1.4M6.3 17.7l-1.4 1.4'/%3E%3C/svg%3E"); }
.site-demo-links, .site-nav .site-mobile-key { display: none; }
.site-footer { padding: 0; border-top: 1px solid var(--line); background: var(--canvas); color: var(--fg); }
.site-footer__top, .site-footer__bottom { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer__top { padding-block: 36px; }
.site-footer__bottom { border-top: 1px solid var(--line); padding-block: 22px 28px; }
.site-footer__links { flex-wrap: wrap; }
.site-footer__bottom, .site-footer__bottom a { font: 400 12px/1.5 var(--ui); color: var(--muted); }
.site-footer__bottom .site-footer__links { gap: 10px 20px; }

/* Keep the existing consent controls and choices in the same visual system. */
body .cc {
  left: auto; right: 16px; bottom: 16px; width: min(420px, calc(100% - 32px));
  max-width: none; margin: 0; padding: 14px 16px; gap: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg);
  box-shadow: 0 4px 22px #1013101a; font: 13px/1.42 var(--ui);
}
.cc .cc__t { flex: 1 1 225px; margin: 0; }
.cc .cc__t a { color: var(--fg); }
.cc .cc__b { display: flex; gap: 6px; }
.cc .cc__b button {
  min-width: 0; min-height: 32px; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  color: var(--fg); background: var(--canvas); font: 500 12px/1 var(--ui);
}
.cc .cc__b button:hover { border-color: var(--muted); }
.cc .cc__b button:focus-visible { outline: 2px solid var(--accent); }
@media (max-width: 760px) {
  :root { --header-height: 64px; }
  /* Keep menu actions tappable above the first-visit cookie notice on short screens. */
  .site-header:has(.site-menu-toggle[aria-expanded="true"]) { z-index: 1001; }
  .site-header__row { gap: 10px; flex-wrap: wrap; }
  .site-brand__mark { width: 25px; }
  .site-brand__word { width: 91px; }
  .site-login { margin-left: auto; padding: 0 4px; min-height: 40px; border: 0; }
  .site-header .site-header-key { display: none; }
  [data-theme] .site-menu-toggle { display: inline-flex; order: 5; }
  .site-menu-toggle { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M3 7h18M3 12h18M3 17h18'/%3E%3C/svg%3E"); }
  .site-menu-toggle[aria-expanded="true"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5 5 19'/%3E%3C/svg%3E"); }
  .site-nav { order: 6; flex: 0 1 100%; margin: 0; gap: 16px; flex-wrap: wrap; padding-bottom: 10px; }
  [data-theme] .site-nav { display: none; }
  .site-menu-toggle[aria-expanded="true"] + .site-nav {
    display: grid; gap: 2px; position: absolute; inset: 100% 0 auto;
    max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain;
    padding: 10px var(--gutter) 16px; border-bottom: 1px solid var(--line);
    background: var(--surface);
  }
  .site-nav a { padding-block: 6px; }
  .site-menu-toggle[aria-expanded="true"] + .site-nav .site-demo-links {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
    width: 100%; margin: 0 0 6px; padding: 0; list-style: none;
  }
  .site-demo-links a {
    display: flex; min-height: 44px; height: 100%; padding: 6px 12px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--canvas);
  }
  .site-demo-links a:is(:hover, :focus-visible) { border-color: var(--accent); }
  .site-nav .site-mobile-key { display: inline-flex; width: fit-content; }
  .site-footer__top, .site-footer__bottom { align-items: start; flex-direction: column; }
  .site-footer__top { padding-block: 26px; }
}
@media (max-width: 460px) {
  body .cc { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 11px 12px; gap: 8px 12px; }
  .cc .cc__b button { min-height: 30px; }
}
@media print {
  .site-header, .site-footer, body .cc { display: none; }
}
