/* The Light Legs Guide — v1
   Palette: editorial trust for health/wellness (US, 40+ readers) */

/* --- Tokens --- */
:root {
  --bg: #fbfaf6;                 /* warm off-white */
  --bg-elevated: #ffffff;
  --bg-muted: #f2efe7;
  --ink: #1a2432;                /* deep navy — authority */
  --ink-soft: #3d4a5c;
  --ink-muted: #64707f;
  --line: #e6e0d2;               /* warm hairline */
  --line-strong: #cfc7b3;
  --brand: #2a6f7b;              /* deep teal — medical trust */
  --brand-dark: #1f5560;
  --brand-soft: #dfeef1;
  --sage: #7fa885;               /* wellness green */
  --sage-soft: #e7f0e6;
  --accent: #c9694a;             /* warm coral CTA */
  --accent-dark: #a94f34;
  --warn-bg: #fdf5e6;
  --warn-border: #e0b552;
  --danger-bg: #fbeeea;
  --danger-border: #d17a5f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 45, .06);
  --shadow-md: 0 6px 20px rgba(20, 30, 45, .08);
  --shadow-lg: 0 20px 40px rgba(20, 30, 45, .10);

  --maxw: 1280px;
  --gutter: clamp(1rem, 3vw, 2.25rem);
}

/* --- Base --- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; margin-top: 2.4em; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-weight: 600; margin-top: 1.8em; }
p  { margin: 0 0 1.05em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Header --- */
.site-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(1.1);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .55rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
}
.site-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: .96rem;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brand-dark); border-bottom-color: var(--brand); }

@media (max-width: 720px) {
  .site-nav { gap: .9rem; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a { font-size: .88rem; }
}

/* --- Layout: article page (wide desktop, single column mobile) --- */
.page {
  padding: 2.2rem 0 3rem;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
.reading {
  min-width: 0;
  max-width: 780px;
  font-size: 1.06rem;
  line-height: 1.72;
}
.reading > * { max-width: 100%; }
.reading p, .reading li { color: var(--ink-soft); }
.reading strong { color: var(--ink); }
.reading ul, .reading ol { padding-left: 1.35rem; margin: 0 0 1.2em; }
.reading li { margin-bottom: .5em; }
.reading blockquote {
  border-left: 4px solid var(--brand);
  padding: .1rem 1.15rem;
  margin: 1.6em 0;
  color: var(--ink);
  font-style: italic;
  background: var(--brand-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.reading figure { margin: 1.8em 0; }
.reading figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.reading figcaption {
  font-size: .82rem;
  color: var(--ink-muted);
  padding: .5rem .1rem 0;
  text-align: center;
  font-style: italic;
}

.sidebar { min-width: 0; }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

/* --- Breadcrumb --- */
.crumbs {
  font-size: .84rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}
.crumbs a { color: var(--brand-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink-soft); }

/* --- Article header --- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: .9rem;
  margin: 1rem 0 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.article-meta img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--line);
}
.article-meta .byline { color: var(--ink); font-weight: 600; }
.article-meta .medically {
  color: var(--sage);
  font-weight: 600;
  font-size: .82rem;
}

/* --- Answer block --- */
.answer-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--brand);
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 1.6rem 0 2.4rem;
}
.answer-block .label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: .5rem;
}
.answer-block p { margin: 0; font-size: 1.02rem; color: var(--ink); }

/* --- TOC --- */
.toc {
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 2rem 0;
  font-size: .95rem;
}
.toc-title {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 .6rem;
}
.toc ol { margin: 0; padding-left: 1.15rem; }
.toc li { margin-bottom: .35em; }
.toc a { color: var(--brand-dark); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* --- Key points card --- */
.key-points {
  background: var(--sage-soft);
  border: 1px solid #cadfc7;
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  margin: 1.6rem 0;
}
.key-points h3 {
  margin: 0 0 .6rem;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #3e6845;
}
.key-points ul { margin: 0; padding-left: 1.15rem; }
.key-points li { margin-bottom: .4em; }

/* --- Red-flag / medical alert box --- */
.medical-alert {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-left: 5px solid #c04a2c;
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  margin: 1.8rem 0;
}
.medical-alert h3 {
  margin: 0 0 .5rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: #7a2915;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.medical-alert p, .medical-alert li { color: #4a1e10; }
.medical-alert ul { margin: .3rem 0 0; padding-left: 1.15rem; }

/* --- Note / disclosure banner --- */
.disclosure {
  font-size: .86rem;
  color: var(--ink-muted);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin: 1.4rem 0;
}

/* --- Source citation --- */
.source-cite {
  font-size: .86rem;
  color: var(--ink-muted);
  border-left: 3px solid var(--line-strong);
  padding: .2rem .8rem;
  margin: 1.2rem 0;
  font-style: italic;
}
.source-cite a { color: var(--brand-dark); }

/* --- FAQ --- */
.faq { margin: 2.4rem 0; }
.faq h2 { margin-bottom: 1rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: .8rem;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); }

/* --- Affiliate box --- */
.aff-box {
  background: linear-gradient(180deg, #fff, #fdf9f2);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}
.aff-box .kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .6rem;
}
.aff-box h3 {
  font-size: 1.4rem;
  margin: 0 0 .5rem;
  color: var(--ink);
}
.aff-box p { color: var(--ink-soft); margin-bottom: 1rem; }
.aff-box .cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--sans);
  transition: background .15s ease, transform .1s ease;
  box-shadow: 0 4px 10px rgba(201, 105, 74, .3);
}
.aff-box .cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.aff-box .fine { font-size: .78rem; color: var(--ink-muted); margin: .8rem 0 0; }

/* --- Author card --- */
.author-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin: 2.4rem 0;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.author-card img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--brand-soft);
}
.author-card h3 {
  margin: 0 0 .3rem;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.author-card .role {
  font-size: .88rem;
  color: var(--brand-dark);
  font-weight: 600;
  margin-bottom: .6rem;
}
.author-card p { margin: 0 0 .6em; color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 560px) {
  .author-card { grid-template-columns: 1fr; text-align: center; }
  .author-card img { margin: 0 auto; }
}

/* --- Sidebar widgets --- */
.widget {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.widget h3 {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 .8rem;
  font-weight: 700;
}
.widget-author img {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  margin: 0 auto .8rem;
  border: 3px solid var(--brand-soft);
}
.widget-author { text-align: center; }
.widget-author .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 .2rem;
  color: var(--ink);
}
.widget-author .role {
  color: var(--brand-dark);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.widget-author p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.widget-cta {
  background: linear-gradient(160deg, var(--brand-soft), #fff);
  border: 1px solid var(--brand-soft);
}
.widget-cta h3 { color: var(--brand-dark); }
.widget-cta p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.widget-cta a {
  display: block;
  text-align: center;
  background: var(--brand);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.widget-cta a:hover { background: var(--brand-dark); color: #fff; }

.widget-list ul { list-style: none; margin: 0; padding: 0; }
.widget-list li { border-top: 1px solid var(--line); padding: .75rem 0; }
.widget-list li:first-child { border-top: none; padding-top: 0; }
.widget-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.4;
  display: block;
}
.widget-list a:hover { color: var(--brand-dark); }

/* --- Related --- */
.related {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.related h2 { font-size: 1.4rem; margin-bottom: 1rem; margin-top: 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.related-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color .15s ease, transform .1s ease;
}
.related-card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.related-card .cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: .4rem;
}
.related-card h3 {
  font-size: 1.02rem;
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.35;
}

/* --- Sources block --- */
.sources {
  margin-top: 2.4rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-muted);
  border-radius: var(--radius);
  font-size: .9rem;
}
.sources h3 {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 .7rem;
  font-weight: 700;
}
.sources ol { margin: 0; padding-left: 1.3rem; color: var(--ink-soft); }
.sources li { margin-bottom: .45em; }
.sources a { color: var(--brand-dark); word-break: break-word; }

/* --- Home page hero + grid --- */
.hero {
  background: linear-gradient(160deg, var(--brand-soft) 0%, #fff 65%);
  border-bottom: 1px solid var(--line);
  padding: 3.2rem 0 3rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.4rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  color: var(--ink);
  margin-bottom: .8rem;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.5rem;
}
.hero .cta-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { border: 1.5px solid var(--brand); color: var(--brand-dark); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-dark); }
.hero-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
}

.section { padding: 3rem 0; }
.section h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-top: 0;
  margin-bottom: 1.6rem;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.post-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-muted);
  overflow: hidden;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.15rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-card .cat {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: .4rem;
}
.post-card h3 {
  font-size: 1.15rem;
  margin: 0 0 .5rem;
  font-family: var(--serif);
  line-height: 1.28;
}
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand-dark); }
.post-card p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1rem; flex: 1; }
.post-card .read { color: var(--brand-dark); font-weight: 600; text-decoration: none; font-size: .9rem; }
.post-card .read:hover { text-decoration: underline; }

