/* DrugHub marketplace snapshot — palette: color-drughub.json */
:root {
  --orange: #F89B28;      /* main accent: buttons, titles, logo 'hub' */
  --header: #232323;      /* top nav background */
  --sidebar: #333333;
  --sidebar-item: #2A2A2A;
  --page-bg: #F4F4F4;     /* main page background */
  --card-bg: #FFFFFF;     /* card interior */
  --card-border: #F6C27C; /* card border */
  --text: #333333;        /* body text */
  --muted: #777777;       /* secondary text */
  --link: #337AB7;        /* standard links */
  --green: #47B14B;       /* status/success */
  --escrow: #2F8F4F;
  --badge: #FF9B1A;
  --red: #E55454;         /* danger */
  --btn-bg: #FFF4E0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--orange); }
code, kbd { font-family: "Cascadia Code", Consolas, Menlo, Monaco, monospace; }
kbd { background: #1b1b1b; border: 1px solid #444; border-radius: 6px; padding: 2px 7px; font-size: .8em; color: #ffd9a3; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: var(--header); box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 0; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: auto; height: 34px; border-radius: 6px; }
.logo b { font-size: 1.3rem; color: #fff; letter-spacing: .5px; }
.logo b span { color: var(--orange); }
.status-badge { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--sidebar-item); border: 1px solid #3d3d3d; border-radius: 999px; padding: 5px 14px; font-size: .78rem; color: #cfcfcf; white-space: nowrap; }
.status-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.6s infinite; }
.status-badge b { color: var(--green); font-weight: 700; }
.main-nav { border-top: 1px solid #333; flex-basis: 100%; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; }
.main-nav a { display: block; padding: 11px 15px; color: #e8e8e8; font-size: .9rem; font-weight: 600; letter-spacing: .3px; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--orange); border-bottom-color: var(--orange); background: rgba(248,155,40,.05); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- breadcrumb ---------- */
.breadcrumbs { margin: 20px 0 4px; font-size: .8rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { color: var(--link); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #bbb; }

/* ---------- onion panel ---------- */
.onion-panel { margin: 16px 0 26px; background: var(--header); border-radius: 14px; padding: 28px 26px; position: relative; overflow: hidden; border: 1px solid #3a3a3a; }
.onion-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 220px at 12% -20%, rgba(248,155,40,.22), transparent 65%); pointer-events: none; }
.onion-panel h2 { color: #fff; font-size: 1.5rem; margin-bottom: 4px; position: relative; }
.onion-panel h1 { color: #fff; font-size: 1.5rem; letter-spacing: -.3px; margin-bottom: 4px; position: relative; }
.onion-panel h2 em { color: var(--orange); font-style: normal; }
.onion-meta { color: #9a9a9a; font-size: .85rem; margin-bottom: 14px; max-width: 780px; }
.live-line { display: inline-flex; align-items: center; gap: 8px; background: rgba(71,177,75,.12); border: 1px solid rgba(71,177,75,.4); color: var(--green); border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; margin-bottom: 14px; }
.live-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; font-style: normal; }
.onion-url-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; position: relative; }
.onion-url-row code { flex: 1; min-width: 260px; background: #1b1b1b; border: 1px solid var(--card-border); border-radius: 10px; padding: 14px 16px; color: #ffd9a3; font-size: .95rem; word-break: break-all; display: flex; align-items: center; }
.copy-btn { background: var(--orange); color: #1c1c1c; border: none; border-radius: 10px; padding: 14px 26px; font-size: 1rem; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; }
.copy-btn:hover { background: var(--badge); transform: translateY(-1px); }
.copy-btn.copied { background: var(--green); color: #fff; }
.pgp-verify { margin-top: 16px; background: var(--sidebar-item); border-left: 4px solid var(--escrow); border-radius: 8px; padding: 14px 16px; font-size: .85rem; color: #bdbdbd; line-height: 1.7; position: relative; }
.pgp-verify b { color: #fff; }

/* ---------- page intro ---------- */
.page-title { margin: 26px 0 8px; font-size: 2rem; color: var(--header); letter-spacing: -.5px; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 840px; margin-bottom: 24px; }

/* ---------- cards & tables ---------- */
.section-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 28px 26px; margin: 22px 0; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.section-card h2 { color: var(--header); font-size: 1.45rem; margin-bottom: 12px; }
.section-card h3 { color: var(--header); font-size: 1.1rem; margin: 16px 0 8px; }
.section-card p { margin-bottom: 14px; }
.section-card p:last-child { margin-bottom: 0; }
.section-card a { font-weight: 600; }
.section-card a:hover { text-decoration: underline; }
table.stats-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; }
.stats-table th, .stats-table td { border: 1px solid #eadfc8; padding: 10px 12px; text-align: left; vertical-align: top; }
.stats-table th { width: 200px; background: #FFF8EE; color: #8a5a1e; font-weight: 700; white-space: nowrap; }
.stats-table td { color: var(--text); }
.media { width: 100%; border-radius: 12px; border: 1px solid var(--card-border); margin: 18px 0 4px; }
.media-narrow { max-width: 280px; }

/* ---------- lists / badges / news ---------- */
ul.check-list { list-style: none; margin: 8px 0 4px; }
.check-list li { position: relative; padding: 0 0 10px 26px; font-size: .95rem; border-bottom: 1px dashed #eee0c8; }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.badge { display: inline-block; background: var(--orange); color: #1c1c1c; border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; margin-right: 8px; vertical-align: middle; }
.badge-red { background: var(--red); color: #fff; }
.news-item { border-left: 4px solid var(--orange); background: #FFF8EE; border-radius: 0 10px 10px 0; padding: 12px 16px; margin-bottom: 12px; font-size: .95rem; }
.news-item .badge { margin-bottom: 6px; }
.news-item p { margin: 8px 0 0; }
blockquote.quote { margin: 10px 0; background: #FFF8EE; border-left: 5px solid var(--escrow); border-radius: 0 10px 10px 0; padding: 18px 20px; font-size: 1.02rem; color: #4a4a4a; }
.quote footer { margin-top: 10px; font-size: .8rem; color: var(--muted); font-style: normal; font-weight: 600; }
.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.stat { flex: 1 1 150px; background: var(--header); border-radius: 10px; padding: 14px 16px; text-align: center; color: #fff; }
.stat b { display: block; font-size: 1.3rem; color: var(--orange); }
.stat span { font-size: .78rem; color: #bdbdbd; }

/* ---------- faq ---------- */
details { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--header); background: #FFF8EE; list-style: none; position: relative; padding-left: 40px; font-size: .98rem; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; position: absolute; left: 16px; color: var(--orange); font-weight: 800; font-size: 1.1rem; }
details[open] summary::before { content: "–"; }
details p { padding: 14px 18px; margin: 0; font-size: .95rem; }
.fine { font-size: .78rem; color: #9a9a9a; line-height: 1.6; }

/* ---------- footer ---------- */
.site-footer { background: var(--header); color: #bdbdbd; margin-top: 40px; padding: 34px 0 18px; font-size: .9rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 34px; margin-bottom: 22px; }
.footer-grid > div { flex: 1 1 240px; }
.footer-grid h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .6px; margin: 0 0 10px; }
.footer-grid a { display: block; color: #bdbdbd; padding: 3px 0; font-size: .88rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-grid p { font-size: .85rem; line-height: 1.6; }
.footer-grid .key { display: inline-block; margin-top: 4px; }
.footer-bottom { border-top: 1px solid #3a3a3a; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .75rem; color: #8a8a8a; }

/* ---------- buttons (generic) ---------- */
.btn { display: inline-block; background: var(--orange); color: #1c1c1c; border: none; border-radius: 10px; padding: 12px 22px; font-size: .95rem; font-weight: 800; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; }
.btn:hover { background: var(--badge); transform: translateY(-1px); color: #1c1c1c; }
.btn-outline { background: transparent; color: var(--orange); border: 1px solid var(--orange); }
.btn-outline:hover { background: rgba(248,155,40,.08); transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .header-inner { gap: 10px; }
  .status-badge { margin-left: 0; }
  .stats-table { display: block; overflow-x: auto; }
  .stats-table th { width: auto; display: table-cell; }
  .copy-btn { width: 100%; }
  .footer-grid { gap: 20px; }
}
