/* Forca color-scheme light — evita auto-invert do iOS/Android escurecer o tema warm brown */
:root {
  color-scheme: light;
  background-color: #F5EDD8;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}
html, body {
  background-color: #F5EDD8 !important;
  color: #0F0602 !important;
  font-family: var(--font-body);
}

/* Display font (Fraunces) — aplicada via classe `font-display` em H1/H2/strain names */
.font-display {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -0.5px;
  line-height: 1.15;
  font-variation-settings: "opsz" 144;
}

/* Custom overrides */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #EDE0C4;
}
::-webkit-scrollbar-thumb {
  background: #C8AA7A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B8955A;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth page transitions */
[x-cloak] { display: none !important; }

img {
  image-rendering: auto;
}

/* ═══ LIGHT WARM BROWN THEME — logo palette ═══
   Forest green (#3D6B2C) + warm tan (#C4963A) + cream/beige bg
*/

/* Base backgrounds */
.bg-gray-950  { background-color: #F5EDD8 !important; }
.bg-gray-900  { background-color: #EDE0C4 !important; }
.bg-gray-800  { background-color: #E2CFA8 !important; }
.bg-gray-700  { background-color: #C8AA7A !important; }

/* Opacity variants */
.bg-gray-800\/60 { background-color: rgba(226, 207, 168, 0.6) !important; }
.bg-gray-800\/50 { background-color: #556B2F !important; }
.bg-gray-700\/80 { background-color: rgba(200, 170, 122, 0.8) !important; }

/* Borders */
.border-gray-800  { border-color: #D4BC90 !important; }
.border-gray-700  { border-color: #C8AA7A !important; }
.border-gray-500  { border-color: #A88850 !important; }

/* Text */
.text-gray-100 { color: #0F0602 !important; }
.text-gray-200 { color: #1F140A !important; }
.text-gray-300 { color: #3A2008 !important; }
.text-gray-400 { color: #5A3A18 !important; }
.text-gray-500 { color: #7A5A35 !important; }
.text-gray-600 { color: #9A7A55 !important; }
.text-white    { color: #0F0602 !important; }

/* Hover backgrounds */
.hover\:bg-gray-700:hover { background-color: #C8AA7A !important; }
.hover\:bg-gray-600:hover { background-color: #B8955A !important; }
.hover\:text-white:hover  { color: #1F0E04 !important; }

/* Forest green — primary accent */
.bg-green-600 { background-color: #3D6B2C !important; }
.bg-green-500 { background-color: #4F8A38 !important; }
.hover\:bg-green-500:hover { background-color: #4F8A38 !important; }
.hover\:bg-green-600:hover { background-color: #4D8035 !important; }
.text-green-400 { color: #2D5520 !important; }
.text-green-300 { color: #3D7230 !important; }

/* Text on green buttons should be light */
.bg-green-600 .text-white,
.bg-green-500 .text-white { color: #F5EDD8 !important; }

/* Borders/rings green */
.border-green-500  { border-color: #4F8A38 !important; }
.border-green-600  { border-color: #3D6B2C !important; }
.border-green-800\/50 { border-color: rgba(30, 60, 15, 0.3) !important; }
.focus\:border-green-500:focus { border-color: #4F8A38 !important; }
.focus\:ring-green-500  { --tw-ring-color: rgba(79, 138, 56, 0.4) !important; }
.hover\:border-green-600:hover { border-color: #3D6B2C !important; }
.hover\:shadow-green-900\/20:hover { box-shadow: 0 4px 12px rgba(30, 60, 15, 0.2) !important; }

/* Green tint backgrounds */
.bg-green-900\/40 { background-color: rgba(61, 107, 44, 0.12) !important; }

/* Gradients green */
.from-green-500 { --tw-gradient-from: #4F8A38 !important; }
.to-emerald-400 { --tw-gradient-to: #72B252 !important; }

/* Loader */
.border-t-transparent { border-top-color: transparent !important; }

/* CBD: purple → warm golden */
.text-purple-400 { color: #8A5F10 !important; }
.text-purple-300 { color: #7A5010 !important; }
.bg-purple-900\/40 { background-color: rgba(180, 120, 20, 0.12) !important; }
.border-purple-800\/40 { border-color: rgba(160, 100, 15, 0.3) !important; }
.border-purple-800 { border-color: rgba(160, 100, 15, 0.4) !important; }
.from-purple-500 { --tw-gradient-from: #C4963A !important; }
.to-violet-400 { --tw-gradient-to: #D4AA52 !important; }

/* Flavors amber */
.text-amber-300 { color: #7A5010 !important; }
.bg-amber-900\/30 { background-color: rgba(180, 120, 20, 0.10) !important; }
.border-amber-800\/40 { border-color: rgba(160, 100, 15, 0.3) !important; }
.border-amber-800 { border-color: rgba(160, 100, 15, 0.4) !important; }

/* Red keep readable */
.text-red-400 { color: #C0392B !important; }
.hover\:text-red-300:hover { color: #E74C3C !important; }

/* Disabled states */
.disabled\:opacity-30:disabled { opacity: 0.3 !important; }

/* Ring */
.ring-1 { box-shadow: 0 0 0 1px var(--tw-ring-color) !important; }

/* Ensure buttons with bg-green-600 have light text */
button.bg-green-600, a.bg-green-600,
button.bg-green-500, a.bg-green-500 { color: #F5EDD8 !important; }

/* ═══════════════════════════════════════════════
   LOADING ANIMATIONS — Strain Explorer
   ─────────────────────────────────────────────── */

.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  gap: 1rem;
}

/* Overlay fixed — cobre a tela inteira sobre qualquer view */
.loading-overlay-fixed {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(245, 237, 216, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  animation: overlayFadeIn 0.18s ease-out;
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.loading-text {
  color: #5A3A18 !important;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ─── Opção A: BROTO CRESCENDO (ativa) ─── */
.sprout {
  width: 120px;
  height: 144px;
  overflow: visible;
}
.sprout-stem {
  stroke: #3D6B2C;
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: sproutGrow 1.6s ease-out infinite;
}
.sprout-leaf {
  fill: #5a8a45;
  transform-origin: 50px 80px;
  transform: scale(0);
}
.sprout-leaf-left {
  animation: sproutLeafLeft 1.6s ease-out infinite;
}
.sprout-leaf-right {
  animation: sproutLeafRight 1.6s ease-out infinite;
}
.sprout-bud {
  fill: #C4963A;
  transform-origin: 50px 50px;
  transform: scale(0);
  animation: sproutBloom 1.6s ease-out infinite;
}
@keyframes sproutGrow {
  0%, 5%   { stroke-dashoffset: 70; opacity: 0.4; }
  60%      { stroke-dashoffset: 0;  opacity: 1; }
  90%, 100%{ stroke-dashoffset: 0;  opacity: 0.6; }
}
@keyframes sproutLeafLeft {
  0%, 30%  { transform: scale(0) rotate(-30deg); }
  70%      { transform: scale(1) rotate(-15deg); }
  90%, 100%{ transform: scale(0.95) rotate(-15deg); opacity: 0.9; }
}
@keyframes sproutLeafRight {
  0%, 30%  { transform: scale(0) rotate(30deg); }
  70%      { transform: scale(1) rotate(15deg); }
  90%, 100%{ transform: scale(0.95) rotate(15deg); opacity: 0.9; }
}
@keyframes sproutBloom {
  0%, 60%  { transform: scale(0); }
  85%      { transform: scale(1.4); }
  100%     { transform: scale(1.1); }
}

/* ─── Opção C: FOLHINHAS SALTANDO (ativa) ─── */
.leaves-bouncing {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  height: 60px;
}
.leaves-bouncing .leaf {
  width: 22px;
  height: 30px;
  border-radius: 0 100% 0 100%;
  transform: rotate(-45deg);
  animation: leafBounce 0.9s ease-in-out infinite;
}
.leaves-bouncing .leaf:nth-child(1) { background: #5a8a45; }
.leaves-bouncing .leaf:nth-child(2) {
  background: #3D6B2C;
  animation-delay: 0.15s;
}
.leaves-bouncing .leaf:nth-child(3) {
  background: #C4963A;
  animation-delay: 0.3s;
}
@keyframes leafBounce {
  0%, 100% { transform: translateY(0) rotate(-45deg) scale(1); }
  50%      { transform: translateY(-22px) rotate(-45deg) scale(0.85); }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE HARDENING — iPhones antigos / Safari quirks
   ═══════════════════════════════════════════════════════════ */

/* Previne text-resize quando rotaciona em iOS Safari */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* iOS: input com font-size <16px causa zoom automático no focus.
   Forçando 16px previne. Apenas em mobile (≤640px). */
@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="number"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Body scroll lock quando modal/drawer aberto.
   ⚠️ ANTES tinha `body:has(.modal-panel)` mas .modal-panel fica no DOM o tempo
   todo (Alpine x-show só seta display:none, :has() ignora visibilidade) —
   travava body permanentemente. Agora usa .scroll-lock toggleado via JS. */
body.scroll-lock {
  overflow: hidden;
  position: fixed;
  width: 100%;
  /* preserve scroll position via top set via JS (data-scroll-top) */
}

/* Modal panel — overscroll contido (não rola page atrás) */
.modal-panel {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Tap target Apple HIG: mínimo 44×44px em mobile.
   Forçando em botões pequenos. */
@media (max-width: 640px) {
  button:not([class*="px-2.5"]):not([class*="text-2xl"]):not([class*="text-3xl"]),
  a.btn,
  [role="button"] {
    min-height: 36px;  /* relaxado: 36 em vez de 44 pra não quebrar layouts densos */
  }
}

/* Remove tap highlight cinza do iOS, e delay de 300ms */
* {
  -webkit-tap-highlight-color: transparent;
}
button, a, [role="button"], input[type="submit"] {
  touch-action: manipulation;
}

/* Safe area insets pra notch/home indicator (iPhone X+) */
.safe-area-inset-top { padding-top: env(safe-area-inset-top); }
.safe-area-inset-bottom { padding-bottom: env(safe-area-inset-bottom); }

/* Header sticky ajustar pra notch */
header.sticky, .header-sticky {
  padding-top: env(safe-area-inset-top);
}

/* ═══ BLOG ═══ Paleta congelada (paleta de 6 cores funcionais — ver project_blog_florai.md) */
:root {
  --blog-surface-1: #141210;       /* warm near-black, undertone marrom — apothecary */
  --blog-surface-2: #1c1a17;       /* warm-dark elevated — NÃO cool gray */
  --blog-fill-brand: #2D4A1A;
  --blog-text-1: #E8DFC8;
  --blog-text-2: #d1d5db;
  --blog-text-3: #9CAA8E;
  --blog-text-4: #6b7280;
  --blog-accent: #7A9974;
  --blog-accent-hover: #94B08E;
  --blog-hairline: #1f2937;
}

/* Aspect-ratio (Tailwind 2 não tem util) */
.blog-aspect-16-9 { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.blog-aspect-4-3  { aspect-ratio: 4 / 3;  position: relative; overflow: hidden; }
.blog-aspect-16-9 > img,
.blog-aspect-4-3 > img { width: 100%; height: 100%; object-fit: cover; display: block; }
@supports not (aspect-ratio: 1) {
  .blog-aspect-16-9 { padding-bottom: 56.25%; height: 0; }
  .blog-aspect-4-3  { padding-bottom: 75%;    height: 0; }
  .blog-aspect-16-9 > img,
  .blog-aspect-4-3 > img { position: absolute; inset: 0; }
}

/* ───── SHELL: sidebar persistente + main ───── */

.blog-shell { background: var(--blog-surface-1); min-height: 100vh; }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: 240px 1fr; gap: 4rem; padding: 0 1.5rem; }
}

/* ───── SIDEBAR (desktop fixa, mobile drawer) ───── */

.blog-sidebar {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 80vw;
  max-width: 320px;
  background: var(--blog-surface-1);
  border-right: 1px solid var(--blog-hairline);
  z-index: 40;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
  padding: 5rem 1.75rem 2rem;
}
.blog-sidebar.open { transform: translateX(0); }

@media (min-width: 1024px) {
  .blog-sidebar {
    position: sticky;
    top: 6rem;
    height: calc(100vh - 6rem);
    max-height: calc(100vh - 6rem);
    width: 240px;
    max-width: none;
    transform: none !important;
    border-right: none;
    background: transparent;
    padding: 1rem 0 4rem 0;
    align-self: start;
  }
}

.blog-backdrop {
  position: fixed; inset: 0; z-index: 39;
  background: rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
@media (min-width: 1024px) { .blog-backdrop { display: none !important; } }

.blog-hamburger {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(17,17,17,.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blog-hairline);
  width: 100%;
  color: var(--blog-text-2);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
}
.blog-hamburger:focus-visible { outline: 1px solid var(--blog-accent); outline-offset: 2px; }
.blog-hamburger svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 1024px) { .blog-hamburger { display: none; } }

@keyframes blogPulse {
  0%   { box-shadow: 0 0 0 0 rgba(122,153,116,.55); }
  60%  { box-shadow: 0 0 0 12px rgba(122,153,116,0); }
  100% { box-shadow: 0 0 0 0 rgba(122,153,116,0); }
}
.blog-hamburger.pulse svg { animation: blogPulse 1.4s ease-out 1; border-radius: 4px; }

.blog-drawer-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--blog-text-2);
  background: transparent; border: 0; cursor: pointer;
}
.blog-drawer-close:hover { color: var(--blog-text-1); }
.blog-drawer-close:focus-visible { outline: 1px solid var(--blog-accent); outline-offset: 2px; }
@media (min-width: 1024px) { .blog-drawer-close { display: none; } }

/* Drawer scroll lock — usa o mesmo mecanismo que modal (body.scroll-lock).
   .blog-drawer-open só fica como hook semântico (não trava overflow aqui). */

/* ───── SIDEBAR conteúdo: grupos + nav ───── */

.blog-side-group { padding: 1.5rem 0; border-top: 1px solid var(--blog-hairline); }
.blog-side-group:first-of-type { border-top: 0; padding-top: 0.5rem; }

.blog-side-label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blog-text-4);
  margin-bottom: 0.85rem;
}

.blog-side-brand { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 1.0625rem; line-height: 1.4; color: var(--blog-text-2); }

.blog-side-list { list-style: none; padding: 0; margin: 0; }
.blog-side-link {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--blog-text-2);
  background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer;
  border-left: 2px solid transparent;
  padding-left: 0.625rem;
  margin-left: -0.625rem;
  transition: color 150ms ease, border-color 150ms ease;
}
.blog-side-link:hover,
.blog-side-link:focus-visible { color: var(--blog-text-1); border-left-color: var(--blog-accent); outline: none; }
.blog-side-link.is-active { color: var(--blog-text-1); border-left-color: var(--blog-fill-brand); font-weight: 500; }
.blog-side-link .count { color: var(--blog-text-4); font-size: 0.75rem; font-variant-numeric: tabular-nums; }

.blog-side-toc { font-size: 0.875rem; line-height: 1.45; }
.blog-side-toc .blog-side-link.h3 { padding-left: 1.5rem; font-size: 0.8125rem; color: var(--blog-text-4); }
.blog-side-toc .blog-side-link.h3:hover { color: var(--blog-text-2); }

.blog-side-rss {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--blog-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.blog-side-rss:hover { color: var(--blog-accent-hover); border-bottom-color: currentColor; }

/* ───── MAIN content ───── */

.blog-main { padding: 1.5rem 1.25rem 4rem; max-width: 720px; }
@media (min-width: 640px) { .blog-main { padding: 2rem 1.5rem 5rem; } }
@media (min-width: 1024px) { .blog-main { padding: 4rem 0 5rem; } }

.blog-kicker {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blog-text-3);
}
.blog-kicker .sep { opacity: 0.55; margin: 0 0.4em; }

.blog-section-label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blog-text-4);
  margin: 2rem 0 1rem;
}

.blog-edition-hero {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--blog-hairline);
}
.blog-edition-hero .lede {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--blog-text-2);
  margin: 0.75rem 0 0;
  max-width: 32em;
}
@media (min-width: 640px) {
  .blog-edition-hero { padding: 3rem 0 3.5rem; }
  .blog-edition-hero .lede { font-size: 1.5rem; }
}

.rule-short {
  border: 0;
  border-top: 1px solid var(--blog-fill-brand);
  width: 4rem;
  margin: 2.5rem 0;
}

/* Lista uniforme (hairline-divider, sem cards) */
.blog-list { list-style: none; padding: 0; margin: 0; }
.blog-list-item {
  display: block;
  padding: 1.75rem 0;
  border-top: 1px solid var(--blog-hairline);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 100ms ease;
}
.blog-list-item:first-child { border-top: 0; padding-top: 0.5rem; }
.blog-list-item:active { transform: scale(0.998); }
.blog-list-item:focus-visible { outline: 1px solid var(--blog-accent); outline-offset: 4px; border-radius: 2px; }

@media (min-width: 640px) {
  .blog-list-item { padding: 2.5rem 0; }
  .blog-list-row { display: flex; gap: 1.75rem; align-items: flex-start; }
  .blog-list-row > .blog-list-img { flex: 0 0 224px; }
  .blog-list-row > .blog-list-text { flex: 1 1 auto; min-width: 0; }
}

.blog-list-img { border-radius: 4px; background: var(--blog-surface-2); margin-bottom: 1rem; }
@media (min-width: 640px) { .blog-list-img { margin-bottom: 0; } }
.blog-list-img > img { transition: transform 700ms cubic-bezier(.2,.8,.2,1); }
.blog-list-item:hover .blog-list-img > img { transform: scale(1.02); }

.blog-list-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--blog-text-1);
  margin: 0.5rem 0 0.5rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 200ms ease;
}
@media (min-width: 640px) { .blog-list-title { font-size: 1.75rem; } }
.blog-list-item:hover .blog-list-title,
.blog-list-item:focus-visible .blog-list-title { text-decoration-color: var(--blog-text-1); }

.blog-list-lede {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--blog-text-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0.75rem;
}

.blog-list-meta { font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--blog-text-4); }

.blog-postlist-aside {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--blog-hairline);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--blog-text-4);
}
.blog-postlist-aside a { color: var(--blog-accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.blog-postlist-aside a:hover { color: var(--blog-accent-hover); }

/* Pagination */
.blog-pagination {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--blog-hairline);
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.blog-pagination button {
  background: transparent; border: 0; cursor: pointer;
  color: var(--blog-text-4); padding: 0.5rem 0.5rem;
}
.blog-pagination button:hover:not(:disabled) { color: var(--blog-accent); }
.blog-pagination button:focus-visible { outline: 1px solid var(--blog-accent); outline-offset: 2px; }
.blog-pagination button:disabled { opacity: 0.3; cursor: not-allowed; }
.blog-pagination .pages { color: var(--blog-text-4); }

/* ───── DETAIL VIEW ───── */

.blog-detail-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blog-text-4);
  text-decoration: none;
  margin-bottom: 2.5rem;
}
.blog-detail-back:hover { color: var(--blog-accent); }

.blog-detail-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--blog-text-1);
  margin: 1rem 0 1.25rem;
}

.blog-detail-lede {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--blog-text-2);
  max-width: 38ch;
  margin: 0 0 2rem;
}
@media (min-width: 640px) { .blog-detail-lede { font-size: 1.375rem; } }

.blog-detail-byline {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blog-text-4);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--blog-hairline);
}
.blog-detail-byline .author { color: var(--blog-text-2); }
.blog-detail-byline .sep { opacity: 0.45; }

.blog-detail-hero { margin: 2.5rem 0 3rem; border-radius: 4px; }

/* Reading progress */
.blog-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--blog-accent);
  z-index: 50;
  pointer-events: none;
  transition: width 60ms linear;
}

/* Auto-translated disclosure (rodapé discreto) */
.blog-translated-note {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--blog-hairline);
  font-size: 0.6875rem; letter-spacing: 0.04em;
  color: var(--blog-text-4);
}

/* Related (ao final do post) */
.blog-related { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--blog-hairline); }
.blog-related-list { list-style: none; padding: 0; margin: 0; }
.blog-related-item { display: block; padding: 1.25rem 0; border-top: 1px solid var(--blog-hairline); text-decoration: none; }
.blog-related-item:first-child { border-top: 0; }
.blog-related-title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  color: var(--blog-text-1);
  font-size: 1.125rem; line-height: 1.25;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color 200ms ease;
  margin: 0 0 0.25rem;
}
.blog-related-item:hover .blog-related-title { text-decoration-color: var(--blog-text-1); }
.blog-related-lede { font-size: 0.8125rem; color: var(--blog-text-4); margin: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Skeleton */
.blog-skeleton-line { background: var(--blog-surface-2); border-radius: 2px; }

/* ───── POST BODY (prose) ───── */

/* Body editorial — Inter 17→18px, line-height 1.7, max 65ch */
.post-body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.0625rem;        /* 17px mobile */
  line-height: 1.7;
  color: var(--blog-text-2);
  max-width: 65ch;
}
@media (min-width: 640px) {
  .post-body { font-size: 1.125rem; }   /* 18px desktop */
}

/* Drop cap só desktop — em mobile fica desproporcional */
@media (min-width: 640px) {
  .post-body > p:first-of-type::first-letter {
    float: left;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 4.5rem;
    line-height: 0.85;
    padding: 0.5rem 0.75rem 0 0;
    color: var(--blog-text-3);   /* sage — herbarium gesto editorial, visível */
  }
}

.post-body p { margin: 1.4em 0; }
.post-body strong { color: var(--blog-text-1); font-weight: 600; }
.post-body em { color: var(--blog-text-1); }

.post-body a {
  color: var(--blog-accent);
  text-decoration: underline;
  text-decoration-color: rgba(122, 153, 116, 0.45);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.post-body a:hover { text-decoration-color: var(--blog-accent-hover); color: var(--blog-accent-hover); }

.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--blog-text-1);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  scroll-margin-top: 5rem;     /* anchor links em sticky header */
}
.post-body h2 { font-size: 1.625rem; }
.post-body h3 { font-size: 1.3rem; }
.post-body h4 { font-size: 1.1rem; }
@media (min-width: 640px) {
  .post-body h2 { font-size: 1.875rem; }
  .post-body h3 { font-size: 1.4rem; }
}

.post-body ul, .post-body ol { margin: 1.4em 0; padding-left: 1.4em; }
.post-body li { margin: 0.45em 0; }
.post-body ul li { list-style: disc; }
.post-body ol li { list-style: decimal; }

/* Blockquote padrão + pull-quote dramático (sem border) */
.post-body blockquote {
  border-left: 2px solid var(--blog-fill-brand);
  padding: 0.25em 0 0.25em 1.25em;
  margin: 1.75em 0;
  color: var(--blog-text-3);
  font-style: italic;
}
.post-body blockquote.pull,
.post-body blockquote[data-pull="true"] {
  border-left: none;
  padding: 0;
  margin: 2.5rem 0;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--blog-text-1);
  max-width: 32ch;
}
@media (min-width: 640px) {
  .post-body blockquote.pull,
  .post-body blockquote[data-pull="true"] { font-size: 1.75rem; }
}

.post-body code {
  background: var(--blog-surface-2);
  color: var(--blog-text-1);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.post-body pre {
  background: #0f1318;
  border: 1px solid var(--blog-hairline);
  border-radius: 6px;
  padding: 1em 1.1em;
  overflow-x: auto;
  margin: 1.75em 0;
  font-size: 0.9em;
}
.post-body pre code { background: transparent; padding: 0; }

/* Tabela — mobile scroll horizontal pra não quebrar layout */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75em 0;
  font-size: 0.95em;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .post-body table { display: table; white-space: normal; }
}
.post-body th, .post-body td {
  border: 1px solid var(--blog-hairline);
  padding: 0.55em 0.85em;
  text-align: left;
  vertical-align: top;
}
.post-body th {
  background: var(--blog-surface-2);
  color: var(--blog-text-1);
  font-weight: 600;
  font-size: 0.8em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-body tbody tr:nth-child(even) { background: rgba(31, 41, 55, 0.3); }

.post-body hr {
  border: 0;
  border-top: 1px solid var(--blog-fill-brand);
  margin: 3em auto;
  width: 4rem;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.75em 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .post-body *,
  .group-hover\:scale-\[1\.02\] { transition: none !important; }
}
