/* tokencosting 2026 visual system: cool neutrals, accessible blue actions, compact data surfaces. */

.brand-logo {
  display: block;
  flex: none;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(15 23 42 / 8%);
}
:root {
  --c-bg: #f6f8fc;
  --c-fg: #172033;
  --c-default: #edf2f8;
  --c-surface: #ffffff;
  --c-surface-2: #f8fafc;
  --c-border: #dce4ef;
  --c-muted: #536176;
  --c-accent: #2563eb;
  --c-accent-strong: #1d4ed8;
  --c-accent-soft: #eff6ff;
  --c-primary-hover: #1d4ed8;
  --c-hero: #edf5ff;
  --c-focus: rgba(37, 99, 235, 0.24);
  --c-shadow: rgba(30, 64, 175, 0.08);
  --c-shadow-strong: rgba(30, 64, 175, 0.14);
  color-scheme: light;
}

.dark {
  --c-bg: #0b0f14;
  --c-fg: #edf2f7;
  --c-default: #202936;
  --c-surface: #121820;
  --c-surface-2: #171f29;
  --c-border: #2b3542;
  --c-muted: #a3afbf;
  --c-accent: #3b82f6;
  --c-accent-strong: #60a5fa;
  --c-accent-soft: #172554;
  --c-primary-hover: #2563eb;
  --c-hero: #111c2d;
  --c-focus: rgba(96, 165, 250, 0.3);
  --c-shadow: rgba(0, 0, 0, 0.22);
  --c-shadow-strong: rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

html {
  background: var(--c-bg);
  scrollbar-color: #9aa9bc transparent;
}

body {
  min-width: 320px;
  background: var(--c-bg);
}

.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 100;
  border: 1px solid var(--c-accent);
  background: var(--c-surface);
  color: var(--c-accent-strong);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 14px 32px var(--c-shadow-strong);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

body,
button,
input,
select,
textarea,
.tracking-tight,
.tracking-wide,
.tracking-wider {
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 240px;
  background: var(--c-hero);
  content: "";
  opacity: 0.42;
  pointer-events: none;
}

::selection {
  background: #bfdbfe;
  color: #172033;
}

.dark ::selection {
  background: #1d4ed8;
  color: #ffffff;
}

a,
button,
summary,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.rounded-2xl,
.rounded-xl {
  border-radius: 8px;
}

.shadow-card {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 5px 16px var(--c-shadow);
}

.shadow-card-hover {
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 14px 32px var(--c-shadow-strong);
}

.dark .shadow-card,
.dark .shadow-card-hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 30px var(--c-shadow);
}

.hover\:bg-accent-strong:hover {
  background-color: var(--c-primary-hover);
}

.bg-accent {
  background-color: var(--c-accent);
}

.text-accent-strong {
  color: var(--c-accent-strong);
}

.text-muted\/60,
.text-muted\/70,
.text-muted\/80 {
  color: var(--c-muted);
}

.ring-accent\/20 {
  --tw-ring-color: rgba(37, 99, 235, 0.18);
}

/* Header and navigation */
.site-header {
  border-color: color-mix(in srgb, var(--c-border) 88%, transparent);
  background: color-mix(in srgb, var(--c-surface) 92%, transparent);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.site-header-inner {
  height: 64px;
}

.site-brand {
  position: relative;
  color: var(--c-fg);
  white-space: nowrap;
}

.site-brand svg {
  filter: drop-shadow(0 4px 7px rgba(37, 99, 235, 0.18));
}

.site-brand-note,
.site-nav-label,
.site-nav-mark {
  display: none;
}

.site-nav {
  gap: 17px;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding-block: 21px;
  color: var(--c-muted);
  font-size: 12.5px;
  font-weight: 520;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--c-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
  color: var(--c-fg);
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav a[aria-current="page"],
.site-mobile-menu a[aria-current="page"] {
  color: var(--c-accent-strong);
  font-weight: 680;
}

.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-button,
.site-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  font-weight: 650;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
}

.site-button--primary {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.2);
}

.site-button--primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}

.site-button--secondary {
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-fg);
}

.site-button--secondary:hover {
  border-color: #93b4ef;
  background: var(--c-accent-soft);
  color: var(--c-accent-strong);
}

.site-icon-button {
  width: 40px;
  min-width: 40px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-muted);
}

.site-icon-button:hover {
  border-color: #9db8e8;
  background: var(--c-accent-soft);
  color: var(--c-accent-strong);
}

.site-mobile-nav {
  position: relative;
  display: block;
}

.site-mobile-nav > summary {
  display: inline-flex;
  width: 40px;
  height: 40px;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-surface);
  color: var(--c-muted);
}

.site-mobile-nav > summary::-webkit-details-marker {
  display: none;
}

.site-mobile-nav[open] > summary {
  border-color: #9db8e8;
  background: var(--c-accent-soft);
  color: var(--c-accent-strong);
}

.site-mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(320px, calc(100vw - 32px));
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-surface);
  box-shadow: 0 18px 48px var(--c-shadow-strong);
}

.site-mobile-menu a {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 6px;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 550;
}

.site-mobile-menu a:hover {
  background: var(--c-accent-soft);
  color: var(--c-accent-strong);
}

.site-mobile-menu a[aria-current="page"] {
  background: var(--c-accent-soft);
}

.site-mobile-menu .site-mobile-menu-cta {
  grid-column: 1 / -1;
  background: var(--c-accent);
  color: #ffffff;
  text-align: center;
}

/* Home */
.home-hero,
main:has(#stations) > section:first-child {
  border-color: var(--c-border);
  background: var(--c-hero);
}

main:has(#stations) > section:first-child > [aria-hidden="true"] {
  display: none;
}

.home-hero-inner,
main:has(#stations) > section:first-child > div.relative.mx-auto {
  width: 100%;
  max-width: 72rem;
  padding-top: 25px;
  padding-bottom: 23px;
  text-align: left;
}

.home-hero h1,
main:has(#stations) > section:first-child h1 {
  color: var(--c-fg);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.home-hero p,
main:has(#stations) > section:first-child p {
  color: var(--c-muted);
}

.quick-models a,
main:has(#stations) > section:first-child h1 + p + div a {
  min-height: 32px;
  align-items: center;
  border-color: color-mix(in srgb, var(--c-accent) 22%, var(--c-border));
  background: color-mix(in srgb, var(--c-surface) 90%, var(--c-accent-soft));
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.04);
}

main:has(#stations) > section:first-child h1 + p + div {
  justify-content: flex-start;
}

.quick-models a:hover,
main:has(#stations) > section:first-child h1 + p + div a:hover {
  border-color: var(--c-accent);
  background: var(--c-surface);
}

.home-content,
main:has(#stations) > div.mx-auto {
  padding-top: 12px;
}

.station-toolbar,
#stations > .sticky-edge-fade {
  top: 64px;
  padding-top: 12px;
  padding-bottom: 14px;
  background: color-mix(in srgb, var(--c-bg) 94%, transparent);
}

