/* ============================================================
   Countersig Documentation — styles.css
   Navy + Gold + Cream professional theme — Countersig brand
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #001233;
  --bg-2:       #001845;
  --bg-3:       #002366;
  --bg-4:       #001a4d;
  --border:     rgba(201,168,76,0.2);
  --border-2:   rgba(201,168,76,0.35);
  --text:       #F4F5F6;
  --text-2:     #b0b8c8;
  --text-3:     #7a8599;
  --gold:       #C9A84C;
  --gold-dim:   #a88a3a;
  --cream:      #F4F5F6;
  --cream-dim:  #d4d8de;
  --green:      #22c55e;
  --yellow:     #C9A84C;
  --red:        #ef4444;
  --blue:       #5a8fd4;
  --sidebar-w:  260px;
  --topnav-h:   60px;
  --radius:     8px;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Top Nav ── */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topnav-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(12px);
}
.topnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.topnav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #002366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-left { color: #fff; }
.logo-right { color: rgba(255,255,255,0.7); }
.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo-sub {
  color: var(--text-2);
  font-weight: 400;
}
.topnav-links { display: flex; align-items: center; gap: 8px; }
.btn-launch {
  background: var(--gold);
  color: #001233;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-launch:hover { opacity: 0.85; }
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

/* ── Layout ── */
.layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: var(--topnav-h);
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--topnav-h);
  height: calc(100vh - var(--topnav-h));
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg-2);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.sidebar-inner { padding: 24px 16px; }
.sidebar-section { margin-bottom: 28px; }
.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  margin-bottom: 8px;
  padding: 0 8px;
}
.sidebar-link {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 2px;
  cursor: pointer;
}
.sidebar-link:hover,
.sidebar-link.active {
  background: var(--bg-4);
  color: var(--gold);
}
.sidebar-link.active {
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 8px;
}
.sidebar-link.ext { color: var(--text-3); font-size: 12.5px; }
.sidebar-link.ext:hover { color: var(--text-2); }

/* ── Content ── */
.content {
  flex: 1;
  min-width: 0;
  padding: 48px 64px 80px 64px;
  max-width: 900px;
}

.doc-section.hidden { display: none; }
.doc-section h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.doc-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.doc-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
}
.doc-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-top: 18px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.doc-section p { margin-bottom: 14px; color: var(--text-2); }
.doc-section a { color: var(--gold); text-decoration: none; }
.doc-section a:hover { text-decoration: underline; }
.doc-section ul, .doc-section ol {
  margin: 10px 0 14px 20px;
  color: var(--text-2);
}
.doc-section li { margin-bottom: 5px; }
.doc-section strong { color: var(--text); }
.doc-section code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold);
}
.lead {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── Section Badge ── */
.section-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ── Code Blocks ── */
pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 14px 0 20px 0;
  position: relative;
}
pre code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  line-height: 1.65;
}
/* Syntax-like coloring */
pre code .lang-bash { color: #a8ff78; }
.lang-javascript pre code,
.lang-jsx pre code { color: #ffd700; }

/* Simple token-based highlighting via CSS */
pre { tab-size: 2; }

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 24px 0;
  font-size: 14px;
}
thead tr { background: var(--bg-3); }
th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-3); }

/* ── Callouts ── */
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  border-left: 3px solid;
}
.callout-info {
  background: rgba(59,130,246,0.08);
  border-color: var(--blue);
}
.callout-success {
  background: rgba(34,197,94,0.08);
  border-color: var(--green);
}
.callout-warning {
  background: rgba(245,158,11,0.08);
  border-color: var(--yellow);
}
.callout-danger {
  background: rgba(239,68,68,0.08);
  border-color: var(--red);
}
.callout-icon { font-size: 20px; flex-shrink: 0; line-height: 1.4; }
.callout p { margin: 0; }
.callout a { color: var(--gold); }

/* ── Architecture Diagram ── */
.arch-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0 6px 0;
  flex-wrap: wrap;
}
.arch-box {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}
.arch-box.blue { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3); color: var(--gold); }
.arch-box.purple { background: rgba(90,143,212,0.1); border: 1px solid rgba(90,143,212,0.3); color: var(--blue); }
.arch-box.green { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.arch-arrow { color: var(--text-3); font-size: 18px; }
.arch-plus {
  font-size: 12px;
  color: var(--text-3);
  padding: 0 24px 12px;
  margin-top: -10px;
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-2); }
.card-icon { font-size: 24px; margin-bottom: 10px; }
.card h3 { font-size: 14px; color: var(--text); margin: 0 0 8px 0; }
.card p { font-size: 13px; color: var(--text-2); margin: 0; }

/* ── Tier Grid ── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.tier-card {
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid;
}
.tier-high { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.3); }
.tier-medium { background: rgba(90,143,212,0.08); border-color: rgba(90,143,212,0.3); }
.tier-low { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.3); }
.tier-unverified { background: rgba(100,116,139,0.1); border-color: rgba(100,116,139,0.3); }
.tier-score { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.tier-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.tier-high .tier-label { color: var(--green); }
.tier-medium .tier-label { color: var(--blue); }
.tier-low .tier-label { color: #f59e0b; }
.tier-unverified .tier-label { color: var(--text-3); }
.tier-desc { font-size: 11px; color: var(--text-3); }

/* ── TOC ── */
.toc {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 32px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}
.toc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  width: 100%;
  margin-bottom: 6px;
}
.toc a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}
.toc a:hover { background: var(--bg-4); color: var(--gold); }

