/* ==========================================================================
   SorceryNet — Global Styles (Dark-first)
   Palette tuned to: page #020b17, header #030d19
   Last updated: 2025-08-09
   ========================================================================== */

/* --- Design Tokens ------------------------------------------------------- */
:root {
  /* Core surfaces */
  --bg-page:   #020b17;  /* overall page background */
  --bg-header: #030d19;  /* header bar background */
  --bg-surface:#0b1b2e;  /* dropdown/cards surface */

  /* Text */
  --text:        #f3f4f6;
  --text-muted:  #a7b3cc;

  /* NEW: Dark-gold accent system */
  --accent:        #CAA44A;          /* primary accent (dark gold) */
  --accent-weak:   rgba(202,164,74,.12);
  --accent-mid:    rgba(202,164,74,.18);
  --accent-strong: rgba(202,164,74,.22);

  /* Links now gold-toned for visibility on dark */
  --link:        #E4C66C;
  --link-hover:  #FFD778;

  /* Brand highlight (keep brighter for emphasis if needed) */
  --brand-gold:  #FBBF24;

  /* Borders / effects */
  --border:        rgba(255,255,255,.08);
  --border-subtle: rgba(255,255,255,.07);
  --shadow:        0 10px 28px rgba(0,0,0,.45);

  /* Tables */
  --table-row:       rgba(255,255,255,.03);
  --table-row-hover: rgba(255,255,255,.05);

  /* Hero gradient */
  --hero-start: var(--bg-header);
  --hero-stop:  #0a1a30;

    /* zebra rows */
  --row-odd-dark:   rgba(255,255,255,.03);
  --row-even-dark:  rgba(255,255,255,.07);
  --row-odd-light:  rgba(0,0,0,.02);
  --row-even-light: rgba(0,0,0,.06);
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
  background-color: var(--bg-page);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
               Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.55;
}

/* Global links */
a {
  color: var(--link);
  text-decoration: underline;
}
a:hover {
  color: var(--link-hover);
}

/* Headings */
h1 { font-size: 2rem;   margin: 0 0 .75rem; }
h2 { font-size: 1.5rem; margin: 1.5rem 0 .5rem; }
h3 { font-size: 1.25rem; margin: 1rem 0 .4rem; }

main { padding: 1rem; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background-color: var(--bg-header);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.logo-banner {
  max-height: 60px; /* adjust if your BannerLogo.png needs more/less */
  width: auto;
}

/* --- Primary nav --------------------------------------------------------- */
.primary-nav .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.primary-nav .nav-menu > li {
  position: relative;
}

.primary-nav .nav-menu > li > a,
.primary-nav .nav-menu > li > .dropdown-toggle {
  color: var(--link);
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  padding: .55rem .75rem;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}

.primary-nav .nav-menu > li > a:hover,
.primary-nav .nav-menu > li > .dropdown-toggle:hover {
  background: var(--accent-weak);
}

.primary-nav .nav-menu > li.active > a,
.primary-nav .nav-menu > li.active > .dropdown-toggle {
  background: var(--accent-mid);
}

/* Live user count */
.header-usercount {
  margin-left: 1rem;
  color: var(--accent);     /* dark gold */
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;         /* optional: a touch bolder */
}

.header-usercount::before {
  content: "•";
  margin-right: .4rem;
  color: var(--accent);
  opacity: .9;
}


/* --- Dropdown ------------------------------------------------------------ */
.primary-nav .dropdown .dropdown-toggle { display: inline-flex; align-items: center; }
.primary-nav .dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  margin: 0;
  list-style: none;

  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: var(--shadow);

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 1001;
}

/* Keep hover while moving to the menu (hover bridge) */
.primary-nav .dropdown { position: relative; }
.primary-nav .dropdown .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 10px;
}

/* Dropdown items */
.primary-nav .dropdown .dropdown-menu li a {
  display: block;
  padding: .55rem .7rem;
  color: #d8e6ff;
  border-radius: 8px;
  text-decoration: none;
}
.primary-nav .dropdown .dropdown-menu li a:hover {
  background: var(--accent-weak);
  color: #fff;
}
.primary-nav .dropdown .dropdown-menu li.active > a {
  background: var(--accent-mid);
}