.sticky-edge-fade::after {
  background: linear-gradient(90deg, transparent, #93b4ef 15%, #93b4ef 85%, transparent);
  opacity: 0.42;
}

.dark .sticky-edge-fade::after {
  background: linear-gradient(90deg, transparent, #3b82f6 15%, #3b82f6 85%, transparent);
  box-shadow: none;
  opacity: 0.3;
}

.input-focus-glow:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-focus), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dark .input-focus-glow:focus {
  box-shadow: 0 0 0 4px var(--c-focus);
}

.segment-group-shell {
  border-color: var(--c-border);
  background: var(--c-default);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chip-selected-glow {
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.dark .chip-selected-glow {
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.24);
}

.station-section > div:first-child,
#stations > section > div:first-child {
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 13px;
}

.station-grid,
[data-grid] {
  align-items: stretch;
}

@media (min-width: 1024px) {
  #stations {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding-top: 18px;
  }

  #stations > .sticky-edge-fade {
    position: sticky;
    top: 88px;
    z-index: 10;
    margin: 0;
    padding: 0 24px 0 0;
    border-right: 1px solid var(--c-border);
    background: transparent;
    backdrop-filter: none;
  }

  #stations > .sticky-edge-fade::after {
    display: none;
  }

  #stations > .sticky-edge-fade > div {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  #stations > .sticky-edge-fade > div > div:first-child {
    gap: 16px;
  }

  #stations > .sticky-edge-fade > div > div:first-child > div:first-child {
    flex-wrap: wrap;
  }

  #stations > .sticky-edge-fade label,
  #stations > .sticky-edge-fade [data-sort] {
    width: 100%;
    max-width: none;
  }

  #stations > .sticky-edge-fade [data-sort-toggle] {
    width: 100%;
    height: 44px;
    justify-content: space-between;
  }

  #stations > .sticky-edge-fade [data-filter-panel] {
    display: flex;
    gap: 14px;
  }

  #stations > .sticky-edge-fade [data-filter-panel] > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  #stations > .sticky-edge-fade [data-filter-panel] > div > span {
    width: auto;
    color: var(--c-muted);
    font-size: 11px;
    font-weight: 650;
  }

  #stations > .sticky-edge-fade [data-filter-group] {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  #stations > .sticky-edge-fade [data-filter-group] button {
    min-height: 31px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    background: var(--c-surface);
    padding: 5px 9px;
  }

  #stations > .sticky-edge-fade [data-filter-group] button[aria-pressed="true"] {
    border-color: var(--c-accent);
    background: var(--c-accent);
    color: #ffffff;
  }

  #stations > .sticky-edge-fade a[rel~="sponsored"] {
    width: 100%;
    min-height: 188px;
    padding: 13px;
  }

  #stations > .sticky-edge-fade a[rel~="sponsored"] > div:nth-of-type(4) > p:first-child {
    font-size: 18px;
    line-height: 1.08;
  }

  #stations > .sticky-edge-fade a[rel~="sponsored"] > div:last-child {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  #stations > .sticky-edge-fade a[rel~="sponsored"] > div:last-child > span:last-child {
    justify-content: center;
    padding-block: 8px;
  }

  #stations > section {
    min-width: 0;
    padding-top: 0;
  }

  #stations > section > div:first-child {
    margin-bottom: 18px;
  }

  #stations [data-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Wide desktop workspace: the global navigation becomes a persistent data rail. */
