/* ==========================================================================
   Mera Pets — components.css
   §9 Components + shared commerce surfaces.
   Design system v1.0.
   ========================================================================== */

/* ---------------------------------------------------------------------
   §9.3 Navigation
   ------------------------------------------------------------------- */
.mp-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color var(--mp-dur-3) var(--mp-ease-std),
              box-shadow var(--mp-dur-3) var(--mp-ease-std),
              border-color var(--mp-dur-3) var(--mp-ease-std);
  border-bottom: 1px solid transparent;
}
.mp-nav__inner {
  display: flex; align-items: center; gap: var(--mp-s-8);
  height: 88px; padding-inline: 40px; max-width: var(--mp-w-bleed); margin-inline: auto;
  transition: height var(--mp-dur-3) var(--mp-ease-std);
}
.mp-nav.is-scrolled { background: rgba(251,249,245,.82); backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--mp-border); }
.mp-nav.is-scrolled .mp-nav__inner { height: 64px; }

.mp-nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mp-ink); margin-right: auto; }
.mp-nav__brand svg { width: 26px; height: 26px; }
.mp-nav__word {
  font-family: var(--mp-font-display); font-variation-settings: "opsz" 60, "WONK" 1;
  font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1;
}
.mp-nav__word span { color: var(--mp-ember); }

.mp-nav__links { display: flex; align-items: center; gap: var(--mp-s-8); }
.mp-nav__link {
  color: var(--mp-ink); text-decoration: none; font-size: var(--mp-t-sm); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--mp-dur-2) var(--mp-ease-std);
}
.mp-nav__link:hover { color: var(--mp-ember-700); }
.mp-nav__link .mp-icon { width: 12px; height: 12px; transition: transform var(--mp-dur-2) var(--mp-ease-out); }

.mp-nav__actions { display: flex; align-items: center; gap: var(--mp-s-5); }
.mp-nav__account { color: var(--mp-ink); text-decoration: none; font-size: var(--mp-t-sm); font-weight: 500; }
.mp-nav__account:hover { color: var(--mp-ember-700); }
.mp-nav__toggle { display: none; width: 44px; height: 44px; border-radius: var(--mp-r-sm); }
@media (max-width: 1023px) {
  /* the hero photo starts at the top edge on small screens — the bar needs its
     own ground so the wordmark and burger keep their 16:1 contrast */
  .mp-nav { background: rgba(251,249,245,.9); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--mp-border); }
}
.mp-nav__brand .mp-nav__mark { color: var(--mp-ember); }
.mp-nav__toggle span { display: block; width: 20px; height: 1.5px; background: var(--mp-ink); margin: 5px auto; transition: transform var(--mp-dur-2) var(--mp-ease-std), opacity var(--mp-dur-2); }

/* Mega dropdown — Porcelain panel, 4/8 split */
.mp-nav__dd { position: relative; }
.mp-nav__panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(680px, calc(100vw - 40px)); background: var(--mp-porcelain);
  border-radius: var(--mp-r-lg); box-shadow: var(--mp-e-4); border: 1px solid var(--mp-border);
  padding: var(--mp-s-6); display: grid; grid-template-columns: 4fr 8fr; gap: var(--mp-s-6);
  opacity: 0; visibility: hidden; transition: opacity var(--mp-dur-3) var(--mp-ease-std), transform var(--mp-dur-3) var(--mp-ease-out), visibility var(--mp-dur-3);
}
.mp-nav__dd:hover .mp-nav__panel, .mp-nav__dd:focus-within .mp-nav__panel,
.mp-nav__dd[data-open="true"] .mp-nav__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mp-nav__panel-list { display: grid; gap: 2px; align-content: start; }
.mp-nav__panel-link { display: block; padding: 12px 14px; border-radius: var(--mp-r-sm); color: var(--mp-ink); text-decoration: none; font-size: var(--mp-t-sm); font-weight: 500; }
.mp-nav__panel-link:hover { background: var(--mp-bg-alt); }
.mp-nav__panel-link small { display: block; color: var(--mp-stone-600); font-weight: 400; font-size: var(--mp-t-xs); margin-top: 2px; }
.mp-nav__panel-media { position: relative; border-radius: var(--mp-r-md); overflow: hidden; min-height: 220px; }
.mp-nav__panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-nav__panel-media figcaption {
  position: absolute; inset: auto 0 0 0; padding: 14px; color: var(--mp-porcelain);
  font-family: var(--mp-font-mono); font-size: var(--mp-t-micro); letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(19,18,16,.72));
}

