/*
  Merchant Rate Auditor — Resources / Merchant Fee Guides (SEO content
  section).

  Shared by public/resources.html (hub) and every /resources/<slug>.html
  article page. Deliberately reuses the SAME dark-navy/gold visual
  language and class names already established by public/landing.html
  (--navy/--gold tokens, .lp-wrap/.lp-nav/.lp-footer* markup) rather than
  inventing a second design system — this IS the public marketing site,
  just a second page family within it. Pages that load this file also
  load /css/customer-shell.css first (for the shared .mra-root reset,
  --font-mono, and the base .btn geometry landing.html itself depends on)
  — this file only adds the nav/footer restatement plus new, additive
  ".res-*" classes for hub cards and article typography.

  Nothing here is referenced by, or changes the appearance of, any
  authenticated app page (index.html, statement-review.html, the owner
  command center, etc.) — those load their own stylesheets and never
  this one.
*/

:root {
  --navy: #07111F;
  --navy-raised: #0F1B2E;
  --navy-alt: #0C1725;
  --navy-border: #223350;
  --navy-border-soft: #182640;
  --ink-hi: #F6F7F9;
  --ink-mid: #C4CCD7;
  --ink-dim: #8D9AAB;
  --ink-faint: #5B6880;
  --gold: #F0B934;
  --gold-soft: #F4C34D;
  --gold-deep: #C99632;
  --gold-ink: #1A1200;
  --coral: #E2836C;
}

body { margin: 0; background: var(--navy); }
.mra-root :focus-visible { outline-color: var(--gold); }

.lp-wrap { max-width: 1240px; margin: 0 auto; padding-left: clamp(18px, 3.5vw, 40px); padding-right: clamp(18px, 3.5vw, 40px); }
section[id] { scroll-margin-top: 76px; }

.lp-skip {
  position: absolute; left: 12px; top: -48px; z-index: 110;
  background: var(--navy-raised); color: var(--gold); border: 1px solid var(--navy-border);
  border-radius: 6px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; transition: top .15s ease;
}
.lp-skip:focus { top: 12px; }

/* ---- brand mark (identical to landing.html) ---- */
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark { flex: none; display: block; }
.brand-name { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink-hi); line-height: 1.15; }
.brand-name em { font-style: normal; color: var(--gold); }
.brand-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--ink-dim); margin-top: 2px; }

.btn-gold { background: var(--gold); color: var(--gold-ink); border: 1px solid var(--gold); font-weight: 650; line-height: 1; box-shadow: 0 8px 20px rgba(240,185,52,0.22); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); box-shadow: 0 10px 24px rgba(240,185,52,0.3); }
.btn.btn-ghost-gold { background: transparent; color: var(--gold); border: 1px solid rgba(240,185,52,0.45); font-weight: 650; }
.btn.btn-ghost-gold:hover { background: rgba(240,185,52,0.08); border-color: var(--gold); }

/* ---- header / nav (same structure/classes as landing.html; links point
   back to the homepage's own sections since these are separate pages) ---- */
.lp-nav { position: sticky; top: 0; z-index: 40; min-height: 68px; display: flex; align-items: center; background: rgba(7,17,31,0.9); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--navy-border-soft); }
.lp-nav-inner { display: flex; align-items: center; width: 100%; padding: 14px 0; }
.lp-nav-right { display: flex; align-items: center; gap: 36px; }
.lp-nav-links { list-style: none; display: none; align-items: center; margin: 0; padding: 0; gap: 26px; }
.lp-nav-links a { font-size: 13px; font-weight: 500; color: var(--ink-mid); white-space: nowrap; }
.lp-nav-links a:hover, .lp-nav-links a[aria-current="page"] { color: var(--ink-hi); }
.lp-nav-links a[aria-current="page"] { color: var(--gold); }
@media (min-width: 900px) { .lp-nav-links { display: flex; } }
.lp-nav-actions { display: flex; align-items: center; gap: 20px; }
.lp-nav-actions .lp-nav-signin { font-size: 13px; font-weight: 600; color: var(--ink-mid); white-space: nowrap; }
.lp-nav-actions .lp-nav-signin:hover { color: var(--ink-hi); }
.lp-nav-actions .btn { padding: 9px 18px; font-size: 12.5px; white-space: nowrap; }

