:root {
  --mlh-bg: #f7f2ef;
  --mlh-paper: #fffaf7;
  --mlh-paper-soft: #f1e7e2;
  --mlh-line: #d8c9c7;
  --mlh-text: #2f2330;
  --mlh-muted: #6b5d65;
  --mlh-berry: #6e214f;
  --mlh-berry-deep: #421736;
  --mlh-clay: #c98a7d;
  --mlh-rose: #ead8d2;
  --mlh-shadow: 0 28px 60px rgba(66, 23, 54, 0.12);
  --mlh-shadow-soft: 0 16px 34px rgba(47, 35, 48, 0.08);
  --mlh-radius: 28px;
  --mlh-radius-sm: 18px;
}

html {
  background:
    radial-gradient(circle at top left, rgba(201, 138, 125, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf6f3 0%, #f7f2ef 55%, #fffaf7 100%);
  scroll-behavior: smooth;
}

body.mlh-body {
  background: transparent;
  color: var(--mlh-text);
  font-family: "Source Sans 3", Arial, sans-serif;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title {
  color: var(--mlh-berry) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.03em;
}

a {
  color: var(--mlh-berry);
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--mlh-berry-deep);
}

img {
  max-width: 100%;
  height: auto;
}

.mlh-mobile-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.9rem 1rem;
  background: rgba(251, 246, 243, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 201, 199, 0.75);
}

.mlh-mobile-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mlh-mobile-header__brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--mlh-berry);
  line-height: 1.05;
}

.mlh-mobile-header__brand strong {
  font-size: 1.15rem;
}

.mlh-mobile-header__brand span {
  color: var(--mlh-muted);
  font-size: 0.82rem;
}

.mlh-mobile-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--mlh-berry);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mlh-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mlh-mobile-nav__panel {
  position: absolute;
  right: 1rem;
  margin-top: 0.75rem;
  width: min(88vw, 22rem);
  border-radius: 1.3rem;
  background: rgba(255, 250, 247, 0.98);
  border: 1px solid rgba(216, 201, 199, 0.9);
  box-shadow: var(--mlh-shadow);
  padding: 1rem;
}

.mlh-mobile-nav__group + .mlh-mobile-nav__group {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--mlh-line);
}

.mlh-mobile-nav__link {
  display: block;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mlh-mobile-nav__children {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-left: 0.35rem;
}

.mlh-mobile-nav__meta {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--mlh-line);
  color: var(--mlh-muted);
  font-size: 0.92rem;
}

.mlh-main {
  padding-bottom: 3rem;
}

