/* ZuraApp theme — built from the approved mockups. Self-hosted fonts (SIL OFL). */
@font-face{font-family:"Inter";font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/inter-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:600 800;font-display:swap;src:url(../fonts/plus-jakarta-sans-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* ZuraApp design system — original store UI, mobile-first, CLS-safe ad slots */
:root {
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --bg: #f3f6f7;
  --bg-elevated: #ffffff;
  --bg-muted: #e8eef0;
  --text: #10181a;
  --text-muted: #5a6b70;
  --text-faint: #7a8a8e;
  --line: #e3e9eb;
  --line-strong: #cfd8db;
  --accent: #087f62;
  --accent-hover: #066a51;
  --accent-soft: #e6f7f1;
  --accent-ink: #065f49;
  --rating: #f0a500;
  --ios: #111111;
  --ios-text: #ffffff;
  --header-h: 72px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 26, 0.05);
  --shadow: 0 6px 20px rgba(16, 24, 26, 0.06);
  --shadow-lg: 0 16px 40px rgba(16, 24, 26, 0.08);
  --ad-border: #c9d3d6;
  --ad-bg: #f7f9fa;
  --ad-label: #5a6a6e;
  --max: 1180px;
  --content: 760px;
  --sidebar: 300px;
  --gap: 24px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d1113;
  --bg-elevated: #171c1f;
  --bg-muted: #1e2528;
  --text: #eef3f4;
  --text-muted: #9aa7ab;
  --text-faint: #7d8a8e;
  --line: #2a3236;
  --line-strong: #3a4549;
  --accent: #1ec9a0;
  --accent-hover: #4ad9b4;
  --accent-soft: #12332b;
  --accent-ink: #b6f0de;
  --ios: #eef3f4;
  --ios-text: #111111;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --ad-border: #3a4549;
  --ad-bg: #14191c;
  --ad-label: #8a979b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
code, pre, a { overflow-wrap: anywhere; }
p, td, th, li, .ad-slot__meta { overflow-wrap: break-word; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
button, input { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 16px; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); flex: 0 0 auto;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  letter-spacing: -0.04em;
}
.logo:hover { color: var(--text); }
.logo__mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(145deg, #14c495, #0b9d78 55%, #087a5e);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(11, 157, 120, 0.35);
}
.nav { display: none; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__btn, .nav__link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 0; background: transparent;
  color: var(--text); font-weight: 600; font-size: 0.9375rem;
  border-radius: 8px; cursor: pointer; text-decoration: none;
}
.nav__btn:hover, .nav__link:hover, .nav__item:focus-within .nav__btn {
  background: var(--bg-muted);
}
.nav__chev { width: 10px; height: 10px; opacity: 0.7; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 0;
  width: min(860px, calc(100vw - 48px));
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 22px; display: none; grid-template-columns: 1.2fr 2fr;
  gap: 24px;
}
.nav__item:hover .mega, .nav__item:focus-within .mega { display: grid; }
.mega--best { width: 420px; grid-template-columns: 1fr; }
.mega__feat h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.mega__list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 16px;
  list-style: none; margin: 0; padding: 0;
}
.mega__list a {
  display: block; padding: 6px 0; text-decoration: none;
  color: var(--text); font-size: 0.875rem; font-weight: 550;
}
.mega__list a:hover { color: var(--accent-hover); }
form.search {
  flex: 1 1 auto; min-width: 0; max-width: 420px; margin-left: auto;
  position: relative;
}
form.search input {
  width: 100%; height: 42px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg);
  padding: 0 16px 0 42px; color: var(--text); outline: none;
}
form.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.search__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-muted); pointer-events: none;
}
.header__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elevated);
  color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--bg-muted); }
.menu-toggle { display: grid; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  h1 { font-size: 2.25rem; }
}

/* Mobile drawer */
.drawer {
  display: none; position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--bg-elevated); z-index: 40; overflow: auto; padding: 16px 20px 40px;
}
.drawer.is-open { display: block; }
.drawer a, .drawer button.drawer__link {
  display: block; width: 100%; text-align: left;
  padding: 12px 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--text); font-weight: 650; text-decoration: none;
}

