/*
Theme Name: Ra2yak
Theme URI: https://ra2yak.fyi
Description: Arabic (RTL) broker catalog in an iOS-like style with liquid glass: broker cards at /brokers/, collections at /collections/, live search and filters. Light and dark follow the device setting.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ra2yak
*/

:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --label: #000000;
  --label-2: rgba(60, 60, 67, .62);
  --label-3: rgba(60, 60, 67, .36);
  --sep: rgba(60, 60, 67, .16);
  --fill: rgba(118, 118, 128, .12);
  --blue: #007aff;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .75);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --blob-1: #7cc4ff; --blob-2: #c9a7ff; --blob-3: #7ff0d3;
  --green: #34c759; --teal: #30b0c7; --indigo: #5856d6; --orange: #ff9500; --gray: #8e8e93; --red: #ff3b30;
  --r-lg: 22px; --r-md: 16px; --r-sm: 10px;
  --font: -apple-system, "SF Pro Text", "SF Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --label: #ffffff;
    --label-2: rgba(235, 235, 245, .62);
    --label-3: rgba(235, 235, 245, .32);
    --sep: rgba(84, 84, 88, .55);
    --fill: rgba(118, 118, 128, .24);
    --blue: #0a84ff;
    --glass: rgba(36, 36, 40, .52);
    --glass-strong: rgba(44, 44, 48, .72);
    --glass-edge: rgba(255, 255, 255, .14);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    --card-shadow: none;
    --blob-1: #0a4fa8; --blob-2: #4b2a87; --blob-3: #0b6b5a;
    --green: #30d158; --teal: #40c8e0; --indigo: #5e5ce6; --orange: #ff9f0a; --gray: #98989d; --red: #ff453a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--label);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0 0 .8em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; border-radius: 10px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; }
.narrow { max-width: 780px; }

