/* TemplateCatalog — site styles. Visual system taken from design/wireframe/wireframe.css
   (tokens, header, drawer, search scope, cascade, masonry, cards, buy box, health check, footer).
   Annotation layer, wireframe toolbar, profile/review/community UI are not part of the site. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f2f3f5; --header: #12172b; --card: #fff;
  --ink: #14161a; --ink-2: #55585f; --ink-3: #8a8d94; --rule: #e2e3e7;
  --accent: #0a5cff; --accent-2: #0748c9; --on-accent: #fff; --star: #f5a623;
  --ok: #1a8a4a; --ok-bg: #e6f6ec; --pend: #a3620a; --pend-bg: #fbeed9;
  --shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 4px 14px rgba(20, 22, 26, .06);
  --radius: 14px; --gap: 16px; --bar-h: 0px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c10; --card: #16181d; --ink: #eef0f2; --ink-2: #a7aab1; --ink-3: #6d7078; --rule: #2a2c33;
  --accent: #4d8dff; --accent-2: #6ea1ff; --on-accent: #0b0c10; --star: #f5b942;
  --ok: #37c274; --ok-bg: #123023; --pend: #e0a94a; --pend-bg: #332409;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0c10; --card: #16181d; --ink: #eef0f2; --ink-2: #a7aab1; --ink-3: #6d7078; --rule: #2a2c33;
    --accent: #4d8dff; --accent-2: #6ea1ff; --on-accent: #0b0c10; --star: #f5b942;
    --ok: #37c274; --ok-bg: #123023; --pend: #e0a94a; --pend-bg: #332409;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .35);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
ul, ol { padding: 0; }
a { color: var(--accent); }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hdr :focus-visible, .ftr :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.wrap { max-width: none; margin: 0; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; z-index: 300; left: 8px; top: -60px; padding: 10px 14px; border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 600; }
.skip:focus { top: 8px; }
.sec { margin: 32px 0; }
.sec > h2, .sec-h { font-size: 22px; letter-spacing: -.01em; margin-bottom: 12px; }
.sec-note { margin: -6px 0 14px; color: var(--ink-2); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.num, .price, .rating, .count { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }

/* image tile used when a product has no image: fixed aspect-ratio, no CLS */
.ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1200 / 630; background: var(--rule); color: var(--ink-2); border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; padding: 6px; overflow-wrap: anywhere; }
.pimg { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 8px; background: var(--rule); object-fit: cover; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.btn-1 { background: var(--accent); color: var(--on-accent); }
.btn-1:hover { background: var(--accent-2); }
.btn-2 { background: var(--card); color: var(--ink); border-color: var(--ink-3); }
.btn-2:hover { border-color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 34px; padding: 7px 10px; font-size: 13px; }
.link-btn { padding: 4px 0; border: 0; background: none; color: var(--accent); font: 600 13px var(--font); text-decoration: underline; cursor: pointer; }

/* badges, status pills, health line */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--rule); color: var(--ink-2); font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot-ok { background: var(--ok); }
.dot-watch { background: var(--pend); }
.dot-service { background: var(--ink-3); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.status .dot { background: currentColor; }
.status-watch { background: var(--pend-bg); color: var(--pend); }
.status-service { background: var(--bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.status-lg { padding: 5px 14px 5px 10px; font-size: 14px; line-height: 20px; }
.health { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 4px; color: var(--ink-2); font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.health .dot { margin-top: 4px; }
.reason { margin-bottom: 4px; color: var(--pend); font-size: 12px; font-weight: 600; line-height: 1.4; }

/* ---------- header ---------- */
.hdr { position: relative; z-index: 30; background: var(--header); color: #fff; }
/* row 1: logo · (desktop) browse-all · search · utilities; below 1024px the search drops to its own line */
.hdr-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 64px auto; grid-template-areas: "logo right" "search search"; align-items: center; column-gap: 12px; max-width: none; margin: 0; padding: 0 16px 14px; }
.hdr-in .logo { grid-area: logo; justify-self: start; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.logo-mark { flex: none; color: #4d8dff; }
.logo-t b { color: #4d8dff; font-weight: inherit; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }

.nav-item { position: relative; display: block; }
.nav-btn { display: flex; align-items: center; gap: 5px; padding: 8px 6px; border: 0; border-radius: 8px; background: none; color: #e7e9f0; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.nav-btn:hover, .nav-item:hover > .nav-btn, .nav-item.open > .nav-btn { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-btn[aria-current="page"] { background: rgba(255, 255, 255, .16); color: #fff; }
.dd { display: none; position: absolute; top: 100%; left: 0; z-index: 40; min-width: 230px; padding: 6px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .3); }
.nav-item:hover > .dd, .nav-item.open > .dd { display: block; }
.dd ul { list-style: none; margin: 0; padding: 0; }
.dd a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; text-decoration: none; }
.dd a:hover, .dd a[aria-current="page"] { background: var(--bg); }
.dd :focus-visible { outline-color: var(--accent); }
.nav-item.esc > .dd { display: none; }
.dd-label { margin: 0; padding: 8px 12px 4px; color: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dd-group + .dd-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--rule); }
.nav-more .dd { left: auto; right: 0; max-height: 70vh; overflow-y: auto; }
/* "Browse all categories" (row 1, desktop) */
.hdr-all { display: none; grid-area: all; }
.btn-all { height: 40px; padding: 0 12px 0 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; font-size: 14px; font-weight: 600; }
.dd-all { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; width: min(860px, calc(100vw - 64px)); padding: 12px; }
.hdr-all:hover > .dd-all, .hdr-all.open > .dd-all { display: grid; }
.hdr-all.esc > .dd-all { display: none; }
.dd-col-wide ul { columns: 2; column-gap: 8px; }
.dd-col-wide li { break-inside: avoid; }
.dd-stack { display: grid; align-content: start; gap: 10px; }
.hdr-right { grid-area: right; display: flex; align-items: center; justify-self: end; gap: 8px; }
.hdr-cta { display: none; min-height: 40px; padding: 8px 16px; white-space: nowrap; }
.hdr-menu-t { display: none; }
.hdr-search { grid-area: search; min-width: 0; }
/* row 2 (desktop): the main product types, 14px, 22px apart, no icons; overflow goes to "More ▾" via site.js */
.cats { display: none; border-top: 1px solid rgba(255, 255, 255, .1); padding: 0 16px; }
.cats-list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; min-height: 42px; margin: 0; padding: 0; }
.cats .nav-btn { padding: 11px 0; border-radius: 0; font-size: 14px; }
.cats .nav-btn:hover, .cats .nav-item:hover > .nav-btn, .cats .nav-item.open > .nav-btn { background: none; color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.cats .nav-btn[aria-current="page"], .cats .nav-btn.cur { background: none; color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }

/* search pill + scope dropdown */
.pill { display: flex; align-items: center; height: 48px; color: var(--ink); padding: 0 16px 0 6px; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow); }
.pill:focus-within { outline: 2px solid var(--accent); }
.scope { position: relative; flex: 0 0 auto; }
.pill .div { flex: none; width: 1px; height: 24px; margin: 0 12px 0 6px; background: var(--rule); }
.pill svg { flex: none; color: var(--ink-2); }
.pill input[type="search"] { flex: 1; min-width: 0; padding: 12px 10px; border: 0; background: transparent; font-size: 16px; outline: 0; }
.pill input::placeholder { color: var(--ink-2); opacity: 1; }
.scope-btn { display: flex; align-items: center; gap: 6px; max-width: 150px; padding: 12px 12px 12px 14px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; }
.scope-btn > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-btn > span:last-child { color: var(--ink-2); font-size: 12px; }
.scope-menu { position: absolute; z-index: 70; top: calc(100% + 10px); left: -6px; width: min(280px, calc(100vw - 32px)); max-height: min(640px, 80vh); overflow: auto; padding: 6px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.scope-sep { margin: 6px 0 2px; padding: 8px 10px 2px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.scope-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 14px; text-align: left; cursor: pointer; }
.scope-opt:hover, .scope-opt:focus-visible { background: var(--bg); }
.scope-opt .chk { flex: none; width: 16px; text-align: right; color: var(--accent); font-weight: 700; visibility: hidden; }
.scope-opt[aria-selected="true"] { font-weight: 700; }
.scope-opt[aria-selected="true"] .chk { visibility: visible; }

/* ---------- right-hand drawer (level 1 only: rows link straight to the category page) ---------- */
body.drawer-open { overflow: hidden; }
.drawer-scrim { display: none; position: fixed; z-index: 250; inset: 0; background: rgba(8, 10, 22, .55); }
.drawer-scrim.open { display: block; }
.drawer { position: fixed; z-index: 260; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(400px, 100%); background: var(--card); color: var(--ink); box-shadow: -12px 0 40px rgba(0, 0, 0, .3); transform: translateX(105%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
.drawer.open { transform: none; visibility: visible; transition: transform .22s ease; }
.dr-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--rule); }
.dr-logo { color: var(--ink); }
.dr-logo .logo-mark, .dr-logo .logo-t b { color: var(--accent); }
.dr-close { border-color: var(--rule); color: var(--ink); }
.dr-close:hover { background: var(--bg); }
.dr-body { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 12px; }
.dr-label { padding: 16px 20px 6px; color: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dr-list, .dr-sec { list-style: none; margin: 0; padding: 0; }
.dr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 20px; border: 0; background: none; color: var(--ink); font-size: 17px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.dr-row:hover, .dr-row[aria-current="page"] { background: var(--bg); }
.dr-row:focus-visible { outline-offset: -3px; }
.dr-row .chev { flex: none; color: var(--ink-2); font-size: 22px; line-height: 1; }
.dr-all { border-bottom: 1px solid var(--rule); }
.dr-div { margin: 12px 0; border: 0; border-top: 1px solid var(--rule); }
.dr-sec a { display: block; padding: 11px 20px; color: var(--ink); font-size: 15px; text-decoration: none; }
.dr-sec a:hover { background: var(--bg); }
.dr-bottom { flex: none; display: grid; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--card); }
.dr-elements { text-align: center; font-size: 13px; }

/* ---------- breadcrumbs, page heads ---------- */
.crumbs { padding: 14px 0 6px; font-size: 13px; color: var(--ink-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink); }
.crumbs a:hover { color: var(--accent); }
.chead { padding: 8px 0 12px; }
.chead h1, .page-h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; margin-bottom: 8px; overflow-wrap: anywhere; }
.lede { max-width: 72ch; margin-bottom: 8px; color: var(--ink-2); }
.meta-line { margin-bottom: 4px; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.disc-line { font-size: 13px; color: var(--ink-2); }

/* ---------- category page: filter rail + results ---------- */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.rail { padding: 16px; }
.rail h2 { font-size: 16px; margin-bottom: 10px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; }
.rail-close, .rail-apply, .filters-btn, .scrim { display: none; }
.fgroup { min-width: 0; margin: 0 0 14px; padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--rule); }
.fgroup:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.fgroup legend { padding: 0; margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.fopt { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.fopt input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.fopt .count { margin-left: auto; color: var(--ink-2); font-size: 13px; }
.fopt.is-empty { color: var(--ink-2); }
.rail-clear { margin-top: 12px; }
.res-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; margin-bottom: var(--gap); }
.res-count { margin-right: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.sort select { padding: 7px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 14px; }
.filters-btn { align-items: center; gap: 6px; }
.no-match { padding: 24px; text-align: center; color: var(--ink-2); }
.no-match p { margin-bottom: 10px; }

/* product grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--gap); }
.prod { display: flex; flex-direction: column; padding: 10px; }
.shot { position: relative; }
.shot > a { display: block; text-decoration: none; }
.prod-pill { margin: 10px 0 4px; }
.prod-name { margin: 4px 0 2px; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.prod-name a { color: var(--ink); text-decoration: none; }
.prod-name a:hover { text-decoration: underline; }
.vendor { margin-bottom: 8px; font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.price-line { margin-bottom: 6px; font-size: 13px; color: var(--ink-2); }
.price-line .price { color: var(--ink); font-size: 15px; }
.price { font-weight: 700; }
.rating { margin-bottom: 6px; font-size: 12px; color: var(--ink-2); }
.star { color: var(--star); }
.verdict { margin-bottom: 12px; font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.actions { display: flex; gap: 6px; margin-top: auto; }
.actions .btn { flex: 1; }

/* tables (own scroll wrapper) */
.tbl-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.tbl thead th { color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody th { position: sticky; left: 0; background: var(--card); font-weight: 700; }
.tbl td { font-variant-numeric: tabular-nums; }
.cmp { min-width: 940px; }
.cmp .nowrap { white-space: nowrap; }
.cmp-name { display: block; margin-bottom: 4px; }
.cmp-name a { color: var(--ink); }
.cmp .reason { margin: 4px 0 0; font-weight: 400; max-width: 22ch; }

/* chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.gallery { grid-column: 1; grid-row: 1; min-width: 0; }
.buy { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 16px; min-width: 0; }
.pdp-main { grid-column: 1; grid-row: 2; min-width: 0; }
.pdp-main > .sec:first-child { margin-top: 0; }
.g-main .pimg, .g-main .ph { border-radius: var(--radius); }
.buy-card { padding: 20px; }
.buy-card .badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.buy-card h1 { font-size: 30px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.by { margin: 2px 0 10px; color: var(--ink-2); }
.buy-card .rating { margin-bottom: 14px; font-size: 14px; }
.price-big { font-size: 30px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price-note { margin: 2px 0 14px; font-size: 12px; color: var(--ink-2); }
.micro { margin: 10px 0 0; font-size: 12px; color: var(--ink-2); }

.verdict-box { padding: 20px 22px 20px 24px; border-left: 5px solid var(--accent); }
.verdict-box .lbl { margin-bottom: 8px; color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.verdict-box p { max-width: 70ch; font-size: 17px; }

.health-box { padding: 20px; }
.health-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.health-head h2 { font-size: 22px; letter-spacing: -.01em; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; margin: 0; }
.metric dt { margin-bottom: 2px; color: var(--ink-2); font-size: 13px; }
.metric dd { margin: 0; }
.metric b { display: block; font-size: 18px; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric small { color: var(--ink-2); font-size: 12px; }
.health-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 13px; }
.health-foot p + p { margin-top: 6px; }
.watch-box { margin-bottom: 16px; padding: 14px 16px; border-left: 4px solid var(--pend); border-radius: 8px; background: var(--pend-bg); color: var(--ink); }
.watch-box b { color: var(--pend); }
.watch-box p + p { margin-top: 6px; font-size: 14px; }
.sources { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.sources a { font-weight: 600; }
.sources-sep { margin: 0 6px; }
.svc-note { padding: 18px 20px; color: var(--ink-2); }

.alts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); margin: 0; }
.alt { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 14px; }
.alt h3 { font-size: 16px; overflow-wrap: anywhere; }
.alt h3 a { color: var(--ink); text-decoration: none; }
.alt h3 a:hover { text-decoration: underline; }
.alt .vendor { margin-bottom: 6px; }
.alt .actions { grid-column: 1 / -1; }
.mbar { display: none; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); margin-top: 8px; }
.hero-banner { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 340px; padding: 36px; border-radius: var(--radius); background: var(--header); color: #fff; }
.hero-copy { position: relative; z-index: 2; max-width: 56%; }
.hero-kicker { margin-bottom: 10px; color: #8fb4ff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hero-copy h1 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.hero-copy p { margin-bottom: 20px; color: #c9ccd6; font-size: 16px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; }
.hero-art img { position: absolute; width: 64%; height: auto; aspect-ratio: 1200 / 630; border-radius: 8px; object-fit: cover; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.hero-art .a1 { top: 12%; left: 4%; transform: rotate(-6deg); }
.hero-art .a2 { top: 36%; right: -4%; transform: rotate(4deg); z-index: 2; }
.hero-art .a3 { bottom: 10%; left: 14%; transform: rotate(-2deg); z-index: 3; }
.drop { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 22px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.drop h2 { font-size: 22px; letter-spacing: -.01em; }
.drop p { color: var(--ink-2); font-size: 14px; }
.soon { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--pend-bg); color: var(--pend); font-size: 13px; font-weight: 700; }

/* staggered cascade: equal cards, every even column shifted down 48px */
.cascade { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0 0 48px; }
.cascade > li { position: relative; height: 352px; }
.cascade > li:nth-child(even) { transform: translateY(48px); }
.cat { display: flex; flex-direction: column; height: 100%; padding: 14px 14px 12px; color: var(--ink); text-decoration: none; }
a.cat:hover { border-color: var(--ink-3); }
.cat-t { margin: 0; font-size: 17px; line-height: 1.2; }
.cat-n { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.cat-health { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; color: var(--ink-2); font-size: 12px; }
.coll-prev { flex: 1; min-height: 0; display: grid; gap: 6px; }
.coll-prev img, .coll-prev .ph { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; object-position: top left; border-radius: 8px; background: var(--rule); font-size: 11px; }
.cp-1 { grid-template: 1fr / 1fr; }
.cp-2 { grid-template: 1fr / 1fr 1fr; }
.cp-3 { grid-template: 1fr 1fr / 1fr 1fr; }
.cp-3 > :first-child { grid-row: 1 / 3; }
.cp-4 { grid-template: 1fr 1fr / 1fr 1fr; }

/* real masonry (CSS columns) with hover info overlay */
.masonry { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; }
.mtile { position: relative; display: block; overflow: hidden; }
.mtile .pimg, .mtile .ph { border-radius: 0; aspect-ratio: 1200 / 630; }
.mt-link { display: block; color: inherit; text-decoration: none; }
.mt-link:focus-visible { outline-offset: -3px; }
.mt-info { padding: 10px 12px 12px; }
.mt-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.mt-top b { flex: 1 1 auto; overflow-wrap: break-word; }
.mt-info .vendor { margin-bottom: 4px; }
.mt-info .rating { margin-bottom: 8px; }
.mt-actions { display: flex; align-items: center; gap: 6px; }
.mt-actions .btn { flex: 1; }
@media (hover: hover) and (min-width: 768px) {
  .mt-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 12px 12px; background: linear-gradient(to top, rgba(8, 10, 22, .95) 60%, rgba(8, 10, 22, 0)); color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
  .mtile:hover .mt-info, .mtile:focus-within .mt-info { opacity: 1; transform: none; }
  .mt-info .vendor, .mt-info .health, .mt-info .rating { color: #c9ccd6; }
}

/* lists: recently updated, on watch */
.lrows { list-style: none; display: grid; gap: 10px; margin: 0; }
.lrow { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 16px; }
.lrow-w { grid-template-columns: minmax(0, 1fr) auto; }
.ldate { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.ltxt { min-width: 0; }
.ltop { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.lname { font-weight: 700; color: var(--ink); text-decoration: none; }
.lname:hover { text-decoration: underline; }
.lline { display: block; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.lline.reason { margin: 0; font-size: 14px; font-weight: 400; color: var(--ink); }
.llink { font-weight: 600; white-space: nowrap; }
.rules-end { margin-top: 12px; font-weight: 600; }

.rules-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-bottom: 12px; }
.rules-col { padding: 20px; }
.rules-list { list-style: none; display: grid; gap: 12px; margin: 0; }
.rules-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.rule-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--card); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rules-list b { display: block; }
.rules-list li > div > span { color: var(--ink-2); font-size: 13px; }
.note-box { padding: 14px 16px; border: 1px solid var(--rule); border-left: 4px solid var(--ink-3); border-radius: 10px; background: var(--card); font-size: 14px; }
.note-box b { display: block; margin-bottom: 4px; }
.note-box p { color: var(--ink-2); }
.note-box p + p { margin-top: 6px; }

.elements-card { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 16px 20px 16px 16px; margin-bottom: 12px; }
.elements-card h3 { margin: 6px 0 4px; font-size: 20px; letter-spacing: -.01em; }
.elements-card p { color: var(--ink-2); }
.elements-card .price-line { margin: 8px 0 0; }
.el-actions { display: grid; gap: 8px; justify-items: stretch; }
.vendors { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0; }
.vendor-box { display: grid; place-items: center; min-height: 52px; padding: 8px 10px; color: var(--ink-2); font-size: 13px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }

/* ---------- designs (templates): own 1280x800 screenshots, 16:10 ---------- */
.timg { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; border-radius: 8px; background: var(--rule); object-fit: cover; object-position: top; }
.g-main .timg { border-radius: var(--radius); border: 1px solid var(--rule); }
.tbadges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.badge-pro { border-color: var(--accent); color: var(--accent); }
.badge-free { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.badge-kind { background: var(--ink); border-color: var(--ink); color: var(--card); }
.tcheck { margin: 2px 0 12px; text-wrap: balance; color: color-mix(in srgb, var(--ok) 72%, var(--ink)); font-size: 12px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
/* gallery card: the screenshot opens the live demo, the blue price tag opens the design page */
.tgrid { grid-template-columns: repeat(auto-fill, minmax(max(290px, calc((100% - 3 * var(--gap)) / 4)), 1fr)); }  /* 4 columns at most */
.tcard .tcheck { margin-bottom: 4px; }
.demo-link { position: relative; border-radius: 8px 8px 0 0; }
.tcard .timg { border-radius: 8px 8px 0 0; }
.veil { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 8px 8px 0 0; background: rgba(8, 10, 22, .6); color: #fff; font-size: 15px; font-weight: 700; opacity: 0; transition: opacity .15s; }
/* white strip under the screenshot, white in dark mode too */
.tstrip { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 10px; padding: 6px 10px; border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 8px 8px; background: #fff; color: #0b0c10; font-size: 13px; font-weight: 800; line-height: 1.2; }
.tstrip + .tbadges { margin-top: 0; }
.blogo { flex: none; width: 16px; height: 16px; background: center / contain no-repeat; }
.blogo-elementor { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cpath fill='%23ED01EE' d='M120 0C53.7 0 0 53.7 0 120C0 186.3 53.7 240 120 240C186.3 240 240 186.3 240 120C240 53.7 186.3 0 120 0ZM84 180H60V60H84V180ZM180 180H108V156H180V180ZM180 132H108V108H180V132ZM180 84H108V60H180V84Z'/%3E%3C/svg%3E"); }
.blogo-astra { background-image: url("data:image/png;base64,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"); }
.veil-in { padding: 10px 18px; border: 2px solid #fff; border-radius: 999px; }
.v-touch { display: none; }
.demo-link:hover .veil, .demo-link:focus-visible .veil { opacity: 1; }
/* button blue + white text in both themes (dark mode's lighter accent would need dark text) */
.shot > .price-tag { position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-block; padding: 5px 11px; border-radius: 999px; background: #0a5cff; color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); font-size: 15px; font-weight: 800; line-height: 1.2; text-decoration: none; font-variant-numeric: tabular-nums; }
.price-tag small { font-size: 12px; font-weight: 600; }
.shot > .price-tag:hover { background: #0748c9; text-decoration: underline; }
@media (hover: none) {
  .veil { opacity: 1; place-items: end start; padding: 8px; background: none; font-size: 12px; }
  .veil-in { padding: 4px 10px; border: 0; background: rgba(8, 10, 22, .72); }
  .v-hover { display: none; }
  .v-touch { display: inline; }
}
/* hover preview: resting the mouse on a screenshot grows it 20 % over its neighbours after --preview-delay */
.tcard { --preview-delay: 10s; }
@media (hover: hover) {
  .tcard .shot { transition: transform .2s ease; }
  .tcard .shot:hover { z-index: 5; transform: scale(1.2); transition-delay: var(--preview-delay); }
  .tcard .shot:hover .demo-link { box-shadow: 0 14px 36px rgba(0, 0, 0, .4); transition: box-shadow .2s var(--preview-delay); }
  .tcard .shot:hover .veil { background-color: rgba(8, 10, 22, 0); transition: opacity .15s, background-color .2s var(--preview-delay); }
  .tcard .shot:hover .veil-in { background-color: rgba(8, 10, 22, .72); transition: background-color .2s var(--preview-delay); }
}
.price-big small { color: var(--ink-2); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; }
.ticks li { position: relative; margin-top: 6px; padding-left: 22px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
/* With the details card the column is taller than a laptop screen; sticky would hide its last rows. */
.tpl-buy { position: static; }
.specs-card { margin-top: 16px; padding: 16px 20px 8px; }
.specs-card .lbl { margin-bottom: 4px; color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.specs > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 8px 0; font-size: 14px; }
.specs > div + div { border-top: 1px solid var(--rule); }
.specs dt { color: var(--ink-2); }
.specs dd { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.buy-card .btn-block + .btn-block { margin-top: 8px; }
.fail-list { margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.fail-list summary { font-weight: 700; cursor: pointer; }
.fail-list ul { margin: 10px 0 0; }

/* ---------- text pages (rules, retired, disclosure, privacy), 404 ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin: 32px 0 8px; font-size: 22px; letter-spacing: -.01em; }
.prose h3 { margin: 20px 0 4px; font-size: 17px; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose dl { margin: 0 0 12px; }
.prose dt { margin-top: 12px; font-weight: 700; }
.prose dd { margin: 2px 0 0; color: var(--ink-2); }
.prose .rules-col { margin: 0 0 12px; }
.empty-card { max-width: 76ch; padding: 24px; }
.empty-card p { margin-bottom: 12px; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.chips-row { margin-top: 16px; }

/* ---------- search page ---------- */
.res-n { margin-bottom: 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tips { list-style: none; display: grid; gap: 6px; margin: 0 0 16px; color: var(--ink-2); }
.search-empty { margin-bottom: 24px; }

/* ---------- footer ---------- */
.ftr { position: relative; margin-top: 40px; background: var(--header); color: #c9ccd6; }
.ftr-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; max-width: none; margin: 0; padding: 40px 16px 28px; }
.ftr-left { display: grid; align-content: start; gap: 16px; min-width: 0; }
.ftr-left .logo { width: fit-content; }
.ftr-blurb { max-width: 38ch; font-size: 15px; }
.ftr-blurb b { color: #fff; }
.ftr a { color: #c9ccd6; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr .logo { color: #fff; }
.ftr-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; min-width: 0; align-items: start; }
.ftr-col { display: grid; align-content: start; gap: 24px; min-width: 0; }
.ftr-wide { grid-column: span 2; }
.ftr-group summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #fff; font-size: 14px; font-weight: 700; list-style: none; cursor: default; }
.ftr-group summary::-webkit-details-marker { display: none; }
.ftr-group .chev { display: none; font-size: 20px; line-height: 1; transition: transform .15s; }
.ftr-group ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; font-size: 14px; }
.ftr-wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.ftr-bottom { max-width: none; margin: 0; padding: 18px 16px 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.ftr-disc { margin-bottom: 6px; color: #e7e9f0; font-size: 14px; }
.ftr-legal { color: #9aa0b4; font-size: 13px; }
.ftr-count { margin-top: 6px; color: #9aa0b4; font-size: 13px; }
.ftr-count b { color: #e7e9f0; font-weight: 600; }

/* ---------- breakpoints ---------- */
@media (min-width: 768px) {
  .hdr-cta { display: inline-flex; }
  .hdr-menu { width: auto; grid-auto-flow: column; gap: 8px; padding: 0 12px 0 10px; }
  .hdr-menu-t { display: inline; font-size: 14px; font-weight: 600; }
}
@media (min-width: 1024px) {
  .hdr-in { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-rows: 64px auto; grid-template-areas: "logo all cats right" "search search search search"; column-gap: 16px; padding-bottom: 14px; }
  .cats { grid-area: cats; min-width: 0; border-top: 0; padding: 0; }
  .cats-list { flex-wrap: nowrap; overflow: hidden; }
  .hdr-all { display: block; }
  .hdr-search { width: 100%; max-width: 880px; justify-self: center; }
  .hdr-menu { display: none; }
  .cats { display: block; }
  .rules-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .hdr-in { gap: 10px; }
  .hdr-cta { padding: 8px 12px; font-size: 13px; }
  .hdr .hdr-in .icon-btn { width: 36px; height: 36px; }
  .hdr-right { gap: 6px; }
}

/* full monitor width: no content cap, 32px gutters; wide screens get more columns, not wider cards */
@media (min-width: 1024px) {
  .wrap, .hdr .hdr-in, .hdr .cats, .ftr-in, .ftr-bottom { padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 1440px) {
  .masonry { grid-template-columns: repeat(4, minmax(0, 1fr)); }  /* 12 picks: 4×3 here, 6×2 from 1440 */
  .pdp { grid-template-columns: minmax(0, 1fr) 440px; }
}
@media (min-width: 1680px) {
  .cascade { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1800px) {
  .masonry { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1099px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-banner { min-height: 300px; }
}
@media (max-width: 1023px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .filters-btn { display: inline-flex; }
  .rail { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(100%, 360px); overflow: auto; border-radius: 0 var(--radius) var(--radius) 0; transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
  .rail.open { transform: none; visibility: visible; transition: transform .2s ease; }
  .rail-close { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); cursor: pointer; font-size: 18px; line-height: 1; }
  .rail-apply { display: flex; width: 100%; margin-top: 16px; }
  body.rail-open { overflow: hidden; }
  body.rail-open .scrim { display: block; position: fixed; z-index: 80; inset: 0; background: rgba(0, 0, 0, .5); }
  .cascade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cascade > li { height: 320px; }
  .cascade > li:nth-child(even) { transform: none; }
  .cascade > li:nth-child(3n+2) { transform: translateY(48px); }
  .masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .elements-card { grid-template-columns: 240px minmax(0, 1fr); }
  .el-actions { grid-column: 2; grid-auto-flow: column; justify-content: start; }
}
@media (max-width: 767px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prod { padding: 8px; }
  .prod .btn { padding-inline: 6px; }
  .rail { width: 100%; border-radius: 0; }
  .hero-banner { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .hero-copy { max-width: none; }
  .hero-art { position: relative; width: 100%; height: 190px; margin-top: 20px; }
  .hero-art img { width: 52%; }
  .cascade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 32px; }
  .cascade > li { height: 270px; }
  .cascade > li:nth-child(3n+2) { transform: none; }
  .cascade > li:nth-child(even) { transform: translateY(32px); }
  .cat { padding: 10px; }
  .cat-t { font-size: 15px; }
  .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lrow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .lrow .ldate { grid-column: 1 / -1; }
  .lrow-w { grid-template-columns: minmax(0, 1fr); }
  .elements-card { grid-template-columns: minmax(0, 1fr); }
  .el-actions { grid-column: 1; grid-auto-flow: row; justify-content: stretch; }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gallery, .buy, .pdp-main { grid-column: 1; grid-row: auto; }
  .buy { position: relative; top: auto; }
  .buy-card h1 { font-size: 26px; }
  .mbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--rule); box-shadow: 0 -4px 16px rgba(0, 0, 0, .12); }
  .mbar .price { font-size: 18px; white-space: nowrap; }
  .mbar .btn { flex: 1 1 auto; min-width: 0; }
  body.has-mbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .scope-btn { max-width: 112px; padding-left: 12px; }
  .ftr-in { padding-top: 32px; }
  .ftr-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ftr-col { gap: 0; }
  .ftr-wide { grid-column: auto; }
  .ftr-wide ul { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ftr-group { border-top: 1px solid rgba(255, 255, 255, .14); }
  .ftr-group:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .ftr-col:not(:last-child) .ftr-group:last-child { border-bottom: 0; }
  .ftr-group summary { margin-bottom: 0; padding: 14px 0; cursor: pointer; }
  .ftr-group .chev { display: block; }
  .ftr-group[open] .chev { transform: rotate(90deg); }
  .ftr-group ul { padding-bottom: 14px; }
}
@media (max-width: 719px) {
  .drop { padding: 18px; }
}
@media (max-width: 480px) {
  .drawer { width: 100%; }
}
@media (max-width: 479px) {
  .alt { grid-template-columns: 88px minmax(0, 1fr); }
  .metrics { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 419px) {
  .hdr-in { column-gap: 8px; }
  .hdr-right { gap: 6px; }
  .icon-btn { width: 36px; height: 36px; }
}
@media (max-width: 559px) {
  .tgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hdr .logo { font-size: 15px; gap: 8px; }
  .hdr .hdr-in { padding: 0 12px; }
  .hdr .hdr-right { gap: 4px; }
  .hdr .icon-btn { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .rail, .rail.open, .drawer, .drawer.open, .mt-info, .veil { transition: none; }
  .tcard .shot:hover { transform: none; }
}

/* ---------- members: hearts (saved items), sign-in, account ---------- */
.fav-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #14161a; box-shadow: 0 1px 4px rgba(0, 0, 0, .28); cursor: pointer; }
.fav-btn:hover, .fav-btn[aria-pressed="true"] { color: #e0245e; }
.fav-btn svg, .hdr-fav svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.shot > .fav-btn, .mtile > .fav-btn { position: absolute; top: 8px; left: 8px; z-index: 2; }
/* text variant in the buy box */
.fav-btn.btn { display: flex; width: 100%; height: auto; margin-top: 8px; border: 1px solid var(--ink-3); border-radius: 8px; background: var(--card); color: var(--ink); box-shadow: none; }
.fav-btn.btn:hover { border-color: var(--ink); color: var(--ink); }
.fav-btn.btn[aria-pressed="true"] { border-color: #e0245e; color: #e0245e; }
.hdr-fav { position: relative; text-decoration: none; }
.hdr-acct { display: none; margin-right: 4px; color: #e7e9f0; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hdr-acct:hover { color: #fff; text-decoration: underline; }
@media (min-width: 768px) { .hdr-acct { display: inline; } }
.fav-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e0245e; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.note-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 14px 16px; }
.note-card p { font-size: 14px; }
.auth-card, .acct-card { max-width: 480px; padding: 24px; margin: 8px 0 32px; }
.auth-card h1, .acct-card h1 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-card .lede, .acct-card .lede { margin-bottom: 8px; color: var(--ink-2); }
.auth-form label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 700; }
.auth-form input { display: block; width: 100%; min-height: 44px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--ink-3); border-radius: 8px; background: var(--card); color: var(--ink); }
.auth-form input:focus-visible { border-color: var(--accent); }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--ink-3); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; border-top: 1px solid var(--rule); }
.auth-msg { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); font-size: 14px; font-weight: 600; }
.auth-msg.err { background: var(--pend-bg); color: var(--pend); }
.acct-msg { max-width: 480px; margin: 0 0 16px; }
.auth-card .micro, .acct-card .micro { margin-top: 16px; color: var(--ink-2); font-size: 12px; }
.acct-dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; margin: 18px 0 8px; }
.acct-dl dt { color: var(--ink-2); font-size: 14px; }
.acct-dl dd { margin: 0; overflow-wrap: anywhere; }
.acct-card h2 { margin: 24px 0 6px; font-size: 18px; }
.acct-card h2 + p { margin-bottom: 12px; color: var(--ink-2); font-size: 14px; }
.js-pro-interest[aria-pressed="true"] { border-color: var(--ok); color: var(--ok); }
.acct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
.acct-actions .link-btn { color: var(--ink-2); }
.acct-actions .link-btn:hover { color: #e0245e; }
