/* ===== PepFácil — Design System ===== */

:root {
  --brand-900: #0b2e2b;
  --brand-800: #0f3d38;
  --brand-700: #145a4f;
  --brand-600: #1a7a68;
  --brand-500: #21987f;
  --brand-400: #3ab596;
  --brand-300: #7fd4bc;
  --brand-100: #e3f6f0;

  --accent-600: #d9622b;
  --accent-500: #ef7f3f;
  --accent-100: #fdece0;

  --ink-900: #10201d;
  --ink-700: #33463f;
  --ink-500: #5c6f68;
  --ink-300: #96a9a1;
  --ink-100: #e7efec;

  --bg: #f7faf8;
  --surface: #ffffff;
  --border: #e2ece7;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 32, 29, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 32, 29, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 46, 43, 0.16);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--brand-900);
}

p { margin: 0 0 1em; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.badge--accent { color: var(--accent-600); background: var(--accent-100); }
.badge--light { color: #fff; background: rgba(255,255,255,0.16); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent-600);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--accent-500); color: #fff; }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn--outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn--ghost {
  background: var(--brand-100);
  color: var(--brand-700);
}
.btn--ghost:hover { background: var(--brand-300); color: var(--brand-900); }

.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ===== Top disclaimer bar ===== */
.topbar {
  background: var(--brand-900);
  color: #dcefe9;
  font-size: 0.82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 24px;
  text-align: center;
  flex-wrap: wrap;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 67px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-900);
}
.logo:hover { color: var(--brand-900); }
.logo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 1.2rem;
}
.logo__text strong { color: var(--accent-600); }

.header__right { display: flex; align-items: center; gap: 24px; align-self: stretch; }

.nav { display: flex; align-items: center; gap: 26px; align-self: stretch; }
.nav__item { display: flex; align-items: center; align-self: stretch; }
.nav__link {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-700);
}
.nav__link:hover { color: var(--brand-700); }
.nav__link--cta {
  background: var(--brand-600);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav__link--cta:hover { background: var(--brand-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  background: radial-gradient(circle at 15% 20%, var(--brand-700), var(--brand-900) 65%);
  color: #fff;
  padding: 44px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  letter-spacing: -0.01em;
}
.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  max-width: 480px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero__stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: #fff;
}
.hero__stat span { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

.hero__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero__card h3 { color: #fff; font-size: 1.1rem; }
.hero__card p { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.hero__card ol {
  margin: 16px 0 0;
  padding-left: 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
.hero__card li { margin-bottom: 8px; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); }
.section__head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section__head p { color: var(--ink-500); }
.section__head--left { margin: 0 0 40px; text-align: left; }

/* ===== Cards Grid ===== */
.grid {
  display: grid;
  gap: 22px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: 0.92rem; margin-bottom: 14px; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.chip {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
}
.chip--accent { background: var(--accent-100); color: var(--accent-600); }

/* ===== Why us ===== */
.why {
  background: var(--brand-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.why h2 { color: #fff; }
.why p { color: rgba(255,255,255,0.75); }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}
.why__list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ===== Calculator ===== */
.calc {
  background: linear-gradient(160deg, var(--brand-100), #fff 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.field-row { display: flex; gap: 10px; }
.field-row input { flex: 1; }
.field select, .field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink-900);
}
.field select { max-width: 110px; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-500);
}

.calc__result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.calc__result h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  margin-bottom: 18px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.result-row:last-child { border-bottom: none; }
.result-row span { color: var(--ink-500); font-size: 0.88rem; }
.result-row strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--brand-700); }
.calc__note {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  font-family: var(--font-body);
}
.faq-item__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item__answer p { padding: 0 4px 20px; color: var(--ink-500); }
.faq-item.is-open .faq-item__answer { max-height: 640px; }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }

/* ===== Table (dosage charts) ===== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
table.dose-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
.dose-table th, .dose-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.dose-table th {
  background: var(--brand-100);
  color: var(--brand-800);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dose-table tr:last-child td { border-bottom: none; }

/* ===== Alert / disclaimer boxes ===== */
.alert {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.9rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert--warn {
  background: var(--accent-100);
  color: #7a3712;
  border: 1px solid #f3c9a3;
}
.alert--info {
  background: var(--brand-100);
  color: var(--brand-800);
  border: 1px solid var(--brand-300);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--brand-700); }

/* ===== A-Z index ===== */
.az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 36px;
}
.az-nav a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-700);
}
.az-nav a:hover { background: var(--brand-100); }

.az-group { margin-bottom: 8px; }
.az-group__letter {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--brand-500);
  margin: 32px 0 14px;
}
.az-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin-bottom: 8px; }
.az-list a {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-700);
  font-size: 0.94rem;
}
.az-list a:hover { color: var(--brand-700); }
.az-list a span { color: var(--ink-300); font-size: 0.8rem; }

