/* Guias: central, página de cada guia e blocos do texto */

.g-kicker { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--ag-pill); background: var(--ag-yellow); color: var(--ag-ink); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }

/* ---------- Central ---------- */
.g-hub-head { align-items: flex-end; }
.g-search { position: relative; flex: 0 1 380px; display: flex; align-items: center; }
.g-search svg { position: absolute; left: 18px; color: var(--ag-muted); pointer-events: none; }
.g-search input { width: 100%; min-height: 56px; padding: 0 20px 0 48px; border: 2px solid var(--ag-line); border-radius: var(--ag-pill); background: var(--ag-surface); font: inherit; font-size: 17px; color: var(--ag-ink); }
.g-search input:focus { outline: none; border-color: var(--ag-indigo); }

.g-results { display: flex; flex-direction: column; gap: 24px; transition: opacity .2s ease; }
.g-results.is-loading { opacity: .45; pointer-events: none; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--ag-pill); background: var(--ag-surface); color: var(--ag-ink); font-size: 15px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.g-chips a small { color: var(--ag-muted); font-weight: 500; }
.g-chips a:hover { border-color: var(--ag-line-strong); }
.g-chips a[aria-current] { background: var(--ag-indigo); color: #fff; }
.g-chips a[aria-current] small { color: var(--ag-on-indigo); }
.g-hub-sub { font-size: 24px; margin-top: 12px; }

.g-cards, .g-featured { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.g-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-featured { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
.g-featured .is-big { grid-row: span 2; }
.g-card > a { display: flex; flex-direction: column; height: 100%; border-radius: 24px; overflow: hidden; background: var(--ag-surface); color: var(--ag-ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.g-card > a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(49, 49, 128, .35); }
.g-card-cover { position: relative; display: block; aspect-ratio: 16 / 10; background: #ecedf8; overflow: hidden; }
.g-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-card > a:hover .g-card-cover img { transform: scale(1.04); }
.g-card-cover.is-packshot img { object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.g-card-cover .g-kicker { position: absolute; left: 14px; top: 14px; }
.g-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; flex: 1; }
.g-card-body b { font-family: var(--ag-font-display); font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ag-indigo); text-wrap: balance; }
.g-card-excerpt { font-size: 16px; line-height: 1.5; color: var(--ag-text); }
.g-card-tema { font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ag-muted); }
.g-card-meta { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--ag-muted); }
.g-card.is-big .g-card-cover { aspect-ratio: 4 / 3; }
.g-card.is-big .g-card-body b { font-size: clamp(24px, 2.6vw, 32px); }
.g-featured .is-big .g-card-cover { aspect-ratio: auto; flex: 1 1 auto; min-height: 320px; }
.g-featured .is-big .g-card-cover img { position: absolute; inset: 0; }
.g-featured .is-big .g-card-body { flex: 0 0 auto; }
.g-featured .g-card:not(.is-big) .g-card-cover { aspect-ratio: 16 / 9; }
.g-featured .g-card:not(.is-big) .g-card-excerpt { display: none; }
.g-featured .g-card:not(.is-big) .g-card-body { padding-bottom: 18px; }
.g-card.is-new { animation: g-in .35s ease both; }
@keyframes g-in { from { opacity: 0; transform: translateY(10px); } }
.g-filters .ag-tree-all small { margin-left: auto; font-size: 13px; color: var(--ag-muted); font-weight: 500; }

@media (max-width: 1020px) {
  .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-featured { grid-template-columns: minmax(0, 1fr); }
  .g-featured .is-big { grid-row: auto; }
  .g-featured .is-big .g-card-cover { aspect-ratio: 4 / 3; min-height: 0; }
}
@media (max-width: 640px) {
  .g-cards { grid-template-columns: minmax(0, 1fr); }
  .g-card-body b { font-size: 20px; }
  .g-search { flex-basis: 100%; }
}

/* ---------- Topo de cada guia ---------- */
.g-hero { padding-block: 8px 0; }
.g-hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.g-hero:not(.has-cover) .g-hero-inner { grid-template-columns: minmax(0, 860px); }
.g-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.g-hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; font-size: 15px; color: var(--ag-muted); }
.g-hero-kicker a { color: var(--ag-indigo); font-weight: 600; text-underline-offset: 3px; }
.g-hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.g-hero-lede { margin: 0; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--ag-text); max-width: 560px; text-wrap: pretty; }
.g-hero-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 6px 0 0; padding-top: 20px; border-top: 1px solid var(--ag-line-strong); align-self: stretch; }
.g-hero-facts div { display: flex; flex-direction: column; gap: 2px; }
.g-hero-facts dt { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ag-muted); }
.g-hero-facts dd { margin: 0; font-size: 18px; font-weight: 700; color: var(--ag-ink); }
.g-hero-photo { margin: 0; }
.g-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px; background: #ecedf8; }
.g-hero-photo.is-packshot { border-radius: 32px; background: #ecedf8; }
.g-hero-photo.is-packshot img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; background: none; }
.g-hero-credit { margin: 10px 0 0; font-size: 13px; text-align: right; color: var(--ag-muted); }
.g-hero-credit a { color: inherit; }

