/*
 * Evidex Verifier-Site — Professional Sovereign Theme v5.1 (Complete Gold Edition)
 * 
 * A premium dark-themed interface designed for trust, authority, and clarity.
 * Features: Deep navy foundation, GOLD accents throughout, glass-morphism cards.
 * ALL headings and links now use GOLD instead of blue.
 * 
 * NO external dependencies. System fonts only. CSP-safe.
 */

/* ============ DESIGN TOKENS ============ */
:root {
  /* Deep Navy Foundation */
  --bg-primary: #0a0f1a;
  --bg-secondary: #0d1321;
  --bg-tertiary: #111827;
  --bg-elevated: #162033;
  
  /* GOLD Accent System (Primary) */
  --gold-primary: #d4af37;
  --gold-light: #f4d03f;
  --gold-dark: #b8860b;
  --gold-muted: rgba(212, 175, 55, 0.15);
  --gold-glow: rgba(212, 175, 55, 0.4);
  
  /* Legacy Blue (kept for compatibility but overridden) */
  --blue-primary: #1e3a5f;
  --blue-accent: #2c5282;
  --blue-glow: rgba(44, 82, 130, 0.5);
  
  /* Text Hierarchy */
  --text-primary: #f0f4f8;
  --text-secondary: #cbd5e0;
  --text-muted: #a0aec0;
  --text-gold: #f4d03f;
  
  /* Borders & Surfaces */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-blue: rgba(44, 82, 130, 0.4);
  
  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.15);
  --shadow-blue: 0 0 30px rgba(44, 82, 130, 0.2);
}

