/* ============================================================================
   МИРМОЛ — brand layer on top of Bootstrap 5.
   Tokens are taken from the МИРМОЛ guidebook (logo, colour, type, graphics).
   ========================================================================== */

:root {
  /* --- brand colour -------------------------------------------------- */
  --mm-blue: #4621ff;
  --mm-blue-deep: #2f13c4;
  --mm-orange: #f86337;
  --mm-orange-deep: #de4a1f;
  --mm-ink: #211919;
  --mm-paper: #ffffff;
  --mm-bg: #f9f7f2;
  --mm-photo-radius: 5px;

  --mm-ink-70: rgba(33, 25, 25, 0.7);
  --mm-ink-55: rgba(33, 25, 25, 0.55);
  --mm-ink-35: rgba(33, 25, 25, 0.35);
  --mm-rule: rgba(33, 25, 25, 0.14);
  --mm-rule-soft: rgba(33, 25, 25, 0.08);
  --mm-wash: #f4f2f0;

  /* --- type ----------------------------------------------------------
     Display face is Bounded in the guidebook; Unbounded is the metric-
     compatible libre stand-in used here. Body face is Helvetica Now,
     falling back to Inter where the licensed family is not installed. */
  --mm-font-display: "Bounded", "Unbounded", "Helvetica Neue", Arial, sans-serif;
  --mm-font-text: "Helvetica Now Text", "Helvetica Now", "Helvetica Neue", "Inter",
    Helvetica, Arial, sans-serif;

  /* --- boxed shell ---------------------------------------------------
     Fills standard monitors edge to edge (1280–1920) and boxes beyond. */
  --mm-shell-max: 1920px;
  --mm-shell-pad: 40px;
  --mm-gutter: 28px;

  --mm-band-h: 239px;
  --mm-bar-h: 62px;
}

@media (max-width: 1400px) {
  :root { --mm-shell-pad: 28px; --mm-gutter: 22px; --mm-band-h: 212px; }
}
@media (max-width: 991.98px) {
  :root { --mm-shell-pad: 20px; --mm-gutter: 18px; --mm-band-h: 175px; --mm-bar-h: 56px; }
}
@media (max-width: 575.98px) {
  :root { --mm-shell-pad: 14px; --mm-gutter: 14px; --mm-band-h: 143px; }
}

/* Narrower boxed variant, matching a 1536px editorial measure. */
.mm-boxed-narrow { --mm-shell-max: 1536px; }

/* ============================================================ base ======= */

* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background: var(--mm-bg);
  color: var(--mm-ink);
  font-family: var(--mm-font-text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { border-radius: var(--mm-photo-radius); }

.mm-bar__logo img,
.mm-footer__brand img,
.mm-promo__mark {
  border-radius: 0;
}

::selection { background: var(--mm-blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--mm-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Boxed shell: one measure shared by every band on the page. */
.mm-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: min(var(--mm-shell-max), 100%);
  min-width: 0;
  margin-inline: auto;
  padding-inline: var(--mm-shell-pad);
}

.mm-display {
  font-family: var(--mm-font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

/* Small caps label: rubric names, dates, service copy. */
.mm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
}

.mm-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--mm-orange);
}

.mm-eyebrow--blue::before { background: var(--mm-blue); }
.mm-eyebrow--light { color: rgba(255, 255, 255, 0.72); }

a.mm-eyebrow--outline {
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--mm-ink) 32%, transparent);
  border-radius: 0;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease;
}

a.mm-eyebrow--outline::before {
  display: none;
}

a.mm-eyebrow--outline:hover {
  border-color: var(--mm-ink);
  color: var(--mm-ink);
}

.mm-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================================== buttons ====== */

.mm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1.5px solid var(--mm-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--mm-ink);
  font-family: var(--mm-font-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.mm-btn:hover { background: var(--mm-ink); color: var(--mm-paper); }
.mm-btn:active { transform: translateY(1px); }

.mm-btn--solid { background: var(--mm-ink); color: var(--mm-paper); }
.mm-btn--solid:hover { background: var(--mm-blue); border-color: var(--mm-blue); }

.mm-btn--blue {
  background: var(--mm-blue);
  border-color: var(--mm-blue);
  color: #fff;
}
.mm-btn--blue:hover { background: var(--mm-ink); border-color: var(--mm-ink); }

.mm-btn--orange {
  background: var(--mm-orange);
  border-color: var(--mm-orange);
  color: var(--mm-ink);
}
.mm-btn--orange:hover { background: var(--mm-ink); border-color: var(--mm-ink); color: #fff; }

.mm-btn--ghost-light { border-color: rgba(33, 25, 25, 0.45); }

.mm-btn__caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

[aria-expanded="true"] > .mm-btn__caret { transform: rotate(180deg); }

.mm-btn__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========================================================== search console */

html.mm-search-open,
html.mm-search-open body {
  overflow: hidden;
}

.mm-search {
  position: fixed;
  inset: 0;
  /* Above sticky bar (1035) and anchored rubrics (1036). */
  z-index: 1045;
  pointer-events: none;
}

.mm-search:not([hidden]) { pointer-events: auto; }

.mm-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 25, 25, 0.42);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.mm-search__panel {
  position: absolute;
  top: var(--mm-bar-h);
  left: 0;
  right: 0;
  background: var(--mm-bg);
  border-bottom: 3px solid var(--mm-ink);
  box-shadow: 0 18px 48px rgba(33, 25, 25, 0.14);
  transform: translateY(-105%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.mm-search.is-open .mm-search__backdrop { opacity: 1; }
.mm-search.is-open .mm-search__panel { transform: translateY(0); }

.mm-search__inner {
  padding: 22px 0 18px;
}

.mm-search__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mm-search__field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0 14px;
  border-bottom: 2px solid var(--mm-ink);
}

.mm-search__icon {
  flex-shrink: 0;
  color: var(--mm-ink-55);
}

.mm-search__input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--mm-ink);
  font-family: var(--mm-font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  outline: none;
}

.mm-search__input::placeholder {
  color: var(--mm-ink-35);
  text-transform: none;
  font-family: var(--mm-font-text);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0;
}

.mm-search__input::-webkit-search-cancel-button { display: none; }

.mm-search__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--mm-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--mm-ink);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.mm-search__close:hover {
  background: var(--mm-ink);
  color: var(--mm-paper);
}

.mm-search__body {
  padding-top: 16px;
  max-height: min(52vh, 420px);
  overflow: auto;
}

.mm-search__label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
}

.mm-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-search__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1.5px solid var(--mm-ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mm-ink);
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.mm-search__chip:hover {
  background: var(--mm-blue);
  border-color: var(--mm-blue);
  color: #fff;
}

.mm-search__results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mm-search__result {
  border-bottom: 1px solid var(--mm-rule);
}

.mm-search__result:last-child { border-bottom: 0; }

.mm-search__result a {
  display: block;
  padding: 12px 4px;
  color: inherit;
  text-decoration: none;
}

.mm-search__result a:hover .mm-search__result-title { color: var(--mm-blue); }

.mm-search__result-title {
  display: block;
  font-family: var(--mm-font-display);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transition: color 0.16s ease;
}

.mm-search__result-meta {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
}

