/* CertAscent — static catalog pages (pages/). Brand-consistent, dependency-free, no JS.
   Light by default; dark via prefers-color-scheme. Mobile-first. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #dfe3e8;
  --text: #1b2330;
  --muted: #5d6878;
  --accent: #2459d6;
  --accent-2: #6d3fc0;
  --accent-soft: #e5edff;
  --ok: #1f8a4c;
  --ok-soft: #e1f4e8;
  --warn: #b7791f;
  --warn-soft: #fcf1dc;
  --danger: #c43d3d;
  --danger-soft: #fbe5e5;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1319;
    --surface: #171c24;
    --surface-2: #1f2530;
    --border: #2c3441;
    --text: #e5e9ef;
    --muted: #97a2b3;
    --accent: #6d98ff;
    --accent-2: #b298ff;
    --accent-soft: #1d2a47;
    --ok: #4cc27f;
    --ok-soft: #173024;
    --warn: #e3a948;
    --warn-soft: #362a14;
    --danger: #ef6b6b;
    --danger-soft: #3a1c1c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
}
.wrap { max-width: 880px; margin: 0 auto; padding: 20px 16px 56px; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(24px, 5vw, 32px); margin: 14px 0 6px; }
h2 { font-size: 20px; margin: 28px 0 10px; }
h3 { font-size: 16px; margin: 16px 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* header / brand */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; }
.tagline { color: var(--muted); font-size: 13px; }

/* breadcrumbs */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--border); }
.crumbs a { color: var(--muted); }

/* badges / pills */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge.tier { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.active { background: var(--ok-soft); color: var(--ok); }
.badge.retired { background: var(--danger-soft); color: var(--danger); }
.badge.renamed { background: var(--warn-soft); color: var(--warn); }

/* cards / facts */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 0 0 2px; }
.facts dd { margin: 0; font-weight: 600; }
.callout { border-left: 3px solid var(--accent); padding: 10px 14px; background: var(--accent-soft); border-radius: 0 8px 8px 0; margin: 0 0 16px; }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }
.callout.danger { border-color: var(--danger); background: var(--danger-soft); }

/* lists */
ul.plain, ol.plain { margin: 0 0 12px; padding-left: 20px; }
ul.cards { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
ul.cards li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
ul.cards li a { display: block; font-weight: 700; color: var(--text); }
ul.cards li .small { display: block; margin-top: 2px; }

table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; }
.btn:hover, .btn:focus-visible { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none; }
.btn.primary:hover, .btn.primary:focus-visible { filter: brightness(1.06); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

/* footer */
.site-footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.disclaimer { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* industry / directory grid on the catalog index */
.industry { margin: 0 0 28px; }
.industry h2 { display: flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.domain-group { margin: 12px 0 18px; }
.domain-group h3 { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }

@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr 1fr; }
}