/* Painel com a foto de fundo, igual ao dos balões na página inicial */
.g-hero.is-panel .g-hero-inner { position: relative; display: flex; align-items: flex-end; min-height: 480px; border-radius: 32px; overflow: hidden; background: var(--ag-ink); isolation: isolate; }
.g-hero.is-panel .g-hero-bg { position: absolute; inset: 0; z-index: -1; }
.g-hero.is-panel .g-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.g-hero.is-panel .g-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 22, 46, .92) 0%, rgba(22, 22, 46, .78) 40%, rgba(22, 22, 46, .1) 78%); }
.g-hero.is-panel .g-hero-text { padding: 48px; max-width: 660px; }
.g-hero.is-panel h1 { color: #fff; }
.g-hero.is-panel .g-hero-kicker, .g-hero.is-panel .g-hero-kicker a { color: #fff; }
.g-hero.is-panel .g-hero-lede { color: #fff; }
.g-hero.is-panel .g-hero-facts { border-top-color: rgba(255, 255, 255, .28); }
.g-hero.is-panel .g-hero-facts dt { color: rgba(255, 255, 255, .72); }
.g-hero.is-panel .g-hero-facts dd { color: #fff; }

@media (max-width: 900px) {
  .g-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .g-hero-photo { order: -1; }
  .g-hero-photo img, .g-hero-photo.is-packshot { border-radius: 24px; }
  .g-hero.is-panel .g-hero-inner { flex-direction: column-reverse; align-items: stretch; min-height: 0; border-radius: 24px; }
  .g-hero.is-panel .g-hero-bg { position: static; height: 240px; }
  .g-hero.is-panel .g-hero-bg::after { display: none; }
  .g-hero.is-panel .g-hero-text { padding: 26px 22px 28px; max-width: none; }
  .g-hero-facts { gap: 12px 28px; }
}

/* ---------- Corpo ---------- */
.g-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; padding-top: 56px; }
.g-content { min-width: 0; font-size: 19px; line-height: 1.7; color: var(--ag-text); }
.g-content > * { max-width: 740px; }
.g-content > * + * { margin-top: 1.15em; }
.g-content > .g-wide, .g-content > .g-tip, .g-content > .g-warn, .g-content > .g-videos, .g-content > .g-check-wrap, .g-content > .g-trails, .g-content > .g-table-wrap, .g-content > .g-recipe, .g-content > .g-vs, .g-content > .g-agenda, .g-content > .g-top, .g-content > .g-steps { max-width: none; }
.g-content h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin-top: 2.2em; scroll-margin-top: 150px; text-wrap: balance; }
.g-content > h2:first-child { margin-top: 0; }
.g-content h3 { font-family: var(--ag-font-display); font-size: 23px; line-height: 1.25; letter-spacing: -0.01em; margin-top: 1.8em; }
.g-content strong { color: var(--ag-ink); }
.g-content p a, .g-content li a:not(.ag-card-link):not(.ag-btn) { font-weight: 600; text-underline-offset: 3px; }
.g-content ul:not([class]), .g-content ol:not([class]) { padding-left: 1.2em; }
.g-content li + li { margin-top: .45em; }
.g-lede { font-size: 22px; line-height: 1.6; color: var(--ag-ink); text-wrap: pretty; }

.g-aside { position: sticky; top: 148px; display: flex; flex-direction: column; gap: 28px; max-height: calc(100vh - 168px); transition: top .3s ease; }
.ag-header-hidden .g-aside { top: 24px; max-height: calc(100vh - 48px); }
.g-toc { min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-right: 16px; }
.g-aside-title { margin: 0 0 12px; font-family: var(--ag-font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ag-indigo); }
.g-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ag-line-strong); }
.g-toc a { display: block; margin-left: -2px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.35; color: var(--ag-text); text-decoration: none; }
.g-toc a:hover { color: var(--ag-indigo); }
.g-toc a.is-active { border-left-color: var(--ag-indigo); color: var(--ag-indigo); font-weight: 600; }
.g-aside-actions { display: flex; flex-direction: column; gap: 10px; }
.g-share ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.g-share li[hidden] { display: none; }
.g-share a, .g-share button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ag-line-strong); border-radius: var(--ag-pill); background: var(--ag-surface); color: var(--ag-indigo); cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.g-share a:hover, .g-share button:hover, .g-share a:focus-visible, .g-share button:focus-visible { background: var(--ag-indigo); border-color: var(--ag-indigo); color: #fff; }
.g-share-note { margin: 10px 0 0; font-size: 14px; color: var(--ag-muted); }
.g-aside-actions .ag-btn { width: 100%; justify-content: center; }
@media (max-width: 1020px) {
  .g-body { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 36px; }
  .g-aside { position: static; order: 2; }
  .g-toc { display: none; }
  .g-aside-actions { flex-direction: row; flex-wrap: wrap; }
  .g-aside-actions .ag-btn { flex: 1 1 220px; }
}
@media (max-width: 640px) { .g-content { font-size: 18px; } .g-lede { font-size: 20px; } }

.g-products-note { margin-top: -18px; font-size: 18px; line-height: 1.6; color: var(--ag-text); }

/* ---------- Blocos do texto ---------- */
.g-photo { margin-inline: 0; }
.g-photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 28px; background: #ecedf8; }
.g-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ag-text); }
.g-photo figcaption small { font-size: 13px; color: var(--ag-muted); }
.g-photo figcaption a { color: inherit; font-weight: 400; }
/* Par de fotos, uma em pé e uma deitada: as duas ficam com a mesma altura. */
.g-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; margin-block: 28px; }
.g-pair--rev { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-pair .g-photo { margin: 0; }
.g-pair .g-photo img { height: clamp(240px, 30vw, 400px); max-height: none; object-fit: cover; object-position: center 20%; border-radius: 22px; cursor: zoom-in; }
.g-pair .g-photo figcaption { font-size: 14px; }
.g-photo img[data-lightbox] { cursor: zoom-in; }
@media (max-width: 560px) { .g-pair, .g-pair--rev { grid-template-columns: minmax(0, 1fr); } .g-pair .g-photo img { height: auto; max-height: 520px; } }
/* Grade de fotos: todas na mesma proporção; quando sobra uma, ela ocupa a linha inteira. */
.g-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; align-items: start; margin-block: 28px; }
.g-gallery .g-photo { margin: 0; }
.g-gallery .g-photo img { aspect-ratio: 4 / 3; height: auto; max-height: none; object-fit: cover; border-radius: 22px; cursor: zoom-in; }
.g-gallery .g-photo:last-child:nth-child(odd) { grid-column: 1 / -1; }
.g-gallery .g-photo:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
.g-gallery .g-photo figcaption { font-size: 14px; }
@media (max-width: 560px) { .g-gallery { grid-template-columns: minmax(0, 1fr); } .g-gallery .g-photo:last-child:nth-child(odd) img { aspect-ratio: 4 / 3; } }