@media (min-width: 1360px) {
  .site-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 224px minmax(0, 1fr);
    align-items: start;
  }

  .site-shell > .site-header {
    position: sticky;
    top: 0;
    grid-column: 1;
    grid-row: 1;
    width: 224px;
    height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    border-right: 1px solid var(--c-border);
    border-bottom: 0;
    background: color-mix(in srgb, var(--c-surface) 96%, var(--c-accent-soft));
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.02);
    backdrop-filter: none;
    scroll-padding-block: 16px;
  }

  .site-header-inner {
    height: auto;
    min-height: 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 26px 18px 18px;
  }

  .site-brand-block {
    padding: 0 8px 22px;
    border-bottom: 1px solid var(--c-border);
  }

  .site-brand {
    font-size: 18px;
  }

  .site-brand-note {
    display: block;
    margin: 7px 0 0 40px;
    color: var(--c-muted);
    font-size: 10px;
    font-weight: 650;
  }

  .site-nav {
    display: flex !important;
    width: 100%;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 22px;
    white-space: normal;
  }

  .site-nav-group {
    display: grid;
    gap: 3px;
  }

  .site-nav-label {
    display: block;
    padding: 0 10px 5px;
    color: color-mix(in srgb, var(--c-muted) 72%, transparent);
    font-size: 10px;
    font-weight: 720;
  }

  .site-nav a {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 10px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 560;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover {
    border-color: color-mix(in srgb, var(--c-border) 88%, transparent);
    background: var(--c-surface-2);
    color: var(--c-fg);
  }

  .site-nav a[aria-current="page"] {
    border-color: color-mix(in srgb, var(--c-accent) 22%, var(--c-border));
    background: var(--c-accent-soft);
    color: var(--c-accent-strong);
    box-shadow: inset 3px 0 0 var(--c-accent);
  }

  .site-nav-mark {
    display: inline-flex;
    width: 27px;
    height: 24px;
    flex: 0 0 27px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    border-radius: 5px;
    background: var(--c-surface);
    color: var(--c-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
  }

  .site-nav a[aria-current="page"] .site-nav-mark {
    border-color: color-mix(in srgb, var(--c-accent) 38%, var(--c-border));
    background: var(--c-surface);
    color: var(--c-accent-strong);
  }

  .site-header-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--c-border);
  }

  .site-header-actions .site-button {
    display: inline-flex;
    gap: 7px;
    min-width: 0;
  }

  .site-header-actions .site-mobile-nav {
    display: none !important;
  }

  .site-shell > main,
  .site-shell > .page-content-shell,
  .site-shell > .page-notfound {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
  }

  #stations > .sticky-edge-fade,
  .page-models > header,
  .page-category > header,
  .page-verify > header,
  .page-price > header + div {
    top: 24px;
  }

  .page-shell > header::before {
    width: 3px;
    background: color-mix(in srgb, var(--page-mark) 72%, var(--c-border));
  }

  .page-notfound {
    min-height: 100vh;
  }
}

@media (min-width: 1360px) and (max-height: 760px) {
  .site-header-inner {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .site-brand-block {
    padding-bottom: 13px;
  }

  .site-brand-note,
  .site-nav-label {
    display: none;
  }

  .site-nav {
    gap: 7px;
    margin-top: 11px;
  }

  .site-nav-group {
    gap: 1px;
  }

  .site-nav a {
    min-height: 32px;
    padding-block: 3px;
  }

  .site-header-actions {
    margin-top: 10px;
    padding-top: 10px;
  }
}

.station-card {
  position: relative;
  min-height: 278px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--c-surface);
}

.station-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--c-accent);
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.station-card:hover {
  border-color: #9db8e8;
  transform: translateY(-2px);
}

.station-card:hover::before,
.station-card--pinned::before {
  opacity: 1;
}

.station-card--pinned {
  border-color: #9db8e8;
  background: color-mix(in srgb, var(--c-surface) 91%, var(--c-accent-soft));
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.11);
}

.station-logo,
.station-icon-fallback,
[data-icon-fallback] {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

a[href^="/verify?url="] {
  color: var(--c-accent-strong);
}

.station-card h3 {
  font-size: 14px;
}

.station-card .site-button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}

/* Shared sections and data surfaces */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading::before {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--c-accent);
  content: "";
}

.category-section,
.review-section,
main:has(#stations) > div.mx-auto > #stations + section,
main:has(#stations) > div.mx-auto > #stations + section + section {
  margin-block: 44px;
}

.category-grid,
main:has(#stations) > div.mx-auto > #stations + section > div.grid {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.category-grid > div,
main:has(#stations) > div.mx-auto > #stations + section > div.grid > div {
  min-width: 0;
  padding: 20px;
  border-bottom: 1px solid var(--c-border);
}

.category-grid > div:last-child,
main:has(#stations) > div.mx-auto > #stations + section > div.grid > div:last-child {
  border-bottom: 0;
}

.category-grid a,
main:has(#stations) > div.mx-auto > #stations + section > div.grid a {
  min-height: 34px;
}

.guide-section,
.faq-section,
#guide,
#faq {
  border-radius: 8px;
  border-color: var(--c-border);
}

.guide-section > div > div,
#guide > div > div {
  border-radius: 8px;
  background: var(--c-surface-2);
}