/* Mobile overlay */
.mp-nav__overlay {
  position: fixed; inset: 0; z-index: 99; background: var(--mp-bone);
  padding: 100px var(--mp-gutter) var(--mp-gutter);
  display: flex; flex-direction: column; gap: var(--mp-s-2);
  opacity: 0; visibility: hidden; transition: opacity var(--mp-dur-3) var(--mp-ease-std), visibility var(--mp-dur-3);
}
.mp-nav__overlay.is-open { opacity: 1; visibility: visible; }
.mp-nav__overlay a {
  font-family: var(--mp-font-display); font-size: var(--mp-t-h2); font-weight: 400;
  color: var(--mp-ink); text-decoration: none; padding: 8px 0; letter-spacing: -0.018em;
}
.mp-nav__overlay a:hover { color: var(--mp-ember-700); }

@media (max-width: 1023px) {
  .mp-nav__links, .mp-nav__actions { display: none; }
  .mp-nav__toggle { display: block; }
  .mp-nav__inner { padding-inline: var(--mp-gutter); }
}

/* ---------------------------------------------------------------------
   §9.11 Chapter marker
   ------------------------------------------------------------------- */
.mp-chapter {
  background: var(--chapter-dark); color: var(--mp-porcelain);
  padding-block: var(--mp-section-y-lg); text-align: center; position: relative; overflow: hidden;
}
.mp-chapter .mp-grain::after { opacity: .08; }
.mp-chapter .mp-eyebrow { color: var(--mp-stone-400); }
.mp-chapter__chip {
  display: grid; place-items: center; width: 56px; height: 56px; margin-inline: auto;
  border-radius: var(--mp-r-md); background: var(--mp-porcelain); color: var(--mp-ink); font-size: 24px;
}
.mp-chapter__chip .mp-icon { width: 24px; height: 24px; }
.mp-chapter__word { font-size: var(--mp-t-d3); margin-top: var(--mp-s-5); color: var(--mp-porcelain); }
.mp-chapter__word em { font-style: normal; color: var(--chapter-accent); }

/* ---------------------------------------------------------------------
   §9.12 Showcase panel
   ------------------------------------------------------------------- */
.mp-showcase {
  max-width: var(--mp-w-bleed); margin-inline: auto;
  border-radius: var(--mp-r-xl); background: var(--chapter-grad);
  padding: clamp(40px, 6vw, 96px); position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--mp-s-8);
  align-items: center; min-height: 620px;
}
.mp-showcase__copy { grid-column: span 6; position: relative; z-index: 2; }
.mp-showcase__head { font-size: var(--mp-t-d2); color: var(--mp-ink); max-width: 16ch; }
.mp-showcase__body { margin-top: var(--mp-s-5); color: var(--mp-stone-600); max-width: 44ch; font-size: var(--mp-t-lg); }
.mp-showcase__stage { grid-column: span 6; position: relative; height: 460px; z-index: 1; }
.mp-showcase__obj { position: absolute; will-change: transform; }
.mp-showcase__obj img { border-radius: var(--mp-r-lg); box-shadow: var(--mp-e-4); object-fit: cover; }
.mp-showcase__obj--main { inset: 0 auto auto 0; width: 78%; }
.mp-showcase__obj--main img { width: 100%; aspect-ratio: 4/5; }
.mp-showcase__obj--near { top: 8%; right: 0; width: 34%; }
.mp-showcase__obj--near img { width: 100%; aspect-ratio: 1/1; }
.mp-showcase__obj--far { bottom: -6%; right: 14%; width: 26%; }
.mp-showcase__obj--far img { width: 100%; aspect-ratio: 1/1; border-radius: var(--mp-r-md); }

