/* RummyTrail – soft mint / light-green design system */

:root {
  /* Core palette */
  --page: #f3f8f3;
  --surface: #ffffff;
  --green-soft: #ddefe0;
  --green-soft-2: #eaf5ec;
  --accent: #3f8f5b;
  --accent-dark: #24583a;
  --ink: #26352b;
  --muted: #68776c;
  --line: #dce7de;
  --hover: #cde6d2;

  /* Semantic aliases */
  --green: #3f8f5b;
  --green-dark: #2f7348;
  --green-deep: #24583a;
  --panel: #24583a;
  --panel-mid: #3f8f5b;
  --cta: #3f8f5b;
  --cta-hover: #2f7348;
  --cta-alt: #4a9b66;
  --focus-ring: rgba(63, 143, 91, 0.22);

  /* Backward-compatible aliases (old blue/red names → green system) */
  --blue: var(--accent);
  --blue-dark: var(--accent-dark);
  --blue-soft: var(--green-soft-2);
  --red: var(--accent);
  --orange: var(--cta-alt);

  --shadow: 0 8px 24px rgba(36, 88, 58, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --space: 16px;
  --container: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; }

/* Accessibility */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 10px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  color: var(--accent-dark);
  background: var(--green-soft);
  border-bottom: 1px solid var(--line);
}

.brand {
  width: min(100%, var(--container));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--accent-dark);
  text-decoration: none;
  font-size: clamp(17px, 4.8vw, 22px);
  font-weight: 800;
  letter-spacing: 0.1px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border: 2px solid rgba(36, 88, 58, 0.2);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 7px rgba(36, 88, 58, 0.12);
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-logo-link {
  display: block;
  line-height: 0;
}

.brand--custom {
  gap: 0;
}

.brand--custom .custom-logo {
  width: auto;
  height: 40px;
  max-width: min(240px, 72vw);
  object-fit: contain;
  display: block;
}

.brand-mark .custom-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