.site-footer,
main > footer {
  padding-bottom: 30px;
  border-color: var(--c-border);
}

main > header:not(.home-hero) {
  position: relative;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-border);
}

main > header:not(.home-hero)::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--c-accent);
  content: "";
}

main > header h1 {
  max-width: 880px;
}

table {
  font-variant-numeric: tabular-nums;
}

thead tr,
.bg-surface-secondary.text-xs {
  background: color-mix(in srgb, var(--c-accent-soft) 64%, var(--c-surface-2));
}

tbody tr {
  transition: background-color 140ms ease;
}

tbody tr:hover {
  background: color-mix(in srgb, var(--c-accent-soft) 44%, transparent);
}

.overflow-x-auto.rounded-2xl.border,
.overflow-hidden.rounded-2xl.border {
  border-radius: 8px;
}

details > summary {
  border-radius: 6px;
}

details > summary:hover {
  color: var(--c-accent-strong);
}

.article-body {
  color: var(--c-muted);
  line-height: 1.9;
}

.article-body h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.article-body blockquote {
  border-left-color: var(--c-accent);
  border-radius: 0 6px 6px 0;
  background: var(--c-accent-soft);
  padding: 12px 16px;
  font-style: normal;
}

.article-body code {
  border: 1px solid var(--c-border);
  border-radius: 4px;
  background: var(--c-surface-2);
  padding: 2px 5px;
  color: var(--c-fg);
}

input,
select,
textarea {
  border-color: var(--c-border);
  background: var(--c-surface);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 42px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aebdd0;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  filter: saturate(0.7);
}

/* Sponsored placement follows the site palette while keeping its content intact. */
.site-ad-card,
a[rel~="sponsored"] {
  border-color: #b7cdf5;
  background: #f2f7ff;
  box-shadow: 0 7px 22px rgba(37, 99, 235, 0.1);
}

.dark .site-ad-card,
.dark a[rel~="sponsored"] {
  border-color: #315084;
  background: #111d30;
}

.site-ad-card > [aria-hidden="true"],
a[rel~="sponsored"] > [aria-hidden="true"] {
  display: none;
}

.site-ad-brand,
.site-ad-headline,
a[rel~="sponsored"] > div:nth-of-type(3) > span:first-child,
a[rel~="sponsored"] > div:nth-of-type(4) > p:first-child {
  color: var(--c-fg);
}

.site-ad-label,
.site-ad-domain,
.site-ad-separator,
.site-ad-accent,
.site-ad-stat-value,
a[rel~="sponsored"] > div:nth-of-type(3) > span:last-child > span,
a[rel~="sponsored"] > div:nth-of-type(4) > p:first-child span,
a[rel~="sponsored"] > div:nth-of-type(4) > p:nth-child(2) span,
a[rel~="sponsored"] > div:last-child > div span span:first-child {
  border-color: #7ba3eb;
  color: var(--c-accent-strong);
}

.site-ad-sub,
.site-ad-tagline,
.site-ad-stat-label,
a[rel~="sponsored"] > div:nth-of-type(4) > p:nth-child(2),
a[rel~="sponsored"] > div:nth-of-type(4) > p:nth-child(3),
a[rel~="sponsored"] > div:last-child > div span span:last-child {
  color: var(--c-muted);
}

.site-ad-stats,
a[rel~="sponsored"] > div:last-child > div {
  background: color-mix(in srgb, var(--c-surface) 84%, var(--c-accent-soft));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-border) 70%, transparent);
}

.site-ad-cta,
a[rel~="sponsored"] > div:last-child > span:last-child {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.24);
}

.site-ad-card:hover .site-ad-cta,
a[rel~="sponsored"]:hover > div:last-child > span:last-child {
  background: #1d4ed8;
}

