/* The MOG Blog — editorial layer on top of site tokens */

.blog-page {
  --blog-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --blog-sans: 'Inter', system-ui, sans-serif;
  --blog-ink: #0f172a;
  --blog-muted: #64748b;
  --blog-rule: rgba(148, 163, 184, 0.35);
  --blog-accent: var(--primary-color, #1e40af);
}

.blog-page main {
  font-family: var(--blog-sans);
}

/* Masthead lives inside <main>; override global site header { position:sticky } for this element */
.blog-page main > header.blog-masthead {
  position: static;
  top: auto;
  z-index: auto;
  background: transparent;
  box-shadow: none;
  border-bottom: none;
}

.blog-masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 0 2.5rem;
  border-bottom: 3px double var(--blog-rule);
  margin-bottom: 2.5rem;
}

.blog-masthead .blog-masthead-kicker {
  font-family: var(--blog-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  text-align: center;
  width: 100%;
  max-width: 36rem;
}

.blog-masthead h1 {
  font-family: var(--blog-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-color);
  margin: 0 0 0.65rem;
  line-height: 1.1;
  text-align: center;
  width: 100%;
}

.blog-masthead .blog-masthead-subtitle {
  font-family: var(--blog-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 0;
  text-align: center;
  width: 100%;
  max-width: 36rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.blog-main-col {
  min-width: 0;
}

.blog-featured {
  background: var(--bg-alt);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 3rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-featured:hover {
  box-shadow: var(--shadow-lg);
}

.blog-featured a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-featured-image {
  aspect-ratio: 21 / 9;
  background: var(--bg-soft);
  overflow: hidden;
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-featured-body {
  padding: 1.75rem 2rem 2rem;
}

.blog-featured-body h2 {
  font-family: var(--blog-serif);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary-light);
  margin-right: 0.5rem;
}

.blog-excerpt {
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.btn-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: var(--blog-accent);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-blog:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-blog-ghost {
  background: transparent;
  color: var(--primary-light) !important;
  border: 1px solid var(--border-color);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* “Recent Issues” lead story — newspaper-style column layout */
.blog-newspaper-article {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-top: 4px double var(--blog-ink);
  border-radius: 0;
  padding: 0;
  margin-bottom: 2rem;
  max-width: 100%;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.blog-newspaper-mast {
  padding: 1.35rem 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--blog-rule);
  background: var(--bg-alt);
}

@media (max-width: 600px) {
  .blog-newspaper-mast {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.blog-newspaper-kicker {
  font-family: var(--blog-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.12;
  color: var(--blog-ink);
  margin: 0 0 0.5rem;
}

.blog-newspaper-headline {
  font-family: var(--blog-serif);
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text-color);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.blog-newspaper-rule {
  height: 1px;
  background: var(--blog-ink);
  max-width: 12rem;
  margin: 0 auto 1rem;
  opacity: 0.85;
}

.blog-newspaper-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-family: var(--blog-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blog-muted);
}

.blog-newspaper-byline,
.blog-newspaper-dateline {
  color: var(--blog-muted);
}

.blog-newspaper-tag {
  margin-left: 0.25rem;
}

.blog-newspaper-tag .blog-badge {
  font-size: 0.68rem;
  vertical-align: middle;
}

.blog-newspaper-inner {
  padding: 1.5rem 1.5rem 1.35rem;
}

.blog-newspaper-inner::after {
  content: '';
  display: table;
  clear: both;
}

.blog-newspaper-figure {
  float: left;
  width: 42%;
  max-width: 380px;
  min-width: 200px;
  margin: 0.2rem 1.35rem 0.85rem 0;
  border: 1px solid var(--blog-rule);
  background: var(--bg-soft);
}

@media (max-width: 700px) {
  .blog-newspaper-figure {
    float: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 0 1.25rem;
  }
}

.blog-newspaper-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-newspaper-figure figcaption {
  font-family: var(--blog-sans);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--blog-muted);
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--blog-rule);
  font-style: italic;
}

.blog-newspaper-body {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text-color);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.blog-newspaper-body p {
  margin: 0 0 1.05rem;
}

.blog-newspaper-body p:last-child {
  margin-bottom: 0;
}

.blog-newspaper-lead {
  font-weight: 500;
}

.blog-newspaper-body .drop-cap::first-letter {
  float: left;
  font-family: var(--blog-serif);
  font-size: 3.25rem;
  line-height: 0.85;
  padding-right: 0.45rem;
  padding-top: 0.12rem;
  font-weight: 700;
  color: var(--blog-ink);
}

.blog-newspaper-sources {
  padding: 1.15rem 1.5rem 1.35rem;
  border-top: 3px double var(--blog-rule);
  background: rgba(148, 163, 184, 0.08);
}

.blog-newspaper-sources-title {
  font-family: var(--blog-serif);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--blog-ink);
  letter-spacing: 0.02em;
}

.blog-newspaper-sources-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-light);
}

.blog-newspaper-sources-list li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}

.blog-newspaper-sources-list li:last-child {
  margin-bottom: 0;
}

.blog-newspaper-sources-list a {
  color: var(--blog-accent, #1e40af);
  font-weight: 600;
}

.blog-card {
  background: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body h3 {
  font-family: var(--blog-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.blog-card-body .read-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary-light);
  font-size: 0.9rem;
}

.blog-sidebar-block {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-sidebar-block h3 {
  font-family: var(--blog-serif);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.blog-sidebar-block label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-light);
}

.blog-sidebar-block input,
.blog-sidebar-block textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  margin-bottom: 0.75rem;
}

.blog-sidebar-block textarea {
  min-height: 100px;
  resize: vertical;
}

.blog-form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.blog-alert-success {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  font-weight: 500;
  margin-top: 0.75rem;
  display: none;
}

.blog-alert-success.is-visible {
  display: block;
}

.blog-alert-error {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  font-weight: 500;
  margin-top: 0.75rem;
  display: none;
}

.blog-alert-error .blog-form-mailto-fallback {
  color: var(--primary-color, #2563eb);
  font-weight: 600;
  text-decoration: underline;
}

.blog-alert-error.is-visible {
  display: block;
}

.blog-section-title {
  font-family: var(--blog-serif);
  font-size: 1.75rem;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blog-rule);
  color: var(--text-color);
}

.blog-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.reader-voices {
  margin-top: 2rem;
}

.reader-voice-card {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary-color);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
}

.reader-voice-card .by {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.reader-voice-card .msg {
  color: var(--text-light);
  line-height: 1.7;
  font-style: italic;
}

/* Single post */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
}

.blog-article-cover {
  aspect-ratio: 2 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--bg-alt);
}

.blog-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-article-head {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.blog-article-head .blog-badge {
  margin-bottom: 0.85rem;
}

.blog-article h1 {
  font-family: var(--blog-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--text-color);
  margin: 0 auto 1rem;
  text-align: center;
}

.blog-article-head .blog-meta {
  justify-content: center;
  text-align: center;
}

.blog-citations {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--blog-rule);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.blog-citations-title {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.blog-citations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-citations li {
  margin-bottom: 0.4rem;
}

.blog-citations a {
  color: var(--primary-light);
  word-break: break-all;
}

.blog-article .prose {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-light);
  max-width: 48rem;
  margin: 0 auto;
}

.blog-article .prose p {
  margin-bottom: 1.25rem;
}

.blog-article .prose h2,
.blog-article .prose h3 {
  font-family: var(--blog-serif);
  color: var(--text-color);
  margin-top: 2rem;
}

.blog-article .prose ul,
.blog-article .prose ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.blog-article .prose a {
  color: var(--primary-light);
}

.blog-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 2.5rem 0;
  padding: 1.25rem;
  background: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.blog-share span {
  font-weight: 600;
  color: var(--text-color);
  margin-right: 0.5rem;
}

.blog-cta-bottom {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
  border-top: 3px double var(--blog-rule);
}

.blog-cta-bottom h2 {
  font-family: var(--blog-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.back-to-blog {
  display: inline-flex;
  margin-bottom: 2rem;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
}

.back-to-blog:hover {
  text-decoration: underline;
}