.g-tip, .g-warn { padding: 24px 28px; border-radius: 24px; font-size: 17px; line-height: 1.6; color: #fff; }
.g-tip { background: var(--ag-indigo); }
.g-warn { background: var(--ag-ink); }
.g-tip > b:first-child, .g-warn > b:first-child { display: block; margin-bottom: 4px; font-family: var(--ag-font-display); font-size: 20px; letter-spacing: -0.01em; color: var(--ag-yellow); }
.g-tip strong, .g-warn strong { color: #fff; }
.g-content .g-tip a, .g-content .g-warn a { color: #fff; }
.g-note { padding-left: 20px; border-left: 3px solid var(--ag-line-strong); font-size: 17px; line-height: 1.6; color: var(--ag-muted); }

.g-quote { margin-inline: 0; padding: 6px 0 6px 28px; border-left: 4px solid var(--ag-yellow); font-family: var(--ag-font-display); font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--ag-indigo); }
.g-quote cite { display: block; margin-top: 10px; font-family: var(--ag-font-body); font-size: 15px; font-style: normal; font-weight: 400; letter-spacing: 0; color: var(--ag-muted); }

/* Vídeos (carregam no clique) */
.g-video { margin-inline: 0; }
.g-video-btn { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--ag-ink); }
.g-video-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.g-video-btn:hover img { transform: scale(1.03); }
.g-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 24px; background: var(--ag-ink); }
.g-play { position: absolute; left: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: var(--ag-yellow); box-shadow: 0 8px 24px rgba(22, 22, 46, .35); transition: transform .2s ease; }
.g-play::after { content: ""; position: absolute; left: 24px; top: 19px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--ag-ink); }
.g-video-btn:hover .g-play { transform: scale(1.08); }
.g-video figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; font-size: 17px; line-height: 1.35; }
.g-video figcaption b { color: var(--ag-ink); font-weight: 600; }
.g-video figcaption span { font-size: 14px; color: var(--ag-muted); }
.g-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 640px) { .g-videos { grid-template-columns: minmax(0, 1fr); } .g-video-btn, .g-video iframe { border-radius: 20px; } }

