/* brokenmedics.com — standalone styling, resembling the original WP Newspaper theme.
   Dark masthead, red accent, serif headlines, magazine post grid. */
:root{
  --bm-ink:#16181c; --bm-paper:#fff; --bm-bg:#f4f5f7;
  --bm-accent:#c8102e; --bm-muted:#6b7280; --bm-line:#e5e7eb;
  --bm-wrap:1180px;
}
*{box-sizing:border-box}
html,body{margin:0}
body{
  background:var(--bm-bg); color:var(--bm-ink);
  font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}

/* Masthead */
.bm-hdr{background:var(--bm-ink);color:#fff}
.bm-hdr-in{max-width:var(--bm-wrap);margin:0 auto;padding:22px 20px 16px;text-align:center}
.bm-brand{display:inline-block;font-weight:800;letter-spacing:.04em;font-size:34px;line-height:1}
.bm-brand-1{color:#fff}
.bm-brand-2{color:var(--bm-accent)}
.bm-tagline{margin-top:8px;color:#aab1bd;font-size:13px;text-transform:uppercase;letter-spacing:.18em}
.bm-nav{border-top:1px solid #2a2e35;background:#1d2024}
.bm-nav-in{max-width:var(--bm-wrap);margin:0 auto;padding:0 12px;display:flex;flex-wrap:wrap;justify-content:center}
.bm-nav-in a{padding:12px 16px;color:#d6dae0;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.08em}
.bm-nav-in a:hover{color:#fff;background:var(--bm-accent)}

/* Main */
.bm-main{max-width:var(--bm-wrap);margin:0 auto;padding:28px 20px 48px}
.bm-kicker{display:inline-block;background:var(--bm-accent);color:#fff;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;padding:3px 8px;margin-bottom:10px}

/* Lead story */
.bm-lead{background:var(--bm-paper);border:1px solid var(--bm-line);margin-bottom:26px}
.bm-lead-link{display:grid;grid-template-columns:1.4fr 1fr;align-items:stretch}
.bm-lead-img img{width:100%;height:100%;object-fit:cover;min-height:280px}
.bm-lead-body{padding:30px 32px;align-self:center}
.bm-lead-h{font-family:Georgia,"Times New Roman",serif;font-size:32px;line-height:1.15;margin:.1em 0 .35em}
.bm-lead-x{color:var(--bm-muted);font-size:16px;margin:0}
.bm-lead-link:hover .bm-lead-h{color:var(--bm-accent)}

/* Post grid */
.bm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.bm-card{background:var(--bm-paper);border:1px solid var(--bm-line);overflow:hidden}
.bm-card-img img{width:100%;height:180px;object-fit:cover}
.bm-card h2,.bm-card p,.bm-card .bm-card-date{padding:0 16px}
.bm-card-h{font-family:Georgia,serif;font-size:19px;line-height:1.25;margin:14px 0 8px}
.bm-card-x{color:var(--bm-muted);font-size:14px;margin:0 0 12px}
.bm-card-date{display:block;color:#9aa1ab;font-size:12px;text-transform:uppercase;letter-spacing:.06em;padding-bottom:16px}
.bm-card:hover .bm-card-h{color:var(--bm-accent)}

/* Article / page */
.bm-article{background:var(--bm-paper);border:1px solid var(--bm-line);max-width:820px;margin:0 auto;padding:38px 46px}
.bm-article-h{font-family:Georgia,serif;font-size:36px;line-height:1.15;margin:.1em 0 .25em}
.bm-article-meta{color:var(--bm-muted);font-size:13px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.bm-article-img{margin:22px 0}
.bm-article-body{font-size:17px;line-height:1.75}
.bm-article-body p{margin:0 0 1.1em}
.bm-article-body img{margin:1.2em 0}
.bm-article-body h2,.bm-article-body h3{font-family:Georgia,serif;line-height:1.25}
.bm-article-body a{color:var(--bm-accent);text-decoration:underline}
/* Media embeds must stay inside the article column — migrated WP videos carry
   their own intrinsic size and otherwise overflow the page (#899). */
.bm-article-body video,
.bm-article-body iframe,
.bm-article-body embed,
.bm-article-body object{display:block;max-width:100%;margin:1.4em auto}
.bm-article-body video{width:100%;height:auto;background:#000;border-radius:4px}
.bm-article-body figure{margin:1.4em 0;max-width:100%}
.bm-article-body figure.wp-block-video{margin:1.6em 0}
.bm-article-body figure img,
.bm-article-body figure video{width:100%;height:auto}
.bm-article-body figcaption{font-size:13px;color:var(--bm-muted);text-align:center;margin-top:6px}
/* Responsive 16:9 for any embedded video iframe (YouTube/Vimeo). */
.bm-article-body .wp-block-embed iframe,
.bm-article-body iframe[src*="youtube"],
.bm-article-body iframe[src*="vimeo"]{width:100%;aspect-ratio:16/9;height:auto}
.bm-article-ft{margin-top:30px;padding-top:18px;border-top:1px solid var(--bm-line)}
.bm-back{color:var(--bm-accent);font-weight:600}

/* Messages */
.bm-msg{background:var(--bm-paper);border:1px solid var(--bm-line);padding:48px;text-align:center}
.bm-msg a{color:var(--bm-accent);font-weight:600}

/* Footer */
.bm-ftr{background:var(--bm-ink);color:#cfd4db;margin-top:40px}
.bm-ftr-in{max-width:var(--bm-wrap);margin:0 auto;padding:36px 20px;text-align:center}
.bm-ftr-brand{font-weight:800;font-size:20px;letter-spacing:.04em;color:#fff}
.bm-ftr-tag{color:#8b929c;font-size:12px;text-transform:uppercase;letter-spacing:.16em;margin-top:6px}
.bm-ftr-nav{margin:18px 0;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 0}
.bm-ftr-nav a{padding:6px 14px;font-size:13px;color:#cfd4db}
.bm-ftr-nav a:hover{color:#fff}
.bm-ftr-legal{color:#6b7280;font-size:12px;margin-top:10px}

/* Responsive */
@media(max-width:900px){
  .bm-grid{grid-template-columns:repeat(2,1fr)}
  .bm-lead-link{grid-template-columns:1fr}
  .bm-lead-img img{min-height:220px}
}
@media(max-width:560px){
  .bm-grid{grid-template-columns:1fr}
  .bm-brand{font-size:26px}
  .bm-article{padding:26px 20px}
  .bm-article-h{font-size:28px}
}
