/* Blog post styles. Generated by material-minds-blog-editor (site_assets/blog-post.css).
   Edit the copy in the editor repo; this file is overwritten on every publish. */

/* ---------- Cards on blog.html ---------- */
.post-thumb { overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body h3 a { color: inherit; }
.mm-empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); }

/* ---------- Post page ---------- */
.mm-narrow { max-width: 760px; }
.mm-post-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9fb8e0;
  margin-bottom: 10px;
}
.mm-post-hero .mm-post-meta,
.mm-feature-hero .mm-post-meta { color: #dbe4f2; margin: 0; }
.mm-post-section { padding: 48px 0 72px; }

.mm-feature-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 96px 0 48px;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.mm-feature-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 20, 40, 0.1) 0%, rgba(6, 20, 40, 0.85) 100%);
}
.mm-feature-hero .container { position: relative; width: 100%; }
.mm-feature-hero h1 { color: var(--white); }

.mm-layout-announcement .mm-post-hero { text-align: center; }
.mm-layout-announcement .mm-post-hero .container,
.mm-layout-announcement .mm-post-content { margin-left: auto; margin-right: auto; text-align: center; }
.mm-layout-announcement .mm-post-content { font-size: 1.15rem; max-width: 60ch; }

.mm-cover { margin: 0 0 32px; }
.mm-cover img { width: 100%; border-radius: var(--radius); }

/* ---------- Post body (also used inside the editor) ---------- */
.mm-post-content { font-size: 1.06rem; }
.mm-post-content::after { content: ""; display: table; clear: both; }
.mm-post-content h2 { margin-top: 1.6em; }
.mm-post-content h3 { margin-top: 1.4em; }
.mm-post-content .mm-lede { font-size: 1.25rem; color: var(--navy-soft); }
.mm-post-content blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  color: var(--navy-mid);
}
.mm-post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.mm-post-content .mm-callout {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 18px 22px 6px;
  margin: 1.6em 0;
}
.mm-post-content .mm-callout ul { margin-top: 0; }

.mm-post-content figure { margin: 1.6em auto; }
.mm-post-content figure img { width: 100%; border-radius: 8px; }
.mm-post-content figcaption { font-size: 0.88rem; color: var(--text-muted); text-align: center; margin-top: 8px; }
.mm-post-content .mm-size-small { width: 33%; }
.mm-post-content .mm-size-medium { width: 55%; }
.mm-post-content .mm-size-large { width: 80%; }
.mm-post-content .mm-size-full { width: 100%; }
.mm-post-content .mm-align-left { float: left; margin: 0.4em 1.6em 1em 0; }
.mm-post-content .mm-align-right { float: right; margin: 0.4em 0 1em 1.6em; }
.mm-post-content .mm-align-center { float: none; margin-left: auto; margin-right: auto; }

.mm-post-content .mm-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 1.6em 0;
}
.mm-post-content .mm-gallery figure { width: auto; margin: 0; float: none; }
.mm-post-content .mm-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.mm-post-content .mm-gallery > p { grid-column: 1 / -1; margin: 0; }

/* Photo + text side by side. Breaks out of the narrow text column to use the page width. */
.mm-post-content .mm-split {
  display: grid;
  grid-template-columns: var(--mm-media, 1fr) 1fr;
  gap: 48px;
  align-items: center;
  clear: both;
  margin: 2.4em 0;
  width: min(1000px, calc(100vw - 48px));
  margin-left: calc(50% - min(500px, 50vw - 24px));
}
.mm-post-content .mm-split-right { grid-template-columns: 1fr var(--mm-media, 1fr); }
.mm-post-content .mm-split-right .mm-split-media { order: 2; }
.mm-post-content .mm-split-media { margin: 0; width: auto; float: none; }
.mm-post-content .mm-split-media img { border-radius: 6px; }
.mm-post-content .mm-split-text > :first-child { margin-top: 0; }
.mm-post-content .mm-split-text > :last-child { margin-bottom: 0; }
.mm-post-content .mm-split:not(:has(img)) { display: block; width: auto; margin-left: 0; }
.mm-post-content .mm-split-media:not(:has(img)) { display: none; }

/* Light "magazine" header (Photo Essay template) */
.mm-wide { max-width: 1048px; }
.mm-plain-hero { padding: 56px 0 0; background: var(--white); }
.mm-plain-hero h1 { font-size: clamp(2rem, 3.2vw + 1rem, 3.4rem); margin-bottom: 18px; }
.mm-plain-hero .mm-post-kicker { color: var(--accent); }
.mm-plain-hero .mm-post-meta { color: var(--text-muted); font-size: 1.05rem; margin: 0; }
.mm-post-meta .mm-accent { color: var(--accent); }
.mm-layout-magazine .mm-post-section { padding-top: 40px; }
.mm-layout-magazine .mm-post-content { font-size: 1.08rem; }

/* Works Cited (MLA style: hanging indent, no bullets) */
.mm-works-cited {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.mm-works-cited h2 { font-size: 1.4rem; margin-bottom: 16px; }
.mm-works-cited ul { list-style: none; padding: 0; margin: 0; }
.mm-works-cited li {
  padding-left: 2em;
  text-indent: -2em;
  margin-bottom: 0.8em;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.mm-post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .mm-post-content .mm-size-small,
  .mm-post-content .mm-size-medium,
  .mm-post-content .mm-size-large { width: 100%; }
  .mm-post-content .mm-align-left,
  .mm-post-content .mm-align-right { float: none; margin: 1.6em 0; }
  .mm-feature-hero { min-height: 320px; }
  .mm-post-content figure[style] { width: 100% !important; }
}
@media (max-width: 700px) {
  .mm-post-content .mm-split,
  .mm-post-content .mm-split-right { grid-template-columns: 1fr; gap: 20px; }
  .mm-post-content .mm-split-right .mm-split-media { order: 0; }
}