.mlh-eyebrow {
  display: inline-block;
  color: var(--mlh-clay);
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mlh-hero,
.mlh-page-hero {
  padding-top: 3.2rem;
  padding-bottom: 1.5rem;
}

.mlh-hero__media,
.mlh-photo-card,
.mlh-feature-card__media,
.mlh-category-card__media {
  overflow: hidden;
  border-radius: var(--mlh-radius);
  box-shadow: var(--mlh-shadow);
}

.mlh-hero__media img,
.mlh-photo-card img,
.mlh-feature-card__media img,
.mlh-category-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mlh-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mlh-hero__title,
.mlh-page-title {
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  line-height: 0.95;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.mlh-hero__lead,
.mlh-page-lead,
.mlh-section__lead {
  color: var(--mlh-muted);
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 42rem;
}

.mlh-hero__card,
.mlh-contact-panel,
.mlh-sidecard,
.mlh-resource-card,
.mlh-article-panel,
.mlh-mini-panel,
.mlh-feature-card,
.mlh-category-card,
.mlh-listing-card {
  background: rgba(255, 250, 247, 0.92);
  border: 1px solid rgba(216, 201, 199, 0.82);
  border-radius: var(--mlh-radius);
  box-shadow: var(--mlh-shadow-soft);
}

.mlh-hero__card,
.mlh-contact-panel,
.mlh-sidecard,
.mlh-resource-card,
.mlh-mini-panel {
  padding: 1.5rem;
}

.mlh-article-panel {
  padding: 2rem;
}

.mlh-article-panel--wide {
  padding: 2.25rem;
}

.mlh-feature-card {
  overflow: hidden;
}

.mlh-feature-card__body {
  padding: 1.5rem;
}

.mlh-feature-card__body h2 {
  font-size: 2rem;
  margin-top: 0.9rem;
  margin-bottom: 0.8rem;
}

.mlh-feature-card__body p {
  color: var(--mlh-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.mlh-feature-card--offset {
  margin-top: 2.5rem;
}

.mlh-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mlh-contact-grid__label,
.mlh-rail__meta-label,
.mlh-resource-card__eyebrow,
.mlh-footer__eyebrow,
.mlh-sidecard__eyebrow,
.mlh-listing-card__eyebrow {
  display: inline-block;
  color: var(--mlh-clay);
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mlh-hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.mlh-button {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mlh-berry), #8f3766);
  box-shadow: 0 16px 30px rgba(110, 33, 79, 0.18);
  color: #fff !important;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0.95rem 1.35rem;
  text-transform: uppercase;
}

.mlh-button:hover {
  color: #fff !important;
  transform: translateY(-1px);
}

.mlh-button--ghost {
  background: transparent;
  border: 1px solid rgba(110, 33, 79, 0.18);
  box-shadow: none;
  color: var(--mlh-berry) !important;
}

.mlh-button--ghost:hover {
  color: var(--mlh-berry-deep) !important;
  background: rgba(110, 33, 79, 0.05);
}

.mlh-quote-band {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mlh-quote-band__inner {
  padding: 2.2rem 2rem;
  border-top: 1px solid rgba(201, 138, 125, 0.45);
  border-bottom: 1px solid rgba(201, 138, 125, 0.25);
  text-align: center;
}

.mlh-quote-band__inner p {
  color: var(--mlh-berry);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-style: italic;
  line-height: 1.2;
  margin: 0 auto;
  max-width: 50rem;
}

.mlh-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mlh-section--deep {
  background: linear-gradient(180deg, var(--mlh-berry-deep), var(--mlh-berry));
  color: rgba(255, 255, 255, 0.92);
}

.mlh-section--deep h1,
.mlh-section--deep h2,
.mlh-section--deep h3,
.mlh-section--deep h4,
.mlh-section--deep p,
.mlh-section--deep li,
.mlh-section--deep a {
  color: inherit !important;
}

.mlh-section__title {
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1;
  margin-top: 0.75rem;
  margin-bottom: 0.9rem;
}

.mlh-mini-panel {
  height: 100%;
}

.mlh-mini-panel .mlh-content__paragraph,
.mlh-mini-panel .mlh-content__heading {
  color: inherit;
}

.mlh-breadcrumbs {
  margin-bottom: 1rem;
}

.mlh-breadcrumbs ul {
  flex-wrap: wrap;
}

.mlh-breadcrumbs a,
.mlh-breadcrumbs span {
  color: var(--mlh-muted);
  font-size: 0.88rem;
}

.mlh-sidecard h3 {
  font-size: 1.75rem;
  margin: 0.7rem 0 0.65rem;
}

.mlh-sidecard p {
  color: var(--mlh-muted);
  line-height: 1.75;
}

.mlh-sidecard__meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mlh-line);
}

.mlh-contact-panel {
  display: grid;
  gap: 1rem;
}

.mlh-contact-panel p,
.mlh-resource-card p,
.mlh-category-card p,
.mlh-listing-card p {
  color: var(--mlh-muted);
  line-height: 1.7;
}

.mlh-resource-card,
.mlh-category-card,
.mlh-listing-card {
  height: 100%;
  padding: 1.5rem;
}

.mlh-resource-card h2,
.mlh-category-card h2,
.mlh-listing-card h3 {
  font-size: 2rem;
  margin: 0.7rem 0;
}

.mlh-category-card__body {
  padding-top: 1.2rem;
}

.mlh-category-card--horizontal .mlh-category-card__media img {
  aspect-ratio: 16 / 10;
}

.mlh-category-card--minimal {
  background: transparent;
  box-shadow: none;
  border-style: dashed;
}

.mlh-toc {
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.4rem;
  border-radius: var(--mlh-radius-sm);
  background: rgba(255, 250, 247, 0.88);
  border: 1px solid rgba(216, 201, 199, 0.9);
}

.mlh-toc ul {
  margin: 0.9rem 0 0;
  padding-left: 1rem;
}

.mlh-toc li + li {
  margin-top: 0.45rem;
}

.mlh-toc li.is-sub {
  margin-left: 0.8rem;
  list-style-type: circle;
}

.mlh-sticky {
  position: sticky;
  top: 2rem;
}

.mlh-chip-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.mlh-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(201, 138, 125, 0.16);
  color: var(--mlh-berry);
  font-size: 0.85rem;
  font-weight: 600;
}

.mlh-content__heading {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.08;
  margin-top: 1.7rem;
  margin-bottom: 0.85rem;
}

.mlh-content__paragraph,
.mlh-content__list li,
.mlh-content__quote,
.mlh-content__table td,
.mlh-content__table th {
  color: var(--mlh-text);
  font-size: 1.06rem;
  line-height: 1.85;
}

.mlh-content__paragraph + .mlh-content__paragraph {
  margin-top: 0.95rem;
}

.mlh-content__figure {
  margin: 1.4rem 0;
  overflow: hidden;
  border-radius: var(--mlh-radius-sm);
  background: rgba(241, 231, 226, 0.72);
}

.mlh-content__figure figcaption {
  padding: 0.85rem 1rem;
  color: var(--mlh-muted);
  font-size: 0.9rem;
}

.mlh-content__figure--lead {
  max-width: 28rem;
  float: right;
  margin: 0 0 1.3rem 1.3rem;
}

.mlh-content__list {
  margin: 1.15rem 0 1.25rem 1.2rem;
}

.mlh-content__list li + li {
  margin-top: 0.55rem;
}

.mlh-content__table-wrap {
  margin: 1.4rem 0;
}

.mlh-content__table {
  background: rgba(255, 250, 247, 0.96);
  border: 1px solid rgba(216, 201, 199, 0.9);
}

.mlh-content__table th {
  color: var(--mlh-berry);
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mlh-content__quote {
  margin: 1.4rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--mlh-clay);
  background: rgba(201, 138, 125, 0.08);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
}

.mlh-content__code {
  margin: 1.3rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--mlh-radius-sm);
  background: #2e2532;
  color: #fff;
  overflow-x: auto;
}

.mlh-content__gallery {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.mlh-gallery-ornament,
.mlh-content__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6rem;
}

.mlh-step-token,
.mlh-step-arrow {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mlh-clay), var(--mlh-berry));
  color: #fff;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(110, 33, 79, 0.18);
}

