:root {
  --navy: #0a1f44;
  --navy-light: #15315f;
  --ink: #1a1a1a;
  --ink-secondary: #555;
  --muted: #888;
  --line: #ddd;
  --bg: #fff;
  --bg-nav: #fafafa;
  --maxw: 1100px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Site header (matches main Meridian site) ──────────────────────── */
.site-header {
  background: var(--navy);
  color: #fff;
}
.site-header .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  flex-wrap: wrap;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.005em;
}
.brand .tick { color: #c9a227; }
.brand-tagline {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}
.site-nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.site-nav a {
  color: #cdd5e1;
  text-decoration: none;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 3px;
}
.site-nav a:hover { color: #fff; background: var(--navy-light); }
.site-nav a.active { color: #fff; border-bottom: 2px solid #c9a227; border-radius: 0; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; order: 2; }
  .site-nav { display: none; width: 100%; order: 3; flex-direction: column; padding: 8px 0; }
  .site-nav.open { display: flex; }
}

/* ── Masthead ──────────────────────────────────────────────────────── */
.mb-masthead {
  text-align: center;
  padding: 14px 16px 10px;
  border-bottom: 2px solid var(--ink);
}
.mb-masthead h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}
.mb-masthead .mb-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Sticky section nav ────────────────────────────────────────────── */
.mb-section-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.mb-section-nav.stuck {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mb-section-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0;
}
.mb-section-nav li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.mb-section-nav li a:hover {
  color: var(--ink);
  text-decoration: none;
}
.mb-section-nav li a.active {
  color: var(--ink);
  border-bottom-color: var(--navy);
}

/* ── Content container ─────────────────────────────────────────────── */
.mb-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* ── Lead article ──────────────────────────────────────────────────── */
.mb-lead {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.mb-lead .mb-section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}
.mb-lead h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}
.mb-lead h2 a { color: var(--ink); }
.mb-lead h2 a:hover { text-decoration: underline; }
.mb-lead .mb-dek {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.mb-lead .mb-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ── Section cluster (homepage) ────────────────────────────────────── */
.mb-cluster {
  margin-bottom: 40px;
}
.mb-cluster-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}
.mb-cluster-header h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.mb-cluster-header a {
  font-size: 13px;
  color: var(--navy-light);
  white-space: nowrap;
}

/* ── Article tile grid ─────────────────────────────────────────────── */
.mb-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .mb-tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mb-tile-grid { grid-template-columns: 1fr; }
}

.mb-tile {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.mb-tile h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.mb-tile h4 a { color: var(--ink); }
.mb-tile h4 a:hover { text-decoration: underline; }
.mb-tile .mb-dek {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-bottom: 6px;
}
.mb-tile .mb-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ── Empty / placeholder ───────────────────────────────────────────── */
.mb-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: 4px;
}

/* ── Section page (simpler list layout) ────────────────────────────── */
.mb-section-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-top: 16px;
}
.mb-section-subtitle {
  font-size: 15px;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.mb-list-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.mb-list-item h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.mb-list-item h3 a { color: var(--ink); }
.mb-list-item h3 a:hover { text-decoration: underline; }
.mb-list-item .mb-dek {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}
.mb-list-item .mb-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ── Industries hub ────────────────────────────────────────────────── */
.mb-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .mb-industry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mb-industry-grid { grid-template-columns: 1fr; }
}
.mb-industry-block h4 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.mb-industry-block h4 a { color: var(--ink); }
.mb-industry-block ul {
  list-style: none;
  padding: 0;
}
.mb-industry-block li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.mb-industry-block li a {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}

/* ── Footer ────────────────────────────────────────────────────────── */
.mb-footer {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 2px solid var(--ink);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
