/* Páginas de conteúdo do site (como criar uma rotina, quadro pra imprimir...).
   Geradas por tools/site.mjs; usam o mesmo sistema da página inicial. */

.page-art { padding-block: clamp(32px, 6vw, 72px) clamp(48px, 8vw, 96px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.86rem; color: var(--p-muted); margin-bottom: 20px; }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { opacity: 0.6; }

.art-head { max-width: 760px; margin-bottom: clamp(28px, 5vw, 48px); }
.art-head h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); line-height: 1.05; margin: 0 0 16px; }
.art-head .t-lead { margin: 0 0 18px; }
.byline { font-size: 0.88rem; color: var(--p-muted); }
.byline a { color: inherit; }

.art { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) { .art { grid-template-columns: minmax(0, 68ch) 280px; justify-content: space-between; } }

.prose { font-size: 1.08rem; line-height: 1.7; color: var(--p-ink); min-width: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.2; margin-top: 2.2em; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.2rem; line-height: 1.3; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 650; }
.prose .muted { color: var(--p-muted); }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 18px; border: 1px solid color-mix(in srgb, var(--p-ink) 10%, transparent); }
.prose figcaption { font-size: 0.88rem; color: var(--p-muted); margin-top: 8px; }

.steps-list { list-style: none; padding: 0 !important; counter-reset: passo; }
.steps-list > li { counter-increment: passo; position: relative; padding-left: 52px; }
.steps-list > li + li { margin-top: 1.4em; }
.steps-list > li::before {
  content: counter(passo); position: absolute; left: 0; top: 0.1em; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
  background: var(--p-surface); color: var(--p-ink);
}
.steps-list h3 { margin-top: 0; }

.example { background: var(--p-surface); border-radius: 18px; padding: 18px 20px; font-size: 1rem; }
.example strong { display: block; margin-bottom: 4px; }
.note { border-left: 3px solid color-mix(in srgb, var(--p-ink) 25%, transparent); padding: 4px 0 4px 16px; color: var(--p-muted); font-size: 0.98rem; }

.app-box {
  display: grid; gap: 14px; align-items: center; margin: 2.4em 0 !important;
  background: linear-gradient(160deg, #E6EEF8, #FBE3D4); color: #1F2B3A; border-radius: 24px; padding: 24px;
}
.app-box p { margin: 0; }
.app-box .t-card { font-size: 1.2rem; font-weight: 650; }
.app-box .btn { justify-self: start; }
@media (min-width: 640px) { .app-box { grid-template-columns: 1fr auto; padding: 28px 32px; } .app-box .btn { justify-self: end; } }

.downloads { display: grid; gap: 16px; margin: 1.4em 0 !important; }
@media (min-width: 640px) { .downloads { grid-template-columns: 1fr 1fr; } }
.download { display: grid; gap: 12px; background: var(--p-surface); border-radius: 20px; padding: 16px; text-decoration: none !important; color: inherit; }
.download img { border-radius: 10px; background: #fff; border: 1px solid color-mix(in srgb, var(--p-ink) 10%, transparent); }
.download span { font-weight: 650; }
.download small { color: var(--p-muted); font-size: 0.88rem; }

.compare { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--p-ink) 12%, transparent); vertical-align: top; }
.compare th { font-weight: 650; }
.table-scroll { overflow-x: auto; }

.faq-art details { border-bottom: 1px solid color-mix(in srgb, var(--p-ink) 12%, transparent); padding: 14px 0; }
.faq-art summary { cursor: pointer; font-weight: 650; list-style-position: outside; }
.faq-art details p { margin: 10px 0 0; color: var(--p-muted); }

.sources { font-size: 0.9rem; color: var(--p-muted); }
.sources li + li { margin-top: 0.4em; }

/* lateral: índice e convite, fixos no computador */
.art-side { display: none; }
@media (min-width: 1024px) {
  .art-side { display: block; }
  .art-side__in { position: sticky; top: 96px; display: grid; gap: 24px; }
}
.toc { font-size: 0.92rem; }
.toc p { font-weight: 650; margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { color: var(--p-muted); text-decoration: none; }
.toc a:hover { color: var(--p-ink); }
.side-cta { background: var(--p-surface); border-radius: 20px; padding: 20px; display: grid; gap: 12px; font-size: 0.95rem; }
.side-cta strong { font-size: 1.05rem; }

.more-pages { margin-top: clamp(48px, 8vw, 88px); }
.more-pages h2 { font-size: 1.4rem; margin-bottom: 16px; }
.more-pages ul { list-style: none; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .more-pages ul { grid-template-columns: repeat(3, 1fr); } }
.more-pages a { display: grid; gap: 6px; background: var(--p-surface); border-radius: 18px; padding: 18px; text-decoration: none; color: inherit; height: 100%; }
.more-pages a span { font-weight: 650; }
.more-pages a small { color: var(--p-muted); }

/* menu: a página em que a pessoa está */
.nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.prose > h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; }
.prose ol:not(.steps-list) { list-style: decimal; }
.prose li::marker { color: var(--p-muted); }
.downloads--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .downloads--3 { grid-template-columns: repeat(3, 1fr); } }
.downloads h3 { grid-column: 1 / -1; margin: 0.6em 0 0 !important; }
/* botões dentro do texto mantêm as cores de botão (o .prose a herdava a cor do texto) */
.prose a.btn { color: var(--p-action-ink); text-decoration: none; }
.side-cta a.btn { color: var(--p-action-ink); }

