:root {
  --ml-primary: #c73522;
  --ml-primary-deep: #8f160d;
  --ml-accent: #f1c40f;
  --ml-green: #3f6f56;
  --ml-text: #20242a;
  --ml-muted: #6d6560;
  --ml-subtle: #f5f1ee;
  --ml-surface: #fffdfb;
  --ml-border: #ded6d1;
  --ml-dark: #231f20;
  --ml-font-body: "Montserrat", Arial, sans-serif;
  --ml-font-heading: "Roboto Slab", "Source Serif 4", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ml-subtle);
}

body.ml-site {
  margin: 0;
  background: var(--ml-subtle);
  color: var(--ml-text);
  font-family: var(--ml-font-body);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--ml-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--ml-primary-deep);
}

:focus-visible {
  outline: 3px solid var(--ml-accent);
  outline-offset: 3px;
}

.ml-skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 10000;
  transform: translateY(-140%);
  background: #fff;
  color: var(--ml-primary-deep);
  padding: 8px 12px;
  border: 2px solid var(--ml-accent);
}

.ml-skip-link:focus {
  transform: translateY(0);
}

.ml-header {
  position: relative;
  z-index: 100;
}

.ml-utility {
  background: var(--ml-primary-deep);
  color: #fff;
}

.ml-utility-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ml-utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.ml-utility a {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.ml-utility a:hover {
  text-decoration: underline;
}

.ml-search {
  width: min(240px, 40vw);
}

.ml-search .uk-input {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 2px;
}

.ml-nav-wrap,
.uk-navbar-container:not(.uk-navbar-transparent) {
  background: var(--ml-primary);
  box-shadow: 0 8px 24px rgba(35, 31, 32, 0.12);
}

.ml-header-stuck {
  box-shadow: 0 10px 28px rgba(35, 31, 32, 0.18);
}

.ml-logo,
.uk-navbar-item.ml-logo {
  min-height: 78px;
  color: #fff;
  font-family: var(--ml-font-heading);
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
}

.ml-logo:hover,
.ml-logo:focus {
  color: #fff;
}

.ml-nav-list > li > a {
  min-height: 78px;
  color: #fff;
  font-family: var(--ml-font-body);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  position: relative;
}

.ml-nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 18px;
  height: 3px;
  background: transparent;
}

.ml-nav-list > li.uk-active > a::after,
.ml-nav-list > li > a:hover::after {
  background: var(--ml-accent);
}

.uk-navbar-dropdown {
  border-top: 4px solid var(--ml-accent);
}

.ml-menu-button {
  color: #fff;
}

.uk-offcanvas-bar {
  background: var(--ml-primary-deep);
}

.ml-mobile-logo {
  display: inline-block;
  color: #fff;
  font-family: var(--ml-font-heading);
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.ml-main {
  background: var(--ml-subtle);
}

.ml-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ml-dark);
}

.ml-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.ml-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(35, 31, 32, 0.78), rgba(35, 31, 32, 0.42));
}

.ml-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 72px;
  padding-bottom: 72px;
}

.ml-hero h1 {
  max-width: 820px;
  color: #fff;
  font-family: var(--ml-font-heading);
  font-size: 64px;
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 18px;
}

.ml-hero-kicker {
  max-width: 650px;
  color: #fff;
  font-weight: 700;
  margin: 0 0 18px;
}

.ml-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ml-button.uk-button-primary,
.uk-button-primary.ml-button {
  background: var(--ml-primary);
  color: #fff;
  border: 1px solid var(--ml-primary);
}

.ml-button.uk-button-default,
.uk-button-default.ml-button {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.ml-button {
  border-radius: 2px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ml-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(35, 31, 32, 0.2);
}

.ml-breadcrumbs {
  padding-top: 28px;
}

.ml-breadcrumbs .uk-breadcrumb > * > * {
  color: var(--ml-muted);
}

.ml-article-section,
.ml-static-section,
.ml-listing-section,
.ml-home-section {
  padding-top: 80px;
  padding-bottom: 88px;
}

.ml-article-narrow {
  max-width: 840px;
  margin: 0 auto;
}

.ml-article,
.ml-static,
.ml-category-intro,
.ml-home-content {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: 4px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 18px 42px rgba(35, 31, 32, 0.08);
}

.ml-article-header {
  border-left: 6px solid var(--ml-primary);
  padding-left: 24px;
  margin-bottom: 32px;
}

.uk-article-title,
.ml-section-heading h1,
.ml-heading {
  color: var(--ml-text);
  font-family: var(--ml-font-heading);
  font-weight: 800;
}

.uk-article-title,
.ml-section-heading h1 {
  font-size: 48px;
  line-height: 1.14;
  margin: 0 0 16px;
}

.ml-heading-1 {
  font-size: 42px;
  line-height: 1.18;
}

.ml-heading-2 {
  font-size: 34px;
  line-height: 1.24;
}

.ml-heading-3,
.ml-heading-4,
.ml-heading-5,
.ml-heading-6 {
  font-size: 22px;
  line-height: 1.35;
}

.ml-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--ml-muted);
  font-size: 13px;
  font-weight: 700;
}

