/* Christ-Centered Commerce — shared chrome (v0.5, usmcmin.com aligned) */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f5f0; /* C5iSR paper (was cool gray #f6f7f9) */
  --bg-card: #ffffff;
  --bg-card-hover: #f1ede4;
  /* C5iSR brand (Principal 2026-10-31): forest + gold on paper, matching usmcmin.com/c5isr.
     Variable names kept as --navy* so the 20 rules that use them need no edit; values are forest. */
  --navy: #1f3d32;
  --navy-deep: #142a22;
  --gold: #8a6d2b;      /* borders / text on white only: 4.9:1 on #fff, 4.5:1 on paper */
  --gold-soft: #f0e6cc;
  --accent: #6b7280;
  --accent-light: #4b5563;
  --text: #1a1a1a;
  --gray: #5c6570;
  --gray-light: #374151;
  --border: #ddd8cc;
  --green: #2d7a46;
  --yellow: #7a5e00; /* was #9a7b0a: 3.4:1 on its own tint (MBP-1004-CONTRAST) */
  --red: #b42318;
  --black-band: #4b5563;
  --green-bg: rgba(45, 122, 70, 0.1);
  --yellow-bg: rgba(154, 123, 10, 0.1);
  --red-bg: rgba(180, 35, 24, 0.08);
  --gray-bg: rgba(75, 85, 99, 0.08);
  --radius: 8px;
  --shadow: 0 1px 2px rgba(31, 61, 50, 0.06), 0 4px 16px rgba(31, 61, 50, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

h1, h2, h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; color: var(--navy-deep); }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-deep); text-decoration: underline; }

.soft-banner {
  font-size: 0.75rem;
  background: var(--navy);
  color: var(--gold-soft);
  border-bottom: 2px solid var(--gold);
  padding: 8px 16px;
  text-align: center;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-nav a {
  color: var(--gray);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  text-decoration: none;
}

.site-nav a:hover { color: var(--navy); background: var(--bg); text-decoration: none; }
.site-nav a.active { color: var(--navy); background: rgba(31, 61, 50, 0.08); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); }

.hero {
  text-align: left;
  padding: 40px 24px 32px;
  max-width: 920px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.module-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero h1 span { color: var(--navy); font-weight: 700; }

.hero .subtitle {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.hero blockquote {
  max-width: 640px;
  margin: 0;
  font-style: normal;
  color: var(--gray-light);
  font-size: 1rem;
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 16px;
  background: transparent;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 28px 18px 72px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 24px 18px 64px; }

.back { display: inline-block; font-size: 0.85rem; color: var(--gray); margin-bottom: 12px; }

.bands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  margin: 20px 0 8px;
}

.band-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--bg-card);
  color: var(--gray-light);
  font-weight: 500;
}