/* Navigation */
.site-nav {
  overflow-x: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.nav-inner {
  width: max-content;
  min-width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-nav .nav-inner > li > a {
  display: block;
  padding: 10px 14px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-nav .nav-inner > li:first-child > a { border-left: 1px solid var(--line); }
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--accent-dark);
  background: var(--hover);
}

.site-nav .sub-menu { display: none; }

/* Main */
.site-main {
  width: min(calc(100% - 24px), var(--container));
  min-height: 62vh;
  margin: 0 auto;
  padding: 18px 0 32px;
}

/* Banner */
.banner-module {
  margin: 0 0 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #ddefe0, #cde6d2 55%, #b8dcc0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1000 / 248;
  max-height: 280px;
}

.banner-module img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-fallback {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 28px 20px;
  text-align: center;
  color: var(--accent-dark);
  background: linear-gradient(135deg, #eaf5ec, #ddefe0 55%, #cde6d2);
}

.banner-fallback strong {
  display: block;
  font-size: clamp(22px, 6vw, 32px);
  letter-spacing: 0.02em;
}

.banner-fallback span {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 800;
}

/* Hero */
.hero { margin-bottom: 18px; text-align: center; }

.compact-hero,
.home-hero,
.directory-hero {
  padding: 28px 20px 24px;
  color: var(--accent-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.home-hero {
  background:
    linear-gradient(180deg, #eef6f0 0%, #ffffff 72%);
}

.directory-hero {
  background: #f7fbf8;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.detail-heading h1,
.policy-page h1,
.archive-heading h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(26px, 5.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero > p {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 16px;
}

.home-hero__search-block {
  max-width: 560px;
  margin: 20px auto 0;
  text-align: center;
}

.home-hero__search {
  max-width: 100%;
  margin: 0 auto;
}

.home-hero__meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Promo stats */
.promo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin: 12px 0;
  color: var(--accent-dark);
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.promo div {
  padding: 10px 6px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.promo div:last-child { border-right: 0; }
.promo strong,
.promo span { display: block; }
.promo strong { font-size: 18px; line-height: 1.2; color: var(--accent-dark); }
.promo span { color: var(--muted); font-size: 11px; }

/* Search */
.search-wrap {
  position: relative;
  margin: 14px 0;
}

.search-wrap::before {
  content: "⌕";
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  color: var(--muted);
  font-size: 25px;
  transform: translateY(-54%);
  pointer-events: none;
}

.search-wrap input[type="search"],
.search-wrap input[type="text"] {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 45px;
  border: 2px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(36, 88, 58, 0.04);
  font: inherit;
  color: var(--ink);
  -webkit-appearance: none;
}

.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.search-form-row {
  display: flex;
  gap: 8px;
}

.search-form-row input { flex: 1; }
.search-form-row .button { flex: 0 0 auto; min-height: 52px; }

/* Section titles */
.section-title {
  margin: 14px 0 8px;
  padding: 11px 14px;
  color: var(--accent-dark);
  background: var(--green-soft);
  border: 1px solid var(--line);
  text-align: center;
  border-radius: var(--radius-sm);
}

.section-title h2 {
  margin: 0;
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.25;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 8px 0 16px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-heading p {
  margin: 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.section-heading__link {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.section-heading__link:hover,
.section-heading__link:focus-visible {
  text-decoration: underline;
}

.section-heading--compact {
  align-items: center;
  margin-bottom: 12px;
}

.section-heading--compact h2 {
  margin: 0;
  font-size: clamp(18px, 4vw, 22px);
}

.section-intro {
  margin: 0 0 8px;
  padding: 0 4px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.home-section {
  margin: 28px 0;
}

.home-section__cta {
  margin: 18px 0 0;
  text-align: center;
}

.home-section__cta--left { text-align: left; }

.home-safety {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.safety-list {
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
}

.safety-list li {
  margin: 10px 0;
  padding-left: 4px;
  line-height: 1.55;
}

/* App grids & cards */
.app-list,
.app-grid {
  display: grid;
  gap: 14px;
}

.app-grid {
  grid-template-columns: 1fr;
}

.app-grid--compact {
  gap: 12px;
}

.app-card {
  --tone: #3f8f5b;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(36, 88, 58, 0.05);
}

.app-card--grid {
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas:
    "icon body"
    "cta cta";
  align-items: start;
}

.app-card--grid .app-icon { grid-area: icon; }
.app-card--grid .app-card__body { grid-area: body; }
.app-card--grid .app-card__cta {
  grid-area: cta;
  justify-self: stretch;
  width: 100%;
}

.app-card--rail {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 0;
}

.app-card--rail .app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.app-card--rail .app-card__body h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.app-card--rail .app-card__meta {
  margin: 4px 0 0;
  font-size: 12px;
}

.app-card--rail .app-card__text-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.app-card--rail .app-card__text-link:hover,
.app-card--rail .app-card__text-link:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.button--browse-all {
  min-width: min(100%, 280px);
  min-height: 48px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 800;
}

.app-card--row {
  grid-template-columns: 28px 64px minmax(0, 1fr);
  grid-template-areas:
    "rank icon body"
    "rank icon action";
  align-items: center;
  gap: 8px 10px;
  padding: 12px;
  border-radius: 12px;
  border-left: 3px solid var(--tone);
}

.app-card--row .rank { grid-area: rank; }
.app-card--row .app-icon { grid-area: icon; width: 64px; height: 64px; border-radius: 14px; }
.app-card--row .app-card__body { grid-area: body; }
.app-card--row .app-card__cta {
  grid-area: action;
  justify-self: start;
}
.app-card--row .app-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank {
  align-self: stretch;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  border-right: 1px solid var(--line);
}

.app-icon,
.detail-icon,
.mini-app > span {
  --tone: #3f8f5b;
  color: #fff;
  background: var(--green-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 0;
  text-decoration: none;
}

.app-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  flex: 0 0 72px;
}

.app-icon img,
.detail-icon img,
.mini-app img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.app-card__body { min-width: 0; }
.app-card__body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.app-card__body h3 a { color: var(--ink); text-decoration: none; }
.app-card__body h3 a:hover,
.app-card__body h3 a:focus-visible { color: var(--accent-dark); text-decoration: none; }

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}

.app-card__platform {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  color: var(--accent-dark);
  background: var(--green-soft-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.app-card__desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card__refs {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.app-card__refs-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-card__ref {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.app-card__withdrawal {
  margin: 1px 0 0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.tone-0 { --tone: #3f8f5b; }
.tone-1 { --tone: #2f7348; }
.tone-2 { --tone: #4a9b66; }
.tone-3 { --tone: #24583a; }
.tone-4 { --tone: #5ba873; }
.tone-5 { --tone: #367a4e; }
.tone-6 { --tone: #6bb07f; }
.tone-7 { --tone: #1e4a30; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--cta);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.button:hover,
.button:focus-visible {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.button--small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

.button--ghost {
  color: var(--accent-dark);
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: var(--hover);
  color: var(--accent-dark);
  transform: none;
}

.button--orange { background: var(--cta-alt); }
.button--orange:hover,
.button--orange:focus-visible { background: var(--cta-hover); }

.button--download {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  background: var(--cta);
  border: 1px solid var(--accent-dark);
  box-shadow: 0 4px 12px rgba(63, 143, 91, 0.2), inset 0 -3px 0 rgba(0, 0, 0, 0.1);
  font-size: clamp(14px, 4vw, 17px);
  letter-spacing: 0.02em;
}

.button--download:hover,
.button--download:focus-visible {
  background: var(--cta-hover);
}

.button--download:disabled {
  cursor: wait;
  opacity: 0.78;
}

/* Content panels */
.info-panel,
.content-card,
.policy-page,
.post-card-panel {
  margin-top: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.info-panel h2,
.content-card h2,
.policy-page h2,
.post-card-panel h2 {
  margin: 18px 0 7px;
  font-size: 21px;
  line-height: 1.25;
}

.info-panel h2:first-child,
.content-card h2:first-child,
.policy-page h2:first-child { margin-top: 0; }

.info-panel h3 { margin: 18px 0 6px; font-size: 18px; line-height: 1.3; }
.info-panel p,
.content-card p,
.policy-page p { margin: 8px 0; }

.directory-checks { margin: 10px 0; padding-left: 22px; }
.directory-checks li { margin: 7px 0; }
.compliance-date,
.updated {
  margin-top: 14px !important;
  color: var(--muted);
  font-size: 12px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow: hidden;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: var(--accent-dark); }

/* App detail */
.detail-heading { margin: 8px 0 13px; text-align: center; }
.detail-heading .eyebrow { color: var(--accent); }
.detail-heading p:last-child {
  max-width: 660px;
  margin: 7px auto 0;
  color: var(--muted);
}

.download-card {
  --tone: #3f8f5b;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
}

.detail-icon {
  width: min(78vw, 330px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  border-radius: 24%;
  font-size: clamp(52px, 18vw, 92px);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.detail-facts div {
  min-width: 0;
  padding: 9px 10px;
  color: var(--accent-dark);
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: inset 0 -4px 0 rgba(36, 88, 58, 0.08);
}

.detail-facts strong,
.detail-facts span { display: block; }
.detail-facts strong { color: var(--muted); font-size: 11px; }
.detail-facts span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.micro-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.callout,
.risk-note {
  margin: 14px 0;
  padding: 11px 13px;
  border-left: 4px solid var(--accent);
  background: var(--green-soft-2);
  border-radius: 5px;
}

.risk-note {
  border-left-color: #8a9a4a;
  background: #f4f7e8;
}

.check-list,
.steps { padding-left: 23px; }
.check-list li,
.steps li { margin: 5px 0; }
.check-list li::marker { color: var(--green); }

/* Related keywords marquee */
.recommended-strip {
  margin: 14px 0;
  padding: 0 10px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recommended-strip h2 {
  margin: 0 -10px 10px;
  padding: 6px 10px;
  color: var(--accent-dark);
  background: var(--green-soft);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
}

.related-keywords { overflow: hidden; padding: 0 0 10px; }
.related-keywords h2 { margin: 0 0 8px; }

.keyword-marquee {
  overflow: hidden;
  width: 100%;
  padding: 5px 0;
  background: #fff;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.keyword-track {
  width: max-content;
  display: flex;
  will-change: transform;
  animation: keyword-scroll 52s linear infinite;
}

.keyword-set {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

.keyword-set span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  color: var(--ink);
  background: var(--green-soft-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.keyword-marquee:hover .keyword-track,
.keyword-marquee:focus-within .keyword-track { animation-play-state: paused; }

@keyframes keyword-scroll {
  to { transform: translateX(-50%); }
}

/* FAQ (app detail + homepage) */
.faq-section details {
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(36, 88, 58, 0.04);
}

.faq-section summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
  color: var(--ink);
}

.faq-section summary::-webkit-details-marker { display: none; }
.faq-section__q,
.home-faq__question {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0;
}
.faq-section summary::after {
  content: "+";
  flex: 0 0 28px;
  width: 28px;
  margin-left: auto;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.faq-section details[open] {
  border-color: rgba(63, 143, 91, 0.35);
  box-shadow: 0 4px 14px rgba(36, 88, 58, 0.08);
}
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p,
.faq-section .home-faq__answer p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-section summary:hover,
.faq-section summary:focus-visible {
  color: var(--accent-dark);
  outline: none;
}

.faq-section summary:focus-visible {
  box-shadow: inset 0 0 0 2px var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* Homepage FAQ block (replaces About panel) */
.home-faq {
  margin-top: 20px;
  padding: 20px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-faq__header {
  margin: 0 0 14px;
  text-align: left;
}

.home-faq__header h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-faq__intro {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.home-faq__list {
  display: grid;
  gap: 10px;
}

.home-faq__item {
  margin-bottom: 0;
}

.home-faq__question {
  display: block;
}

.home-faq__answer {
  border-top: 1px solid var(--line);
  margin: 0 14px;
  padding-top: 10px;
}

.home-faq__answer p {
  padding: 0 0 12px !important;
}

.home-faq__note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 430px) {
  .home-faq {
    padding: 14px 12px 12px;
    margin-top: 14px;
  }

  .home-faq__header {
    margin-bottom: 10px;
  }

  .home-faq__header h2 {
    font-size: 20px;
  }

  .home-faq__intro {
    font-size: 14px;
  }

  .faq-section summary {
    min-height: 48px;
    padding: 12px;
    font-size: 15px;
  }

  .home-faq__answer {
    margin: 0 12px;
  }
}

/* Sticky download — hidden until main CTA leaves the viewport */
.sticky-download {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  max-height: 68px;
  padding: 8px max(12px, calc((100% - 1120px) / 2));
  color: #fff;
  background: var(--accent-dark);
  box-shadow: 0 -4px 15px rgba(36, 88, 58, 0.22);
}

.sticky-download[hidden] {
  display: none !important;
}

.sticky-download .app-icon {
  grid-area: auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 12px;
}

.sticky-download__copy {
  min-width: 0;
}

.sticky-download strong,
.sticky-download small { display: block; }
.sticky-download strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-download small { color: #ddefe0; font-size: 10px; }
.sticky-download .button { min-height: 38px; padding: 8px 14px; }
body.sticky-download-active .site-main {
  padding-bottom: 96px;
}
body.sticky-download-active .site-footer {
  padding-bottom: 96px;
}
body.sticky-download-active .app-detail__faq {
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* Policy pages */
.policy-page { max-width: 760px; margin: 0 auto; }
.policy-page .eyebrow { color: var(--accent); }
.policy-page h1 {
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}
.policy-page ul { padding-left: 22px; }

/* Blog / post cards */
.post-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.post-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.post-card__media {
  aspect-ratio: 16 / 9;
  max-height: 148px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--green-soft-2);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card--text {
  grid-template-columns: 1fr;
  padding: 14px 16px;
}

.post-card--text .post-card__excerpt {
  margin-bottom: 10px;
}

.post-card__title {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
}

.post-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.post-card__title a:hover,
.post-card__title a:focus-visible {
  color: var(--accent-dark);
  text-decoration: none;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.post-card__excerpt {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.post-card__cta {
  justify-self: start;
}

.entry-header {
  margin-bottom: 16px;
  text-align: center;
}

.entry-header .eyebrow { color: var(--accent); }

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.entry-featured {
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.entry-featured img {
  width: 100%;
  height: auto;
}

.entry-content {
  font-size: 16px;
  line-height: 1.7;
}

.entry-content h2 { margin: 22px 0 8px; font-size: 22px; }
.entry-content h3 { margin: 18px 0 6px; font-size: 18px; }
.entry-content p { margin: 0 0 14px; }
.entry-content ul,
.entry-content ol { margin: 0 0 14px; padding-left: 22px; }
.entry-content a { color: var(--accent); }
.entry-content a:hover { color: var(--accent-dark); }
.entry-content img { border-radius: 8px; margin: 12px 0; }

.related-posts {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

/* Taxonomy chips */
.tax-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.tax-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.tax-chips a:hover,
.tax-chips a:focus-visible,
.tax-chips a.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

/* Pagination */
.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 8px;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span,
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.pagination a:hover,
.nav-links a:hover,
.page-numbers:hover {
  background: var(--hover);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.pagination .current,
.nav-links .current,
.page-numbers.current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.no-results {
  padding: 18px;
  background: var(--surface);
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--line);
}

/* Screenshots grid on app pages */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.screenshot-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--green-soft-2);
}

/* Footer */
.site-footer {
  padding: 24px 16px;
  color: #eaf5ec;
  background: var(--accent-dark);
  text-align: center;
  font-size: 12px;
}

.site-footer p { margin: 6px 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 14px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.site-footer > p {
  font-weight: 400;
  color: #ddefe0;
}

/* Align WP admin bar */
.admin-bar .sticky-download { bottom: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .sticky-download { bottom: 46px; }
}

/* Tablet: 2-column app grid */
@media (min-width: 640px) {
  .site-main { width: min(calc(100% - 36px), var(--container)); }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card--row {
    grid-template-columns: 30px 72px minmax(0, 1fr) 132px;
    grid-template-areas: "rank icon body action";
    min-height: 94px;
    padding: 12px 14px;
  }

  .app-card--row .app-icon { width: 72px; height: 72px; }
  .app-card--row .app-card__cta { justify-self: stretch; }

  .detail-icon { width: 350px; }
  .download-card { padding: 18px; }
  .detail-facts { max-width: 520px; margin: auto; }
  .button--download {
    max-width: 520px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
  }
  .micro-note {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .post-card {
    grid-template-columns: 200px 1fr;
    align-items: center;
  }

  .post-card__media {
    max-height: 120px;
  }

  .post-card--text {
    grid-template-columns: 1fr;
  }

  .app-grid--updates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screenshot-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop: 3-column app grid */
@media (min-width: 980px) {
  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-card--grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "body"
      "cta";
    justify-items: start;
  }

  .app-card--grid .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }
}

@media (max-width: 430px) {
  .site-nav a,
  .site-nav .nav-inner > li > a {
    padding-inline: 12px;
    font-size: 13px;
  }

  .detail-facts div { padding: 8px 7px; }
  .detail-facts strong { font-size: 10px; }
  .detail-facts span { font-size: 11px; }

  .sticky-download { grid-template-columns: 40px 1fr auto; }
  .sticky-download .button { padding-inline: 11px; font-size: 12px; }

  .post-card__title { font-size: 17px; }

  .banner-module {
    max-height: 160px;
    aspect-ratio: 16 / 7;
  }

  .hero h1 { font-size: clamp(22px, 7vw, 30px); }

  .app-card__body h3 { white-space: normal; }
}

@media (max-width: 360px) {
  .site-main { width: min(calc(100% - 16px), var(--container)); padding-inline: 0; }
  .button--small { font-size: 11px; padding: 7px 9px; }
  .promo strong { font-size: 15px; }
  .promo span { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
  .keyword-track { animation: none !important; }
}

/* Large desktop breathing room */
@media (min-width: 1280px) {
  .site-main { width: min(calc(100% - 48px), var(--container)); }
  .banner-module { max-height: 278px; }
}