/* Ad slots — reserved sizes protect CLS */
.ad-slot { margin: 0; }
.ad-slot__label {
  display: block; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ad-label);
  font-weight: 600; margin: 0 0 6px;
}
.ad-slot__box {
  border: 1px dashed var(--ad-border);
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 8px, color-mix(in srgb, var(--ad-border) 25%, transparent) 8px, color-mix(in srgb, var(--ad-border) 25%, transparent) 9px),
    var(--ad-bg);
  border-radius: 8px;
  display: grid; place-items: center; text-align: center;
  color: var(--ad-label); padding: 8px 16px;
}
.ad-slot__meta { font-size: 12px; line-height: 1.45; max-width: 52ch; }
.ad-slot--leaderboard { padding: 12px 0; border-bottom: 1px solid var(--line); background: var(--bg-elevated); }
.ad-slot--leaderboard .ad-slot__box { min-height: 100px; }
.ad-slot--inarticle { margin: 28px 0; }
.ad-slot--inarticle .ad-slot__box { min-height: 250px; }
.ad-slot--sidebar { width: 300px; }
.ad-slot--sidebar .ad-slot__box { min-height: 600px; width: 300px; }
.ad-slot--infeed { margin: 28px 0; }
.ad-slot--infeed .ad-slot__box { min-height: 250px; }
.ad-slot--multiplex { margin: 28px 0 8px; }
.ad-slot--multiplex .ad-slot__box { min-height: 280px; }
.ad-note {
  font-size: 12px; color: var(--text-faint); padding: 8px 0 24px; text-align: center;
}

@media (min-width: 768px) {
  .ad-slot--leaderboard .ad-slot__box { min-height: 90px; }
  .ad-slot--inarticle .ad-slot__box { min-height: 280px; }
  .ad-slot--multiplex .ad-slot__box { min-height: 400px; }
}

/* Hero */
.hero { padding: 36px 0 12px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-soft); padding: 6px 10px; border-radius: 999px;
  margin-bottom: 14px;
}
.hero p.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 58ch; }
.hero-search {
  margin-top: 20px; display: flex; gap: 10px; max-width: 640px;
}
.hero-search input {
  flex: 1; height: 52px; border-radius: 14px;
  border: 1px solid var(--line-strong); padding: 0 18px;
  background: var(--bg-elevated); color: var(--text);
  box-shadow: var(--shadow-sm);
}
.hero-search input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 20px; border-radius: 14px; border: 0;
  font-weight: 700; font-size: 0.9375rem; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--play {
  background: var(--accent); color: #fff; height: 52px; min-width: 240px;
  border-radius: 14px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(11, 157, 120, 0.28);
}
.btn--play:hover { background: var(--accent-hover); color: #fff; }
.btn--ios {
  background: var(--ios); color: var(--ios-text); height: 52px; min-width: 240px;
  border-radius: 14px; font-weight: 800;
}
.btn--ios:hover { filter: brightness(1.08); color: var(--ios-text); }
.btn--ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line-strong); height: 40px;
  border-radius: 10px; font-size: 0.875rem;
}

/* Featured + sections */
.section { padding: 28px 0; }
.section__head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.section__head h2 { margin: 0; }
.section__link { font-weight: 700; font-size: 0.875rem; text-decoration: none; color: var(--accent-ink); }

.featured {
  display: grid; gap: 20px; padding: 22px;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
  align-items: center;
}
@media (min-width: 800px) {
  .featured { grid-template-columns: auto 1fr auto; }
}
.featured__badge {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 4px 8px; border-radius: 999px;
  margin-bottom: 8px;
}
.featured p { margin-bottom: 0.4em; }
.disclosure {
  font-size: 12px; color: var(--text-muted);
  background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; margin-top: 10px;
}

/* App cards + carousel */
.carousel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px; scrollbar-width: thin;
}
.carousel::-webkit-scrollbar { height: 8px; }
.app-card {
  flex: 0 0 208px; scroll-snap-align: start;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px;
  display: grid; grid-template-columns: 56px 1fr; gap: 12px;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.app-card__body h3 { margin: 0 0 2px; font-size: 0.975rem; }
.app-card__dev { margin: 0; font-size: 12px; color: var(--text-muted); }
.app-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: #fff;
  background: linear-gradient(145deg, var(--c1, #5b7cfa), var(--c2, #3b4db5));
  font-size: 1rem; letter-spacing: -0.04em;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.12);
}
.app-icon--lg { width: 96px; height: 96px; border-radius: 22px; font-size: 1.75rem; }
.icon-note { font-size: 11px; color: var(--text-faint); margin-top: 6px; }

.rating-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px; font-size: 12px; font-weight: 650;
}
.rating-badge .star { color: var(--rating); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 8px; border-radius: 999px;
  background: var(--bg-muted); color: var(--text-muted);
  font-size: 12px; font-weight: 650;
}
.pill--accent { background: var(--accent-soft); color: var(--accent-ink); }