/* ============ BASE & RESET ============ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ============ NAVIGATION — Glass Morphism with GOLD ============ */
nav, .nav, .topbar {
  background: linear-gradient(180deg, rgba(13, 19, 33, 0.95) 0%, rgba(17, 24, 39, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.brand::after {
  content: "Vraimony Standard (ERF)";
  display: block;
  margin-top: 0.15rem;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.tag {
  font-size: 0.7rem;
  color: var(--gold-primary);
  border: 1px solid var(--gold-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--gold-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.links, .nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ALL navigation links are now GOLD */
nav a, .links a, .nav a,
.nav-links a, .navbar a, .menu a,
.topbar a, .header-nav a, .site-nav a {
  color: var(--gold-primary) !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

nav a::before, .links a::before, .nav a::before,
.nav-links a::before, .navbar a::before, .menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
  transition: left 0.5s ease;
}

nav a:hover::before, .links a:hover::before, .nav a:hover::before,
.nav-links a:hover::before, .navbar a:hover::before, .menu a:hover::before {
  left: 100%;
}

nav a:hover, .links a:hover, .nav a:hover,
nav a.active, .nav a.active,
.nav-links a:hover, .navbar a:hover, .menu a:hover,
.nav-links a.active, .navbar a.active, .menu a.active {
  background: linear-gradient(135deg, var(--gold-muted) 0%, rgba(212, 175, 55, 0.25) 100%);
  color: var(--gold-light) !important;
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* ============ LAYOUT ============ */
.container {
  width: 92%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

header, .hero {
  padding: 3rem 1rem 2rem;
  text-align: center;
  position: relative;
}

.hero {
  text-align: left;
  padding: 3rem 0 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.sub {
  max-width: 60ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============ TYPOGRAPHY — ALL GOLD ============ */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--gold-primary) !important;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  border-left: 3px solid var(--gold-primary);
  padding-left: 1rem;
  margin: 2rem 0 1rem;
  color: var(--gold-primary) !important;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-primary) !important;
}

h4, h5, h6 {
  color: var(--gold-primary) !important;
  font-weight: 600;
}

p {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

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

.small {
  font-size: 0.9rem;
}

/* ============ ALL LINKS ARE GOLD ============ */
a, .link, .nav-link, .footer-link, .text-link,
.authority-link, .standard-link, .conformance-link,
.release-link, .packaging-link, .digest-link {
  color: var(--gold-primary) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

a:hover, .link:hover, .nav-link:hover, .footer-link:hover,
.text-link:hover, .authority-link:hover, .standard-link:hover,
.conformance-link:hover, .release-link:hover, .packaging-link:hover,
.digest-link:hover {
  color: var(--gold-light) !important;
  border-bottom-color: var(--gold-primary);
  text-shadow: 0 0 10px var(--gold-glow);
}

/* ============ BUTTONS — GOLD STYLING ============ */
button, .btn, .button {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
  color: var(--bg-primary) !important;
  border: 1px solid var(--gold-light);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

button::after, .btn::after, .button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

button:hover::after, .btn:hover::after, .button:hover::after {
  opacity: 1;
}

button:hover, .btn:hover, .button:hover {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold), 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.button.primary, .btn.primary {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 50%, var(--gold-light) 100%);
  color: var(--bg-primary) !important;
  border-color: var(--gold-light);
  font-weight: 800;
}

.button.primary:hover, .btn.primary:hover {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
  box-shadow: 0 0 25px var(--gold-glow), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn.secondary, .button.secondary {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-primary) !important;
  font-weight: 600;
}

.btn.secondary:hover, .button.secondary:hover {
  background: var(--gold-muted);
  color: var(--gold-light) !important;
}

.btn.tiny {
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
}

.cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ============ FORM ELEMENTS ============ */
input, select, textarea, .input {
  width: 100%;
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-elevated) 100%);
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:focus, select:focus, textarea:focus, .input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-muted), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

select.input {
  appearance: auto;
  cursor: pointer;
}

textarea.input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  min-height: 120px;
}

.label {
  display: block;
  font-size: 0.9rem;
  color: var(--gold-primary) !important;
  margin-bottom: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ============ CARDS — Glass Elevation with GOLD ============ */
.card {
  background: linear-gradient(180deg, rgba(22, 32, 51, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold), var(--shadow-md);
  transform: translateY(-2px);
}

.card.compact {
  padding: 1rem;
  margin: 0.75rem 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* ============ TABLES — GOLD HEADERS ============ */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
  color: var(--gold-primary) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.8px;
}

tr:hover td {
  background: rgba(212, 175, 55, 0.05);
}

.pricing-table th {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.15) 100%);
  color: var(--gold-light) !important;
}

.pricing-table td {
  background: var(--bg-secondary);
}

/* ============ STATS & METRICS — GOLD ============ */
.stats {
  margin-top: 2.5rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.stat {
  background: linear-gradient(135deg, rgba(22, 32, 51, 0.6) 0%, rgba(17, 24, 39, 0.8) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ CODE & PRE — GOLD ACCENTS ============ */
code, pre, .code {
  background: linear-gradient(180deg, #0a0f1a 0%, #0d1321 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
}

code {
  padding: 0.2rem 0.5rem;
  color: var(--gold-primary) !important;
}

pre, .code {
  padding: 1.25rem;
  overflow-x: auto;
  color: var(--text-secondary);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* ============ FOOTER — ALL GOLD ============ */
.footer {
  margin-top: 4rem;
  padding: 2.5rem 1rem 3rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-gold);
  background: linear-gradient(180deg, transparent 0%, rgba(13, 19, 33, 0.5) 100%);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Footer headings — ALL GOLD */
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6,
.footer-section h1, .footer-section h2, .footer-section h3, 
.footer-section h4, .footer-section h5, .footer-section h6,
.footer-column h1, .footer-column h2, .footer-column h3,
.footer-column h4, .footer-column h5, .footer-column h6 {
  color: var(--gold-primary) !important;
  border-left-color: var(--gold-primary) !important;
}

/* Specific footer headings mentioned */
footer h3:contains("Conformance Hub"),
footer h3:contains("Conformance Profile"),
footer h3:contains("Policy Lockfile"),
footer h3:contains("Free"),
footer h3:contains("Transparency"),
.footer h3:contains("Conformance Hub"),
.footer h3:contains("Conformance Profile"),
.footer h3:contains("Policy Lockfile"),
.footer h3:contains("Free"),
.footer h3:contains("Transparency") {
  color: var(--gold-primary) !important;
}

/* Footer links — ALL GOLD */
footer a, .footer a,
.footer-links a, .footer-nav a, .footer-menu a,
.authority-links a, .standard-links a, .conformance-links a,
.release-links a, .packaging-links a, .digest-links a {
  color: var(--gold-primary) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

footer a:hover, .footer a:hover,
.footer-links a:hover, .footer-nav a:hover, .footer-menu a:hover,
.authority-links a:hover, .standard-links a:hover, .conformance-links a:hover,
.release-links a:hover, .packaging-links a:hover, .digest-links a:hover {
  color: var(--gold-light) !important;
  border-bottom-color: var(--gold-primary);
  text-shadow: 0 0 10px var(--gold-glow);
}

/* Email addresses */
footer a[href^="mailto:"], .footer a[href^="mailto:"],
.email-link, .contact-email, .footer-email {
  color: var(--gold-primary) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dark);
  transition: all 0.3s ease;
}

footer a[href^="mailto:"]:hover, .footer a[href^="mailto:"]:hover,
.email-link:hover, .contact-email:hover, .footer-email:hover {
  color: var(--gold-light) !important;
  border-bottom-color: var(--gold-primary);
  text-shadow: 0 0 10px var(--gold-glow);
}

/* Authority Links Section */
.authority-links h3,
.authority-links h4,
.authority-section h3,
.authority-section h4,
.standard-section h3,
.standard-section h4,
.conformance-section h3,
.conformance-section h4,
.release-section h3,
.release-section h4,
.packaging-section h3,
.packaging-section h4,
.digest-section h3,
.digest-section h4,
.weekly-section h3,
.weekly-section h4 {
  color: var(--gold-primary) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--gold-primary);
  padding-left: 0.75rem;
}

/* Specific link text colors */
a[href*="releases.json"],
a[href*="SHA256SUMS.txt"],
a[href*="packaging"],
a[href*="digest"],
a[href*="weekly"],
a[href*="standard"],
a[href*="conformance"],
a[href*="authority"],
a[href*="profile"],
a[href*="lockfile"],
a[href*="transparency"],
a[href*="free"],
a[href*="hub"] {
  color: var(--gold-primary) !important;
}

a[href*="releases.json"]:hover,
a[href*="SHA256SUMS.txt"]:hover,
a[href*="packaging"]:hover,
a[href*="digest"]:hover,
a[href*="weekly"]:hover,
a[href*="standard"]:hover,
a[href*="conformance"]:hover,
a[href*="authority"]:hover,
a[href*="profile"]:hover,
a[href*="lockfile"]:hover,
a[href*="transparency"]:hover,
a[href*="free"]:hover,
a[href*="hub"]:hover {
  color: var(--gold-light) !important;
  text-shadow: 0 0 10px var(--gold-glow);
}

/* ============ UTILITY COMPONENTS ============ */
.row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.grid, .grid2, .cols {
  display: grid;
  gap: 1rem;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid2, .cols {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 720px) {
  .grid2, .cols { grid-template-columns: 1fr; }
}

/* ============ TABS — GOLD SELECTED ============ */
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-gold);
}

.tab {
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--gold-muted) 0%, rgba(212, 175, 55, 0.25) 100%);
  color: var(--gold-light) !important;
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

.panel {
  margin-top: 1rem;
}

/* ============ BADGES & PILLS — GOLD DEFAULT ============ */
.badge, .pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.pill {
  border: 1px solid var(--border-gold);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary) !important;
}

.pill.ok {
  border-color: rgba(0, 200, 120, 0.6);
  background: rgba(0, 200, 120, 0.1);
  color: #48bb78;
}

.pill.bad {
  border-color: rgba(255, 80, 80, 0.6);
  background: rgba(255, 80, 80, 0.1);
  color: #fc8181;
}

.badge {
  margin-left: 0.5rem;
  border: 1px solid var(--border-gold);
  color: var(--gold-primary) !important;
  background: var(--gold-muted);
}

/* ============ SEAL & VERIFICATION CARDS — GOLD ============ */
.sealCard {
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(22, 32, 51, 0.6) 0%, rgba(17, 24, 39, 0.8) 100%);
  box-shadow: var(--shadow-gold);
}

.sealCard .sealTitle {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold-primary) !important;
  letter-spacing: 0.3px;
}

.sealCard .sealLine {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.sealCard .sealMeta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sealCard .sealFoot {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--gold-dark) !important;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.sealCard .sealTiny {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sealQr {
  width: 140px;
  height: 140px;
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ============ CHECKS & VALIDATION ============ */
.checks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-elevated) 100%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.check::before {
  content: '○';
  color: var(--text-muted);
  font-size: 1.2rem;
}

.check.ok {
  border-color: rgba(72, 187, 120, 0.5);
  background: linear-gradient(180deg, rgba(72, 187, 120, 0.1) 0%, rgba(72, 187, 120, 0.05) 100%);
}

.check.ok::before {
  content: '✓';
  color: #48bb78;
  font-weight: 800;
}

.check.bad {
  border-color: rgba(252, 129, 129, 0.5);
  background: linear-gradient(180deg, rgba(252, 129, 129, 0.1) 0%, rgba(252, 129, 129, 0.05) 100%);
}

.check.bad::before {
  content: '✕';
  color: #fc8181;
  font-weight: 800;
}

/* ============ PACKAGES & TOOLS GRID ============ */
.packGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 920px) { .packGrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .packGrid { grid-template-columns: 1fr; } }

.packCard {
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(22, 32, 51, 0.6) 0%, rgba(17, 24, 39, 0.8) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.3s ease;
  display: block;
}

.packCard:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.packTitle {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold-primary) !important;
  margin-bottom: 0.5rem;
}

.packMeta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.toolGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 920px) { .toolGrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .toolGrid { grid-template-columns: 1fr; } }

.toolCard {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, rgba(22, 32, 51, 0.4) 0%, rgba(17, 24, 39, 0.6) 100%);
  border-radius: var(--radius-lg);
  padding: 1rem;
  transition: all 0.3s ease;
}

.toolCard:hover {
  border-color: var(--gold-primary);
  background: linear-gradient(180deg, rgba(22, 32, 51, 0.6) 0%, rgba(17, 24, 39, 0.8) 100%);
  box-shadow: var(--shadow-gold);
}

.toolIcon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--gold-primary) !important;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-tertiary) 100%);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toolTitle {
  font-weight: 700;
  color: var(--gold-primary) !important;
}