/* Show dropdown on hover (desktop) */
@media (min-width: 769px) {
  .primary-nav .dropdown:hover   > .dropdown-menu,
  .primary-nav .dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* --- Mobile nav ---------------------------------------------------------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }

  .primary-nav .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    flex-direction: column;
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    width: 260px;
    box-shadow: var(--shadow);
  }
  .primary-nav .nav-menu.open { display: flex; }

  .primary-nav .nav-menu > li > a,
  .primary-nav .nav-menu > li > .dropdown-toggle {
    width: 100%;
    text-align: left;
  }

  /* On mobile, dropdown becomes inline below the trigger */
  .primary-nav .dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding-left: .25rem;
  }
  .primary-nav .dropdown:not(.open) .dropdown-menu {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-stop));
  color: #fff;
  border-bottom: 1px solid var(--border);
}
.hero-title   { font-size: 2.5rem; margin: 0 0 1rem; }
.hero-subtitle{ font-size: 1.125rem; color: var(--text-muted); margin: 0 0 2rem; }

.btn-cta {
  background: #fff;
  color: #0b1220;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .1s ease, box-shadow .2s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.btn-cta:hover  { transform: translateY(-1px); }
.btn-cta:active { transform: translateY( 0 ); }

/* ==========================================================================
   Home page sections
   ========================================================================== */

.stats-teaser { text-align: center; margin: 3rem 1rem; }
.stats-teaser strong { font-size: 2rem; }

.irc-explainer { margin: 3rem 1rem; }
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.explainer-item { text-align: center; color: var(--text-muted); }

/* ==========================================================================
   Tables (Channels, Commands, etc.)
   ========================================================================== */

/* Zebra tone variables (safe to repeat; override or fall back if already set) */
:root {
  --row-odd-dark:   rgba(255,255,255,.03);
  --row-even-dark:  rgba(255, 255, 255, 0.158);
  --row-odd-light:  rgba(0,0,0,.02);
  --row-even-light: rgba(0,0,0,.06);
}

.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;              /* keep rounded corners */
  box-shadow: var(--shadow);
  background: transparent;
}

.table th,
.table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.35;
}

/* Sticky header with surface contrast */
.table thead th {
  background: var(--bg-surface);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--border);
}

/* Zebra striping (dark & light aware) */
html.dark  .table tbody tr:nth-child(odd)  { background: var(--row-odd-dark); }
html.dark  .table tbody tr:nth-child(even) { background: var(--row-even-dark); }
html.light .table tbody tr:nth-child(odd)  { background: var(--row-odd-light); }
html.light .table tbody tr:nth-child(even) { background: var(--row-even-light); }

/* Hover emphasis + subtle left accent on hover/focus */
.table tbody tr:hover {
  background: var(--accent-weak);
}
.table tbody tr:hover td:first-child,
.table tbody tr:focus-within td:first-child {
  box-shadow: inset 2px 0 0 0 var(--accent);
}

/* Channels table */
.channel-table a {
  color: var(--accent);
  text-decoration: none;
}
.channel-table a:hover { text-decoration: underline; }

.channel-table th, .channel-table td {
  padding: .75rem 1rem;
  line-height: 1.35;
}


/* Sortable header caret */
.sort-indicator {
  opacity: .7;
  margin-left: .25rem;
}

/* Commands table (Getting Started) */
.cmd-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.cmd-table th,
.cmd-table td {
  border-bottom: 1px solid var(--border-subtle);
  padding: .5rem .75rem;
}
.cmd-table thead th {
  background: var(--bg-surface);
  color: #fff;
}

/* ==========================================================================
   Charter Page
   ========================================================================== */

.charter { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; line-height: 1.6; }
.charter-header { text-align: center; margin-bottom: 1.5rem; }
.charter-header h1 { font-size: 2.25rem; margin-bottom: .25rem; }
.charter .last-revised { color: var(--brand-gold); font-style: italic; }

.charter section {
  background: rgba(11, 27, 46, .55); /* subtle pane */
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

.charter .promise-list li {
  position: relative;
  padding-left: 1.25rem;
  margin: .6rem 0;
}
.charter .promise-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .35rem;
  width: 4px; height: calc(100% - .7rem);
  background: var(--brand-gold);
  border-radius: 2px;
}

.charter h3 + ul { margin-left: 1.25rem; margin-bottom: 1rem; }
.charter ul ul { margin-left: 1.5rem; }
.charter a { color: var(--accent); }

/* ==========================================================================
   Getting Started Page
   ========================================================================== */

.get-started { max-width: 760px; margin: 2rem auto; padding: 0 1rem; }
.get-started header h1 { font-size: 2.25rem; margin-bottom: .4rem; }
.get-started .lead { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.get-started section { margin-bottom: 1.75rem; }
.get-started h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.get-started ul, .get-started ol { margin-left: 1.25rem; }
.get-started pre {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}
.get-started a { color: var(--accent); text-decoration: underline; }
.get-started a:hover { color: var(--link-hover); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-page);
  color: var(--text-muted);
  padding: 1.25rem;
  text-align: center;
  font-size: .9rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.hide { display: none !important; }
.text-muted { color: var(--text-muted); }

/* ==========================================================================
   Legacy helpers (if any markup still relies on them)
   ========================================================================== */

/* Keep .table-wrapper + .channel-table class names for existing templates */
.table-wrapper .channel-table { border-collapse: collapse; }

/* Integrated panel wrapper */
.panel-wrapper { padding: 0 0 1rem; }

.panel-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 80px); /* adjust to your header height if needed */
  border: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow) inset;
}

