/* Cosmos Marketplace — Apple-minimalist design system (Light #ffffff/#f5f5f7, Dark #000000/#161618). */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --card-2: #f5f5f7;
  --text: #1d1d1f;
  --secondary: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.05);
  --line-strong: rgba(0, 0, 0, 0.16);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-fg: #ffffff;
  --accent-soft: rgba(0, 113, 227, 0.09);
  --good: #15803d;
  --good-soft: rgba(21, 128, 61, 0.1);
  --header-bg: rgba(255, 255, 255, 0.78);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 18px 44px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang SC', 'Segoe UI Variable Text',
    'Segoe UI', 'Microsoft YaHei UI', system-ui, sans-serif;
  --mono: 'SF Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 52px;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #111113;
  --card: #161618;
  --card-2: #1c1c1e;
  --text: #f5f5f7;
  --secondary: #a1a1a6;
  --muted: #86868b;
  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #2997ff;
  --accent-hover: #47a6ff;
  --accent-fg: #000000;
  --accent-soft: rgba(41, 151, 255, 0.16);
  --good: #30d158;
  --good-soft: rgba(48, 209, 88, 0.15);
  --header-bg: rgba(18, 18, 20, 0.78);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-float: 0 24px 56px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-color: var(--muted) transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.js-only {
  display: none !important;
}

html.js-ready .js-only {
  display: inline-flex !important;
}

html.js-ready .lang-switch {
  display: inline-flex !important;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 32px) 64px;
  flex: 1;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

header.top {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
  object-fit: contain;
}

.brand-mark--light {
  display: none;
}

:root[data-theme='dark'] .brand-mark--ink {
  display: none;
}

:root[data-theme='dark'] .brand-mark--light {
  display: block;
}

.nav-links {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 980px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.nav-links a:hover {
  background: var(--card-2);
  color: var(--text);
}

.nav-links a.on {
  color: var(--accent);
  font-weight: 600;
}

.nav-links a.ext {
  color: var(--muted);
}

.nav-links a.ext:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--card-2);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 980px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

:root[data-theme='dark'] .lang-btn.is-active {
  background: #2c2c2e;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.theme-toggle {
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 980px;
  color: var(--secondary);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.theme-toggle:hover {
  background: var(--card-2);
  color: var(--text);
}

.theme-track {
  position: relative;
  display: block;
  flex: none;
  width: 34px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  background: var(--card-2);
}

.theme-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary);
  transition:
    transform 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.theme-toggle[aria-pressed='true'] .theme-knob {
  transform: translateX(14px);
  background: var(--accent);
}

.nav-toggle,
html.js-ready .nav-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 980px;
  color: var(--text);
  position: relative;
}

/* Hero & Search */

.hero {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 40px);
  margin: 6px 0 28px;
  box-shadow: var(--shadow-card);
}

.hero--center {
  text-align: center;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero p {
  margin: 0 0 22px;
  max-width: 58ch;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.6;
}

.hero--center p {
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero--center .search-bar {
  justify-content: center;
  max-width: 780px;
  margin-inline: auto;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: min(260px, 100%);
}

.search-wrap input,
.search-bar select {
  width: 100%;
  min-height: 46px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  padding: 0 18px;
  font-size: 14.5px;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.search-bar select {
  width: auto;
  min-width: 130px;
  cursor: pointer;
}

.search-wrap input:focus,
.search-bar select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 45;
  padding: 6px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-float);
  text-align: left;
  max-height: 380px;
  overflow-y: auto;
}

.suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background-color 0.14s var(--ease);
}

.suggest-item:hover,
.suggest-item.is-active {
  background: var(--card-2);
}

.suggest-main {
  min-width: 0;
}

.suggest-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Buttons & Pills */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 980px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn:active {
  transform: scale(0.98);
}

