/* =====================================================================
 * Brightmore — Custom Single-Article design (new template)
 * Loaded via mu-plugin · delete files to revert.
 * ===================================================================== */

:root {
  --bma-ink:        #1e293b;
  --bma-ink-soft:   #475569;
  --bma-muted:      #94a3b8;
  --bma-line:       #e8ecf1;
  --bma-bg:         #ffffff;
  --bma-bg-soft:    #f6f8fb;
  --bma-accent:     #f47424;
  --bma-accent-2:   #f9a93f;
  --bma-teal:       #0c343b;
  --bma-ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

.bm-article-wrap { background: var(--bma-bg); overflow: hidden; }
.bm-article { color: var(--bma-ink); }

/* ---------- HERO ---------- */
.bm-article-hero {
  position: relative;
  padding: 140px 20px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% -10%, rgba(249,154,35,0.10), transparent 55%),
    var(--bma-bg-soft);
}
.bm-article-hero-inner { max-width: 820px; margin: 0 auto; padding-bottom: 34px; }

.bm-article-cat {
  display: inline-block; margin-bottom: 22px;
  padding: 7px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--bma-accent-2), var(--bma-accent));
  color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  text-decoration: none; box-shadow: 0 6px 16px -6px rgba(244,116,36,0.6);
  transition: transform 0.2s var(--bma-ease);
}
.bm-article-cat:hover { transform: translateY(-1px); }

.bm-article-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.18; font-weight: 800; color: var(--bma-ink);
  margin: 0 0 20px; letter-spacing: -0.5px;
}
.bm-article-meta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--bma-muted); font-size: 14.5px; font-weight: 500;
}
.bm-article-meta .bm-dot { opacity: 0.6; }

/* cover image (or branded fallback band) */
.bm-article-cover {
  max-width: 1040px; margin: 0 auto; transform: translateY(40px);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(15,23,42,0.45);
  line-height: 0;
}
.bm-article-cover img { width: 100%; height: auto; display: block; object-fit: cover; }
.bm-article-cover.bm-no-img {
  height: 200px;
  background:
    radial-gradient(circle at 82% 0%, rgba(249,154,35,0.30), transparent 46%),
    radial-gradient(circle at 12% 120%, rgba(0,84,97,0.45), transparent 50%),
    linear-gradient(135deg, var(--bma-teal) 0%, #0b1418 72%);
}

/* ---------- BODY ---------- */
.bm-article-body {
  max-width: 760px; margin: 0 auto;
  padding: 84px 22px 20px;
}
.bm-article-content {
  font-size: 18px; line-height: 1.9; color: #334155;
}
.bm-article-content > * { margin-bottom: 1.35em; }
.bm-article-content h2 { font-size: 1.7rem; font-weight: 800; color: var(--bma-ink); margin: 1.7em 0 0.6em; line-height: 1.3; }
.bm-article-content h3 { font-size: 1.35rem; font-weight: 700; color: var(--bma-ink); margin: 1.5em 0 0.5em; }
.bm-article-content a { color: var(--bma-accent); text-decoration: underline; text-underline-offset: 3px; }
.bm-article-content strong { color: var(--bma-ink); }
.bm-article-content img { border-radius: 16px; max-width: 100%; height: auto; }
.bm-article-content blockquote {
  margin: 1.6em 0; padding: 18px 24px; border-radius: 14px;
  background: var(--bma-bg-soft); border-inline-start: 4px solid var(--bma-accent);
  font-size: 1.1rem; color: var(--bma-ink-soft); font-style: italic;
}
.bm-article-content code {
  background: var(--bma-bg-soft); padding: 2px 7px; border-radius: 6px;
  font-size: 0.92em; color: var(--bma-teal);
}
.bm-article-content ul, .bm-article-content ol { padding-inline-start: 1.4em; }
.bm-article-content li { margin-bottom: 0.5em; }

/* tags */
.bm-article-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 40px; }
.bm-article-tags a {
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(244,116,36,0.10); color: var(--bma-accent) !important;
  text-decoration: none; transition: background 0.2s var(--bma-ease);
}
.bm-article-tags a:hover { background: rgba(244,116,36,0.18); }

/* share */
.bm-article-share {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--bma-line);
}
.bm-share-label { font-weight: 700; color: var(--bma-ink); font-size: 15px; margin-inline-end: 4px; }
.bm-share-btn {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bma-bg-soft); border: 1px solid var(--bma-line);
  color: var(--bma-ink-soft); transition: all 0.22s var(--bma-ease);
}
.bm-share-btn:hover {
  color: #fff; transform: translateY(-2px);
  background: linear-gradient(135deg, var(--bma-accent-2), var(--bma-accent));
  border-color: transparent; box-shadow: 0 8px 18px -6px rgba(244,116,36,0.6);
}
.bm-share-btn svg { width: 18px; height: 18px; }

/* ---------- RELATED ---------- */
.bm-related {
  margin-top: 70px; padding: 64px 22px 80px;
  background: var(--bma-bg-soft); border-top: 1px solid var(--bma-line);
}
.bm-related-title {
  text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
  color: var(--bma-ink); margin: 0 0 40px;
}
.bm-related-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.bm-related-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--bma-line); text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform 0.28s var(--bma-ease), box-shadow 0.28s var(--bma-ease);
}
.bm-related-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -20px rgba(15,23,42,0.4); }
.bm-related-thumb { aspect-ratio: 16/10; line-height: 0; background:
  linear-gradient(135deg, var(--bma-teal), #0b1418); }
.bm-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-related-info { padding: 18px 18px 20px; }
.bm-related-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--bma-ink); line-height: 1.4; margin: 0 0 10px; }
.bm-related-info span { font-size: 13px; color: var(--bma-muted); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .bm-related-grid { grid-template-columns: 1fr; max-width: 440px; }
  .bm-article-cover { transform: translateY(28px); border-radius: 16px; }
  .bm-article-body { padding-top: 60px; }
}
@media (max-width: 600px) {
  .bm-article-hero { padding-top: 110px; }
  .bm-article-content { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-related-card, .bm-share-btn, .bm-article-cat { transition: none !important; }
}

/* ---------- Full-width layout for our custom single posts ----------
 * Kill Astra's sidebar + container constraint so the article spans full width
 * and the hero background is full-bleed. */
.single-post #secondary { display: none !important; }
.single-post #primary {
  width: 100% !important; max-width: 100% !important;
  flex: 1 1 100% !important; padding: 0 !important; margin: 0 !important;
}
.single-post #content .ast-container {
  max-width: 100% !important; padding: 0 !important; display: block !important;
}
.single-post #content { padding-top: 0 !important; }

/* tighter spacing when the article has no cover image */
.bm-article-hero:not(:has(.bm-article-cover)) { padding-bottom: 8px; }
.bm-article-hero:not(:has(.bm-article-cover)) + .bm-article-body { padding-top: 46px; }
