/* Aguiar Automóveis · guias (índice e artigo). Usa também historias.css (ar-*, st-chip) */

/* ---------- Índice ---------- */
.gd-index-head { padding-top: clamp(56px, 9vw, 128px); padding-bottom: clamp(40px, 6vw, 72px); }
.gd-index-head .eyebrow { margin-bottom: 20px; }
.gd-index-head .display { max-width: 14ch; }
.gd-index-head__foot { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.gd-index-head__foot .lead { max-width: 58ch; }

.gd-list { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 112px); }
.gd-feature { margin-bottom: clamp(48px, 6vw, 88px); }
.gd-feature[hidden] { display: none; }
.gd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.gd-grid__item[hidden], .gd-grid__item.is-first:not(.is-shown) { display: none; }
.gd-none { padding: 40px 0; color: var(--muted); }

/* Cartão */
.gd-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.gd-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.gd-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gd-card:hover .gd-card__media img { transform: scale(1.03); }
.gd-card__cat { position: absolute; left: 0; top: 0; z-index: 1; padding: 8px 12px; background: #fff; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.gd-card__body { padding-top: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gd-card__title { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.gd-card:hover .gd-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.gd-card__summary { font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gd-card__meta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.gd-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.gd-card__link { position: absolute; inset: 0; z-index: 2; }
.gd-card__link:focus-visible { outline-offset: 4px; }

/* Cartão em destaque */
.gd-card--big { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.gd-card--big .gd-card__media { aspect-ratio: 16 / 10; }
.gd-card--big .gd-card__body { padding-top: 0; gap: 16px; }
.gd-card--big .gd-card__title { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.gd-card--big .gd-card__summary { font-size: 17px; -webkit-line-clamp: 5; }
.gd-card--big .gd-card__body::after { content: 'Ler o guia'; display: inline-flex; align-self: flex-start; align-items: center; min-height: 48px; padding: 0 22px; margin-top: 8px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; }

.gd-ask { border-top: 1px solid var(--line); }
.gd-ask__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.gd-ask .eyebrow { margin-bottom: 14px; }
.gd-ask .lead { margin-top: 16px; max-width: 52ch; }

/* ---------- Artigo ---------- */
.gd-hero .ar-hero__media { aspect-ratio: 21 / 9; }
.gd-tldr { margin-bottom: 40px; padding: 24px 28px; background: var(--soft); border-left: 3px solid var(--ink); }
.gd-tldr .eyebrow { margin-bottom: 8px; }
.gd-tldr p:last-child { font-size: 17px; line-height: 1.6; color: var(--ink); }
.ar-prose h3 { font-size: 20px; margin-top: 1.6em; }
.ar-prose strong { font-weight: 600; color: var(--ink); }

/* Checklist interativa */
.gd-check { margin-top: clamp(48px, 6vw, 72px); border: 1px solid var(--ink); padding: clamp(22px, 3vw, 36px); scroll-margin-top: calc(var(--nav-h) + 24px); }
.gd-check__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.gd-check__head .eyebrow { margin-bottom: 8px; }
.gd-check h2 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.02em; }
.gd-check__count { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gd-check__count.is-done { color: var(--ink); font-weight: 600; }
.gd-check ul { list-style: none; margin: 0; padding: 0; }
.gd-check li { border-top: 1px solid var(--line); }
.gd-check label { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; cursor: pointer; min-height: 48px; }
.gd-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gd-check__box { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--ink); display: grid; place-items: center; color: transparent; transition: background-color .15s var(--ease); }
.gd-check input:checked + .gd-check__box { background: var(--ink); color: #fff; }
.gd-check input:focus-visible + .gd-check__box { outline: 2px solid var(--ink); outline-offset: 3px; }
.gd-check__text { font-size: 16px; line-height: 1.5; color: var(--ink); }
.gd-check input:checked ~ .gd-check__text { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.gd-check__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.gd-check__reset { font-size: 14px; color: var(--muted); background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Perguntas frequentes */
.gd-faq { margin-top: clamp(48px, 6vw, 72px); scroll-margin-top: calc(var(--nav-h) + 24px); }
.gd-faq h2 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.02em; margin-bottom: 16px; }
.gd-faq details { border-top: 1px solid var(--line); }
.gd-faq details:last-child { border-bottom: 1px solid var(--line); }
.gd-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; min-height: 56px; cursor: pointer; font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.35; }
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary .icon { flex: none; transition: transform .25s var(--ease); }
.gd-faq details[open] summary .icon { transform: rotate(180deg); }
.gd-faq details p { padding: 0 0 22px; max-width: 64ch; font-size: 16px; line-height: 1.65; color: var(--ink-2); }

.gd-next { margin-top: 56px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 20px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.gd-next .eyebrow { grid-column: 1; }
.gd-next strong { grid-column: 1; font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.015em; line-height: 1.2; }
.gd-next .icon { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; transition: transform .25s var(--ease); }
.gd-next:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.gd-next:hover .icon { transform: translateX(4px); }

.gd-help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.gd-help .eyebrow { margin-bottom: 14px; }
.gd-help .lead { margin-top: 16px; max-width: 46ch; }
.gd-help form { background: #fff; padding: clamp(20px, 3vw, 32px); }
.gd-sale-head { margin-top: clamp(64px, 8vw, 112px); }

@media (max-width: 1080px) {
  .gd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-grid--3 > :nth-child(3) { display: none; }
}
@media (max-width: 860px) {
  .gd-card--big { grid-template-columns: 1fr; }
  .gd-help { grid-template-columns: 1fr; }
  .gd-hero .ar-hero__media { aspect-ratio: 3 / 2; }
}
@media (max-width: 640px) {
  .gd-grid { grid-template-columns: 1fr; gap: 44px; }
  .gd-grid--3 > :nth-child(3) { display: flex; }
  .gd-card--big .gd-card__body::after { width: 100%; justify-content: center; }
  .gd-tldr { padding: 20px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .gd-check { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; padding-left: var(--gutter); padding-right: var(--gutter); }
  .gd-help form { margin: 0 calc(var(--gutter) * -1); }
}

/* Impressão: só o essencial do guia */
@media print {
  .nav, .mega, .drawer, .ar-toc, .ar-sale, .ar-more, footer, .cookie, .crumbs, .gd-hero, .gd-check__actions, .gd-next, [data-cookie] { display: none !important; }
  .ar-body { display: block; padding: 0; }
  .gd-check { border: 1px solid #000; break-inside: avoid; }
  .gd-faq details > p { display: block; }
  a { color: inherit; text-decoration: none; }
}