/* ===== Filter chips ===== */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
}
.filter-chip.is-active, .filter-chip:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

/* ===== Contact / CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-600), #b7461a);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }

/* ===== Footer ===== */
.footer {
  background: var(--brand-900);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-top: 12px; }
.footer__brand .logo__text { color: #fff; }
.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer__links a:hover { color: #fff; }
.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin: 24px 0 0;
}
.footer__legal {
  max-width: 900px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ===== Blog ===== */
.post-card__date { font-size: 0.8rem; color: var(--ink-300); margin-bottom: 8px; }

/* ===== Guide article ===== */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article h2 { margin-top: 2em; font-size: 1.5rem; }
.article h3 { margin-top: 1.6em; font-size: 1.15rem; }
.article ul, .article ol { padding-left: 22px; color: var(--ink-700); }
.article li { margin-bottom: 8px; }
.article__lead {
  font-size: 1.1rem;
  color: var(--ink-500);
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; padding: 32px; }
  .calc__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 24px; gap: 4px; transform: translateX(-100%); transition: transform 0.25s ease; overflow-y: auto; }
  .nav.is-open { transform: translateX(0); }
  .nav__link { width: 100%; padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header__right { gap: 12px; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .why { padding: 26px; }
  .cta-banner { padding: 32px; flex-direction: column; text-align: center; }
  .footer__inner { grid-template-columns: 1fr; }
  .az-list { grid-template-columns: 1fr; }
  .calc { padding: 24px; }
}

/* =====================================================================
   Menu desktop (mega menu de protocolos)
   ===================================================================== */
.nav__item--mega > .nav__link { display: inline-flex; align-items: center; gap: 6px; height: 100%; }
.nav__item--mega > .nav__link::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid var(--ink-300);
  border-bottom: 2px solid var(--ink-300);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.nav__caret { display: none; }

.mega {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px rgba(11, 46, 43, 0.14);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.mega__inner {
  display: block;
  columns: 4;
  column-gap: 36px;
  padding-top: 26px;
  padding-bottom: 8px;
}
.mega__cat { break-inside: avoid; margin-bottom: 22px; }
.mega__cat h4 {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brand-700);
  margin: 0 0 8px;
}
.mega__cat h4 svg { width: 18px; height: 18px; flex-shrink: 0; }
.mega__cat a, .mega__cat span.mega__soon {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 4px 10px; margin: 0 -10px;
  border-radius: 8px;
  font-size: 0.88rem; color: var(--ink-700);
}
.mega__cat a:hover { background: var(--brand-100); color: var(--brand-800); }
.mega__cat span.mega__soon { color: var(--ink-300); cursor: default; }
.mega__tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-300); background: var(--ink-100); padding: 2px 8px; border-radius: 999px; }
.mega__tag--blend { color: var(--brand-700); background: var(--brand-100); }
.mega__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 14px; padding-bottom: 20px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  font-size: 0.86rem; color: var(--ink-500);
}
.mega__foot a { font-weight: 700; }

@media (min-width: 721px) {
  .nav__item--mega:hover .mega,
  .nav__item--mega:focus-within .mega { display: block; }
  .nav__item--mega:hover > .nav__link::after,
  .nav__item--mega:focus-within > .nav__link::after { transform: rotate(225deg) translateY(-2px); }
  .nav__item--mega:hover > .nav__link { color: var(--brand-700); }
}

/* =====================================================================
   Página de protocolo
   ===================================================================== */
.pro-hero {
  background: radial-gradient(circle at 12% 0%, var(--brand-700), var(--brand-900) 70%);
  color: #fff;
  padding: 28px 0 88px;
}
.breadcrumb--light, .breadcrumb--light a { color: rgba(255,255,255,0.7); }
.breadcrumb--light a:hover { color: #fff; }
.pro-hero__row { display: flex; gap: 24px; align-items: flex-start; }
.pro-hero__icon {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--brand-300);
}
.pro-hero__icon svg { width: 34px; height: 34px; }
.pro-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 8px 0 12px; letter-spacing: -0.01em; }
.pro-hero__lead { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 720px; margin: 0; }
.pro-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-light {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.14); color: #fff;
}
.chip-light--accent { background: var(--accent-600); }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: -52px 0 28px;
  position: relative;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex; gap: 14px; align-items: center;
  box-shadow: var(--shadow-md);
}
.fact__icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-100); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
}
.fact__icon svg { width: 21px; height: 21px; }
.fact small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); font-weight: 700; }
.fact strong { display: block; font-family: var(--font-head); font-size: 0.98rem; color: var(--brand-900); line-height: 1.3; }