/* Categories */
.cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 700px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
.cat-grid a {
  display: block; background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; text-decoration: none; color: var(--text);
  font-weight: 650; font-size: 0.9rem;
}
.cat-grid a:hover { border-color: var(--accent); color: var(--accent-ink); }
.cat-grid span { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }

/* Guide cards */
.guide-grid { display: grid; gap: 14px; }
@media (min-width: 800px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px; min-height: 180px;
}
.guide-card:hover { box-shadow: var(--shadow); color: inherit; }
.guide-card h3 { margin: 0; }
.guide-card p { margin: 0; flex: 1; font-size: 0.9rem; color: var(--text-muted); }

/* Breadcrumbs */
.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 13px; color: var(--text-muted); padding: 16px 0 8px;
  list-style: none; margin: 0;
}
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-hover); }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--text-faint); }

/* App page layout */
.app-hero {
  display: grid; gap: 20px; padding: 8px 0 20px;
  align-items: start;
}
@media (min-width: 700px) {
  .app-hero { grid-template-columns: 96px 1fr; }
}
.app-hero__names h1 { margin: 0 0 4px; }
.app-hero__dev { margin: 0 0 10px; color: var(--text-muted); font-weight: 550; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 32px; align-items: start; padding-bottom: 40px;
}
.layout > * { min-width: 0; }
.carousel { min-width: 0; max-width: 100%; }
.sidebar { display: none; }
.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 16px); }
@media (min-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .sidebar { display: block; }
}

.meta-table {
  width: 100%; border-collapse: collapse; margin: 8px 0 20px;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  font-size: 0.9rem;
}
.meta-table th, .meta-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.meta-table th { width: 38%; color: var(--text-muted); font-weight: 600; background: var(--bg-muted); }
.meta-table tr:last-child th, .meta-table tr:last-child td { border-bottom: 0; }

.download-zone {
  margin: 8px 0 28px; padding: 20px;
  border: 2px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
}
.download-zone__title {
  margin: 0 0 6px; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-ink); font-weight: 800;
}
.download-zone__note { margin: 0 0 14px; font-size: 0.875rem; color: var(--text-muted); }
.download-zone__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.prose h2 { margin-top: 1.6em; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: 0 0 0.35em; }
.split { display: grid; gap: 14px; }
@media (min-width: 700px) { .split { grid-template-columns: 1fr 1fr; } }
.panel {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 18px;
}
.panel h3 { margin-bottom: 8px; }
.panel--pro h3 { color: var(--accent-ink); }
.panel--con h3 { color: #b42318; }
[data-theme="dark"] .panel--con h3 { color: #ff8a7a; }
.panel li { margin-bottom: 6px; }
.faq details {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 700; }

/* Footer */
.footer {
  border-top: 1px solid var(--line); background: var(--bg-elevated);
  padding: 40px 0 24px; margin-top: 12px; font-size: 0.9rem;
}
.footer__grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 800px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 8px; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--accent-hover); }
.trust {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--text-muted); font-size: 0.8125rem;
}


/* Mobile header: search is too tight beside the logo at 390px */
@media (max-width: 959px) {
  .header .search { display: none; }
  .header__inner { gap: 12px; }
}

/* Category, search, and guide templates */
.page-head { padding: 8px 0 6px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { color: var(--text-muted); max-width: 68ch; font-size: 1.0625rem; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  align-items: flex-end; justify-content: space-between;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px 16px;
  margin: 8px 0 20px; box-shadow: var(--shadow-sm);
}
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.filter {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-muted);
}
.filter select {
  height: 40px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); padding: 0 12px;
  min-width: 148px; font-weight: 600; font-size: 0.875rem;
  text-transform: none; letter-spacing: 0; font-family: var(--font-sans);
}
.filter select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.toolbar__count { font-size: 0.875rem; font-weight: 650; color: var(--text-muted); padding-bottom: 8px; }

.app-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.app-grid .app-card { flex: none; width: 100%; min-width: 0; }
@media (min-width: 600px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .app-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1180px) {
  .app-grid { grid-template-columns: repeat(4, 1fr); }
}

