/* ==========================================================================
   Blog (/blog and /blog/{slug}) — redesign approved 1 Oct 2026.
   List: topic chips, a large featured card, then article cards.
   Article: a centred reading layout, then designs and more articles.
   Uses the listing tokens and design cards (.lp-page, listing.css).
   Classes: bl-*; resets use :where().
   ========================================================================== */
:where(.bl) :where(h1, h2, h3, p, figure) { margin: 0; }
:where(.bl) a { color: inherit; text-decoration: none; }
:where(.bl) :focus-visible { outline: 2px solid var(--lp-brand); outline-offset: 2px; border-radius: 6px; }
.bl { color: var(--lp-ink); padding-bottom: 72px; }

.bl-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--lp-brand); }
.bl-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; font-weight: 600; color: var(--lp-faint); }
.bl-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--lp-brand); white-space: nowrap; }
.bl-more svg { flex-shrink: 0; }
.bl-btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 12px; background: var(--lp-brand); color: #fff !important; font-size: 14.5px; font-weight: 800; }
.bl-btn:hover { background: var(--lp-brand-hover); }

/* ---------- list ---------- */
.bl-head { padding: 14px 0 16px; }
.bl-head h1 { font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.022em; color: var(--lp-ink); }
.bl-head p { max-width: 680px; margin-top: 8px; font-size: 15px; color: var(--lp-muted); }
.bl-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.bl-chips::-webkit-scrollbar { display: none; }
.bl-chips--wrap { flex-wrap: wrap; overflow: visible; }
.bl-chips a { flex-shrink: 0; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--lp-line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--lp-ink-2); white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.bl-chips a:hover { border-color: var(--lp-ink-2); color: var(--lp-ink); }
.bl-chips a.is-on { background: var(--lp-ink); border-color: var(--lp-ink); color: #fff; }

.bl-feat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 24px; padding: 18px; border: 1px solid var(--lp-line); border-radius: 22px; background: #fff; transition: box-shadow .2s; }
.bl-feat:hover { box-shadow: 0 22px 44px -28px rgba(15, 23, 42, .35); }
.bl-feat__img, .bl-card__img { display: block; overflow: hidden; aspect-ratio: 1.91 / 1; border-radius: 14px; background: var(--lp-soft); }
.bl-feat__img img, .bl-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bl-feat:hover .bl-feat__img img, .bl-card:hover .bl-card__img img { transform: scale(1.03); }
.bl-card__none { display: grid; place-items: center; width: 100%; height: 100%; color: var(--lp-faint); }
.bl-feat__txt { display: block; min-width: 0; }
.bl-feat__title { display: block; margin-top: 10px; font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--lp-ink); }
.bl-feat:hover .bl-feat__title { color: var(--lp-brand); }
.bl-feat__excerpt { display: block; margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--lp-muted); }
.bl-feat .bl-meta { margin-top: 14px; }
.bl-feat .bl-more { margin-top: 18px; }

.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; margin-top: 34px; }
.bl-grid--more { margin-top: 0; }
.bl-card { display: block; min-width: 0; }
.bl-card .bl-kicker { margin-top: 12px; }
.bl-card__title { display: block; margin-top: 6px; font-size: 17px; font-weight: 800; line-height: 1.35; color: var(--lp-ink); }
.bl-card:hover .bl-card__title { color: var(--lp-brand); }
.bl-card__excerpt { display: -webkit-box; margin-top: 6px; overflow: hidden; font-size: 14px; line-height: 1.55; color: var(--lp-muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bl-card .bl-meta { margin-top: 8px; }

.bl-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--lp-line-soft); font-size: 14px; font-weight: 700; }
.bl-pager a { color: var(--lp-brand); }
.bl-pager__at { color: var(--lp-faint); }