.protocol-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas: "main toc";
  gap: 56px;
  align-items: start;
  margin-top: 28px;
}
.protocol-layout > .prose { grid-area: main; }
.protocol-layout > .toc { grid-area: toc; }

.toc { position: sticky; top: 92px; }
.toc__title { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc a {
  display: block; padding: 8px 14px; margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 0.9rem; font-weight: 600; color: var(--ink-500);
}
.toc a:hover { color: var(--brand-700); }
.toc a.is-active { color: var(--brand-700); border-left-color: var(--brand-500); background: linear-gradient(90deg, var(--brand-100), transparent); }
.toc a.toc__cta {
  display: block; margin: 18px 0 0; padding: 16px;
  border: 0; border-radius: var(--radius-md); background: var(--brand-900); color: rgba(255,255,255,0.8);
  font-size: 0.86rem; font-weight: 500;
}
.toc__cta strong { display: block; font-family: var(--font-head); color: #fff; margin-bottom: 4px; font-size: 0.95rem; }
.toc a.toc__cta:hover { color: #fff; background: var(--brand-800); }

.prose { font-size: 1.02rem; line-height: 1.75; color: var(--ink-700); min-width: 0; }
.prose .block { scroll-margin-top: 90px; margin-bottom: 44px; }
.block__title { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; margin: 0 0 16px; }
.block__icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand-100); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
}
.block__icon svg { width: 20px; height: 20px; }

.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.notes li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent-500);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.96rem; line-height: 1.55;
}
.notes svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent-600); margin-top: 2px; }

.alert svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }

.refs { list-style: none; counter-reset: ref; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.refs li {
  counter-increment: ref; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px 14px 52px; font-size: 0.9rem; line-height: 1.5;
}
.refs li::before {
  content: counter(ref); position: absolute; left: 14px; top: 14px;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--brand-100); color: var(--brand-700);
  font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
}
.refs__title { display: block; font-weight: 600; color: var(--ink-900); }
.refs__meta { color: var(--ink-500); }
.refs a.refs__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 700; font-size: 0.82rem; }
.refs a svg, .src-links a svg { width: 14px; height: 14px; }
.src-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.src-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 600;
  background: var(--brand-100); color: var(--brand-800);
}
.src-links a:hover { background: var(--brand-300); }
.small-note { font-size: 0.84rem; color: var(--ink-500); line-height: 1.55; }

.vial-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.vial-picker .filter-chip { min-height: 40px; }

