/* PeptideQuestions design layer, loaded after the (re-themed) base stylesheet.
   Palette matches Biotech Compounds: navy #0b3a5e, teal #0e7490, green #2fb584. */
:root {
  --pq-navy: #0b3a5e;
  --pq-teal: #0e7490;
  --pq-cyan: #14a3b8;
  --pq-green: #2fb584;
  --pq-ink: #0a1c2e;
  --pq-shadow: 0 1px 2px rgba(10, 28, 46, .05), 0 8px 24px -12px rgba(11, 58, 94, .18);
  --pq-shadow-lg: 0 2px 4px rgba(10, 28, 46, .06), 0 18px 40px -16px rgba(11, 58, 94, .28);
}

html { scroll-behavior: smooth; }
body {
  background-image:
    radial-gradient(1100px 520px at 85% -8%, rgba(20, 163, 184, .13), transparent 62%),
    radial-gradient(900px 480px at -5% 4%, rgba(47, 181, 132, .10), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* header */
body > div > header, body header.sticky, header.sticky {
  box-shadow: 0 1px 0 rgba(11, 58, 94, .06);
}
header.sticky::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--pq-navy), var(--pq-cyan) 55%, var(--pq-green));
  opacity: .9;
}
header.sticky nav > a img { width: 34px; height: 34px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
header.sticky nav > a:hover img { transform: rotate(120deg); }
header.sticky nav > a span { letter-spacing: -.02em; font-weight: 700; }

/* type */
h1, h2, .font-display { letter-spacing: -.022em; }
main h1 { text-wrap: balance; }
main p { text-wrap: pretty; }
main h1 span.text-accent, main h1 .text-accent {
  background: linear-gradient(100deg, var(--pq-teal), var(--pq-green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* cards */
main .rounded-xl.border, main .rounded-2xl.border, main a.rounded-xl, main a.rounded-2xl {
  border-color: rgba(11, 58, 94, .12);
  box-shadow: var(--pq-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
main a.rounded-xl:hover, main a.rounded-2xl:hover, main .rounded-xl.border:hover, main .rounded-2xl.border:hover {
  transform: translateY(-2px);
  box-shadow: var(--pq-shadow-lg);
  border-color: rgba(14, 116, 144, .4);
}
/* vendor card must not float: it is a link list, not a feature card */
main .space-y-2 a { box-shadow: none; }

/* buttons + links styled as buttons */
a.bg-accent, button.bg-accent {
  background-image: linear-gradient(135deg, var(--pq-teal), var(--pq-navy));
  box-shadow: 0 6px 16px -6px rgba(11, 58, 94, .55);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
a.bg-accent:hover, button.bg-accent:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(11, 58, 94, .6); }
a.bg-accent:active, button.bg-accent:active { transform: translateY(0); }

/* category / filter chips */
[role="group"] > button { transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
[role="group"] > button:hover { transform: translateY(-1px); }

/* inputs */
input[type="search"], input[type="number"], input[type="text"], input[type="email"] {
  transition: box-shadow .15s, border-color .15s;
}
input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 163, 184, .28); border-color: var(--pq-cyan); }

/* disclaimer banner */
[data-disclaimer-banner] { background-image: linear-gradient(90deg, var(--pq-navy), #0b4f73); }

/* footer */
footer {
  background: linear-gradient(180deg, #0b2f4d, #07263f);
  color: #cfe3ee; border-color: transparent;
}
footer a, footer .text-muted a { color: #e6f4fa !important; }
footer a:hover { color: #7fe0c1 !important; }
footer p, footer li, footer span, footer .text-muted { color: #b9d2df !important; }
footer h2, footer h3, footer .text-ink, footer .font-display, footer a.font-display { color: #fff !important; }
footer a.text-accent-dark { color: #fff !important; }

/* mobile menu */
.pq-mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid rgba(11, 58, 94, .12); box-shadow: var(--pq-shadow-lg); }
.pq-mobile-menu[hidden] { display: none; }
.pq-mobile-menu ul { list-style: none; margin: 0; padding: .5rem 1rem 1rem; }
.pq-mobile-menu a { display: block; padding: .8rem .5rem; font-weight: 500; color: var(--pq-navy); border-radius: .5rem; }
.pq-mobile-menu a:hover { background: #e8f5f9; }
@media (min-width: 768px) { .pq-mobile-menu { display: none !important; } }

/* calculator result */
.pq-result { transition: background .2s, border-color .2s; }
.pq-result.is-live {
  background: linear-gradient(135deg, #e8f5f9, #e9f8f1); border: 1px solid rgba(14, 116, 144, .25);
  border-radius: .9rem; padding: 1rem 1.1rem; color: var(--pq-ink); font-weight: 500; font-size: 1rem; line-height: 1.55;
}
.pq-none { text-align: center; padding: 2rem 0; color: #54687a; }
[hidden] { display: none !important; }

/* Pepper launcher + panel */
.pq-launch {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.05rem .7rem .8rem; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font-weight: 600; font-size: .95rem;
  background: linear-gradient(135deg, var(--pq-teal), var(--pq-navy)); box-shadow: 0 12px 28px -8px rgba(11, 58, 94, .6);
  transition: transform .15s, box-shadow .15s;
}
html:not([data-disclaimer="off"]) .pq-launch,
html:not([data-disclaimer="off"]) .pq-panel { bottom: calc(var(--pq-banner-h, 64px) + 14px); }
html:not([data-disclaimer="off"]) .pq-panel { height: min(620px, calc(100vh - var(--pq-banner-h, 64px) - 32px)); }
.pq-launch img { background: #fff; border-radius: 50%; padding: 3px; width: 28px; height: 28px; }
.pq-launch:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(11, 58, 94, .7); }
.pq-launch[aria-expanded="true"] { display: none; }
.pq-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 61; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 36px));
  display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(7, 38, 63, .55); border: 1px solid rgba(11, 58, 94, .14);
}
.pq-panel[hidden] { display: none; }
.pq-panel > header { display: flex; align-items: baseline; gap: .6rem; padding: .85rem 1rem; color: #fff; background: linear-gradient(135deg, var(--pq-navy), var(--pq-teal)); }
.pq-panel > header span { font-size: .8rem; opacity: .85; flex: 1; }
.pq-panel > header button { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pq-panel-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

#pq-chat-page, .pq-panel-body { --bubble-bot: #eef5f8; }
#pq-chat-page { display: flex; flex-direction: column; height: min(640px, 72vh); background: #fff; border: 1px solid rgba(11, 58, 94, .14); border-radius: 18px; box-shadow: var(--pq-shadow-lg); overflow: hidden; }
.pq-chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.pq-msg { max-width: 86%; padding: .65rem .9rem; border-radius: 14px; line-height: 1.5; font-size: .95rem; word-wrap: break-word; }
.pq-bot { background: var(--bubble-bot); color: var(--pq-ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.pq-user { background: linear-gradient(135deg, var(--pq-teal), var(--pq-navy)); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.pq-msg a { text-decoration: underline; }
.pq-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .5rem; }
.pq-chips button { border: 1px solid rgba(14, 116, 144, .35); background: #fff; color: var(--pq-teal); border-radius: 999px; padding: .35rem .75rem; font-size: .82rem; cursor: pointer; transition: background .15s; }
.pq-chips button:hover { background: #e8f5f9; }
.pq-chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid rgba(11, 58, 94, .1); }
.pq-chat-form input { flex: 1; border: 1px solid rgba(11, 58, 94, .2); border-radius: 12px; padding: .65rem .85rem; font-size: 1rem; background: #fff; }
.pq-chat-form button { width: 44px; border: 0; border-radius: 12px; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--pq-teal), var(--pq-navy)); display: grid; place-items: center; }
.pq-chat-note { margin: 0; padding: 0 1rem .7rem; font-size: .72rem; color: #54687a; text-align: center; }
.pq-typing i { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: #7da3b6; animation: pq-bounce 1s infinite ease-in-out; }
.pq-typing i:nth-child(2) { animation-delay: .15s; } .pq-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pq-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .pq-launch, .pq-panel { display: none !important; } }

/* ---------- vendor guide (/how-we-recommend-vendors) ---------- */
.pq-crumbs { font-size: .8rem; color: #54687a; margin-bottom: 1rem; }
.pq-crumbs a { color: var(--pq-teal); text-decoration: underline; text-underline-offset: 2px; }
.pq-updated { margin-top: .6rem; font-size: .8rem; color: #54687a; }
.pq-proof { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.pq-proof span { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--pq-navy); background: #e8f5f9; border: 1px solid #c9e6ee; }
.pq-proof span::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--pq-green); }
.pq-toc { margin: 0 0 2.25rem; padding: 1.1rem 1.25rem; border: 1px solid #d6e2e9; border-radius: 1rem; background: #fff; box-shadow: var(--pq-shadow); }
.pq-toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #54687a; margin: 0 0 .5rem; }
.pq-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.pq-toc li a { font-weight: 600; color: var(--pq-navy); }
.pq-toc li a:hover { color: var(--pq-teal); }
.pq-toc li span { font-size: .8rem; color: #54687a; margin-left: .4rem; }
.pq-guide-section { margin-bottom: 2.25rem; scroll-margin-top: 5rem; }
.pq-guide-section > h2 { font-size: 1.5rem; font-weight: 600; color: var(--pq-navy); margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid #d6e2e9; }
.pq-qa { padding: 1rem 1.15rem; margin-bottom: .75rem; background: #fff; border: 1px solid #d6e2e9; border-radius: .9rem; box-shadow: var(--pq-shadow); scroll-margin-top: 5rem; }
.pq-qa h3 { font-size: 1.05rem; font-weight: 600; color: var(--pq-ink); margin: 0 0 .4rem; line-height: 1.35; }
.pq-qa p { margin: 0; color: #35495c; line-height: 1.65; font-size: .97rem; }
.pq-qa a, .pq-fine a { color: var(--pq-teal); text-decoration: underline; text-underline-offset: 2px; }
.pq-cta { margin-top: 2.5rem; padding: 1.5rem; border-radius: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--pq-navy), var(--pq-teal)); }
.pq-cta h2 { color: #fff; font-size: 1.3rem; margin: 0 0 .4rem; }
.pq-cta p { margin: 0 0 .9rem; color: rgba(255, 255, 255, .88); }
.pq-btn { display: inline-block; padding: .65rem 1.1rem; border-radius: .7rem; font-weight: 600; background: var(--pq-green); color: #04281c !important; text-decoration: none !important; margin: 0 .5rem .5rem 0; }
.pq-btn:hover { filter: brightness(1.06); }
.pq-btn-alt { background: #fff; color: var(--pq-navy) !important; }
.pq-cta .pq-fine { font-size: .78rem; color: rgba(255, 255, 255, .75); margin: .5rem 0 0; }
.pq-cta .pq-fine a { color: #fff; }
.pq-vendor-guide-link { color: var(--pq-teal); }
