/* Public Website #1 -- deliberately minimal: no web-font download, no
   JS, no framework. docs/seo_content_pipeline_map.md Part 5's own
   finding was that INP is arguably a hand-built-site advantage when
   kept lean -- this stays lean on purpose, not as a placeholder to
   fill in later. */

/* Round 5 (real-reference calibration): navy/indigo accent, replacing
   the earlier terracotta -- confirmed dropped, not liked. Real "depth"
   modeled on three live-screenshotted credit-card comparison sites
   (Capital One's own compare page, creditcards.com, Bankrate): a soft
   pale-tinted page background with a large white elevated panel for
   real content, not a saturated gradient banner. `main` IS that panel
   (see its own rule below) -- applies uniformly to every page with no
   per-template changes needed. */
:root {
  --text: #14181f;
  --muted: #545b68;
  --faint: #8890a0;
  --border: #e3e7ee;
  --border-strong: #cdd3de;
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --page-tint: #eef2f8;
  --accent: #1f3a5f;
  --accent-tint: #e8eef7;
  --accent-contrast: #ffffff;
  --green: #1a6b4d;
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.04), 0 8px 24px -12px rgba(20, 24, 31, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--page-tint);
  line-height: 1.55;
}

a { color: var(--accent); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
/* Real tap-target check (mobile, Round 4): Lighthouse's mobile-friendly
   standard is >=48x48px per target (docs/seo_content_pipeline_map.md
   Part 5) -- measured via getBoundingClientRect() at 375px width, every
   interactive element on the site failed on height alone (21-27px).
   inline-flex + min-height gives each link a real 48px tap zone without
   changing how the visible text/underline looks. */
.brand-mark { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--text); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 48px; margin-left: 1.25rem; text-decoration: none; color: var(--text); }

main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.intro h1 { margin-bottom: 0.5rem; }
.intro p { color: var(--muted); max-width: 60ch; }

/* Card register (Round 3, tone corrected Round 5): generous whitespace
   and a single accent stayed -- but "restrained" had overcorrected into
   reading flat/monotone rather than professional. Round 5 restores real
   depth (card shadow, filled CTA -- see main's own panel rule and
   .btn-primary below) while still deliberately NOT the casino-affiliate
   references' own saturated/glowing look, since this site's identity is
   neutral third-party trust for YMYL-class content, not a promo page. */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.brand-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(20, 24, 31, 0.05);
  overflow: hidden;
}
.brand-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.2rem 0.7rem;
}
.brand-card-header h2 { margin: 0; font-size: inherit; font-weight: inherit; }
.brand-card-header .brand-name { font-weight: 700; font-size: 0.95rem; color: var(--text); text-decoration: none; }

/* Logo mark -- a real <img> once a brand has a public-URL logo asset;
   until then a thin-outlined initials tile so a missing image never
   renders broken or blank. Small and inline (not a big banner) --
   confirmed live against both real reference directories (my99.club,
   scrplay.online): neither actually uses a large per-brand banner
   image, both use a small wordmark/logo. */
.brand-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.brand-detail-header h1 { margin: 0; }
.brand-detail-header .brand-logo-mark { width: 3.4rem; height: 3.4rem; font-size: 1.3rem; border-radius: 8px; }
.brand-detail-header .brand-logo-missing { margin-left: 0; }
.brand-detail-tagline { padding: 0; margin: 0 0 0.75rem; }
.brand-detail-stat { border-bottom: none; padding: 0; margin: 0 0 0.75rem; }

/* Honest, real UI copy for a real current-data-gap -- not the mockup's
   "this is illustrative" convention (no ambiguity risk on the live
   site: every brand shown is real, so this never needs to look like a
   placeholder-graphic warning, just quiet secondary text). */
.brand-logo-missing {
  margin-left: auto;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

.brand-tagline { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.4rem; padding: 0 1.2rem; }

.brand-stats { padding: 0.2rem 1.2rem 0.3rem; flex: 1; }
/* Checkmark-list treatment, confirmed live against Capital One's own
   real feature list (small check icon + plain-weight text per fact) --
   the ::before glyph needs no template change since bold_stats already
   returns safe Markup for the row's own inner content. */
.brand-stat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}
.brand-stat-row::before {
  content: "\2713";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}
.brand-stat-row:last-child { border-bottom: none; }
.brand-stat-empty { padding: 0.6rem 0; font-size: 0.85rem; color: var(--faint); font-style: italic; }
/* The one bold exception to this register's overall restraint -- a
   real money amount or percentage inside a stat row (bold_stats Jinja
   filter, public_site/__init__.py). */
.stat-num { font-weight: 800; color: var(--accent); }

.brand-card-actions { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.2rem 1.2rem; }

.text-muted { color: var(--muted); }

.brand-promotions { margin-top: 2rem; }
.promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.promotion-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  background: var(--bg);
}
.promotion-card h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.promotion-card p { color: var(--muted); margin: 0; }

.brand-showcase { margin-top: 2rem; }
/* 160px minimum measured as collapsing to a single, viewport-wide
   column on real 375px phones (327px content width after page padding
   -- 5px short of fitting two 160px tracks + gap). 120px keeps two
   columns comfortably down to a 320px viewport too. */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.showcase-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
}
.showcase-item img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 1 / 1; }

/* Real feedback (Round 5): the outlined-only CTA read as flat, not
   professional -- restored a solid filled primary button, matching
   every real credit-card comparison site checked live (Capital One,
   creditcards.com, Bankrate all use a solid filled CTA). Secondary
   stays a plain underlined text link -- two competing filled buttons
   would still undercut the "no featured/promoted listing" neutrality.
   min-height:48px on both -- real tap-target minimum (see .brand-mark's
   own comment above); .btn-secondary keeps its small visible underline
   but gets real invisible padding so the actual hit area still qualifies. */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}
.btn-primary { flex: 1; padding: 0.55rem 0.9rem; border-radius: 8px; background: var(--accent); color: var(--accent-contrast); border: none; }
.btn-secondary { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; padding: 0 0.3rem; }
.brand-detail-cta { padding: 0.6rem 1.3rem; }

.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.2rem; margin: 0 -0.2rem; color: var(--muted); vertical-align: middle; }

.guide-list { list-style: none; padding: 0; }
.guide-list li { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.guide-list p { color: var(--muted); margin: 0.3rem 0 0; }

.guide-body { white-space: pre-wrap; }

.empty-state { color: var(--muted); }

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.error-page {
  max-width: 640px;
  margin: 4rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
