/* RUO Education: editorial light theme with a teal accent shared with Executive Peptides. */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1b2421;
  --muted: #5d6b67;
  --border: #e1e0d8;
  --accent: #127a6c;
  --accent-ink: #0d5a50;
  --accent-soft: #e2f2ef;
  --cta-bg: #0b1210;
  --cta-text: #e4f3f0;
  --cta-accent: #25e2d2;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1513; --surface: #161e1b; --text: #e4ece9; --muted: #98aaa5; --border: #2a3632;
    --accent: #4fd1c1; --accent-ink: #7fe0d4; --accent-soft: #17302b; --cta-bg: #0a2420;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.65; font-size: 17px; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.82rem; word-break: break-all; }
[hidden] { display: none !important; }

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand .mark { background: var(--accent); color: var(--surface); font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 6px; }
nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.92rem; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--accent); }
nav .nav-shop { color: var(--accent); font-weight: 600; }
.site-footer { border-top: 1px solid var(--border); margin-top: 72px; padding: 32px 0; font-size: 0.88rem; color: var(--muted); }
.site-footer p + p { margin-top: 8px; }

/* Home */
.hero { padding: 64px 0 32px; }
.kicker, .cta-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 8px 0 12px; max-width: 16ch; }
.dek { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.tools { margin-top: 28px; }
#q { width: 100%; max-width: 520px; padding: 13px 16px; font: inherit; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
#q:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font: inherit; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.primer { display: block; padding: 14px 18px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; margin-bottom: 16px; }
.cat { padding-top: 40px; }
.cat-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 20px; }
.cat-head h2 { font-size: 1.6rem; }
.cat-head p { color: var(--muted); font-size: 0.92rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.card-ev { align-self: flex-start; font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.card-more { color: var(--accent); font-weight: 600; font-size: 0.88rem; }

/* Article */
.article { padding-top: 32px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }
.article header h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 6px 0 12px; }
.evidence { margin-top: 16px; display: inline-flex; gap: 10px; align-items: center; font-size: 0.9rem; font-weight: 600; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.evidence span { background: var(--accent); color: var(--surface); padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; margin-top: 40px; align-items: start; }
.prose { max-width: 68ch; }
.prose.narrow { margin-top: 32px; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.disclaimer { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 32px; }
.side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.specs, .related { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.specs h2, .related h2 { font-size: 1.05rem; margin-bottom: 12px; }
.specs table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.specs th { text-align: left; color: var(--muted); font-weight: 500; padding: 7px 10px 7px 0; vertical-align: top; white-space: nowrap; }
.specs td { padding: 7px 0; border-bottom: 1px solid var(--border); }
.specs tr:last-child td { border-bottom: 0; }
.related ul { list-style: none; }
.related li { padding: 5px 0; }
.side-shop { display: block; text-align: center; padding: 12px; border-radius: 10px; border: 1px solid var(--accent); font-weight: 600; text-decoration: none; }
.side-shop:hover { background: var(--accent-soft); }

/* Call to action */
.cta, .shop-band { background: var(--cta-bg); color: var(--cta-text); border-radius: 16px; padding: 28px; margin: 40px 0; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h3, .shop-band h2 { font-size: 1.4rem; margin: 4px 0 8px; color: #fff; }
.cta p, .shop-band p { color: #b9ccc7; max-width: 52ch; margin: 0; }
.cta .cta-kicker, .shop-band .cta-kicker { color: var(--cta-accent); }
.btn { display: inline-block; background: var(--cta-accent); color: #0b1210; font-weight: 700; padding: 13px 22px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #b3f3ed; color: #0b1210; }
.shop-band { margin-top: 64px; }

@media (max-width: 860px) {
  .article-grid { grid-template-columns: 1fr; gap: 24px; }
  .side { position: static; }
  .btn { white-space: normal; text-align: center; }
}

/* Key points summary at the top of each article */
.points { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin-bottom: 32px; }
.prose .points h2 { font-size: 1.15rem; margin: 0 0 10px; }
.prose .points ul { margin: 0; }
.prose .points li { margin-bottom: 6px; }