.syringe { margin: 4px 0 18px; }
.syringe__label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-500); margin-bottom: 6px; font-weight: 600; }
.syringe__bar {
  position: relative; height: 30px; border-radius: 8px;
  background: #fff; border: 2px solid var(--brand-700); overflow: hidden;
}
.syringe__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--brand-300), var(--brand-500)); transition: width 0.25s ease; }
.syringe__ticks {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 2px), rgba(11,46,43,0.45) calc(10% - 2px), rgba(11,46,43,0.45) 10%);
}
.syringe__scale { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--ink-500); margin-top: 4px; }
.calc__warn { display: none; margin-top: 12px; font-size: 0.84rem; color: #7a3712; background: var(--accent-100); border-radius: 8px; padding: 10px 12px; }
.calc__warn.is-visible { display: block; }

/* busca / lista de protocolos */
.search {
  position: relative; max-width: 420px; margin-bottom: 18px;
}
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-300); }
.search input {
  width: 100%; padding: 13px 14px 13px 42px; font-size: 1rem; font-family: var(--font-body);
  border: 1.5px solid var(--border); border-radius: 999px; background: #fff; color: var(--ink-900);
}
.search input:focus { outline: none; border-color: var(--brand-500); }
.card--soon { opacity: 0.62; }
.card--soon:hover { transform: none; box-shadow: var(--shadow-sm); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card__top .card__icon { margin: 0; width: 42px; height: 42px; }
.card__top .card__icon svg { width: 20px; height: 20px; color: var(--brand-600); }
.btn--disabled { background: var(--ink-100); color: var(--ink-500); pointer-events: none; }
.list-count { font-size: 0.88rem; color: var(--ink-500); margin: 0 0 18px; }

/* =====================================================================
   Responsivo (protocolo + menu)
   ===================================================================== */
@media (max-width: 1024px) {
  .protocol-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toc" "main"; gap: 20px; margin-top: 8px; }
  .toc {
    position: sticky; top: 67px; z-index: 50;
    margin: 0 -24px; padding: 8px 24px;
    background: rgba(247,250,248,0.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }
  .toc__title, .toc__cta { display: none; }
  .toc ol { display: flex; gap: 8px; overflow-x: auto; border: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a {
    white-space: nowrap; margin: 0; padding: 8px 14px; min-height: 38px;
    border: 1.5px solid var(--border); border-radius: 999px; background: #fff;
  }
  .toc a.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .mega__inner { columns: 2; }
}

@media (max-width: 720px) {
  .pro-hero { padding: 20px 0 76px; }
  .pro-hero__row { flex-direction: column; gap: 14px; }
  .pro-hero__icon { width: 56px; height: 56px; border-radius: 16px; }
  .pro-hero__icon svg { width: 28px; height: 28px; }
  .pro-hero__lead { font-size: 0.98rem; }
  .facts { gap: 10px; margin-top: -48px; }
  .fact { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .fact__icon { width: 36px; height: 36px; }
  .fact strong { font-size: 0.9rem; }
  .prose { font-size: 1rem; line-height: 1.7; }
  .block__title { font-size: 1.22rem; }
  .prose .block { margin-bottom: 36px; scroll-margin-top: 130px; }

  /* menu mobile: submenu expansível */
  .nav__item { width: 100%; flex-wrap: wrap; align-self: auto; }
  .nav__item--mega > .nav__link { flex: 1; height: auto; }
  .nav__item--mega > .nav__link::after { display: none; }
  .nav__caret {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: var(--ink-700);
  }
  .nav__caret svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
  .nav__item--mega.is-open .nav__caret svg { transform: rotate(180deg); }
  .mega { position: static; width: 100%; box-shadow: none; border: 0; max-height: none; overflow: visible; }
  .nav__item--mega.is-open .mega { display: block; }
  .mega__inner { columns: 1; padding: 8px 0 8px 8px; }
  .mega__cat { margin-bottom: 16px; }
  .mega__cat a, .mega__cat span.mega__soon { padding: 11px 10px; font-size: 0.95rem; }
  .mega__foot { padding: 12px 0 8px; margin-top: 0; }

  /* tabelas viram cartões */
  .dose-table.dose-table--stack { min-width: 0; }
  .dose-table--stack thead { display: none; }
  .dose-table--stack tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .dose-table--stack tr:last-child { border-bottom: 0; }
  .dose-table--stack td { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border: 0; font-size: 0.92rem; }
  .dose-table--stack td::before { content: attr(data-label); color: var(--ink-500); font-weight: 600; font-size: 0.8rem; }
  .dose-table--stack td:first-child { font-weight: 700; color: var(--brand-800); font-size: 1rem; }

  /* campos confortáveis no toque (16px evita zoom no iOS) */
  .field input, .field select { font-size: 16px; min-height: 48px; }
  .field select { max-width: 96px; }
  .btn { min-height: 46px; }
  .result-row strong { font-size: 1.1rem; text-align: right; }
  .refs li { padding-left: 48px; }
  .search { max-width: none; }
}

/* =====================================================================
   Protocolo simplificado (leigo): passos, resposta grande, tabela, preparo
   ===================================================================== */
.facts--text { grid-template-columns: 0.8fr 1.4fr; }
.fact--text { align-items: flex-start; }
.fact--text strong { font-family: var(--font-body); font-weight: 500; font-size: 0.93rem; line-height: 1.5; color: var(--ink-700); }

.calc--simple { padding: 28px; }
.calc--simple .calc__grid { grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
.step { display: flex; gap: 14px; margin-bottom: 22px; }
.step__n {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-600); color: #fff; font-family: var(--font-head); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step__body { flex: 1; min-width: 0; }
.step__q { font-weight: 700; color: var(--brand-900); margin: 4px 0 10px; line-height: 1.35; }
.step__hint { font-size: 0.82rem; color: var(--ink-500); margin: 8px 0 0; line-height: 1.45; }
.field-row--small { margin-top: 10px; max-width: 260px; align-items: center; }
.field-suffix { color: var(--ink-500); font-weight: 600; padding: 0 6px; }

.answer-card { text-align: center; }
.answer__label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--ink-500); margin: 0; }
.answer__value { margin: 4px 0 0; }
.answer__value strong { font-family: var(--font-head); font-size: clamp(2.2rem, 6vw, 3rem); color: var(--brand-700); line-height: 1.1; }
.answer__sub { color: var(--ink-500); font-size: 0.86rem; margin: 2px 0 14px; }
.answer-card .result-row { text-align: left; }
.answer-card .result-row strong { font-size: 1.02rem; }
.answer-card .syringe { margin-bottom: 14px; }

.fold { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 0 16px; }
.fold > summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--brand-700); font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; transition: transform 0.2s ease; }
.fold[open] > summary::after { transform: rotate(45deg); }
.fold[open] { padding-bottom: 14px; }
.glossary dl { margin: 0; display: grid; gap: 10px; }
.glossary dt { font-weight: 700; color: var(--brand-900); }
.glossary dd { margin: 0 0 6px; color: var(--ink-700); font-size: 0.95rem; }

.how { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: how; }
.how li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.how__icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-100); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.how__icon svg { width: 21px; height: 21px; }
.how strong { display: block; color: var(--brand-900); margin-bottom: 2px; }
.how p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-500); }

