:root {
  color-scheme: light;
  --blue: #2563eb;
  --royal: var(--blue);
  --violet: #6030c0;
  --cyan: #10a0c0;
  --indigo: #1e3a8a;
  --magenta: #ec4899;
  --bg: #f5f7ff;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --white: var(--surface);
  --bg2: var(--surface-2);
  --ink: #1f2937;
  --muted: #56627a;
  --ink-soft: var(--muted);
  --line: #dce3f3;
  --title: #1e3a8a;
  --indigo-text: #1e3a8a;
  --violet-text: #6030c0;
  --link: #1d4ed8;
  --violet-tint: #ede9fe;
  --royal-soft: #e8efff;
  --violet-soft: #ede9fe;
  --cyan-soft: #e5f9fd;
  --magenta-soft: #fce7f3;
  --code-ink: #c7d2fe;
  --pos: #08738b;
  --brand-soft: var(--surface-2);
  --grad: linear-gradient(115deg, #1d4ed8, #6030c0);
  --font:
    "Segoe UI", "Segoe UI Variable Text", system-ui, -apple-system, Arial,
    sans-serif;
  --mono: Consolas, "Courier New", monospace;
  --radius: 16px;
  --shadow: 0 16px 48px -26px rgb(30 58 138 / 28%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-height: 80px;
  --content-width: 1200px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1226;
  --surface: #152142;
  --surface-2: #101a35;
  --ink: #e6eaf5;
  --muted: #acb8d2;
  --line: #2a3a60;
  --title: #b7caff;
  --indigo-text: #c7d2fe;
  --violet-text: #d2bfff;
  --link: #a9c4ff;
  --violet-tint: #2a2152;
  --royal-soft: #1b2d50;
  --violet-soft: #2a2152;
  --cyan-soft: #103444;
  --magenta-soft: #37172d;
  --pos: #7fddee;
  --shadow: 0 16px 48px -26px rgb(0 0 0 / 60%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--link);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}

.site-container {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--surface);
  transform: translateY(-180%);
  box-shadow: var(--shadow);
  font-weight: 700;
}
.skip-link:focus {
  transform: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 75;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
@supports (backdrop-filter: blur(16px)) {
  .site-header {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(16px);
  }
}
.site-header.scrolled {
  box-shadow: 0 8px 30px -24px rgb(30 58 138 / 45%);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
  text-decoration: none;
  color: var(--title);
}
.site-logo {
  display: block;
  width: 44px;
  height: 44px;
  padding: 3px;
  background: #fff;
  border-radius: 12px;
  flex: none;
  object-fit: contain;
}
.site-brand-copy {
  min-width: 0;
}
.site-brand strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.site-brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.025em;
  margin-top: 2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--link);
  background: var(--surface-2);
}
.site-nav a[aria-current="page"] {
  color: var(--link);
  background: var(--royal-soft);
}
.site-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--indigo-text);
  flex: none;
}
.site-icon-button:hover {
  border-color: var(--link);
  background: var(--surface-2);
}
.site-icon-button svg {
  display: block;
  width: 20px;
  height: 20px;
}
.site-menu {
  display: none;
}
.site-theme .theme-sun {
  display: none;
}
html.no-js .site-theme {
  display: none;
}
html[data-theme="dark"] .site-theme .theme-sun {
  display: block;
}
html[data-theme="dark"] .site-theme .theme-moon {
  display: none;
}
.site-menu .menu-close {
  display: none;
}
.site-menu[aria-expanded="true"] .menu-open {
  display: none;
}
.site-menu[aria-expanded="true"] .menu-close {
  display: block;
}

.site-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--link);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.site-button svg {
  width: 18px;
  height: 18px;
}
.site-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.site-button-primary {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}
.site-button-primary:hover {
  color: #fff;
}
.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}
.page-breadcrumb a {
  text-decoration: none;
}
.product-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--indigo-text);
  font-size: 0.8rem;
  font-weight: 700;
}
.product-label img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 0;
  padding: 36px 0 24px;
}
.site-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
}
.site-footer-brand strong {
  display: block;
  color: var(--indigo-text);
  font-size: 0.92rem;
}
.site-footer-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.82rem;
}
.site-footer-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  max-width: 80ch;
}
.site-status {
  position: fixed;
  z-index: 90;
  bottom: 20px;
  left: 50%;
  max-width: min(560px, calc(100% - 32px));
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .site-header-inner {
    gap: 16px;
  }
  .site-menu {
    display: inline-grid;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 24px 18px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    min-height: 48px;
  }
  html.no-js .site-nav {
    display: flex;
    position: static;
    padding: 0 0 12px;
    width: 100%;
    box-shadow: none;
    border: 0;
  }
  html.no-js .site-header-inner {
    flex-wrap: wrap;
  }
  html.no-js .site-menu {
    display: none;
  }
}
@media (max-width: 600px) {
  :root {
    --header-height: 76px;
  }
  .site-container {
    width: calc(100% - 32px);
  }
  .site-header-inner {
    gap: 10px;
  }
  .site-brand {
    gap: 8px;
  }
  .site-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .site-brand strong {
    font-size: 0.8rem;
    max-width: 25ch;
  }
  .site-brand small {
    font-size: 0.64rem;
  }
  .site-controls {
    gap: 6px;
  }
  .site-footer {
    padding-block: 28px 20px;
  }
  .site-footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  :root,
  html[data-theme] {
    color-scheme: light;
    --bg: #fff;
    --surface: #fff;
    --surface-2: #f4f6fa;
    --ink: #1f2937;
    --muted: #4b5563;
    --title: #1e3a8a;
    --indigo-text: #1e3a8a;
    --violet-text: #6030c0;
    --link: #1e3a8a;
    --line: #d1d5db;
    --shadow: none;
  }
  body {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .site-header,
  .site-footer,
  .site-status,
  .skip-link,
  .page-breadcrumb,
  [data-no-print] {
    display: none !important;
  }
  :focus-visible {
    outline: none;
  }
}
