/* Start Grana | artigos (/aprenda/). Mesmos tokens da inicial; topo e rodapé vêm de guia.css. */
:root {
  --bg: #e8e8e5;
  --surface: #ffffff;
  --surface2: #f1f1ee;
  --border: #dcdcd7;
  --ink: #141414;
  --text2: #3d3b35;
  --muted: #5f5f5a;
  --brand: #ffc400;
  --brand-100: #fff3c2;
  --brand-700: #7a5d00;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 10px 28px -14px rgba(20, 20, 20, .2);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: "Plus Jakarta Sans", system-ui, sans-serif; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-700); }
img { max-width: 100%; display: block; }

/* Artigo */
.art { max-width: 760px; margin: 0 auto; padding: 48px 20px 24px; }
.crumb { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.cat-pill { display: inline-block; margin-top: 22px; background: var(--ink); color: var(--brand); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; text-decoration: none; }
.art h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; margin-top: 18px; }
.art .lead { font-size: 18px; color: var(--text2); margin-top: 16px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline strong { color: var(--ink); font-weight: 600; display: block; }
.cover { margin-top: 32px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.content { margin-top: 40px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 44px 48px; font-size: 17px; color: var(--text2); }
.content > * + * { margin-top: 18px; }
.content h2, .content h3, .content h4 { color: var(--ink); line-height: 1.25; letter-spacing: -0.015em; margin-top: 36px; }
.content h2 { font-size: 26px; font-weight: 800; }
.content h3 { font-size: 21px; font-weight: 700; }
.content h4 { font-size: 18px; font-weight: 700; }
.content strong { color: var(--ink); font-weight: 600; }
.content ul, .content ol { padding-left: 22px; }
.content li + li { margin-top: 8px; }
.content li::marker { color: var(--brand-700); }
.content blockquote { background: var(--ink); color: #fff; border-radius: 16px; padding: 20px 24px; font-style: normal; }
.content blockquote * { color: #fff; }
.content hr { border: 0; height: 1px; background: var(--border); margin: 32px 0; }
.content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.content th, .content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.content th { color: var(--ink); font-weight: 700; }
.content figure { margin-left: 0; margin-right: 0; }
.content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 16px; }
.content .wp-block-embed__wrapper { position: relative; }

.note { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* Relacionados e lista */
.more { max-width: 1180px; margin: 0 auto; padding: 56px 20px 24px; }
.more h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 18px 22px 22px; }
.card .cat { font-size: 12px; font-weight: 700; color: var(--brand-700); }
.card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; margin-top: 6px; }
.card p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

.list-head { max-width: 1180px; margin: 0 auto; padding: 56px 20px 0; }
.list-head .cat-pill { margin-top: 0; }
.list-head h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin-top: 18px; }
.list-head p { color: var(--muted); font-size: 18px; margin-top: 12px; max-width: 620px; }
.filters { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--surface); padding: 6px; border-radius: 999px; box-shadow: var(--shadow); margin-top: 28px; }
.filters button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.filters button.on { background: var(--ink); color: #fff; }

@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .art { padding-top: 32px; }
  .content { padding: 26px 22px; font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .filters { border-radius: 20px; }
}
