/* ColorfulMaps — "Atlas" theme. Paper background, serif display type, printed-map feel:
   thin rules, small radii, a colour band per category. Light only, by design. */
:root {
  --bg: #F7F4EC;
  --bg-2: #EFEAE0;
  --paper: #FFFDF8;
  --panel: #FFFFFF;
  --panel-2: #F3EFE6;
  --rule: #E2DBCD;
  --rule-2: #CFC6B4;
  --ink: #1E2230;
  --ink-2: #454B5A;
  --muted: #747988;
  --accent: #1E5AA8;
  --accent-ink: #164684;
  --coral: #D9443F;
  --amber: #9A6100;
  --amber-bg: #F5B83D;
  --teal: #0E8579;
  --green: #2B7F49;
  --purple: #6447C2;
  --ok: #1E7A43;
  --bad: #C4364A;
  --tint: rgba(46, 38, 24, .045);
  --tint-2: rgba(46, 38, 24, .085);
  --shade: #2A2318;
  --cat-mix: 72%;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --r: 8px;
  --r-sm: 6px;
  --lift: 0 1px 0 var(--rule), 0 12px 24px -18px rgba(42, 35, 24, .45);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.62 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; line-height: 1.1; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: .88em; background: var(--tint); padding: .1em .4em; border-radius: 4px; color: var(--ink-2); }
