/* Article pages v2 (2026-10-20): house colors (black, gold, red CTA) instead of the theme blue,
   top picks box, How we pick block, reading progress, save button. Scoped to body.bgh-post-v2. */

body.bgh-post-v2 {
  --color-primary: #b45309;
  --color-primary-hover: #92400e;
  --color-primary-dark: #78350f;
  --color-primary-light: rgba(212, 160, 23, .16);
  --color-primary-rgb: 180, 83, 9;
  --bgh-gold: #d4a017;
  --bgh-red: #e0312b;
  --bgh-red-dark: #b9221d;
}
[data-theme="dark"] body.bgh-post-v2 {
  --color-primary: #f5b942;
  --color-primary-hover: #fbd27a;
  --color-primary-light: rgba(245, 185, 66, .16);
  --color-primary-rgb: 245, 185, 66;
}

/* reading progress */
.bgh-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 9999; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #e0312b, #f97316, #d4a017); pointer-events: none; }

/* hero: gold glow + save button */
.bgh-post-v2 .post-hero { position: relative; overflow: hidden; }
.bgh-post-v2 .post-hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(212,160,23,.30), rgba(212,160,23,0) 70%); pointer-events: none; }
.bgh-post-v2 .post-hero .container { position: relative; z-index: 1; }
.bgh-post-v2 .post-hero__title { text-wrap: balance; }
.bgh-post-v2 .post-hero__rating { margin-right: 8px; }
.bgh-heart--hero { position: static; width: auto; height: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #111; font-size: 15px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.bgh-heart--hero svg { width: 18px; height: 18px; }
.bgh-heart--hero[aria-pressed="true"] { background: #fff1f0; }

/* headings and links */
.bgh-post-v2 .post-content a:not([class]) { color: var(--color-primary); text-decoration-color: rgba(212,160,23,.6); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bgh-post-v2 .post-content a:not([class]):hover { color: var(--bgh-red); }
.bgh-post-v2 .post-content h2 { border-left-color: var(--bgh-gold); }

/* tables: black header, gold text, zebra rows */
.bgh-post-v2 .post-content table { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.bgh-post-v2 .post-content table thead th { background: #111 !important; color: #f5c542 !important; border-color: #111 !important; text-transform: none; letter-spacing: .01em; }
.bgh-post-v2 .post-content table tbody tr:nth-child(even) td { background: rgba(212,160,23,.07); }

/* product list: house red CTA, gold rank, livelier cards */
.bgh-post-v2 .acms-btn--amazon { background: linear-gradient(135deg, #ef4444, #e0312b) !important; border-color: #e0312b !important; box-shadow: 0 3px 0 #b9221d; color: #fff !important; }
.bgh-post-v2 .acms-btn--amazon:hover { background: linear-gradient(135deg, #e0312b, #b9221d) !important; box-shadow: 0 5px 14px rgba(224,49,43,.35); }
.bgh-post-v2 .acms-list__item { border-radius: 16px; transition: box-shadow .2s, transform .2s; }
.bgh-post-v2 .acms-list__item:hover { box-shadow: 0 14px 34px rgba(0,0,0,.10); }
.bgh-post-v2 .acms-list__rank { background: #111 !important; color: #f5c542 !important; box-shadow: 0 0 0 4px rgba(212,160,23,.35); }
.bgh-post-v2 .acms-list__title { scroll-margin-top: 90px; }
.bgh-post-v2 .acms-list__row--toggle:hover { background: rgba(212,160,23,.08); }

/* top picks box */
.bgh-picks { margin: 28px 0 36px; border-radius: 18px; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.bgh-picks__head { padding: 18px 22px; background: linear-gradient(120deg, #0b0b0b 0%, #1c1404 60%, #4a3305 100%); color: #fff; }
.bgh-picks__kick { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f5c542; }
.post-content .bgh-picks__title { margin: 4px 0 0 !important; padding: 0 !important; border: 0 !important; font-size: 22px; color: #fff !important; }
.post-content .bgh-picks__title::before, .post-content .bgh-picks__title::after { display: none !important; }
.bgh-picks__list { list-style: none; margin: 0 !important; padding: 6px 12px !important; }
.bgh-picks__item { display: grid; grid-template-columns: 30px 56px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--color-border); margin: 0 !important; }
.bgh-picks__item::before { display: none !important; }
.bgh-picks__item:last-child { border-bottom: 0; }
.bgh-picks__rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #111; color: #f5c542; }
.bgh-picks__item:nth-child(1) .bgh-picks__rank { background: linear-gradient(135deg, #d4a017, #facc15); color: #111; }
.bgh-picks__img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--color-border); margin: 0 !important; }
.bgh-picks__info { display: grid; gap: 3px; min-width: 0; }
.bgh-picks__badge { justify-self: start; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: #d4a017; color: #111; }
.bgh-picks__item:nth-child(2) .bgh-picks__badge { background: #2563eb; color: #fff; }
.bgh-picks__item:nth-child(3) .bgh-picks__badge { background: #0d9488; color: #fff; }
.bgh-picks__item:nth-child(4) .bgh-picks__badge { background: #7c3aed; color: #fff; }
.bgh-picks__item:nth-child(n+5) .bgh-picks__badge { background: #db2777; color: #fff; }
.bgh-picks__badge--plain { background: var(--color-bg-alt) !important; color: var(--color-text-muted) !important; }
.post-content .bgh-picks__name { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--color-text) !important; text-decoration: none !important; }
.post-content .bgh-picks__name:hover { color: var(--color-primary) !important; text-decoration: underline !important; }
.bgh-picks__score { text-align: right; line-height: 1; white-space: nowrap; }
.bgh-picks__score b { font-size: 18px; color: var(--color-text); }
.bgh-picks__score small { font-size: 11px; color: var(--color-text-muted); margin-left: 2px; }
.post-content .bgh-picks__btn { white-space: nowrap; background: linear-gradient(135deg, #ef4444, #e0312b); color: #fff !important; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 8px; text-decoration: none !important; box-shadow: 0 3px 0 #b9221d; }
.post-content .bgh-picks__btn:hover { transform: translateY(-1px); }

/* How we pick (end of review posts) */
.bgh-how { margin: 36px 0 8px; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, #0b0b0b, #1f1b3a 70%, #3b1d5e); color: #fff; }
.bgh-how__title { margin: 0 0 14px; font-size: 21px; font-weight: 800; color: #fff; border: 0; padding: 0; }
.bgh-how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bgh-how__step { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.07); margin: 0; }
.bgh-how__step::before { display: none; }
.bgh-how__step i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: #fff; }
.bgh-how__step--blue i { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.bgh-how__step--teal i { background: linear-gradient(135deg, #0d9488, #22c55e); }
.bgh-how__step--gold i { background: linear-gradient(135deg, #d97706, #facc15); }
.bgh-how__step b { display: block; font-size: 15px; margin-bottom: 3px; color: #fff; }
.bgh-how__step span { font-size: 13px; line-height: 1.45; color: #d4d4d8; }

/* footer of the article: no empty tag row, warmer author card, related cards */
.bgh-post-v2 .post-footer__tags:has(.post-footer__tags-empty) { visibility: hidden; }
.bgh-post-v2 .post-footer__author-centered { position: relative; border-radius: 18px; padding-top: 28px; background: linear-gradient(180deg, rgba(212,160,23,.12), transparent 70%); }
.bgh-post-v2 .post-footer__author-label { color: var(--color-primary); letter-spacing: .14em; font-weight: 800; }
.bgh-post-v2 .post-footer__author-centered img { box-shadow: 0 0 0 4px #fff, 0 0 0 7px #d4a017; }
.bgh-post-v2 .related-content__title { position: relative; }
.bgh-post-v2 .related-slider__slide { transition: transform .2s; }
.bgh-post-v2 .related-slider__slide:hover { transform: translateY(-3px); }
.bgh-post-v2 .related-slider__dot.is-active { background: #d4a017 !important; }

@media (max-width: 767px) {
  .bgh-picks__item { grid-template-columns: 26px 48px 1fr; row-gap: 8px; }
  .bgh-picks__img { width: 48px; height: 48px; }
  .bgh-picks__score { grid-column: 2 / 3; text-align: left; }
  .bgh-picks__btn { grid-column: 3 / 4; justify-self: start; }
  .bgh-how__steps { grid-template-columns: 1fr; }
  .bgh-heart--hero { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .bgh-post-v2 .acms-list__item, .bgh-post-v2 .related-slider__slide { transition: none; } }
/* pros & cons now open by default, so the rank badge sits at the top of the card instead of the middle */
.bgh-post-v2 .acms-list__rank { top: 28px; transform: none; }
.bgh-post-v2 .acms-list__item:hover .acms-list__rank { transform: scale(1.1); }
/* pros & cons table is two inline-styled columns; stack them on phones so each line stays readable */
@media (max-width: 600px) {
  .bgh-post-v2 .acms-list__tab-content table,
  .bgh-post-v2 .acms-list__tab-content tbody,
  .bgh-post-v2 .acms-list__tab-content tr,
  .bgh-post-v2 .acms-list__tab-content td { display: block !important; width: 100% !important; }
  .bgh-post-v2 .acms-list__tab-content table { border-spacing: 0 !important; margin: 8px 0 !important; }
  .bgh-post-v2 .acms-list__tab-content td { margin-bottom: 10px; padding: 14px 16px !important; }
  .bgh-post-v2 .acms-list__tab-content td div { text-align: left !important; }
}