.dose-table td strong { color: var(--brand-700); }
.prose .alert { margin-top: 16px; line-height: 1.55; font-size: 0.93rem; }

@media (max-width: 1024px) {
  .facts--text { grid-template-columns: 1fr; margin-top: -48px; }
  .calc--simple .calc__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .fact--text { flex-direction: row; align-items: flex-start; }
  .calc--simple { padding: 20px 16px; }
  .how { grid-template-columns: 1fr; }
  .field-row--small { max-width: none; }
  .vial-picker .filter-chip { flex: 1 1 auto; min-height: 46px; justify-content: center; }
}

.field-row--small { display: flex; gap: 10px; }
.field-row--small input, .field-row--small select {
  padding: 12px 14px; min-height: 48px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; font-family: var(--font-body); background: #fff; color: var(--ink-900);
}
.field-row--small input { flex: 1; min-width: 0; width: 100%; }
.field-row--small select { width: auto; min-width: 84px; }
.field-row--small input:focus, .field-row--small select:focus { outline: none; border-color: var(--brand-500); }
@media (max-width: 1024px) { .toc a.toc__cta { display: none; } }

/* menu mobile: painel preso ao cabeçalho (o fixed quebrava por causa do backdrop-filter) */
@media (max-width: 720px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; bottom: auto;
    max-height: calc(100vh - 67px);
    visibility: hidden;
    border-top: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(11, 46, 43, 0.16);
    transition: transform 0.25s ease, visibility 0.25s;
  }
  .nav.is-open { visibility: visible; }
}

/* =====================================================================
   Benefícios, protocolo (uso relatado) e escala de evidência
   ===================================================================== */
.pro-hero--compact { padding-bottom: 36px; }
.benefits { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.benefit__icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-600); color: #fff; display: flex; align-items: center; justify-content: center; }
.benefit__icon svg { width: 18px; height: 18px; stroke-width: 3; }
.benefits strong { display: block; color: var(--brand-900); margin-bottom: 2px; line-height: 1.3; }
.benefits p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-500); }

.proto-setup { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 18px 0; }
.proto-setup__label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); margin: 0 0 8px; }
.dose-table--proto td, .dose-table--proto th { vertical-align: top; }
.dose-table--proto td strong { display: block; }
.dose-table--proto .proto-un strong { color: var(--brand-700); }
.badge-base { display: inline-block; margin-top: 6px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; }
.badge-base--relato { background: var(--accent-100); color: var(--accent-600); }
.badge-base--ensaio { background: var(--brand-100); color: var(--brand-700); }
a.badge-base--ensaio:hover { background: var(--brand-300); }