/* Produtos da loja dentro do texto: os mesmos cartões do catálogo */
.g-shop { margin-top: 1.8em; }
.g-shop-title { margin: 0 0 16px; font-family: var(--ag-font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ag-indigo); }
.g-shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; font-size: 16px; line-height: 1.4; }
.g-shop-grid li + li { margin-top: 0; }
@media (max-width: 760px) { .g-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }

/* Dados curtos em linha (endereço, horário, grátis) */
.g-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--ag-ink); }
.g-facts li + li { margin-top: 0; }
.g-facts li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--ag-line-strong); }
.g-facts li.is-free { color: #17692f; }
.g-facts li.is-warn { color: #b3261e; }

/* Listas numeradas (tops) */
.g-top { list-style: none; padding: 0; counter-reset: top; }
.g-top > li { counter-increment: top; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 24px; padding-block: 40px; border-top: 1px solid var(--ag-line-strong); }
.g-top > li + li { margin-top: 0; }
.g-top > li:first-child { padding-top: 8px; border-top: 0; }
.g-top > li::before { content: counter(top); grid-row: 1 / span 12; align-self: start; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ag-yellow); font-family: var(--ag-font-display); font-size: 24px; font-weight: 700; color: var(--ag-ink); }
.g-top > li > * { grid-column: 2; max-width: 740px; }
.g-top > li > .g-wide, .g-top > li > .g-videos { max-width: none; }
.g-top > li > * + * { margin-top: 14px; }
.g-top > li > h2 { margin-top: 0; font-size: clamp(24px, 2.5vw, 32px); }
.g-top > li > h3 { margin-top: 0; font-size: 24px; }
.g-top > li > .g-facts { margin-top: 8px; }
@media (max-width: 640px) {
  .g-top > li { grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
  .g-top > li::before { grid-row: auto; width: 44px; height: 44px; font-size: 20px; margin-bottom: 12px; }
  .g-top > li > * { grid-column: 1; }
  .g-top > li > h2, .g-top > li > h3 { margin-top: 0; }
}

/* Linha do tempo */
.g-timeline { list-style: none; padding: 0 0 0 30px; border-left: 2px solid var(--ag-line-strong); }
.g-timeline li { position: relative; }
.g-timeline li + li { margin-top: 26px; }
.g-timeline li::before { content: ""; position: absolute; left: -39px; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--ag-yellow); box-shadow: 0 0 0 4px var(--ag-ground); }
.g-timeline b { display: block; font-family: var(--ag-font-display); font-size: 21px; letter-spacing: -0.01em; color: var(--ag-indigo); }

/* Agenda */
.g-agenda { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.g-agenda > li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: start; padding: 20px; border-radius: 24px; background: var(--ag-surface); }
.g-agenda > li + li { margin-top: 0; }
.g-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 96px; padding: 10px 6px; border-radius: 18px; background: var(--ag-indigo); color: #fff; text-align: center; line-height: 1; }
.g-date b { font-family: var(--ag-font-display); font-size: 30px; letter-spacing: -0.03em; color: #fff; }
.g-date small { margin-top: 6px; font-size: 10px; font-weight: 700; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; color: var(--ag-yellow); }
.g-agenda h3 { margin: 4px 0 0; font-size: 22px; padding-right: 110px; }
.g-agenda p { margin: 6px 0 0; font-size: 17px; line-height: 1.55; }
.g-agenda .g-facts { margin-top: 10px; font-size: 15px; }
.g-agenda > li.is-past { background: transparent; box-shadow: inset 0 0 0 1px var(--ag-line-strong); }
.g-agenda > li.is-past > * { opacity: .6; }
.g-agenda > li.is-past .g-date { background: var(--ag-muted); }
.g-agenda > li.is-next { box-shadow: 0 0 0 3px var(--ag-yellow); }
.g-agenda-flag { position: absolute; right: 20px; top: 22px; padding: 5px 12px; border-radius: var(--ag-pill); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--ag-yellow); color: var(--ag-ink); }
.g-agenda > li.is-past .g-agenda-flag { background: var(--ag-line); color: var(--ag-muted); opacity: 1; }
@media (max-width: 640px) {
  .g-agenda > li { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 20px; }
  .g-date { min-height: 72px; padding: 8px 5px; border-radius: 14px; }
  .g-date small { font-size: 8.5px; letter-spacing: 0; }
  .g-date b { font-size: 22px; }
  .g-agenda h3 { font-size: 19px; padding-right: 0; }
  .g-agenda-flag { position: static; grid-column: 2; justify-self: start; }
}

/* Trilhas */
.g-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.g-filter button { min-height: 48px; padding: 0 20px; border: 1.5px solid var(--ag-line-strong); border-radius: var(--ag-pill); background: var(--ag-surface); font: inherit; font-size: 16px; font-weight: 600; color: var(--ag-indigo); cursor: pointer; }
.g-filter button:hover { border-color: var(--ag-indigo); }
.g-filter button[aria-pressed="true"] { background: var(--ag-indigo); border-color: var(--ag-indigo); color: #fff; }
.g-trails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.g-trail { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 24px; background: var(--ag-surface); }
.g-trail .g-photo { margin: -26px -26px 8px; }
.g-trail .g-photo img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px 24px 0 0; }
.g-trail .g-photo figcaption { display: none; }
.g-trail[hidden] { display: none; }
.g-trail h3 { margin: 0; font-size: 23px; }
.g-trail p { margin: 0; font-size: 17px; line-height: 1.55; }
.g-trail .g-facts { font-size: 15px; }
.g-level { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ag-muted); }
.g-level i { display: inline-flex; gap: 4px; }
.g-level i::before, .g-level i::after, .g-level i span { content: ""; width: 20px; height: 8px; border-radius: 4px; background: var(--ag-line-strong); }
.g-level[data-n="1"] i::before { background: #2e9e57; }
.g-level[data-n="2"] i::before, .g-level[data-n="2"] i span { background: #e0a100; }
.g-level[data-n="3"] i::before, .g-level[data-n="3"] i span, .g-level[data-n="3"] i::after { background: #d64545; }
.g-trail.is-closed { background: transparent; box-shadow: inset 0 0 0 2px #d64545; }
@media (max-width: 760px) { .g-trails { grid-template-columns: minmax(0, 1fr); } }
/* Cartão que sobra sozinho na última linha ocupa a linha inteira; com foto, a foto vai para o lado. */
.g-trails > .g-trail:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 761px) {
  .g-trails > .g-trail:last-child:nth-child(odd):has(> .g-photo) { position: relative; justify-content: center; min-height: 270px; padding-left: calc(50% + 28px); }
  .g-trails > .g-trail:last-child:nth-child(odd):has(> .g-photo) > .g-photo { position: absolute; inset: 0 50% 0 0; margin: 0; }
  .g-trails > .g-trail:last-child:nth-child(odd):has(> .g-photo) > .g-photo img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; border-radius: 24px 0 0 24px; }
}
.g-find { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.g-find label { font-family: var(--ag-font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ag-indigo); }
.g-find input { width: 100%; max-width: 460px; min-height: 60px; padding: 0 24px; border: 2px solid var(--ag-indigo); border-radius: var(--ag-pill); background: var(--ag-surface); font: inherit; font-size: 20px; color: var(--ag-ink); }
.g-find input:focus { outline: 3px solid var(--ag-yellow); outline-offset: 2px; }
.g-find-msg { margin: 0; font-size: 17px; font-weight: 600; color: var(--ag-ink); }
.g-trail .g-names { font-size: 18px; line-height: 1.7; color: var(--ag-ink); }
.g-trail.is-match { box-shadow: 0 0 0 3px var(--ag-yellow); }

/* Receita: o que precisa (faixa azul) e cuidados */
.g-recipe { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.g-recipe > div { padding: 28px; border-radius: 24px; background: var(--ag-surface); }
.g-recipe h3 { margin: 0 0 8px; font-size: 22px; }
.g-content .g-recipe ul { list-style: none; padding: 0; margin: 0; }
.g-recipe li { padding: 11px 0; border-bottom: 1px solid var(--ag-line); font-size: 17px; line-height: 1.45; }
.g-recipe li + li { margin-top: 0; }
.g-recipe li:last-child { border-bottom: 0; padding-bottom: 0; }
.g-recipe > div:first-child { background: var(--ag-indigo); color: #fff; }
.g-recipe > div:first-child h3 { color: var(--ag-yellow); }
.g-recipe > div:first-child li { border-bottom-color: rgba(255, 255, 255, .2); }
@media (max-width: 760px) { .g-recipe { grid-template-columns: minmax(0, 1fr); } .g-recipe > div { padding: 22px; } }

/* Passo a passo */
.g-steps { list-style: none; padding: 0; counter-reset: step; }
.g-steps > li { counter-increment: step; position: relative; min-height: 46px; padding: 22px 0 22px 68px; border-top: 1px solid var(--ag-line-strong); }
.g-steps > li + li { margin-top: 0; }
.g-steps > li:last-child { border-bottom: 1px solid var(--ag-line-strong); }
.g-steps > li::before { content: counter(step); position: absolute; left: 0; top: 20px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ag-yellow); font-family: var(--ag-font-display); font-size: 21px; font-weight: 700; color: var(--ag-ink); }
.g-steps > li > b:first-child { display: block; margin-bottom: 2px; font-size: 20px; line-height: 1.3; color: var(--ag-ink); }
.g-steps > li > * { max-width: 672px; }

/* Tabelas e comparações */
.g-table-wrap { overflow-x: auto; border-radius: 24px; background: var(--ag-surface); }
.g-table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.45; }
.g-table th, .g-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ag-line); }
.g-table th { background: var(--ag-indigo); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-bottom: 0; }
.g-table tr:last-child td { border-bottom: 0; }
.g-table td:first-child { font-weight: 700; color: var(--ag-ink); }
@media (max-width: 640px) { .g-table { font-size: 15px; } .g-table th, .g-table td { padding: 12px 14px; } }
.g-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; }
.g-vs > div { padding: 28px; border-radius: 24px; background: var(--ag-surface); }
.g-vs > div h3 { margin: 0 0 10px; }
.g-vs > div ul { padding-left: 1.1em; margin: 0; font-size: 17px; line-height: 1.55; }
.g-vs > span { align-self: center; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--ag-yellow); font-family: var(--ag-font-display); font-size: 18px; font-weight: 700; color: var(--ag-ink); }
@media (max-width: 760px) { .g-vs { grid-template-columns: minmax(0, 1fr); } .g-vs > span { justify-self: center; } }

