/* ============================================================
   Trans-Digi Global — Blog / Insights index + article reader
   Shared by blog.html + article-*.html
   Reuses tokens & components from style.css (loaded first).
   ============================================================ */

/* ---------- topic filter row ---------- */
.blog-wrap{padding:56px 0 60px;background:var(--bg)}
.topic-filter{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:0 auto 34px}
.topic-pill{font-family:var(--font-head);font-weight:600;font-size:.82rem;letter-spacing:.01em;
  padding:9px 18px;border-radius:999px;border:1.5px solid var(--line);color:var(--body);
  background:var(--bg);cursor:pointer;transition:.2s;white-space:nowrap}
.topic-pill:hover{border-color:var(--accent);color:var(--accent)}
.topic-pill.is-active{background:var(--green-850);border-color:var(--green-850);color:#fff}

/* ---------- article card grid ---------- */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.post-card{display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:.25s}
.post-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(4,24,14,.1)}
.post-card.is-hidden{display:none}

/* square (1:1) product-photo cover — white background, whole product never cropped */
.post-card__cover{position:relative;aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden;
  background:#fff;border-bottom:1px solid var(--line,#e7ece9)}
.post-card__cover img{width:100%;height:100%;object-fit:contain;padding:22px;
  transition:transform .35s ease}
.post-card:hover .post-card__cover img{transform:scale(1.04)}
.post-card__tag{position:absolute;top:12px;left:12px;z-index:2;font-family:var(--font-head);font-weight:600;
  font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;color:#0f2947;
  background:rgba(255,255,255,.82);border:1px solid rgba(15,41,71,.14);
  padding:4px 10px;border-radius:999px;backdrop-filter:blur(2px)}
/* brand accent per topic — subtle tinted plate behind the white product shot */
.post-card--himel .post-card__cover{background:linear-gradient(160deg,#f4f8fd 0%,#fff 60%)}
.post-card--himel .post-card__tag{color:#1a3a63;border-color:rgba(26,58,99,.18)}
.post-card--schneider .post-card__cover{background:linear-gradient(160deg,#f2faf4 0%,#fff 60%)}
.post-card--schneider .post-card__tag{color:#1f5f2e;border-color:rgba(31,95,46,.18)}
.post-card--weg .post-card__cover{background:linear-gradient(160deg,#eff8fd 0%,#fff 60%)}
.post-card--weg .post-card__tag{color:#12466a;border-color:rgba(18,70,106,.18)}

.post-card__body{display:flex;flex-direction:column;flex:1;padding:20px 22px 22px}
.post-card__meta{display:flex;align-items:center;gap:8px;font-family:var(--font-head);font-weight:500;
  font-size:.72rem;color:var(--accent);text-transform:uppercase;letter-spacing:.08em;margin-bottom:9px}
.post-card__meta .dot{width:3px;height:3px;border-radius:50%;background:var(--body);opacity:.5}
.post-card__meta .stub{color:#b0968f}
.post-card h3{font-family:var(--font-head);font-weight:700;color:var(--ink);font-size:1.02rem;
  line-height:1.3;letter-spacing:-.01em}
.post-card h3 a:hover{color:var(--accent)}
.post-card__excerpt{margin-top:10px;font-size:.86rem;line-height:1.6;color:var(--body)}
.post-card .arrow-link{margin-top:16px;padding-top:2px;font-size:.85rem}

/* covers stay square (1:1) for every card, featured included */

/* ---- blog intro strip under page-hero ---- */
.blog-intro{max-width:720px;margin:0 auto 40px;text-align:center;font-size:.98rem;line-height:1.7;color:#495751}

/* ============================================================
   ARTICLE READER (article-*.html)
   ============================================================ */
.article{padding:52px 0 20px;background:var(--bg)}
.article__wrap{max-width:820px;margin:0 auto}
.article__eyebrow{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-head);font-weight:600;
  text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;color:var(--accent);margin-bottom:14px}
.article__eyebrow .badge{background:rgba(63,155,69,.1);color:var(--accent);padding:4px 11px;border-radius:999px}
.article h1{font-family:var(--font-head);font-weight:700;color:var(--ink);
  font-size:clamp(1.7rem,3.2vw,2.5rem);line-height:1.15;letter-spacing:-.02em}
.article__meta{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:18px;padding-bottom:22px;
  border-bottom:1px solid var(--line);font-size:.82rem;color:var(--body)}
/* article cover — square-ish product photo on a light plate, product never cropped */
.article__cover{margin:26px 0 4px;border-radius:14px;overflow:hidden;
  background:linear-gradient(160deg,#f4f8fd 0%,#fff 62%);border:1px solid var(--line,#e7ece9)}
.article__cover img{display:block;width:100%;max-height:420px;object-fit:contain;padding:28px}
.article__cover--schneider{background:linear-gradient(160deg,#f2faf4 0%,#fff 62%)}
.article__cover--himel{background:linear-gradient(160deg,#f4f8fd 0%,#fff 62%)}
.article__meta .am{display:inline-flex;align-items:center;gap:7px}
.article__meta .am svg{width:15px;height:15px;stroke:var(--accent);stroke-width:1.8;fill:none}
.article__meta .am strong{color:var(--ink);font-weight:600}

/* prose */
.prose{margin-top:30px;color:#42504a;font-size:1rem;line-height:1.78}
.prose>p{margin-bottom:18px}
.prose h2{font-family:var(--font-head);font-weight:700;color:var(--ink);
  font-size:clamp(1.25rem,2.2vw,1.55rem);line-height:1.25;letter-spacing:-.01em;margin:34px 0 14px}
.prose h3{font-family:var(--font-head);font-weight:600;color:var(--ink);
  font-size:1.08rem;line-height:1.3;margin:26px 0 10px}
.prose strong{color:var(--ink);font-weight:600}
.prose a{color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.prose a:hover{color:var(--cta-hover)}
.prose ul{margin:0 0 18px;padding-left:2px}
.prose ul li{position:relative;padding-left:26px;margin-bottom:10px}
.prose ul li::before{content:"";position:absolute;left:0;top:.52em;width:14px;height:9px;
  border-left:2px solid var(--accent);border-bottom:2px solid var(--accent);
  transform:rotate(-45deg);border-radius:1px}

/* key-spec callout box inside articles */
.spec-box{margin:26px 0;background:var(--bg-soft);border:1px solid var(--line);border-left:3px solid var(--accent);
  border-radius:12px;padding:22px 24px}
.spec-box h4{font-family:var(--font-head);font-weight:700;color:var(--ink);font-size:.95rem;margin-bottom:12px;
  display:flex;align-items:center;gap:8px}
.spec-box h4 svg{width:18px;height:18px;stroke:var(--accent);stroke-width:1.8;fill:none}
.spec-box ul{margin:0}
.spec-box li{position:relative;padding-left:24px;margin-bottom:9px;font-size:.9rem;color:#42504a}
.spec-box li:last-child{margin-bottom:0}
.spec-box li::before{content:"";position:absolute;left:0;top:.5em;width:8px;height:8px;
  background:var(--accent);border-radius:2px}
.spec-box li strong{color:var(--ink)}

/* share + back row */
.article__foot{max-width:820px;margin:34px auto 0;display:flex;flex-wrap:wrap;gap:14px;
  align-items:center;justify-content:space-between;padding-top:24px;border-top:1px solid var(--line)}
.article__foot .back-link{font-family:var(--font-head);font-weight:600;color:var(--accent);
  display:inline-flex;align-items:center;gap:7px;font-size:.9rem}
.article__foot .back-link svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none}
.article__foot .back-link:hover{color:var(--cta-hover)}
.share-row{display:flex;align-items:center;gap:10px}
.share-row span{font-family:var(--font-head);font-weight:500;font-size:.8rem;color:var(--body)}
.share-row a{width:34px;height:34px;border-radius:8px;border:1px solid var(--line);display:grid;place-items:center;transition:.2s}
.share-row a svg{width:16px;height:16px;fill:var(--body)}
.share-row a:hover{border-color:var(--accent);background:var(--bg-soft)}
.share-row a:hover svg{fill:var(--accent)}

/* related posts */
.related{padding:56px 0;background:var(--bg-soft)}
.related__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:30px}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:900px){
  .post-grid,.related__grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .post-grid,.related__grid{grid-template-columns:1fr}
  .topic-filter{gap:8px}
  .topic-pill{font-size:.78rem;padding:8px 14px}
  .article__foot{flex-direction:column;align-items:flex-start;gap:18px}
}

/* keep desktop-compact scale consistent (root font-size:14px @≥992 from style.css) */
@media(min-width:992px){
  .blog-wrap{padding:46px 0 52px}
  .article{padding:42px 0 16px}
  .spec-box{padding:20px 22px}
}

/* AI scene covers — fill the frame */
.post-card__cover{background:#0a2c1c}
.post-card__cover img,.post-card__cover--photo img{object-fit:cover!important;padding:0!important;width:100%;height:100%}
.post-card__tag{background:rgba(4,20,12,.74);color:#fff}
.article__cover{background:#0a2c1c;max-height:none}
.article__cover img{object-fit:cover!important;width:100%;max-height:380px}
