/* mhv-stories-style.css
   Scoped entirely to body.mhv-stories-page — never touches homepage,
   town page, or Our Story styling. Follows the same root-font-size
   fix used on the other custom MHV pages (see Known Platform Quirks). */

html:has(body.mhv-stories-page) { font-size: 16px; }
body.mhv-stories-page {
  font-size: 16px;
  background: #faf7f0; /* cream */
  color: #2b2b2b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Header ---------- */
.mhv-stories-header {
  background: #1f4d36; /* forest green */
  padding: 1rem 2rem;
}
.mhv-stories-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.mhv-stories-logo {
  color: #faf7f0;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.mhv-stories-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.mhv-stories-nav a {
  color: #e8e2d0;
  text-decoration: none;
  font-size: 0.95rem;
}
.mhv-stories-nav a:hover { color: #ffffff; text-decoration: underline; }
.mhv-stories-search-toggle {
  background: none;
  border: none;
  color: #e8e2d0;
  font-size: 1rem;
  cursor: pointer;
}

/* ---------- Layout ---------- */
.mhv-stories-wrap {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}
@media (max-width: 860px) {
  .mhv-stories-wrap { grid-template-columns: 1fr; padding: 0 1.25rem; }
}

/* ---------- Story cards ---------- */
.mhv-story-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.75rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2dcc9;
}
@media (max-width: 640px) {
  .mhv-story-card { grid-template-columns: 1fr; }
}
.mhv-story-thumb img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.mhv-story-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.mhv-story-category {
  color: #1f4d36;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.mhv-story-edit-link {
  font-size: 0.8rem;
  color: #999;
  text-decoration: none;
}
.mhv-story-title {
  margin: 0.35rem 0 0.6rem;
  font-size: 1.4rem;
  line-height: 1.3;
}
.mhv-story-title a {
  color: #1a1a1a;
  text-decoration: none;
}
.mhv-story-title a:hover { color: #1f4d36; }
.mhv-story-excerpt {
  color: #4a4a4a;
  font-size: 0.98rem;
  line-height: 1.6;
}
.mhv-story-footer {
  margin-top: 0.9rem;
  padding-top: 0.6rem;
  border-top: 1px solid #ece7d8;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8a8a8a;
}

.mhv-stories-pagination { display: flex; gap: 0.75rem; margin-top: 1rem; }
.mhv-stories-pagination a, .mhv-stories-pagination span {
  padding: 0.4rem 0.8rem;
  border: 1px solid #d8d2bf;
  border-radius: 4px;
  color: #1f4d36;
  text-decoration: none;
  font-size: 0.9rem;
}
.mhv-stories-pagination .current { background: #1f4d36; color: #fff; }

/* ---------- Sidebar ---------- */
.mhv-widget {
  background: #ffffff;
  border: 1px solid #ece7d8;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}
.mhv-widget h3 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1f4d36;
  border-left: 3px solid #1f4d36;
  padding-left: 0.6rem;
}
.mhv-widget-search input[type="search"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d8d2bf;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  box-sizing: border-box;
}
.mhv-widget-search button,
.mhv-widget-subscribe button {
  width: 100%;
  background: #1f4d36;
  color: #fff;
  border: none;
  padding: 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}
.mhv-widget-search button:hover,
.mhv-widget-subscribe button:hover { background: #163a28; }

.mhv-widget-about p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4a4a4a;
}
.mhv-widget-social { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.mhv-widget-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #1f4d36;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-family: sans-serif;
  font-size: 0.85rem;
}

.mhv-widget-subscribe input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d8d2bf;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  box-sizing: border-box;
}
.mhv-subscribe-status {
  font-size: 0.85rem;
  margin-top: 0.6rem;
  min-height: 1.2em;
}
.mhv-subscribe-status.success { color: #1f4d36; }
.mhv-subscribe-status.error { color: #b3261e; }

.mhv-widget-recent ul { list-style: none; margin: 0; padding: 0; }
.mhv-widget-recent li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.mhv-recent-thumb img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 4px;
}
.mhv-recent-text a {
  display: block;
  font-size: 0.9rem;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
}
.mhv-recent-text a:hover { color: #1f4d36; }
.mhv-recent-text span {
  font-size: 0.78rem;
  color: #999;
}

.mhv-stories-empty {
  color: #666;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.mhv-stories-footer {
  background: #1f4d36;
  padding: 1.25rem 2rem;
  margin-top: 2rem;
}
.mhv-stories-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.mhv-stories-footer-inner a {
  color: #e8e2d0;
  text-decoration: none;
  font-size: 0.9rem;
}
.mhv-stories-footer-inner a:hover { color: #ffffff; text-decoration: underline; }