/* Checklist */
.g-check-wrap { padding: 26px 28px; border-radius: 24px; background: var(--ag-surface); }
.g-check-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 10px; }
.g-check-head h3 { margin: 0; font-size: 22px; }
.g-progress { flex: 0 1 260px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--ag-muted); white-space: nowrap; }
.g-progress span { flex: 1; height: 10px; border-radius: 5px; background: var(--ag-ground); overflow: hidden; }
.g-progress span i { display: block; height: 100%; width: 0; background: var(--ag-yellow); transition: width .3s ease; }
.g-check { list-style: none; padding: 0; margin: 0; }
.g-check li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; border-bottom: 1px solid var(--ag-line); }
.g-check li + li { margin-top: 0; }
.g-check li:last-child { border-bottom: 0; }
.g-check label { flex: 1 1 260px; display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; cursor: pointer; font-size: 18px; line-height: 1.45; color: var(--ag-ink); }
.g-check input { flex: 0 0 26px; width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--ag-indigo); }
.g-check li.is-done label > span { text-decoration: line-through; color: var(--ag-muted); }
.g-check small { display: block; font-size: 15px; color: var(--ag-muted); }
.g-check .g-check-shop { font-size: 15px; white-space: nowrap; }
.g-check-reset { margin-top: 12px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ag-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 640px) { .g-check-wrap { padding: 20px; } }

/* Fontes */
.g-sources { margin-top: 3em; padding-top: 24px; border-top: 1px solid var(--ag-line-strong); font-size: 15px; line-height: 1.6; color: var(--ag-muted); }
.g-content .g-sources h2 { margin: 0 0 8px; font-family: var(--ag-font-body); font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ag-muted); }
.g-sources ul { list-style: none; padding: 0; margin: 0; }
.g-content .g-sources a { color: var(--ag-muted); font-weight: 400; }
.g-content .g-sources a:hover { color: var(--ag-indigo); }

/* Guias curtos, só de texto: títulos menores pra não gritar mais que o conteúdo */
.g-layout-padrao .g-content h2 { font-size: clamp(24px, 2.2vw, 28px); margin-top: 1.7em; }
.g-layout-padrao .g-content > h2 + * { margin-top: .6em; }

/* Recado do leitor no fim do post. */
.g-recado { margin-top: 56px; padding: 32px; border-radius: 28px; background: var(--ag-surface); }
.g-content > .g-recado { max-width: 740px; }
.g-recado h2 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); }
.g-recado > p { margin: 8px 0 0; font-size: 17px; line-height: 1.55; }
.g-recado-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.g-recado-full { grid-column: 1 / -1; }
.g-recado-field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ag-ink); }
.g-recado-field small { font-weight: 400; color: var(--ag-muted); }
.g-recado-field input, .g-recado-field textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--ag-line-strong); border-radius: 16px; background: #fff; font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--ag-ink); }
.g-recado-field textarea { min-height: 120px; resize: vertical; }
.g-recado-field input:focus, .g-recado-field textarea:focus { outline: 2px solid var(--ag-indigo); outline-offset: 1px; border-color: transparent; }
.g-recado-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.g-recado-status { margin: 0; font-size: 15px; color: var(--ag-ink); }
.g-recado-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .g-recado { padding: 22px; border-radius: 22px; } .g-recado-form { grid-template-columns: minmax(0, 1fr); } .g-recado-actions .ag-btn { width: 100%; justify-content: center; } }