.mm-search__empty {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--mm-ink-70);
}

.mm-search__hint {
  margin: 14px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mm-ink-35);
}

.mm-search__hint kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--mm-rule);
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.2;
}

.mm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1.5px solid var(--mm-rule);
  border-radius: 50%;
  background: var(--mm-paper);
  color: var(--mm-ink);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.mm-icon-btn:hover:not(:disabled) {
  background: var(--mm-ink);
  border-color: var(--mm-ink);
  color: var(--mm-paper);
}

.mm-icon-btn:disabled { opacity: 0.3; cursor: default; }
.mm-icon-btn svg { width: 15px; height: 15px; }

/* ===================================================== hero masthead ===== */

.mm-hero { position: relative; margin: 0; padding: 0; background: var(--mm-bg); }

.mm-hero__band {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: var(--mm-band-h);
  background: var(--mm-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Hero content shares the same measure as the rest of the page. */
.mm-hero__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--mm-band-h);
}

.mm-hero__logo {
  display: block;
  width: clamp(420px, 52vw, 980px);
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mm-hero__logo svg { display: block; width: 100%; height: auto; }
.mm-hero__logo:hover { opacity: 0.92; transform: translateY(-1px); }

/* Rubrics flyout — tab on header seam, panel drops downward. */
.mm-rubrics {
  --mm-rubrics-border: 3px;
  --mm-rubrics-toggle-h: 28px;
  --mm-rubrics-toggle-w: 108px;
  --mm-rubrics-panel-w: 600px;
  --mm-rubrics-panel-max: 1360px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 6;
}

.mm-rubrics__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-width: var(--mm-rubrics-toggle-w);
  height: var(--mm-rubrics-toggle-h);
  padding: 0 8px 3px;
  border: var(--mm-rubrics-border) solid var(--mm-ink);
  border-radius: 0;
  background: transparent;
  color: var(--mm-ink);
  font-family: var(--mm-font-text);
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mm-rubrics__caret {
  display: block;
  flex: 0 0 auto;
  margin-top: 4px;
  transition: transform 0.25s ease;
}

.mm-rubrics__toggle:hover {
  background: var(--mm-ink);
  color: var(--mm-paper);
}

.mm-rubrics.is-open .mm-rubrics__toggle {
  background: var(--mm-orange);
  border-bottom: 0;
}

.mm-rubrics.is-open .mm-rubrics__toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--mm-rubrics-seam-w, 0px);
  height: var(--mm-rubrics-border);
  margin-left: calc(-1 * var(--mm-rubrics-seam-w, 0px));
  background: var(--mm-ink);
  pointer-events: none;
}

.mm-rubrics.is-open .mm-rubrics__caret { transform: rotate(180deg); }

.mm-rubrics__panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: var(--mm-rubrics-panel-w);
  min-width: 0;
  max-width: min(var(--mm-rubrics-panel-max), calc(100vw - var(--mm-shell-pad) * 2));
  overflow: visible;
  background: var(--mm-orange);
  border: var(--mm-rubrics-border) solid var(--mm-ink);
  border-top: 0;
}

.mm-rubrics__list {
  column-count: 2;
  column-gap: 22px;
  padding: 0 12px 9px;
}

.mm-rubrics__link {
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  padding: 0 0 8px;
  margin-top: 8px;
  border-bottom: 1px solid var(--mm-ink);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.17;
  color: var(--mm-ink);
  white-space: nowrap;
  transition: opacity 0.16s ease;
}

.mm-rubrics__link:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mm-rubrics__link:hover { opacity: 0.55; }

/* Pin under sticky bar when the masthead has scrolled away. */
.mm-rubrics.is-anchored {
  position: fixed;
  top: var(--mm-bar-h);
  bottom: auto;
  z-index: 1036;
}

.mm-rubrics.is-anchored .mm-rubrics__toggle {
  background: var(--mm-paper);
  border-bottom: var(--mm-rubrics-border) solid var(--mm-ink);
}

.mm-rubrics.is-anchored.is-open .mm-rubrics__toggle {
  background: var(--mm-orange);
  border-bottom: 0;
}

/* ================================================= sticky compact bar ==== */

.mm-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1035;
  height: var(--mm-bar-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--mm-rule);
  transform: translateY(-102%);
  transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.mm-bar.is-visible { transform: translateY(0); }

.mm-bar .mm-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  overflow-x: clip;
}

.mm-bar__logo {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.mm-bar__logo img { display: block; height: 22px; width: auto; }

.mm-bar__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-bar__nav a {
  color: var(--mm-ink-70);
  transition: color 0.16s ease;
  white-space: nowrap;
}
.mm-bar__nav a:hover { color: var(--mm-blue); }
.mm-bar__nav a.is-current { color: var(--mm-ink); }
.mm-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ===================================================== editorial top ==== */

.mm-editorial {
  padding-top: 34px;
  padding-bottom: 10px;
}

.mm-editorial__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.2fr) minmax(0, 0.95fr);
  grid-template-rows: auto auto;
  column-gap: var(--mm-gutter);
  row-gap: 10px;
  align-items: start;
}

.mm-editorial__favs {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.mm-editorial__favs > .mm-ticker-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.mm-editorial__favs .mm-toplist {
  border-top: 0;
}

.mm-editorial__main {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
}

.mm-editorial__cards {
  grid-column: 1 / 3;
  grid-row: 2;
}

.mm-editorial__favs,
.mm-editorial__main,
.mm-editorial__feed,
.mm-editorial__cards {
  min-width: 0;
}

.mm-editorial__feed {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: stretch;
}

.mm-editorial__heading {
  margin: 0 0 16px;
  font-family: var(--mm-font-display);
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.mm-editorial__feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mm-editorial__feed-head .mm-editorial__heading { margin-bottom: 0; }

/* --- favorites list (left) */

.mm-toplist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--mm-ink);
}

.mm-toplist__item {
  padding: 10px 0;
  border-bottom: 1px solid var(--mm-rule);
}

.mm-toplist__link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  transition: color 0.16s ease;
}

.mm-toplist__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--mm-photo-radius);
  background: var(--mm-wash);
}

.mm-toplist__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mm-toplist__text {
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 700;
  line-height: 1.35;
}

.mm-toplist__views {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--mm-muted, #6b7280);
}

.mm-toplist__link:hover { color: var(--mm-blue); }
.mm-toplist__link:hover .mm-toplist__text { color: var(--mm-blue); }
.mm-toplist__link:hover .mm-toplist__views { color: var(--mm-muted, #6b7280); }

/* --- side feed (fills left column under toplist) */

.mm-sidefeed {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.mm-sidefeed__item {
  padding: 8px 0;
  border-bottom: 1px solid var(--mm-rule);
}

.mm-sidefeed__item:last-child { border-bottom: 0; }

.mm-sidefeed__link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  transition: color 0.16s ease;
}

.mm-sidefeed__thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 42px;
  display: block;
  object-fit: cover;
  border-radius: var(--mm-photo-radius);
  background: var(--mm-wash);
}

.mm-sidefeed__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mm-sidefeed__text {
  font-size: clamp(11px, 0.82vw, 13px);
  font-weight: 700;
  line-height: 1.32;
}

.mm-sidefeed__views {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--mm-muted, #6b7280);
}

.mm-sidefeed__link:hover { color: var(--mm-blue); }
.mm-sidefeed__link:hover .mm-sidefeed__text { color: var(--mm-blue); }
.mm-sidefeed__link:hover .mm-sidefeed__views { color: var(--mm-muted, #6b7280); }

/* --- hero banner carousel (center) */

.mm-hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--mm-photo-radius);
  background: var(--mm-wash);
  width: 100%;
}

.mm-hero-carousel__track {
  position: relative;
  width: 100%;
}

.mm-hero-carousel__track::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.mm-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 0;
}

