/* ===========================================================
   DevRadar — global styles
   Loads after tokens.css. Shared by every page.
   =========================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

/* ---- Layout ---- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-5); }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: var(--space-6); }
.brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 700; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-1);
}
.brand-name { font-size: 18px; letter-spacing: -0.01em; }
.brand-name .dot { color: var(--accent); }

.site-nav { display: flex; gap: var(--space-5); }
.site-nav a {
  font-size: 14px;
  color: var(--fg-2);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.site-nav a:hover { color: var(--fg); }
.site-nav a.active { color: var(--fg); border-bottom-color: var(--accent); }

.header-spacer { flex: 1; }

/* ---- Toggles panel (top-right floating) ---- */
.toggles {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.toggle-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
}
.toggle-group button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.toggle-group button.active {
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-1);
}
.toggle-group .sep { width: 1px; height: 16px; background: var(--border); margin: 0 4px; }
.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 2px 4px 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.btn:hover { transform: translateY(-1px); border-color: var(--fg-2); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}
.btn-ghost { background: transparent; border-color: transparent; color: var(--fg-2); }
.btn-ghost:hover { color: var(--fg); border-color: transparent; transform: none; }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
}

/* ---- Hero ---- */
.hero {
  padding: calc(var(--space-9) + 84px) 0 var(--space-7);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-7);
  align-items: end;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0;
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--surface);
}
.stat-card .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.stat-card .value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.stat-card .value small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }

/* ---- Countdown ---- */
.countdown {
  display: flex;
  gap: 10px;
  margin-top: var(--space-4);
}
.cd-cell {
  min-width: 64px;
  text-align: center;
  padding: 12px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.cd-cell .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
  display: block;
  font-variant-numeric: tabular-nums;
}
.cd-cell .unit {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Filters bar ---- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}
.search {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.select {
  position: relative;
}
.select select {
  appearance: none;
  -webkit-appearance: none;
  padding: 11px 36px 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
}
.select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select select:focus { outline: none; border-color: var(--accent); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-2);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.chip:hover { color: var(--fg); border-color: var(--fg-2); }
.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.chip .count { font-size: 11px; opacity: 0.8; font-variant-numeric: tabular-nums; }

/* ---- Ranking list table ---- */
.ranking-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-6) 0 var(--space-3);
  border-bottom: 1px solid var(--border);
}
.ranking-meta h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.ranking-meta .meta-count { font-size: 13px; color: var(--muted); }
.ranking-meta .meta-count strong { color: var(--fg); }

.rank-table { width: 100%; border-collapse: collapse; }
.rank-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: var(--header-h);
}
.rank-table thead th.sortable { cursor: pointer; user-select: none; }
.rank-table thead th.sortable:hover { color: var(--fg); }
.rank-table thead th .arrow { display: inline-block; margin-left: 4px; opacity: 0.4; font-size: 10px; transform: rotate(0deg); transition: transform var(--transition-fast), opacity var(--transition-fast); }
.rank-table thead th.sortable:hover .arrow { opacity: 0.7; }
.rank-table thead th.sortable.asc .arrow,
.rank-table thead th.sortable.desc .arrow { opacity: 1; color: var(--accent); }
.rank-table thead th.sortable.asc .arrow { transform: rotate(0deg); }
.rank-table thead th.sortable.desc .arrow { transform: rotate(180deg); }

.rank-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast), transform var(--transition);
}
.rank-table tbody tr:last-child { border-bottom: 0; }
.rank-table tbody tr:hover {
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.rank-table td {
  padding: 16px 12px;
  vertical-align: middle;
}
.rank-cell {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  width: 64px;
}
.rank-cell.top {
  color: var(--accent);
}
.rank-cell .delta {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.rank-cell .delta.up { color: var(--success); }
.rank-cell .delta.down { color: var(--danger); }
.rank-cell .delta.flat { color: var(--muted); }
.rank-cell .delta.up::before   { content: "+"; font-weight: 700; margin-right: 3px; }
.rank-cell .delta.down::before { content: "-"; font-weight: 700; margin-right: 3px; }
.rank-cell .delta.flat::before { content: "="; font-weight: 700; margin-right: 3px; opacity: 0.6; }

.tool-cell { display: flex; align-items: center; gap: 14px; min-width: 280px; }
.tool-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-1);
}
.tool-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.tool-name a:hover { color: var(--accent); }
.tool-desc {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.4;
  max-width: 56ch;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--fg-2);
  font-size: 11px;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
}

.vote-cell { text-align: right; white-space: nowrap; }
.vote-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 64px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-2);
  transition: transform var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.vote-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.vote-btn.voted {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.vote-btn .arrow-up {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid currentColor;
}
.vote-btn .count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.vote-btn .pulse {
  position: absolute;
  pointer-events: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  opacity: 0;
}
@keyframes float-up {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-26px); opacity: 0; }
}
.vote-btn.bump .pulse { animation: float-up 700ms ease-out forwards; }