.mp-tempcard {
  background: var(--mp-ink); color: var(--mp-porcelain); border-radius: var(--mp-r-md);
  padding: 16px 18px; box-shadow: var(--mp-e-4); display: inline-flex; flex-direction: column; gap: 4px;
}
.mp-tempcard .mp-eyebrow { color: var(--mp-stone-400); }
.mp-tempcard__value { font-family: var(--mp-font-display); font-size: var(--mp-t-h3); font-variation-settings: "opsz" 48, "WONK" 0; line-height: 1; }

@media (max-width: 1023px) {
  .mp-showcase { grid-template-columns: 1fr; gap: var(--mp-s-8); min-height: 0; }
  .mp-showcase__copy, .mp-showcase__stage { grid-column: 1; }
  .mp-showcase__stage { height: 360px; }
}

/* ---------------------------------------------------------------------
   §9.13 Stacked cards
   ------------------------------------------------------------------- */
.mp-stack { display: grid; gap: var(--mp-s-6); }
.mp-stack__card {
  position: sticky; top: clamp(72px, 10vh, 120px);
  border-radius: var(--mp-r-lg); padding: clamp(28px, 4vw, 56px);
  min-height: 420px; box-shadow: var(--mp-e-3); overflow: hidden;
  display: grid; grid-template-columns: 7fr 5fr; gap: var(--mp-s-10); align-items: center;
}
.mp-stack__card:nth-child(odd)  { background: var(--mp-porcelain); color: var(--mp-ink); }
.mp-stack__card:nth-child(even) { background: var(--mp-ink); color: var(--mp-porcelain); }
.mp-stack__num { font-family: var(--mp-font-mono); font-size: var(--mp-t-micro); letter-spacing: .14em; color: var(--mp-stone-500); }
.mp-stack__card:nth-child(even) .mp-stack__num { color: var(--mp-stone-400); }
.mp-stack__title { font-size: var(--mp-t-h2); margin-top: var(--mp-s-3); }
.mp-stack__body { margin-top: var(--mp-s-4); color: var(--mp-stone-600); max-width: 46ch; }
.mp-stack__card:nth-child(even) .mp-stack__body { color: var(--mp-stone-400); }
.mp-stack__media { border-radius: var(--mp-r-md); overflow: hidden; aspect-ratio: 4/3; }
.mp-stack__media img { width: 100%; height: 100%; object-fit: cover; }
.mp-stack__fact { margin-top: var(--mp-s-5); display: flex; gap: var(--mp-s-6); flex-wrap: wrap; }
.mp-stack__fact b { display: block; font-family: var(--mp-font-display); font-size: var(--mp-t-h3); font-weight: 400; }
.mp-stack__fact span { font-family: var(--mp-font-mono); font-size: var(--mp-t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--mp-stone-500); }

@media (max-width: 1023px) {
  .mp-stack__card { grid-template-columns: 1fr; gap: var(--mp-s-6); position: relative; top: auto; }
  .mp-stack__media { order: -1; }
}

/* ---------------------------------------------------------------------
   §9.8 Nutrition table
   ------------------------------------------------------------------- */
.mp-table { width: 100%; border-collapse: collapse; }
.mp-table th {
  font-family: var(--mp-font-mono); font-size: var(--mp-t-micro); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--mp-stone-600);
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--mp-border-strong);
}
.mp-table th:not(:first-child), .mp-table td:not(:first-child) { text-align: right; }
/* §9.8: column heads are mono meta, row labels are plain UI text */
.mp-table tbody th {
  font-family: var(--mp-font-ui); font-size: var(--mp-t-sm); font-weight: 500;
  letter-spacing: normal; text-transform: none; color: var(--mp-ink);
  border-bottom: 1px solid var(--mp-clay); padding: 0 16px; height: 48px;
}
.mp-table td {
  height: 48px; padding: 0 16px; border-bottom: 1px solid var(--mp-clay);
  font-size: var(--mp-t-sm);
}
.mp-table td:first-child { color: var(--mp-text); }
.mp-table .mp-figures { font-family: var(--mp-font-mono); font-size: var(--mp-t-sm); }
.mp-table td.mp-table__dim { color: var(--mp-stone-500); }
.mp-table tfoot td { border-bottom: 0; color: var(--mp-stone-600); font-size: var(--mp-t-xs); }

