/*
Theme Name: MLR News
Template: blocksy
Description: Massachusetts Legal Resources news design — Blocksy child theme. Print-derived chrome, court-badge kickers, serif reading typography, CLS-safe reserved ad slots.
Version: 1.0
*/

:root {
  --mlr-ink: #1a1d24;
  --mlr-ink-soft: #4c5058;
  --mlr-ink-faint: #82868e;
  --mlr-rule: #e2e0da;
  --mlr-rule-dark: #1a1d24;
  --mlr-crimson: #8c1c2c;
  --mlr-navy: #1a3a5c;
  --mlr-bronze: #6b5d3f;
  --mlr-green: #2e5e42;
  --mlr-bg: #ffffff;
  --mlr-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mlr-sans: "Public Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}

body {
  font-family: var(--mlr-sans);
  color: var(--mlr-ink);
  background: var(--mlr-bg);
}

/* ---------- Headlines: serif everywhere ---------- */
h1, h2, h3, .entry-title, .page-title, .ct-post-title {
  font-family: var(--mlr-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.entry-card .entry-title { line-height: 1.25; }
.entry-card .entry-title a { color: var(--mlr-ink); }
.entry-card .entry-title a:hover { color: var(--mlr-crimson); }

/* ---------- Reading typography for opinions/briefs ---------- */
.single .entry-content {
  font-family: var(--mlr-serif);
  font-size: 18px;
  line-height: 1.72;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.single .entry-content p { margin-bottom: 1.1em; }

/* ---------- Court badges (category pills) ---------- */
.ct-post-meta a[href*="/category/"],
.entry-meta a[href*="/category/"],
a.ct-term-item {
  font-family: var(--mlr-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent !important;
  color: var(--mlr-bronze);
}
a[href*="/category/sjc-opinions"]   { color: var(--mlr-crimson) !important; }
a[href*="/category/appeals-court"]  { color: var(--mlr-navy) !important; }
a[href*="/category/superior-court"] { color: var(--mlr-bronze) !important; }
a[href*="/category/case-briefs"]    { color: var(--mlr-green) !important; }
a[href*="/category/legal-news"],
a[href*="/category/court-opinions"] { color: var(--mlr-ink-soft) !important; }

/* ---------- Metadata line ---------- */
.entry-meta, .ct-post-meta {
  font-family: var(--mlr-sans);
  font-size: 12.5px;
  color: var(--mlr-ink-faint);
}

/* ---------- Print chrome: flat, ruled ---------- */
.entry-card { border-radius: 0; box-shadow: none; }
[data-cards="boxed"] .entry-card { border: none; border-bottom: 1px solid var(--mlr-rule); }
.site-main { --card-radius: 0; }

/* Homepage section headers (used in block homepage via group class) */
.mlr-section-head {
  font-family: var(--mlr-sans) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mlr-ink);
  border-bottom: 3px solid var(--mlr-rule-dark);
  padding-bottom: 6px;
  margin-bottom: 18px !important;
}
.mlr-section-head a { text-decoration: none; color: inherit; }

/* Lead story treatment on homepage */
.mlr-lead .entry-title, .mlr-lead h3 { font-size: clamp(26px, 4vw, 38px) !important; line-height: 1.18 !important; }
.mlr-lead p { font-family: var(--mlr-serif); font-size: 17px; color: var(--mlr-ink-soft); }

/* Dense headline river */
.mlr-river .wp-block-post { border-bottom: 1px solid var(--mlr-rule); padding: 10px 0; margin: 0 !important; }
.mlr-river .wp-block-post-title { font-size: 17px !important; margin: 2px 0 !important; line-height: 1.35 !important; }
.mlr-river .wp-block-post-title a { text-decoration: none; color: var(--mlr-ink); }
.mlr-river .wp-block-post-title a:hover { color: var(--mlr-crimson); }
.mlr-river .wp-block-post-date { font-size: 12px; color: var(--mlr-ink-faint); }
.mlr-river .taxonomy-category { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.mlr-river .taxonomy-category a { text-decoration: none; }

/* Homepage secondary cards */
.mlr-cards .wp-block-post-title { font-size: 20px !important; line-height: 1.3 !important; }
.mlr-cards .wp-block-post-title a { text-decoration: none; color: var(--mlr-ink); }
.mlr-cards .wp-block-post { border-bottom: 1px solid var(--mlr-rule); padding-bottom: 14px; }

/* ---------- Reserved ad slots (CLS-safe; empty pre-approval) ---------- */
.mlr-ad { display: none; text-align: center; margin: 26px auto; }
body.mlr-ads-on .mlr-ad { display: block; }
body.mlr-ads-on .mlr-ad::before {
  content: "Advertisement";
  display: block;
  font: 10px/2 var(--mlr-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.mlr-ad-leaderboard { min-height: 90px; }
.mlr-ad-rect { min-height: 280px; }
.mlr-ad-halfpage { min-height: 600px; width: 300px; }
@media (max-width: 767px) {
  .mlr-ad-leaderboard { min-height: 100px; }
  .mlr-ad-rect { min-height: 250px; }
  .mlr-ad-halfpage { display: none !important; }
}

/* ---------- Case metadata box (article pages / briefs) ---------- */
.mlr-casebox {
  border: 1px solid var(--mlr-rule);
  border-top: 3px solid var(--mlr-crimson);
  background: #faf9f7;
  padding: 16px 20px;
  margin: 22px auto;
  max-width: 720px;
  font-family: var(--mlr-sans);
  font-size: 14px;
}
.mlr-casebox strong { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; color: var(--mlr-ink-faint); display: block; }

/* Front page: no "Home" title, white ground */
.home .hero-section, .home h1.page-title { display: none; }
body, .site-main { background: var(--mlr-bg); }

/* Utility */
.mlr-hairline { border: none; border-top: 1px solid var(--mlr-rule); margin: 28px 0; }
