/* ==========================================================================
   posi — blog
   Layer on top of styles.css. Adds: blog index (post cards), long-form article
   typography, the bilingual translation divider, and a faithful in-app
   notification-center mockup built from the POS-92 design tokens.
   Monochrome core; spark-red (#e5383b) only as the unread beat — per spec.
   ========================================================================== */

/* ---------- shared: page intro head ---------- */
.blog-head{padding:64px 0 8px}
.blog-head .wrap{max-width:760px}
.blog-head h1{font-size:clamp(36px,4.6vw,58px);letter-spacing:-.03em;line-height:1.02;margin-top:16px}
.blog-head .lead{font-size:19px;color:var(--muted-fg);margin-top:18px;line-height:1.5;max-width:54ch}

/* ---------- blog index: post grid ---------- */
.post-grid{padding:36px 0 96px}
.post-grid .wrap{max-width:1000px}
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.cards.single{grid-template-columns:1fr;max-width:680px}
.pcard{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--r-lg);
  background:var(--card);overflow:hidden;transition:border-color .18s,box-shadow .18s,transform .18s}
.pcard:hover{border-color:var(--border-2);box-shadow:var(--sh-lg);transform:translateY(-3px)}
.pcard .thumb{aspect-ratio:16/10;background:var(--input);border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}
.pcard .thumb img{width:100%;height:100%;object-fit:cover}
.pcard .pbody{padding:22px 22px 24px;display:flex;flex-direction:column;gap:10px;flex:1}
.pcard .ptags{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tag-chip{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted-fg);border:1px solid var(--border);border-radius:999px;padding:4px 10px}
.tag-chip.new{color:#fff;background:var(--accent);border-color:transparent;display:inline-flex;align-items:center;gap:6px}
.tag-chip.new::before{content:"";width:5px;height:5px;border-radius:50%;background:#fff}
.pcard h3{font-size:21px;letter-spacing:-.02em;line-height:1.18}
.pcard p{font-size:15px;color:var(--muted-fg);line-height:1.5}
.pcard .pmeta{margin-top:auto;display:flex;align-items:center;gap:8px;font-family:var(--mono);
  font-size:11.5px;letter-spacing:.04em;color:var(--muted-fg);padding-top:6px}
.pcard .pmeta .arrow{margin-left:auto;display:inline-flex;color:var(--ink);transition:transform .18s}
.pcard:hover .pmeta .arrow{transform:translate(3px,-3px)}
.pcard .pmeta .arrow svg{width:16px;height:16px}

/* empty / coming-soon hint card */
.soon-card{border:1px dashed var(--border-2);border-radius:var(--r-lg);background:var(--input);
  padding:34px;display:flex;flex-direction:column;gap:8px;align-items:flex-start;justify-content:center}
.soon-card .k{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted-fg)}
.soon-card p{font-size:15px;color:var(--muted-fg);line-height:1.5}

/* ============================ ARTICLE ============================ */
.article{padding:40px 0 24px}
.article .wrap{max-width:720px}

/* breadcrumb / back */
.crumb{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted-fg);
  transition:color .15s;margin-bottom:30px}
.crumb:hover{color:var(--ink)}
.crumb svg{width:15px;height:15px}

/* article header */
.art-head{margin:0 0 36px}
.art-head .meta-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.art-head h1{font-size:clamp(34px,4.6vw,56px);letter-spacing:-.032em;line-height:1.04}
.art-head .standfirst{font-size:20px;color:var(--muted-fg);line-height:1.5;margin-top:20px;max-width:58ch}
.art-byline{display:flex;align-items:center;gap:12px;margin-top:26px;padding-top:22px;border-top:1px solid var(--border);
  font-size:13.5px;color:var(--muted-fg)}
.art-byline .who{display:flex;align-items:center;gap:9px;color:var(--ink);font-weight:500}
.art-byline .who .wm{font-size:17px;color:var(--ink)}
.art-byline .sep{width:3px;height:3px;border-radius:50%;background:var(--border-2)}
.art-byline .mono{font-family:var(--mono);font-size:12px;letter-spacing:.03em}