.mm-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.mm-hero-slide__media {
  position: absolute;
  inset: 0;
}

.mm-hero-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.mm-hero-slide__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 2.5vw, 32px);
  background: linear-gradient(
    to top,
    rgba(33, 25, 25, 0.88) 0%,
    rgba(33, 25, 25, 0.45) 45%,
    transparent 100%
  );
}

.mm-hero-slide__overlay .mm-eyebrow { color: rgba(255, 255, 255, 0.85); }
.mm-hero-slide__overlay .mm-eyebrow::before { background: var(--mm-orange); }

.mm-hero-slide__title {
  margin: 8px 0 0;
  font-family: var(--mm-font-display);
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #fff;
  max-width: 90%;
}

.mm-hero-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(33, 25, 25, 0.32);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.mm-hero-carousel__arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

.mm-hero-carousel__arrow--prev { left: clamp(10px, 1.4vw, 16px); }
.mm-hero-carousel__arrow--next { right: clamp(10px, 1.4vw, 16px); }

.mm-hero-carousel__arrow:hover {
  background: rgba(33, 25, 25, 0.52);
  border-color: rgba(255, 255, 255, 0.72);
}

.mm-hero-carousel__arrow:focus-visible {
  outline: 2px solid var(--mm-orange);
  outline-offset: 2px;
}

.mm-hero-carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.mm-hero-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mm-hero-carousel__dot.is-active {
  background: var(--mm-orange);
  transform: scale(1.15);
}

.mm-hero-carousel__dot:hover { background: #fff; }

/* --- sub-cards below hero */

.mm-editorial__cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--mm-gutter);
}

.mm-editorial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mm-editorial-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--mm-wash);
  border-radius: var(--mm-photo-radius);
  margin-bottom: 8px;
}

.mm-editorial-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mm-editorial-card:hover .mm-editorial-card__media img { transform: scale(1.04); }

.mm-editorial-card__copy {
  min-width: 0;
}

.mm-editorial-card__copy .mm-eyebrow {
  font-size: 9px;
}

.mm-editorial-card__title {
  margin: 5px 0 0;
  font-size: clamp(10px, 0.78vw, 13px);
  font-weight: 700;
  line-height: 1.25;
  transition: color 0.16s ease;
}

.mm-editorial-card:hover .mm-editorial-card__title { color: var(--mm-blue); }

/* --- news ticker (right) */

.mm-editorial__feed {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.mm-editorial__feed-head {
  flex: 0 0 auto;
}

.mm-ticker-wrap {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  border-top: 2px solid var(--mm-ink);
}

.mm-ticker {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.mm-ticker::-webkit-scrollbar { display: none; }

.mm-ticker__rail {
  flex: 0 0 3px;
  width: 3px;
  margin: 2px 0;
  background: var(--mm-rule);
  border-radius: 2px;
  position: relative;
  align-self: stretch;
}

.mm-ticker-wrap:not(.is-scrollable) .mm-ticker__rail { opacity: 0.35; }

.mm-ticker__thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  background: var(--mm-orange);
  border-radius: 2px;
  min-height: 28px;
  cursor: grab;
  touch-action: none;
}

.mm-ticker__thumb.is-dragging { cursor: grabbing; }

.mm-ticker__item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--mm-rule);
  transition: color 0.16s ease;
}

.mm-ticker__item:hover { color: var(--mm-blue); }

.mm-ticker__time {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--mm-ink-55);
  letter-spacing: 0.02em;
}

.mm-ticker__title {
  font-size: clamp(12px, 0.88vw, 14px);
  font-weight: 600;
  line-height: 1.35;
}

/* ===================================================== section header ==== */

.mm-section { padding-top: 0; }

.mm-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--mm-ink);
  margin-bottom: 22px;
}

.mm-section__title {
  margin: 0;
  font-family: var(--mm-font-display);
  font-size: clamp(20px, 2.1vw, 34px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mm-section__aside {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.mm-counter {
  font-family: var(--mm-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mm-ink-55);
  font-variant-numeric: tabular-nums;
}

.mm-counter b { color: var(--mm-ink); }

/* ======================================================== featured ======= */

.mm-featured__track {
  --mm-feature-visible: 5;
  display: flex;
  gap: var(--mm-gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 6px;
  max-width: 100%;
  min-width: 0;
}

.mm-featured__track::-webkit-scrollbar { display: none; }

.mm-feature {
  flex: 0 0 calc((100% - var(--mm-gutter) * (var(--mm-feature-visible) - 1)) / var(--mm-feature-visible));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: 4px;
}

.mm-feature__media {
  position: relative;
  overflow: hidden;
  background: var(--mm-wash);
  aspect-ratio: 16 / 10;
  border-radius: var(--mm-photo-radius);
}

.mm-feature__media img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mm-feature:hover .mm-feature__media img { transform: scale(1.04); }

.mm-feature__badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 4px 7px;
  background: var(--mm-paper);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-feature__body { padding-top: 10px; }

.mm-feature__body .mm-eyebrow {
  font-size: 9px;
  gap: 5px;
}

.mm-feature__body .mm-eyebrow::before {
  width: 5px;
  height: 5px;
}

.mm-feature__title {
  margin: 6px 0 0;
  font-family: var(--mm-font-display);
  font-size: clamp(11px, 0.82vw, 15px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transition: color 0.16s ease;
}

.mm-feature:hover .mm-feature__title { color: var(--mm-blue); }

.mm-feature__text {
  margin: 7px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--mm-ink-70);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================== mosaic ====== */

.mm-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-top: 30px;
}

.mm-mosaic__col {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
  min-height: 100%;
  padding: 0 var(--mm-gutter);
  border-left: 1px solid var(--mm-rule);
}

.mm-mosaic__col:first-child { padding-left: 0; border-left: 0; }
.mm-mosaic__col:last-child { padding-right: 0; }

/* Last block in each column stretches to the shared grid height. */
.mm-mosaic__col > :last-child {
  flex: 1 1 auto;
  min-height: 0;
}

.mm-mosaic__col > :last-child.mm-card {
  display: flex;
  flex-direction: column;
}

.mm-mosaic__col > :last-child.mm-card .mm-card__media {
  flex: 1 1 auto;
  min-height: 140px;
  margin-bottom: 12px;
}

.mm-mosaic__col > :last-child.mm-card .mm-card__media img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.mm-mosaic__col > :last-child.mm-card .mm-card__text,
.mm-mosaic__col > :last-child.mm-card .mm-card__meta {
  flex: 0 0 auto;
}

.mm-mosaic__col > :last-child.mm-card .mm-pill,
.mm-mosaic__col > :last-child.mm-card .mm-card__meta {
  margin-top: auto;
}

.mm-mosaic__col > :last-child.mm-stat {
  display: flex;
  flex-direction: column;
}

.mm-mosaic__col > :last-child.mm-stat .mm-stat__label {
  margin-top: auto;
  padding-top: 10px;
}

.mm-mosaic__col > :last-child.mm-read {
  display: flex;
  flex-direction: column;
}

.mm-mosaic__col > :last-child.mm-read .mm-read__excerpt {
  flex: 1 1 auto;
}

.mm-mosaic__col > :last-child.mm-read .mm-pill {
  margin-top: auto;
}

/* --- shared card anatomy ------------------------------------------- */

.mm-card { display: block; min-width: 0; }

.mm-card > .mm-eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
}

.mm-card > .mm-eyebrow + .mm-card__title {
  margin-top: 8px;
}

.mm-card__media {
  position: relative;
  overflow: hidden;
  background: var(--mm-wash);
  margin-bottom: 12px;
  border-radius: var(--mm-photo-radius);
}

.mm-card__media img {
  display: block;
  width: 100%; height: auto;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mm-card:hover .mm-card__media img { transform: scale(1.035); }

.mm-card__title {
  margin: 6px 0 0;
  font-family: var(--mm-font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  transition: color 0.16s ease;
}

.mm-card:hover .mm-card__title { color: var(--mm-blue); }

.mm-card__text {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mm-ink-70);
  text-align: justify;
  hyphens: auto;
}

.mm-card__meta {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-ink-35);
}

/* --- lead: the loudest headline in a column ------------------------ */
.mm-card--lead .mm-card__title { font-size: clamp(22px, 1.9vw, 31px); font-weight: 800; }
.mm-card--regular .mm-card__title { font-size: clamp(15px, 1.15vw, 19px); }
.mm-card--small .mm-card__title { font-size: clamp(14px, 1vw, 16px); }

/* --- poster: full-bleed issue cover with overlaid type ------------- */
.mm-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--mm-orange);
  color: var(--mm-ink);
  border-radius: var(--mm-photo-radius);
}

.mm-poster img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mm-poster:hover img { transform: scale(1.05); }

.mm-poster__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  text-align: center;
}