/* ============ FILTERS ============ */
.filtersRow {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 1rem 0;
}

.filterBtn {
  cursor: pointer;
  border: 1px solid var(--border-gold);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filterBtn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary) !important;
}

.filterBtn.on {
  border-color: var(--gold-primary);
  background: var(--gold-muted);
  color: var(--gold-light) !important;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ============ DIAGRAMS & MEDIA ============ */
.diagram {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
}

.widgetLiveFrame {
  border: 0;
  border-radius: var(--radius-lg);
  width: 100%;
  height: 72px;
  border: 1px solid var(--border-gold);
}

/* ============ SPACING UTILITIES ============ */
.spacer { height: 16px; }
.mt8 { margin-top: 8px !important; }
.mt10 { margin-top: 10px !important; }
.mt12 { margin-top: 12px !important; }
.mt16 { margin-top: 16px !important; }
.mb8 { margin-bottom: 8px !important; }
.my10 { margin: 10px 0 !important; }
.my12 { margin: 12px 0 !important; }

/* ============ SIZE UTILITIES ============ */
.maxw320 { max-width: 320px; }
.maxw360 { max-width: 360px; }
.maxh240 { max-height: 240px; }
.maxh260 { max-height: 260px; }
.minh220 { min-height: 220px; }

/* ============ DISPLAY UTILITIES ============ */
.hidden { display: none !important; }
.offscreen { position: fixed; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cursorPointer { cursor: pointer; }
.overflowAuto { overflow: auto; }
.prewrap { white-space: pre-wrap; }
.wordbreak { word-break: break-word; }

/* ============ ICONS & MONO ============ */
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.icon {
  width: 32px;
  height: 32px;
  display: block;
  margin-bottom: 0.75rem;
  color: var(--gold-primary) !important;
}

/* ============ RESPONSIVE ADJUSTMENTS ============ */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .container { width: 95%; }
  nav, .nav, .topbar { padding: 0.75rem 1rem; }
  .stat-value { font-size: 1.5rem; }
  .cards { grid-template-columns: 1fr; }
}

/* ============ ANIMATIONS ============ */
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 5px var(--gold-glow); }
  50% { box-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(212, 175, 55, 0.2); }
}