/* ---- footer (identical structure/classes/copy to landing.html's own
   Footer Pass 2 — 4 columns: Brand / Tools & Resources / Help & Trust /
   Legal. Legal (Privacy Policy, Terms of Service, Data Retention &
   Deletion) was added once those three pages actually existed — see
   public/privacy.html, public/terms.html, public/retention-deletion.html.) ---- */
.lp-footer { background: #040A12; border-top: 1px solid rgba(240,185,52,0.18); padding: 34px 0 24px; }
.lp-footer-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-bottom: 24px; }
@media (min-width: 640px) { .lp-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; } }
@media (min-width: 1040px) { .lp-footer-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 30px; } }
.lp-footer-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.lp-footer-brand .brand-mark { width: 24px; height: 24px; }
.lp-footer-brand span { font-size: 13.5px; font-weight: 650; color: var(--ink-hi); }
.lp-footer-desc { font-size: 12.5px; line-height: 1.65; color: var(--ink-mid); margin: 0; max-width: 42ch; }
.lp-footer-links-head { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 14px; }
@media (min-width: 640px) { .lp-footer-links-head { margin-top: 3px; } }
.lp-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.lp-footer-links a { font-size: 13px; font-weight: 500; color: var(--ink-mid); display: inline-block; padding: 2px 0; }
.lp-footer-links a:hover { color: var(--ink-hi); }
.lp-footer-contact { margin-top: 18px; }
.lp-footer-contact-label { font-size: 11px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 5px; }
.lp-footer-contact a { font-size: 13px; font-weight: 600; color: var(--gold); word-break: break-word; }
.lp-footer-contact a:hover { color: var(--gold-soft); }
.lp-footer-disclaimer { border-top: 1px solid var(--navy-border-soft); padding: 20px 0; text-align: center; }
.lp-footer-note { font-size: 12px; line-height: 1.6; color: var(--ink-mid); max-width: 900px; margin: 0 auto; }
.lp-footer-note-secondary { font-size: 11px; line-height: 1.6; color: var(--ink-faint); max-width: 900px; margin: 10px auto 0; }
.lp-footer-bottom { border-top: 1px solid var(--navy-border-soft); padding-top: 18px; text-align: center; }
.lp-footer-copy { font-size: 11.5px; color: var(--ink-dim); margin: 0; }

/* ============================================================
   RESOURCES HUB — page header + responsive article-card grid.
   ============================================================ */
.res-hero { background: var(--navy-alt); padding: 46px 0 38px; border-bottom: 1px solid var(--navy-border-soft); }
.res-hero-inner { max-width: 760px; }
.res-eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; }
.res-eyebrow::before { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .6; }
.res-h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; color: var(--ink-hi); margin: 0 0 14px; }
.res-lede { font-size: 14.5px; line-height: 1.65; color: var(--ink-mid); margin: 0; max-width: 62ch; }
.res-lede strong { color: var(--ink-hi); }

.res-list-section { background: var(--navy); padding: 40px 0 56px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; max-width: 1100px; margin: 0 auto; }
@supports selector(:has(*)) {
  .res-grid:has(.res-card:only-child) { max-width: 440px; }
}

.res-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--navy-raised); border: 1px solid var(--navy-border); border-radius: 16px;
  padding: 24px 22px 22px; box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}
.res-card-cat {
  display: inline-flex; align-self: flex-start; font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); background: rgba(240,185,52,0.1);
  border: 1px solid rgba(240,185,52,0.3); border-radius: 20px; padding: 4px 11px; margin: 0 0 14px;
}
.res-card-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; color: var(--ink-hi); margin: 0 0 10px; }
.res-card-desc { font-size: 13px; line-height: 1.58; color: var(--ink-mid); margin: 0 0 18px; flex: 1; }
.res-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--navy-border-soft); }
.res-card-date { font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; }
.res-card-link { font-size: 13px; font-weight: 650; color: var(--gold); white-space: nowrap; }
.res-card-link:hover { color: var(--gold-soft); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.res-article-hero { background: var(--navy-alt); padding: 40px 0 32px; border-bottom: 1px solid var(--navy-border-soft); }
.res-article-hero-inner { max-width: 780px; }
.res-article-cat { display: inline-flex; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); background: rgba(240,185,52,0.1); border: 1px solid rgba(240,185,52,0.3); border-radius: 20px; padding: 4px 11px; margin: 0 0 16px; }
.res-article-h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.018em; line-height: 1.22; color: var(--ink-hi); margin: 0 0 14px; }
.res-article-meta { font-size: 12.5px; color: var(--ink-dim); margin: 0; }
.res-article-meta a { color: var(--gold); font-weight: 600; }

