/* Buying-guide lift (answer first, three picks above the fold, comparison table with buttons).
   Loaded last on guides/best-*.html and the new buying guides. Scoped to .gl-* and body.gl-lift. */

/* Compact hero so the answer and the first pick sit in the first phone screen */
body.gl-lift .hero { padding: 1.25rem 0 1rem !important; min-height: 0; }
body.gl-lift .hero .hero-description { font-size: 1rem; line-height: 1.5; margin-bottom: .25rem; }
body.gl-lift .hero h1 { margin-bottom: .5rem; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.12; }
body.gl-lift .hero .hero-content > div[style*="display: flex"] { margin-top: .4rem !important; font-size: .85rem; }
body.gl-lift .hero .hero-badge { display: none; }
body.gl-lift .hero .breadcrumb { margin-bottom: .6rem !important; }
@media (max-width: 640px) {
  body.gl-lift .hero .hero-content > div[style*="display: flex"] { display: none !important; }
  body.gl-lift .hero .hero-description, body.gl-lift .hero .hero-badge, body.gl-lift .hero .breadcrumb { display: none; }
  body.gl-lift .hero { padding: .9rem 0 .6rem !important; }
  body.gl-lift .hero h1 { font-size: 1.45rem; line-height: 1.15; margin-bottom: 0; }
  .gl-answer { padding: .7rem .9rem; margin: .7rem 0 .8rem; font-size: .97rem; line-height: 1.45; }
}
.gl-note { margin: 0 0 1.1rem; color: var(--color-text-muted); font-size: .95rem; line-height: 1.55; }
.gl-note a { color: var(--color-accent-light); text-decoration: underline; text-underline-offset: 3px; }

/* Answer block */
.gl-answer { margin: 1rem 0 1.1rem; padding: .9rem 1.1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent); border-radius: 8px; line-height: 1.55; }
.gl-answer p { margin: 0; }
.gl-answer p + p { margin-top: .5rem; font-size: .92rem; color: var(--color-text-muted); }
.gl-answer a { color: var(--color-accent-light); text-decoration: underline; text-underline-offset: 3px; }

/* Three-tier pick row */
.gl-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0 0 1.25rem; }
.gl-tier { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; padding: .7rem; text-align: center; position: relative; }
.gl-tier.is-top { border: 2px solid var(--color-accent); }
.gl-label { display: inline-block; align-self: center; margin: 0 0 .5rem; padding: .15rem .6rem; border-radius: 999px; background: var(--color-accent); color: var(--color-primary); font-weight: 800; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.gl-tier .gl-photo { display: flex; align-items: center; justify-content: center; height: 150px; background: #fff; border-radius: 8px; padding: 6px; }
.gl-tier .gl-photo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.gl-name { margin: .6rem 0 .15rem; font-weight: 700; font-size: .98rem; line-height: 1.3; }
.gl-name a { color: var(--color-text) !important; text-decoration: none !important; }
.gl-why { margin: 0 0 .65rem; color: var(--color-text-muted); font-size: .86rem; line-height: 1.4; flex: 1 1 auto; }
.gl-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .8rem; border-radius: 8px; background: var(--color-accent); color: var(--color-primary) !important; font-weight: 800; font-size: .9rem; text-decoration: none !important; text-align: center; }
.gl-btn:hover { background: var(--color-accent-light); }
@media (max-width: 640px) {
  .gl-tiers { grid-template-columns: 1fr; gap: .55rem; }
  .gl-tier { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: .7rem; text-align: left; padding: .55rem; align-items: start; }
  .gl-tier .gl-label { grid-column: 1 / -1; justify-self: start; margin: 0 0 .35rem; }
  .gl-tier .gl-photo { grid-row: 2 / span 3; height: 96px; width: 96px; }
  .gl-name { margin: 0 0 .1rem; font-size: .92rem; overflow-wrap: anywhere; }
  .gl-why { font-size: .8rem; margin-bottom: .4rem; }
  .gl-btn { font-size: .85rem; min-height: 44px; }
}

/* Comparison table: real table on desktop, stacked cards with a button on phones */
.gl-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: .92rem; }
.gl-table th, .gl-table td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.gl-table th { background: var(--color-background-alt); font-family: var(--font-display); text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; }
.gl-table td.gl-prod { min-width: 190px; }
.gl-table .gl-thumb { display: inline-block; width: 44px; height: 44px; margin-right: .6rem; vertical-align: middle; background: #fff; border-radius: 6px; padding: 2px; }
.gl-table .gl-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gl-table td.gl-prod a.gl-pname { color: var(--color-accent-light); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; vertical-align: middle; }
.gl-table .gl-btn { display: inline-flex; min-height: 40px; padding: .35rem .8rem; white-space: nowrap; font-size: .85rem; }
@media (max-width: 720px) {
  .gl-table, .gl-table tbody, .gl-table tr, .gl-table td { display: block; width: 100%; }
  .gl-table thead { display: none; }
  .gl-table tr { margin: 0 0 .7rem; padding: .6rem .7rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; }
  .gl-table td { border: 0; padding: .2rem 0; }
  .gl-table td[data-l]::before { content: attr(data-l) ": "; color: var(--color-text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
  .gl-table td.gl-prod { min-width: 0; }
  .gl-table td.gl-go { padding-top: .45rem; }
  .gl-table .gl-btn { display: flex; width: 100%; }
}

/* Add-all-to-cart row */
.gl-cart { margin: .4rem 0 1.25rem; font-size: .9rem; color: var(--color-text-muted); }
.gl-cart a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem; border: 2px solid var(--color-accent); border-radius: 8px; font-weight: 800; color: var(--color-accent-light) !important; text-decoration: none !important; margin-right: .6rem; }
.gl-cart a:hover { background: var(--color-accent); color: var(--color-primary) !important; }

/* Safety note (fuel-burning heaters and generators) */
.gl-safety { margin: 1rem 0 1.25rem; padding: .8rem 1rem; border: 1px solid var(--color-danger); border-left: 4px solid var(--color-danger); border-radius: 8px; background: var(--color-surface); font-size: .95rem; line-height: 1.5; }
.gl-safety strong { color: var(--color-danger-light); }

/* More buying guides row */
.gl-more { margin: 1.5rem 0; }
.gl-more h2 { margin-bottom: .6rem; }
.gl-more ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .5rem; }
.gl-more li a { display: block; padding: .65rem .8rem; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface); color: var(--color-accent-light); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

/* Product cards: show the whole photo, not a crop */
.pick-card .pick-image { object-fit: contain !important; background: #fff !important; padding: 6px; height: 170px !important; }
.pick-cta { min-height: 44px; }
.pick-title a { color: var(--color-text); text-decoration: none; }
.comparison-table { display: block; overflow-x: auto; }