.mm-poster__mark { width: 78px; margin: 0 auto; }
.mm-poster__mark img { width: 100%; height: auto; object-fit: contain; }

.mm-poster__strip {
  align-self: center;
  padding: 4px 12px;
  background: var(--mm-ink);
  color: var(--mm-paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mm-poster__title {
  margin: 0;
  font-family: var(--mm-font-display);
  font-size: clamp(34px, 4.4vw, 74px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.mm-poster__date {
  font-family: var(--mm-font-display);
  font-size: clamp(24px, 2.7vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.mm-poster__rule { height: 4px; background: var(--mm-ink); margin: 10px 0; }

/* --- news list: dated single-line stories ------------------------- */
.mm-ad-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  border-top: 2px solid var(--mm-ink);
  padding-top: 14px;
}

.mm-ad-banner {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vh, 280px);
  border: 1px dashed transparent;
  border-radius: var(--mm-photo-radius);
}

.mm-ad-banner:nth-child(1) {
  background: #e8edff;
  border-color: color-mix(in srgb, var(--mm-blue) 22%, transparent);
}

.mm-ad-banner:nth-child(2) {
  background: #ffece4;
  border-color: color-mix(in srgb, var(--mm-orange) 26%, transparent);
}

.mm-ad-banner:nth-child(3) {
  background: #eceae6;
  border-color: color-mix(in srgb, var(--mm-ink) 16%, transparent);
}

.mm-ad-banner__label {
  font-family: var(--mm-font-body, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--mm-ink) 45%, transparent);
}

.mm-ad-banner:nth-child(1) .mm-ad-banner__label {
  color: color-mix(in srgb, var(--mm-blue-deep) 72%, var(--mm-ink));
}

.mm-ad-banner:nth-child(2) .mm-ad-banner__label {
  color: color-mix(in srgb, var(--mm-orange-deep) 70%, var(--mm-ink));
}

.mm-ad-banner:nth-child(3) .mm-ad-banner__label {
  color: color-mix(in srgb, var(--mm-ink) 52%, transparent);
}

.mm-news { border-top: 2px solid var(--mm-ink); }

.mm-news__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 14px;
}

.mm-news__head h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--mm-font-display);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mm-news__item { display: block; padding: 12px 0; border-top: 1px solid var(--mm-rule); }

.mm-news__item:hover .mm-news__title { color: var(--mm-blue); }

.mm-news__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mm-news__title {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  transition: color 0.16s ease;
}

.mm-news__date {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mm-ink-35);
  font-variant-numeric: tabular-nums;
}

.mm-news__text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mm-ink-70);
  overflow-wrap: anywhere;
}

/* --- external link card: video, podcast, marketplace -------------- */
.mm-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 6px 13px;
  border: 1.5px solid var(--mm-ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.mm-card:hover .mm-pill { background: var(--mm-ink); color: var(--mm-paper); }
.mm-pill svg { width: 9px; height: 9px; }

/* --- reading card: long-read excerpt ------------------------------ */
.mm-read {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--mm-wash);
  color: inherit;
  text-decoration: none;
}

.mm-read:hover .mm-read__title { color: var(--mm-blue); }

.mm-read__title {
  margin: 8px 0 2px;
  font-family: var(--mm-font-display);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mm-read__by {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mm-rule);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
}

.mm-read__excerpt {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mm-ink-70);
}

.mm-read:hover .mm-pill { background: var(--mm-ink); color: var(--mm-paper); }

/* --- promo block: house / partner slot ---------------------------- */
.mm-promo {
  display: block;
  padding: 22px 20px 24px;
  background: var(--mm-blue);
  color: #fff;
}

