/* ===== Google Fonts — Inter (matching reference site) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== CSS Variables / Theming ===== */
:root {
  /* --- Typography — change this one value to resize all body text --- */
  --font-size-body: 1rem;

  --bg: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-card: #f5f5f5;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: #d2d2d7;
  --accent: #00a552;
  --accent-hover: #008a44;
  --accent-light: #d4edda;
  --danger: #cc3333;
  --success: #28a745;
  --tag-bg: #e8e8ed;
  --tag-text: #1d1d1f;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-sm: 4px;
  --navbar-bg: #f5f5f5;
  --footer-bg: #222222;
}

[data-bs-theme="dark"] {
  --bg: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-card: #2a2a2a;
  --text: #f0f0f0;
  --text-secondary: #a0a0a0;
  --border: #444;
  --accent: #00a552;
  --accent-hover: #33cc77;
  --accent-light: #1a3a2a;
  --tag-bg: #3a3a3a;
  --tag-text: #e0e0e0;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.4);
  --navbar-bg: #2a2a2a;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: var(--font-size-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ===== Sticky Header Wrapper ===== */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ===== Navbar (matching reference site) ===== */
.navbar {
  background-color: var(--navbar-bg);
  padding: 0.1rem 0;
  border-bottom: 1px solid var(--border);
}

.navbar .container-fluid {
  max-width: 100%;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.navbar-brand:hover {
  text-decoration: none;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

/* Logo light/dark mode switching */
.site-logo--dark { display: none; }
.site-logo--light { display: inline-block; }

[data-bs-theme="dark"] .site-logo--light { display: none; }
[data-bs-theme="dark"] .site-logo--dark { display: inline-block; }

.brand-sub {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-left: 0.4rem;
  color: #000;
  align-self: flex-end;
}
[data-bs-theme="dark"] .brand-sub {
  color: #ccc;
}

/* Nav links */
.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  justify-content: flex-end;
}

.navbar-nav .nav-item {
  list-style: none;
}

.navbar-nav .nav-link {
  display: block;
  font-size: 1.00rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  transition: color 0.15s;
}

.navbar-nav .nav-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.navbar-nav .nav-link.active {
  color: var(--accent);
}

/* Navbar collapse — single row on desktop */
.navbar-collapse {
  display: flex;
  align-items: center;
  flex: 1;
}

.navbar-nav-main {
  flex: 1;
  justify-content: center;
}

.navbar-nav-right {
  margin-left: auto;
}

/* Nav controls (currency, theme toggle) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

/* GitHub link */
.btn-github {
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 0.5rem;
  line-height: 1;
}

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

.btn-github svg {
  width: 22px;
  height: 22px;
}

/* Theme toggle button */
.btn-theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  line-height: 1;
}

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

.btn-theme-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile hamburger */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.navbar-toggler svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

.page-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* ===== Footer (matching reference site) ===== */
.footer {
  background-color: var(--footer-bg);
  color: #ccc;
  text-align: center;
  padding: 2rem 0;
  margin-top: auto;
}

.footer img {
  max-height: 60px;
}

/* ===== Filter Panel ===== */
.filter-panel {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.filter-panel h2 {
  font-size: var(--font-size-body);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.filter-group label {
  display: block;
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: var(--font-size-body);
  font-family: inherit;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.filter-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: var(--font-size-body);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.btn:hover { background: var(--bg-secondary); }

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

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.about-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.btn-sm {
  padding: 0.3rem 0.7rem;
}

/* ===== Results ===== */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: var(--font-size-body);
  color: var(--text-secondary);
}

.results-bar .sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-bar select {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: var(--font-size-body);
  font-family: inherit;
}

/* ===== Filter Checkbox Groups ===== */
.filter-checkbox-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.filter-cb-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-cb-heading {
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.filter-cb-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.filter-cb-list label {
  font-size: var(--font-size-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== Board Table ===== */
.table-wrap {
  overflow-x: auto;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-body);
}

.board-table thead th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border);
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.board-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.board-table tbody tr:hover {
  background: var(--bg-secondary);
}

.board-table tbody td {
  padding: 0.55rem 0.75rem;
  vertical-align: top;
}

.board-table .col-name a {
  font-weight: 600;
  color: var(--text);
}

.board-table .col-name a:hover {
  color: var(--accent);
}

.board-table .col-price {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.board-table .col-features {
  max-width: 300px;
}

.board-table .col-features .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.board-table tr.status-eol {
  opacity: 0.65;
}

.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: var(--font-size-body);
  font-weight: 500;
}

.tag-pcie { background: #e3f2fd; color: #1565c0; }
.tag-video { background: #fce4ec; color: #c62828; }
.tag-ethernet { background: #e8f5e9; color: #2e7d32; }
.tag-networking { background: #fff3e0; color: #e65100; }
.tag-expansion { background: #f3e5f5; color: #6a1b9a; }
.tag-wireless { background: #e0f7fa; color: #00695c; }
.tag-storage { background: #efebe9; color: #4e342e; }

[data-bs-theme="dark"] .tag-pcie { background: #1a3a5c; color: #90caf9; }
[data-bs-theme="dark"] .tag-video { background: #4a1a1a; color: #ef9a9a; }
[data-bs-theme="dark"] .tag-ethernet { background: #1a3a1a; color: #a5d6a7; }
[data-bs-theme="dark"] .tag-networking { background: #4a2a00; color: #ffcc80; }
[data-bs-theme="dark"] .tag-expansion { background: #3a1a4a; color: #ce93d8; }
[data-bs-theme="dark"] .tag-wireless { background: #0a3a3a; color: #80deea; }
[data-bs-theme="dark"] .tag-storage { background: #3a2a1a; color: #bcaaa4; }

.status-eol {
  opacity: 0.7;
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.status-badge.eol {
  background: var(--danger);
  color: #fff;
}

/* ===== Markdown content ===== */
#about-content,
#lists-content {
  font-size: 1.1rem;
}

#about-content h1,
#about-content h2,
#about-content h3,
#lists-content h1,
#lists-content h2,
#lists-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#about-content ul,
#lists-content ul {
  padding-left: 3rem;
}

#about-content p,
#lists-content p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* ===== Submit Form ===== */
.form-page {
  max-width: 800px;
  margin: 0 auto;
}

.content-page {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.7;
}

.content-page h1 {
  margin-bottom: 1.25rem;
}

.content-page h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page p {
  margin-bottom: 1rem;
}

.content-page .hero-section {
  text-align: center;
  padding-bottom: 2rem;
}

.content-page .hero-title {
  font-size: 4.0rem;
  margin-bottom: 2rem;
}

.content-page .hero-section .about-buttons {
  justify-content: center;
}

.content-page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0 2rem;
}

.content-page ul {
  padding-left: 3rem;
  margin-bottom: 1.25rem;
}

.content-page li {
  margin-bottom: 0.4rem;
}

.form-section {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.form-section h3 {
  font-size: var(--font-size-body);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.submit-error {
  background: rgba(204, 51, 51, 0.1);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.form-field label {
  display: block;
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.form-field select,
.form-field input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: var(--font-size-body);
  font-family: inherit;
}

.form-field select:focus,
.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.form-field .hint,
.hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.hint-link {
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
}

.dynamic-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dynamic-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.dynamic-item .form-field {
  flex: 1;
}

.dynamic-item .btn-remove {
  padding: 0.5rem;
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

/* ===== JSON Preview ===== */
.json-preview {
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}

.json-preview pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  max-height: 400px;
  overflow-y: auto;
}

/* ===== Board Detail Page ===== */
.board-detail-page {
  max-width: 800px;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.board-header h1 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.board-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  margin-top: 0.25rem;
}

.board-header-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  margin-left: 1.5rem;
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.board-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spec-section-full {
  grid-column: 1 / -1;
}

.spec-section {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.spec-section h3 {
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.spec-table {
  width: 100%;
  font-size: var(--font-size-body);
}

.spec-table td {
  padding: 0.25rem 0;
}

.spec-table .spec-label {
  color: var(--text-secondary);
  width: 40%;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 4px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
}
.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.copy-btn.copied {
  color: var(--success);
  border-color: var(--success);
}

/* ===== Compare Page ===== */
.compare-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.compare-add {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.compare-add input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: var(--font-size-body);
  font-family: inherit;
}

.compare-add input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.compare-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-height: 300px;
  overflow-y: auto;
}

.suggest-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-body);
}

.suggest-item:hover {
  background: var(--bg-secondary);
}

.suggest-item span {
  color: var(--text-secondary);
}

.suggest-none {
  cursor: default;
  color: var(--text-secondary);
}

.compare-count {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
}

.compare-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.compare-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-body);
  font-weight: 500;
}

.compare-pill button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: var(--font-size-body);
  line-height: 1;
  padding: 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-body);
}

.compare-table th,
.compare-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table code {
  font-size: 0.82rem;
  word-break: break-all;
}

.compare-header-row th {
  background: var(--bg-secondary);
  font-size: var(--font-size-body);
  font-weight: 600;
  position: sticky;
  top: 0;
}

.compare-header-row th a {
  color: var(--text);
}

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

.compare-section-row td {
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: var(--font-size-body);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  padding-top: 0.75rem;
}

.compare-label {
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 130px;
}

/* ===== Compare checkbox in search table ===== */
.col-compare {
  width: 30px;
  text-align: center;
}

/* ===== No Results ===== */
.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

/* ===== Currency selector ===== */
.currency-select {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: var(--font-size-body);
  font-family: inherit;
}

/* ===== Autocomplete Results (AMD Part Picker) ===== */
.autocomplete-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-height: 300px;
  overflow-y: auto;
}

.autocomplete-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: var(--font-size-body);
}

.autocomplete-item:hover {
  background: var(--bg-secondary);
}

.autocomplete-item.disabled {
  cursor: default;
  color: var(--text-secondary);
}

.autocomplete-item .hint-inline {
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.form-field {
  position: relative;
}

/* ===== Dark mode heading softening (matching reference) ===== */
[data-bs-theme="dark"] h1 {
  color: #c5ccd3;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .navbar-toggler {
    display: block;
  }
  .navbar-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
  }
  .navbar-collapse.show {
    display: flex;
  }
  .navbar-nav {
    flex-direction: column;
    padding: 0.5rem 0;
  }
  .navbar-nav .nav-link {
    padding: 0.5rem 1.5rem;
    font-size: 1.1rem;
  }
  .nav-controls {
    padding: 0.5rem 1.5rem 1rem;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .page-layout {
    flex-direction: column;
  }
  .filter-panel {
    width: 100%;
    position: static;
    max-height: none;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .dynamic-item {
    flex-wrap: wrap;
  }
  .board-header {
    flex-direction: column;
  }
  .board-header-price {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  .board-specs {
    grid-template-columns: 1fr;
  }
  .compare-controls {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}