pre { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.55; }
pre code { background: none; padding: 0; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sel { user-select: all; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 99; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
.wrap.narrow { max-width: 880px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ic-sm { width: 15px; height: 15px; }
.ic-xs { width: 13px; height: 13px; vertical-align: -2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 600 14px/1 var(--body); padding: 11px 18px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; color: var(--ink); background: var(--panel-2); text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-go { background: var(--accent); color: #fff; }
.btn-go:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--panel); border-color: var(--rule-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-line { background: transparent; border-color: var(--accent); color: var(--accent); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Top */
.topstripe { display: grid; grid-template-columns: repeat(6, 1fr); height: 5px; }
.topstripe i:nth-child(1), .foot-stripe i:nth-child(1) { background: #E5484D; }
.topstripe i:nth-child(2), .foot-stripe i:nth-child(2) { background: #F5B83D; }
.topstripe i:nth-child(3), .foot-stripe i:nth-child(3) { background: #2B7F49; }
.topstripe i:nth-child(4), .foot-stripe i:nth-child(4) { background: #0E8579; }
.topstripe i:nth-child(5), .foot-stripe i:nth-child(5) { background: #2F7DE1; }
.topstripe i:nth-child(6), .foot-stripe i:nth-child(6) { background: #6447C2; }
.masthead { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; white-space: nowrap; flex: none; }
.brand-txt { font: 700 22px/1 var(--display); letter-spacing: -.02em; }
.brand-txt b { font-weight: 700; color: var(--coral); font-style: italic; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.top-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.top-nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); padding: 7px 11px; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.top-nav a:hover { color: var(--ink); text-decoration: none; }
.top-nav a.on { color: var(--ink); border-bottom-color: var(--coral); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: blink 1.6s infinite; }
.top-search { margin-left: auto; flex: 0 1 260px; min-width: 0; display: flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--rule); border-radius: 999px; padding: 0 12px; color: var(--muted); }
.top-search:focus-within { border-color: var(--accent); background: var(--panel); }
.top-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 14px var(--body); height: 36px; }
.top-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink-2); border: 1px solid var(--rule); flex: none; }
.top-icon:hover { color: var(--ink); border-color: var(--ink-2); }
.top-submit { flex: none; }
@media (max-width: 1040px) { .top-nav { display: none; } }
@media (max-width: 560px) { .top-in { gap: 8px; } .brand-txt { display: none; } .top-submit span { display: none; } .top-submit { padding: 9px 11px; } }

/* Hero */
.hero { position: relative; background:
  linear-gradient(var(--bg), rgba(247,244,236,.86)),
  repeating-linear-gradient(0deg, transparent 0 39px, var(--rule) 39px 40px),
  repeating-linear-gradient(90deg, transparent 0 39px, var(--rule) 39px 40px);
  border-bottom: 1px solid var(--rule); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: 52px 34px; }
.hero-copy { min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--panel); border: 1px solid var(--rule); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: conic-gradient(#E5484D, #F5B83D, #2B7F49, #2F7DE1, #6447C2, #E5484D); }
.hero h1 { font-size: clamp(40px, 6vw, 74px); font-weight: 700; letter-spacing: -.03em; line-height: 1.0; }
.hero h1 em { display: block; font-style: italic; font-weight: 600; color: var(--coral); }
.lede { font-size: 17px; color: var(--ink-2); max-width: 60ch; margin-top: 16px; }
.hero-search { display: flex; align-items: center; gap: 10px; margin-top: 26px; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 8px 0 20px; color: var(--muted); box-shadow: 4px 4px 0 var(--ink); }
.hero-search:focus-within { box-shadow: 4px 4px 0 var(--accent); border-color: var(--accent); }
.hero-search input { flex: 1; min-width: 0; height: 56px; background: none; border: 0; outline: 0; color: var(--ink); font: 16px var(--body); }
.hero-count { font-size: 12px; color: var(--accent); white-space: nowrap; padding-right: 12px; }
.big-search { max-width: 640px; margin: 20px auto 0; box-shadow: none; border-width: 1px; border-color: var(--rule-2); }
.big-search input { height: 50px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.quick button, .quick a { display: inline-flex; align-items: center; gap: 5px; font: 600 13px var(--body); color: var(--ink-2); background: transparent; border: 0; border-bottom: 1.5px dotted var(--rule-2); padding: 3px 2px; cursor: pointer; text-decoration: none; }
.quick button:hover, .quick button.on, .quick a:hover { color: var(--coral); border-bottom-color: var(--coral); text-decoration: none; }
.quick-rand { color: var(--accent) !important; }
.hero-art { margin: 0; min-width: 0; border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 30px 60px -38px rgba(42,35,24,.6); transform: rotate(1.2deg); }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 30px; border-top: 1px solid var(--ink); }
.hero-stats > div { padding: 14px 16px 0 0; }
.hero-stats dt { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-stats dd { margin: 2px 0 0; font: 700 34px/1.1 var(--display); }
@media (max-width: 960px) { .hero-in { grid-template-columns: 1fr; gap: 30px; padding-block: 34px 26px; } .hero-art { transform: none; } }
@media (max-width: 560px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } .hero-stats dd { font-size: 26px; } }

/* Section heads */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.sec-head h2 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.more { font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* Atlas index (category tiles) */
.atlas-index { padding-block: 36px 8px; }
.atlas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.atlas-cell { --cat: var(--coral); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; background: var(--panel); border: 1px solid var(--rule); border-left: 4px solid var(--cat); border-radius: var(--r-sm); color: var(--ink); text-decoration: none !important; transition: background .15s; min-width: 0; }
.atlas-cell:hover { background: color-mix(in srgb, var(--cat) 8%, var(--panel)); }
.atlas-ic { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--cat) 15%, transparent); color: color-mix(in srgb, var(--cat) var(--cat-mix), var(--ink)); }
.atlas-ic .ic { width: 17px; height: 17px; }
.atlas-cell strong { font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atlas-cell small { font: 11px var(--mono); color: var(--muted); }
.atlas-live { --cat: var(--coral); }

/* Home flow */
.home-flow { padding-bottom: 30px; }
.band { padding-top: 40px; scroll-margin-top: 80px; }
.band-live { margin-top: 30px; padding: 22px 22px 6px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; }
.band-live .sec-head { border-bottom: 0; padding-bottom: 0; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (max-width: 600px) { .scroller { grid-auto-columns: 78%; } .band-live { padding: 16px 14px 4px; } }
.cat-band-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: end; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--cat); }
.cat-num { font-size: 13px; color: color-mix(in srgb, var(--cat) var(--cat-mix), var(--ink)); background: color-mix(in srgb, var(--cat) 12%, transparent); padding: 4px 8px; border-radius: 4px; align-self: start; margin-top: 4px; }
.cat-band-head h2 { font-size: 26px; }
.cat-band-head h2 a { color: var(--ink); }
.cat-band-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .cat-band-head { grid-template-columns: auto minmax(0, 1fr); } .cat-band-head .more { grid-column: 2; justify-self: start; } }
.home-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .home-lower { grid-template-columns: 1fr; } }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 40px; padding: 26px 28px; background: #FFF3DC; border: 1px solid #EED9AE; border-radius: 14px; }
.cta-band h2 { font-size: 24px; }
.cta-band p { margin: 6px 0 0; color: var(--ink-2); }

/* Tiles (map cards) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.tile:hover { border-color: var(--rule-2); box-shadow: var(--lift); transform: translateY(-2px); }
.tile-hit { position: absolute; inset: 0; z-index: 1; }
.tile-band { position: relative; height: 46px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 12px; background-color: color-mix(in srgb, var(--cat) 14%, var(--panel)); border-bottom: 1px solid color-mix(in srgb, var(--cat) 25%, transparent); }
.tile-band.p0 { background-image: repeating-radial-gradient(circle at 85% 120%, transparent 0 9px, color-mix(in srgb, var(--cat) 22%, transparent) 9px 10px); }
.tile-band.p1 { background-image: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--cat) 18%, transparent) 9px 10px); }
.tile-band.p2 { background-image: radial-gradient(color-mix(in srgb, var(--cat) 30%, transparent) 1.2px, transparent 1.4px); background-size: 10px 10px; }
.tile-band.p3 { background-image: repeating-radial-gradient(ellipse at 10% -20%, transparent 0 11px, color-mix(in srgb, var(--cat) 20%, transparent) 11px 12px); }
.tile-cat { margin-left: 64px; display: inline-flex; align-items: center; gap: 5px; font: 600 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--cat) var(--cat-mix), var(--ink)); background: var(--panel); padding: 3px 8px; border-radius: 4px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-body { position: relative; padding: 0 16px 12px; display: flex; flex-direction: column; flex: 1; }
.tile-body .logo { margin-top: -22px; margin-bottom: 8px; box-shadow: 0 0 0 3px var(--panel), 0 0 0 4px var(--rule); }
.tile-name { font-size: 19px; font-weight: 650; line-height: 1.15; overflow-wrap: anywhere; }
.tile-tag { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; margin: 6px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tile-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 16px; border-top: 1px dashed var(--rule); }
.tile-dom { font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tile-open { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.tile.is-sponsored { border-color: #E6C988; }
.tile.is-featured { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* Flags & badges */
.flag { display: inline-flex; align-items: center; gap: 5px; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; color: var(--accent); background: var(--panel); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); white-space: nowrap; }
.flag-ad { color: var(--amber); border-color: #E6C988; }
.flag-live { color: #B8312F; border-color: color-mix(in srgb, var(--coral) 40%, transparent); }
.flag-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.badge { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--body); padding: 4px 8px; border-radius: 4px; background: var(--tint-2); color: var(--ink-2); white-space: nowrap; }
.b-free { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.b-freemium { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.b-paid { background: color-mix(in srgb, var(--amber-bg) 25%, transparent); color: var(--amber); }
.b-3d { background: color-mix(in srgb, var(--purple) 12%, transparent); color: var(--purple); }
.b-login { color: var(--muted); padding: 3px 6px; }
.b-live { background: color-mix(in srgb, var(--coral) 12%, transparent); color: #B8312F; }
.b-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: blink 1.6s infinite; }
.b-api { background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal); }
.chip-mini { font-size: 11px; color: var(--muted); border: 1px solid var(--rule); padding: 3px 7px; border-radius: 4px; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--panel); border: 1px solid var(--rule); padding: 5px 12px; border-radius: 999px; text-decoration: none !important; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-tag::before { content: "#"; color: var(--muted); margin-right: 1px; }
.chips-lg .chip { font-size: 14px; padding: 8px 14px; }
.chip small { color: var(--muted); margin-left: 5px; font-family: var(--mono); font-size: 11px; }

/* Logos */
.logo { --s: 40px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; border-radius: 50%; background: #FFFFFF; overflow: hidden; box-shadow: 0 0 0 1px var(--rule-2); }
.logo::before { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font: 700 calc(var(--s) * .36)/1 var(--display); color: #fff; background: color-mix(in srgb, var(--cat, #2F7DE1) 85%, #1E2230); }
.logo img { position: relative; width: 58%; height: 58%; object-fit: contain; background: #fff; box-shadow: 0 0 0 30px #fff; }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.panel-head h2, .panel-title { font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.panel-head h2 { margin: 0; }
.panel-foot { display: flex; gap: 14px; font-size: 13px; padding-top: 10px; border-top: 1px solid var(--rule); margin-top: 6px; }
.panel p:last-child { margin-bottom: 0; }
.panel-tint { background: #FFF6E4; border-color: #EED9AE; }

/* Rankings */
.rank { list-style: none; margin: 0; padding: 0; }
.home-flow .rank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 760px) { .home-flow .rank { grid-template-columns: 1fr; } }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.rank-n { width: 28px; flex: none; font: 700 20px var(--display); color: var(--muted); text-align: right; font-style: italic; }
.rank-row.top .rank-n { color: var(--coral); }
.rank-name { flex: 1; min-width: 0; color: var(--ink); text-decoration: none !important; }
.rank-name strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-name span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-name:hover strong { color: var(--accent); }
.rank-val { font: 600 13px var(--mono); color: var(--ink-2); text-align: right; white-space: nowrap; }
.rank-val small { display: block; font: 10px var(--body); color: var(--muted); }
.rank-go { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-2); border: 1px solid var(--rule); }
.rank-go:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.rank-big .rank-row { padding: 12px 16px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); margin-bottom: 8px; gap: 14px; }
.rank-bar { flex: 0 0 22%; height: 8px; background: var(--tint); border-radius: 2px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--cat, var(--accent)); }
.rank-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-bottom: 60px; }
.rank-layout > * { min-width: 0; }
.rank-cats { display: flex; flex-direction: column; gap: 0; position: sticky; top: 84px; align-self: start; border-left: 1px solid var(--rule); }
.rank-cats a { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; padding: 6px 12px; text-decoration: none; border-left: 3px solid transparent; margin-left: -2px; }
.rank-cats a i { width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--accent)); }
.rank-cats a:hover { color: var(--ink); }
.rank-cats a.on { color: var(--ink); font-weight: 700; border-left-color: var(--coral); }
@media (max-width: 860px) { .rank-layout { grid-template-columns: 1fr; } .rank-cats { position: static; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--rule); } .rank-cats a { flex: none; border-left: 0; border-bottom: 3px solid transparent; margin: 0 0 -2px; } .rank-cats a.on { border-bottom-color: var(--coral); } .rank-bar { display: none; } }

/* Segmented control & toolbar */
.seg { display: inline-flex; gap: 0; border: 1px solid var(--rule-2); border-radius: 999px; overflow: hidden; margin-bottom: 16px; flex-wrap: wrap; background: var(--panel); }
.seg a, .seg button { font: 600 13px var(--body); color: var(--ink-2); background: none; border: 0; padding: 8px 14px; cursor: pointer; text-decoration: none; border-right: 1px solid var(--rule); }
.seg a:last-child, .seg button:last-child { border-right: 0; }
.seg a.on, .seg button.on { background: var(--ink); color: #fff; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 4px; }
.toolbar .seg { margin: 0; }
.mini-search { background: var(--panel); border: 1px solid var(--rule-2); border-radius: 999px; color: var(--ink); font: 14px var(--body); padding: 9px 14px; min-width: 0; width: 240px; max-width: 100%; }

/* Category rail (category pages) */
.catnav { display: flex; gap: 0; overflow-x: auto; margin-top: 18px; border-bottom: 1px solid var(--rule); scrollbar-width: thin; }
.catnav a { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 10px 12px; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.catnav a i { width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--accent)); }
.catnav a:hover { color: var(--ink); }
.catnav a.on { color: var(--ink); border-bottom-color: var(--cat, var(--ink)); }
.catnav-live i { background: var(--coral) !important; animation: blink 1.6s infinite; }

/* Page heads */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font: 12px var(--mono); color: var(--muted); padding-top: 22px; letter-spacing: .02em; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.page-head { padding-block: 22px 8px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.025em; }
.page-head.with-logo { display: flex; gap: 18px; align-items: flex-start; }
.page-head.with-logo > div { min-width: 0; }
.cat-hero { display: flex; gap: 22px; align-items: flex-start; padding-block: 24px 6px; }
.cat-hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.025em; }
.cat-hero > div { min-width: 0; }
.cat-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: color-mix(in srgb, var(--cat, var(--accent)) var(--cat-mix), var(--ink)); background: color-mix(in srgb, var(--cat, var(--accent)) 14%, transparent); flex: none; }
.cat-ic .ic { width: 17px; height: 17px; }
.cat-ic-lg { width: 68px; height: 68px; border: 2px solid color-mix(in srgb, var(--cat) 45%, transparent); }
.cat-ic-lg .ic { width: 32px; height: 32px; }
@media (max-width: 560px) { .cat-hero { flex-direction: column; gap: 12px; } .page-head.with-logo { flex-direction: column; gap: 12px; } }

/* Layout with side column (category pages) */
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-block: 6px 60px; align-items: start; }
.home-main { min-width: 0; }
.home-side { display: grid; gap: 16px; min-width: 0; padding-top: 18px; }
@media (max-width: 1080px) { .home-layout { grid-template-columns: 1fr; } }
.block { padding-top: 26px; scroll-margin-top: 80px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.block-head h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.block-head h2 small { font: 12px var(--mono); color: var(--muted); }
.block-sub { color: var(--muted); font-size: 14px; margin: -6px 0 14px; max-width: 80ch; }

/* Detail */
.d-hero { background: color-mix(in srgb, var(--cat) 9%, var(--paper)); border-bottom: 1px solid color-mix(in srgb, var(--cat) 25%, var(--rule)); background-image: repeating-radial-gradient(circle at 92% 130%, transparent 0 22px, color-mix(in srgb, var(--cat) 12%, transparent) 22px 23px); }
.d-head { display: flex; gap: 22px; align-items: center; padding-top: 18px; }
.d-head .logo { box-shadow: 0 0 0 4px var(--panel), 0 0 0 5px var(--rule-2); }
.d-id { min-width: 0; }
.d-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.d-head h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; letter-spacing: -.03em; overflow-wrap: anywhere; }
.d-tag { font-size: 18px; color: var(--ink-2); margin: 8px 0 0; }
.d-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.spec-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border-top: 1px solid color-mix(in srgb, var(--cat) 35%, var(--rule)); }
.spec-strip > div { padding: 12px 14px 16px 0; border-right: 1px solid color-mix(in srgb, var(--cat) 20%, var(--rule)); }
.spec-strip > div + div { padding-left: 14px; }
.spec-strip > div:last-child { border-right: 0; }
.spec-strip dt { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec-strip dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 760px) { .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spec-strip > div { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid var(--rule); } }
@media (max-width: 560px) { .d-head { align-items: flex-start; gap: 14px; } .d-head .logo { --s: 56px !important; } }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-block: 10px 60px; align-items: start; }
.detail-main { min-width: 0; }
.detail-side { display: grid; gap: 14px; position: sticky; top: 84px; min-width: 0; padding-top: 26px; }
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; } .detail-side { position: static; } }
.d-sec { padding-top: 34px; }
.d-sec > h2, .prose h2 { font-size: 26px; margin-bottom: 14px; }
.prose { padding-top: 30px; max-width: 70ch; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose h2 { margin-top: 28px; }
.prose ol, .prose ul { padding-left: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px 22px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px dashed var(--rule); }
.ticks .ic { color: var(--cat, var(--accent)); margin-top: 4px; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: tip; }
.tips li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-left: 3px solid var(--amber-bg); padding: 12px 16px; color: var(--ink-2); }
.tips .ic { color: var(--amber); margin-top: 3px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.facts > div { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.facts dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.facts-side { grid-template-columns: 1fr; border-top: 0; }
.facts-side > div { padding: 10px 0; display: flex; justify-content: space-between; gap: 10px; }
.facts-side > div:last-child { border-bottom: 0; }
.facts-side dt { white-space: nowrap; }
.facts-side dd { margin: 0; text-align: right; font-weight: 500; min-width: 0; }
.stats-panel { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; }
.stats-panel b { display: block; font: 700 22px var(--display); color: var(--ink); }
.stats-panel span { font-size: 11px; color: var(--muted); }
.compare-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--rule); color: var(--ink-2); font-size: 14px; }
.callout .ic { margin-top: 2px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq-item { padding: 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font: 600 17px var(--display); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 22px/1 var(--mono); color: var(--coral); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 0 16px; margin: 0; color: var(--ink-2); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.cmp-table th, .cmp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.cmp-table thead th { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--ink); }
.cmp-table tbody tr:hover { background: var(--tint); }
.cmp-table tr.self { background: color-mix(in srgb, var(--amber-bg) 12%, transparent); }
.cmp-table tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.tcell { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; min-width: 0; }
.tcell strong { display: block; }
.tcell small { display: block; color: var(--muted); font-size: 12px; max-width: 36ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-table { min-width: 520px; }
.vs-table td, .vs-table thead th { width: 40%; }
.vs-head { display: flex; align-items: center; justify-content: center; gap: 28px; }
.vs-side { display: flex; flex-direction: column; align-items: center; gap: 10px; font: 700 26px var(--display); text-align: center; min-width: 0; }
.vs { font: italic 700 22px var(--display); color: var(--coral); }
.vs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block: 20px; }
@media (max-width: 760px) { .vs-cols { grid-template-columns: 1fr; } .vs-side { font-size: 19px; } .vs-head { gap: 14px; } }

/* Category & region grids */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding-block: 14px 10px; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--panel); border: 1px solid var(--rule); border-top: 4px solid var(--cat); border-radius: var(--r); color: var(--ink); text-decoration: none !important; transition: box-shadow .15s; min-width: 0; }
.cat-card:hover { box-shadow: var(--lift); }
.cat-card h2 { font-size: 21px; }
.cat-card p { color: var(--ink-2); font-size: 14px; margin: 0; flex: 1; }
.cat-logos { display: flex; align-items: center; gap: 6px; }
.cat-logos .mono { margin-left: auto; color: var(--muted); }
.region-groups { display: grid; gap: 26px; padding-block: 10px 40px; }
.region-group h2 { font-size: 22px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.region-group h2 a { color: var(--ink); }
.region-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.region-tile { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-sm); color: var(--ink); font-weight: 600; text-decoration: none !important; }
.region-tile:hover { border-color: var(--ink-2); }
.region-tile small { font: 12px var(--mono); color: var(--muted); font-weight: 400; }

