/* Divaar.pk — the guides (blog). Uses the shop's own colours and fonts (styles.css / theme.css).
   Layout: listing pages fill the page width (big lead story + card grid); an article keeps its text column at a
   comfortable reading width and uses the space beside it for "On this page" (left) and the shop pieces (right). */

/* a blog page keeps the shop's header, cart and footer; the home-page sections stay hidden.
   "Try our lamp" shows only when assets/store.js has moved it into a lighting article (.in-blog). */
body.seo-blog #top, body.seo-blog #collections, body.seo-blog #spotlight, body.seo-blog #products,
body.seo-blog #wallart, body.seo-blog #lamps, body.seo-blog #more, body.seo-blog #reviews,
body.seo-blog #lamptry:not(.in-blog), body.seo-blog .perks-sec, body.seo-blog #custom { display: none !important; }

.blog-page {
  --bl-ink: var(--fx-ink, var(--ink));
  --bl-muted: var(--fx-muted, var(--muted));
  --bl-soft: var(--fx-soft, var(--surface-2, #F4F2F7));
  --bl-line: var(--fx-line, var(--line, rgba(0,0,0,.08)));
  --bl-accent: var(--fx-hot, var(--blue-ink, #E34234));
  --bl-r: 24px;
  --bl-read: 720px;
  padding-bottom: 64px;
  max-width: 1360px !important;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.blog-page a { color: var(--bl-accent); }
.blog-meta { color: var(--bl-muted); font-size: 14px; margin: 0; }
.blog-meta a { color: inherit; }
.bl-arrow { flex: none; transition: transform .25s var(--ease, ease); }
.blog-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--fx-lav, #E6DAF5); color: var(--fx-on-lav, var(--bl-ink));
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.blog-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--bl-ink); color: var(--fx-page, #fff) !important;
  font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1; }
.blog-pill.soft { background: var(--bl-soft); color: var(--bl-ink) !important; font-weight: 500; }
html.fx .blog-page h1, html.fx .blog-page h2, html.fx .blog-page h3 { text-transform: none; }

/* =================================== LISTINGS =================================== */
.blog-list-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin: 6px 0 30px; }
.blh-title h1, html.fx .blog-list-head h1 { font-size: clamp(40px, 6vw, 84px) !important; line-height: .95 !important; letter-spacing: -.045em; font-weight: 800; margin: 14px 0 0 !important; text-wrap: balance; }
.blh-side p { color: var(--bl-muted); font-size: 17px; line-height: 1.55; margin: 0 0 18px; max-width: 520px; }
.blog-page-no { font-weight: 500; color: var(--bl-muted); font-size: .4em; letter-spacing: 0; }
.blog-search { position: relative; display: flex; align-items: center; gap: 0; max-width: 520px; background: var(--fx-page, #fff); border: 1px solid var(--bl-line);
  border-radius: 999px; padding: 5px 5px 5px 44px; box-shadow: 0 1px 2px rgba(20,20,20,.04), 0 8px 24px rgba(20,20,20,.05); }
.blog-search > svg { position: absolute; left: 16px; color: var(--bl-muted); pointer-events: none; }
.blog-search input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: transparent; font: inherit; font-size: 15.5px; color: var(--bl-ink); outline: none; }
.blog-search:focus-within { border-color: var(--bl-ink); }
.blog-search .btn { min-height: 42px; padding: 0 20px; border-radius: 999px; }

/* category tabs: underlined, scrolls sideways on phones */
.blog-tabs { position: relative; margin: 0 0 30px; border-bottom: 1px solid var(--bl-line); }
.blog-tabs-track { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.blog-tabs-track::-webkit-scrollbar { display: none; }
.blog-tabs a { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 0 14px; color: var(--bl-muted) !important; text-decoration: none; font-size: 15.5px; font-weight: 600; white-space: nowrap; transition: color .2s; }
.blog-tabs a span { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--bl-soft); color: var(--bl-muted); }
.blog-tabs a:hover { color: var(--bl-ink) !important; }
.blog-tabs a[aria-current="page"] { color: var(--bl-ink) !important; }
.blog-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--bl-ink); }
.blog-tabs a[aria-current="page"] span { background: var(--fx-lime, #D4FF3F); color: var(--fx-on-lime, #262C10); }

/* lead story */
.blog-lead { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 26px; margin: 0 0 40px; }
.blog-lead.solo { grid-template-columns: minmax(0, 1fr); }
.blog-hero-card { position: relative; border-radius: 30px; overflow: hidden; min-height: 460px; display: flex; isolation: isolate; background: var(--bl-ink); box-shadow: 0 24px 60px rgba(20,20,20,.14); }
.blog-lead.solo .blog-hero-card { min-height: 520px; }
.bh-img { position: absolute; inset: 0; z-index: -2; }
.bh-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease, ease); }
.blog-hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,12,0) 30%, rgba(10,10,12,.45) 58%, rgba(10,10,12,.86) 100%); }
.blog-hero-card:hover .bh-img img { transform: scale(1.035); }
.bh-link { position: absolute; inset: 0; z-index: 2; }
.bh-go { position: absolute; top: 20px; right: 20px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); pointer-events: none; }
.bh-go .bl-arrow { width: 20px; height: 20px; }
.blog-hero-card:hover .bh-go .bl-arrow { transform: translate(2px, -2px); }
.bh-copy { margin-top: auto; padding: 34px 36px 32px; color: #fff; max-width: 820px; position: relative; z-index: 3; pointer-events: none; }
.bh-copy a { pointer-events: auto; }
.bh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bh-tags > * { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff !important; text-decoration: none;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bh-tags > span:first-child { background: var(--fx-lime, #D4FF3F); color: var(--fx-on-lime, #262C10) !important; border-color: transparent; }
.blog-hero-card h2 { color: #fff; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; margin: 0 0 12px; text-wrap: balance; }
.bh-copy p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.5; color: rgba(255,255,255,.86); max-width: 620px; }
.bh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.bh-meta b { color: #fff; font-weight: 600; }
.bh-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 800; font-size: 15px;
  background: var(--fx-lav, #CBB3E8); color: var(--fx-on-lav, #1E1F24); }
.blog-lead-side { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 30px; background: var(--bl-soft); }
.blog-side-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bl-muted); }
.blog-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 18px; text-decoration: none; color: var(--bl-ink) !important; transition: background .2s; }
.blog-row:hover { background: var(--fx-page, #fff); }
.blog-row-img { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--fx-media, #ECE8F2); display: block; }
.blog-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-row-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.blog-row-txt small { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bl-accent); }
.blog-row-txt b { font-size: 15.5px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-row-txt em { font-style: normal; font-size: 13px; color: var(--bl-muted); }

/* start here */
.blog-pillars { margin: 0 0 40px; }
.blog-pillars h2, .blog-latest { font-size: 24px; letter-spacing: -.02em; margin: 0 0 16px; }
.blog-pillar-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.blog-pillar-list a { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; padding: 20px 22px; border-radius: 22px; text-decoration: none; color: var(--bl-ink) !important;
  background: linear-gradient(140deg, var(--fx-lav, #E6DAF5) 0%, color-mix(in srgb, var(--fx-lav, #E6DAF5) 35%, #fff) 100%); transition: transform .25s var(--ease, ease); }
.blog-pillar-list a:hover { transform: translateY(-3px); }
.blog-pillar-list b { font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.blog-pillar-list span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--bl-muted); }

/* cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.blog-card { display: flex; flex-direction: column; min-width: 0; }
.blog-card-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--bl-r); overflow: hidden; background: var(--fx-media, #ECE8F2); isolation: isolate; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease, ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-ph { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: var(--bl-ink);
  background: radial-gradient(60% 70% at 30% 30%, var(--fx-lav, #E6D8F7), transparent 70%), radial-gradient(50% 60% at 80% 80%, var(--fx-lime, #F4FFD1), transparent 70%), var(--bl-soft); }
/* the frosted band over the bottom of the photo: date on the left, topic on the right */
.blog-card-band { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px;
  color: #fff; font-size: 13px; line-height: 1.35; background: rgba(20,20,24,.28); border-top: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.blog-card-band > span:first-child { display: flex; flex-direction: column; }
.blog-card-band b { font-weight: 700; }
.blog-card-cat { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); font-weight: 600; font-size: 12px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.blog-card-body { padding: 18px 2px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card h3 { display: flex; justify-content: space-between; gap: 14px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; margin: 0; font-weight: 700; }
.blog-card h3 a { color: var(--bl-ink) !important; text-decoration: none; }
.blog-card h3 a::after { content: ""; position: absolute; inset: 0; }
.blog-card { position: relative; }
.blog-card h3 .bl-arrow { margin-top: 5px; color: var(--bl-ink); }
.blog-card:hover h3 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.blog-card:hover h3 .bl-arrow, .blog-card:hover .blog-read .bl-arrow { transform: translate(2px, -2px); }
.blog-card p { margin: 0; color: var(--bl-muted); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; }
.blog-card .blog-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.blog-read { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--bl-ink) !important; text-decoration: none; position: relative; z-index: 1; }

.blog-pager { display: flex; justify-content: space-between; align-items: center; margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--bl-line); color: var(--bl-muted); font-size: 14px; }
.blog-pager a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--bl-line); color: var(--bl-ink) !important; text-decoration: none; font-weight: 600; }
.blog-pager a:hover { background: var(--bl-soft); }
.blog-empty, .blog-count { color: var(--bl-muted); }

/* "Keep reading" widget (bottom of every blog page) */
.blog-more { margin: 72px 0 0; padding: 36px; border-radius: 34px; background: var(--bl-soft); }
.blog-more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.blog-more-head h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.05; margin: 12px 0 6px; }
.blog-more-head p { margin: 0; color: var(--bl-muted); }
.blog-more-nav { display: flex; align-items: center; gap: 8px; flex: none; }
.blog-all { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--bl-ink); color: var(--fx-page, #fff) !important; text-decoration: none; font-weight: 600; font-size: 14.5px; margin-right: 6px; }
.blog-more-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--bl-line); background: var(--fx-page, #fff); color: var(--bl-ink); cursor: pointer; transition: background .2s, opacity .2s; }
.blog-more-btn:hover { background: var(--bl-ink); color: var(--fx-page, #fff); }
.blog-more-btn:disabled { opacity: .35; pointer-events: none; }
.blog-more-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 26px) / 3); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 4px; }
.blog-more-track::-webkit-scrollbar { display: none; }
.blog-more-track > .blog-card { scroll-snap-align: start; }
.blog-more .blog-card-img { aspect-ratio: 16 / 11; }

/* =================================== ARTICLE =================================== */
.bp-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.bp-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--bl-accent), var(--fx-lav, #CBB3E8)); }
.blog-article { margin: 0 auto; }
.bp-head { max-width: 980px; margin: 8px auto 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.bp-head-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.bp-head h1, html.fx .bp-head h1 { font-size: clamp(32px, 4.6vw, 62px) !important; line-height: 1.02 !important; letter-spacing: -.04em; font-weight: 800; margin: 0 0 18px !important; text-wrap: balance; }
.blog-dek { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--bl-muted); margin: 0 0 24px; max-width: 760px; text-wrap: pretty; }
.bp-byline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 18px; padding: 12px 14px 12px 12px; border-radius: 999px; border: 1px solid var(--bl-line); }
.bp-byline .bh-avatar { width: 40px; height: 40px; }
.bp-byline .blog-meta { text-align: left; font-size: 13.5px; line-height: 1.4; }
.bp-byline .blog-meta b { color: var(--bl-ink); font-size: 14.5px; }
.bp-byline .blog-meta a { text-decoration: none; }
.bp-byline .bp-share { padding-left: 16px; border-left: 1px solid var(--bl-line); }
.bp-share { display: flex; align-items: center; gap: 6px; }
.bp-share > span { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bl-muted); margin-right: 4px; }
.bp-share a, .bp-share button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bl-soft); color: var(--bl-ink) !important; border: 0; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.bp-share a:hover, .bp-share button:hover { background: var(--bl-ink); color: var(--fx-page, #fff) !important; transform: translateY(-1px); }
.bp-share button.copied { background: var(--fx-lime, #D4FF3F); color: var(--fx-on-lime, #262C10) !important; }
.blog-cover { margin: 0 0 44px; }
.blog-cover-img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 32px; background: var(--fx-media, #ECE8F2); display: block; }
.blog-cover figcaption { font-size: 12.5px; color: var(--bl-muted); margin-top: 8px; text-align: right; }
.blog-cover figcaption a { color: inherit; }

/* three columns on wide screens: On this page | text | shop pieces */
.bp-layout { display: grid; grid-template-columns: 230px minmax(0, var(--bl-read)) 270px; justify-content: center; gap: 0 56px; }
.bp-rail { min-width: 0; }
.bp-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; transition: opacity .3s, visibility .3s; }
@media (min-width: 981px) { .bp-layout.band-in .bp-sticky { opacity: 0; visibility: hidden; } }
.bp-rail-title { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bl-muted); }
.bp-toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--bl-line); }
.bp-toc a { display: flex; gap: 10px; padding: 8px 0 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--bl-muted) !important; text-decoration: none; font-size: 14.5px; line-height: 1.35; transition: color .2s, border-color .2s; }
.bp-toc a span { font-size: 11.5px; font-weight: 700; opacity: .6; padding-top: 2px; font-variant-numeric: tabular-nums; }
.bp-toc a:hover { color: var(--bl-ink) !important; }
.bp-toc a.on { color: var(--bl-ink) !important; border-left-color: var(--bl-accent); font-weight: 600; }
.bp-rail-l .bp-share { flex-wrap: wrap; }
.bp-rail-l .bp-share > span { width: 100%; margin-bottom: 4px; }
.bp-rail-box { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 24px; background: var(--bl-soft); }
.bp-rail-box .blog-row { grid-template-columns: 64px minmax(0, 1fr); padding: 8px; gap: 12px; }
.bp-rail-box .blog-row-txt b { font-size: 14px; }
.bp-mini { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 16px; text-decoration: none; color: var(--bl-ink) !important; transition: background .2s; }
.bp-mini:hover { background: var(--fx-page, #fff); }
.bp-mini-img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--fx-media, #ECE8F2); display: block; }
.bp-mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-mini-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bp-mini-txt b { font-size: 14px; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-mini-txt small { font-size: 13px; color: var(--bl-accent); font-weight: 700; }
.bp-rail-more { display: inline-flex; align-items: center; gap: 6px; margin: 6px 8px 0; font-size: 14px; font-weight: 700; color: var(--bl-ink) !important; text-decoration: none; }
.bp-ask { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; border-radius: 24px; background: var(--bl-ink); color: var(--fx-page, #fff); font-size: 14px; line-height: 1.45; }
.bp-ask b { font-size: 16px; line-height: 1.3; }
.bp-ask span { opacity: .75; margin-bottom: 6px; }
.blog-page .bp-ask .btn, html.fx .blog-page .bp-ask .btn { min-height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; background: var(--fx-lime, #D4FF3F) !important; color: var(--fx-on-lime, #262C10) !important; border: 0 !important; }

/* the text itself */
.blog-answer { position: relative; background: linear-gradient(140deg, color-mix(in srgb, var(--fx-lime, #D4FF3F) 26%, #fff), color-mix(in srgb, var(--fx-lav, #CBB3E8) 22%, #fff)); border-radius: 24px; padding: 22px 26px; margin: 0 0 28px; }
.blog-answer h2 { display: flex; align-items: center; gap: 6px; font-size: 13px !important; text-transform: uppercase !important; letter-spacing: .1em; margin: 0 0 8px !important; color: var(--bl-ink); font-weight: 800; }
.blog-answer p { margin: 0 0 6px; line-height: 1.65; font-size: 17px; }
.blog-answer p:last-child { margin-bottom: 0; }
.blog-pillar-note { font-size: 14px; color: var(--bl-muted); }
.blog-toc { display: none; background: var(--bl-soft); border-radius: 20px; padding: 14px 20px; margin: 0 0 24px; }
.blog-toc summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.blog-toc summary::-webkit-details-marker { display: none; }
.blog-toc summary span { font-weight: 500; font-size: 13.5px; color: var(--bl-muted); }
.blog-toc summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; margin-left: 10px; }
.blog-toc[open] summary::after { content: "–"; }
.blog-toc ol { margin: 12px 0 2px; padding-left: 22px; line-height: 1.8; }
.blog-toc a { color: var(--bl-ink) !important; }
.blog-body { font-size: 18px; line-height: 1.75; color: var(--bl-ink); }
.blog-body > :first-child { margin-top: 0; }
.blog-body h2 { font-size: clamp(25px, 2.4vw, 32px) !important; line-height: 1.15 !important; letter-spacing: -.025em; margin: 52px 0 14px !important; scroll-margin-top: 100px; font-weight: 800; }
.blog-body h3 { font-size: 21px; letter-spacing: -.01em; margin: 32px 0 8px; scroll-margin-top: 100px; font-weight: 700; }
.blog-body p { margin: 0 0 20px; }
.blog-body a { color: var(--bl-ink); text-decoration: underline; text-decoration-color: var(--bl-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.blog-body a:hover { color: var(--bl-accent); }
.blog-body strong { font-weight: 700; }
.blog-body ul, .blog-body ol { margin: 0 0 22px; padding-left: 24px; }
.blog-body li { margin: 6px 0; padding-left: 4px; }
.blog-body li::marker { color: var(--bl-accent); font-weight: 700; }
.blog-body blockquote { position: relative; margin: 30px 0; padding: 20px 24px 20px 58px; color: var(--bl-ink); background: color-mix(in srgb, var(--fx-lav, #CBB3E8) 26%, #fff); border-radius: 20px; font-size: 17px; font-weight: 500; }
.blog-body blockquote::before { content: "💡"; position: absolute; left: 20px; top: 19px; font-size: 22px; }
.blog-body blockquote p { margin: 0; }
.blog-body code { font-size: .9em; background: var(--bl-soft); padding: 1px 6px; border-radius: 6px; }
.blog-body hr { border: 0; border-top: 1px solid var(--bl-line); margin: 36px 0; }
.blog-body ul.blog-checklist { list-style: none; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--bl-line); }
.blog-body .blog-check { position: relative; padding-left: 34px; margin: 10px 0; }
.blog-body .blog-check::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 7px; border: 2px solid var(--bl-ink); }
.blog-body .blog-check.done::before { background: var(--bl-ink); }
.blog-body .blog-check.done::after { content: ""; position: absolute; left: 7px; top: 8px; width: 6px; height: 10px; border: solid var(--fx-page, #fff); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.blog-table { overflow-x: auto; margin: 0 0 26px; -webkit-overflow-scrolling: touch; border-radius: 18px; border: 1px solid var(--bl-line); }
.blog-table table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--fx-page, #fff); }
.blog-table th, .blog-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--bl-line); vertical-align: top; line-height: 1.5; }
.blog-table tr:last-child td { border-bottom: 0; }
.blog-table th { background: var(--bl-soft); font-weight: 700; white-space: nowrap; }
[dir="rtl"] .blog-table th, [dir="rtl"] .blog-table td { text-align: right; }

.blog-products h2, .blog-faq h2, .blog-sources h2, .blog-cluster h2 { font-size: 26px !important; letter-spacing: -.02em; margin: 52px 0 16px !important; }
.blog-faq details { border-bottom: 1px solid var(--bl-line); padding: 4px 0; }
.blog-faq summary { cursor: pointer; font-weight: 650; font-size: 17px; line-height: 1.4; padding: 14px 40px 14px 0; position: relative; list-style: none; }
.blog-faq summary::-webkit-details-marker { display: none; }
.blog-faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bl-soft); font-size: 20px; font-weight: 400; transition: transform .25s; }
.blog-faq details[open] summary::after { transform: rotate(45deg); background: var(--bl-ink); color: var(--fx-page, #fff); }
.blog-faq details > div { padding: 0 40px 14px 0; line-height: 1.7; color: var(--bl-muted); }
.blog-faq details > div p:last-child { margin-bottom: 0; }
.blog-sources ol { font-size: 14px; line-height: 1.6; padding-left: 20px; color: var(--bl-muted); word-break: break-word; }
.blog-rows { display: flex; flex-direction: column; gap: 4px; }

.blog-author { display: grid; grid-template-columns: 56px 1fr; gap: 16px; margin: 52px 0 0; padding: 24px; background: var(--bl-soft); border-radius: 24px; font-size: 14.5px; line-height: 1.55; }
.blog-author-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--fx-lav, #CBB3E8); color: var(--fx-on-lav, #1E1F24); font-weight: 800; font-size: 22px; }
.blog-author p { margin: 0 0 6px; }
.blog-author-name { font-weight: 700; font-size: 16px; }
.blog-author-note { color: var(--bl-muted); font-size: 13.5px; }
.bp-share-end { display: none; margin-top: 22px; }

/* product cards inside guides: the shop's own card (assets/theme.css → .fx-card) */
.blog-product-card { display: block; max-width: 320px; margin: 30px 0; }
.blog-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.blog-product-grid .blog-product-card { margin: 0; max-width: none; }

/* "Try our lamp" inside a lighting article: breaks out of the text column to the full width of the page */
.blog-lamp-slot { margin: 44px calc(-1 * (270px + 56px)) 44px calc(-1 * (230px + 56px)); }
.bp-layout.no-toc .blog-lamp-slot { margin-left: calc(-1 * (230px + 56px)); }
.blog-lamp-slot:empty { display: none; }
.blog-lamp-slot .lt-wrap { max-width: none !important; margin: 0 !important; width: 100%; }
.blog-lamp-slot #lamptry { padding: 0 !important; }
.blog-lamp-slot #lamptry > .wrap { padding: 0 !important; max-width: none !important; width: 100%; }
.blog-lamp-slot .lt-copy h2 { margin: 0 !important; font-size: clamp(30px, 3.4vw, 44px) !important; letter-spacing: -.03em; }
.blog-lamp-slot .lt-copy h2::before { content: none !important; }
.blog-body .blog-lamp-slot p { margin: 0; }

/* ---------- 1200px and narrower: two columns (text | shop) ---------- */
@media (max-width: 1240px) {
  .bp-layout { grid-template-columns: minmax(0, var(--bl-read)) 260px; gap: 0 44px; }
  .bp-rail-l { display: none; }
  .blog-toc { display: block; }
  .blog-lamp-slot, .bp-layout.no-toc .blog-lamp-slot { margin: 40px calc(-1 * (260px + 44px)) 40px 0; }
}
/* ---------- tablets: one column ---------- */
@media (max-width: 980px) {
  .bp-layout { grid-template-columns: minmax(0, 1fr); max-width: var(--bl-read); margin: 0 auto; }
  .bp-rail-r { order: 5; }
  .bp-rail-r .bp-sticky { position: static; margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .blog-lamp-slot, .bp-layout.no-toc .blog-lamp-slot { margin: 36px 0; }
  .bp-share-end { display: block; }
  .bp-share-end .bp-share { justify-content: center; }
  .blog-list-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .blog-lead { grid-template-columns: minmax(0, 1fr); }
  .blog-lead-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .blog-lead-side .blog-side-title { grid-column: 1 / -1; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-more-track { grid-auto-columns: calc((100% - 26px) / 2); }
}
/* ---------- phones ---------- */
@media (max-width: 640px) {
  .blog-page { padding-bottom: 40px; }
  .blog-list-head { margin: 0 0 22px; }
  .blh-title h1, html.fx .blog-list-head h1 { font-size: clamp(40px, 12vw, 54px) !important; margin-top: 12px !important; }
  .blh-side p { font-size: 15.5px; margin-bottom: 14px; }
  .blog-search { padding-left: 40px; }
  .blog-search .btn { padding: 0 14px; }
  .blog-tabs { margin: 0 -16px 24px; padding: 0 16px; }
  .blog-tabs-track { gap: 20px; }
  .blog-tabs a { font-size: 14.5px; }
  .blog-hero-card, .blog-lead.solo .blog-hero-card { min-height: 0; aspect-ratio: 4 / 5; border-radius: 26px; }
  .bh-copy { padding: 22px 20px 20px; }
  .blog-hero-card h2 { font-size: clamp(24px, 7vw, 30px); }
  .bh-copy p { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
  .bh-meta { font-size: 13px; }
  .bh-meta b, .bh-meta b + span { display: none; }
  .bh-go { width: 42px; height: 42px; top: 14px; right: 14px; }
  .blog-lead { gap: 16px; margin-bottom: 32px; }
  .blog-lead-side { grid-template-columns: minmax(0, 1fr); padding: 14px; border-radius: 24px; }
  .blog-row { grid-template-columns: 80px minmax(0, 1fr); padding: 6px; }
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .blog-card h3 { font-size: 20px; }
  .blog-more { margin: 52px -16px 0; padding: 28px 16px 24px; border-radius: 28px 28px 0 0; }
  .blog-more-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
  .blog-more-btn { display: none; }
  .blog-more-track { grid-auto-columns: 82%; gap: 16px; margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }

  .bp-head { margin: 0 0 22px; text-align: left; align-items: flex-start; }
  .bp-head-tags { justify-content: flex-start; margin-bottom: 14px; }
  .bp-head h1, html.fx .bp-head h1 { font-size: clamp(30px, 8.6vw, 38px) !important; letter-spacing: -.035em; margin-bottom: 14px !important; }
  .blog-dek { font-size: 16.5px; margin-bottom: 18px; }
  .bp-byline { justify-content: flex-start; border-radius: 22px; width: 100%; padding: 12px; gap: 12px; }
  .bp-byline .bp-share { padding-left: 0; border-left: 0; width: 100%; padding-top: 12px; border-top: 1px solid var(--bl-line); }
  .blog-cover { margin: 0 -16px 28px; }
  .blog-cover-img { aspect-ratio: 4 / 3; border-radius: 0; }
  .blog-cover figcaption { padding: 0 16px; }
  .blog-body { font-size: 17px; line-height: 1.72; }
  .blog-body h2 { font-size: 25px !important; margin-top: 40px !important; }
  .blog-body h3 { font-size: 19px; }
  .blog-answer { padding: 18px; border-radius: 20px; }
  .blog-answer p { font-size: 16px; }
  .blog-body blockquote { padding: 16px 18px 16px 50px; font-size: 16px; }
  .blog-body blockquote::before { left: 16px; top: 15px; }
  .blog-table table { font-size: 14px; }
  .blog-table th, .blog-table td { padding: 10px 12px; min-width: 120px; }
  .blog-product-card { max-width: 300px; margin: 26px auto; }
  .bp-rail-r .bp-sticky { grid-template-columns: minmax(0, 1fr); }
  .blog-lamp-slot, .bp-layout.no-toc .blog-lamp-slot { margin: 30px 0; }
  .blog-faq summary { font-size: 16px; }
  .blog-author { grid-template-columns: 44px 1fr; padding: 18px; gap: 12px; }
  .blog-author-mark { width: 44px; height: 44px; font-size: 18px; }
}
/* very wide screens: a little more room for everything (the text stays at a comfortable line length) */
@media (min-width: 1680px) {
  .blog-page { max-width: 1560px !important; --bl-read: 780px; }
  .bp-layout { grid-template-columns: 260px minmax(0, var(--bl-read)) 300px; gap: 0 72px; }
  .blog-lamp-slot { margin-left: calc(-1 * (260px + 72px)); margin-right: calc(-1 * (300px + 72px)); }
  .bp-layout.no-toc .blog-lamp-slot { margin-left: calc(-1 * (260px + 72px)); }
  .blog-body { font-size: 19px; }
  .blog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .blog-more-track { grid-auto-columns: calc((100% - 3 * 26px) / 4); }
}

@media print {
  body.seo-blog .nav-wrap, body.seo-blog .footer, .blog-search, .blog-tabs, .blog-more, .bp-rail, .bp-share, .bp-progress, .blog-lamp-slot, .blog-product-card { display: none !important; }
  .bp-layout { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card-img img, .bh-img img, .bl-arrow, .blog-pillar-list a { transition: none !important; }
  .blog-more-track { scroll-behavior: auto; }
}

/* ================= fonts chosen in Guides admin → Settings → Fonts =================
   (lib/blog.mjs puts the --bf-* values on .blog-page; Urdu pages get Nastaliq by default) */
.blog-page :is(.bp-head h1, .blh-title h1, .blog-hero-card h2) { font-family: var(--bf-h, var(--display)) !important; font-weight: var(--bf-h-w, 800) !important; }
.blog-page :is(.blog-body h2, .blog-body h3, .blog-card h3, .blog-row-txt b, .blog-latest, .blog-cluster h2, .blog-faq > h2, .blog-sources > h2, .blog-products > h2, .blog-pillars h2) { font-family: var(--bf-sub, var(--display)) !important; font-weight: var(--bf-sub-w, 700) !important; }
.blog-page :is(.blog-body p, .blog-dek, .blog-card p) { font-family: var(--bf-body, var(--body)); font-weight: var(--bf-body-w, 400); }
.blog-page .blog-body { font-size: calc(18px * var(--bf-size, 1)); line-height: var(--bf-lead, 1.75); }
.blog-page :is(.blog-answer p, .blog-body li, .blog-body blockquote, .blog-table, .blog-fig figcaption, .blog-cover figcaption, .blog-faq details, .blog-toc, .bp-toc a, .blog-pillar-note, .blog-meta, .blog-author p) { font-family: var(--bf-other, var(--body)); }
.blog-page :is(.blog-answer p, .blog-body li, .blog-body blockquote, .blog-faq details) { font-weight: var(--bf-other-w, 400); }

/* Urdu: Nastaliq needs room — no negative letter-spacing (it breaks the joins), taller lines, no capitals tricks */
.blog-page[lang="ur"], .blog-page[lang="ur"] * { letter-spacing: 0 !important; text-transform: none !important; }
.blog-page[lang="ur"] :is(.bp-head h1, .blh-title h1) { font-size: clamp(32px, 4.2vw, 54px) !important; line-height: 1.75 !important; margin-bottom: 12px !important; }
.blog-page[lang="ur"] .blog-hero-card h2 { line-height: 1.75; }
.blog-page[lang="ur"] .blog-body h2 { font-size: calc(clamp(24px, 2.2vw, 30px) * var(--bf-size, 1)) !important; line-height: 1.9 !important; margin: 44px 0 10px !important; }
.blog-page[lang="ur"] .blog-body h3 { font-size: calc(21px * var(--bf-size, 1)); line-height: 1.9; }
.blog-page[lang="ur"] :is(.blog-card h3, .blog-row-txt b) { line-height: 1.85; }
.blog-page[lang="ur"] .blog-dek { line-height: 2; font-size: calc(18px * var(--bf-size, 1)); }
.blog-page[lang="ur"] :is(.blog-answer p, .blog-faq details, .blog-body li) { line-height: 2; font-size: calc(17px * var(--bf-size, 1)); }
.blog-page[lang="ur"] .blog-body blockquote { line-height: 2.05; }
.blog-page[lang="ur"] .blog-answer h2 { font-size: 15px !important; }
.blog-page[lang="ur"] .blog-card-img + * { direction: rtl; }
.blog-page[lang="ur"] .bp-toc a { border-left: 0; border-right: 2px solid transparent; padding: 8px 14px 8px 0; margin: 0 -2px 0 0; line-height: 1.9; }
.blog-page[lang="ur"] .bp-toc a.on { border-right-color: var(--bl-accent); }
.blog-page[lang="ur"] .blog-cover figcaption { text-align: left; }

/* ================= pictures inside articles, and the cover's chosen shape ================= */
.blog-fig { margin: 30px 0; }
.blog-fig img { display: block; width: 100%; height: auto; border-radius: 24px; background: var(--fx-media, #ECE8F2); object-position: var(--op, 50% 50%); }
.blog-fig.has-ratio img { aspect-ratio: var(--ar); object-fit: cover; }
.blog-fig figcaption { margin-top: 8px; font-size: 13.5px; color: var(--bl-muted); text-align: center; line-height: 1.5; }
.blog-cover.has-ratio .blog-cover-img { aspect-ratio: var(--ar) !important; }
.blog-cover[style*="auto"] .blog-cover-img { aspect-ratio: auto !important; height: auto; max-height: 80vh; object-fit: contain; }
@media (max-width: 760px) {
  .blog-fig { margin: 22px -16px; }
  .blog-fig img { border-radius: 0; }
  .blog-fig figcaption { padding: 0 16px; }
  .blog-cover.has-ratio .blog-cover-img { aspect-ratio: var(--ar) !important; }
}

/* ================= the language switch (sits on the side, always reachable) ================= */
.bp-lang { position: fixed; z-index: 60; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; border-radius: 22px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border: 1px solid rgba(20,22,30,.08); box-shadow: 0 18px 40px -16px rgba(20,22,30,.35); animation: bpLangIn .5s .3s both cubic-bezier(.2,.8,.2,1); }
@keyframes bpLangIn { from { opacity: 0; transform: translate(14px, -50%); } }
.bp-lang-ic { display: grid; place-items: center; height: 28px; color: var(--bl-muted, #6B7180); }
.bp-lang-opt { display: grid; place-items: center; min-width: 64px; min-height: 40px; padding: 0 12px; border-radius: 16px; font-size: 14px; font-weight: 700; text-decoration: none !important; color: var(--bl-ink, #14161E) !important; transition: background .15s, color .15s; }
.bp-lang-opt[lang="ur"] { font-family: 'Noto Nastaliq Urdu', 'Gulzar', serif; font-size: 15px; font-weight: 600; line-height: 1; padding-bottom: 4px; }
a.bp-lang-opt:hover { background: rgba(20,22,30,.06); }
.bp-lang-opt.on { background: #14161E; color: #fff !important; box-shadow: 0 6px 14px -6px rgba(20,22,30,.6); }
@media (max-width: 760px) {
  .bp-lang { top: auto; bottom: 18px; right: auto; left: 14px; transform: none; flex-direction: row; align-items: center; border-radius: 999px; padding: 5px; animation-name: bpLangInM; }
  @keyframes bpLangInM { from { opacity: 0; transform: translateY(14px); } }
  .bp-lang-ic { width: 30px; height: auto; }
  .bp-lang-opt { min-width: 0; min-height: 36px; border-radius: 999px; padding: 0 14px; }
}
@media print { .bp-lang { display: none; } }
@media (prefers-reduced-motion: reduce) { .bp-lang { animation: none; } }
