/* ============================================
   Kerned — Fonts / Explore Page
   ============================================ */

/* Hero */
.explore-head {
  background: var(--white); padding: 80px;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; text-align: center; border-bottom: 1px solid var(--border);
}
.explore-head .eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 700; letter-spacing: 1.8px; color: var(--ink-muted);
}
.explore-head .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.explore-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 60px;
  font-weight: 600; letter-spacing: -2.2px; line-height: 1; color: var(--ink); margin: 0;
}
.explore-sub { font-size: 17px; line-height: 1.55; color: var(--ink-muted); max-width: 540px; margin: 0; }
.search-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  background: var(--white); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 8px 24px -8px rgba(14,14,12,.08); width: 560px;
  transition: box-shadow .15s;
}
.search-bar:focus-within { box-shadow: 0 8px 24px -8px rgba(14,14,12,.12), 0 0 0 3px rgba(219,250,83,.4); }
.search-bar .material-symbols-rounded, .search-bar i { color: var(--ink-muted); font-size: 18px; }
.search-bar input { flex: 1; border: 0; outline: 0; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink); background: transparent; }
.search-bar input::placeholder { color: var(--ink-muted); }
.browse-btn {
  background: var(--accent); color: var(--ink); padding: 0 20px; height: 40px;
  border-radius: 999px; font-weight: 600; font-size: 13px; border: 0; cursor: pointer;
}

.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.quick-chip {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); color: var(--ink-muted); transition: all .15s;
  text-decoration: none; background: var(--white);
}
.quick-chip:hover { border-color: var(--ink); color: var(--ink); }
.quick-chip.active { background: var(--ink); border-color: var(--ink); color: var(--ink-inverse); }

/* Body layout */
.explore-layout { padding: 32px 80px 80px; display: grid; grid-template-columns: 248px 1fr; gap: 32px; align-items: start; }

/* Sidebar */
.exp-sidebar {
  position: sticky; top: 88px; background: var(--white);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.exp-sidebar > section { padding: 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.exp-sidebar > section:last-child { border-bottom: 0; padding: 14px; align-items: center; justify-content: center; flex-direction: row; }
.filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.filter-head h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }
.clear-link { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; color: var(--ink-muted); text-decoration: none; }
.clear-link:hover { color: var(--ink); }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; }
.sidebar-head h4 { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: var(--ink-muted); margin: 0; }
.section-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: var(--ink-muted); margin-bottom: 12px; }

.check-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; user-select: none; }
.check-row:hover .check-box { border-color: var(--ink); }
.check-box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--border); background: var(--white); display: grid; place-items: center; transition: all .15s; flex-shrink: 0; }
.check-row input { display: none; }
.check-row input:checked ~ .check-box { background: var(--ink); border-color: var(--ink); }
.check-box .material-symbols-rounded { font-size: 12px; color: var(--accent); opacity: 0; transform: scale(.6); transition: all .15s; }
.check-row input:checked ~ .check-box .material-symbols-rounded { opacity: 1; transform: scale(1); }
.check-label { flex: 1; font-size: 13px; color: var(--ink); }
.check-count { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-muted); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: var(--bg-light); border: 1px solid var(--border); border-radius: 8px; gap: 12px; font-size: 13px; color: var(--ink); font-weight: 500; }
.toggle-row + .toggle-row { margin-top: 6px; }
.mat-toggle { position: relative; flex-shrink: 0; width: 36px; height: 20px; border-radius: 10px; background: var(--border); cursor: pointer; border: 0; padding: 0; transition: background .2s; }
.mat-toggle .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.mat-toggle.on { background: var(--ink); }
.mat-toggle.on .knob { left: 18px; }

