/* Cash Advance Directory — overdraftapps.com
   B-pricing fee face on B-media shell. Corzo-evolved palette (green accent,
   serif display, warm gray paper). No purple gradients. */

.cash-advance-directory {
  --oda-ink: #1c2128;
  --oda-ink-soft: #4a5560;
  --oda-muted: #6b7580;
  --oda-line: #d8dde3;
  --oda-line-soft: #e8ecf0;
  --oda-paper: #f4f6f8;
  --oda-surface: #ffffff;
  --oda-accent: #1f6b4a;
  --oda-accent-hover: #18563b;
  --oda-accent-soft: #e8f3ed;
  --oda-warn: #7a2e2e;
  --oda-warn-soft: #f7eaea;
  --oda-radius: 10px;
  /* System stacks only: zero font downloads = zero font-swap CLS (CWV). */
  --oda-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --oda-font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  margin: 0;
  background: var(--oda-paper);
}

.oda-page {
  font-family: var(--oda-font-body);
  color: var(--oda-ink);
  /* Pin the rem/em base so late-loading theme CSS cannot re-flow the page. */
  font-size: 16px;
  line-height: 1.5;
  background: linear-gradient(180deg, #eef3f0 0%, var(--oda-paper) 220px);
  min-height: 100vh;
}

.oda-page *,
.oda-page *::before,
.oda-page *::after { box-sizing: border-box; }

.oda-page img { max-width: 100%; }
.oda-page button { font: inherit; cursor: pointer; }
.oda-page a { color: inherit; }

/* The hidden attribute must always win over component display rules. */
.oda-page [hidden] { display: none !important; }

/* No auto-inserted ads inside the directory UI (PRD): hide interstitials the
   ad script injects into the hero/tools/listing so cards never shift.
   Anchor, adhesion, and footer slots keep serving. */
.oda-hero .adthrive-ad,
.oda-tools .adthrive-ad,
.oda-main > .adthrive-ad,
.oda-page > .adthrive-ad,
.oda-list > .adthrive-ad,
.oda-list .oda-card + .adthrive-ad {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
}

/* Raptive units injected in normal flow above the card list (interstitial /
   top-collapse / content slots) push the whole list down (CLS ~0.48).
   Suppress them on this page only; the anchor/adhesion and footer ads are
   position:fixed and keep serving. */
.cash-advance-directory [class*="adthrive-top-collapse"],
.cash-advance-directory .adthrive-collapse-mobile-background,
.cash-advance-directory .adthrive-ad[class*="collapse"],
.cash-advance-directory .adthrive-ad.adthrive-interstitial,
.cash-advance-directory [id*="AdThrive_Content_"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
}

.oda-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Header ---- */

.oda-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--oda-line-soft);
}

.oda-header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oda-logo { height: 32px; width: auto; display: block; }

.oda-nav {
  display: none;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--oda-ink-soft);
}

.oda-nav a { text-decoration: none; color: var(--oda-ink-soft) !important; }
.oda-nav a:hover { color: var(--oda-accent) !important; }

.oda-nav .oda-nav-reclaim {
  color: var(--oda-accent) !important;
  border: 1px solid var(--oda-accent);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
}

.oda-page a.oda-yt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #cc0000;
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.oda-page a.oda-yt:hover { background: #a80000; color: #fff !important; }

.oda-header-mobile { display: flex; align-items: center; gap: 8px; }

.oda-burger {
  width: 42px;
  height: 38px;
  border: 1px solid var(--oda-line);
  border-radius: 8px;
  background: var(--oda-surface);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.oda-burger span { display: block; width: 16px; height: 2px; background: var(--oda-ink); }

.oda-mobile-menu {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--oda-line-soft);
  background: var(--oda-surface);
}

.oda-mobile-menu a {
  padding: 13px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--oda-ink-soft) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--oda-line-soft);
}

@media (min-width: 900px) {
  .oda-nav { display: flex; }
  .oda-header-mobile { display: none; }
  .oda-mobile-menu { display: none !important; }
}

/* ---- Layout ---- */

.oda-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

.oda-hero { padding: 20px 0 6px; }

/* !important on size too: the theme paints h1 at 100px then its mobile font
   scaler shrinks it after DOM-ready, shifting the whole page (CLS 0.48). */
.oda-hero h1 {
  margin: 0 0 8px !important;
  font-family: var(--oda-font-display) !important;
  font-size: clamp(1.55rem, 4.5vw, 2.5rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--oda-ink) !important;
}

.oda-lead {
  margin: 0 0 6px;
  color: var(--oda-ink-soft);
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
  max-width: 68ch;
}

.oda-updated {
  margin: 0;
  font-size: 0.78rem;
  color: var(--oda-muted);
}

.oda-snapshot {
  margin: 8px 0 0;
  max-width: 68ch;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--oda-ink-soft);
}

/* ---- Tools ---- */

.oda-tools { margin: 14px 0 6px; }

.oda-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.oda-chip {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--oda-line);
  background: var(--oda-surface);
  color: var(--oda-ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.oda-chip.is-active {
  background: var(--oda-ink);
  border-color: var(--oda-ink);
  color: #fff;
}

.oda-chip-more { border-style: dashed; color: var(--oda-muted); }

.oda-sort-wrap { margin-left: auto; }

.oda-sort {
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--oda-line);
  background: var(--oda-surface);
  color: var(--oda-ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
}

.oda-more-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--oda-line);
  border-radius: var(--oda-radius);
  background: var(--oda-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oda-more-row-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.oda-search,
.oda-state {
  width: 100%;
  max-width: 340px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--oda-line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--oda-ink);
  background: var(--oda-surface);
}

