/* public/css/blog.css — /blog (list) and /blog/<slug> (article). Loaded AFTER css/landing.css and
   css/landing-blog.css: header, footer, container width (.lp-container), buttons, cards and breakpoints come
   from the main page; this file only adds the blog-specific parts, using the same --lp-* tokens. */

/* the main page's own global reset (inline in public/index.html) */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* active page in the header */
.lp-nav-links a.is-active { color: var(--lp-blue); }
.lp-nav-blog.is-current { background: var(--lp-blue-pale); border-color: var(--lp-blue-pale); }

/* ---------- list page: light hero like the main page sections */
.b-hero { padding: 84px 0 40px; background: var(--lp-blue-pale); }
.b-hero .lp-section-heading { max-width: 980px; }
.b-list { padding: 48px 0 105px; background: var(--lp-blue-pale); }
.b-list .lp-blog-card { background: var(--lp-white); }
.b-empty { background: var(--lp-white); border: 1px solid var(--lp-border); border-radius: 22px; padding: 56px 32px; text-align: center; }
.b-empty i { font-size: 40px; color: var(--lp-blue); margin-bottom: 14px; }
.b-empty h2 { font-family: 'Sora', 'Segoe UI', sans-serif; font-size: 24px; color: var(--lp-ink); margin: 0 0 8px; }
.b-empty p { color: var(--lp-ink-soft); margin: 0; }
.b-empty .b-langs { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.b-empty .b-langs .lp-nav-button { display: inline-flex; }

/* ---------- article page */
.a-page { padding: 56px 0 10px; }
.a-head, .a-body, .a-footer { max-width: 800px; margin-inline: auto; }
.a-back { display: inline-flex; align-items: center; gap: 8px; color: var(--lp-blue-deep); font-weight: 800; font-size: 14px; text-decoration: none; margin-bottom: 26px; }
.a-back:hover { color: var(--lp-blue); }
.a-title { margin: 0 0 18px; font-family: 'Sora', 'Segoe UI', sans-serif; font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: var(--lp-ink); }
.a-subtitle { margin: 0; color: var(--lp-ink-soft); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.a-byline { margin-top: 26px; padding: 16px 0; border-top: 1px solid var(--lp-border); border-bottom: 1px solid var(--lp-border); display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 14px; color: var(--lp-ink-soft); }
.a-byline .a-authors { flex: 1 1 340px; color: var(--lp-ink); }
.a-langs { display: flex; gap: 6px; flex-wrap: wrap; }
.a-langs a, .a-langs span { padding: 5px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; text-decoration: none; border: 1px solid var(--lp-border); color: var(--lp-blue-deep); background: var(--lp-white); }
.a-langs a:hover { background: var(--lp-blue-pale); }
.a-langs span { background: var(--lp-blue); color: var(--lp-white); border-color: var(--lp-blue); }
.a-cover { max-width: 1100px; margin: 36px auto 0; }
.a-cover img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; background: var(--lp-white); border-radius: 22px; }

.a-body { padding-top: 36px; font-size: 18px; line-height: 1.8; color: var(--lp-ink); }
.a-body > * { margin: 0; }
.a-body > * + * { margin-top: 1.05em; }
.a-body h2 { font-family: 'Sora', 'Segoe UI', sans-serif; font-size: clamp(24px, 2.6vw, 31px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--lp-ink); margin-top: 1.9em; }
.a-body h3 { font-family: 'Sora', 'Segoe UI', sans-serif; font-size: 21px; color: var(--lp-ink); margin-top: 1.5em; }
.a-body p.series { color: var(--lp-orange-dark); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; display: flex; align-items: center; gap: 9px; }
.a-body p.series::before { content: ''; width: 26px; height: 3px; border-radius: 999px; background: var(--lp-orange); }
.a-body p.series em { font-style: normal; }
.a-body strong, .a-body b { color: var(--lp-ink); }
.a-body ul, .a-body ol { padding-left: 1.3em; }
.a-body li + li { margin-top: .4em; }
.a-body a { color: var(--lp-blue); text-underline-offset: 3px; }
.a-body blockquote, .a-body .callout { border-left: 4px solid var(--lp-orange); background: var(--lp-orange-pale); padding: 18px 24px; border-radius: 0 16px 16px 0; }
.a-body blockquote p { margin: 0; }
.a-body figure { margin-top: 2em; margin-bottom: 2em; }
.a-body figure img { display: block; margin: 0 auto; max-width: 100%; max-height: 560px; width: auto; height: auto; border-radius: 16px; }
.a-body figcaption { text-align: center; font-size: 14px; color: var(--lp-ink-soft); margin-top: 10px; }
.a-body img { max-width: 100%; height: auto; }
.a-body table { border-collapse: collapse; width: 100%; font-size: 16px; }
.a-body th, .a-body td { border: 1px solid var(--lp-border); padding: 8px 12px; text-align: left; }
.a-body .methods { display: grid; gap: 14px; }
.a-body .method { background: var(--lp-blue-pale); border: 1px solid var(--lp-border); border-radius: 16px; padding: 18px 22px; font-size: 16px; line-height: 1.7; }
.a-body .method b { color: var(--lp-blue-deep); }

.a-footer { padding: 34px 0 90px; }
.a-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 22px 0; margin-bottom: 18px; border-top: 1px solid var(--lp-border); }
.a-share .label { font-weight: 800; color: var(--lp-ink-soft); font-size: 13px; margin-right: 4px; }
.a-share-btn { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--lp-border); border-radius: 13px; background: var(--lp-white); color: var(--lp-blue-deep); font: 800 13px 'Manrope', 'Segoe UI', sans-serif; text-decoration: none; cursor: pointer; }
.a-share-btn:hover { background: var(--lp-blue-pale); }
.a-copied { color: #1e8e3e; font-weight: 800; font-size: 13px; display: none; }

/* ---------- buttons of the blog blocks (header .lp-nav-button variants are hidden on small screens) */
.b-btn { min-height: 44px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 13px; border: 1px solid transparent; font: 800 14px 'Manrope', 'Segoe UI', sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.b-btn.is-blue { background: var(--lp-blue); color: var(--lp-white); }
.b-btn.is-blue:hover { background: var(--lp-blue-deep); }
.b-btn.is-orange { background: var(--lp-orange); color: var(--lp-white); }
.b-btn.is-orange:hover { background: var(--lp-orange-dark); }
.b-btn.is-quiet { background: var(--lp-white); color: var(--lp-blue-deep); border-color: var(--lp-border); }
.b-btn.is-quiet:hover { background: var(--lp-blue-pale); }

/* ---------- subscribe box (list + article) */
.b-subscribe { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: 26px 30px; background: var(--lp-white); border: 1px solid var(--lp-border); border-radius: 22px; }
.b-subscribe-icon { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 16px; display: grid; place-items: center; background: var(--lp-orange-pale); color: var(--lp-orange-dark); font-size: 22px; }
.b-subscribe-text { flex: 1 1 320px; }
.b-subscribe-text h2 { margin: 0 0 6px; font-family: 'Sora', 'Segoe UI', sans-serif; font-size: 22px; color: var(--lp-ink); }
.b-subscribe-text p { margin: 0; color: var(--lp-ink-soft); line-height: 1.6; }
.b-subscribe-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- article: videos / images of attached Social Media materials */
.a-media { max-width: 800px; margin: 34px auto 0; display: grid; gap: 22px; }
.a-media-item { margin: 0; }
.a-media-item video { display: block; width: 100%; max-height: 640px; border-radius: 18px; background: #0b1f33; }
.a-media-item.is-video video { aspect-ratio: auto; }
.a-media-item img { display: block; max-width: 100%; max-height: 560px; margin: 0 auto; border-radius: 16px; }
.a-media-item figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--lp-ink-soft); }

/* ---------- article: lessons on the platform + try it */
.a-extra { max-width: 800px; margin: 44px auto 0; }
.a-platform { padding: 30px; background: var(--lp-blue-pale); border: 1px solid var(--lp-border); border-radius: 22px; }
.a-platform h2 { margin: 0 0 8px; font-family: 'Sora', 'Segoe UI', sans-serif; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; color: var(--lp-ink); }
.a-platform > p { margin: 0; color: var(--lp-ink-soft); line-height: 1.6; }
.a-lessons { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.a-lesson { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--lp-white); border: 1px solid var(--lp-border); border-radius: 16px; text-decoration: none; color: var(--lp-ink); transition: border-color .15s, box-shadow .15s; }
.a-lesson:hover { border-color: var(--lp-blue); box-shadow: var(--lp-shadow-soft); }
.a-lesson small { color: var(--lp-orange-dark); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.a-lesson strong { font-size: 16px; line-height: 1.35; }
.a-lesson span { margin-top: auto; color: var(--lp-blue); font-weight: 800; font-size: 13px; }
.a-try { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.a-try p { flex: 1 1 300px; margin: 0; color: var(--lp-ink); line-height: 1.6; }
.a-try-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.a-extra .b-subscribe { margin-top: 18px; }

@media (max-width: 900px) {
  .b-hero { padding: 54px 0 26px; }
  .b-list { padding: 30px 0 64px; }
  .a-page { padding: 32px 0 6px; }
  .a-body { font-size: 17px; }
  .a-cover { margin-top: 26px; }
  .a-cover img, .lp-blog-card { border-radius: 18px; }
  .a-footer { padding-bottom: 60px; }
}
@media (max-width: 680px) {
  .a-share .label { width: 100%; }
  .a-share-btn { flex: 1 1 calc(50% - 10px); justify-content: center; }
  .a-platform, .b-subscribe { padding: 22px 18px; }
  .a-try-actions, .b-subscribe-actions { width: 100%; }
  .a-try-actions .b-btn, .b-subscribe-actions .b-btn { flex: 1 1 calc(50% - 10px); }
}
