/* ============================================================
   BLOG / JOURNAL INDEX — components (used on .t-modern base)
   ============================================================ */
.b-top { padding-top: 132px; padding-bottom: clamp(28px, 4vw, 44px); }
.b-head { max-width: 60ch; }
.b-head h1 { font-size: clamp(40px, 6vw, 80px); }
.b-head p { margin-top: 18px; }

/* featured */
.b-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: center; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; }
.b-feature .ph { min-height: 380px; height: 100%; }
.b-feature .b-fbody { padding: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px) 0; }
.b-feature .badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green-50); color: var(--green-700); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 13px; border-radius: var(--r-pill); }
.b-feature .badge svg { width: 14px; height: 14px; flex: none; }
.b-feature h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 18px 0 14px; }
.b-feature p { color: var(--text-soft); font-size: 16px; max-width: 48ch; }
.b-feature .meta { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 13px; color: var(--text-soft); }
.b-feature .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-300); }

/* filter chips */
.b-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: clamp(40px, 5vw, 64px) 0 32px; }
.b-chip { padding: 9px 18px; border-radius: var(--r-pill); border: 1px solid var(--hairline); font-size: 13.5px; font-weight: 600; color: var(--text-soft); background: var(--surface); transition: all var(--dur-fast); }
.b-chip:hover { border-color: var(--brand); color: var(--text); }
.b-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* post grid */
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.b-post { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med); }
.b-post:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.b-post .ph { aspect-ratio: 16/10; }
.b-post .b-pbody { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.b-post .cat { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.b-post h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; margin: 10px 0 10px; }
.b-post p { font-size: 14px; color: var(--text-soft); flex: 1; }
.b-post .pmeta { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12.5px; color: var(--ink-400); }
.b-post .lang-pill { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; padding: 3px 8px; border-radius: var(--r-pill); background: var(--green-50); color: var(--green-700); }
.b-empty { grid-column: 1 / -1; text-align: center; color: var(--text-soft); padding: 48px 0; display: none; }

/* language-toggle filter — hide posts that don't match the active UI language,
   EXCEPT untranslated posts (no counterpart in the other language), which show
   in both views so English visitors still see the full BM-heavy journal. */
html[lang="bm"] .b-post[data-post-lang="en"]:not([data-untranslated]),
html[lang="bm"] .b-feature[data-post-lang="en"]:not([data-untranslated]) { display: none; }
html[lang="en"] .b-post[data-post-lang="bm"]:not([data-untranslated]),
html[lang="en"] .b-feature[data-post-lang="bm"]:not([data-untranslated]) { display: none; }

/* load more */
.b-more { display: flex; justify-content: center; margin-top: 44px; }

@media (max-width: 980px) {
  .b-feature { grid-template-columns: 1fr; }
  .b-feature .ph { min-height: 280px; }
  .b-feature .b-fbody { padding: 0 28px 28px; }
  .b-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .b-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG ARTICLE (reading view)
   ============================================================ */
.a-top { padding-top: 116px; }
.a-head { max-width: 780px; margin: 0 auto; text-align: center; }
.a-breadcrumb { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); margin-bottom: 22px; }
.a-breadcrumb a:hover { color: var(--brand); }
.a-breadcrumb svg { width: 13px; height: 13px; opacity: 0.6; }
.a-cat { display: inline-flex; align-items: center; gap: 8px; background: var(--green-50); color: var(--green-700); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--r-pill); }
.a-head h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.06; margin: 20px 0 0; }
.a-meta { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; font-size: 13.5px; color: var(--text-soft); }
.a-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-300); }
.a-meta .au { display: inline-flex; align-items: center; gap: 8px; }
.a-meta .au-av { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.a-hero-img { max-width: 1120px; margin: clamp(32px, 5vw, 56px) auto 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow-md); }
.a-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.a-body { max-width: 720px; margin: clamp(40px, 6vw, 72px) auto 0; }
.a-body > p { font-size: 17.5px; line-height: 1.75; color: var(--ink-700); margin-bottom: 22px; }
.a-body .lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--text); font-weight: 500; margin-bottom: 28px; }
.a-body h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; margin: 44px 0 16px; }
.a-body h2 + p { margin-top: 0; }
.a-body ul { display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; }
.a-body ul li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.6; color: var(--ink-700); }
.a-body ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--action); }
.a-body ul li strong { color: var(--text); font-weight: 700; }
.a-body figure { margin: 36px 0; }
.a-body figure img { width: 100%; border-radius: var(--r-md); display: block; }
.a-body figcaption { text-align: center; font-size: 13.5px; color: var(--text-soft); font-style: italic; margin-top: 12px; }
.a-cta-box { background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); margin: 44px 0; text-align: center; }
.a-cta-box h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); color: #fff; max-width: 22ch; margin: 0 auto 18px; }
.a-share { display: flex; align-items: center; gap: 12px; padding: 24px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin-top: 8px; }
.a-share span { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.a-share a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hairline); display: grid; place-items: center; color: var(--text); transition: all var(--dur-fast); }
.a-share a:hover { border-color: var(--brand); background: var(--green-50); }
.a-share svg { width: 17px; height: 17px; }

.a-related { max-width: 1120px; margin: clamp(48px, 6vw, 80px) auto 0; }
.a-related h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-bottom: 26px; }
.a-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 760px) {
  .a-related-grid { grid-template-columns: 1fr; }
  .a-hero-img { border-radius: 0; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); max-width: none; }
}