@media (max-width: 640px) {
  .mp-table thead { display: none; }
  .mp-table, .mp-table tbody, .mp-table tr, .mp-table td { display: block; width: 100%; }
  .mp-table tr { padding: 14px 0; border-bottom: 1px solid var(--mp-clay); }
  .mp-table td { height: auto; padding: 2px 0; border: 0; }
  .mp-table td:not(:first-child) { text-align: left; }
  .mp-table td::before { content: attr(data-label); display: block; font-family: var(--mp-font-mono); font-size: var(--mp-t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--mp-stone-500); margin-bottom: 2px; }
}

/* ---------------------------------------------------------------------
   §9.4 Meal / §9.5 Plan cards
   ------------------------------------------------------------------- */
.mp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--mp-s-6); align-items: start; }
/* §5.3 forbids a flat symmetric row — offset the even cards */
.mp-cards > .mp-card:nth-child(even) { transform: translateY(var(--mp-s-10)); }
.mp-cards > .mp-card:nth-child(even):hover { transform: translateY(calc(var(--mp-s-10) - 4px)); }
@media (max-width: 1023px) { .mp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px)  { .mp-cards { grid-template-columns: 1fr; }
  .mp-cards > .mp-card:nth-child(even) { transform: none; } }
.mp-card__badge { position: absolute; top: 12px; left: 12px; background: rgba(251,249,245,.92); backdrop-filter: blur(6px); }
.mp-card__price small { font-family: var(--mp-font-ui); font-size: var(--mp-t-xs); color: var(--mp-stone-600); }
.mp-card {
  background: var(--mp-surface); border-radius: var(--mp-r-lg);
  border: 1px solid var(--mp-clay); box-shadow: var(--mp-e-2);
  padding: 8px 8px 24px; display: flex; flex-direction: column;
  transition: transform var(--mp-dur-3) var(--mp-ease-out), box-shadow var(--mp-dur-3) var(--mp-ease-std);
}
.mp-card:hover { transform: translateY(-4px); box-shadow: var(--mp-e-3); }
.mp-card__media { border-radius: var(--mp-r-md); overflow: hidden; aspect-ratio: 4/5; position: relative; }
.mp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--mp-dur-3) var(--mp-ease-out); }
.mp-card:hover .mp-card__media img { transform: scale(1.03); }
.mp-card__body { padding: 20px 14px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mp-card__eyebrow { font-family: var(--mp-font-mono); font-size: var(--mp-t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--mp-stone-600); }
.mp-card__title { font-size: var(--mp-t-h3); }
.mp-card__meta { font-size: var(--mp-t-sm); color: var(--mp-stone-600); }
.mp-card__price { font-size: var(--mp-t-h4); }
.mp-card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; }

/* Plan tier card (§9.5) */
.mp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--mp-s-6); align-items: start; }
.mp-plan {
  background: var(--mp-surface); border-radius: var(--mp-r-lg); border: 1px solid var(--mp-clay);
  padding: var(--mp-s-8) var(--mp-s-6); display: flex; flex-direction: column; gap: var(--mp-s-5);
  position: relative;
}
.mp-plan--featured {
  transform: translateY(-24px); border: 0; box-shadow: var(--mp-e-4);
  box-shadow: var(--mp-e-4), inset 0 0 0 2px var(--mp-ember);
}
.mp-plan--featured::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--mp-ember-100); border-radius: var(--mp-r-lg) var(--mp-r-lg) 0 0; }
.mp-plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.mp-plan__name { font-size: var(--mp-t-h3); }
.mp-plan__price { font-size: var(--mp-t-h2); line-height: 1; }
.mp-plan__price small { font-family: var(--mp-font-ui); font-size: var(--mp-t-xs); color: var(--mp-stone-600); font-weight: 400; }
.mp-plan__list { display: grid; gap: 10px; }
.mp-plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--mp-t-sm); }
.mp-plan__list .mp-icon { color: var(--mp-chloro); margin-top: 4px; }
.mp-plan__note { font-size: var(--mp-t-xs); color: var(--mp-stone-500); }
@media (max-width: 1023px) {
  .mp-plans { grid-template-columns: 1fr; }
  .mp-plan--featured { transform: none; }
}