.mlh-step-arrow {
  background: rgba(201, 138, 125, 0.16);
  color: var(--mlh-berry);
}

.mlh-table-stack {
  display: grid;
  gap: 0.4rem;
}

.mlh-table-media img {
  display: inline-block;
}

.mlh-content__separator {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid rgba(216, 201, 199, 0.8);
}

.mlh-footer {
  margin-top: 2rem;
  padding: 3.5rem 1.5rem;
  background: linear-gradient(180deg, var(--mlh-berry-deep), #2e1324);
  color: rgba(255, 255, 255, 0.86);
}

.mlh-footer__title {
  color: #fff !important;
  font-size: 2rem;
  margin: 0.75rem 0;
}

.mlh-footer__copy,
.mlh-footer__stack p,
.mlh-footer__link {
  color: rgba(255, 255, 255, 0.82);
}

.mlh-footer__stack {
  display: grid;
  gap: 0.75rem;
}

.mlh-footer__link {
  display: block;
}

@media screen and (min-width: 1024px) {
  .mlh-main {
    margin-left: 18rem;
    min-height: 100vh;
  }

  .mlh-rail {
    position: fixed;
    top: 0;
    left: 0;
    width: 18rem;
    height: 100vh;
    padding: 1.4rem;
    background:
      radial-gradient(circle at top left, rgba(201, 138, 125, 0.18), transparent 24%),
      linear-gradient(180deg, #4a1a37 0%, #351228 100%);
    color: rgba(255, 255, 255, 0.88);
    z-index: 35;
  }

  .mlh-rail__inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
  }

  .mlh-rail__brand {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    color: #fff;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .mlh-rail__eyebrow {
    color: rgba(255, 255, 255, 0.55);
    font-family: "Public Sans", Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .mlh-rail__brand strong {
    font-size: 1.8rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 0.95;
  }

  .mlh-rail__card,
  .mlh-rail__meta {
    padding: 1rem;
    border-radius: var(--mlh-radius-sm);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
  }

  .mlh-rail__card-title {
    color: #fff;
    font-family: "Public Sans", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
  }

  .mlh-rail__nav {
    display: grid;
    gap: 0.55rem;
  }

  .mlh-rail__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    font-family: "Public Sans", Arial, sans-serif;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .mlh-rail__link:hover,
  .mlh-rail__link.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .mlh-rail__children {
    margin-top: 0.35rem;
    margin-left: 1rem;
    display: grid;
    gap: 0.3rem;
  }

  .mlh-rail__children a {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.86rem;
  }

  .mlh-rail__meta {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.82);
  }
}

@media screen and (max-width: 768px) {
  .mlh-hero,
  .mlh-page-hero,
  .mlh-section,
  .mlh-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mlh-hero__card,
  .mlh-article-panel,
  .mlh-contact-panel,
  .mlh-sidecard,
  .mlh-resource-card,
  .mlh-category-card,
  .mlh-listing-card {
    padding: 1.25rem;
  }

  .mlh-contact-grid {
    grid-template-columns: 1fr;
  }

  .mlh-feature-card--offset {
    margin-top: 0;
  }

  .mlh-content__figure--lead {
    float: none;
    max-width: none;
    margin-left: 0;
  }
}

@media print {
  .mlh-mobile-header,
  .mlh-rail,
  .mlh-footer,
  .mlh-button {
    display: none !important;
  }

  .mlh-main {
    margin-left: 0 !important;
  }

  body.mlh-body {
    background: #fff;
    color: #000;
  }
}
