/* affiliatejob.org
   one stylesheet, no framework, no build step
   editorial document aesthetic with a signature color
*/

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface2: #f4f4f0;
  --text: #0a0a0b;
  --text2: #4b4b50;
  --text3: #8a8a90;
  --border: #e5e5e0;
  --border2: #d0d0c8;
  --accent: #65a30d;
  --accent-soft: #ecfccb;
  --accent-text: #365314;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --good: #15803d;
  --good-soft: #dcfce7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Consolas, monospace;
  --sans: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif Pro", "Lora", Georgia, serif;
  --maxwide: 1100px;
  --maxread: 760px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(10,10,11,0.04), 0 8px 24px rgba(10,10,11,0.04);
}

[data-theme="dark"] {
  --bg: #0a0a0b;
  --surface: #131316;
  --surface2: #1a1a1f;
  --text: #ededed;
  --text2: #a8a8ae;
  --text3: #6e6e76;
  --border: #26262c;
  --border2: #34343c;
  --accent: #a3e635;
  --accent-soft: #1f2a0c;
  --accent-text: #d9f99d;
  --warn: #fbbf24;
  --warn-soft: #2a1f08;
  --good: #4ade80;
  --good-soft: #0f2a1a;
  --bad: #f87171;
  --bad-soft: #2a0e0e;
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #0a0a0b; }

/* background flair, like freetts */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -24px -24px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  pointer-events: none;
}
.bg-glow-1 { top: -200px; left: -200px; background: var(--accent); }
.bg-glow-2 { bottom: -300px; right: -200px; background: #c084fc; opacity: 0.15; }
[data-theme="dark"] .bg-glow-1 { opacity: 0.18; }
[data-theme="dark"] .bg-glow-2 { opacity: 0.12; }

/* nav */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,249,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] nav { background: rgba(10,10,11,0.7); }

.nav-inner {
  max-width: var(--maxwide);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: #0a0a0b;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 14px;
}
.logo-tld { color: var(--accent); font-family: var(--mono); font-weight: 700; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
}
.nav-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.theme-toggle, .hamburger {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border2); }
.hamburger { display: none; }

/* hero */
.hero {
  max-width: var(--maxwide);
  margin: 0 auto;
  padding: 64px 24px 32px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent) 40%, #84cc16);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--text2);
  max-width: 660px;
  margin: 0 auto 28px;
}
.hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text2);
  padding: 12px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.hero-meta strong { color: var(--text); font-weight: 700; }
.hero-meta .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  animation: pulse 2s infinite;
}

/* finder tool */
.finder {
  max-width: 780px;
  margin: 36px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: left;
}
.finder-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.finder-head h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--text);
}
.finder-head .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
}
.finder-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.finder-controls select, .finder-controls input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.finder-controls select:focus, .finder-controls input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.finder-results {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  max-height: 320px;
  overflow-y: auto;
}
.finder-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  padding: 10px 4px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.finder-row:last-child { border-bottom: none; }
.finder-row a { color: var(--text); text-decoration: none; font-weight: 600; }
.finder-row a:hover { color: var(--accent); }
.finder-row .meta { font-family: var(--mono); font-size: 12px; color: var(--text2); }
.finder-row .pill {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface2);
  color: var(--text2);
  border: 1px solid var(--border);
}
.finder-row .pill.tier2 { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); }

/* main content layout */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--maxwide);
  margin: 0 auto;
  padding: 0 24px;
}
.read {
  max-width: var(--maxread);
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.read p { margin: 0 0 18px; }
.read h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 56px 0 18px;
  color: var(--text);
}
.read h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 10px;
  color: var(--text);
}
.read h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.read a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 30%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.read a:hover { text-decoration-color: var(--accent); }
.read strong { color: var(--text); font-weight: 700; }
.read em { color: var(--text2); font-style: italic; }
.read ul, .read ol { margin: 0 0 18px 22px; padding: 0; }
.read li { margin-bottom: 8px; }
.read code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

/* the famous TL;DR box */
.tldr {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  margin: 28px 0 36px;
  box-shadow: var(--shadow);
  position: relative;
}
.tldr::before {
  content: 'TL;DR';
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tldr p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); }
.tldr p + p { margin-top: 12px; }

/* highlight callout box */
.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
  color: var(--accent-text);
}
.callout strong { color: var(--accent-text); }
[data-theme="dark"] .callout { background: var(--accent-soft); color: var(--accent-text); }