.gold-pulse {
  animation: goldPulse 3s ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .stat, .packCard, .toolCard {
  animation: fadeIn 0.5s ease-out;
}

/* ============ SPECIFIC AUTHORITY LINKS SECTION ============ */
/* Targeting: Authority links | Standard | Conformance | releases.json | SHA256SUMS.txt | Packaging decisions | Weekly Digest | Digest JSON */

.authority-links h3,
.authority-links h4,
.authority-section h3,
.authority-section h4,
.links-section h3,
.links-section h4,
.standard-links h3,
.standard-links h4,
.conformance-links h3,
.conformance-links h4,
.release-links h3,
.release-links h4,
.packaging-links h3,
.packaging-links h4,
.digest-links h3,
.digest-links h4,
.weekly-links h3,
.weekly-links h4,
.resource-links h3,
.resource-links h4,
.download-links h3,
.download-links h4,
.documentation-links h3,
.documentation-links h4,
.reference-links h3,
.reference-links h4 {
  color: var(--gold-primary) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--gold-primary);
  padding-left: 0.75rem;
}

/* Specific text content targeting via common patterns */
a:contains("Authority"),
a:contains("Standard"),
a:contains("Conformance"),
a:contains("releases.json"),
a:contains("SHA256SUMS.txt"),
a:contains("Packaging"),
a:contains("Weekly"),
a:contains("Digest"),
a:contains("Profile"),
a:contains("Lockfile"),
a:contains("Transparency"),
a:contains("Free"),
a:contains("Hub") {
  color: var(--gold-primary) !important;
}