/* Supplement product card */
.mp-supp { display: grid; grid-template-columns: 1fr; gap: var(--mp-s-6); align-items: start; background: var(--mp-surface); border-radius: var(--mp-r-lg); border: 1px solid var(--mp-clay); padding: var(--mp-s-8); }
.mp-supp__art { border-radius: var(--mp-r-md); aspect-ratio: 5/4; overflow: hidden; display: grid; place-items: center; }
.mp-supp__art svg { width: auto; height: 86%; }
.mp-supp__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mp-supp__title { font-size: var(--mp-t-h3); }
.mp-supp__body { color: var(--mp-stone-600); margin-top: var(--mp-s-3); max-width: 46ch; }
.mp-supp__actives { margin-top: var(--mp-s-4); display: flex; gap: 8px; flex-wrap: wrap; }
.mp-supp__price { margin-top: var(--mp-s-5); font-size: var(--mp-t-h3); }
.mp-supp__cta { margin-top: var(--mp-s-5); display: flex; gap: var(--mp-s-3); align-items: center; }
.mp-supp__cta .mp-btn { white-space: nowrap; --_pad-x: 20px; }
@media (max-width: 767px) { .mp-supp__art { order: -1; } }

/* ---------------------------------------------------------------------
   §9.14 Ingredient marquee
   ------------------------------------------------------------------- */
.mp-marquee { overflow: hidden; padding-block: var(--mp-s-4); }
.mp-marquee__row { display: flex; gap: 12px; width: max-content; margin-bottom: 12px; }
.mp-marquee__row:last-child { margin-bottom: 0; }
.mp-marquee__track { display: flex; gap: 12px; width: max-content; animation: mp-marquee 60s var(--mp-ease-glide) infinite; }
.mp-marquee--rev .mp-marquee__track { animation-direction: reverse; animation-duration: 74s; }
.mp-marquee:hover .mp-marquee__track { animation-play-state: paused; }
.mp-marquee__tile {
  width: 272px; height: 110px; border-radius: var(--mp-r-sm); overflow: hidden; position: relative; flex: none;
  background-size: cover; background-position: center;
}
.mp-marquee__tile span {
  position: absolute; inset: auto 0 0 0; padding: 12px 14px; color: #fff;
  font-family: var(--mp-font-mono); font-size: var(--mp-t-micro); letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(19,18,16,.82));
}
.mp-marquee__tile:hover { transform: scale(1.04); }
@keyframes mp-marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .mp-marquee__track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------------------------------------------------------------------
   §9.15 Icon run
   ------------------------------------------------------------------- */
.mp-iconrun {
  font-family: var(--mp-font-ui); font-size: clamp(1.25rem, .8rem + 1.4vw, 2rem);
  line-height: 1.55; color: var(--mp-ink); max-width: 26ch; font-weight: 450;
}
.mp-iconrun .mp-icon { display: inline-block; vertical-align: -.12em; color: var(--mp-stone-600); margin-right: .25em; }

/* ---------------------------------------------------------------------
   §9.16 CTA bar
   ------------------------------------------------------------------- */
.mp-ctabar {
  background: var(--mp-ink); color: var(--mp-porcelain);
  border-radius: var(--mp-r-lg); padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--mp-s-8);
}
.mp-ctabar p { font-size: var(--mp-t-h4); font-family: var(--mp-font-display); }
.mp-ctabar p em { font-style: normal; color: var(--mp-saffron); }
@media (max-width: 767px) {
  .mp-ctabar { flex-direction: column; align-items: stretch; text-align: left; }
  .mp-ctabar .mp-btn { width: 100%; }
}

/* ---------------------------------------------------------------------
   §9.17 FAQ accordion
   ------------------------------------------------------------------- */