/* Visually hidden heading for accessibility */
.sr-only {
  position: absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip: rect(0,0,0,0); white-space:nowrap; border:0;
}

.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { gap: .75rem; }

/* ========================================================================
   Why SorceryNet page (scoped)
   This only affects markup inside .why-page
   ======================================================================== */

.why-page { max-width: 1100px; margin: 0 auto; padding: 1rem; }

/* Hero */
.why-page .hero {
  background: linear-gradient(135deg, var(--hero-start), var(--hero-stop));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.why-page .lead { color: var(--text-muted); margin: .4rem 0 0; }

/* Cards & layout */
.why-page .grid { display: grid; gap: 1rem; }
.why-page .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.why-page .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.why-page .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 900px) {
  .why-page .grid-3, .why-page .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .why-page .grid-2, .why-page .grid-3, .why-page .grid-4 { grid-template-columns: 1fr; }
}

.why-page .card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

/* Clean <ul><li> lists */
.why-page ul { margin: .5rem 0 .25rem 1.25rem; }
.why-page li { margin: .35rem 0; }

/* Bridge list with accent markers (optional, still <li>) */
.why-page .bridge-list { list-style: disc outside; }
.why-page .bridge-list li::marker { color: var(--accent); }

/* “Checklist” style (for AMA section bullets) */
.why-page .checklist { list-style: none; margin: .25rem 0 0 0; padding: 0; }
.why-page .checklist li {
  position: relative; padding-left: 1.4rem; margin: .35rem 0;
}
.why-page .checklist li::before {
  content: "✓";
  position: absolute; left: .15rem; top: 0; line-height: 1;
  color: var(--accent);
  font-weight: 700;
}

/* Alerts */
.why-page .alert {
  padding: .75rem 1rem;
  border-radius: 10px;
  margin-bottom: .85rem;
  border: 1px solid var(--border);
}
.why-page .alert.success { border-color: #2e7d32; background: rgba(46,125,50,.12); }
.why-page .alert.error   { border-color: #b00020; background: rgba(176,0,32,.12); }

/* Form */
.why-page .form {
  display: grid; gap: .9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.why-page .field { display: flex; flex-direction: column; gap: .35rem; }
.why-page .field > span { color: var(--text-muted); font-size: .95rem; }

.why-page input[type="text"],
.why-page input[type="email"],
.why-page textarea {
  background: #0c1a2c; /* slightly darker than var(--bg-surface) for contrast */
  border: 1px solid var(--border);
  color: var(--text);
  padding: .7rem .8rem;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.why-page textarea { min-height: 140px; resize: vertical; }
.why-page input:focus,
.why-page textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}

.why-page .checkbox { display: flex; align-items: center; gap: .5rem; }
.why-page .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.why-page .btn {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--accent-weak);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .08s;
}
.why-page .btn:hover { background: var(--accent-mid); }
.why-page .btn.primary {
  background: var(--accent-strong);
  border-color: var(--accent);
}
.why-page .btn.primary:hover { background: var(--accent-mid); }

/* Honeypot (keep off-screen) */
.why-page .hp { position: absolute; left: -5000px; }

/* Small muted copy */
.why-page .muted { color: var(--text-muted); }

/* Why SorceryNet page — extra spacing before the form */
.why-page .section-gap { margin-bottom: 1rem; }

/* ==========================================================================
   Home page layout
   ========================================================================== */

.home .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.home .section { margin: 2rem 0; }

.home .grid { display: grid; gap: 1rem; }
.home .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .home .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home .grid-3 { grid-template-columns: 1fr; }
}

.home .card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.home .lead { color: var(--text-muted); }

.home .news-list article {
  border-bottom: 1px solid var(--border);
}
.home .news-list article:last-child {
  border-bottom: 0;
}

.stat-chip {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .65rem;
  background: rgba(255,255,255,.05);
  font-size: .95rem;
}

/* Use the same width/alignment as the hero for all lower sections */
:root { --home-width: 1100px; } /* tweak if your hero uses a different content width */

.home .section > .inner {
  max-width: var(--home-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Keep grids and lists visually centered inside .inner */
.home .grid { display: grid; gap: 1rem; }
.home .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .home .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .home .grid-3 { grid-template-columns: 1fr; } }

/* FAQ collapsibles */
.faq details {
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow);
  margin-bottom: .75rem;
}
.faq details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
}
.faq details > summary::-webkit-details-marker { display: none; }
.faq details > summary h2 {
  font-size: 1.15rem;
  margin: 0;
}
.faq details[open] .content { margin-top: .5rem; }

