/* Guias (/guias e /guias/<slug>): texto corrido numa coluna de leitura, sem as telas cheias
   das seções da landing. O <article> fica fora da regra "main > section = uma tela" do kit. */
.gd { padding: calc(var(--nav) + 56px) 0 var(--s-9); }
.gd__col { max-width: 70ch; }
.gd__crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); font-size: var(--t-small); color: var(--muted); }
.gd__crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.gd__crumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }
.gd__crumbs [aria-current] { color: var(--ink); }
.gd h1 { font-size: clamp(34px, 1.9vw + 26px, 54px); line-height: 1.08; max-width: 22ch; }
.gd__lead { margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.55; }
.gd__meta { margin-top: var(--s-4); font-size: var(--t-small); color: var(--muted); }

.gd__body { margin-top: var(--s-8); }
.gd__body h2 { font-size: clamp(26px, .95vw + 22px, 34px); line-height: 1.15; margin: var(--s-8) 0 var(--s-4); }
.gd__body h2:first-child { margin-top: 0; }
.gd__body h3 { font-family: var(--font-text); font-weight: 500; font-size: var(--t-card); letter-spacing: -0.01em; margin: var(--s-6) 0 var(--s-2); }
.gd__body p { font-size: 17px; line-height: 1.7; }
.gd__body p + p, .gd__body p + :is(ul, ol), .gd__body :is(ul, ol) + p { margin-top: var(--s-4); }
.gd__body :is(ul, ol) { display: grid; gap: var(--s-2); padding-left: 1.3em; font-size: 17px; line-height: 1.65; }
.gd__body ul { list-style: disc; }
.gd__body ol { list-style: decimal; }
.gd__body li::marker { color: var(--muted); }
.gd__body a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.gd__body a:not(.btn):hover { text-decoration-color: currentColor; }
.gd__body strong { font-weight: 600; }

/* tabela comparativa: rola de lado num celular em vez de apertar as colunas */
.gd__table { margin: var(--s-6) 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in oklab, var(--bg) 70%, white); }
.gd__table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--t-small); line-height: 1.5; }
.gd__table caption { padding: var(--s-3) var(--s-4) 0; text-align: left; font-size: var(--t-small); color: var(--muted); }
.gd__table :is(th, td) { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.gd__table tbody tr:last-child > * { border-bottom: 0; }
.gd__table thead th { font-weight: 500; color: var(--muted); }
.gd__table tbody th { font-weight: 500; }

/* aviso "varia por estado" */
.gd__note { margin: var(--s-6) 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: color-mix(in oklab, var(--accent) 9%, var(--bg)); }
.gd__body .gd__note p { font-size: var(--t-small); line-height: 1.6; }

/* Como o Papaya ajuda */
.gd__papaya { margin-top: var(--s-8); padding: var(--s-6); border-radius: var(--r-lg); background: color-mix(in oklab, var(--bg) 55%, white); border: 1px solid var(--line); }
.gd__body .gd__papaya h2 { margin-top: 0; }
.gd__papaya .btn-row { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); }

.gd__faq { margin-top: var(--s-8); }
.gd__faq h2 { margin-bottom: var(--s-5); }

.gd__more { margin-top: var(--s-9); }
.gd__more h2 { font-size: clamp(22px, .6vw + 19px, 28px); margin-bottom: var(--s-4); }
.gd-list { display: grid; gap: var(--card-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.gd-card { display: grid; gap: var(--s-2); height: 100%; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in oklab, var(--bg) 55%, white); transition: border-color var(--dur) var(--ease); }
.gd-card:hover { border-color: var(--line-strong); }
.gd-card h3 { font-family: var(--font-text); font-weight: 500; font-size: var(--t-card); line-height: 1.3; letter-spacing: -0.01em; }
.gd-card p { color: var(--muted); }
.gd-card .link { margin-top: var(--s-2); }

/* índice /guias */
.gd--index .gd-list { margin-top: var(--s-8); }

@media (max-width: 639px) {
  .gd { padding-top: calc(var(--nav) + 32px); }
  .gd__body p, .gd__body :is(ul, ol) { font-size: 16px; }
  .gd__papaya { padding: var(--s-5); }
}
/* sem hífen no meio da palavra nos títulos ("contingên-cia" num celular) */
.gd :is(h1, h2, h3) { hyphens: manual; -webkit-hyphens: manual; }
/* num celular as três colunas cabem com menos respiro, sem rolagem lateral escondendo a última */
@media (max-width: 639px) {
  .gd__table table { min-width: 0; font-size: 13px; }
  .gd__table :is(th, td) { padding: var(--s-2) var(--s-3); }
  .gd__table caption { padding: var(--s-2) var(--s-3) 0; }
}
