/* ============================================================
   PeptideLore — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Variables ---------- */
:root {
  --bg:        #f5f7fa;
  --surface:   #ffffff;
  --surface2:  #eef2f6;
  --border:    #d8dfe8;
  --accent:    #087f6b;
  --accent2:   #935d00;
  --accent3:   #5a47d1;
  --text:      #1f2a37;
  --muted:     #5a6778;
  --danger:    #c0392b;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(15,23,42,0.1);
  --shadow-lg: 0 8px 48px rgba(15,23,42,0.15);
  --transition: 0.22s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #111827; }
img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: #111827;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text); }

.mono { font-family: var(--font-mono); font-size: 0.88em; }
.accent  { color: var(--accent); }
.accent2 { color: var(--accent2); }
.muted   { color: var(--muted); }

/* ---------- Layout ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: #111827;
  background: var(--surface2);
}
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Language toggle */
.lang-toggle {
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 500;
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--muted);
  padding: 5px 11px;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-toggle button.active {
  background: var(--accent);
  color: #ffffff;
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
/* Dropdowns */
.nav-dd { position: relative; }
.nav-dd-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 0.9rem; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--transition);
}
.nav-dd-toggle:hover, .nav-dd-toggle.active, .nav-dd.open > .nav-dd-toggle { color: #111827; background: var(--surface2); }
.nav-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--transition); }
.nav-dd.open .nav-caret { transform: rotate(-135deg) translateY(-1px); }
.nav-dd-menu {
  list-style: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 8px; display: none; box-shadow: 0 12px 32px rgba(15,23,42,0.087); z-index: 110;
}
.nav-dd-menu a { display: block; padding: 8px 12px; white-space: nowrap; }
@media (min-width: 769px) {
  .nav-dd:hover > .nav-dd-menu, .nav-dd:focus-within > .nav-dd-menu, .nav-dd.open > .nav-dd-menu { display: block; }
  .nav-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    gap: 2px;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(15,23,42,0.12);
  }
  .nav-links.open a { display: block; width: 100%; text-align: left; padding: 10px 12px; }
  .nav-links.open .nav-dd-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 10px 12px; }
  .nav-links.open .nav-caret { margin-right: 4px; }
  .nav-dd-menu { position: static; display: none; box-shadow: none; border: none; background: transparent; padding: 0 0 4px 12px; min-width: 0; }
  .nav-dd.open > .nav-dd-menu { display: block; }
  .nav-dd-menu a { white-space: normal; }
  .nav-burger { display: flex; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 10px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(8,127,107,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(90,71,209,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8,127,107,0.1);
  border: 1px solid rgba(8,127,107,0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-title { margin-bottom: 20px; }
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: #06695a; color: #ffffff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  border-color: rgba(8,127,107,0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #111827;
  margin-bottom: 8px;
}
.card-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 16px;
}
.card-link:hover { color: #111827; }

/* Card grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Section Titles ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}
.section-title { margin-bottom: 12px; }
/* .section-desc { color: var(--muted); max-width: 560px; margin-bottom: 40px; } */

.section-desc { color: var(--muted); margin-bottom: 20px; }

/* ---------- Tag / Badge ---------- */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.tag-accent { background: rgba(8,127,107,0.1); color: var(--accent); border-color: rgba(8,127,107,0.25); }
.tag-amber  { background: rgba(147,93,0,0.1); color: var(--accent2); border-color: rgba(147,93,0,0.25); }
.tag-purple { background: rgba(90,71,209,0.1); color: var(--accent3); border-color: rgba(90,71,209,0.25); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
tr:hover td { background: var(--surface2); }
.seq { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); letter-spacing: 0.04em; }

/* ---------- Inputs ---------- */
.input-wrap { position: relative; }
input[type=text], input[type=email], textarea, select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 16px;
  outline: none;
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input.mono-input { font-family: var(--font-mono); letter-spacing: 0.06em; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
select option { background: var(--surface); }

/* ---------- Result Box ---------- */
.result-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
}
.result-box .result-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.result-box .result-value { font-family: var(--font-mono); font-size: 1.5rem; color: var(--accent); font-weight: 500; }

/* ---------- Peptide of the Day ---------- */
.potd {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(8,127,107,0.06) 100%);
  border: 1px solid rgba(8,127,107,0.2);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 640px) { .potd { grid-template-columns: 1fr; } }
.potd-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; }
.potd-name { font-family: var(--font-display); font-size: 2rem; color: #111827; margin-bottom: 4px; }
.potd-seq { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); margin-bottom: 16px; }
.potd-fact { color: var(--muted); font-size: 0.95rem; line-height: 1.7;}
.potd-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.potd-stat { text-align: center; }
.potd-stat-val { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent2); display: block; }
.potd-stat-key { font-size: 0.75rem; color: var(--muted); }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 48px 0;
}
@media (max-width: 640px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stats-strip-item {
  background: var(--surface);
  padding: 28px 24px;
  text-align: center;
}
.stats-strip-val {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stats-strip-key { font-size: 0.82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: #111827; margin-bottom: 10px; }
.footer-brand span { color: var(--accent); }
.footer-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
.footer-col-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Divider ---------- */
.divider { height: 1px; background: var(--border); margin: 48px 0; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  box-shadow: 0 -8px 32px rgba(15,23,42,0.1);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  min-width: 260px;
}
.cookie-text a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept {
  background: var(--accent); color: #ffffff; border: none;
  padding: 9px 22px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: background var(--transition);
  white-space: nowrap;
}
.cookie-btn-accept:hover { background: #06695a; }
.cookie-btn-decline {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); padding: 9px 18px;
  border-radius: var(--radius); font-size: 0.88rem;
  cursor: pointer; font-family: var(--font-body);
  transition: all var(--transition); white-space: nowrap;
}
.cookie-btn-decline:hover { color: var(--text); border-color: var(--text); }

/* ---------- Scroll animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- Floating dots bg decoration ---------- */
.dots-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
  animation: float 8s infinite ease-in-out;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: rgba(147,93,0,0.06);
  border: 1px solid rgba(147,93,0,0.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 32px;
}
.disclaimer-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ---------- Search bar ---------- */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}
.search-bar input { flex: 1; }
.search-bar select { width: auto; min-width: 160px; }

/* ---------- Highlight ---------- */
mark { background: rgba(8,127,107,0.18); color: var(--accent); border-radius: 2px; padding: 0 2px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.4; }

/* ---------- Tool panel ---------- */
.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.tool-panel h3 { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; }

/* ============================================================
   Guides (long-form articles)
   ============================================================ */
.guide-hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.guide-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 75% 30%, rgba(8,127,107,0.08) 0%, transparent 70%);
}
.guide-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 820px; margin-bottom: 16px; }
.guide-lead { color: var(--muted); font-size: 1.08rem; line-height: 1.75; max-width: 720px; }
.guide-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-top: 20px; }