.bl-empty { margin-top: 24px; padding: 48px 16px; border: 1px dashed #d8dde5; border-radius: 20px; background: var(--lp-soft); text-align: center; }
.bl-empty__ic { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 12px; border-radius: 50%; background: #fff; color: var(--lp-brand); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.bl-empty__title { font-size: 18px; font-weight: 800; color: var(--lp-ink); }
.bl-empty p:not(.bl-empty__title) { max-width: 460px; margin: 6px auto 16px; font-size: 14.5px; color: var(--lp-muted); }

/* ---------- article ---------- */
.bl-preview { position: sticky; top: 0; z-index: 120; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding: 10px 16px; background: #1e293b; color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; }
.bl-preview a { font-weight: 800; color: #93c5fd; text-decoration: underline; }
.bl-art__head { max-width: 760px; margin: 0 auto; padding: 22px 0 18px; text-align: center; }
.bl-art__head h1 { margin-top: 10px !important; font-size: 40px; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: var(--lp-ink); overflow-wrap: anywhere; }
.bl-art__head .bl-meta { justify-content: center; margin-top: 14px !important; font-size: 13.5px; }
.bl-art__head .bl-meta span + span::before { content: "·"; margin-right: 12px; color: #cbd5e1; }
.bl-art__cover { max-width: 1000px; margin: 10px auto 0 !important; overflow: hidden; border-radius: 20px; background: var(--lp-soft); }
.bl-art__cover img { display: block; width: 100%; height: auto; }
.bl-art__col { max-width: 760px; margin: 0 auto; }
.bl-art__lead { margin-top: 28px !important; font-size: 19px; font-weight: 600; line-height: 1.6; color: var(--lp-ink); }
.bl-art__body { margin-top: 18px; font-size: 17px; line-height: 1.8; color: var(--lp-ink-2); overflow-wrap: anywhere; }
.bl-art__body > :first-child { margin-top: 0; }
.bl-art__body p { margin: 0 0 16px; }
.bl-art__body h1, .bl-art__body h2 { margin: 34px 0 10px; font-size: 24px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; color: var(--lp-ink); }
.bl-art__body h3 { margin: 24px 0 8px; font-size: 19px; font-weight: 800; color: var(--lp-ink); }
.bl-art__body ul, .bl-art__body ol { margin: 0 0 16px; padding-left: 22px; }
.bl-art__body li { margin: 4px 0; }
.bl-art__body li::marker { color: var(--lp-brand); }
/* The site resets list markers; the admin editor also saves bullet lists as
   <ol><li data-list="bullet"> with a helper span — give both their markers. */
.bl-art__body ul { list-style: disc; }
.bl-art__body ol { list-style: decimal; }
.bl-art__body li[data-list="bullet"] { list-style-type: disc; }
.bl-art__body li[data-list="ordered"] { list-style-type: decimal; }
.bl-art__body .ql-ui { display: none; }
.bl-art__body a { font-weight: 700; color: var(--lp-brand); text-decoration: underline; text-underline-offset: 2px; }
.bl-art__body strong, .bl-art__body b { color: var(--lp-ink); }
.bl-art__body img { display: block; max-width: 100%; height: auto; margin: 20px auto; border-radius: 14px; }
.bl-art__body blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--lp-brand); border-radius: 0 12px 12px 0; background: var(--lp-soft); color: var(--lp-ink); }
.bl-art__body .ql-align-center { text-align: center; }
.bl-art__body .ql-align-right { text-align: right; }
.bl-art__body .ql-align-justify { text-align: justify; }
.bl-art__after { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--lp-line-soft); }
.bl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.bl-share > span:first-child { margin-right: 2px; font-size: 13px; font-weight: 800; color: var(--lp-faint); }
.bl-share a, .bl-share button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--lp-line); border-radius: 50%; background: #fff; color: var(--lp-ink-2); cursor: pointer; transition: border-color .15s, color .15s; }
.bl-share a:hover, .bl-share button:hover { border-color: var(--lp-brand); color: var(--lp-brand); }
.bl-share__note { font-size: 12.5px; font-weight: 700; color: #15803d; }
.bl-share__note:empty { display: none; }

.bl-sec { margin-top: 56px; }
.bl-sec__hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bl-sec__hd h2 { font-size: 22px; font-weight: 800; letter-spacing: -.015em; color: var(--lp-ink); }

/* ---------- tablet / phone ---------- */
@media (max-width: 1000px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .bl { padding-bottom: 40px; }
  .bl-head h1 { font-size: 24px; }
  .bl-feat { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
  .bl-feat__title { font-size: 21px; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bl-art__head h1 { font-size: 27px; }
  .bl-art__cover { border-radius: 14px; }
  .bl-art__lead { font-size: 17px; }
  .bl-art__body { font-size: 16px; }
  .bl-sec { margin-top: 40px; }
  .bl-sec__hd h2 { font-size: 19px; }
}