.ml-summary {
  color: var(--ml-muted);
  max-width: 760px;
}

.ml-main-image {
  float: right;
  width: min(34%, 320px);
  margin: 0 0 24px 32px;
}

.ml-main-image img,
.ml-figure img,
.ml-gallery img,
.ml-card-image,
.uk-card-media-top img,
.ml-table-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.ml-figure {
  border: 1px solid var(--ml-border);
  background: #fff;
  padding: 10px;
}

.ml-figure figcaption,
.ml-gallery figcaption {
  color: var(--ml-muted);
  font-size: 13px;
  margin-top: 8px;
}

.ml-paragraph {
  margin: 0 0 1.25em;
}

.ml-content a {
  font-weight: 600;
}

.ml-list {
  margin: 0 0 1.6em;
  padding-left: 1.5em;
}

.ml-list li + li {
  margin-top: 0.45em;
}

.ml-table-wrap {
  margin: 30px 0;
  border: 1px solid var(--ml-border);
  background: #fff;
}

.ml-table {
  margin-bottom: 0;
}

.ml-table th {
  background: var(--ml-subtle);
  color: var(--ml-text);
  font-weight: 800;
}

.ml-table td,
.ml-table th {
  vertical-align: top;
}

.ml-table-image {
  max-width: 180px;
}

.ml-quote {
  border-left: 6px solid var(--ml-green);
  padding: 12px 0 12px 24px;
  color: var(--ml-text);
  font-family: var(--ml-font-heading);
  font-size: 22px;
  line-height: 1.55;
}

.ml-code {
  padding: 18px;
  background: #1f1f1f;
  color: #fff;
  overflow-x: auto;
}

.ml-embed {
  margin: 32px 0;
}

.ml-embed iframe,
.ml-embed video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.ml-gallery {
  margin-top: 24px;
  margin-bottom: 32px;
}

.ml-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--ml-border);
  padding: 8px;
}

.ml-separator {
  border-top: 3px solid var(--ml-accent);
  margin: 36px 0;
}

.ml-card-grid {
  margin-top: 36px;
}

.ml-card {
  border-radius: 4px;
  border: 1px solid var(--ml-green);
  border-top: 5px solid var(--ml-green);
  box-shadow: 0 16px 32px rgba(35, 31, 32, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.ml-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(35, 31, 32, 0.14);
}

.ml-card .uk-card-title {
  font-family: var(--ml-font-heading);
  font-size: 22px;
  line-height: 1.3;
}

.ml-card .uk-card-title a {
  color: var(--ml-text);
  text-decoration-color: transparent;
}

.ml-card .uk-card-title a:hover {
  color: var(--ml-primary);
  text-decoration-color: var(--ml-primary);
}

.ml-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ml-primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ml-read-more::after {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--ml-accent);
}

.ml-section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.ml-section-heading p {
  color: var(--ml-muted);
}

.ml-sidebar {
  background: #fff;
  border-top: 5px solid var(--ml-green);
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(35, 31, 32, 0.08);
}

.ml-sidebar-title,
.ml-toc h2,
.ml-footer-heading {
  font-family: var(--ml-font-body);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ml-sidebar-title {
  color: var(--ml-green);
}

.ml-toc {
  background: #fff;
  border-left: 5px solid var(--ml-accent);
  padding: 18px;
  margin-bottom: 28px;
}

.ml-toc-sticky {
  position: sticky;
  top: 122px;
}

.ml-footer {
  background: var(--ml-primary);
  color: #fff;
}

.ml-footer a {
  color: #fff;
}

.ml-footer-brand {
  display: inline-block;
  color: #fff;
  font-family: var(--ml-font-heading);
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 12px;
}

.ml-footer-text {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.ml-footer-heading {
  color: var(--ml-accent);
  margin-bottom: 14px;
}

.ml-footer-list {
  margin: 0;
}

.ml-footer-list li + li {
  margin-top: 8px;
}

.ml-footer-list a {
  text-decoration: none;
}

.ml-footer-list a:hover {
  text-decoration: underline;
}

@media (max-width: 959px) {
  .ml-utility-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .ml-search {
    width: 100%;
  }

  .ml-logo,
  .uk-navbar-item.ml-logo {
    min-height: 64px;
    font-size: 23px;
  }

  .ml-hero {
    min-height: 480px;
  }

  .ml-hero h1 {
    font-size: 42px;
  }

  .ml-article-section,
  .ml-static-section,
  .ml-listing-section,
  .ml-home-section {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .uk-article-title,
  .ml-section-heading h1 {
    font-size: 34px;
  }

  .ml-main-image {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }
}

@media (max-width: 639px) {
  .ml-article,
  .ml-static,
  .ml-category-intro,
  .ml-home-content {
    padding: 24px 18px;
  }

  .ml-article-header {
    padding-left: 16px;
  }

  .ml-hero-actions .uk-button {
    width: 100%;
  }
}

@media print {
  .ml-header,
  .ml-footer,
  .ml-sidebar,
  .ml-toc,
  .ml-hero-actions {
    display: none !important;
  }

  body.ml-site,
  .ml-main,
  .ml-article,
  .ml-static,
  .ml-category-intro {
    background: #fff;
    box-shadow: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