/* tables */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--surface2);
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  letter-spacing: 0.01em;
}
table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  vertical-align: top;
}
table tr:last-child td { border-bottom: none; }
table .num { font-family: var(--mono); text-align: right; color: var(--text); }
table .yes { color: var(--good); font-weight: 600; }
table .no { color: var(--text3); }
table .program-name { color: var(--text); font-weight: 600; }
table a { color: var(--text); text-decoration: none; }
table a:hover { color: var(--accent); }

/* program page header card */
.program-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin: 24px 0 32px;
  box-shadow: var(--shadow);
}
.program-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.program-header .sub {
  color: var(--text2);
  font-size: 16px;
  margin: 0 0 20px;
}
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.spec {
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.spec .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.spec .value {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.spec .value.accent { color: var(--accent); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.1s, background 0.15s;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
  border-color: var(--accent);
}
.btn-primary:hover { background: #84cc16; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text2); }

/* pros / cons grid */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}
.pros, .cons {
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.pros { background: var(--good-soft); border-color: var(--good); }
.cons { background: var(--bad-soft); border-color: var(--bad); }
.pros h4, .cons h4 { margin: 0 0 10px; font-size: 14px; font-weight: 800; letter-spacing: 0.01em; }
.pros h4 { color: var(--good); }
.cons h4 { color: var(--bad); }
.pros ul, .cons ul { margin: 0 0 0 18px; padding: 0; }
.pros li, .cons li { color: var(--text); margin-bottom: 6px; font-size: 14px; }

/* FAQ */
.faq { margin: 40px 0; }
.faq h2 { margin-bottom: 20px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s;
  font-weight: 400;
}
details[open] .faq-q::after { content: '−'; }
.faq-a {
  margin-top: 12px;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.7;
}

/* category cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.card {
  display: block;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.1s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card .icon {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
}

/* breadcrumb */
.crumbs {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  margin: 24px auto 8px;
  max-width: var(--maxread);
  padding: 0;
}
.crumbs a {
  color: var(--text2);
  text-decoration: none;
}
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text3); margin: 0 6px; }

/* methodology footer */
.methodology-footer {
  margin: 48px 0 24px;
  padding: 20px;
  background: var(--surface2);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}
.methodology-footer strong { color: var(--text); }

/* disclosure inline */
.disclose-inline {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--warn-soft);
  color: var(--warn);
  padding: 3px 8px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: middle;
}

/* footer */
footer {
  margin-top: 80px;
  padding: 48px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: var(--maxwide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}
.footer-brand p {
  font-size: 14px;
  color: var(--text2);
  margin: 0 0 14px;
  line-height: 1.6;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0 0 14px;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--maxwide);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
}

/* mobile */
@media (max-width: 720px) {
  .hamburger { display: block; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 16px 24px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 40px 24px 24px; }
  .finder-controls { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .read h2 { font-size: 24px; margin-top: 40px; }
}

/* timeline component for blog/methodology */
.timeline { position: relative; padding-left: 28px; margin: 28px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border), var(--accent));
}
.t-item { position: relative; margin-bottom: 22px; padding-left: 22px; }
.t-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.t-item h4 { margin: 0 0 4px; font-size: 16px; }
.t-item p { margin: 0; font-size: 14px; color: var(--text2); }

/* tag chips */
.chip {
  display: inline-block;
  font-size: 12px;
  font-family: var(--mono);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface2);
  color: var(--text2);
  border: 1px solid var(--border);
  margin-right: 4px;
  margin-bottom: 4px;
}
.chip.accent { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); }

/* form */
form.submit-form {
  max-width: 640px;
  margin: 32px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
form.submit-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
form.submit-form input,
form.submit-form select,
form.submit-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 16px;
}
form.submit-form textarea { min-height: 100px; resize: vertical; }
form.submit-form input:focus,
form.submit-form select:focus,
form.submit-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============================================
   DIRECTORY HOMEPAGE LAYOUT
   stats row + 5-column discovery + sortable table
============================================ */

:root { --maxhome: 1280px; }

.home-hero {
  max-width: var(--maxhome);
  margin: 0 auto;
  padding: 56px 24px 32px;
  text-align: center;
}
.home-hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--text);
}
.home-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #84cc16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-hero .lede {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text2);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
}

.home-page {
  max-width: var(--maxhome);
  margin: 0 auto;
  padding: 0 24px 32px;
}

/* stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.1s;
}
.stat:hover { border-color: var(--accent); transform: translateY(-2px); }
.stat .label {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.stat .num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
}
.stat .desc {
  font-size: 12px;
  color: var(--text3);
  margin: 0;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }

/* 5-column discovery row */
.discovery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.disc-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.disc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.disc-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.disc-head h3 svg { width: 16px; height: 16px; color: var(--accent); }
.disc-head .more {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--mono);
}
.disc-head .more:hover { text-decoration: underline; }
.disc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.disc-item { display: flex; align-items: center; gap: 10px; }
.disc-item .ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
}
.disc-item .body { flex: 1; min-width: 0; }
.disc-item .name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.disc-item .name:hover { color: var(--accent); }
.disc-item .meta {
  display: block;
  font-size: 11px;
  color: var(--text2);
  font-family: var(--mono);
  margin-top: 2px;
}
.disc-item .pill-mini {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent);
  flex-shrink: 0;
}

/* search and filter bar */
.search-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 18px;
  flex-wrap: wrap;
}
.btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.btn-filter:hover { background: var(--accent-soft); }
.search-input {
  flex: 1;
  max-width: 380px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.filters-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.filters-panel.open { display: grid; }
.filters-panel select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* big directory table */
.dir-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: var(--shadow);
}
table.dir {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 920px;
}
table.dir thead th {
  text-align: left;
  padding: 16px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text2);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
table.dir thead th:hover { color: var(--text); }
table.dir thead th.sort::after { content: ' ⇅'; color: var(--text3); font-size: 11px; }
table.dir thead th.sort.asc::after { content: ' ↑'; color: var(--accent); }
table.dir thead th.sort.desc::after { content: ' ↓'; color: var(--accent); }
table.dir tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
table.dir tbody tr:hover { background: var(--surface2); }
table.dir tbody tr:last-child { border-bottom: none; }
table.dir td {
  padding: 14px 18px;
  vertical-align: middle;
  color: var(--text);
}
.dir .prog { display: flex; align-items: center; gap: 12px; }
.dir .prog .logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  border: 1px solid var(--border);
  flex-shrink: 0;
  text-transform: uppercase;
}
.dir .prog a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.dir .prog a:hover { color: var(--accent); }
.dir .commission {
  color: var(--text2);
  font-family: var(--mono);
  font-size: 13px;
}
.dir .cat-chip {
  display: inline-block;
  font-size: 11px;
  font-family: var(--mono);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent-text);
  background: var(--accent-soft);
  margin-right: 4px;
  margin-bottom: 2px;
}
.dir .pay-chip {
  display: inline-block;
  font-size: 11px;
  font-family: var(--mono);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface2);
  color: var(--text2);
  border: 1px solid var(--border);
  margin-right: 4px;
  margin-bottom: 2px;
}
.dir .grade { display: inline-flex; align-items: center; gap: 8px; }
.dir .grade-bar {
  width: 60px;
  height: 6px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.dir .grade-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #84cc16);
  border-radius: 999px;
}
.dir .grade-letter {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  width: 24px;
}
.dir .tier-yes {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 700;
}
.dir .tier-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
}
.dir .verified-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
}
.table-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text2);
  font-family: var(--mono);
}

/* bottom CTA band */
.bottom-band {
  margin: 56px 0 0;
  padding: 56px 32px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
}
.bottom-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--text);
}
.bottom-band p {
  font-size: 16px;
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 26px;
  line-height: 1.6;
}
.steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin: 24px auto 28px;
  flex-wrap: wrap;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 8px; }
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 14px;
}
.step-label { font-size: 12px; color: var(--text2); font-weight: 600; }
.step-line {
  flex: 0 0 40px;
  height: 2px;
  background: var(--accent);
  opacity: 0.3;
  margin: 17px 4px 0;
}

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .discovery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .discovery { grid-template-columns: 1fr; }
  .home-hero { padding: 32px 24px 16px; }
  table.dir { font-size: 13px; }
  table.dir td { padding: 12px 14px; }
}


/* premium footer 2026 */
footer { margin-top: 80px; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); position: relative; overflow: hidden; }
.footer-top { padding: 64px 24px 40px; }
.footer-top .footer-inner { max-width: var(--maxwide); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { font-size: 14px; line-height: 1.65; color: var(--text2); margin: 0 0 16px; max-width: 360px; }
.footer-brand h4 { font-size: 18px; font-weight: 800; margin: 0 0 12px; color: var(--text); }
.footer-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--text2); padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); margin-bottom: 18px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); animation: pulse 2s infinite; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); color: var(--text2); transition: all 0.15s; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text3); margin: 0 0 16px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text2); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-mark { display: none; }
.footer-bottom { padding: 24px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--text3); }
@media (max-width: 1100px) {
  .footer-top .footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .footer-top .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom .footer-inner { flex-direction: column; align-items: flex-start; }
}