.res-article-body-section { background: var(--navy); padding: 40px 0 8px; }
.res-article-body { max-width: 720px; margin: 0 auto; }
.res-article-body h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.012em; color: var(--ink-hi); margin: 38px 0 14px; }
.res-article-body h2:first-child { margin-top: 0; }
.res-article-body p { font-size: 14.5px; line-height: 1.72; color: var(--ink-mid); margin: 0 0 16px; }
.res-article-body p strong { color: var(--ink-hi); }
.res-article-body ul { margin: 0 0 18px; padding-left: 20px; color: var(--ink-mid); font-size: 14px; line-height: 1.7; }
.res-article-body ul li { margin-bottom: 6px; }
.res-article-body ul.res-two-col { columns: 1; column-gap: 32px; }
@media (min-width: 640px) { .res-article-body ul.res-two-col { columns: 2; } }

.res-formula {
  background: var(--navy-raised); border: 1px solid var(--navy-border); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 18px 20px; margin: 0 0 20px;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; color: var(--ink-hi);
}

.res-example {
  background: var(--navy-raised); border: 1px solid var(--navy-border); border-radius: 12px;
  padding: 18px 20px; margin: 0 0 22px;
}
.res-example-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 10px; }
.res-example ul { list-style: none; margin: 0; padding: 0; }
.res-example ul li { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--ink-mid); padding: 6px 0; border-bottom: 1px dashed var(--navy-border-soft); }
.res-example ul li:last-child { border-bottom: none; font-weight: 700; color: var(--ink-hi); }
.res-example ul li span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-hi); font-weight: 650; }

.res-callout {
  background: rgba(240,185,52,0.08); border: 1px solid rgba(240,185,52,0.32); border-radius: 12px;
  padding: 18px 20px; margin: 0 0 22px;
}
.res-callout p { color: var(--ink-hi); margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.6; }
.res-callout p + p { margin-top: 8px; font-weight: 500; color: var(--ink-mid); }

.res-table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--navy-border); border-radius: 12px; }
.res-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 320px; }
.res-table th, .res-table td { padding: 11px 16px; text-align: left; white-space: nowrap; }
.res-table thead th { background: var(--navy-raised); color: var(--gold-deep); font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--navy-border); }
.res-table tbody td { color: var(--ink-mid); border-bottom: 1px solid var(--navy-border-soft); }
.res-table tbody tr:last-child td { border-bottom: none; }
.res-table tbody td:first-child, .res-table thead th:first-child { color: var(--ink-hi); font-weight: 600; }

/* ---- CTA (Free Statement Scan) ---- */
.res-cta {
  background: var(--navy-raised); border: 1px solid var(--gold); border-radius: 16px;
  padding: 28px 26px; margin: 32px 0 30px; text-align: center;
  box-shadow: 0 0 0 1px rgba(240,185,52,0.12) inset, 0 20px 40px rgba(0,0,0,0.3);
}
.res-cta h2 { margin: 0 0 10px; font-size: 20px; }
.res-cta p { max-width: 56ch; margin: 0 auto 20px; }
.res-cta .btn { padding: 13px 28px; font-size: 14px; }

.res-disclaimer { font-size: 12px; line-height: 1.6; color: var(--ink-faint); max-width: 720px; margin: 0 auto 44px; padding-top: 18px; border-top: 1px solid var(--navy-border-soft); }

.res-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gold); margin: 0 auto 26px; max-width: 720px; }
.res-back-link:hover { color: var(--gold-soft); }