.band-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.band-dot.green { background: var(--green); }
.band-dot.yellow { background: #c9a227; }
.band-dot.red { background: var(--red); }
.band-dot.black { background: var(--black-band); }
.band-dot.gray { background: #9ca3af; }

.color-lock-note {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 8px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.panel h2 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.panel p, .panel li { color: var(--gray-light); font-size: 0.95rem; }
.panel ul, .panel ol { padding-left: 1.2rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  color: var(--navy);
  background: #fff;
  text-decoration: none;
}

.btn.solid {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn:hover { filter: brightness(1.05); text-decoration: none; color: inherit; }
.btn.solid:hover { color: #fff; }

.biz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.biz-card .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray);
}

.biz-card h3 { font-size: 1.15rem; margin-bottom: 6px; color: var(--navy-deep); }

.meta { font-size: 0.82rem; color: var(--gray); margin-bottom: 10px; }

.featured-grid { display: grid; gap: 16px; }

@media (min-width: 720px) {
  .featured-grid { grid-template-columns: 1.2fr 1fr; }
}

#map {
  min-height: 240px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.sister-grid { display: grid; gap: 12px; }

@media (min-width: 640px) {
  .sister-grid { grid-template-columns: 1fr 1fr; }
}

.sister-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.sister-card:hover { border-color: var(--navy); text-decoration: none; }

.sister-card .kicker {
  font-size: 0.72rem;
  color: var(--navy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.submit-cta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  margin-top: 8px;
  background: #fff;
}

.submit-cta h3 { color: var(--navy); margin-bottom: 8px; }
.submit-cta p { color: var(--gray); margin-bottom: 14px; font-size: 0.9rem; }

.profile-header { margin: 16px 0 20px; }
/* Logo or lead image hot-linked from the business's own site (hidden by onerror if it fails). */
.profile-header .biz-logo {
  display: block;
  width: auto; height: auto;
  max-width: min(220px, 70%); max-height: 96px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.overall-band {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  border: 1px solid;
}

.overall-band.green { color: var(--green); border-color: var(--green); background: var(--green-bg); }
.overall-band.yellow { color: var(--yellow); border-color: #c9a227; background: var(--yellow-bg); }
.overall-band.red { color: var(--red); border-color: var(--red); background: var(--red-bg); }
.overall-band.black { color: var(--black-band); border-color: var(--black-band); background: var(--gray-bg); }
.overall-band.gray { color: var(--gray); border-color: #9ca3af; background: var(--gray-bg); }

.color-profile-chip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 8px;
}

.color-profile-chip span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.profile-title { font-size: 1.85rem; margin-bottom: 8px; }

.factor-list { list-style: none; }

.factor-row { border-bottom: 1px solid var(--border); }

.factor-row summary {
  cursor: pointer;
  padding: 12px 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.factor-row summary::-webkit-details-marker { display: none; }

.factor-label { flex: 1 1 200px; color: var(--gray-light); font-size: 0.92rem; }

.factor-band { font-weight: 700; font-size: 0.82rem; }
.factor-band.green { color: var(--green); }
.factor-band.yellow { color: var(--yellow); }
.factor-band.red { color: var(--red); }
.factor-band.black { color: var(--black-band); }
.factor-band.gray { color: var(--gray); }

.evidence-chip {
  font-size: 0.75rem;
  color: var(--gray);
  background: var(--bg);
  border-radius: 999px;
  padding: 3px 10px;
}

.factor-detail {
  padding: 0 4px 12px 12px;
  font-size: 0.88rem;
  color: var(--gray-light);
}

.factor-detail ul { padding-left: 1rem; margin-top: 6px; }
.factor-detail .insufficient { font-style: italic; color: var(--gray); }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
td, th { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--navy); font-weight: 600; }
td:first-child { color: var(--gray); }

label { display: block; font-size: 0.82rem; color: var(--gray); margin: 12px 0 4px; }
input, select, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
}
textarea { min-height: 120px; resize: vertical; }

footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--gray);
  text-align: center;
}

/* READABILITY PASS (MBP-1004-CONTRAST): the band word on each card is written
   by the page builder as an inline colour chosen for a dark page. These pages
   are light, so YELLOW was 1.6:1 and GREEN 2.8:1 on the white card. */
.biz-card .eyebrow[style*="#FFC107" i] { color: var(--yellow) !important; }
.biz-card .eyebrow[style*="#4CAF50" i] { color: var(--green) !important; }
.biz-card .eyebrow[style*="#f44336" i] { color: var(--red) !important; }
.biz-card .eyebrow[style*="#888" i] { color: var(--gray) !important; }

/* 2026-10-31 outbound review links: links only, never stars (Principal). */
.panel.other-reviews{padding:.6rem 1rem}
.panel.other-reviews .meta{font-size:.9rem;color:#666}
.panel.other-reviews a{color:#555;text-decoration:underline}

/* 2026-10-31 progress bars: area total from Census CBP 2023 (Principal). */
.progress-block{margin:0 0 12px}
.progress-label{display:flex;justify-content:space-between;font-size:.9rem;margin:6px 0 3px}
.progress-track{height:12px;border-radius:6px;background:rgba(127,127,127,.18);overflow:hidden}
.progress-fill{height:100%;min-width:2px;border-radius:6px}
.progress-fill.rev{background:var(--gold)}
.progress-fill.list{background:var(--navy)}
.progress-note{font-size:.78rem;color:var(--gray);margin:6px 0 0}