.pagination {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  align-items: center; margin: 28px 0 8px;
}
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg-elevated); color: var(--text);
  text-decoration: none; font-weight: 700; font-size: 0.875rem;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-ink); }
.pagination .is-current {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.pagination .is-disabled { opacity: 0.45; pointer-events: none; }

/* Ranked guide cards */
.rank-card {
  display: grid; gap: 16px; align-items: start;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 20px;
  margin: 0 0 20px; box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) {
  .rank-card { grid-template-columns: 48px 72px 1fr; }
}
.rank-card__num {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.125rem;
  display: grid; place-items: center;
}
.rank-card .app-icon { width: 72px; height: 72px; border-radius: 18px; font-size: 1.25rem; }
.rank-card h2 { margin: 0 0 4px; font-size: 1.35rem; }
.rank-card .download-zone { margin: 14px 0 0; }
.rank-card .download-zone .btn--play,
.rank-card .download-zone .btn--ios { height: 48px; min-width: 200px; }

@media (max-width: 639px) {
  .btn--play, .btn--ios { min-width: 0; width: 100%; }
  .download-zone__btns { display: grid; }
  .featured .btn--play, .featured .btn--ios { width: 100%; min-width: 0; }
}

/* TOC, author, search results */
.toc {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 18px;
  margin: 0 0 16px; box-shadow: var(--shadow-sm);
}
.toc h2 {
  margin: 0 0 10px; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.toc ol { margin: 0; padding: 0 0 0 1.15em; }
.toc li { margin: 0 0 8px; }
.toc a { color: var(--text); text-decoration: none; font-weight: 650; font-size: 0.9rem; }
.toc a:hover { color: var(--accent-hover); }

.byline {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  font-size: 0.875rem; color: var(--text-muted); margin: 0 0 16px;
}
.author {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 18px; margin: 28px 0;
}
.author__avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(145deg, #14c495, #087a5e);
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
}
.author h2 { margin: 0 0 4px; font-size: 1rem; }
.author p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }

.result-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.result-tabs a {
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elevated);
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.875rem;
  display: inline-flex; align-items: center;
}
.result-tabs a.is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.result-list { display: grid; gap: 12px; }
.result-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px 16px;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
}
.result-row:hover { box-shadow: var(--shadow); color: inherit; }
.result-row h3 { margin: 0 0 2px; }
.result-row p { margin: 4px 0 0; font-size: 0.9rem; color: var(--text-muted); }
.result-row__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.nav__link.is-current, .nav__btn.is-current { background: var(--bg-muted); }

