.lc-global-nav {
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 12px 16px 0;
  background: transparent;
  color: #111827;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lc-global-nav *,
.lc-global-nav *::before,
.lc-global-nav *::after {
  box-sizing: border-box;
}

.lc-global-nav a {
  text-decoration: none;
}

.lc-global-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1360px, 100%);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 18px;
  gap: 18px;
  border: 1px solid rgba(207, 202, 194, 0.94);
  border-top-color: rgba(255, 69, 58, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.1);
  backdrop-filter: blur(18px);
}

.lc-global-nav__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: #111827;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lc-global-nav__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff453a, #ea580c);
  box-shadow: 0 5px 16px rgba(201, 47, 40, 0.16);
}

.lc-global-nav__logo img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.lc-global-nav__brand-accent,
.lc-global-nav [aria-current="page"],
.lc-global-nav__dropdown-summary[data-current="true"] {
  color: #c92f28;
}

.lc-global-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(9px, 1.15vw, 16px);
  min-width: 0;
}

.lc-global-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.lc-global-nav__link {
  flex: 0 0 auto;
  color: #545b66;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}

.lc-global-nav__link:hover,
.lc-global-nav__link:focus-visible {
  color: #111827;
}

.lc-global-nav .lc-global-nav__dropdown {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lc-global-nav__dropdown-summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  list-style: none;
}

.lc-global-nav__dropdown-summary::marker {
  content: '';
}

.lc-global-nav__dropdown-summary::-webkit-details-marker {
  display: none;
}

.lc-global-nav__chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.lc-global-nav__dropdown[open] .lc-global-nav__chevron {
  transform: rotate(180deg);
}

.lc-global-nav__dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 20;
  display: grid;
  width: 210px;
  padding: 8px;
  border: 1px solid #dedbd4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.lc-global-nav__dropdown:not([open]) .lc-global-nav__dropdown-panel {
  display: none;
}

.lc-global-nav__dropdown-panel .lc-global-nav__link {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 7px;
}

.lc-global-nav__dropdown-panel .lc-global-nav__link:hover,
.lc-global-nav__dropdown-panel .lc-global-nav__link:focus-visible,
.lc-global-nav__dropdown-panel .lc-global-nav__link[aria-current="page"] {
  background: #fff1ef;
  color: #8f1f1b;
}

.lc-global-nav__link--account {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #c92f28;
  border-radius: 6px;
  color: #fff;
  background: #c92f28;
}

.lc-global-nav__link--account:hover,
.lc-global-nav__link--account:focus-visible,
.lc-global-nav__link--account[aria-current="page"] {
  border-color: #a9231e;
  background: #a9231e;
  color: #fff;
}

.lc-global-nav__menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #cfcac2;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  cursor: pointer;
}

.lc-theme-switcher {
  display: inline-grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, 34px);
  gap: 2px;
  padding: 3px;
  border: 1px solid #d6d1c9;
  border-radius: 999px;
  background: #ece8e1;
}

.lc-theme-switcher__option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.lc-theme-switcher__option svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.lc-theme-switcher__option span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lc-theme-switcher__option:hover {
  color: #111827;
}

.lc-theme-switcher__option[aria-pressed="true"] {
  background: #c92f28;
  color: #fff;
  box-shadow: 0 3px 10px rgba(201, 47, 40, 0.24);
}

.lc-global-nav__menu-button svg {
  width: 20px;
  height: 20px;
}

.lc-global-nav__mobile {
  width: min(1360px, 100%);
  margin: 8px auto 0;
  border: 1px solid #dedbd4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(18px);
}

.lc-global-nav__mobile[hidden] {
  display: none !important;
}

