/* ============================================================
   NIWO blog — public, studio-facing, English.
   Palette and type come from app.css; this file is layout and the
   article typography only. Kept separate from docs.css because the
   blog is a marketing surface and will drift from the help centre.
   ============================================================ */

.bl-wrap{ max-width:1120px; margin:0 auto; padding:0 24px 100px; }

/* ---------- top bar ---------- */
.bl-top{
  display:flex; align-items:center; gap:18px;
  padding:22px 0 0; margin-bottom:54px;
}
.bl-top .brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-display); font-weight:800; font-size:19px;
  letter-spacing:-.01em; text-transform:uppercase; color:var(--text);
}
.bl-top .brand .mk{
  width:28px; height:28px; border-radius:9px; flex:none; display:grid; place-items:center;
  background:#000;
}
.bl-top .brand .mk svg{ width:16px; height:16px; }
.bl-top .brand small{
  font-family:var(--font-body); font-weight:500; font-size:11px; letter-spacing:.08em;
  color:var(--muted-2); text-transform:uppercase; display:block; margin-top:1px;
}
.bl-top nav{ margin-left:auto; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.bl-top nav a{
  font-size:14px; color:var(--muted); padding:8px 12px; border-radius:12px;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.bl-top nav a:hover{ background:var(--elev); color:var(--text); }
.bl-top nav a.cta{ background:var(--blue); color:#fff; font-weight:600; }
.bl-top nav a.cta:hover{ background:var(--blue-deep); }

/* ---------- index header ---------- */
.bl-head{ max-width:720px; margin:0 0 46px; }
.bl-kick{
  font-size:11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--blue-bright,#8891f2); margin:0 0 14px;
}
.bl-head h1{
  font-family:var(--font-display); font-weight:800;
  font-size:clamp(32px,4.6vw,50px); line-height:1.06; letter-spacing:-.02em;
  margin:0 0 16px; color:var(--text);
}
.bl-head p{ font-size:17.5px; line-height:1.62; color:var(--muted); margin:0; }

/* ---------- filters ---------- */
.bl-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:30px; }
.bl-tab{
  border:1px solid var(--line); background:transparent; color:var(--muted);
  font:inherit; font-size:13.5px; padding:8px 16px; border-radius:104px; cursor:pointer;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.bl-tab:hover{ color:var(--text); border-color:var(--muted-2); }
.bl-tab.on{ background:var(--blue); border-color:var(--blue); color:#fff; font-weight:600; }

/* ---------- post list ---------- */
.bl-list{ display:grid; gap:16px; }
@media (min-width:900px){ .bl-list{ grid-template-columns:1fr 1fr; } }

.bl-card{
  display:flex; flex-direction:column;
  background:var(--panel); border:1px solid var(--line); border-radius:16px;
  padding:26px 28px; transition:border-color .2s var(--ease), transform .2s var(--ease);
}
.bl-card:hover{ border-color:var(--blue); transform:translateY(-2px); }
/* The lead article earns the full width: a blog with two columns and no
   hierarchy reads as an archive rather than something with a front page. */
@media (min-width:900px){ .bl-card.lead{ grid-column:1/-1; } }
.bl-card.lead h2{ font-size:27px; }
.bl-card.lead .ex{ font-size:16px; }

.bl-cat{
  align-self:flex-start; font-size:11px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; padding:5px 11px; border-radius:104px; margin-bottom:16px;
  background:var(--blue-soft); color:var(--blue-bright,#8891f2);
}
.bl-cat.update{ background:rgba(87,242,135,.14); color:var(--green); }
.bl-cat.compare{ background:rgba(253,162,32,.14); color:var(--amber); }

.bl-card h2{
  font-family:var(--font-display); font-weight:800; font-size:21px; line-height:1.22;
  letter-spacing:-.015em; margin:0 0 10px; color:var(--text);
}
.bl-card .ex{ font-size:15px; line-height:1.65; color:var(--muted); margin:0 0 20px; }
.bl-card .meta{
  margin-top:auto; display:flex; align-items:center; gap:10px;
  font-size:12.5px; color:var(--muted-2);
}
.bl-card .meta .sep{ opacity:.5; }

/* ---------- article ---------- */
.bl-article{ max-width:740px; margin:0 auto; }
/* width:max-content keeps the hit area tight to the text while still being
   block level, so the category chip below starts on its own line. */
.bl-back{
  display:flex; width:max-content; align-items:center; gap:7px; font-size:13.5px;
  color:var(--muted-2); margin-bottom:30px;
}
.bl-article > .bl-cat{ display:inline-block; margin-bottom:18px; }
.bl-back:hover{ color:var(--text); }
.bl-back svg{ width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2; }

.bl-article h1{
  font-family:var(--font-display); font-weight:800;
  font-size:clamp(30px,4.2vw,44px); line-height:1.08; letter-spacing:-.02em;
  margin:0 0 18px; color:var(--text);
}
.bl-meta{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  font-size:13px; color:var(--muted-2);
  padding-bottom:26px; margin-bottom:34px; border-bottom:1px solid var(--line-soft);
}
.bl-meta .sep{ opacity:.5; }

.bl-body .lede{ font-size:18.5px; line-height:1.62; color:var(--text); margin:0 0 26px; }
.bl-body h2{
  font-family:var(--font-display); font-weight:800; font-size:24px; line-height:1.2;
  letter-spacing:-.015em; color:var(--text); margin:44px 0 14px;
}
.bl-body h3{ font-size:18px; font-weight:700; line-height:1.3; color:var(--text); margin:32px 0 10px; }
.bl-body p{ font-size:16.5px; line-height:1.7; color:var(--muted); margin:0 0 18px; }
.bl-body strong{ color:var(--text); font-weight:700; }
.bl-body a:not(.btn){ color:var(--blue-bright); text-decoration:underline; text-underline-offset:3px; }
/* Platform logos beside Douyin, Bilibili and Rednote in the comparison article. */
.plat-ico{ width:1.1em; height:1.1em; border-radius:22%; object-fit:contain; display:inline-block;
  vertical-align:-.2em; margin-right:.4em; }
.bl-body h2 .plat-ico{ width:1.15em; height:1.15em; vertical-align:-.2em; margin-right:.45em; }
.bl-tbl th .plat-ico{ width:22px; height:22px; vertical-align:-6px; margin-right:8px; }
.bl-body li > .plat-ico{ width:1.2em; height:1.2em; vertical-align:-.28em; margin-right:.5em; }
.bl-article h1 .plat-ico{ width:.95em; height:.95em; vertical-align:-.1em; margin-right:.3em; border-radius:20%; }
.bl-body h3 .plat-ico, .bl-cta .plat-ico{ vertical-align:-.22em; }
.bl-cta h3 .plat-ico{ width:1em; height:1em; }
.bl-body .lede .plat-ico{ width:1.05em; height:1.05em; vertical-align:-.2em; }
.bl-body ul,.bl-body ol{
  margin:0 0 20px; padding-left:22px; color:var(--muted);
  font-size:16.5px; line-height:1.7;
}
.bl-body li{ margin-bottom:9px; }
.bl-body li::marker{ color:var(--muted-2); }
.bl-body li strong{ color:var(--text); }

.bl-body blockquote{
  margin:26px 0; padding:2px 0 2px 22px; border-left:3px solid var(--blue);
  font-size:17px; line-height:1.62; color:var(--text);
}
.bl-body blockquote p:last-child{ margin-bottom:0; }

/* A table is the honest shape for a platform or pricing comparison, and it
   has to survive a phone without pushing the page sideways. */
.bl-tbl{ overflow-x:auto; margin:0 0 22px; border:1px solid var(--line); border-radius:16px; }
.bl-tbl table{ width:100%; border-collapse:collapse; min-width:520px; }
.bl-tbl th{
  text-align:left; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted-2); font-weight:700; padding:14px 18px;
  border-bottom:1px solid var(--line-soft); background:var(--elev);
}
.bl-tbl td{
  padding:14px 18px; font-size:15px; line-height:1.6; color:var(--muted);
  border-bottom:1px solid var(--line-soft); vertical-align:top;
}
.bl-tbl tr:last-child td{ border-bottom:0; }
.bl-tbl td strong{ color:var(--text); }

.bl-note{
  background:var(--panel); border-left:3px solid var(--blue);
  border-radius:0 16px 16px 0; padding:20px 24px; margin:0 0 24px;
}
.bl-note p{ margin:0; font-size:15.5px; line-height:1.7; }
.bl-note p + p{ margin-top:10px; }

/* ---------- end of article ---------- */
.bl-cta{
  background:var(--panel); border:1px solid var(--line); border-radius:24px;
  padding:34px 36px; margin:52px 0 0; text-align:center;
}
.bl-cta h3{
  font-family:var(--font-display); font-weight:800; font-size:23px;
  letter-spacing:-.015em; margin:0 0 10px; color:var(--text);
}
.bl-cta p{ font-size:15.5px; line-height:1.65; color:var(--muted); margin:0 0 22px; }
.bl-cta .row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.bl-cta .b{
  padding:12px 24px; border-radius:12px; font-size:15px; font-weight:600;
  transition:background .2s var(--ease);
}
.bl-cta .b.pri{ background:var(--blue); color:#fff; }
.bl-cta .b.pri:hover{ background:var(--blue-deep); }
.bl-cta .b.gh{ background:var(--elev); color:var(--text); border:1px solid var(--line); }
.bl-cta .b.gh:hover{ background:var(--elev-2); }

.bl-more{ margin:56px 0 0; padding-top:34px; border-top:1px solid var(--line-soft); }
.bl-more h4{
  font-size:11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted-2); margin:0 0 18px;
}
.bl-more .bl-list{ gap:14px; }
@media (min-width:900px){ .bl-more .bl-list{ grid-template-columns:1fr 1fr; } }
.bl-more .bl-card{ padding:22px 24px; }
.bl-more .bl-card h2{ font-size:17.5px; }

/* ---------- footer ---------- */
.bl-foot{
  border-top:1px solid var(--line-soft); margin-top:80px; padding:34px 0 0;
  display:flex; gap:18px; align-items:center; flex-wrap:wrap;
  font-size:13.5px; color:var(--muted-2);
}
.bl-foot nav{ margin-left:auto; display:flex; gap:18px; flex-wrap:wrap; }
.bl-foot a:hover{ color:var(--text); }

@media (max-width:640px){
  .bl-wrap{ padding:0 18px 70px; }
  .bl-top{ margin-bottom:38px; }
  .bl-top nav a:not(.cta){ display:none; }
  .bl-cta{ padding:28px 22px; }
}

/* ---------- featured article (published elsewhere, links out) ---------- */
.bl-feat{
  display:block; margin:0 0 34px; padding:32px 34px;
  background:linear-gradient(135deg, var(--blue-soft), var(--panel) 62%);
  border:1px solid var(--blue); border-radius:18px;
  transition:transform .2s var(--ease), border-color .2s var(--ease);
}
.bl-feat:hover{ transform:translateY(-2px); border-color:var(--blue-deep); }
.bl-feat-k{
  display:inline-block; font-size:11px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; padding:5px 11px; border-radius:104px; margin-bottom:16px;
  background:var(--blue); color:#fff;
}
.bl-feat h2{
  font-family:var(--font-display); font-weight:800; font-size:clamp(24px,3.2vw,34px);
  line-height:1.14; letter-spacing:-.02em; margin:0 0 12px; color:var(--text);
}
.bl-feat .ex{ font-size:16.5px; line-height:1.65; color:var(--muted); margin:0 0 20px; max-width:760px; }
.bl-feat .meta{ display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:13px; color:var(--muted-2); }
.bl-feat .meta .sep{ opacity:.5; }
.bl-feat .meta .go{ color:var(--blue-bright,#8891f2); font-weight:700; }
@media (max-width:600px){ .bl-feat{ padding:24px 22px; } }

/* ---------- cover images ---------- */
.bl-thumb{
  display:block; width:calc(100% + 56px); max-width:none; height:auto; aspect-ratio:16/9; object-fit:cover;
  margin:-26px -28px 22px; border-radius:16px 16px 0 0; background:var(--elev);
}
.bl-more .bl-thumb{ width:calc(100% + 48px); margin:-22px -24px 18px; }
@media (min-width:900px){ .bl-card.lead .bl-thumb{ aspect-ratio:21/8; } }
.bl-hero{ margin:0 0 34px; }
.bl-hero img{ display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:16px; border:1px solid var(--line); background:var(--elev); }

/* featured block with its image beside the text on wide screens */
.bl-feat{ display:grid; gap:24px; padding:0; overflow:hidden; }
.bl-feat-img{ display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; }
.bl-feat-txt{ padding:0 34px 32px; }
@media (min-width:900px){
  .bl-feat{ grid-template-columns:minmax(0,5fr) minmax(0,6fr); align-items:center; gap:0; }
  .bl-feat-img{ height:100%; aspect-ratio:auto; min-height:300px; }
  .bl-feat-txt{ padding:32px 36px; order:-1; }
}
@media (max-width:600px){ .bl-feat-txt{ padding:0 22px 24px; } }

/* The brand is written "niwo" in lower case, even inside uppercase display type. */
span.nw{ display:contents; text-transform:none; }