/* Dark-mode polish for hero search and selects */
[data-theme="dark"] .btn--primary,
[data-theme="dark"] .btn--play { color: #06281f; }
[data-theme="dark"] .featured__badge,
[data-theme="dark"] .pagination .is-current,
[data-theme="dark"] .result-tabs a.is-current { color: #06281f; }

@media (min-width: 1100px) {
  .toc--mobile { display: none; }
}

/* ===== WordPress additions ===== */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.logo__svg{display:block;height:36px;width:auto}
.logo__mark svg{width:20px;height:20px}
.footer .logo__mark{width:28px;height:28px;border-radius:8px}
.footer .logo__mark svg{width:16px;height:16px}
.nav__btn{font-family:inherit}
.mega__list a.is-empty{color:var(--text-muted)}
.mega__all{grid-column:1/-1;font-weight:700!important;color:var(--accent-ink)!important}
.drawer h2{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);margin:18px 0 4px}
.drawer form{margin:0 0 8px}
.drawer input[type=search]{width:100%;height:46px;border-radius:12px;border:1px solid var(--line-strong);background:var(--bg);color:var(--text);padding:0 14px}
.drawer ul{list-style:none;margin:0;padding:0}
/* Breadcrumbs (Rank Math markup) */
.rank-math-breadcrumb{font-size:13px;color:var(--text-muted);padding:16px 0 8px}
.rank-math-breadcrumb p{margin:0;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.rank-math-breadcrumb a{color:var(--text-muted);text-decoration:none}
.rank-math-breadcrumb a:hover{color:var(--accent-hover)}
.rank-math-breadcrumb .separator{color:var(--text-faint)}
.rank-math-breadcrumb .last{color:var(--text)}
/* Prose */
.prose{font-size:1.0625rem}
.prose > *:first-child{margin-top:0}
.prose h2{scroll-margin-top:calc(var(--header-h) + 12px)}
.prose h3{margin-top:1.4em}
.prose ol{padding-left:1.3em;margin:0 0 1em}
.prose table{width:100%;border-collapse:collapse;margin:8px 0 20px;background:var(--bg-elevated);border:1px solid var(--line);font-size:.875rem;display:block;overflow-x:auto}
.prose th,.prose td{padding:9px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.prose thead th{background:var(--bg-muted);color:var(--text-muted);font-weight:650;white-space:nowrap}
.prose img{height:auto;border-radius:12px}
.prose blockquote{margin:0 0 1em;padding:8px 16px;border-left:3px solid var(--accent);background:var(--bg-elevated);border-radius:0 8px 8px 0}
.lead-in{font-size:1.125rem;color:var(--text-muted)}
.facts-note{font-size:.8125rem;color:var(--text-muted);margin:-8px 0 24px}
.faq-block{margin-top:2em}
.faq__a p:last-child{margin-bottom:0}
.faq details[open] summary{margin-bottom:8px}
.related{padding-top:8px}
.empty-state{background:var(--bg-elevated);border:1px dashed var(--line-strong);border-radius:var(--radius-lg);padding:28px;text-align:center;color:var(--text-muted)}
.empty-state h2{font-size:1.125rem;color:var(--text)}
.page-wrap{padding-bottom:40px}
.page-wrap .prose{max-width:var(--content)}
.rank-card__body > p.muted{margin:0 0 6px}
.rank-card__body h2 a{color:inherit;text-decoration:none}
.rank-card__body h2 a:hover{color:var(--accent-hover)}
.rank-card .verdict{margin:10px 0 0;font-size:.95rem}
.toc--side{position:sticky;top:calc(var(--header-h) + 16px)}
.sidebar__sticky .toc{margin-bottom:20px}
.guide-card .pill{align-self:flex-start}
.result-row .pill{height:22px;font-size:11px}
.card-tagline{margin:4px 0 0;font-size:12px;color:var(--text-muted);line-height:1.4}
.hero .lead a{font-weight:650}
.featured h2{margin-bottom:6px}
.featured h2 a{color:inherit;text-decoration:none}
.featured__btns{display:grid;gap:10px}
.cat-index{columns:2;column-gap:24px;list-style:none;margin:0;padding:0}
@media (min-width:700px){.cat-index{columns:3}}
@media (min-width:1000px){.cat-index{columns:4}}
.cat-index li{break-inside:avoid;margin:0 0 6px}
.cat-index a{text-decoration:none;color:var(--text);font-weight:600}
.cat-index a:hover{color:var(--accent-hover)}
.cat-index .count{color:var(--text-faint);font-weight:500;font-size:.85em}
.disclosure strong{color:var(--accent-ink)}
.ad-slot__box:empty::after{content:"";display:block}
.ad-slot__box.is-live{display:block;padding:0;background:none;border:0}
.btn svg{flex:0 0 auto}
.pagination .page-numbers.current{background:var(--accent);border-color:var(--accent);color:#fff}
.nav-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:28px 0 8px}
.nav-links a,.nav-links span{min-width:40px;height:40px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line-strong);border-radius:10px;background:var(--bg-elevated);color:var(--text);text-decoration:none;font-weight:700;font-size:.875rem}
.nav-links .current{background:var(--accent);border-color:var(--accent);color:#fff}
[data-theme="dark"] .nav-links .current{color:#06281f}
.sort-form{display:flex;gap:8px;align-items:flex-end}
.sort-form .btn{height:40px;border-radius:10px;font-size:.875rem;padding:0 14px}
.app-hero .app-icon--lg{box-shadow:var(--shadow)}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.nav__item.is-open .mega{display:grid}

/* polish after live review (re-applied) */
.rank-card .rating-badge { margin: 2px 0 6px; }
@media (max-width: 959px) {
  .header__actions { margin-left: auto; }
}
@media (max-width: 699px) {
  .app-hero { grid-template-columns: 72px 1fr; gap: 14px; align-items: start; }
  .app-hero .app-icon--lg { width: 72px; height: 72px; border-radius: 18px; font-size: 1.3rem; }
  .app-hero .rating-badge { display: block; }
  .hero-search { flex-wrap: wrap; }
  .hero-search input, .hero-search .btn { flex: 1 1 100%; }
  .meta-table th { width: 42%; }
}