/* ---- Pagination ---- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--space-7) 0 var(--space-8);
}
.pager a, .pager span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: var(--fg-2); }
.pager .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pager .ellipsis { border-color: transparent; background: transparent; color: var(--muted); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-7) 0 var(--space-6);
  margin-top: var(--space-8);
  background: var(--surface-2);
}
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-3);
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--fg-2);
}
.footer-col a:hover { color: var(--fg); }
.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  margin-top: var(--space-5);
  font-size: 12px;
  color: var(--muted);
}

/* ---- Section heading ---- */
.section { padding: var(--space-8) 0; }
.section-head { margin-bottom: var(--space-6); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  margin: 8px 0 8px;
}
.section-head p { color: var(--fg-2); margin: 0; max-width: 60ch; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ---- Related tools grid ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }

/* ---- Spec table ---- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 12px 4px;
  font-size: 14px;
  vertical-align: top;
}
.spec-table th {
  font-weight: 600;
  color: var(--muted);
  width: 200px;
  letter-spacing: 0.02em;
}

/* ---- Forms ---- */
.field { display: block; margin-bottom: var(--space-5); }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--fg);
}
.field .help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* ---- Preview card ---- */
.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-2);
}
.preview-card .tool-cell .tool-logo { width: 56px; height: 56px; font-size: 18px; }
.preview-card .name-edit { font-family: var(--font-display); font-weight: 700; font-size: 18px; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.step {
  position: relative;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: var(--space-3);
}
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.step p { color: var(--fg-2); margin: 0; font-size: 14px; }

/* ---- Metric cards ---- */
.metric {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.metric .label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.metric .value { font-family: var(--font-display); font-weight: 800; font-size: 36px; letter-spacing: -0.02em; }
.metric .sub { font-size: 13px; color: var(--fg-2); margin-top: 4px; }

/* ---- Tool detail hero ---- */
.tool-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--border);
}
.tool-hero .tool-logo { width: 72px; height: 72px; font-size: 26px; border-radius: 14px; }
.tool-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.tool-hero .byline { color: var(--fg-2); font-size: 14px; }
.tool-hero .meta-row { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---- Screenshot gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.gallery .shot {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.gallery .shot:first-child { aspect-ratio: 16 / 10; grid-row: span 2; }
.gallery .shot.tall { aspect-ratio: 4 / 5; }

/* Decorative chart placeholder that renders without images */
.shot-art {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 80%, var(--accent) 4%), var(--surface-2));
}
.shot-art::before, .shot-art::after {
  content: "";
  position: absolute;
  inset: 0;
}
.shot-art::before {
  background:
    radial-gradient(120px 80px at 20% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(160px 100px at 80% 70%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 60%);
}
.shot-art::after {
  background-image:
    linear-gradient(transparent 95%, color-mix(in srgb, var(--border) 90%, transparent) 95%);
  background-size: 100% 28px;
}

/* ---- Tag list larger ---- */
.tags-lg { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-3) 0; }
.tags-lg .tag { padding: 5px 12px; font-size: 12px; }

/* ---- Breadcrumb ---- */
.crumb {
  font-size: 13px;
  color: var(--muted);
  padding: var(--space-5) 0 0;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--fg); }
.crumb .sep { margin: 0 8px; opacity: 0.5; }

/* ---- Hide for default lang side ---- */
[data-lang="ko"] .lang-en { display: none; }
[data-lang="en"] .lang-ko { display: none; }

/* ---- Utility: motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .tool-hero { grid-template-columns: auto 1fr; }
  .tool-hero .vote-area { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .shot:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .site-nav { display: none; }
  .toggles { right: 10px; top: calc(var(--header-h) + 8px); padding: 6px; }
  .toggle-group button { padding: 5px 9px; font-size: 11px; }
  .hero { padding: calc(var(--space-7) + 118px) 0 var(--space-6); }
  .hero h1 { font-size: 36px; }
  .rank-table thead { display: none; }
  .rank-table tbody tr { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 14px 8px; }
  .rank-table td { padding: 0; border: 0; }
  .rank-cell { width: auto; grid-row: span 2; }
  .tool-cell { min-width: 0; flex-direction: row; align-items: center; }
  .tool-logo { width: 38px; height: 38px; font-size: 13px; }
  .tool-cell .desc-row { display: none; }
  .vote-cell { grid-row: span 2; }
  .tag-row { grid-column: 2; }
  .pager { padding: var(--space-5) 0 var(--space-7); }
  .site-footer .wrap { grid-template-columns: 1fr; }
}