.oda-state-wrap {
  display: block;
  flex: 1 1 200px;
  max-width: 340px;
}

.oda-state-caveat {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--oda-muted);
}

.oda-state-filter-label {
  margin: 14px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--oda-ink);
}

.oda-card.is-state-filtered-out {
  display: none !important;
}

.oda-rank-why {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--oda-muted);
}

.oda-disclosure {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--oda-ink-soft);
}

.oda-section-head {
  margin: 16px 0 10px;
  font-family: var(--oda-font-display) !important;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--oda-ink) !important;
}

.oda-section-head.oda-picks-label {
  font-family: var(--oda-font-body) !important;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--oda-ink-soft) !important;
  margin-bottom: 8px;
}

.oda-anchor {
  display: block;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.oda-dataset-link,
.oda-methodology-link {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4a5568;
}

.oda-dataset-link a,
.oda-methodology-link a {
  color: #1a365d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.oda-fee-footnote {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--oda-muted);
}

/* ---- Cards ---- */

.oda-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oda-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: var(--oda-surface);
  border: 1px solid var(--oda-line);
  border-radius: var(--oda-radius);
  box-shadow: 0 1px 0 rgba(28, 33, 40, 0.04);
}

.oda-card.is-pick {
  background: #f7fbf8;
  border-color: #c5ddd0;
}

.oda-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #e8ecf0;
}

.oda-card-main { min-width: 0; }

.oda-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding-right: 52px;
  position: relative;
}

.oda-app-name { font-weight: 700; font-size: 1rem; line-height: 1.2; }

.oda-score {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: #6b7580;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.oda-score.tier-gold {
  background: linear-gradient(180deg, #f0d78c 0%, #d4a84b 100%);
  color: #3b2f0b;
  box-shadow: inset 0 0 0 1px rgba(120, 84, 20, 0.25);
}

.oda-score.tier-green {
  background: var(--oda-accent);
  color: #fff;
}

.oda-score.tier-yellow {
  background: #e0b423;
  color: #2a2208;
}

.oda-score.tier-red {
  background: #b33a3a;
  color: #fff;
}

.oda-score.tier-neutral {
  background: #6b7580;
  color: #fff;
}

.oda-amount {
  margin-top: 2px;
  font-weight: 700;
  font-size: 0.92rem;
}

.oda-fees {
  margin: 6px 0 2px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.oda-fee-sub,
.oda-fee-express { font-weight: 700; }

.oda-fee-express.is-muted { color: var(--oda-ink-soft); font-weight: 600; }

.oda-summary {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--oda-ink-soft);
  line-height: 1.45;
  max-width: 62ch;
}

.oda-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.oda-tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #eef1f4;
  color: #3d4650;
  white-space: nowrap;
}

.oda-tag-pick { background: var(--oda-accent-soft); color: var(--oda-accent); }
.oda-tag-warn { background: var(--oda-warn-soft); color: var(--oda-warn); }

.oda-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
}

.oda-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 140px;
  max-width: 300px;
  height: 40px;
  margin-top: 0;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--oda-accent);
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.oda-cta-callout {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--oda-accent);
  line-height: 1.25;
}

.oda-cta:hover { background: var(--oda-accent-hover); }

.oda-links {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 9px;
}

.oda-review-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--oda-accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.oda-more-toggle {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--oda-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.oda-more-toggle[aria-expanded="true"] { color: var(--oda-ink); }

.oda-more {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--oda-line-soft);
  border-radius: 8px;
  background: var(--oda-paper);
}

.oda-more dl { margin: 0; }

.oda-more-row { padding: 5px 0; }
.oda-more-row + .oda-more-row { border-top: 1px solid var(--oda-line-soft); }
.oda-more-article { margin: 12px 0 0; }
.oda-more-article-link {
  font-weight: 700;
  text-decoration: underline;
  color: var(--oda-ink, #1a1a2e);
}
.oda-more-article-link:hover { opacity: 0.85; }

.oda-more dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--oda-muted);
}

.oda-more dd {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--oda-ink-soft);
  line-height: 1.45;
}

.oda-empty {
  margin: 18px 0;
  font-size: 0.9rem;
  color: var(--oda-ink-soft);
}

/* ---- FAQ ---- */

.oda-faq { margin-top: 40px; }

.oda-faq h2 {
  font-family: var(--oda-font-display) !important;
  font-size: 1.35rem;
  margin: 0 0 14px;
  color: var(--oda-ink) !important;
}

.oda-faq-item {
  background: var(--oda-surface);
  border: 1px solid var(--oda-line);
  border-radius: var(--oda-radius);
  margin-bottom: 8px;
  padding: 0 14px;
}

.oda-faq-item summary {
  padding: 13px 0;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.oda-faq-item summary::-webkit-details-marker { display: none; }

.oda-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--oda-muted);
}

.oda-faq-item[open] summary::after { content: "\2212"; }

.oda-faq-item p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--oda-ink-soft);
  line-height: 1.55;
}

/* ---- Desktop card refinements ---- */

@media (min-width: 720px) {
  .oda-card { padding: 16px 18px; grid-template-columns: 48px minmax(0, 1fr); }
  .oda-icon { width: 48px; height: 48px; }
  .oda-hero { padding: 28px 0 8px; }
}
