/* ==========================================================================
   GiftCashly V16 — homepage sections (index.php): review strip (.hrv, includes/home-reviews.php) and the FAQ (.hfq).
   Loaded in <body> after every head stylesheet. Light values are the defaults; the dark theme is written out explicitly
   under html[data-theme="dark"] (this file is not part of tools/build-theme-dark.php's colour mirror).
   Every selector carries two classes so generic body.gq h2 / p / a rules never win.
   ========================================================================== */
.hrv,.hfq{--h-ink:#07184F;--h-ink2:#3A475C;--h-mute:#5F6B85;--h-line:#E2E8F2;--h-line2:#D3DCEB;--h-surface:#FFFFFF;--h-soft:#F3F6FC;
  --h-blue:#0A5CE0;--h-blue2:#064AC8;--h-link:#0A5CE0;--h-star:#14A06B;--h-star-off:#D9DFE9;--h-chip:#EEF3FF;--h-chip-line:#D8E3FB;
  --h-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(7,24,79,.06);--h-disp:'Sora','Plus Jakarta Sans','Inter',system-ui,sans-serif;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif}
html[data-theme="dark"] .hrv,html[data-theme="dark"] .hfq{--h-ink:#E8EEFB;--h-ink2:#C3CCE0;--h-mute:#93A0BD;--h-line:rgba(255,255,255,.09);--h-line2:rgba(255,255,255,.16);
  --h-surface:#111A2E;--h-soft:#16213A;--h-blue:#3D7BF5;--h-blue2:#2F6BE6;--h-link:#7FB0FF;--h-star:#1DB37A;--h-star-off:rgba(255,255,255,.14);
  --h-chip:rgba(76,141,255,.12);--h-chip-line:rgba(127,176,255,.22);--h-shadow:0 1px 2px rgba(0,0,0,.3),0 10px 28px rgba(0,0,0,.28)}
.hrv *,.hfq *{box-sizing:border-box}

/* ============================== review strip ============================== */
.hrv{max-width:1280px;margin:0 auto;padding:30px 20px 6px}
.hrv .hrv-in{display:grid;grid-template-columns:264px minmax(0,1fr);gap:28px;align-items:center}
.hrv .hrv-score{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;min-width:0}
.hrv .hrv-word{margin:0;font:800 1.65rem/1.1 var(--h-disp);letter-spacing:-.025em;color:var(--h-ink)}
.hrv .hrv-num{margin:2px 0 0;font-size:.88rem;line-height:1.4;color:var(--h-mute)}
.hrv .hrv-num b{color:var(--h-ink);font-weight:800}
.hrv .hrv-num a{white-space:nowrap;color:var(--h-ink);font-weight:700;text-decoration:underline;text-decoration-color:var(--h-line2);text-underline-offset:3px}
.hrv .hrv-num a:hover{color:var(--h-link);text-decoration-color:currentColor}
.hrv .hrv-src{display:inline-flex;align-items:center;gap:6px;margin:2px 0 0;white-space:nowrap;font-size:.74rem;line-height:1.3;color:var(--h-mute)}
.hrv .hrv-src svg{width:14px;height:14px;flex:0 0 auto;fill:none;stroke:var(--h-star);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* star tiles (our own green blocks) */
.hrv .hrv-stars{display:inline-flex;gap:3px;line-height:0}
.hrv .hrv-stars i{position:relative;display:grid;place-items:center;width:20px;height:20px;border-radius:3px;
  background:linear-gradient(90deg,var(--h-star) 0 var(--f,100%),var(--h-star-off) var(--f,100%) 100%)}
.hrv .hrv-stars svg{width:78%;height:78%;fill:#fff}
.hrv .hrv-stars.lg{gap:4px}.hrv .hrv-stars.lg i{width:34px;height:34px;border-radius:4px}
.hrv .hrv-stars.sm i{width:18px;height:18px}

/* rail */
.hrv .hrv-main{min-width:0}
.hrv .hrv-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 32px) / 3);gap:16px;overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:4px 2px 6px;margin:-4px -2px 0}
.hrv .hrv-rail::-webkit-scrollbar{display:none}
.hrv .hrv-rail:focus-visible{outline:3px solid var(--h-blue);outline-offset:3px;border-radius:16px}
.hrv .hrv-card{scroll-snap-align:start;display:flex;flex-direction:column;gap:10px;min-height:178px;padding:16px 16px 14px;border-radius:14px;
  background:var(--h-surface);border:1px solid var(--h-line);box-shadow:var(--h-shadow);margin:0}