.lc-global-nav__mobile-inner {
  display: grid;
  width: min(1280px, 100%);
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  margin: 0 auto;
  padding: 12px 16px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lc-theme-switcher--mobile {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-bottom: 10px;
  border-radius: 12px;
}

.lc-theme-switcher--mobile .lc-theme-switcher__option {
  width: 100%;
  gap: 8px;
  border-radius: 9px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lc-theme-switcher--mobile .lc-theme-switcher__option span {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.lc-global-nav__mobile .lc-global-nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid #eeeae4;
}

.lc-global-nav__mobile .lc-global-nav__link--account {
  margin-top: 10px;
  border: 1px solid #c92f28;
}

.lc-global-nav__mobile .lc-global-nav__dropdown-summary {
  justify-content: space-between;
}

.lc-global-nav__mobile .lc-global-nav__dropdown-panel {
  position: static;
  width: auto;
  margin: 4px 0 8px 12px;
  padding: 4px;
  transform: none;
  box-shadow: none;
}

.lc-global-nav__mobile .lc-global-nav__dropdown-panel .lc-global-nav__link {
  border-bottom: 0;
}

.lc-global-nav__link:focus-visible,
.lc-global-nav__menu-button:focus-visible,
.lc-theme-switcher__option:focus-visible {
  outline: 2px solid #c92f28;
  outline-offset: 3px;
}

html.dark {
  color-scheme: dark;
  background: #050505;
  --bg: #050505;
  --panel: #0d0d0d;
  --card: #111111;
  --card2: #171717;
  --surface: #0f0f11;
  --surface2: #171717;
  --surface3: #202024;
  --border: #27272a;
  --border2: #3f3f46;
  --text: #ffffff;
  --muted: #a1a1aa;
  --muted2: #8d8d96;
  --soft: #d4d4d8;
}

html.dark .lc-global-nav {
  color: #fff;
}

html.dark .lc-global-nav__inner {
  border-color: rgba(63, 63, 70, 0.94);
  border-top-color: rgba(255, 69, 58, 0.82);
  background: rgba(5, 5, 5, 0.92);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

html.dark .lc-global-nav__brand,
html.dark .lc-global-nav__link:hover,
html.dark .lc-global-nav__link:focus-visible {
  color: #fff;
}

html.dark .lc-global-nav__link {
  color: #a1a1aa;
}

html.dark .lc-global-nav__brand-accent,
html.dark .lc-global-nav [aria-current="page"],
html.dark .lc-global-nav__dropdown-summary[data-current="true"] {
  color: #ff6961;
}

html.dark .lc-global-nav__link--account,
html.dark .lc-global-nav__link--account[aria-current="page"] {
  color: #fff;
}

html.dark .lc-global-nav__menu-button {
  border-color: #3f3f46;
  background: #111;
  color: #fff;
}

html.dark .lc-global-nav__mobile {
  border-color: #27272a;
  background: rgba(9, 9, 11, 0.98);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

html.dark .lc-global-nav__dropdown-panel {
  border-color: #27272a;
  background: rgba(9, 9, 11, 0.98);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.52);
}

html.dark .lc-global-nav__dropdown-panel .lc-global-nav__link:hover,
html.dark .lc-global-nav__dropdown-panel .lc-global-nav__link:focus-visible,
html.dark .lc-global-nav__dropdown-panel .lc-global-nav__link[aria-current="page"] {
  background: rgba(255, 69, 58, 0.12);
  color: #fff;
}

html.dark .lc-global-nav__mobile .lc-global-nav__link {
  border-bottom-color: #27272a;
}

html.dark .lc-theme-switcher {
  border-color: #3f3f46;
  background: #18181b;
}

html.dark .lc-theme-switcher__option {
  color: #a1a1aa;
}

html.dark .lc-theme-switcher__option:hover {
  color: #fff;
}

html.dark .lc-theme-switcher__option[aria-pressed="true"] {
  background: #ff453a;
  color: #fff;
}

html.light {
  color-scheme: light;
  background: #faf9f6;
  --bg: #faf9f6;
  --panel: #ffffff;
  --card: #ffffff;
  --card2: #f7f5f1;
  --surface: #ffffff;
  --surface2: #f7f5f1;
  --surface3: #ece8e1;
  --border: #d7dce4;
  --border2: #aeb7c4;
  --text: #111827;
  --muted: #64748b;
  --muted2: #6b7280;
  --soft: #334155;
}

html.light body:not(.lc-account-page) {
  background-color: #faf9f6 !important;
  color: #111827;
}

html.light body:not(.lc-account-page)::before {
  background-image:
    linear-gradient(rgba(201, 47, 40, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 47, 40, 0.055) 1px, transparent 1px) !important;
}

html.light body:not(.lc-account-page) :where(h1, h2, h3, h4) { color: #111827; }
html.light body:not(.lc-account-page) :where(.desc, .lead, .section-copy, .score-caption, .card p, .section p, .section li, .list li) { color: #475569 !important; }
html.light body:not(.lc-account-page) :where(.muted, .meta, .updated, .runtime-launch-disclosure) { color: #64748b !important; }

html.light body:not(.lc-account-page) :where(
  .hero-copy, .hero-panel, .section, .spec-card, .model-card, .score-card,
  .mini, .step, .meta-grid .meta, .fact, .panel, .metric,
  .card, .stat, .hero-media, .index-list a, .next-grid a, .next a,
  .similar a, .hardware-fit a, .source-links a, .source-links code
) {
  border-color: #d7dce4 !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.055) !important;
}

html.light body:not(.lc-account-page) :where(.hero-copy, .panel, .status-head) {
  background:
    radial-gradient(circle at 0 0, rgba(255, 69, 58, 0.09), transparent 44%),
    #fff !important;
}

html.light body:not(.lc-account-page) :where(.btn.secondary, .lc-ai-button) {
  border-color: #cbd5e1 !important;
  background: #fff !important;
  color: #111827 !important;
}

html.light body:not(.lc-account-page) :where(.btn:not(.secondary), .lc-ai-button-primary) {
  border-color: #c92f28 !important;
  background: #c92f28 !important;
  color: #fff !important;
  box-shadow: none !important;
}

html.light body:not(.lc-account-page) :where(.tag, .pill, code) {
  border-color: #d7dce4 !important;
  background: #f7f5f1 !important;
  color: #334155 !important;
}

html.light body:not(.lc-account-page) :where(.track, .bench-bar, .metric-track) { background: #e5e7eb !important; }
html.light body:not(.lc-account-page) :where(.breadcrumb a, .meta .v, .similar a, .next a, .next-grid a, .hardware-fit a, .source-links a) { color: #111827 !important; }

html.light body:not(.lc-account-page) :where(input, select, textarea) {
  border-color: #aeb7c4;
  background-color: #fff;
  color: #111827;
}

html.light body:not(.lc-account-page) :where(input, select, textarea):focus-visible {
  border-color: #c92f28;
  outline: 2px solid rgba(201, 47, 40, 0.22);
  outline-offset: 1px;
}

html.light .article-shell,
html.light .signal-card,
html.light .metric-card {
  border-color: #d7dce4 !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.06) !important;
}

html.light .metric-card {
  background:
    radial-gradient(circle at top left, rgba(255, 69, 58, 0.08), transparent 48%),
    #fff !important;
}

html.light .prose-custom :where(h2, h3, strong),
html.light .article-shell :where(.text-white, thead, th),
html.light .article-shell [class~="text-white"] {
  color: #111827 !important;
}

html.light .prose-custom :where(p, li),
html.light .article-shell tbody {
  color: #475569 !important;
}

html.light .prose-custom a { color: #c92f28 !important; }
html.light .prose-custom a:hover { color: #8f1f1b !important; }
html.light .article-shell :where(th, td) { border-bottom-color: #e5e7eb !important; }
html.light .article-shell [class~="bg-white/5"] { background: #f7f5f1 !important; }
html.light .article-shell [class~="border-white/10"],
html.light .article-shell [class~="border-white/15"] { border-color: #d7dce4 !important; }
html.light #blog-mobile-menu { background: rgba(250, 249, 246, 0.98) !important; }

@media (max-width: 1180px) and (min-width: 981px) {
  .lc-global-nav__inner { gap: 12px; padding-inline: 14px; }
  .lc-global-nav__brand { gap: 9px; font-size: 20px; }
  .lc-global-nav__links { gap: 8px; }
  .lc-global-nav__link { font-size: 11px; }
  .lc-global-nav__link--account { padding-inline: 10px; }
}

@media (max-width: 980px) {
  .lc-global-nav {
    padding: 8px 10px 0;
  }

  .lc-global-nav__inner {
    min-height: 64px;
    padding: 0 16px;
    border-radius: 15px;
  }

  .lc-global-nav__brand {
    font-size: 21px;
  }

  .lc-global-nav__links {
    display: none;
  }

  .lc-global-nav__actions {
    display: none;
  }

  .lc-global-nav__menu-button {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lc-global-nav__link,
  .lc-global-nav__chevron,
  .lc-theme-switcher__option {
    transition: none;
  }
}