a:contains("Authority"):hover,
a:contains("Standard"):hover,
a:contains("Conformance"):hover,
a:contains("releases.json"):hover,
a:contains("SHA256SUMS.txt"):hover,
a:contains("Packaging"):hover,
a:contains("Weekly"):hover,
a:contains("Digest"):hover,
a:contains("Profile"):hover,
a:contains("Lockfile"):hover,
a:contains("Transparency"):hover,
a:contains("Free"):hover,
a:contains("Hub"):hover {
  color: var(--gold-light) !important;
  text-shadow: 0 0 10px var(--gold-glow);
}

/* ============ LEGACY COMPATIBILITY ============ */
/* Maintaining backward compatibility with existing class names */
#bg-color { background-color: var(--bg-primary); }
#fg-color { color: var(--text-primary); }
#card-bg { background-color: var(--bg-elevated); }
#border-color { border-color: var(--border-gold); }
#primary { color: var(--gold-primary) !important; }
#primary-dark { color: var(--gold-dark) !important; }
#radius { border-radius: var(--radius-md); }

/* Override any remaining blue colors */
[style*="color: #2d62ff"],
[style*="color: #2047b0"],
[style*="color: blue"],
[style*="color: var(--blue"],
[style*="color: var(--primary"]:not([style*="gold"]) {
  color: var(--gold-primary) !important;
}