/* Unify form fields inside Why/Submit pages */
.why-page input,
.why-page select,
.why-page textarea {
  background: #0c1a2c; /* slightly darker than var(--bg-surface) for contrast */
  border: 1px solid var(--border);
  color: var(--text);
  padding: .7rem .8rem;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.why-page input:focus,
.why-page select:focus,
.why-page textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}


/* ==========================================================================
   Forms (Admin pages: supporters, news, etc.)
   ========================================================================== */
.form { margin: 1rem 0; }
.form-row { margin: .75rem 0; display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-weight: 600; color: #d8e6ff; }

.form-control,
.form-control[type="text"],
.form-control[type="email"],
.form-control[type="password"],
textarea.form-control,
select.form-control {
  background: #0f223b;            /* dark input bg */
  color: #f3f4f6;                  /* readable text */
  border: 1px solid rgba(197,161,99,.35); /* gold-ish border */
  border-radius: 8px;
  padding: .6rem .7rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}

.form-control::placeholder { color: #9bb1d6; opacity: .8; }

.form-control:focus {
  border-color: #C5A163;          /* gold */
  box-shadow: 0 0 0 3px rgba(197,161,99,.18);
}

.checkbox { color: #c7d6f7; }
.checkbox input { margin-right: .4rem; }

.btn-primary {
  background: rgba(197,161,99,.15);
  color: #f3f4f6;
  border: 1px solid rgba(197,161,99,.45);
  border-radius: 9999px;
  padding: .5rem .9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: rgba(197,161,99,.25); }

.btn-ghost {
  background: transparent;
  color: #9dc1ff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 9999px;
  padding: .5rem .9rem;
  text-decoration: none;
  display: inline-block;
  margin-left: .5rem;
}
.btn-ghost:hover { background: rgba(255,255,255,.06); }

/* Supporters chips (public page) */
.supporter-list {
  list-style: none;
  margin: 0;
  padding: .25rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .6rem;
}
.supporter-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .7rem;
  border-radius: 9999px;
  background: rgba(197,161,99,.12);           /* gold tint */
  border: 1px solid rgba(197,161,99,.35);
  color: #f3f4f6;
  font-weight: 600;
}
.pill-dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: #C5A163;                         /* gold */
  box-shadow: 0 0 0 2px rgba(197,161,99,.25);
}

/* Defensive: if any input appears inside supporters, make it dark */
.supporters input[type="text"],
.supporters input[type="search"],
.supporters .supporter-input {
  background: #0f223b;
  color: #f3f4f6;
  border: 1px solid rgba(197,161,99,.35);
  border-radius: 8px;
  padding: .4rem .6rem;
}
.supporters input::placeholder { color: #9bb1d6; }


/* --- Supporters pills (readable, gold on dark) --- */
:root { --gold: #CAA44A; } /* use your palette's gold */

.supporter-list{
  display:flex; flex-wrap:wrap; gap:.5rem .75rem;
  list-style:none; margin:0; padding:0;
}
.supporter-pill{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.4rem .7rem; border-radius:999px;
  background: rgba(202,164,74,.10);
  border:1px solid rgba(202,164,74,.45);
  color: var(--gold);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.supporter-pill .pill-dot{
  width:.5rem; height:.5rem; border-radius:50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(202,164,74,.2);
}
.supporter-pill .pill-name{ white-space:nowrap; }


/* --- Supporters: hard override to prevent white backgrounds --- */
.supporters .supporter-list { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem .75rem; }

.supporters .supporter-pill{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.4rem .7rem; border-radius:999px;
  background: rgba(202,164,74,.12) !important;   /* gold-tinted dark */
  border:1px solid rgba(202,164,74,.45) !important;
  color: #CAA44A !important;                     /* gold text */
  font-weight:600; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.supporters .supporter-pill .pill-dot{
  width:.5rem; height:.5rem; border-radius:50%;
  background:#CAA44A !important; box-shadow:0 0 0 2px rgba(202,164,74,.22);
}
.supporters .supporter-pill .pill-name{ white-space:nowrap; }

/* Round avatar + safe fallback for transparent images */
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #1b1e2b; /* subtle ring on transparent PNGs */
}

.avatar--sm { width: 32px; height: 32px; }
.avatar--md { width: 48px; height: 48px; }
.avatar--lg { width: 80px; height: 80px; }