/* ---------- Ambient colour behind the glass ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .45; }
.backdrop span:nth-child(1) { background: var(--blob-1); top: -18vmax; right: -12vmax; }
.backdrop span:nth-child(2) { background: var(--blob-2); top: 20vh; left: -20vmax; opacity: .35; }
.backdrop span:nth-child(3) { background: var(--blob-3); bottom: -22vmax; right: 10vw; opacity: .3; }

/* ---------- Liquid glass material ---------- */
.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(255, 255, 255, .12);
}
.glass::before {
  /* specular highlight along the top edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 42%);
  opacity: .55; mix-blend-mode: soft-light;
}

/* ---------- Navigation bar ---------- */
.navbar {
  position: sticky; top: 10px; z-index: 50;
  margin: 10px auto 0; max-width: 1120px; width: calc(100% - 24px);
  border-radius: 999px;
  transition: background .25s, box-shadow .25s;
}
.admin-bar .navbar { top: 42px; }
.nav-inner { display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 10px 0 18px; }
.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand-icon {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; color: #fff; font-weight: 700; font-size: 1.05rem;
  background: linear-gradient(145deg, #5ac8fa, #007aff 55%, #5856d6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 8px rgba(0, 122, 255, .35);
}
.brand-name { font-weight: 700; font-size: 1.15rem; }
.nav-title {
  position: absolute; left: 50%; transform: translate(-50%, 6px);
  font-weight: 600; font-size: 1rem; white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.navbar.is-compact .nav-title { opacity: 1; transform: translate(-50%, 0); }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { padding: 7px 14px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--label-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--fill); color: var(--label); }
.nav-links a.is-on { background: var(--glass-strong); color: var(--label); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

/* Floating tab bar (phones) */
.tabbar { display: none; }

/* ---------- Large titles and headers ---------- */
.large-title { font-size: clamp(2.1rem, 4.6vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; }
.hero { padding: 54px 0 26px; max-width: 760px; }
.eyebrow { color: var(--blue); font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.hero-sub, .page-lead { color: var(--label-2); font-size: 1.12rem; max-width: 640px; }
.page-head { padding: 40px 0 14px; }
.crumbs { padding-top: 26px; font-size: .9rem; color: var(--label-2); }
.crumbs a { color: var(--blue); }

/* ---------- Search ---------- */
.searchbox { position: relative; max-width: 620px; margin-top: 22px; z-index: 20; }
.search-field { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 0 16px; height: 52px; margin-bottom: 14px; }
.search-ico { width: 20px; height: 20px; color: var(--label-2); flex: none; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--label); }
.search-field input::placeholder { color: var(--label-3); }
.search-field:focus-within { box-shadow: var(--glass-shadow), 0 0 0 4px color-mix(in srgb, var(--blue) 25%, transparent); }
.live-results { position: absolute; top: 60px; right: 0; left: 0; border-radius: 18px; padding: 6px; max-height: 60vh; overflow: auto; background: var(--glass-strong); }
.lr-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; }
.lr-item:hover, .lr-item:focus { background: var(--fill); }
.lr-name { font-weight: 600; }
.lr-type { margin-inline-start: auto; color: var(--label-2); font-size: .85rem; }
.lr-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--gray); }
.lr-empty { margin: 0; padding: 14px; color: var(--label-2); text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 22px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { font-size: 1.45rem; font-weight: 700; margin: 0; }
.see-all { color: var(--blue); font-weight: 500; }

/* "Today"-style cards for popular alternatives */
.today-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: none; }
.today-scroller::-webkit-scrollbar { display: none; }
.today-card {
  scroll-snap-align: start;
  min-height: 230px; border-radius: 26px; padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .14);
  transition: transform .25s;
}
.today-card:hover { transform: scale(1.015); }
.today-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 40%); pointer-events: none; }
.today-card.g0 { background: linear-gradient(150deg, #ff9f0a, #ff375f); }
.today-card.g1 { background: linear-gradient(150deg, #64d2ff, #0a84ff 60%, #5e5ce6); }
.today-card.g2 { background: linear-gradient(150deg, #30d158, #00a0a0); }
.today-card.g3 { background: linear-gradient(150deg, #bf5af2, #5e5ce6); }
.today-card.g4 { background: linear-gradient(150deg, #ffd60a, #ff9f0a); color: #3a2a00; }
.today-kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; opacity: .85; }
.today-title { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.today-lead { opacity: .9; font-size: .95rem; }
.today-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: .9rem;
  background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; padding: 8px 12px;
}
.today-open { background: rgba(255, 255, 255, .92); color: #000; border-radius: 999px; padding: 3px 14px; font-weight: 700; }

/* ---------- Inset grouped lists (iOS Settings) ---------- */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.group-label { margin: 18px 16px 7px; font-size: .82rem; color: var(--label-2); font-weight: 500; }
.groups .group-label { margin-top: 0; }
.inset { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--card-shadow); min-width: 0; }
.inset.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row {
  display: flex; align-items: center; gap: 13px;
  min-height: 58px; padding: 9px 16px;
  position: relative;
  transition: background .15s;
}
.row::after { content: ""; position: absolute; bottom: 0; left: 0; right: 62px; height: 1px; background: var(--sep); transform: scaleY(.6); }
.row:last-child::after, .inset > .row:last-of-type::after { display: none; }
.row:hover { background: var(--fill); }
.row:active { background: color-mix(in srgb, var(--fill) 160%, transparent); }
.row-big { min-height: 72px; }
.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--label-2); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-value { color: var(--label-2); font-size: .95rem; font-variant-numeric: tabular-nums; }
.chev { width: 18px; height: 18px; color: var(--label-3); flex: none; stroke-width: 2.4; }
.inset-foot { margin: 8px 16px 0; color: var(--label-2); font-size: .82rem; }
.list-count { margin: 16px 16px 7px; color: var(--label-2); font-size: .82rem; }
.empty { text-align: center; color: var(--label-2); padding: 26px; }

/* Icon tiles and app icons */
.icon-tile { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; background: var(--t); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.icon-tile svg { width: 19px; height: 19px; }
.icon-tile.lg { width: 42px; height: 42px; border-radius: 11px; }
.icon-tile.lg svg { width: 24px; height: 24px; }
.icon-tile.xl { width: 84px; height: 84px; border-radius: 20px; }
.icon-tile.xl svg { width: 46px; height: 46px; }
.app-icon {
  --c: #007aff;
  width: 40px; height: 40px; flex: none;
  border-radius: 23%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: .85rem; direction: ltr;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 70%);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .35);
  overflow: hidden;
}
.app-icon.xl { width: 108px; height: 108px; font-size: 1.9rem; box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.app-icon.has-img { background: #fff; }
.app-icon.has-img img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }

/* Protection profile colours */
.dot { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--label-2); white-space: nowrap; flex: none; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pc, var(--gray)); }
.pbadge { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; color: var(--pc, var(--gray)); background: color-mix(in srgb, var(--pc, var(--gray)) 14%, transparent); }
.pbadge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.p-green { --pc: var(--green); } .p-teal { --pc: var(--teal); } .p-indigo { --pc: var(--indigo); }
.p-orange { --pc: var(--orange); } .p-gray { --pc: var(--gray); } .p-red { --pc: var(--red); }
.p-col { --pc: var(--blue); }
.lr-dot.p-green, .lr-dot.p-teal, .lr-dot.p-indigo, .lr-dot.p-orange, .lr-dot.p-gray, .lr-dot.p-red, .lr-dot.p-col { background: var(--pc); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
.filters .search-field { max-width: 560px; }
.segmented { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; border-radius: 13px; max-width: 100%; overflow-x: auto; scrollbar-width: none; align-self: flex-start; margin-bottom: 12px; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  flex: none; border: 0; background: transparent; color: var(--label); font: inherit; font-size: .9rem; font-weight: 500;
  padding: 7px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: background .2s, box-shadow .2s;
}
.segmented button.is-on { background: var(--glass-strong); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 0; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 500;
  padding: 7px 15px; border-radius: 999px; background: var(--fill); color: var(--label);
  transition: background .2s, color .2s;
}
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* ---------- Broker card (App Store layout) ---------- */
.app-head { display: flex; gap: 20px; align-items: center; padding: 22px 0 18px; }
.app-head-main { min-width: 0; }
.app-head .large-title { margin-bottom: 2px; }
.app-sub { color: var(--label-2); margin: 0 0 10px; }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--r-lg); padding: 14px 6px; margin-bottom: 14px; }
.app-stats > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 10px; min-width: 0; }
.app-stats > div + div { border-inline-start: 1px solid var(--sep); }
.app-stats span { font-size: .75rem; color: var(--label-2); font-weight: 600; }
.app-stats b { font-size: .98rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.capsules { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.capsule { font-size: .85rem; font-weight: 500; padding: 5px 13px; border-radius: 999px; background: var(--fill); }

/* ---------- Content from the import (Gutenberg blocks with classes) ---------- */
.entry { padding-bottom: 8px; }
.entry .ra-lead { font-size: 1.12rem; line-height: 1.65; margin: 10px 4px 18px; }
.entry .ra-card { background: var(--surface); border-radius: var(--r-lg); padding: 16px 18px 6px; margin: 0 0 16px; box-shadow: var(--card-shadow); }
.entry .ra-card h2, .entry h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
.entry .ra-attention { background: color-mix(in srgb, var(--orange) 11%, var(--surface)); }
.entry .ra-attention h2 { color: var(--orange); }
.entry p { line-height: 1.7; }
.entry a { color: var(--blue); }
.entry ul { list-style: none; padding: 0; margin: 0 0 10px; }
.entry ul li { position: relative; padding-inline-start: 18px; margin-bottom: 6px; line-height: 1.6; }
.entry ul li::before { content: ""; position: absolute; inset-inline-start: 3px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--label-3); }

/* "Quick facts" table as a grouped list */
.entry .ra-facts { margin: 0 -18px; }
.entry .ra-facts table { width: 100%; border-collapse: collapse; }
.entry .ra-facts td { padding: 11px 18px; border-top: 1px solid var(--sep); vertical-align: top; font-size: .95rem; }
.entry .ra-facts tr:first-child td { border-top: 0; }
.entry .ra-facts td:first-child { color: var(--label-2); width: 38%; font-weight: 500; }
.entry figure.wp-block-table { margin: 0; overflow-x: auto; }

/* Alternatives as tappable rows */
.entry .ra-alts ul { margin: 0 -18px; }
.entry .ra-alts li { padding: 12px 46px 12px 18px; margin: 0; border-top: 1px solid var(--sep); color: var(--label-2); font-size: .92rem; }
.entry .ra-alts li:first-child { border-top: 0; }
.entry .ra-alts li::before { display: none; }
.entry .ra-alts li a { display: block; color: var(--label); font-weight: 600; font-size: 1rem; }
.entry .ra-alts li a::after {
  content: ""; position: absolute; inset-inline-end: 18px; top: 50%; width: 9px; height: 9px; margin-top: -5px;
  border-left: 2.2px solid var(--label-3); border-bottom: 2.2px solid var(--label-3); transform: rotate(45deg);
}
.entry .ra-alts li a::before { content: ""; position: absolute; inset: 0; }
.entry .ra-alts li:hover { background: var(--fill); }
.entry .ra-browse { margin: 4px 16px 10px; color: var(--label-2); font-size: .9rem; }
.entry .ra-note { margin: 12px 16px 0; color: var(--label-2); font-size: .8rem; line-height: 1.6; }

/* Collection tables */
.col-head { display: flex; align-items: center; gap: 18px; padding: 22px 0 8px; }
.col-head .large-title { margin-bottom: 0; }
.collection-entry .ra-count { margin: 0 16px 8px; color: var(--label-2); font-size: .85rem; }
.collection-entry .ra-list-table { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--card-shadow); margin-bottom: 14px; }
.collection-entry .ra-list-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.collection-entry .ra-list-table th { text-align: right; font-size: .78rem; font-weight: 600; color: var(--label-2); padding: 12px 14px; background: color-mix(in srgb, var(--fill) 60%, var(--surface)); }
.collection-entry .ra-list-table td { padding: 12px 14px; border-top: 1px solid var(--sep); vertical-align: top; color: var(--label-2); }
.collection-entry .ra-list-table td:first-child { color: var(--label); font-weight: 600; white-space: nowrap; }
.collection-entry .ra-list-table td:first-child a { color: var(--label); }
.collection-entry .ra-list-table tr:hover td { background: color-mix(in srgb, var(--fill) 50%, transparent); }
.collection-entry .ra-list-table .pbadge { font-size: .78rem; padding: 3px 10px; white-space: normal; }
.page-entry { background: var(--surface); border-radius: var(--r-lg); padding: 22px 24px 12px; box-shadow: var(--card-shadow); margin-bottom: 20px; }
.page-entry h2 { margin-top: 18px; }
.empty-card { padding: 22px; text-align: center; }
.empty-title { font-weight: 700; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; padding: 30px 0 34px; border-top: 1px solid var(--sep); color: var(--label-2); font-size: .85rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.site-footer .brand-name { color: var(--label); }
.site-footer .menu { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.site-footer .menu a { color: var(--blue); }
.footnote p { margin: 0 0 6px; }
.copyright { direction: ltr; text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .groups { grid-template-columns: minmax(0, 1fr); }
  .inset.two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
  .admin-bar .navbar { top: 56px; }
}
@media (max-width: 760px) {
  body { padding-bottom: 96px; }
  .nav-links { display: none; }
  .navbar { border-radius: 22px; }
  .nav-title { left: auto; right: 50%; transform: translate(50%, 6px); }
  .navbar.is-compact .nav-title { transform: translate(50%, 0); }
  .navbar.is-compact .brand-name { opacity: 0; }
  .tabbar {
    display: flex; justify-content: space-around;
    position: fixed; z-index: 60; left: 14px; right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    border-radius: 30px; padding: 7px 6px;
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--label-2); padding: 5px 0; border-radius: 22px; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.is-on { color: var(--blue); background: var(--fill); }
  .hero { padding-top: 34px; }
  .page-head { padding-top: 26px; }
  .app-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .app-icon.xl { width: 92px; height: 92px; }
  .dot { display: none; }
  .row-value { display: none; }
  .today-scroller { grid-auto-columns: 82%; }
  .collection-entry .ra-list-table thead { display: none; }
  .collection-entry .ra-list-table table, .collection-entry .ra-list-table tbody, .collection-entry .ra-list-table tr, .collection-entry .ra-list-table td { display: block; width: 100%; }
  .collection-entry .ra-list-table tr { padding: 12px 16px; border-top: 1px solid var(--sep); }
  .collection-entry .ra-list-table tr:first-child { border-top: 0; }
  .collection-entry .ra-list-table td { border: 0; padding: 2px 0; }
  .collection-entry .ra-list-table td:first-child { font-size: 1.05rem; padding-bottom: 6px; }
  .collection-entry .ra-list-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--label-3); font-weight: 600; }
}
@media (max-width: 600px) {
  .admin-bar .navbar { top: 10px; }
  .wrap { padding: 0 16px; }
  .app-stats { grid-template-columns: 1fr 1fr 1fr; padding: 12px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Finder and comparison -------------------------------------------------- */

.ra-tool { margin: 6px 0 24px; }
.ra-wiz, .ra-cmp { padding: 18px; border-radius: var(--r-lg); display: grid; gap: 18px; }
.ra-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.ra-q legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.ra-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ra-choice { position: relative; }
.ra-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ra-choice span {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--fill);
  font-size: .92rem;
  font-weight: 500;
}
.ra-choice input:checked + span { background: var(--blue); color: #fff; }
.ra-choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.ra-wiz-out { margin-top: 16px; }
.ra-wiz-count { margin: 0 4px 10px; color: var(--label-2); font-size: .92rem; }
.ra-hit { text-decoration: none; color: inherit; }
.ra-hit .row-sub { display: block; }

.ra-cmp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ra-pick { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; min-width: 0; }
.ra-pick select {
  font: inherit;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--sep);
  background: var(--surface);
  color: var(--label);
  width: 100%;
}
.ra-cmp-out { margin-top: 16px; }
.ra-cmp-scroll { overflow-x: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--card-shadow); }
.ra-cmp-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.ra-cmp-table th, .ra-cmp-table td { padding: 10px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--sep); min-width: 140px; }
.ra-cmp-table thead th { font-size: 1rem; }
.ra-cmp-table tbody th { color: var(--label-2); font-weight: 500; min-width: 110px; }
.ra-cmp-table td.is-diff { background: color-mix(in srgb, var(--orange) 14%, transparent); }

@media (max-width: 680px) {
  .ra-cmp { grid-template-columns: minmax(0, 1fr); }
}