.mp-faq { background: var(--mp-surface); border-radius: var(--mp-r-lg); border: 1px solid var(--mp-clay); }
.mp-faq__item { border-bottom: 1px solid var(--mp-clay); }
.mp-faq__item:last-child { border-bottom: 0; }
.mp-faq__trigger {
  width: 100%; min-height: 88px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: var(--mp-s-6);
  text-align: left; font-family: var(--mp-font-display); font-size: var(--mp-t-h4); font-weight: 400; color: var(--mp-ink); letter-spacing: -0.01em;
}
.mp-faq__trigger .mp-icon { transition: transform var(--mp-dur-3) var(--mp-ease-std); color: var(--mp-stone-500); }
.mp-faq__item[data-open="true"] .mp-faq__trigger .mp-icon { transform: rotate(180deg); }
.mp-faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--mp-dur-3) var(--mp-ease-std); }
.mp-faq__item[data-open="true"] .mp-faq__panel { grid-template-rows: 1fr; }
.mp-faq__panel-inner { overflow: hidden; }
.mp-faq__answer { padding: 0 28px 28px; color: var(--mp-stone-600); max-width: 68ch; }

/* ---------------------------------------------------------------------
   §9.9 Vet quote
   ------------------------------------------------------------------- */
.mp-quote { display: grid; grid-template-columns: 8fr 4fr; gap: var(--mp-s-10); align-items: center; }
.mp-quote blockquote {
  font-family: var(--mp-font-display); font-style: italic; font-size: var(--mp-t-h2);
  line-height: 1.2; font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  hanging-punctuation: first last; max-width: 26ch;
}
.mp-quote figcaption { margin-top: var(--mp-s-5); font-family: var(--mp-font-mono); font-size: var(--mp-t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--mp-stone-500); }
.mp-quote__media { border-radius: var(--mp-r-lg); overflow: hidden; aspect-ratio: 4/5; }
.mp-quote__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .mp-quote { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   §10.11 Footer
   ------------------------------------------------------------------- */
.mp-footer {
  background: var(--mp-ink); color: var(--mp-porcelain);
  background-image: var(--mp-glow-ember); background-repeat: no-repeat; background-size: cover;
  position: relative; overflow: hidden;
}
.mp-footer__cta { display: grid; grid-template-columns: 7fr 5fr; gap: var(--mp-s-10); align-items: center; padding-block: var(--mp-section-y-lg); }
.mp-footer__cta h2 { font-size: var(--mp-t-d3); color: var(--mp-porcelain); max-width: 12ch; }
.mp-footer__cta h2 em { font-style: normal; color: var(--mp-saffron); }
.mp-footer__cta .mp-eyebrow { color: var(--mp-stone-400); }
.mp-footer__actions { display: flex; gap: var(--mp-s-3); flex-wrap: wrap; margin-top: var(--mp-s-6); }
.mp-footer__art { position: relative; }
.mp-footer__art svg { width: 100%; height: auto; }
.mp-footer__art img { width: 100%; height: auto; border-radius: var(--mp-r-lg); box-shadow: var(--mp-e-4); }

.mp-footer__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--mp-s-8);
  padding-block: var(--mp-s-12); border-top: 1px solid var(--mp-ink-3);
}
.mp-footer__col h3 { font-family: var(--mp-font-mono); font-size: var(--mp-t-micro); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mp-stone-400); margin-bottom: var(--mp-s-4); }
.mp-footer__col a { display: block; color: var(--mp-porcelain); text-decoration: none; font-size: var(--mp-t-sm); padding: 5px 0; transition: color var(--mp-dur-2) var(--mp-ease-std); }
.mp-footer__col a:hover { color: var(--mp-saffron); }