.hrv .hrv-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0;border:0;background:none}
.hrv .hrv-ago{font-size:.74rem;color:var(--h-mute);white-space:nowrap}
.hrv .hrv-quote{margin:0;font-size:.9rem;line-height:1.5;color:var(--h-ink2);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.hrv .hrv-quote-none{color:var(--h-mute);font-style:italic}
.hrv .hrv-card-foot{margin:auto 0 0;padding:10px 0 0;border:0;border-top:1px solid var(--h-line);background:none;display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.hrv .hrv-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.hrv .hrv-who b{font-size:.86rem;font-weight:700;color:var(--h-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hrv .hrv-ctry{display:inline-flex;align-items:center;gap:6px;font-size:.74rem;color:var(--h-mute);white-space:nowrap}
.hrv .hrv-ctry .gq-flag{width:16px;height:auto;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.06)}
.hrv .hrv-ctry .gq-flag-txt{font-size:.9rem;line-height:1}
.hrv .hrv-brand{flex:0 1 auto;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 9px;border-radius:999px;
  font-size:.7rem;font-weight:700;color:var(--h-ink2);background:var(--h-soft);border:1px solid var(--h-line)}
.hrv .hrv-ctl{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0}
.hrv .hrv-all{display:inline-flex;align-items:center;gap:6px;font-size:.88rem;font-weight:700;color:var(--h-link);text-decoration:none}
.hrv .hrv-all:hover{text-decoration:underline;text-underline-offset:3px}
.hrv .hrv-arrows{display:inline-flex;gap:8px}
.hrv .hrv-btn{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;
  background:var(--h-surface);border:1px solid var(--h-line2);color:var(--h-ink);transition:background .15s,border-color .15s,opacity .15s}
.hrv .hrv-btn:hover:not(:disabled){border-color:var(--h-blue);color:var(--h-blue)}
.hrv .hrv-btn:disabled{opacity:.35;cursor:default}
.hrv .hrv-btn:focus-visible{outline:3px solid var(--h-blue);outline-offset:2px}
.hrv .hrv-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:1060px){
  .hrv .hrv-in{grid-template-columns:220px minmax(0,1fr);gap:22px}
  .hrv .hrv-rail{grid-auto-columns:calc((100% - 16px) / 2)}
  .hrv .hrv-stars.lg i{width:30px;height:30px}
}
@media (max-width:760px){
  .hrv{padding:22px 0 0}
  .hrv .hrv-in{grid-template-columns:minmax(0,1fr);gap:14px}
  .hrv .hrv-score{display:grid;grid-template-columns:auto auto;justify-content:start;align-items:center;column-gap:12px;row-gap:6px;text-align:left;padding:0 16px}
  .hrv .hrv-word{font-size:1.35rem}
  .hrv .hrv-stars.lg{gap:3px}.hrv .hrv-stars.lg i{width:26px;height:26px;border-radius:3px}
  .hrv .hrv-num,.hrv .hrv-src{grid-column:1/-1}
  .hrv .hrv-num{margin:0}
  .hrv .hrv-src{display:none}
  .hrv .hrv-rail{grid-auto-columns:82%;gap:12px;padding:4px 16px 6px;margin:-4px 0 0;scroll-padding:0 16px}
  .hrv .hrv-card{min-height:170px}
  .hrv .hrv-ctl{padding:0 16px;margin-top:8px}
  .hrv .hrv-arrows{display:none}
}

/* ================================== FAQ ================================== */
.hfq{max-width:1280px;margin:0 auto;padding:60px 20px 72px}
.hfq .hfq-in{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:64px;align-items:start}
.hfq .hfq-side{position:sticky;top:96px}
.hfq .hfq-title{margin:0;font:800 clamp(1.6rem,2.4vw,2.05rem)/1.12 var(--h-disp);letter-spacing:-.03em;color:var(--h-ink)}
.hfq .hfq-facts{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.hfq .hfq-facts li{margin:0;padding:7px 12px;border-radius:999px;background:var(--h-chip);border:1px solid var(--h-chip-line);font-size:.8rem;line-height:1.2;color:var(--h-ink2);white-space:nowrap}
.hfq .hfq-facts b{color:var(--h-ink);font-weight:800;font-variant-numeric:tabular-nums}
.hfq .hfq-help{margin:24px 0 0;padding:16px;border-radius:16px;background:var(--h-surface);border:1px solid var(--h-line);box-shadow:var(--h-shadow);
  display:grid;grid-template-columns:42px minmax(0,1fr);gap:4px 12px;align-items:center}
.hfq .hfq-help-ic{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--h-chip);color:var(--h-blue)}
.hfq .hfq-help-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hfq .hfq-help-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.hfq .hfq-help-t b{font-size:.95rem;font-weight:700;color:var(--h-ink)}
.hfq .hfq-help-t small{font-size:.8rem;line-height:1.35;color:var(--h-mute)}
.hfq .hfq-help-btn{grid-column:1/-1;margin-top:12px;display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:11px;
  background:var(--h-blue);color:#fff;font-weight:700;font-size:.92rem;text-decoration:none;transition:background .15s}
.hfq .hfq-help-btn:hover{background:var(--h-blue2);color:#fff}
.hfq .hfq-help-btn:focus-visible{outline:3px solid var(--h-blue);outline-offset:2px}

.hfq .hfq-list{border-top:1px solid var(--h-line);min-width:0}
.hfq .hfq-item{margin:0;padding:0;border:0;border-bottom:1px solid var(--h-line);background:none;box-shadow:none;border-radius:0}
.hfq .hfq-q{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:48px;padding:19px 2px;
  font:600 1.02rem/1.4 'Inter',system-ui,sans-serif;color:var(--h-ink);transition:color .15s;-webkit-tap-highlight-color:transparent}
.hfq .hfq-q::-webkit-details-marker{display:none}
.hfq .hfq-q::marker{content:''}
.hfq .hfq-q:hover{color:var(--h-link)}
.hfq .hfq-q:focus-visible{outline:3px solid var(--h-blue);outline-offset:2px;border-radius:8px}
.hfq .hfq-pm{position:relative;flex:0 0 auto;width:26px;height:26px;border-radius:50%;border:1px solid var(--h-line2);transition:background .2s,border-color .2s,transform .25s}
.hfq .hfq-pm::before,.hfq .hfq-pm::after{content:'';position:absolute;left:50%;top:50%;width:10px;height:1.8px;margin:-.9px 0 0 -5px;border-radius:2px;background:var(--h-ink);transition:transform .25s,background .2s}
.hfq .hfq-pm::after{transform:rotate(90deg)}
.hfq .hfq-item[open]:not(.is-closing) .hfq-pm{background:var(--h-blue);border-color:var(--h-blue);transform:rotate(180deg)}
.hfq .hfq-item[open]:not(.is-closing) .hfq-pm::before,.hfq .hfq-item[open]:not(.is-closing) .hfq-pm::after{background:#fff}
.hfq .hfq-item[open]:not(.is-closing) .hfq-pm::after{transform:rotate(0deg)}
.hfq .hfq-a{overflow:hidden}
.hfq .hfq-a p{margin:0;padding:0 52px 20px 2px;font-size:.95rem;line-height:1.65;color:var(--h-ink2);max-width:68ch}

@media (max-width:900px){
  .hfq{padding:44px 16px 56px}
  .hfq .hfq-in{display:flex;flex-direction:column;gap:0}
  .hfq .hfq-side{display:contents;position:static}
  .hfq .hfq-title{order:1}
  .hfq .hfq-facts{order:2;margin:14px 0 18px}
  .hfq .hfq-list{order:3;width:100%}
  .hfq .hfq-help{order:4;margin-top:24px}
}
@media (max-width:560px){
  .hfq .hfq-title{font-size:1.55rem}
  .hfq .hfq-facts li{font-size:.76rem;padding:6px 10px}
  .hfq .hfq-q{font-size:.97rem;padding:17px 0;gap:14px}
  .hfq .hfq-a p{padding:0 36px 18px 0;font-size:.92rem}
}
@media (prefers-reduced-motion:reduce){
  .hfq .hfq-pm,.hfq .hfq-pm::before,.hfq .hfq-pm::after{transition:none}
}

/* dark: tokens above do most of the work; the light flag outline and the chat-safe spacing need explicit rules */
html[data-theme="dark"] .hrv .hrv-ctry .gq-flag{box-shadow:0 0 0 1px rgba(255,255,255,.12)}
html[data-theme="dark"] .hrv .hrv-card:hover{border-color:var(--h-line2)}
/* the dark theme colours every body.gq a (0,2,3) — links here restate their colours with three classes */
html[data-theme="dark"] .hrv .hrv-num a.hrv-n{color:var(--h-ink)}
html[data-theme="dark"] .hrv .hrv-num a.hrv-n:hover{color:var(--h-link)}
html[data-theme="dark"] .hrv .hrv-ctl a.hrv-all,html[data-theme="dark"] .hrv .hrv-ctl a.hrv-all:hover{color:var(--h-link)}
html[data-theme="dark"] .hfq .hfq-help a.hfq-help-btn,html[data-theme="dark"] .hfq .hfq-help a.hfq-help-btn:hover{color:#fff}
/* the dark theme also recolours every h1–h3 (0,2,3) and p / li / summary (0,2,1): restate the hierarchy */
html[data-theme="dark"] .hrv .hrv-word,html[data-theme="dark"] .hfq .hfq-title,html[data-theme="dark"] .hfq .hfq-q{color:var(--h-ink)}
html[data-theme="dark"] .hfq .hfq-q:hover{color:var(--h-link)}
html[data-theme="dark"] .hrv .hrv-quote,html[data-theme="dark"] .hfq .hfq-a p,html[data-theme="dark"] .hfq .hfq-facts li{color:var(--h-ink2)}
html[data-theme="dark"] .hrv .hrv-num,html[data-theme="dark"] .hrv .hrv-src,html[data-theme="dark"] .hrv .hrv-quote-none{color:var(--h-mute)}
/* V1.8: Bought / Sold badge in the review strip */
.hrv .hrv-brand.fb-type-bought{background:#E6F0FF;color:#0A4FC2;border-color:#CFE0FF}
.hrv .hrv-brand.fb-type-sold{background:#E5F6EF;color:#0B6B47;border-color:#C4EAD9}
html[data-theme="dark"] .hrv .hrv-brand.fb-type-bought{background:#13294F;color:#8DB8FF;border-color:#24427A}
html[data-theme="dark"] .hrv .hrv-brand.fb-type-sold{background:#123B2B;color:#5FD9A4;border-color:#1E5A42}