.guide-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: minmax(0,1fr); } .guide-toc { display: none; } }

.guide-article { max-width: 760px; }
.guide-article h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 56px 0 16px; scroll-margin-top: 80px; }
.guide-article h3 { font-size: 1.35rem; margin: 32px 0 12px; }
.guide-article p { line-height: 1.8; margin-bottom: 16px; }
.guide-article ul, .guide-article ol { margin: 0 0 18px 22px; line-height: 1.8; }
.guide-article li { margin-bottom: 6px; }
.guide-article strong { color: #111827; font-weight: 500; }
.guide-article code { font-family: var(--font-mono); font-size: 0.86em; color: var(--accent); background: var(--surface2); padding: 1px 6px; border-radius: 4px; }
.guide-article .table-wrap { margin: 20px 0 24px; }
.guide-article td.num, .guide-article th.num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }

.guide-key { background: var(--surface); border: 1px solid rgba(8,127,107,0.25); border-radius: var(--radius-lg); padding: 24px 28px; margin: 8px 0; }
.guide-key h4 { margin-bottom: 12px; }
.guide-key ul { margin-bottom: 0; }

.guide-calc { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 18px 0 22px; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.9; color: var(--text); overflow-x: auto; white-space: pre; }
.guide-calc .hl { color: var(--accent2); }

.guide-figure { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin: 24px 0; }
.guide-figure figcaption { color: var(--muted); font-size: 0.85rem; line-height: 1.6; margin-top: 12px; }

.guide-note { border-left: 3px solid var(--accent3); background: rgba(90,71,209,0.06); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; font-size: 0.95rem; line-height: 1.75; }

.guide-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, var(--surface) 0%, rgba(8,127,107,0.07) 100%); border: 1px solid rgba(8,127,107,0.25); border-radius: var(--radius-lg); padding: 22px 26px; margin: 32px 0; }
.guide-cta p { margin: 0 !important; color: var(--muted); }
.guide-cta strong { color: #111827; }

.guide-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.guide-faq summary { cursor: pointer; color: #111827; font-weight: 500; }
.guide-faq details p { margin: 12px 0 0; }

.guide-refs { list-style: none; margin: 0 !important; padding: 0; }
.guide-refs li { font-size: 0.86rem; color: var(--muted); line-height: 1.6; padding: 8px 0; border-top: 1px solid var(--border); margin: 0; }

.guide-related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0 8px; }
@media (max-width: 560px) { .guide-related { grid-template-columns: 1fr; } }
.guide-related a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; color: var(--text); transition: border-color var(--transition); }
.guide-related a:hover { border-color: var(--accent); color: var(--text); }
.guide-related span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; line-height: 1.5; }

.guide-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 80px; }
.guide-toc h4 { margin-bottom: 12px; }
.guide-toc a { display: block; color: var(--muted); font-size: 0.86rem; padding: 5px 8px; border-radius: var(--radius); }
.guide-toc a:hover { color: var(--accent); background: var(--surface2); }
.guide-toc .btn { margin-top: 16px; width: 100%; justify-content: center; color: #ffffff; }

/* Link from a tool page to its guide */
.tool-guide-link { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid rgba(8,127,107,0.25); border-radius: var(--radius-lg); padding: 22px 26px; margin-top: 28px; }
.tool-guide-link p { margin: 0; color: var(--muted); max-width: 720px; }
.tool-guide-link strong { color: #111827; font-weight: 500; }

/* Peptide profile fact sheet */
.profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 24px 0 8px; }
@media (max-width: 560px) { .profile-facts { grid-template-columns: minmax(0,1fr); } }
.profile-facts > div { background: var(--surface); padding: 12px 16px; min-width: 0; }
.profile-facts > div.wide { grid-column: 1 / -1; }
.profile-facts .pf-label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 2px; }
.profile-facts .pf-value { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text); word-break: break-word; }
.profile-facts .pf-value.seq { color: var(--accent); letter-spacing: 0.04em; }
.profile-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