.mp-footer__bottom {
  border-top: 1px solid var(--mp-ink-3); padding-block: var(--mp-s-8);
  display: flex; align-items: center; justify-content: space-between; gap: var(--mp-s-6); flex-wrap: wrap;
}
.mp-footer__news { display: flex; gap: var(--mp-s-3); align-items: center; }
.mp-footer__news .mp-input { height: 44px; width: 260px; background: var(--mp-ink-2); border-color: var(--mp-ink-3); color: var(--mp-porcelain); }
.mp-footer__news .mp-input::placeholder { color: var(--mp-stone-400); }
.mp-news__status { font-size: var(--mp-t-xs); color: var(--mp-saffron); margin-top: 8px; }
.mp-footer__legal { display: flex; gap: var(--mp-s-5); align-items: center; flex-wrap: wrap; }
.mp-footer__legal a { color: var(--mp-stone-400); font-size: var(--mp-t-xs); text-decoration: none; }
.mp-footer__legal a:hover { color: var(--mp-saffron); }
.mp-footer__copy { color: var(--mp-stone-400); font-size: var(--mp-t-xs); }

@media (max-width: 1023px) {
  .mp-footer__cta { grid-template-columns: 1fr; }
  .mp-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .mp-footer__grid { grid-template-columns: 1fr; }
  .mp-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------------
   Legal / sub-pages
   ------------------------------------------------------------------- */
.mp-subnav { display: flex; align-items: center; justify-content: space-between; gap: var(--mp-s-6); padding: 24px var(--mp-gutter); max-width: var(--mp-w-bleed); margin-inline: auto; }
.mp-legal { padding-block: var(--mp-s-12); }
.mp-legal h1 { font-size: var(--mp-t-h1); margin-bottom: var(--mp-s-6); }
.mp-legal h2 { font-size: var(--mp-t-h2); margin-top: var(--mp-s-10); margin-bottom: var(--mp-s-3); }
.mp-legal p, .mp-legal li { color: var(--mp-stone-600); max-width: 68ch; }
.mp-legal p + p { margin-top: var(--mp-s-4); }
.mp-legal ul { list-style: disc; padding-left: 1.4em; margin-top: var(--mp-s-3); }
.mp-legal li { margin-top: var(--mp-s-2); }
.mp-legal .mp-legal__updated { font-family: var(--mp-font-mono); font-size: var(--mp-t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--mp-stone-500); margin-bottom: var(--mp-s-8); }

/* ---------------------------------------------------------------------
   Journal archive + article (index.html / single.html)
   ------------------------------------------------------------------- */
.mp-journal-head .mp-eyebrow { margin-bottom: var(--mp-s-4); }
.mp-index .wp-block-post-template { list-style: none; padding: 0; display: grid; gap: var(--mp-s-12); }
.mp-index .wp-block-post-template > li { display: grid; gap: 6px; }
.mp-index .wp-block-post-date { font-family: var(--mp-font-mono); font-size: var(--mp-t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--mp-stone-500); order: -1; }
.mp-index .wp-block-query-pagination { margin-top: var(--mp-s-12); display: flex; gap: var(--mp-s-4); font-family: var(--mp-font-mono); font-size: var(--mp-t-xs); }
.mp-index .wp-block-post-title { font-family: var(--mp-font-display); font-size: var(--mp-t-h2); font-weight: 400; letter-spacing: -.015em; line-height: 1.08; }
.mp-index .wp-block-post-title a { color: var(--mp-ink); text-decoration: none; }
.mp-index .wp-block-post-title a:hover { color: var(--mp-ember-700); }
.mp-index .wp-block-post-excerpt { color: var(--mp-stone-600); margin-top: var(--mp-s-3); max-width: 68ch; }
.mp-index .wp-block-post-excerpt__more-link { color: var(--mp-ember-700); }
.mp-article .wp-block-post-date { font-family: var(--mp-font-mono); font-size: var(--mp-t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--mp-stone-500); margin-top: var(--mp-s-3); margin-bottom: var(--mp-s-8); }
.mp-article h2 { margin-top: var(--mp-s-10); }
.mp-article strong { font-weight: 600; color: var(--mp-ink); }

/* ---------------------------------------------------------------------
   Fixed-nav offset for every template except the home page, whose hero
   deliberately runs underneath the bar.
   ------------------------------------------------------------------- */
body:not(.home) .mp-nav { background: rgba(251,249,245,.92); backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--mp-border); }
body:not(.home) main { padding-top: 88px; }
@media (max-width: 1023px) { body:not(.home) main { padding-top: 72px; } }
