/* ==========================================================================
   GiftSello blog — /blog/, /blog/category/*, /blog/{slug}/ and the "guides" rail on /sell/{brand}/.
   Sits on top of qube.css + sellsite.css (ss-wrap, ss-h2, ss-kicker, gq-btn). Prefix: .bl-
   Light tokens on :root, dark overrides under html[data-theme="dark"] (explicit, not generated).
   Mobile-first: 16px gutters, no horizontal scroll, images never wider than their column.
   ========================================================================== */
:root{--bl-ink:#07184F;--bl-text:#26324F;--bl-muted:#5A6684;--bl-line:#DDE5F2;--bl-surface:#FFFFFF;--bl-soft:#F4F7FD;
  --bl-blue:#0A5CE0;--bl-blue-soft:#E8F1FF;--bl-ok:#0B6B47;--bl-gold:#B7791F;--bl-quote:#F7F9FE;
  --bl-shadow:0 14px 38px rgba(7,24,79,.09);--bl-shadow-sm:0 3px 12px rgba(7,24,79,.06);--bl-r:18px;
  --bl-disp:'Sora','Plus Jakarta Sans','Inter',system-ui,-apple-system,'Segoe UI',sans-serif}

/* ---------- index hero ---------- */
.bl-hero{padding:26px 0 8px;background:linear-gradient(180deg,var(--bl-blue-soft),rgba(232,241,255,0))}
@media (min-width:900px){.bl-hero{padding:40px 0 14px}}
.bl-hero .crumbs{margin-bottom:14px}
.bl-hero h1{font:800 clamp(1.7rem,4vw,2.7rem)/1.12 var(--bl-disp);letter-spacing:-.03em;color:var(--bl-ink);margin:0;max-width:900px}
.bl-hero h1 em{font-style:normal;color:var(--bl-blue)}
.bl-lede{color:var(--bl-muted);font-size:clamp(1rem,1.3vw,1.12rem);line-height:1.6;margin:12px 0 0;max-width:720px}
.bl-search{display:flex;align-items:center;gap:8px;margin-top:20px;max-width:620px;background:var(--bl-surface);border:1.5px solid var(--bl-line);border-radius:14px;padding:6px 6px 6px 14px;box-shadow:var(--bl-shadow-sm)}
.bl-search:focus-within{border-color:var(--bl-blue)}
.bl-search svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:var(--bl-muted);stroke-width:2;stroke-linecap:round}
.bl-search input{flex:1;min-width:0;border:0;background:transparent;font-size:1rem;padding:8px 0;color:var(--bl-ink);outline:0;box-shadow:none;margin:0}
.bl-search .gq-btn{flex:0 0 auto}
.bl-pills{display:flex;gap:8px;overflow-x:auto;padding:16px 0 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.bl-pills::-webkit-scrollbar{display:none}
.bl-pills a{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:99px;border:1px solid var(--bl-line);background:var(--bl-surface);color:var(--bl-ink);font-weight:600;font-size:.9rem;text-decoration:none;white-space:nowrap}
.bl-pills a small{color:var(--bl-muted);font-weight:600}
.bl-pills a:hover{border-color:var(--bl-blue);text-decoration:none}
.bl-pills a[aria-current]{background:var(--bl-ink);border-color:var(--bl-ink);color:#fff}
.bl-pills a[aria-current] small{color:rgba(255,255,255,.75)}

.bl-main{padding-top:18px;padding-bottom:12px}
.bl-result{color:var(--bl-muted);margin:6px 0 16px}
.bl-empty{color:var(--bl-muted);padding:28px 0}
h2.bl-sr{font:800 1.25rem/1.2 var(--bl-disp);color:var(--bl-ink);margin:34px 0 14px;letter-spacing:-.02em}

/* ---------- cards ---------- */
.bl-cat{display:inline-block;font:800 .7rem/1 'Inter',system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--bl-blue);text-decoration:none;margin-bottom:8px}
a.bl-cat:hover{text-decoration:underline}
.bl-meta{color:var(--bl-muted);font-size:.85rem;margin:10px 0 0}
.bl-grid{display:grid;grid-template-columns:1fr;gap:18px}
@media (min-width:640px){.bl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1000px){.bl-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}}
.bl-card{display:flex;flex-direction:column;background:var(--bl-surface);border:1px solid var(--bl-line);border-radius:var(--bl-r);overflow:hidden;box-shadow:var(--bl-shadow-sm);transition:transform .15s,box-shadow .15s}
.bl-card:hover{transform:translateY(-2px);box-shadow:var(--bl-shadow)}
.bl-card-img{display:block;aspect-ratio:1200/630;background:var(--bl-soft);overflow:hidden}
.bl-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.bl-card-ph{display:block;width:100%;height:100%;min-height:120px;background:linear-gradient(135deg,#0B1C4A,#0A5CE0)}
.bl-card-in{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
.bl-card-h{font:700 1.08rem/1.35 var(--bl-disp);letter-spacing:-.01em;margin:0}
.bl-card-h a{color:var(--bl-ink);text-decoration:none}
.bl-card-h a:hover{color:var(--bl-blue)}
.bl-card-ex{color:var(--bl-text);font-size:.94rem;line-height:1.55;margin:8px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bl-card .bl-meta{margin-top:auto;padding-top:10px}

.bl-featured{display:grid;grid-template-columns:1fr;background:var(--bl-surface);border:1px solid var(--bl-line);border-radius:22px;overflow:hidden;box-shadow:var(--bl-shadow);margin-top:8px}
@media (min-width:860px){.bl-featured{grid-template-columns:1.15fr 1fr}}
.bl-featured-img{display:block;aspect-ratio:1200/630;background:var(--bl-soft)}
@media (min-width:860px){.bl-featured-img{aspect-ratio:auto;min-height:100%}}
.bl-featured-img img{width:100%;height:100%;object-fit:cover;display:block}
.bl-featured-in{padding:20px 18px 22px;display:flex;flex-direction:column;justify-content:center}
@media (min-width:860px){.bl-featured-in{padding:30px 34px}}
.bl-featured-h{font:800 clamp(1.3rem,2.4vw,1.9rem)/1.2 var(--bl-disp);letter-spacing:-.025em;margin:0}
.bl-featured-h a{color:var(--bl-ink);text-decoration:none}
.bl-featured-h a:hover{color:var(--bl-blue)}
.bl-featured .bl-card-ex{-webkit-line-clamp:4;font-size:1rem}
.bl-featured .gq-btn{align-self:flex-start;margin-top:16px}

.bl-pager{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:30px 0 4px}
.bl-pager a,.bl-pager span{min-width:42px;height:42px;padding:0 12px;display:inline-grid;place-items:center;border-radius:12px;border:1px solid var(--bl-line);background:var(--bl-surface);color:var(--bl-ink);font-weight:700;text-decoration:none}
.bl-pager a:hover{border-color:var(--bl-blue)}
.bl-pager span[aria-current]{background:var(--bl-ink);color:#fff;border-color:var(--bl-ink)}

.bl-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:28px 0 0}
.bl-tags b{font-size:.85rem;color:var(--bl-muted);margin-right:4px}
.bl-tags a{font-size:.85rem;padding:5px 11px;border-radius:99px;background:var(--bl-soft);color:var(--bl-text);text-decoration:none;border:1px solid transparent}
.bl-tags a:hover,.bl-tags a[aria-current]{border-color:var(--bl-blue);color:var(--bl-blue)}

.bl-cta-band{display:flex;flex-direction:column;gap:16px;margin:40px 0 34px;padding:24px 20px;border-radius:22px;background:linear-gradient(135deg,#0B1230,#13256B);color:#fff}
@media (min-width:860px){.bl-cta-band{flex-direction:row;align-items:center;justify-content:space-between;padding:30px 36px}}
.bl-cta-band b{font:800 clamp(1.2rem,2vw,1.55rem)/1.2 var(--bl-disp);letter-spacing:-.02em;color:#fff}
.bl-cta-band p{margin:6px 0 0;color:rgba(255,255,255,.8);max-width:560px;line-height:1.55}
.bl-cta-band-btns{display:flex;flex-wrap:wrap;gap:10px}
.bl-cta-band .gq-btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}

/* ---------- article ---------- */
.bl-preview{margin:16px 0 0;padding:10px 14px;border-radius:12px;background:#FFF6E0;border:1px solid #F2C46B;color:#5A3B00}
.bl-post-head{padding-top:22px;max-width:900px}
@media (min-width:900px){.bl-post-head{padding-top:34px}}
.bl-post-head .crumbs{margin-bottom:14px}
.bl-post-h1{font:800 clamp(1.75rem,4.2vw,2.75rem)/1.14 var(--bl-disp);letter-spacing:-.03em;color:var(--bl-ink);margin:0}
.bl-post-lede{font-size:clamp(1.03rem,1.5vw,1.2rem);line-height:1.6;color:var(--bl-muted);margin:14px 0 0;max-width:760px}
.bl-post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:16px}
.bl-post-meta b{color:var(--bl-ink)}
.bl-avatar{width:30px;height:30px;border-radius:50%;display:inline-grid;place-items:center;background:var(--bl-ink);color:#fff;font-weight:800;font-size:.8rem}
.bl-post-cover{margin:22px auto 0;max-width:1100px}
.bl-post-cover img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;border-radius:20px;background:var(--bl-soft)}

.bl-post-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;margin-top:22px;max-width:820px}
.bl-post-grid.has-toc{max-width:1160px}
@media (min-width:960px){.bl-post-grid.has-toc{grid-template-columns:250px minmax(0,1fr);gap:44px}}
.bl-post-col{min-width:0;max-width:760px}
.bl-toc-wrap{min-width:0}
@media (min-width:960px){.bl-toc-wrap{position:sticky;top:92px;align-self:start;max-height:calc(100vh - 110px);overflow:auto}}
.bl-toc{border:1px solid var(--bl-line);border-radius:16px;background:var(--bl-surface);padding:12px 16px}
.bl-toc summary{cursor:pointer;font-weight:800;color:var(--bl-ink);font-size:.95rem;list-style-position:inside}
.bl-toc ol{margin:10px 0 2px;padding-left:20px;display:grid;gap:7px;font-size:.9rem;line-height:1.4}
.bl-toc a{color:var(--bl-text);text-decoration:none}
.bl-toc a:hover,.bl-toc a.on{color:var(--bl-blue)}
.bl-toc a.on{font-weight:700}
.bl-side-cta{display:none}
@media (min-width:960px){.bl-side-cta{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:14px;padding:16px;border-radius:16px;border:1px solid var(--bl-line);background:var(--bl-soft)}
  .bl-side-cta img{border-radius:10px;object-fit:contain;background:#fff}
  .bl-side-cta b{color:var(--bl-ink);font-size:.98rem}
  .bl-side-cta small{color:var(--bl-muted)}
  .bl-side-cta .gq-btn{margin-top:6px}}

.bl-body{font-size:1.06rem;line-height:1.78;color:var(--bl-text);overflow-wrap:break-word}
.bl-body>*:first-child{margin-top:0}
.bl-body p{margin:0 0 1.1em}
.bl-body h2{font:800 clamp(1.3rem,2.3vw,1.65rem)/1.25 var(--bl-disp);letter-spacing:-.02em;color:var(--bl-ink);margin:1.9em 0 .6em;scroll-margin-top:96px}
.bl-body h3{font:700 1.18rem/1.3 var(--bl-disp);color:var(--bl-ink);margin:1.5em 0 .5em;scroll-margin-top:96px}
.bl-body a{color:var(--bl-blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.bl-body a:hover{text-decoration-thickness:2px}
.bl-body strong{color:var(--bl-ink)}
.bl-body ul,.bl-body ol{padding-left:1.35em;margin:0 0 1.2em}
.bl-body li{margin:.35em 0}
.bl-body li::marker{color:var(--bl-blue)}
.bl-body blockquote{margin:1.4em 0;padding:14px 18px;border-left:4px solid var(--bl-blue);background:var(--bl-quote);border-radius:0 12px 12px 0;color:var(--bl-ink)}
.bl-body blockquote p:last-child{margin-bottom:0}
.bl-body img{max-width:100%;height:auto;border-radius:14px;display:block;margin:1.2em auto}
.bl-body figure{margin:1.4em 0}
.bl-body figcaption{font-size:.85rem;color:var(--bl-muted);text-align:center;margin-top:6px}
.bl-body hr{border:0;border-top:1px solid var(--bl-line);margin:2em 0}
.bl-body code{background:var(--bl-soft);padding:2px 6px;border-radius:6px;font-size:.92em}
.bl-body table{width:100%;border-collapse:collapse;margin:1.2em 0 1.4em;font-size:.95rem;display:block;overflow-x:auto}
.bl-body th,.bl-body td{border-bottom:1px solid var(--bl-line);padding:10px 12px;text-align:left;vertical-align:top}
.bl-body th{background:var(--bl-soft);color:var(--bl-ink);font-weight:700;white-space:nowrap}
.bl-body .btn,.bl-body a.gq-btn{display:inline-flex;text-decoration:none;color:#fff;background:var(--bl-blue);padding:11px 20px;border-radius:12px;font-weight:700}
.bl-body .callout{margin:1.4em 0;padding:16px 18px;border-radius:14px;background:var(--bl-blue-soft);border:1px solid #C9DCFB;color:var(--bl-ink)}
.bl-body .callout p:last-child{margin-bottom:0}
.bl-body .callout.warn{background:#FFF6E0;border-color:#F2C46B}
.bl-body iframe{max-width:100%;border:0;border-radius:14px}

.bl-brand-cta{display:flex;flex-direction:column;gap:14px;margin:30px 0 0;padding:20px;border-radius:18px;border:1.5px solid #C9DCFB;background:linear-gradient(135deg,var(--bl-blue-soft),#F6F2FF)}
@media (min-width:700px){.bl-brand-cta{flex-direction:row;align-items:center}}
.bl-brand-cta img{border-radius:12px;background:#fff;object-fit:contain;flex:0 0 auto;border:1px solid var(--bl-line)}
.bl-brand-cta>div{flex:1;min-width:0}
.bl-brand-cta b{font:800 1.15rem/1.25 var(--bl-disp);color:var(--bl-ink)}
.bl-brand-cta p{margin:6px 0 0;color:var(--bl-text);font-size:.95rem;line-height:1.55}
.bl-brand-cta .gq-btn{flex:0 0 auto;align-self:flex-start}
@media (min-width:700px){.bl-brand-cta .gq-btn{align-self:center}}

.bl-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:24px 0 0}
.bl-share b{font-size:.85rem;color:var(--bl-muted);margin-right:4px}
.bl-share a,.bl-copy{width:40px;height:40px;display:inline-grid;place-items:center;border-radius:12px;border:1px solid var(--bl-line);background:var(--bl-surface);color:var(--bl-ink);cursor:pointer;padding:0}
.bl-share a:hover,.bl-copy:hover{border-color:var(--bl-blue);color:var(--bl-blue)}
.bl-share svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bl-copy{width:auto;display:inline-flex;gap:6px;padding:0 12px;font:600 .85rem 'Inter',system-ui,sans-serif}
.bl-post-tags{margin-top:18px}

.bl-rail{margin-top:46px}
.bl-rail .ss-h2{margin-bottom:16px}
.bl-rail .ss-sechead .ss-h2{margin-bottom:0}
.bl-sell-grid{display:grid;grid-template-columns:1fr;gap:10px}
@media (min-width:640px){.bl-sell-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1000px){.bl-sell-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.bl-sell{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid var(--bl-line);background:var(--bl-surface);text-decoration:none;color:var(--bl-ink);min-width:0}
.bl-sell:hover{border-color:var(--bl-blue);text-decoration:none}
.bl-sell img{border-radius:10px;object-fit:contain;background:#fff;flex:0 0 auto}
.bl-sell span{display:flex;flex-direction:column;min-width:0;flex:1}
.bl-sell b{font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bl-sell small{color:var(--bl-muted);font-size:.82rem}
.bl-sell i{font-style:normal;color:var(--bl-blue);font-weight:800}
.bl-sell-all{background:var(--bl-soft)}

/* ---------- guides rail on /sell/{brand}/ ---------- */
.sb-guides .bl-card-ex{-webkit-line-clamp:2}

/* ==========================================================================
   Dark theme (explicit)
   ========================================================================== */
html[data-theme="dark"]{--bl-ink:#E6ECF8;--bl-text:#C4D0E2;--bl-muted:#9AA8C2;--bl-line:#263352;--bl-surface:#121B2E;--bl-soft:#18243A;
  --bl-blue:#649CF7;--bl-blue-soft:#14233F;--bl-quote:#15203A;--bl-shadow:0 14px 38px rgba(0,0,0,.45);--bl-shadow-sm:0 3px 12px rgba(0,0,0,.35)}
html[data-theme="dark"] .bl-hero{background:linear-gradient(180deg,#0F1A33,rgba(11,17,30,0))}
html[data-theme="dark"] .bl-hero h1,html[data-theme="dark"] .bl-post-h1,html[data-theme="dark"] h2.bl-sr{color:var(--bl-ink)}
html[data-theme="dark"] .bl-hero h1 em{color:#7FB0FF}
html[data-theme="dark"] .bl-search{background:var(--bl-surface);border-color:var(--bl-line)}
html[data-theme="dark"] .bl-search input{color:var(--bl-ink)}
html[data-theme="dark"] .bl-pills a{background:var(--bl-surface);border-color:var(--bl-line);color:var(--bl-ink)}
html[data-theme="dark"] .bl-pills a[aria-current]{background:#2B5BD7;border-color:#2B5BD7;color:#fff}
html[data-theme="dark"] .bl-card,html[data-theme="dark"] .bl-featured,html[data-theme="dark"] .bl-toc,html[data-theme="dark"] .bl-sell,html[data-theme="dark"] .bl-share a,html[data-theme="dark"] .bl-copy,html[data-theme="dark"] .bl-pager a,html[data-theme="dark"] .bl-pager span{background:var(--bl-surface);border-color:var(--bl-line);color:var(--bl-ink)}
html[data-theme="dark"] .bl-card-h a,html[data-theme="dark"] .bl-featured-h a{color:var(--bl-ink)}
html[data-theme="dark"] .bl-card-h a:hover,html[data-theme="dark"] .bl-featured-h a:hover{color:#7FB0FF}
html[data-theme="dark"] .bl-pager span[aria-current]{background:#2B5BD7;border-color:#2B5BD7;color:#fff}
html[data-theme="dark"] .bl-tags a{background:var(--bl-soft);color:var(--bl-text)}
html[data-theme="dark"] .bl-cta-band{background:linear-gradient(135deg,#0A1330,#1A2F7A)}
html[data-theme="dark"] .bl-preview{background:#2E2410;border-color:#7A5A16;color:#F3D9A0}
html[data-theme="dark"] .bl-avatar{background:#2B5BD7}
html[data-theme="dark"] .bl-body{color:var(--bl-text)}
html[data-theme="dark"] .bl-body h2,html[data-theme="dark"] .bl-body h3,html[data-theme="dark"] .bl-body strong,html[data-theme="dark"] .bl-post-meta b{color:var(--bl-ink)}
html[data-theme="dark"] .bl-body a{color:#7FB0FF}
html[data-theme="dark"] .bl-body th{background:var(--bl-soft);color:var(--bl-ink)}
html[data-theme="dark"] .bl-body .callout{background:#14233F;border-color:#2A4478;color:var(--bl-ink)}
html[data-theme="dark"] .bl-body .callout.warn{background:#2E2410;border-color:#7A5A16}
html[data-theme="dark"] .bl-body .btn,html[data-theme="dark"] .bl-body a.gq-btn{background:#2B5BD7;color:#fff}
html[data-theme="dark"] .bl-brand-cta{background:linear-gradient(135deg,#14233F,#1C1838);border-color:#2A4478}
html[data-theme="dark"] .bl-brand-cta b{color:var(--bl-ink)}
html[data-theme="dark"] .bl-side-cta{background:var(--bl-soft);border-color:var(--bl-line)}
html[data-theme="dark"] .bl-sell-all{background:var(--bl-soft)}
html[data-theme="dark"] .bl-card-ph{background:linear-gradient(135deg,#0A1330,#2B5BD7)}

/* specificity guards: qube.css styles body.gq links, paragraphs and ghost buttons globally */
body.gq .bl-card-h a,body.gq .bl-featured-h a{color:var(--bl-ink);text-decoration:none}
body.gq .bl-card-h a:hover,body.gq .bl-featured-h a:hover{color:var(--bl-blue)}
body.gq .bl-cta-band b{color:#fff}
body.gq .bl-cta-band p{color:rgba(255,255,255,.82)}
body.gq .bl-cta-band .gq-btn-ghost{background:rgba(255,255,255,.06);color:#fff!important;border:1.5px solid rgba(255,255,255,.5)}
body.gq .bl-cta-band .gq-btn-ghost:hover{background:rgba(255,255,255,.14);color:#fff!important}
body.gq .bl-sell,body.gq .bl-pills a{color:var(--bl-ink)}
body.gq .bl-pills a[aria-current]{color:#fff}
html[data-theme="dark"] body.gq .bl-card-h a,html[data-theme="dark"] body.gq .bl-featured-h a,html[data-theme="dark"] body.gq .bl-sell,html[data-theme="dark"] body.gq .bl-pills a{color:var(--bl-ink)}
html[data-theme="dark"] body.gq .bl-card-h a:hover,html[data-theme="dark"] body.gq .bl-featured-h a:hover{color:#7FB0FF}
html[data-theme="dark"] body.gq .bl-pills a[aria-current]{color:#fff}
/* article column widths (blog.css loads before sellsite.css, so these carry extra specificity over body.gq .ss-wrap) */
body.gq .bl-post .bl-post-head,body.gq .bl-post .bl-post-cover,body.gq .bl-post .bl-post-grid{max-width:840px}
body.gq .bl-post.has-toc .bl-post-head,body.gq .bl-post.has-toc .bl-post-cover,body.gq .bl-post.has-toc .bl-post-grid{max-width:1120px}
body.gq .bl-post-cover img{max-height:520px}
.bl-hero .crumbs,.bl-post-head .crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:.88rem;color:var(--bl-muted)}
.bl-hero .crumbs a,.bl-post-head .crumbs a{color:var(--bl-muted);text-decoration:none}
.bl-hero .crumbs a:hover,.bl-post-head .crumbs a:hover{color:var(--bl-blue)}
body.gq .bl-post .bl-post-cover{margin-top:22px}
body.gq .bl-post .bl-post-grid{margin-top:28px}
body.gq .bl-rail{margin-top:56px;max-width:1120px}
body.gq .bl-rail>.ss-h2{margin-bottom:16px}
body.gq .bl-rail .ss-sechead{margin-bottom:16px}
body.gq .bl-search input,html[data-theme="dark"] body.gq .bl-search input{border:0;background:transparent;box-shadow:none;padding:8px 0;min-height:0;height:auto;color:var(--bl-ink)}