.mm-promo--orange { background: var(--mm-orange); color: var(--mm-ink); }
.mm-promo--ink { background: var(--mm-ink); color: #fff; }

.mm-promo--podcasts {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  padding: 22px 20px 24px;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--mm-orange) 28%, transparent), transparent 55%),
    linear-gradient(145deg, #2a2220 0%, var(--mm-ink) 48%, #1a1412 100%);
  color: #fff;
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mm-promo--podcasts::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 120px;
  height: 120px;
  border: 1px solid color-mix(in srgb, var(--mm-orange) 35%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.mm-promo--podcasts:hover {
  border-color: color-mix(in srgb, var(--mm-orange) 55%, transparent);
}

.mm-promo--podcasts .mm-eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.mm-promo--podcasts .mm-promo__wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.mm-promo--podcasts .mm-promo__bar {
  flex: 1 1 0;
  min-width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--mm-orange) 0%, color-mix(in srgb, var(--mm-orange) 55%, #fff) 100%);
  transform-origin: bottom;
  animation: mm-promo-wave 1.8s ease-in-out infinite;
}

.mm-promo--podcasts .mm-promo__bar:nth-child(1) { height: 38%; animation-delay: 0s; }
.mm-promo--podcasts .mm-promo__bar:nth-child(2) { height: 72%; animation-delay: 0.12s; }
.mm-promo--podcasts .mm-promo__bar:nth-child(3) { height: 52%; animation-delay: 0.24s; }
.mm-promo--podcasts .mm-promo__bar:nth-child(4) { height: 88%; animation-delay: 0.08s; }
.mm-promo--podcasts .mm-promo__bar:nth-child(5) { height: 64%; animation-delay: 0.2s; }
.mm-promo--podcasts .mm-promo__bar:nth-child(6) { height: 46%; animation-delay: 0.32s; }
.mm-promo--podcasts .mm-promo__bar:nth-child(7) { height: 78%; animation-delay: 0.16s; }

@keyframes mm-promo-wave {
  0%, 100% { transform: scaleY(0.55); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}

.mm-promo--podcasts .mm-promo__title,
.mm-promo--podcasts .mm-promo__text {
  position: relative;
  z-index: 1;
}

.mm-promo--podcasts .mm-promo__text {
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

.mm-promo--podcasts .mm-btn {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  margin-top: 18px;
  background: var(--mm-orange);
  border-color: var(--mm-orange);
  color: var(--mm-ink);
}

.mm-promo--podcasts:hover .mm-btn {
  background: #fff;
  border-color: #fff;
  color: var(--mm-ink);
}

@media (prefers-reduced-motion: reduce) {
  .mm-promo--podcasts .mm-promo__bar { animation: none; }
}

.mm-promo__mark { height: 20px; width: auto; display: block; margin-bottom: 16px; }

.mm-promo__title {
  margin: 0;
  font-family: var(--mm-font-display);
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mm-promo__text {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0.85;
}

.mm-promo .mm-btn {
  margin-top: 18px;
  background: var(--mm-paper);
  border-color: var(--mm-paper);
  color: var(--mm-ink);
}

.mm-promo .mm-btn:hover { background: var(--mm-ink); border-color: var(--mm-ink); color: #fff; }
.mm-promo--ink .mm-btn:hover { background: var(--mm-orange); border-color: var(--mm-orange); color: var(--mm-ink); }

/* --- quote / editor column ---------------------------------------- */
.mm-quote {
  display: block;
  padding: 20px;
  border: 2px solid var(--mm-ink);
}

.mm-rubric-intro {
  margin-bottom: clamp(24px, 3vw, 40px);
  max-width: none;
}

.mm-quote--static {
  color: inherit;
  text-decoration: none;
}

.mm-quote__text {
  margin: 14px 0 0;
  font-family: var(--mm-font-display);
  font-size: clamp(17px, 1.35vw, 23px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.mm-quote__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--mm-rule);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
}

.mm-quote__avatar {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mm-orange);
  display: grid;
  place-items: center;
}

.mm-quote__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* --- author avatars ------------------------------------------------ */
.mm-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mm-author-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mm-rule);
}

.mm-author__name {
  line-height: 1.2;
}

.mm-article__meta .mm-author {
  gap: 12px;
}

.mm-article__meta .mm-author-avatar {
  width: 64px;
  height: 64px;
}

.mm-rubric-lead__meta .mm-author-avatar {
  width: 32px;
  height: 32px;
}

.mm-rubric-card__meta .mm-author-avatar {
  width: 28px;
  height: 28px;
}

.mm-read__by .mm-author-avatar {
  width: 32px;
  height: 32px;
}

.mm-quote__avatar .mm-author-avatar {
  width: 34px;
  height: 34px;
}

.mm-rubric-card__meta,
.mm-rubric-lead__meta {
  align-items: center;
}

/* --- numbers / stat card ------------------------------------------ */
.mm-stat { display: block; border-top: 4px solid var(--mm-blue); padding-top: 12px; }

.mm-stat__value {
  font-family: var(--mm-font-display);
  font-size: clamp(38px, 3.6vw, 62px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--mm-blue);
}

.mm-stat__label {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--mm-ink-70);
}

/* ======================================================= pagination ====== */

.mm-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 44px 0 12px;
  margin-top: 34px;
  border-top: 1px solid var(--mm-rule);
  flex-wrap: wrap;
}

.mm-pager__link {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--mm-ink-55);
  border-radius: 0;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.mm-pager__link:hover { background: var(--mm-wash); color: var(--mm-ink); }
.mm-pager__link.is-current { background: var(--mm-ink); color: #fff; }
.mm-pager__gap { color: var(--mm-ink-35); padding: 0 2px; }

.mm-pager__side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
  padding: 0 10px;
  transition: color 0.16s ease;
}

.mm-pager__side:hover { color: var(--mm-blue); }
.mm-pager__side[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }

/* =========================================================== footer ====== */

.mm-footer {
  margin-top: 56px;
  background: var(--mm-ink);
  color: #fff;
  padding: 44px 0 26px;
}

.mm-footer a { color: rgba(255, 255, 255, 0.72); transition: color 0.16s ease; }
.mm-footer a:hover { color: var(--mm-orange); }

.mm-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.mm-footer__brand { max-width: 320px; }
.mm-footer__brand img { height: 26px; width: auto; display: block; }

.mm-footer__slogan {
  margin: 16px 0 0;
  font-family: var(--mm-font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.mm-footer__nav {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.mm-footer__col h3 {
  margin: 0 0 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.mm-footer__col ul { list-style: none; margin: 0; padding: 0; }
.mm-footer__col li + li { margin-top: 9px; }
.mm-footer__col a { font-size: 13.5px; }

.mm-footer__sub {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  max-width: 300px;
}

.mm-footer__sub input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}

.mm-footer__sub input::placeholder { color: rgba(255, 255, 255, 0.4); }
.mm-footer__sub input:focus { outline: none; border-color: var(--mm-orange); }

.mm-footer__sub button {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--mm-orange);
  color: var(--mm-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.mm-footer__sub button:hover { background: var(--mm-blue); color: #fff; }

.mm-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.mm-footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }

.mm-age {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.mm-social { display: flex; gap: 8px; }

.mm-social a {
  display: inline-grid;
  place-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.mm-social a:hover {
  background: var(--mm-orange);
  border-color: var(--mm-orange);
  color: var(--mm-ink);
}

/* ================================================== floating layers ====== */

.mm-teaser {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 1030;
  width: 268px;
  background: var(--mm-paper);
  border: 1px solid var(--mm-rule);
  box-shadow: 0 18px 40px rgba(33, 25, 25, 0.16);
  transform: translateY(140%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.mm-teaser.is-visible { transform: translateY(0); }
.mm-teaser.is-dismissed { opacity: 0; pointer-events: none; }

.mm-teaser__body { display: flex; gap: 12px; padding: 12px; align-items: center; }
.mm-teaser__media { flex: 0 0 66px; }
.mm-teaser__media img { display: block; width: 66px; height: 52px; object-fit: cover; border-radius: var(--mm-photo-radius); }

.mm-teaser__title {
  margin: 5px 0 0;
  font-family: var(--mm-font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.mm-teaser:hover .mm-teaser__title { color: var(--mm-blue); }

.mm-close {
  position: absolute;
  top: -11px; right: -11px;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mm-rule);
  border-radius: 50%;
  background: var(--mm-paper);
  color: var(--mm-ink);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.mm-close:hover { background: var(--mm-ink); color: #fff; }
.mm-close svg { width: 9px; height: 9px; }

.mm-cookie {
  position: fixed;
  left: 50%; bottom: 16px;
  width: min(560px, calc(100vw - 32px));
  box-sizing: border-box;
  z-index: 1032;
  transform: translate(-50%, 160%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--mm-ink);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 14px 34px rgba(33, 25, 25, 0.2);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: min(560px, calc(100vw - 32px));
}

.mm-cookie.is-visible { transform: translate(-50%, 0); }
.mm-cookie a { color: var(--mm-orange); text-decoration: underline; }

.mm-cookie button {
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--mm-orange);
  color: var(--mm-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.mm-cookie button:hover { background: #fff; }

/* ==================================================== responsive ========= */

@media (max-width: 1399.98px) {
  .mm-featured__track { --mm-feature-visible: 5; }
}

@media (max-width: 1199.98px) {
  .mm-editorial__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    grid-template-rows: auto auto auto;
  }

  .mm-editorial__favs {
    grid-column: 1;
    grid-row: 1;
  }

  .mm-editorial__feed {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    height: auto;
  }

  .mm-editorial__main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .mm-editorial__cards {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mm-ticker-wrap { max-height: 360px; }

  .mm-featured__track { --mm-feature-visible: 4; }

  .mm-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .mm-mosaic__col:nth-child(odd) { padding-left: 0; border-left: 0; }
  .mm-mosaic__col:last-child { padding-right: var(--mm-gutter); }
  .mm-footer__nav { gap: 36px; }
}

@media (max-width: 991.98px) {
  .mm-editorial__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .mm-editorial__favs,
  .mm-editorial__main,
  .mm-editorial__cards,
  .mm-editorial__feed {
    grid-column: 1;
    grid-row: auto;
  }

  .mm-editorial__favs {
    align-self: start;
    display: flex;
    overflow: visible;
  }

  .mm-editorial__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-ticker-wrap { max-height: 320px; }

  .mm-rubrics { --mm-rubrics-toggle-h: 30px; --mm-rubrics-border: 2px; }

  .mm-rubrics__toggle {
    min-width: auto;
    padding: 0 14px 2px;
    font-size: 14px;
  }

  .mm-rubrics__link { font-size: 14px; }

  .mm-bar .mm-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
  }

  .mm-bar__logo {
    grid-column: 1;
    flex: none;
  }

  .mm-bar__logo img {
    display: block;
    height: 18px;
    width: auto;
    max-width: 92px;
  }

  .mm-bar__nav {
    grid-column: 2;
    justify-content: center;
    gap: clamp(8px, 2.4vw, 14px);
    font-size: clamp(9px, 2.5vw, 11px);
    letter-spacing: 0.05em;
  }

  .mm-bar__actions {
    grid-column: 3;
  }

  .mm-bar #mmSearchToggle {
    gap: 0;
    padding: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    justify-content: center;
  }

  .mm-bar #mmSearchToggle .mm-btn__label {
    display: none;
  }

  .mm-bar #mmSearchToggle .mm-btn__icon {
    margin: 0;
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 767.98px) {
  .mm-rubrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    left: 0;
    right: 0;
    width: auto;
  }

  .mm-rubrics.is-anchored {
    left: 0;
    right: 0;
    width: auto;
  }

  .mm-rubrics__panel {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mm-rubrics__list {
    padding-inline: 12px;
    column-gap: 16px;
  }

  .mm-rubrics__link {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mm-mosaic { grid-template-columns: minmax(0, 1fr); }
  .mm-mosaic__col { padding: 0; border-left: 0; min-height: 0; }
  .mm-mosaic__col > :last-child { flex: none; }
  .mm-mosaic__col > :last-child.mm-card { display: block; }
  .mm-mosaic__col > :last-child.mm-card .mm-card__media,
  .mm-mosaic__col > :last-child.mm-card .mm-card__media img {
    flex: none;
    min-height: 0;
    height: auto;
  }
  .mm-mosaic__col > :last-child.mm-stat { display: block; }
  .mm-mosaic__col > :last-child.mm-stat .mm-stat__label { margin-top: 10px; padding-top: 0; }
  .mm-mosaic__col > :last-child.mm-read { display: block; }
  .mm-mosaic__col > :last-child.mm-read .mm-read__excerpt { flex: none; }
  .mm-mosaic__col:last-child { padding-right: 0; }
  .mm-mosaic__col + .mm-mosaic__col { padding-top: 30px; border-top: 1px solid var(--mm-rule); }
  .mm-feature { flex: 0 0 82%; }
  .mm-teaser { display: none; }
  .mm-section__head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .mm-card__text { text-align: left; }
  .mm-footer { margin-top: 40px; }
}

@media (max-width: 575.98px) {
  .mm-editorial__cards { grid-template-columns: minmax(0, 1fr); }

  .mm-bar .mm-shell { gap: 6px 8px; }

  .mm-bar__logo img {
    height: 16px;
    max-width: 80px;
  }

  .mm-bar__nav { gap: 7px; }

  .mm-bar #mmSearchToggle {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .mm-bar, .mm-teaser, .mm-cookie { display: none !important; }
}

/* ========================================================= rubric pages === */

.mm-rubric-page .mm-bar { position: sticky; top: 0; }

.mm-rubric-hero {
  background: var(--mm-orange);
  color: var(--mm-ink);
  padding: 28px 0 34px;
  border-bottom: 3px solid var(--mm-ink);
}

.mm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(33, 25, 25, 0.65);
}

.mm-breadcrumb a:hover { color: var(--mm-blue); }

.mm-rubric-hero__title {
  margin: 0;
  font-family: var(--mm-font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 14ch;
}

.mm-rubric-hero__desc {
  margin: 14px 0 0;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(33, 25, 25, 0.78);
}

.mm-section--rubric { padding-top: 36px; }

.mm-rubric-lead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px 24px;
  align-items: start;
  margin-bottom: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--mm-rule);
}

.mm-rubric-lead:hover .mm-rubric-lead__title { color: var(--mm-blue); }

.mm-rubric-lead--text {
  grid-template-columns: minmax(0, 1fr);
}

.mm-rubric-lead__media {
  width: clamp(280px, 40vw, 520px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mm-wash);
  border-radius: var(--mm-photo-radius);
}

.mm-rubric-lead__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-rubric-lead__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0;
  min-width: 0;
}

.mm-rubric-lead__title {
  margin: 10px 0 0;
  font-family: var(--mm-font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.mm-rubric-lead__text {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--mm-ink-70);
}

.mm-rubric-lead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
}

.mm-rubric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mm-rubric-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-top: 1px solid var(--mm-rule);
  padding-top: 12px;
}

.mm-rubric-card:hover .mm-rubric-card__title { color: var(--mm-blue); }

.mm-rubric-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--mm-wash);
  margin-bottom: 10px;
  border-radius: var(--mm-photo-radius);
}

.mm-rubric-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-rubric-card__media--empty {
  background: linear-gradient(135deg, var(--mm-wash) 0%, rgba(70, 33, 255, 0.08) 100%);
}

.mm-rubric-card__title {
  margin: 0;
  font-family: var(--mm-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.mm-rubric-card__text {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--mm-ink-70);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mm-rubric-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
  align-items: center;
}

.mm-rubric-empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  color: var(--mm-ink-55);
}

.mm-section--rubric-nav {
  padding-top: 10px;
  padding-bottom: 48px;
}

.mm-rubric-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
}

.mm-rubric-nav a {
  padding: 8px 14px;
  border: 1px solid var(--mm-rule);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.mm-rubric-nav a:hover,
.mm-rubric-nav a.is-current {
  background: var(--mm-orange);
  border-color: var(--mm-ink);
  color: var(--mm-ink);
}

.mm-rubrics--bar {
  position: relative;
  right: auto;
  bottom: auto;
}

.mm-rubrics--bar .mm-rubrics__panel {
  right: 0;
  left: auto;
}

.mm-rubrics__link.is-current {
  font-weight: 800;
  background: rgba(33, 25, 25, 0.08);
}

@media (max-width: 1399.98px) {
  .mm-rubric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .mm-rubric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .mm-rubric-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .mm-rubric-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ========================================================= article pages === */

.mm-article-page {
  overflow-x: clip;
}

.mm-article-page .mm-bar { position: sticky; top: 0; }

.mm-article-page .mm-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: min(var(--mm-shell-max), 100%);
  margin-inline: auto;
  padding-inline: var(--mm-shell-pad);
}

.mm-article-page main .mm-article > .mm-shell.mm-article__body,
.mm-article-page main .mm-article > .mm-shell:has(> .mm-article__content) {
  box-sizing: border-box;
  width: 100%;
  max-width: min(var(--mm-shell-max), 100%);
  margin-inline: auto;
  margin-block: 28px 56px;
  padding-inline: var(--mm-shell-pad);
  min-width: 0;
  overflow: hidden;
}

.mm-article {
  --mm-article-aside: clamp(240px, 36%, 460px);
  --mm-article-gap: clamp(18px, 2.8vw, 32px);
  min-width: 0;
  max-width: 100%;
}

.mm-article__head {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--mm-rule);
}

.mm-article__head-inner {
  min-width: 0;
  max-width: 100%;
}

.mm-article__title {
  margin: 12px 0 0;
  font-family: var(--mm-font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

.mm-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
  align-items: center;
}

.mm-article__body {
  overflow: hidden;
}

.mm-article__body::after {
  content: "";
  display: table;
  clear: both;
}

.mm-article__hero {
  float: left;
  width: var(--mm-article-aside);
  max-width: min(var(--mm-article-aside), calc(100% - var(--mm-article-gap)));
  margin: 0 var(--mm-article-gap) 1.1rem 0;
  border-radius: var(--mm-photo-radius);
  overflow: hidden;
  background: var(--mm-wash);
}

.mm-article__hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 620px);
  object-fit: cover;
  object-position: center top;
}

.mm-article__content {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--mm-ink);
  overflow-wrap: break-word;
}

.mm-article > .mm-shell:has(> .mm-article__content) .mm-article__content {
  margin: 0;
}

.mm-article__content p {
  margin: 0 0 1.15em;
}

.mm-article__content p:last-child { margin-bottom: 0; }

.mm-article__content h2,
.mm-article__content h3 {
  margin: 1.6em 0 0.6em;
  font-family: var(--mm-font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.mm-article__content h2 { font-size: 1.35rem; }
.mm-article__content h3 { font-size: 1.1rem; }

.mm-article__content img {
  display: block;
  clear: both;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
}

.mm-article__content .mm-article-media {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1rem 1.35rem;
  align-items: start;
  margin: 0 0 1.35rem;
  clear: both;
}

.mm-article__content .mm-article-media--solo {
  grid-template-columns: 200px;
}

.mm-article__content .mm-article-media__figure {
  margin: 0;
}

.mm-article__content .mm-article-media__figure img {
  width: 200px;
  height: 150px;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border-radius: var(--mm-photo-radius, 6px);
}

.mm-article__content .mm-article-media__body {
  min-width: 0;
  font-size: inherit;
  line-height: inherit;
}

.mm-article__content .mm-article-media__body > :first-child {
  margin-top: 0;
}

.mm-article__content .mm-article-media__body > :last-child {
  margin-bottom: 0;
}

.mm-article__content .mm-article-media__body p {
  margin: 0 0 0.85em;
}

.mm-article__content .alignleft,
.mm-article__content .alignright {
  float: none !important;
  margin: 0 !important;
}

.mm-article__content figure,
.mm-article__content .wp-block-embed,
.mm-article__content iframe {
  clear: both;
  max-width: 100%;
}

.mm-article__content blockquote {
  margin: 1.5em 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--mm-orange);
  color: var(--mm-ink-70);
  font-style: italic;
}

.mm-article__content ul,
.mm-article__content ol {
  margin: 0 0 1.15em;
  padding-left: 1.4em;
}

.mm-article__content a {
  color: var(--mm-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mm-article__content a:hover { color: var(--mm-orange); }

.mm-article__related {
  clear: both;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mm-article__related-heading {
  margin: 0 0 1rem;
  font-family: var(--mm-font-display, "Unbounded", sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.mm-article-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mm-article-related__item {
  min-width: 0;
}

.mm-article-related__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  text-decoration: none;
  color: var(--mm-ink);
}

.mm-article-related__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  background: #eee;
}

.mm-article-related__thumb--placeholder {
  object-fit: contain;
  background: #ebe9e4;
}

.mm-article-related__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.mm-article-related__eyebrow {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-muted, #666);
}

.mm-article-related__title {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 991.98px) {
  .mm-article-related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .mm-article-related {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .mm-article-related__item {
    flex: 0 0 72%;
    max-width: 260px;
    scroll-snap-align: start;
  }

  .mm-article-related__title {
    font-size: 0.8125rem;
  }
}

.mm-article-related__link:hover .mm-article-related__title {
  color: var(--mm-orange);
}

.mm-article__back-wrap {
  margin: 0 0 8px;
  padding-top: 8px;
}

.mm-article__back {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-article__back:hover { color: var(--mm-blue); }

.mm-article-page .mm-footer {
  margin-top: 24px;
}

@media (max-width: 767.98px) {
  .mm-article__content { font-size: 1rem; }

  .mm-article__content .mm-article-media,
  .mm-article__content .mm-article-media--solo {
    grid-template-columns: 1fr;
  }

  .mm-article__content .mm-article-media__figure img {
    width: 100%;
    max-width: 280px;
    height: auto;
    max-height: 210px;
  }

  .mm-article__hero {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 22px;
  }

  .mm-article__hero img {
    max-height: none;
  }
}

/* ===================================================== static pages (about, contacts) ==== */

.mm-page .mm-bar { position: sticky; top: 0; }

.mm-page-hero {
  background: var(--mm-orange);
  color: var(--mm-ink);
  padding: 28px 0 32px;
  border-bottom: 3px solid var(--mm-ink);
}

.mm-page-hero__title {
  margin: 0;
  font-family: var(--mm-font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 16ch;
}

.mm-page-hero__desc {
  margin: 14px 0 0;
  max-width: 48ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(33, 25, 25, 0.78);
}

.mm-section--page { padding-top: 40px; padding-bottom: 56px; }

.mm-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.mm-page-layout--split { margin-top: 40px; }

.mm-page-layout--contacts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 40px;
}

.mm-page-layout--contacts-grid .mm-page-main {
  grid-column: 1 / 3;
  padding-right: clamp(12px, 2vw, 28px);
}

.mm-page-layout--contacts-grid .mm-page-panel {
  grid-column: 3;
  width: 100%;
  min-width: 0;
}

.mm-page-main {
  min-width: 0;
}

.mm-page-lead {
  margin: 0 0 1.1em;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--mm-ink);
}

.mm-page-meta {
  margin: 0 0 2em;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--mm-rule);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--mm-ink-70);
}

.mm-page-block {
  margin-bottom: 2.2em;
}

.mm-page-block__title {
  margin: 10px 0 12px;
  font-family: var(--mm-font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mm-page-block p,
.mm-page-main > p {
  margin: 0 0 1em;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--mm-ink-70);
}

.mm-page-block p:last-child,
.mm-page-main > p:last-child { margin-bottom: 0; }

.mm-page-block a,
.mm-page-main a {
  color: var(--mm-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mm-page-block a:hover,
.mm-page-main a:hover { color: var(--mm-orange); }

.mm-page-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--mm-rule);
}

.mm-page-metric {
  flex: 1 1 0;
  min-width: 100px;
  padding: 0 24px;
  border-left: 1px solid var(--mm-rule);
}

.mm-page-metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.mm-page-metric__num {
  display: block;
  font-family: var(--mm-font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--mm-blue);
}

.mm-page-metric__label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
}

.mm-page-panel {
  position: sticky;
  top: calc(var(--mm-bar-h) + 20px);
  padding: 24px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: calc(var(--mm-photo-radius) + 2px);
  box-shadow: 0 1px 0 rgba(33, 25, 25, 0.04), 0 12px 40px rgba(33, 25, 25, 0.06);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.mm-page-panel--compact { padding: 20px 24px; }

.mm-page-panel__editor {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--mm-rule);
}

.mm-page-panel__avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--mm-orange);
}

.mm-page-panel__role {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
}

.mm-page-panel__name {
  display: block;
  margin-top: 4px;
  font-family: var(--mm-font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.mm-page-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mm-page-panel__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mm-rule);
}

.mm-page-panel__item:last-child { border-bottom: 0; padding-bottom: 0; }
.mm-page-panel__item:first-child { padding-top: 0; }

.mm-page-panel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(70, 33, 255, 0.08);
  color: var(--mm-blue);
}

.mm-page-panel__icon--mail { background: rgba(70, 33, 255, 0.08); color: var(--mm-blue); }
.mm-page-panel__icon--briefcase { background: rgba(248, 99, 55, 0.1); color: #d94e28; }
.mm-page-panel__icon--pin { background: rgba(248, 99, 55, 0.1); color: #d94e28; }
.mm-page-panel__icon--user { background: rgba(33, 25, 25, 0.06); color: var(--mm-ink); }
.mm-page-panel__icon--telegram { background: rgba(34, 158, 217, 0.12); color: #229ED9; }
.mm-page-panel__icon--vk { background: rgba(0, 119, 255, 0.1); color: #0077FF; }

.mm-page-panel__icon .mm-page-icon { display: block; }

.mm-page-panel__copy { min-width: 0; }

.mm-page-panel__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
}

.mm-page-panel__value {
  display: block;
  margin-top: 3px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--mm-ink);
}

.mm-page-panel__value a {
  color: var(--mm-blue);
  text-decoration: none;
  word-break: break-word;
}

.mm-page-panel__value a:hover {
  color: var(--mm-orange);
  text-decoration: underline;
}

.mm-page-icon {
  display: block;
  flex-shrink: 0;
}

.mm-page-icon--arrow {
  margin-left: auto;
  color: var(--mm-ink-35);
  transition: transform 0.18s ease, color 0.18s ease;
}

.mm-page-social {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--mm-rule);
}

.mm-page-social__label {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
}

.mm-page-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-page-social__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--mm-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.mm-page-social__btn:hover {
  background: var(--mm-blue);
  color: #fff;
  transform: translateY(-1px);
}

.mm-page-social__btn .mm-page-icon { width: 18px; height: 18px; }

.mm-contact-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mm-contact-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  background: #fff;
  border-radius: calc(var(--mm-photo-radius) + 2px);
  box-shadow: 0 1px 0 var(--mm-rule);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mm-contact-tile:hover {
  box-shadow: 0 8px 28px rgba(33, 25, 25, 0.08);
  transform: translateY(-2px);
}

.mm-contact-tile:hover .mm-page-icon--arrow {
  color: var(--mm-blue);
  transform: translateX(3px);
}

.mm-contact-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(70, 33, 255, 0.08);
  color: var(--mm-blue);
}

.mm-contact-tile__icon .mm-page-icon { display: block; }

.mm-contact-tile__icon--mail { background: rgba(70, 33, 255, 0.08); color: var(--mm-blue); }
.mm-contact-tile__icon--phone { background: rgba(33, 25, 25, 0.06); color: var(--mm-ink); }
.mm-contact-tile__icon--briefcase { background: rgba(248, 99, 55, 0.1); color: #d94e28; }
.mm-contact-tile__icon--telegram { background: rgba(34, 158, 217, 0.14); color: #229ED9; }
.mm-contact-tile__icon--vk { background: rgba(0, 119, 255, 0.1); color: #0077FF; }

.mm-contact-tile__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.mm-contact-tile__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-ink-55);
}

.mm-contact-tile__value {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mm-ink);
  word-break: break-word;
}

.mm-page-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 36px 0 0;
  padding: 16px 18px;
  border-radius: calc(var(--mm-photo-radius) + 2px);
  background: rgba(70, 33, 255, 0.05);
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--mm-ink-70);
}

.mm-page-tip .mm-page-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--mm-blue);
}

.mm-page-tip a {
  color: var(--mm-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mm-page-tip a:hover { color: var(--mm-orange); }

@media (max-width: 991.98px) {
  .mm-page-layout { grid-template-columns: 1fr; }
  .mm-page-layout--contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mm-page-layout--contacts-grid .mm-page-main {
    grid-column: 1 / -1;
    padding-right: 0;
  }
  .mm-page-layout--contacts-grid .mm-page-panel {
    grid-column: 2;
  }
  .mm-page-panel { position: static; }
  .mm-contact-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .mm-contact-board { grid-template-columns: 1fr; }
  .mm-page-layout--contacts-grid,
  .mm-page-layout--contacts-grid .mm-page-main,
  .mm-page-layout--contacts-grid .mm-page-panel {
    grid-column: 1 / -1;
  }
  .mm-page-metrics { flex-direction: column; gap: 18px; }
  .mm-page-metric {
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--mm-rule);
    padding-top: 16px;
  }
  .mm-page-metric:first-child { border-top: 0; padding-top: 0; }
  .mm-page-social__links { flex-direction: column; }
  .mm-page-social__btn { justify-content: center; }
}

.mm-article__caption { padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--mm-ink-70); overflow-wrap: anywhere; white-space: pre-line; }