/* ---------- blog: lista no estilo revista ---------- */
.tag { display: inline-block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em; padding: 3px 10px; border-radius: 999px; background: var(--p-surface); color: var(--p-ink); }
.byline .tag { margin-right: 6px; }
.cover { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 18px; color: #1F2B3A; }
.cover svg { width: 22%; max-width: 72px; opacity: 0.8; }
.cover--manha { background: linear-gradient(150deg, #DCE8F6, #FBE3D4); }
.cover--tarde { background: linear-gradient(150deg, #FBF1DC, #F8D88E); }
.cover--noite { background: linear-gradient(150deg, #3A4766, #1F2B3A); color: #F8D88E; }
.cover--verde { background: linear-gradient(150deg, #E4EBDC, #B9CBA5); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 28px; }
.chip { font: inherit; font-size: 0.92rem; padding: 8px 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--p-ink) 18%, transparent); background: transparent; color: var(--p-ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--p-ink); color: var(--p-bg); border-color: var(--p-ink); }

.post-card > a { display: grid; gap: 14px; color: inherit; text-decoration: none; height: 100%; }
.post-card__body { display: grid; gap: 8px; align-content: start; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--p-muted); margin: 0; }
.post-card__title { font-size: 1.25rem; line-height: 1.25; margin: 0; }
.post-card__text { margin: 0; color: var(--p-muted); font-size: 0.98rem; line-height: 1.55; }
.post-card__more { margin: 0; font-size: 0.86rem; color: var(--p-muted); }
.post-card a:hover .post-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-card[hidden] { display: none; }

.post-card--featured { margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 860px) {
  .post-card--featured > a { grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
  .post-card--featured .post-card__title { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.1; }
  .post-card--featured .post-card__text { font-size: 1.1rem; }
}
.post-grid { display: grid; gap: 36px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-help { display: grid; gap: 16px; margin-top: clamp(48px, 8vw, 88px); }
@media (min-width: 640px) { .blog-help { grid-template-columns: 1fr 1fr; } }
.blog-help__card { display: grid; gap: 8px; justify-items: start; padding: 24px; border-radius: 22px; background: var(--p-surface); color: inherit; text-decoration: none; }
.blog-help__card strong { font-size: 1.2rem; }
.blog-help__card span:last-child { color: var(--p-muted); }
.blog-help__card .tag { background: var(--p-bg); }

/* ajuda: grupos de perguntas */
.help-group + .help-group { margin-top: 2.4em; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { min-width: 0; }
.prose > .help-group:first-child > h2 { margin-top: 0; }
.post-card > a { grid-template-columns: minmax(0, 1fr); }
.cover { width: 100%; min-width: 0; }
@media (min-width: 860px) { .post-card--featured > a { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.post-card > a { align-content: start; }

/* capas com a tela do app sobre o céu da categoria */
.cover { overflow: hidden; position: relative; }
.cover__img { display: block; max-width: none; }
.cover__img--phone { height: 92%; width: auto; align-self: end; border-radius: 16px 16px 0 0; box-shadow: 0 12px 32px -12px rgb(31 43 58 / .45); }
.cover__img--wide { width: 88%; height: auto; border-radius: 10px; box-shadow: 0 12px 32px -12px rgb(31 43 58 / .45); }
.cover:has(.cover__img--phone) { place-items: end center; }
.cover--hero { aspect-ratio: 21 / 9; margin: 0 0 clamp(28px, 5vw, 48px); max-width: 100%; }
@media (max-width: 639px) { .cover--hero { aspect-ratio: 16 / 10; } }

/* imagens no meio do texto */
.prose figure.shot { display: grid; justify-items: center; gap: 8px; margin: 1.8em 0; }
.prose figure.shot img { border-radius: 18px; box-shadow: 0 10px 30px -14px rgb(31 43 58 / .4); border: 0; }
.prose figure.shot--phone img { width: min(100%, 280px); height: auto; }
.prose figure.shot--card img { width: min(100%, 420px); height: auto; }
.prose figure.shot--wide img { width: 100%; height: auto; border: 1px solid color-mix(in srgb, var(--p-ink) 10%, transparent); }
.prose figure.shot figcaption { text-align: center; }
/* a imagem da capa fica presa à caixa (a porcentagem de altura não vale dentro do grid) */
.cover__img { position: absolute; left: 50%; transform: translateX(-50%); }
.cover__img--phone { bottom: 0; top: auto; height: 86%; width: auto; }
.cover__img--wide { top: 50%; transform: translate(-50%, -50%); width: 84%; height: auto; }

/* posts do painel: citação vira caixa de exemplo; subtítulos dos passos */
.prose blockquote { margin: 1.2em 0; background: var(--p-surface); border-radius: 18px; padding: 16px 20px; font-size: 1rem; }
.prose blockquote > * + * { margin-top: 0.6em; }
.prose blockquote p { margin: 0; }
.prose h3 { scroll-margin-top: 96px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--p-ink) 12%, transparent); vertical-align: top; }
.prose th { font-weight: 650; }