.guide { max-width: 76ch; margin-top: 40px; padding: 24px 26px; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--cat, var(--accent)); border-radius: var(--r); }
.guide h2 { font-size: 24px; margin-bottom: 10px; }
.guide p { color: var(--ink-2); font-size: 15.5px; }

/* Forms */
.form { display: grid; gap: 14px; }
.f-row { display: grid; gap: 6px; }
.f-two { grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .f-two { grid-template-columns: 1fr; } }
.form label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.form input, .form select, .form textarea { background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r-sm); color: var(--ink); font: 15px var(--body); padding: 11px 12px; width: 100%; min-width: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--rule-2); margin: 10px 0 16px; }
.note-ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); color: var(--ok); }
.note-bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: var(--bad); }

.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.price-card.hot { border-color: #E6C988; background: #FFF9EC; }
.price b { font: 700 36px var(--display); }
.price span { color: var(--muted); margin-left: 4px; }
.price-card .ticks { grid-template-columns: 1fr; }

/* Own tools (shown only when enabled) */
.own-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.own-list a { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none !important; }
.own-list a:hover { background: var(--panel-2); }
.own-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; color: #fff; background: var(--accent); }
.own-txt { min-width: 0; flex: 1; }
.own-txt strong { display: block; font-size: 14px; }
.own-txt small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.own-arr { color: var(--muted); }
.own-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.own-grid li a { background: var(--panel); border: 1px solid var(--rule); padding: 14px; }

/* Misc */
.empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--rule-2); border-radius: var(--r); }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.notfound { padding-block: 80px; }
.notfound h1 { font-size: 52px; font-style: italic; }
.eyebrow { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: center; margin-bottom: 14px; }
.search-results { padding-top: 34px; }

/* Footer */
.foot { margin-top: 30px; background: var(--paper); border-top: 1px solid var(--rule); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 48px; padding-block: 44px 28px; }
.foot-claim { font: 500 22px/1.3 var(--display); color: var(--ink); margin-top: 14px; max-width: 26ch; }
.foot-brand .mono { color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.foot-cols h4 { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.foot-cols a { display: block; color: var(--ink-2); font-size: 14px; padding: 3px 0; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 16px 28px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; gap: 28px; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
