/* Meridian Dispatch - global public styles */
:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --surface-alt: #efefef;
  --text: #141414;
  --muted: #595959;
  --border: #dcdcdc;
  --accent: #b81d24;
  --accent-dark: #8f141a;
  --font-serif: "Newsreader", "Georgia", "Cambria", "Times New Roman", Times, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-w: 1240px;
}

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

html, body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; object-fit: cover; }

.utility-bar { background: #111111; color: #e5e5e5; font-size: 0.78rem; padding: 6px 16px; max-width: 100%; overflow: hidden; }
.utility-bar:has(> .utility-inner) { display: block; }
.utility-inner { max-width: var(--max-w); width: 100%; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; overflow: hidden; }
.utility-bar > span:last-child,
.utility-inner > .md-edition-date { justify-self: end; white-space: nowrap; text-align: right; }
.breaking-pill { display: inline-flex; align-items: center; gap: 8px; }
.breaking-tag { background: var(--accent); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 2px; font-size: 0.7rem; }

.masthead { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 100; }
.masthead-top { max-width: var(--max-w); margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; display: flex; flex-direction: column; gap: 2px; }
.brand-title { line-height: 1; }
.brand-subtitle { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); line-height: 1.2; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-input { padding: 7px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.88rem; width: 190px; transition: width 0.2s ease, border-color 0.2s ease; }
.search-input:focus { outline: none; border-color: var(--text); width: 240px; }
.btn { padding: 7px 14px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: background 0.15s ease, color 0.15s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: var(--surface); }

.nav-bar { border-top: 1px solid var(--surface-alt); background: var(--bg); }
.mdl-nav-bar-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; }
.nav-list { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; justify-content: flex-start; gap: 4px; overflow: visible; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-btn { background: none; border: none; border-bottom: 3px solid transparent; padding: 10px 12px; font-size: 0.9rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.nav-btn:hover, .nav-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.mdl-nav-more.is-open > .sub-menu { display: block; }
.mdl-nav-more > .sub-menu { right: 0; left: auto; }
.mdl-nav-more .sub-menu .sub-menu { right: 100%; left: auto; top: 0; }
.mdl-nav-hamburger { display: none; align-items: center; gap: 8px; background: none; border: none; padding: 10px 4px; font-size: 0.9rem; font-weight: 700; line-height: 1; color: var(--text); cursor: pointer; }
.mdl-hamburger-icon { display: inline-flex; align-items: center; justify-content: center; }
.mdl-hamburger-icon svg { display: block; }
.mdl-hamburger-label { line-height: 1; }
.mdl-nav-drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 999; }
.mdl-nav-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 85vw); background: #fff; z-index: 1000; transform: translateX(-100%); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s ease; display: flex; flex-direction: column; box-shadow: none; }
.mdl-nav-drawer.is-open { transform: translateX(0); visibility: visible; box-shadow: 4px 0 24px rgba(0,0,0,0.16); }
.mdl-nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 2px solid var(--text); }
.mdl-nav-drawer-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--text); }
.mdl-nav-drawer-close { background: none; border: 1px solid var(--border); border-radius: 4px; width: 34px; height: 34px; padding: 0; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; }
.mdl-nav-drawer-close:hover { background: var(--surface); border-color: var(--text); }
.mdl-nav-drawer-list { list-style: none; margin: 0; padding: 12px 0; overflow-y: auto; flex: 1; }
.mdl-nav-drawer-list li { border-bottom: 1px solid var(--surface-alt); }
.mdl-nav-drawer-list .nav-btn { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: none; text-align: left; white-space: normal; }
.mdl-drawer-row { display: flex; align-items: stretch; justify-content: space-between; }
.mdl-drawer-row > .nav-btn { flex: 1 1 auto; }
.mdl-drawer-acc-btn { flex: 0 0 44px; background: none; border: none; border-left: 1px solid var(--surface-alt); color: var(--muted); font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s ease, color 0.15s ease; }
.mdl-drawer-acc-btn:hover { color: var(--text); background: var(--surface); }
.mdl-nav-drawer-list li.is-open > .mdl-drawer-row > .mdl-drawer-acc-btn { transform: rotate(180deg); color: var(--accent); }
.mdl-nav-drawer-list .sub-menu { position: static !important; display: none; box-shadow: none; border: none; min-width: 0; width: 100%; padding: 0 0 6px 18px; background: var(--surface); }
.mdl-nav-drawer-list li.is-open > .sub-menu { display: block; }
.mdl-nav-drawer-list .sub-menu li { border-bottom: none; }
@media (max-width: 900px) {
  .nav-list { display: none; }
  .mdl-nav-hamburger { display: inline-flex; }
}