.reset { font-size: 13px; color: var(--ink-muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.reset:hover { color: var(--ink); }

/* Main area */
.exp-main { min-width: 0; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.results-count { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -0.4px; color: var(--ink); }
.results-tools { display: flex; align-items: center; gap: 10px; }
.sort-select { height: 38px; padding: 0 30px 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--white); font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A7A70' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
.view-toggle { display: flex; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 2px; }
.view-btn { width: 32px; height: 30px; border-radius: 5px; display: grid; place-items: center; color: var(--ink-muted); border: 0; background: transparent; cursor: pointer; }
.view-btn.active { background: var(--ink); color: var(--ink-inverse); }

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; background: var(--bg-light); border: 1px solid var(--border); color: var(--ink); border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; }
.active-chip .x { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ink-inverse); border: 0; padding: 0; cursor: pointer; }
.active-chip .x .material-symbols-rounded { font-size: 12px; }

/* Font Grid — Kerned dark card style */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1200px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .exp-grid { grid-template-columns: 1fr; } .explore-layout { grid-template-columns: 1fr; } .exp-sidebar { position: relative; top: 0; } }

.font-card-x {
  background: var(--bg-dark); color: var(--ink-inverse);
  border-radius: 14px; padding: 28px; display: flex; flex-direction: column;
  justify-content: space-between; gap: 16px; height: 320px;
  text-decoration: none; transition: transform .15s, box-shadow .15s; overflow: hidden;
}
.font-card-x:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(14,14,12,.5); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-ord { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 1.4px; color: rgba(250,250,247,.5); }
.card-var { background: var(--accent); color: var(--ink); padding: 4px 8px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.card-specimen { font-size: 64px; line-height: .95; letter-spacing: -2px; color: var(--ink-inverse); font-weight: 700; flex: 1; display: flex; align-items: center; }
.card-specimen.lg { font-size: 76px; }
.card-specimen.sm { font-size: 52px; }
.card-bot { display: flex; justify-content: space-between; align-items: flex-end; }
.card-name-x { font-size: 14px; font-weight: 600; color: var(--ink-inverse); }
.card-cat-x { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(250,250,247,.5); letter-spacing: 0.4px; margin-top: 3px; }
.card-dl { background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; }

/* Pagination */
.pager-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--border); }
.pager-info { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-muted); }
.pager-wrap nav { display: flex; align-items: center; gap: 6px; }
.pager-wrap nav > div { display: flex; align-items: center; gap: 6px; }
.pager-wrap span[aria-disabled="true"], .pager-wrap a, .pager-wrap span.relative { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--ink-muted); border: 1px solid transparent; text-decoration: none; }
.pager-wrap a:hover { background: var(--white); border-color: var(--border); color: var(--ink); }
.pager-wrap span[aria-current="page"] > span { background: var(--ink); color: var(--ink-inverse); padding: 0 12px; border-radius: 8px; min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }

/* No results */
.no-results { text-align: center; padding: 80px 20px; color: var(--ink-muted); }
.no-results h3 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; color: var(--ink); margin: 0 0 8px; }

/* List view */
#view-list { display: none; flex-direction: column; gap: 10px; }
.font-list-row {
  background: var(--bg-dark); color: var(--ink-inverse);
  border-radius: 14px; padding: 20px 24px;
  display: grid; grid-template-columns: 36px 260px 1fr auto auto;
  align-items: center; gap: 24px;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.font-list-row:hover { transform: translateY(-1px); box-shadow: 0 20px 40px -12px rgba(14,14,12,.5); }
.flr-rank { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: rgba(250,250,247,.4); }
.flr-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.flr-name { font-size: 34px; font-weight: 700; letter-spacing: -1.2px; color: var(--ink-inverse); line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flr-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 1.2px; color: rgba(250,250,247,.4); }
.flr-sample { font-size: 20px; font-weight: 400; line-height: 1.25; letter-spacing: -0.4px; color: rgba(250,250,247,.65); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.flr-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.flr-var { background: var(--accent); color: var(--ink); padding: 3px 7px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.flr-wt { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; color: rgba(250,250,247,.45); }
.flr-btn { background: var(--accent); color: var(--ink); padding: 10px 18px; height: 40px; border-radius: 999px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap; }
@media (max-width: 1200px) { .font-list-row { grid-template-columns: 36px 220px 1fr auto auto; gap: 16px; } }
@media (max-width: 900px) { .font-list-row { grid-template-columns: 36px 1fr auto; } .flr-sample, .flr-stats { display: none; } }