/* --- About page --- */
.about-hero {
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.4rem;
  align-items: center;
}
.about-hero img {
  width: 260px; height: 260px; border-radius: 50%; object-fit: cover;
  border: 5px solid var(--brand-soft);
  box-shadow: var(--shadow-md);
}
.about-hero h1 { margin-bottom: .4rem; }
.about-hero .role { color: var(--brand-dark); font-weight: 600; font-size: 1.1rem; margin-bottom: 1rem; }
@media (max-width: 720px) {
  .about-hero { grid-template-columns: 1fr; text-align: center; }
  .about-hero img { margin: 0 auto; width: 200px; height: 200px; }
}
.about-body {
  max-width: 720px;
  margin: 2rem auto 3rem;
  font-size: 1.06rem;
  line-height: 1.72;
}
.about-body h2 { margin-top: 2rem; }
.about-body p { color: var(--ink-soft); }

/* --- Footer --- */
.site-footer {
  background: #14202d;
  color: #b9c4d1;
  padding: 2.6rem 0 1.4rem;
  margin-top: 3rem;
  font-size: .9rem;
}
.site-footer a { color: #d4dde8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.8rem;
}
.site-footer h4,
.site-footer h2 {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7f8a99;
  margin: 0 0 .8rem;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer p { color: #8894a3; margin-bottom: .6rem; }
.footer-disclaimer {
  font-size: .78rem;
  color: #7f8a99;
  border-top: 1px solid #263544;
  padding-top: 1.2rem;
  line-height: 1.6;
}
.footer-disclaimer p { color: #7f8a99; margin-bottom: .5rem; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* --- Utility --- */
.hidden { display: none; }
.small { font-size: .88rem; color: var(--ink-muted); }
.mt-0 { margin-top: 0; }

/* Preço, frete e garantia em texto claro dentro da caixa de afiliado
   (adicionado 25/08/2026 — para que agentes que leem só texto renderizado
   encontrem o preço sem precisar abrir a review) */
.aff-box .aff-terms {
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 5px;
  padding: .75rem .9rem;
  margin: 0 0 1rem;
}
.aff-box .aff-terms strong { color: var(--ink); }