.evidence { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.evidence li { position: relative; padding: 12px 10px; border-radius: var(--radius-sm); background: var(--ink-100); color: var(--ink-500); font-size: 0.8rem; font-weight: 600; line-height: 1.3; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.evidence li span { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 0.8rem; }
.evidence li.is-reached { background: var(--brand-100); color: var(--brand-800); }
.evidence li.is-reached span { background: var(--brand-500); color: #fff; }
.evidence li.is-current { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-md); }
.evidence li.is-current span { background: #fff; color: var(--brand-700); }

@media (max-width: 720px) {
  .benefits { grid-template-columns: 1fr; }
  .evidence { grid-template-columns: repeat(2, 1fr); }
  .dose-table--proto td:first-child strong { display: inline; }
  .dose-table--proto td:first-child { flex-direction: column; align-items: flex-start; gap: 4px; }
  .dose-table--proto td:first-child::before { display: none; }
}

.proto-setup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; }
.proto-setup__field { min-width: 220px; }
.proto-setup__field .field-row--small { margin-top: 0; max-width: 220px; }
.proto-setup__note { flex: 1 1 280px; margin: 0; font-size: 0.88rem; color: var(--ink-500); line-height: 1.5; }

/* ===== Busca de peptídeo na página inicial ===== */
.hero-search { margin: 26px 0 22px; max-width: 540px; position: relative; z-index: 5; }
.hero-search__label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: #fff; margin-bottom: 8px; }
.hero-search__box { position: relative; }
.hero-search__box > svg { position: absolute; left: 18px; top: 28px; transform: translateY(-50%); width: 22px; height: 22px; color: var(--brand-700); pointer-events: none; }
.hero-search__box input {
  width: 100%; height: 56px; padding: 0 18px 0 52px; border: 2px solid transparent; border-radius: 14px;
  font: inherit; font-size: 1.05rem; color: var(--ink-900, #14231b); background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.hero-search__box input:focus { outline: none; border-color: var(--accent-500, #f59e0b); }
.hero-search__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,0.28); max-height: 340px; overflow-y: auto;
}
.hero-search__list[hidden] { display: none; }
.hero-search__list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 10px; color: var(--ink-900, #14231b); text-decoration: none; font-weight: 600;
}
.hero-search__list a small { font-weight: 500; font-size: 0.78rem; color: var(--ink-500, #5b6b62); white-space: nowrap; }
.hero-search__list li.is-active a, .hero-search__list a:hover { background: var(--brand-50, #e8f5ee); }
.hero-search__list mark { background: none; color: var(--brand-700); font-weight: 800; }
.hero-search__empty { padding: 14px; color: var(--ink-500, #5b6b62); font-size: 0.92rem; }
.hero-search__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.hero-search__chips span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.hero-search__chip {
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); color: #fff; font: inherit; font-size: 0.85rem;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.hero-search__chip:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 720px) {
  .hero-search { margin: 20px 0 18px; }
  .hero-search__box input { height: 52px; font-size: 1rem; }
  .hero-search__box > svg { top: 26px; }
}

@media (max-width: 720px) {
  .back-to-top { width: 40px; height: 40px; bottom: 14px; right: 14px; font-size: 1rem; opacity: 0; }
  .back-to-top.is-visible { opacity: 0.85; }
}

/* ===== Imagens e ilustrações ===== */
.post-cover { margin: 8px 0 26px; border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-100); box-shadow: var(--shadow-sm); }
.post-cover img { width: 100%; height: auto; }
.fig { margin: 26px 0; }
.fig img { width: 100%; height: auto; border-radius: var(--radius-md); background: var(--brand-100); }
.fig figcaption { margin-top: 8px; font-size: 0.86rem; color: var(--ink-500); text-align: center; }
.article .table-wrap { margin: 18px 0; overflow-x: auto; }
.post-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.post-table th { background: var(--brand-100); color: var(--brand-800); text-align: left; padding: 10px 14px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
.post-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--ink-700); }
.article .alert { margin: 22px 0; }
.related-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 26px; }
.related-post { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; color: var(--ink-900); font-weight: 600; font-size: 0.9rem; line-height: 1.35; }
.related-post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--brand-100); }
.related-post span { padding: 0 14px 14px; }
.related-post:hover { box-shadow: var(--shadow-md); }
.card--post { padding: 0 0 22px; overflow: hidden; display: flex; flex-direction: column; }
.card--post > *:not(.card__media) { margin-left: 22px; margin-right: 22px; }
.card--post .post-card__date { margin-top: 16px; }
.card--post .btn { margin-top: auto; }
.card__media { display: flex; align-items: center; justify-content: center; background: var(--brand-100); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--post { aspect-ratio: 16 / 10; }
.card--vial { padding: 0 0 22px; overflow: hidden; display: flex; flex-direction: column; }
.card--vial > *:not(.card__media) { margin-left: 22px; margin-right: 22px; }
.card--vial .card__media { aspect-ratio: 1 / 0.62; margin: 0 0 16px; }
.card--vial .card__media img { width: auto; height: 100%; padding: 6px 0; object-fit: contain; }
.card--vial .btn, .card--vial .btn--disabled { margin-top: auto; }
.card--vial .card__top { margin-bottom: 8px; }
.pro-hero__img { width: 150px; height: 150px; flex-shrink: 0; margin-left: auto; border-radius: 22px; background: rgba(255,255,255,0.12); box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.pro-hero__row > div { flex: 1; min-width: 0; }
.hero__art { width: 100%; max-width: 520px; margin: 0 auto 18px; border-radius: var(--radius-lg); box-shadow: 0 18px 40px rgba(0,0,0,0.22); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.how__step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.how__step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.how__step div { padding: 18px 20px 22px; }
.how__n { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-600); color: #fff; font-weight: 800; align-items: center; justify-content: center; font-size: 0.9rem; margin-bottom: 8px; }
.how__step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.how__step p { margin: 0; color: var(--ink-500); font-size: 0.95rem; }
.guide-cover { margin: 8px 0 26px; border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-100); }
.guide-cover img { width: 100%; height: auto; }
.card--guide { padding: 0 0 22px; overflow: hidden; display: flex; flex-direction: column; }
.card--guide > *:not(.card__media) { margin-left: 22px; margin-right: 22px; }
.card--guide .card__media { aspect-ratio: 16 / 10; margin-bottom: 16px; }
.card--guide .btn { margin-top: auto; }
.proto-help { margin: 14px 0 6px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--brand-100); color: var(--brand-800); font-size: 0.92rem; }
.proto-help a { font-weight: 700; text-decoration: underline; }
@media (max-width: 900px) {
  .related-posts, .how { grid-template-columns: 1fr; }
  .related-post { flex-direction: row; align-items: center; }
  .related-post img { width: 110px; aspect-ratio: 1; flex-shrink: 0; }
  .related-post span { padding: 10px 12px 10px 0; }
}
@media (max-width: 720px) {
  .pro-hero__img { order: -1; width: 92px; height: 92px; margin: 0; border-radius: 18px; }
  .pro-hero__icon { display: none; }
  .hero__art { max-width: 100%; }
}
.card--post > .btn, .card--vial > .btn, .card--vial > .btn--disabled, .card--guide > .btn { width: auto; align-self: stretch; }
.card--vial > p, .card--post > p, .card--guide > p { flex: 0 0 auto; }
.card--vial .card__media { aspect-ratio: 1 / 0.74; }
.card--vial .card__media img { padding: 4px 0 0; }

/* =====================================================================
   Painel lateral de protocolos (celular)
   ===================================================================== */
.proto-open { display: none; }
.pdrawer { display: none; }
@media (max-width: 720px) {
  .proto-open {
    display: inline-flex; align-items: center; gap: 7px;
    height: 40px; padding: 0 14px 0 12px; border: 0; border-radius: 999px;
    background: var(--brand-600); color: #fff; font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
    box-shadow: 0 2px 8px rgba(26, 122, 104, 0.3);
  }
  .proto-open svg { width: 18px; height: 18px; }
  .header__right { gap: 8px; }
  .nav__item--mega .mega { display: none !important; }
  .nav__item--mega > .nav__link { flex: 1; }

  .pdrawer { display: block; position: fixed; inset: 0; z-index: 300; }
  .pdrawer[hidden] { display: none; }
  .pdrawer__backdrop { position: absolute; inset: 0; background: rgba(11, 46, 43, 0.55); opacity: 0; transition: opacity 0.25s ease; }
  .pdrawer__panel {
    position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px);
    background: #fff; display: flex; flex-direction: column;
    transform: translateX(-100%); transition: transform 0.25s ease;
    box-shadow: 8px 0 32px rgba(11, 46, 43, 0.25);
  }
  .pdrawer.is-open .pdrawer__backdrop { opacity: 1; }
  .pdrawer.is-open .pdrawer__panel { transform: translateX(0); }

  .pdrawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 12px 18px; }
  .pdrawer__head strong { display: block; font-size: 1.15rem; color: var(--ink-900); }
  .pdrawer__head span { font-size: 0.82rem; color: var(--ink-500); }
  .pdrawer__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink-100); color: var(--ink-700); font-size: 1.7rem; line-height: 1; cursor: pointer; }
  .pdrawer__search { padding: 0 16px 12px; border-bottom: 1px solid var(--border); }
  .pdrawer__search input {
    width: 100%; height: 48px; padding: 0 14px; border: 2px solid var(--border); border-radius: 12px;
    font: inherit; font-size: 16px; background: var(--bg); color: var(--ink-900);
  }
  .pdrawer__search input:focus { outline: none; border-color: var(--brand-500); background: #fff; }

  .pdrawer__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 12px; -webkit-overflow-scrolling: touch; }
  .pdrawer__cat { border-bottom: 1px solid var(--border); }
  .pdrawer__cat[hidden] { display: none; }
  .pdrawer__cat summary {
    display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 8px;
    list-style: none; cursor: pointer; font-weight: 700; color: var(--ink-900);
  }
  .pdrawer__cat summary::-webkit-details-marker { display: none; }
  .pdrawer__cat summary svg { width: 22px; height: 22px; color: var(--brand-600); flex-shrink: 0; }
  .pdrawer__cat-name { flex: 1; }
  .pdrawer__cat summary em { font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--brand-700); background: var(--brand-100); padding: 2px 9px; border-radius: 999px; }
  .pdrawer__chev { width: 9px; height: 9px; border-right: 2px solid var(--ink-500); border-bottom: 2px solid var(--ink-500); transform: rotate(45deg); transition: transform 0.2s ease; margin: 0 4px 3px 2px; }
  .pdrawer__cat[open] .pdrawer__chev { transform: rotate(225deg); margin-bottom: -3px; }
  .pdrawer__items { padding: 0 0 10px 6px; }
  .pdrawer__items a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 48px; padding: 10px 12px; border-radius: 10px;
    color: var(--ink-900); font-weight: 600; font-size: 1rem; text-decoration: none;
  }
  .pdrawer__items a[hidden] { display: none; }
  .pdrawer__items a:active { background: var(--brand-100); }
  .pdrawer__items a[aria-current] { background: var(--brand-100); color: var(--brand-800); }
  .pdrawer__empty { padding: 28px 22px; text-align: center; color: var(--ink-500); }
  .pdrawer__foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
  .pdrawer__foot a { font-weight: 700; color: var(--brand-700); text-decoration: none; display: block; padding: 6px 0; }
  html.pdrawer-lock, html.pdrawer-lock body { overflow: hidden; }
}
@media (max-width: 360px) { .proto-open { padding: 0 11px; font-size: 0.84rem; } .proto-open svg { display: none; } }