.btn.sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-fg);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.25);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  transition:
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.pill-link:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.pill-link.on {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* Grids & Cards */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 34px 0 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-more {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.section-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.26s var(--ease),
    border-color 0.26s var(--ease),
    box-shadow 0.26s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  flex: none;
  object-fit: cover;
}

.card h3,
.card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.card h3 a:hover {
  color: var(--accent);
}

.meta {
  font-size: 12.5px;
  color: var(--muted);
}

.summary {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--secondary);
}

.tag.accent {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

.tag.good {
  background: var(--good-soft);
  border-color: transparent;
  color: var(--good);
}

.grow {
  flex: 1;
}

/* Lists & Rows */

.list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.row:first-child {
  border-top: none;
}

.row a:hover {
  color: var(--accent);
}

/* Interactive Boards Tabs */

.board-tabs {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin: 4px 0 22px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--card-2);
  max-width: 100%;
}

.board-tab {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 980px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--secondary);
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.board-tab:hover {
  color: var(--text);
}

.board-tab.is-active {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.board-panel[hidden] {
  display: none;
}

/* Markdown Prose & Code Blocks */

.crumb {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crumb a:hover {
  color: var(--accent);
}

.md-prose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-card);
  color: var(--secondary);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.md-prose h2,
.md-prose h3,
.md-prose h4 {
  color: var(--text);
  margin: 22px 0 10px;
  font-weight: 600;
}

.md-prose h2:first-child,
.md-prose h3:first-child,
.md-prose p:first-child {
  margin-top: 0;
}

.md-prose p {
  margin: 12px 0;
}

.md-prose ul,
.md-prose ol {
  margin: 10px 0 14px;
  padding-left: 22px;
}

.md-prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--card-2);
  color: var(--text);
}

.md-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.code-block {
  position: relative;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-alt);
  overflow: hidden;
}

.code-block pre {
  margin: 0;
  padding: 16px 74px 16px 16px;
  overflow-x: auto;
  font: 13px/1.55 var(--mono);
  color: var(--text);
}

.code-block .copy-mini {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 980px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.code-block .copy-mini:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Download Checksums */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.dl-card h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.dl-sha {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.dl-sha code {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--secondary);
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* Pager & Cosmos Deep-Link Fallback */

.pager {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.cosmos-alert {
  margin-top: 26px;
  padding: 20px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.cosmos-alert p {
  margin: 0;
  color: var(--secondary);
  flex: 1;
  min-width: 240px;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-2);
  color: var(--secondary);
}

/* Footer */

footer.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 36px clamp(18px, 4vw, 32px);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  background: var(--card);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
}

.text-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-status {
  font-size: 12px;
  color: var(--muted);
}

/* Reveal */

html.js-ready [data-reveal] {
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}

html.js-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(12px);
}

html.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile Responsive */

@media (max-width: 980px) {
  .theme-label {
    display: none;
  }

  .nav-links {
    display: none;
  }

  html:not(.js-ready) .nav {
    grid-template-columns: auto 1fr;
  }

  html:not(.js-ready) .header-actions {
    display: none;
  }

  html:not(.js-ready) .nav-links {
    display: flex;
    overflow-x: auto;
    justify-self: stretch;
  }

  html.js-ready .nav-toggle {
    display: inline-flex !important;
  }

  html.js-ready .nav-links.is-open {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 18px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-hover);
  }

  html.js-ready .nav-links.is-open a {
    justify-content: flex-start;
    min-height: 46px;
    border-radius: 0;
    border-top: 1px solid var(--line-2);
    font-size: 15.5px;
  }

  html.js-ready .nav-links.is-open a:first-child {
    border-top: 0;
  }

  .nav-toggle[aria-expanded='true'] svg {
    opacity: 0;
  }

  .nav-toggle[aria-expanded='true']::before,
  .nav-toggle[aria-expanded='true']::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded='true']::after {
    transform: rotate(-45deg);
  }

  body:has(.nav-links.is-open)::before {
    content: '';
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 48;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(4px);
  }
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .dl-grid {
    grid-template-columns: 1fr;
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar select,
  .search-bar button.btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js-ready [data-reveal],
  html.js-ready [data-reveal]:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
  }
}