/* hero figure */
.art-hero{margin:0 0 8px}
figure{margin:38px 0}
figure.bleed{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
figcaption{font-size:13px;color:var(--muted-fg);text-align:center;margin-top:14px;font-family:var(--mono);letter-spacing:.02em}

/* article body type */
.prose{font-size:17.5px;line-height:1.7;color:var(--fg)}
.prose > * + *{margin-top:22px}
.prose h2{font-size:27px;letter-spacing:-.02em;line-height:1.15;margin-top:48px}
.prose h3{font-size:19px;font-weight:600;letter-spacing:-.01em;margin-top:34px;color:var(--ink)}
.prose p{font-size:17.5px;line-height:1.7;color:var(--fg)}
.prose strong{font-weight:600;color:var(--ink)}
.prose a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--border-2);text-underline-offset:3px;transition:text-decoration-color .15s}
.prose a:hover{text-decoration-color:var(--ink)}
.prose ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.prose ul li{position:relative;padding-left:26px;font-size:17px;line-height:1.6}
.prose ul li::before{content:"";position:absolute;left:4px;top:11px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.prose .lede{font-size:20px;color:var(--fg);line-height:1.55}

/* feature list (the four message types) */
.type-list{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.type-card{border:1px solid var(--border);border-radius:var(--r-lg);padding:20px;display:flex;flex-direction:column;gap:10px;background:var(--card)}
.type-card .thead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.type-card .ic{width:38px;height:38px;border-radius:var(--r-md);background:var(--muted);
  display:flex;align-items:center;justify-content:center;color:var(--ink)}
.type-card .ic svg{width:20px;height:20px}
.type-card h4{font-size:16px;font-weight:600;color:var(--ink);letter-spacing:-.01em;margin:0}
.type-card .tlabel{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-fg)}
.type-card p{font-size:14.5px;color:var(--muted-fg);line-height:1.5}
/* availability tags on type cards / headings */
.now-tag,.soon-tag{font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;
  border-radius:999px;padding:3px 9px;white-space:nowrap;flex:none;font-weight:500}
.now-tag{color:#fff;background:var(--ink)}
.soon-tag{color:var(--muted-fg);border:1px solid var(--border-2);background:transparent}
.type-card.soon{background:var(--input);border-style:dashed;border-color:var(--border-2)}
.type-card.soon .ic{background:#fff;color:#9a9aa6}
.type-card.soon h4{color:var(--muted-fg)}
/* inline availability chip inside an h3 */
.prose h3 .soon-tag{display:inline-block;vertical-align:middle;margin-left:10px;position:relative;top:-2px}

/* pull/callout */
.callout-box{display:flex;gap:14px;align-items:flex-start;border:1px solid var(--border-2);
  border-radius:var(--r-lg);background:var(--input);padding:20px 22px}
.callout-box svg{width:22px;height:22px;color:var(--ink);flex:none;margin-top:2px}
.callout-box .c-body{display:flex;flex-direction:column;gap:5px}
.callout-box .c-title{font-weight:600;color:var(--ink);font-size:16px}
.callout-box p{font-size:15px;line-height:1.6;color:var(--fg);margin:0}

/* in-article CTA band */
.art-cta{margin:52px 0 8px;border:1px solid var(--border);border-radius:var(--r-xl);
  background:var(--ink);color:#fff;padding:40px 38px;text-align:center}
.art-cta h2{color:#fff;font-size:clamp(26px,3vw,36px);margin:0;letter-spacing:-.025em}
.art-cta p{color:rgba(255,255,255,.62);font-size:16px;margin:14px auto 0;max-width:46ch;line-height:1.5}
.art-cta .row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:26px}

/* translation divider */
.lang-sep{display:flex;align-items:center;gap:16px;margin:64px 0 8px;color:var(--muted-fg);
  font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase}
.lang-sep::before,.lang-sep::after{content:"";flex:1;height:1px;background:var(--border)}

/* ============================ NOTIFICATION MOCKUP (from POS-92) ============================ */
/* a faithful, self-contained recreation of the in-app notification center,
   built to be screenshot-grade inside the article. Tokens lifted verbatim
   from the design handoff. */
.napp{--n-ink:#030213;--n-muted:#717182;--n-faint:#9a9aa6;--n-fainter:#b4b4bc;
  --n-chip:#ececf0;--n-chip-read:#f3f3f5;--n-hover:#e9ebef;--n-unread-row:#f6f7fb;
  --n-spark:#e5383b;--n-hair:rgba(0,0,0,.08);
  font-family:var(--sans)}

/* the popover panel */
.npanel{width:380px;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:14px;
  box-shadow:0 10px 30px rgba(3,2,19,.13);overflow:hidden}
.npanel .nhead{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--n-hair)}
.npanel .nhead .htitle{display:flex;align-items:baseline;gap:9px}
.npanel .nhead .htitle b{font-size:15px;font-weight:600;color:var(--n-ink)}
.npanel .nhead .htitle .cnt{font-size:13px;color:var(--n-muted)}
.npanel .nhead .markall{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--n-muted);cursor:default}
.npanel .nhead .markall svg{width:16px;height:16px}
.nlist{padding:6px;display:flex;flex-direction:column;gap:2px}
.ngroup{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--n-faint);padding:10px 12px 6px}

/* a row */
.nrow{position:relative;display:flex;gap:12px;padding:12px 12px 12px 18px;border-radius:10px}
.nrow.unread{background:var(--n-unread-row)}
.nrow .udot{position:absolute;left:6px;top:20px;width:7px;height:7px;border-radius:50%;background:var(--n-spark)}
.nrow .nchip{width:36px;height:36px;border-radius:8px;flex:none;display:flex;align-items:center;justify-content:center}
.nrow.unread .nchip{background:var(--n-chip);color:var(--n-ink)}
.nrow.read .nchip{background:var(--n-chip-read);color:var(--n-faint)}
.nrow .nchip svg{width:19px;height:19px}
.nrow .ncol{min-width:0;flex:1}
.nrow .ntop{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.nrow .ntitle{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nrow.unread .ntitle{font-weight:600;color:var(--n-ink)}
.nrow.read .ntitle{font-weight:500;color:var(--n-muted)}
.nrow .ntime{font-size:12px;flex:none;display:inline-flex;align-items:center;gap:3px}
.nrow.unread .ntime{color:var(--n-faint)}
.nrow.read .ntime{color:var(--n-fainter)}
.nrow .ntime svg{width:12px;height:12px}
.nrow .nbody{font-size:13px;line-height:1.45;margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nrow.unread .nbody{color:#5a5a66}
.nrow.read .nbody{color:var(--n-faint)}
.nrow .nread-cta{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--n-spark);margin-top:8px}
.nrow .nread-cta svg{width:14px;height:14px}

/* bell + badge */
.nbell{position:relative;width:40px;height:40px;border-radius:10px;background:var(--n-hover);
  display:flex;align-items:center;justify-content:center;color:var(--n-ink)}
.nbell svg{width:21px;height:21px}
.nbell .badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:var(--n-spark);color:#fff;font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center;border:2px solid #fff}

/* mock app chrome behind the panel (hero) */
.napp-stage{position:relative;background:linear-gradient(160deg,#1a1924,#0a0912);border-radius:var(--r-lg);
  padding:46px 28px;display:flex;justify-content:center;overflow:hidden}
.napp-stage::before{content:"";position:absolute;inset:0;
  background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.06) 1px,transparent 0);background-size:22px 22px}
.napp-stage .npanel{position:relative;z-index:2}

/* ============================ LANDING INTEGRATION TREATMENTS ============================ */
/* Three drop-in ways to surface the blog on the marketing homepage. Each is
   self-contained — copy the matching <section> from blog-on-landing-options.html
   into index.html (just before the footer CTA) and you're done. */

/* --- A · "from the blog" — latest-posts section (3 cards) --- */
.from-blog{padding:96px 0;border-top:1px solid var(--border)}
.from-blog .fb-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:36px;flex-wrap:wrap}
.from-blog .fb-head h2{font-size:clamp(30px,3.4vw,46px);letter-spacing:-.025em}
.from-blog .fb-head .all{display:inline-flex;align-items:center;gap:7px;font-size:14.5px;color:var(--muted-fg);transition:color .15s}
.from-blog .fb-head .all:hover{color:var(--ink)}
.from-blog .fb-head .all svg{width:16px;height:16px}
.from-blog .cards{grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){.from-blog .cards{grid-template-columns:1fr}}

/* --- B · featured-post strip (image left, copy right) --- */
.feat-strip{padding:88px 0;border-top:1px solid var(--border)}
.feat-strip .fs-card{display:grid;grid-template-columns:1.1fr 1fr;gap:0;border:1px solid var(--border);
  border-radius:var(--r-xl);overflow:hidden;background:var(--card);transition:border-color .18s,box-shadow .18s}
.feat-strip .fs-card:hover{border-color:var(--border-2);box-shadow:var(--sh-lg)}
.feat-strip .fs-media{background:linear-gradient(160deg,#1a1924,#0a0912);position:relative;display:flex;align-items:center;justify-content:center;padding:34px;min-height:300px;overflow:hidden}
.feat-strip .fs-media::before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.06) 1px,transparent 0);background-size:22px 22px}
.feat-strip .fs-body{padding:44px 44px;display:flex;flex-direction:column;gap:14px;justify-content:center}
.feat-strip .fs-body .ptags{display:flex;gap:8px;align-items:center}
.feat-strip .fs-body h3{font-size:clamp(24px,2.4vw,32px);letter-spacing:-.02em;line-height:1.15}
.feat-strip .fs-body p{font-size:16px;color:var(--muted-fg);line-height:1.55}
.feat-strip .fs-body .read{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:var(--ink);margin-top:6px}
.feat-strip .fs-body .read svg{width:17px;height:17px}
@media(max-width:820px){.feat-strip .fs-card{grid-template-columns:1fr}.feat-strip .fs-media{min-height:220px}.feat-strip .fs-body{padding:32px 28px}}

/* --- C · slim "what's new" banner (one-line link to the latest post) --- */
.whatsnew{padding:0 0 12px}
.whatsnew .wrap{padding-top:0}
.wn-bar{display:flex;align-items:center;gap:16px;border:1px solid var(--border);border-radius:var(--r-lg);
  background:var(--input);padding:16px 20px;transition:border-color .18s,background .18s}
.wn-bar:hover{border-color:var(--border-2);background:var(--hover)}
.wn-bar .wn-badge{font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;
  color:#fff;background:var(--accent);padding:5px 11px;border-radius:999px;flex:none;display:inline-flex;align-items:center;gap:6px}
.wn-bar .wn-badge::before{content:"";width:5px;height:5px;border-radius:50%;background:#fff}
.wn-bar .wn-txt{font-size:15.5px;color:var(--ink);font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wn-bar .wn-go{margin-left:auto;display:inline-flex;align-items:center;gap:7px;font-size:14px;color:var(--muted-fg);flex:none;transition:color .15s}
.wn-bar:hover .wn-go{color:var(--ink)}
.wn-bar .wn-go svg{width:16px;height:16px}
@media(max-width:560px){.wn-bar .wn-txt{white-space:normal}.wn-bar{align-items:flex-start;flex-wrap:wrap}}

@media(max-width:760px){
  .type-list{grid-template-columns:1fr}
  .prose{font-size:16.5px}
  .prose h2{font-size:23px}
  .art-cta{padding:32px 22px}
  .npanel{width:100%;max-width:380px}
  .napp-stage{padding:28px 14px}
  .cards{grid-template-columns:1fr}
}