.ad-card-gradient-border {
  background-image: linear-gradient(var(--c-surface), var(--c-surface)),
    linear-gradient(135deg, #2563eb 0%, var(--c-border) 48%, #60a5fa 100%);
}

.ad-card-gradient-border:hover {
  background-image: linear-gradient(var(--c-surface), var(--c-surface)),
    linear-gradient(135deg, #1d4ed8 0%, #93c5fd 48%, #2563eb 100%);
}

.text-gradient-accent,
.dark .text-gradient-accent {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

@media (min-width: 640px) {
  .category-grid > div,
  main:has(#stations) > div.mx-auto > #stations + section > div.grid > div {
    border-right: 1px solid var(--c-border);
  }

  .category-grid > div:nth-child(2n),
  main:has(#stations) > div.mx-auto > #stations + section > div.grid > div:nth-child(2n) {
    border-right: 0;
  }

  .category-grid > div:nth-last-child(-n + 2),
  main:has(#stations) > div.mx-auto > #stations + section > div.grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (min-width: 768px) {
  .site-mobile-nav {
    display: none;
  }
}

@media (min-width: 1024px) {
  .category-grid > div,
  .category-grid > div:nth-child(2n),
  main:has(#stations) > div.mx-auto > #stations + section > div.grid > div,
  main:has(#stations) > div.mx-auto > #stations + section > div.grid > div:nth-child(2n) {
    border-right: 1px solid var(--c-border);
    border-bottom: 0;
  }

  .category-grid > div:last-child,
  main:has(#stations) > div.mx-auto > #stations + section > div.grid > div:last-child {
    border-right: 0;
  }
}

@media (max-width: 1359.98px) {
  .site-header .site-nav {
    display: none !important;
  }

  .site-header .site-mobile-nav {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .site-header .site-button.hidden {
    display: none;
  }

  body::before {
    height: 190px;
  }

  .site-header-inner {
    height: 60px;
  }

  .site-brand {
    font-size: 16px;
  }

  .site-brand svg {
    width: 24px;
    height: 24px;
  }

  .home-hero-inner,
  main:has(#stations) > section:first-child > div.relative.mx-auto {
    padding-top: 20px;
    padding-bottom: 19px;
  }

  .home-hero h1,
  main:has(#stations) > section:first-child h1 {
    font-size: 1.5rem;
  }

  .quick-models,
  main:has(#stations) > section:first-child h1 + p + div {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .quick-models::-webkit-scrollbar,
  main:has(#stations) > section:first-child h1 + p + div::-webkit-scrollbar {
    display: none;
  }

  .quick-models > span,
  .quick-models a,
  main:has(#stations) > section:first-child h1 + p + div > span,
  main:has(#stations) > section:first-child h1 + p + div > a {
    flex: none;
  }

  .station-toolbar,
  #stations > .sticky-edge-fade {
    top: 60px;
  }

  .station-toolbar > div,
  #stations > .sticky-edge-fade > div {
    display: block;
  }

  .station-toolbar [data-sort],
  #stations > .sticky-edge-fade [data-sort] {
    flex: none;
  }

  .station-toolbar [data-sort-toggle],
  #stations > .sticky-edge-fade [data-sort-toggle] {
    padding-inline: 12px;
  }

  .station-toolbar [data-filter-panel],
  #stations > .sticky-edge-fade [data-filter-panel] {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-surface);
  }

  .station-toolbar [data-filter-group],
  #stations > .sticky-edge-fade [data-filter-group] {
    max-width: calc(100vw - 100px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .station-toolbar [data-filter-group]::-webkit-scrollbar,
  #stations > .sticky-edge-fade [data-filter-group]::-webkit-scrollbar {
    display: none;
  }

  .station-card {
    min-height: 0;
  }

  .station-card .site-button {
    min-height: 38px;
  }

  main > header:not(.home-hero) h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