/* =====================================================================
   Ajustes de celular: botão da dose, alvos de toque e fontes
   ===================================================================== */
.pro-hero__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--accent-500); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 6px 18px rgba(239, 127, 63, 0.35);
}
.pro-hero__cta:hover { background: var(--accent-600); color: #fff; }

/* a área de toque cresce sem mudar o visual */
a.badge-base--ensaio { position: relative; }
a.badge-base--ensaio::after { content: ""; position: absolute; inset: -10px -6px; }
.refs a.refs__link { position: relative; }
.refs a.refs__link::after { content: ""; position: absolute; inset: -12px -6px; }

@media (max-width: 720px) {
  .pro-hero__cta { display: flex; justify-content: center; width: 100%; }
  .nav-toggle { width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; margin-right: -6px; }
  .footer__links a { display: flex; align-items: center; min-height: 44px; }
  .footer__links { gap: 0; }
  .dose-table th { font-size: 0.8rem; }
  .badge-base { font-size: 0.75rem; }
  .chip-light, .chip { font-size: 0.78rem; }
  .proto-setup__label { font-size: 0.82rem; }
  .back-to-top { bottom: 18px; }
}

/* =====================================================================
   Campo do frasco: deixar claro que dá para mudar o número
   ===================================================================== */
.proto-setup {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px;
  background: var(--brand-100); border: 1px solid var(--brand-300); border-radius: var(--radius-md);
  padding: 18px 20px; margin: 18px 0 22px;
}
.proto-setup__head { flex: 1 1 100%; }
.proto-setup__title { display: block; font-size: 1.05rem; color: var(--brand-800); margin-bottom: 4px; }
.proto-setup__lead { margin: 0; color: var(--ink-700); font-size: 0.95rem; line-height: 1.55; }
.proto-setup__lead strong { color: var(--brand-800); }
.proto-setup__label { color: var(--brand-800); }
.proto-setup__input { position: relative; }
.proto-setup__input input.proto-vial {
  height: 54px; font-size: 1.35rem; font-weight: 800; color: var(--ink-900);
  background: #fff; border: 2px solid var(--accent-500); border-radius: 12px;
  box-shadow: 0 2px 10px rgba(239, 127, 63, 0.18);
}
.proto-setup__input input.proto-vial:focus { border-color: var(--accent-600); box-shadow: 0 0 0 4px rgba(239, 127, 63, 0.22); }
.proto-setup__input { max-width: 240px; }
.proto-setup__input .field-suffix { font-weight: 700; color: var(--brand-800); }

.proto-setup__chips { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.proto-setup__chips > span { font-size: 0.85rem; font-weight: 600; color: var(--ink-500); margin-right: 2px; }
.proto-chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--brand-300);
  background: #fff; color: var(--brand-800); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.proto-chip:hover { border-color: var(--brand-500); }
.proto-chip.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.proto-setup__status { flex: 1 1 100%; margin: 0; min-height: 0; font-size: 0.88rem; font-weight: 700; color: var(--brand-700); opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.2s ease, max-height 0.2s ease; }
.proto-setup__status.is-on { opacity: 1; max-height: 40px; }

@keyframes protoPulse { 0%, 100% { box-shadow: 0 2px 10px rgba(239, 127, 63, 0.18); } 50% { box-shadow: 0 0 0 7px rgba(239, 127, 63, 0.3); } }
.proto-setup.is-hint .proto-setup__input input.proto-vial { animation: protoPulse 1.3s ease-in-out 3; }
@keyframes protoFlash { from { background: rgba(58, 181, 150, 0.35); } to { background: transparent; } }
.dose-table--proto .proto-un.is-updated { animation: protoFlash 1s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .proto-setup.is-hint .proto-setup__input input.proto-vial, .dose-table--proto .proto-un.is-updated { animation: none; }
}
@media (max-width: 720px) {
  .proto-setup { padding: 16px; }
  .proto-setup__field { flex: 1 1 100%; }
  .proto-setup__input { max-width: none; }
  .proto-setup__input .field-row, .proto-setup__field .field-row--small { max-width: none; }
}