/* ── Tabs ── */
.tabs { margin: 16px 0 24px 0; }
.tab-buttons {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: -1px;
  font-family: var(--font-sans);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.tab-content {
  display: none;
  padding: 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.tab-content.active { display: block; }
.tab-content pre { margin: 12px 0; }
.tab-content pre:last-child { margin-bottom: 0; }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  width: 26px; height: 26px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}
.step div { color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-success { background: rgba(34,197,94,0.15); color: var(--green); }
.badge-warning { background: rgba(201,168,76,0.15); color: var(--gold); }
.badge-blue { background: rgba(90,143,212,0.15); color: var(--blue); }
.badge-orange { background: rgba(201,168,76,0.15); color: var(--gold); }

/* ── Checklist ── */
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 16px 0;
}
.checklist-group {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.checklist-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.checklist-group label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  margin-bottom: 7px;
  line-height: 1.4;
}
.checklist-group label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

/* ── Pitfalls ── */
.pitfall-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.pitfall {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.pitfall-num {
  width: 22px; height: 22px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pitfall div { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

/* ── Feature List ── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
}
.feature span { font-size: 16px; }

/* ── Auth Flow ── */
.auth-flow { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.auth-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 16px;
}
.auth-num {
  width: 24px; height: 24px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.auth-step div { font-size: 13.5px; color: var(--text-2); }

/* ── Endpoint Blocks ── */
.endpoint-group { margin: 24px 0; }
.endpoint-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.endpoint {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.endpoint-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-3);
  cursor: pointer;
  user-select: none;
  flex-wrap: wrap;
}
.method {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.method.get { background: rgba(34,197,94,0.15); color: var(--green); }
.method.post { background: rgba(201,168,76,0.15); color: var(--gold); }
.method.put { background: rgba(245,158,11,0.15); color: #f59e0b; }
.method.delete { background: rgba(239,68,68,0.15); color: var(--red); }
.endpoint-path {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}
.endpoint-desc { font-size: 13px; color: var(--text-2); flex: 1; }
.rate-badge {
  font-size: 10px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  color: var(--text-3);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
}
.endpoint-body {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.endpoint-body pre { margin: 10px 0; }
.endpoint-body p { font-size: 13.5px; margin-bottom: 10px; }
.response-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.res-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.res-200, .res-201 { background: rgba(34,197,94,0.12); color: var(--green); }
.res-400 { background: rgba(245,158,11,0.12); color: #f59e0b; }
.res-401, .res-404, .res-409, .res-429 { background: rgba(239,68,68,0.12); color: var(--red); }

/* ── Troubleshoot ── */
.troubleshoot-list { margin: 14px 0; }
.troubleshoot-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.troubleshoot-item summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.troubleshoot-item summary::-webkit-details-marker { display: none; }
.troubleshoot-item summary::before {
  content: '▶';
  font-size: 10px;
  color: var(--text-3);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.troubleshoot-item[open] summary::before { transform: rotate(90deg); }
.troubleshoot-item > p,
.troubleshoot-item > pre {
  padding: 0 16px 16px 16px;
  font-size: 13.5px;
}

/* ── Note ── */
.note {
  font-size: 12.5px;
  color: var(--text-3);
  font-style: italic;
  margin-top: 8px;
}

/* ── Bottom Nav ── */
.doc-nav-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.btn-next, .btn-prev {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-next {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
}
.btn-next:hover { background: rgba(201,168,76,0.18); }
.btn-prev {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.btn-prev:hover { border-color: var(--border-2); color: var(--text); }

/* ── Footer ── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 24px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-3);
}
.footer-left a, .footer-right a {
  color: var(--text-3);
  text-decoration: none;
}
.footer-left a:hover, .footer-right a:hover { color: var(--gold); }
.footer-right { display: flex; gap: 20px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .content { padding: 32px 24px 60px 24px; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: var(--topnav-h);
    left: -100%;
    height: calc(100vh - var(--topnav-h));
    z-index: 99;
    transition: left 0.3s ease;
    width: 280px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
  }
  .sidebar.open { left: 0; }
  .mobile-menu-btn { display: block; }
  .content { padding: 24px 16px 60px 16px; }
  .arch-diagram { flex-direction: column; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .doc-section h1 { font-size: 26px; }
  .endpoint-header { flex-wrap: wrap; }
  .rate-badge { margin-left: 0; }
}

@media (max-width: 480px) {
  .tier-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Scrollbar (sidebar/content) ── */
.content::-webkit-scrollbar { width: 6px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Syntax Token Colors ── */
.tok-keyword { color: #c792ea; font-weight: 600; }
.tok-string  { color: #c3e88d; }
.tok-comment { color: #546e7a; font-style: italic; }
.tok-number  { color: #f78c6c; }

/* ── Copy Button ── */
.copy-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 11px;
  font-family: var(--font-sans);
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  opacity: 0;
}
pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { border-color: var(--gold); color: var(--gold); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }