/* Quero HQ, guide page ("onde acompanhar promoção de HQ").
   Read surface: an article column first, the comic-poster language from site.css in the details.
   Loads after site.css and only adds what the guide needs; every token comes from there. */

:root {
  --col: 720px;
  --g-body: 18px;
  --g-sec: 56px;
}
@media (width >= 768px) {
  :root { --g-body: 19px; --g-sec: 80px; }
}
@media (width >= 1024px) {
  :root { --g-sec: 96px; }
}

/* ---------- Layout ---------- */
.g-col {
  width: 100%;
  max-width: calc(var(--col) + 2 * var(--gut));
  padding-inline: var(--gut);
  margin-inline: auto;
}
.g-sec {
  display: grid;
  gap: 24px;
  margin-top: var(--g-sec);
}
.g-sec-head {
  display: grid;
  justify-items: start;
  gap: 14px;
}

/* ---------- Header CTA (goes to the home's join section, not a channel) ---------- */
.btn-brand { background: var(--brand); }
.btn-brand:hover { background: var(--brand-hover); }

/* ---------- Type ---------- */
.g-h1,
.g-h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  text-wrap: balance;
}
.g-h1 {
  max-width: 15ch;
  font-size: clamp(40px, 3.4vw + 24px, 80px);
  line-height: .95;
  letter-spacing: -.01em;
}
.g-h2 {
  max-width: 20ch;
  font-size: clamp(28px, 1.6vw + 21px, 44px);
  line-height: 1.02;
  letter-spacing: -.005em;
}
.g-prose,
.g-prose p {
  max-width: 66ch;
  font-size: var(--g-body);
  line-height: 1.6;
}
.g-prose strong { font-weight: 700; }

/* ---------- Opening ---------- */
.g-hero { padding-top: 8px; }
.g-hero-panel { padding: 28px var(--pad) 40px; }
.g-hero-inner {
  max-width: var(--col);
  display: grid;
  justify-items: start;
  gap: 18px;
  padding-inline: 0;
}
.g-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -10px 0 -6px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.g-back:hover { text-decoration-thickness: 3px; }
.g-meta { background: var(--ink-0); }
.g-lede {
  max-width: 58ch;
  font-size: clamp(18px, .5vw + 16px, 21px);
  line-height: 1.55;
}
.g-lede strong {
  padding: .02em .28em;
  background: var(--ink);
  color: var(--yellow-400);
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (width >= 1024px) {
  .g-hero-panel { padding: 56px 48px 72px; }
  .g-hero-inner { gap: 22px; }
}
/* Print dots in the free margin of the yellow band, never behind the text. */
@media (width >= 1200px) {
  .g-hero-panel::after {
    content: "";
    position: absolute;
    right: -4%;
    bottom: -18%;
    width: 300px;
    aspect-ratio: 1;
    background-image: radial-gradient(var(--ink) var(--comic-halftone-dot), transparent calc(var(--comic-halftone-dot) + .5px));
    background-size: var(--comic-halftone-pitch) var(--comic-halftone-pitch);
    opacity: var(--opacity-halftone);
    -webkit-mask-image: radial-gradient(closest-side, #000 30%, #0000 100%);
    mask-image: radial-gradient(closest-side, #000 30%, #0000 100%);
    pointer-events: none;
  }
}

/* ---------- Shared bits ---------- */
.g-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (width >= 640px) {
  .g-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.g-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--brand);
  color: var(--ink);
  border: var(--line);
  border-radius: 50%;
}
.g-ico svg { width: 24px; height: 24px; }

/* ---------- Short answer ---------- */
.g-tool {
  display: grid;
  align-content: start;
  gap: 10px;
}
.g-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  line-height: .9;
  color: var(--yellow-400);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
}
.panel-ink .g-num { -webkit-text-stroke: 0; text-shadow: none; }
.g-tool h3,
.g-side h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.panel-ink.g-tool h3 { color: var(--yellow-400); }
.g-tool p,
.g-side p {
  font-size: 17px;
  line-height: 1.55;
}
.panel-ink.g-tool p { color: var(--ink-200); }

/* Comment balloon: the tail points up at the two panels it sums up. */
.balloon.g-balloon {
  --tail-x: 40px;
  margin: 14px 0 0;
  padding: 18px 24px;
}
.g-balloon::before { top: -24px; bottom: auto; transform: scaleY(-1); }
.g-balloon::after { top: -16px; bottom: auto; transform: scaleY(-1); }
.g-balloon p {
  max-width: 58ch;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.g-balloon strong { font-weight: 800; }

/* ---------- Where to look ---------- */
.panel.g-stores { padding: 0; }
.g-store {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 4px;
  padding: 20px 22px;
}
.g-store + .g-store { border-top: var(--border-2) solid var(--ink-200); }
.g-store .g-ico { grid-row: span 2; }
.g-store h3 {
  align-self: end;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}
.g-store p {
  font-size: 17px;
  line-height: 1.5;
}
@media (width >= 1024px) {
  .g-store { padding: 24px 32px; column-gap: 22px; }
}

/* ---------- The trap ---------- */
.g-side {
  display: grid;
  align-content: start;
  gap: 12px;
}
.g-side-warn .g-ico { background: var(--accent); color: var(--on-accent); }
.g-side-ok .g-ico { background: var(--success); color: var(--on-success); }
.panel-yellow.g-side p { color: var(--ink-950); }
.g-check p {
  max-width: 44ch;
  font-family: var(--font-heading);
  font-size: clamp(19px, .8vw + 15px, 24px);
  font-weight: 700;
  line-height: 1.4;
}
.g-check strong {
  padding: 0 .2em;
  background: var(--yellow-400);
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Past deals ---------- */
.g-hist { padding: 32px var(--pad) 36px; }
.g-col-in {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
}
.g-hist .g-h2 { color: var(--yellow-400); }
.g-hist .g-prose { color: var(--ink-200); }
.g-deals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px 20px;
  width: 100%;
  max-width: 1040px;
  margin: 36px auto 0;
}
@media (width >= 640px) {
  .g-deals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (width >= 1024px) {
  .g-hist { padding: 64px 48px 56px; }
  .g-deals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
}
.g-deal {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 16px;
  row-gap: 6px;
  padding: 16px 18px 16px 16px;
  background: var(--ink-0);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 0 var(--yellow-400);
}
.g-deal-cover { grid-row: 1 / 4; align-self: start; }
.g-deal-cover img {
  width: 72px;
  height: auto;
  border: var(--border-2) solid var(--ink);
}
.g-stamp {
  position: absolute;
  top: -14px;
  right: -10px;
  padding: 7px 9px 6px;
  background: var(--accent);
  color: var(--on-accent);
  border: var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transform: rotate(8deg);
}
.g-deal h3 {
  padding-right: 40px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.g-deal-price {
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-600);
  font-variant-numeric: tabular-nums;
}
.g-deal-price s { color: var(--ink-500); }
.g-deal-price strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--price-current);
  white-space: nowrap;
}
.g-deal-store {
  align-self: end;
  width: fit-content;
  padding: 2px 8px;
  background: var(--amazon);
  color: var(--ink);
  border: var(--border-2) solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.g-hist-note {
  max-width: 62ch;
  margin: 32px auto 0;
  color: var(--ink-300);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

/* ---------- Closing CTA ---------- */
.panel.final.g-final { padding-bottom: 64px; }
.g-final .fine { margin-top: -4px; }
@media (width >= 1024px) {
  .panel.final.g-final { padding: 80px 48px 88px; }
}

/* ---------- FAQ ---------- */
/* site.css lays the home's #faq out in two columns; the guide keeps one reading column. */
#faq.g-sec { grid-template-columns: minmax(0, 1fr); }
.g-faq-head {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 14px;
  min-height: 200px;
  padding-right: 128px;
}
.g-faq-head .cap { background: var(--ink-0); }
.g-teo {
  position: absolute;
  right: 12px;
  bottom: 0;
  z-index: 0 !important;
  width: 104px;
  height: auto;
}
.g-faq {
  display: grid;
  gap: 12px;
}
.g-faq .qa summary span { text-wrap: pretty; }
@media (width >= 640px) {
  .g-faq-head { min-height: 230px; padding-right: 180px; }
  .g-teo { right: 32px; width: 132px; }
}
@media (width >= 1024px) {
  .g-faq-head { min-height: 272px; padding: 40px 220px 40px 44px; }
  .g-teo { right: 48px; width: 150px; }
}

/* ---------- Polish pass ---------- */
/* The opening frames the reading column instead of leaving half a band empty. */
.g-hero-panel {
  max-width: calc(var(--col) + 2 * var(--pad) + 6px);
  margin-inline: auto;
}
@media (width >= 1024px) {
  .g-hero-panel { max-width: calc(var(--col) + 102px); }
}
.g-hero-inner { margin-inline: 0; }
.g-meta {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-800);
}
/* In-page contents: the section names, as links. */
.g-toc {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 2px dashed var(--ink);
}
.g-toc-t {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.g-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.g-toc a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px 0 10px;
  background: var(--ink-0);
  color: var(--ink);
  border: var(--border-2) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 0 0 var(--ink);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.g-toc a svg { width: 16px; height: 16px; flex: none; }
.g-toc a:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--ink); }
.g-toc a:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--ink); }
html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { .g-toc a { transition: none; } }

/* Tool cards open with an icon, not a decorative number. */
.g-tool .g-ico { margin-bottom: 6px; }
.panel-ink.g-tool .g-ico { background: var(--yellow-400); border-color: var(--yellow-400); }

/* Past deals: the heading shares the deal grid's left edge. */
.g-hist .g-col-in { max-width: 1040px; }
.g-hist .g-prose { max-width: 62ch; }

/* Phones: deal cards stay compact so six of them do not become a wall. */
@media (width < 640px) {
  .g-deals { gap: 18px; }
  .g-deal { grid-template-columns: 60px minmax(0, 1fr); column-gap: 14px; padding: 14px 16px 14px 14px; }
  .g-deal-cover img { width: 60px; }
  .g-deal h3 { font-size: 16px; }
  .g-deal-price strong { font-size: 23px; }
}
.g-hero-inner .g-meta { padding: 0; background: none; }
.g-faq-head { align-content: center; }
@media (width < 640px) {
  .g-toc ul { gap: 8px; }
  .g-toc a { padding: 0 12px 0 8px; font-size: 14px; }
}
.g-deal h3, .g-store h3 { line-height: 1.3; }
#faq.g-sec { padding-bottom: 56px; }
@media (width >= 1024px) { #faq.g-sec { padding-bottom: 96px; } }