.container { max-width: var(--max-w); margin: 24px auto 48px; padding: 0 16px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr); gap: 32px; align-items: start; }

.lead-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.lead-card img { aspect-ratio: 16 / 10; border-radius: 4px; }
.kicker { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 6px; }
.lead-title { font-family: var(--font-serif); font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.2; margin-bottom: 10px; }
.lead-title a:hover { text-decoration: underline; }
.excerpt { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.meta { font-size: 0.78rem; color: var(--muted); }

.stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story-card { display: flex; flex-direction: column; border-bottom: 1px solid var(--surface-alt); padding-bottom: 16px; }
.story-card img { aspect-ratio: 16 / 10; border-radius: 4px; margin-bottom: 10px; }
.story-title { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.story-title a:hover { text-decoration: underline; }
.story-card .excerpt { font-size: 0.86rem; margin-bottom: 8px; flex: 1; }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 18px; }
.panel-title { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding-bottom: 10px; border-bottom: 2px solid var(--section-border, var(--text)); margin-bottom: 14px; }
.most-read-list { list-style: none; counter-reset: rank; }
.most-read-item { counter-increment: rank; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: start; }
.most-read-item:last-child { border-bottom: none; padding-bottom: 0; }
.most-read-item::before { content: counter(rank); font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.most-read-item a { font-weight: 700; font-size: 0.92rem; line-height: 1.35; display: block; }
.most-read-item a:hover { text-decoration: underline; }
.most-read-item span { font-size: 0.75rem; color: var(--muted); }

.newsletter-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.newsletter-form input { padding: 9px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.9rem; background: #fff; }
.status-msg { font-size: 0.82rem; color: var(--accent-dark); font-weight: 600; min-height: 1.2em; }
.empty-state { padding: 36px 16px; text-align: center; color: var(--muted); background: var(--surface); border-radius: 6px; display: none; }

footer { border-top: 2px solid var(--text); background: var(--surface); padding: 28px 16px; font-size: 0.85rem; color: var(--muted); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 900px) {
  .grid-main { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .utility-bar,
  .utility-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
    width: 100%;
  }
  .utility-bar:has(> .utility-inner) {
    display: block;
  }
  .utility-bar > span:last-child,
  .utility-inner > .md-edition-date {
    order: -1;
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
  .lead-card { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .masthead-top { flex-wrap: wrap; }
  .masthead-top .mdl-part-header-group { flex-direction: column; align-items: stretch; gap: 12px; }
  .masthead-top .header-actions,
  .masthead-top .md-search-form,
  .masthead-top .wp-block-search,
  .masthead-top .wp-block-search__inside-wrapper { width: 100%; flex: 1 1 100%; }
  .search-input,
  .search-input:focus,
  .masthead-top .wp-block-search__input { width: 100%; max-width: 100%; flex: 1 1 auto; }
}

/* Comments */
.comments-area { margin-top: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment .comment-author { font-weight: 600; font-size: 0.9rem; }
.comment .comment-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.comment .comment-content { color: var(--text); font-size: 0.95rem; line-height: 1.6; }
.comment-form { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.comment-form label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
  width: 100%;
  font-family: var(--font-sans);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--text); }
.comment-form .submit {
  align-self: flex-start;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border: none;
  transition: background 0.15s ease;
}
.comment-form .submit:hover { background: var(--accent-dark); }
.comment-reply-title { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 12px; }

/* Nav dropdowns & polish */
.nav-list { align-items: center; }
.nav-list > li { position: relative; }
.nav-list > li > a.nav-btn { display: inline-flex; align-items: center; gap: 4px; }
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 6px 0;
  z-index: 200;
  list-style: none;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu { display: block; }
.sub-menu li { position: relative; }
.sub-menu a.nav-btn {
  display: block;
  padding: 8px 16px;
  border-bottom: none;
  color: var(--text);
  font-size: 0.88rem;
  white-space: nowrap;
}
.sub-menu a.nav-btn:hover { background: var(--surface); color: var(--accent); }
.sub-menu .sub-menu { top: 0; left: 100%; }
.caret { font-size: 0.65rem; opacity: 0.6; }
.nav-btn.active { color: var(--text); border-bottom-color: var(--accent); }

/* Editorial Newsroom Enhancements */
.breaking-tag { display: inline-flex; align-items: center; gap: 6px; }
.md-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: md-pulse 1.6s ease-in-out infinite;
}
@keyframes md-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.md-ticker-link { font-weight: 600; color: #f5f5f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64vw; display: inline-block; vertical-align: bottom; }
.md-ticker-link:hover { text-decoration: underline; color: #fff; }
.md-edition-date { color: #b5b5b5; font-size: 0.74rem; letter-spacing: 0.03em; }

.masthead { border-bottom: 2px solid var(--nav-border, var(--border)); }
.brand { font-family: var(--font-serif); font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; }
.nav-bar { border-top: 1px solid #e5e5e5; }
.nav-btn { font-size: 0.86rem; letter-spacing: 0.02em; }

/* Archive / Search Header */
.md-archive-header {
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--text);
}
.md-archive-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}
.md-archive-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #111;
}
.md-archive-desc { margin-top: 8px; color: var(--muted); font-size: 0.95rem; max-width: 680px; }

/* Lead & Story Grid */
.md-lead-media { display: block; overflow: hidden; border-radius: 4px; }
.md-lead-media img, .md-story-thumb img { transition: transform 0.25s ease; }
.lead-card:hover .md-lead-media img,
.story-card:hover .md-story-thumb img { transform: scale(1.02); }
.md-story-thumb { display: block; overflow: hidden; border-radius: 4px; margin-bottom: 10px; }
.md-fallback-logo { object-fit: contain; background: var(--surface); padding: 14px; }
.story-card img { margin-bottom: 0; }
.lead-title { font-size: clamp(1.6rem, 2.7vw, 2.25rem); line-height: 1.15; }
.story-title { font-size: 1.16rem; line-height: 1.28; }

.md-section-bar {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--section-border, var(--text));
}
.md-section-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.md-section-label::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--accent);
  display: inline-block;
}

/* Pagination */
.navigation.pagination { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.navigation.pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
}
.navigation.pagination .page-numbers:hover { border-color: var(--text); background: var(--surface); }
.navigation.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Sidebar The Wire */
.md-wire-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.md-wire-item { padding-bottom: 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.md-wire-item:last-child { border-bottom: none; padding-bottom: 0; }
.md-wire-time { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.md-wire-item a { font-weight: 700; font-size: 0.9rem; line-height: 1.35; }
.md-wire-item a:hover { text-decoration: underline; }
.md-newsletter-panel { background: #141414; color: #f5f5f5; border-color: #141414; }
.md-newsletter-panel .panel-title { color: #fff; border-bottom-color: var(--accent); }
.md-newsletter-panel .excerpt { color: #cfcfcf; }
.md-newsletter-panel .status-msg { color: #fca5a5; }

/* Single Post & Page Editorial View */
.md-article-header { margin-bottom: 22px; }
.md-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.md-breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.md-breadcrumb-sep { color: var(--border); }
.md-category-badge { background: rgba(184, 29, 36, 0.1); color: var(--accent); padding: 2px 9px; border-radius: 3px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.md-category-badge:hover { background: var(--accent); color: #fff; text-decoration: none; }
.md-article-title { font-family: var(--font-serif), "Noto Sans Devanagari"; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; color: #111; margin-bottom: 12px; }
.md-article-deck { font-size: 1.08rem; line-height: 1.55; color: #444; margin-bottom: 16px; }

.md-meta-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-top: 1px solid #e2e2e2; border-bottom: 1px solid #e2e2e2; }
.md-author-box { display: flex; align-items: center; gap: 10px; }
.md-author-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); flex: 0 0 42px; }
.md-author-details { display: flex; flex-direction: column; gap: 2px; }
.md-author-name { font-size: 0.9rem; font-weight: 700; color: #111; }
.md-publish-meta { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.md-share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.md-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #fff; font-size: 0.78rem; font-weight: 700; color: #333; transition: all 0.15s ease; }
.md-share-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.md-share-x:hover { background: #111; color: #fff; border-color: #111; }
.md-share-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.md-comment-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.78rem; font-weight: 600; }
.md-comment-pill:hover { border-color: var(--accent); color: var(--accent); }

.md-featured-media { margin: 0 0 24px; }
.md-featured-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }
.md-featured-caption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }

.md-article-body { font-family: var(--font-sans), "Noto Sans Devanagari"; font-size: 1.06rem; line-height: 1.8; color: #1f2937; }
.md-article-body > * + * { margin-top: 18px; }
.md-article-body > p:first-of-type::first-letter { float: left; font-family: var(--font-serif); font-size: 3.4rem; line-height: 0.86; font-weight: 700; padding: 4px 10px 0 0; color: var(--accent); }
.md-article-body h2, .md-article-body h3 { font-family: var(--font-serif); line-height: 1.25; margin-top: 28px; color: #111; }
.md-article-body blockquote { background: var(--surface); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 6px 6px 0; color: #222; font-style: italic; }
.md-article-body a { color: var(--accent); text-decoration: underline; }

.md-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 16px; border-top: 1px solid #e5e5e5; }
.md-tags-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.md-tag-pill { padding: 4px 10px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); font-size: 0.8rem; font-weight: 600; }
.md-tag-pill:hover { border-color: var(--accent); color: var(--accent); }

.md-related-section { margin-top: 34px; padding-top: 24px; border-top: 2px solid var(--text); }
.md-section-heading { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.md-section-heading::before { content: ""; width: 4px; height: 18px; background: var(--accent); border-radius: 2px; }

.md-page-header { padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid var(--text); }

/* 404 */
.md-404-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 32px; }
.md-404-search { display: flex; gap: 10px; margin: 18px 0; max-width: 480px; }
.md-404-search .search-input { flex: 1; width: auto; background: #fff; }
.md-404-links { margin-top: 12px; }

/* Multi-column Newspaper Footer */
.md-site-footer { border-top: 3px solid var(--text); background: #141414; color: #d4d4d4; padding: 38px 0 24px; }
.md-footer-wrap { display: block; max-width: none; margin: 0 auto; padding: 0 8%; }
.md-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid #2b2b2b; }
.md-footer-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.md-footer-socials { font-size: 0.82rem; font-weight: 600; color: #cfcfcf; }
.md-footer-socials a:hover { color: #fff; text-decoration: underline; }
.md-footer-logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: #fff; display: inline-block; margin-bottom: 8px; }
.md-footer-desc { font-size: 0.86rem; color: #a3a3a3; line-height: 1.55; max-width: 360px; }
.md-footer-heading { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 12px; }
.md-footer-list { display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; }
.md-footer-list a { color: #bdbdbd; }
.md-footer-list a:hover { color: #fff; text-decoration: underline; }
.md-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 18px; font-size: 0.78rem; color: #8c8c8c; }

@media (max-width: 768px) {
  .md-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .md-404-search { flex-direction: column; }
}

/* Meridian Parts Header & Footer Parity */
.masthead-top .mdl-part-header-group {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.masthead-top .mdl-part-header-group > .wp-block-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.masthead-top .wp-block-site-logo img {
  width: 48px;
  height: auto;
  display: block;
}
.masthead-top .wp-block-site-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.masthead-top .wp-block-site-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2px 0 0;
}
.masthead-top .wp-block-search__input {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.88rem;
}

.mdl-site-footer {
  border-top: 3px solid var(--section-border, var(--text));
  background: var(--surface);
  padding: 40px 0 24px;
  color: var(--text);
}
.footer-inner.mdl-footer-inner {
  display: block;
  max-width: none;
  margin: 0 auto;
  padding: 0 8%;
}
.mdl-footer-template { width: 100%; }
.mdl-footer-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.mdl-footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.mdl-footer-col-list,
.mdl-footer-col-list .wp-block-navigation__container {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.mdl-footer-col-list li { font-size: 0.85rem; line-height: 1.4; }
.mdl-footer-col-list a { color: var(--muted); transition: color 0.15s ease; }
.mdl-footer-col-list a:hover { color: var(--accent); text-decoration: underline; }
.mdl-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.mdl-footer-logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.mdl-footer-editorial-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.mdl-footer-socials {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.mdl-footer-socials a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 960px) {
  .mdl-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mdl-footer-cols { grid-template-columns: 1fr; }
}
