.mcp-home {
  --mcp-navy: #20262b;
  --mcp-teal: #765300;
  --mcp-slate: #40474b;
  --mcp-line: #d9d9d2;
  --mcp-home-gutter: clamp(12px, 2.5vw, 40px);
  box-sizing: border-box;
  width: calc(100vw - 2 * var(--mcp-home-gutter));
  max-width: none !important;
  margin-inline: calc(50% - 50vw + var(--mcp-home-gutter)) !important;
  color: var(--mcp-navy);
}
.mcp-home *, .mcp-home *::before, .mcp-home *::after { box-sizing: border-box; }
.mcp-home h1, .mcp-home h2, .mcp-home h3 { color: var(--mcp-navy); line-height: 1.15; }
.mcp-home h1 { font-size: clamp(2rem, 5vw, 3.65rem); max-width: 19ch; }
.mcp-home p { color: var(--mcp-slate); max-width: 68ch; }
.mcp-home .mcp-home-kicker { color: var(--mcp-teal); font-weight: 750; }
.mcp-home-hero, .mcp-home-directory {
  padding: clamp(1.25rem, 5vw, 3.5rem);
  background: #f8f3e5;
  border: 1px solid var(--mcp-line);
  border-radius: .65rem;
}
.mcp-home-section { padding-block: clamp(1.5rem, 5vw, 3rem); }
.mcp-home .mcp-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: .875rem;
  margin: 1rem 0 0;
  padding: 0;
}
.mcp-home-card {
  background: #fff;
  border: 1px solid var(--mcp-line);
  border-radius: .55rem;
  padding: 1rem;
  overflow-wrap: anywhere;
  list-style-position: inside;
}
.mcp-home-card h3 { font-size: 1.125rem; margin: 0 0 .5rem; }
.mcp-home-card p { margin: 0 0 .5rem; }
.mcp-home-card a { color: var(--mcp-teal); text-decoration: underline; }
.mcp-home .mcp-home-button {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: .4rem;
  background: var(--mcp-teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.mcp-home .mcp-home-button:hover { background: #a46e00; color: #fff; }
.mcp-home a:focus-visible { outline: 3px solid var(--mcp-teal); outline-offset: 3px; }
.mcp-home-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 1.5rem; border-top: 1px solid var(--mcp-line); background: #fafaf7; padding: 1.25rem; font-size: .875rem; }
.mcp-home-footer-brand { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.mcp-home-footer nav { display: flex; flex-wrap: wrap; gap: .65rem; }

.mcp-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-bottom: 1rem;
  padding: .25rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--mcp-line);
}
.mcp-home-brand { display: block; width: min(100%, 370px); }
.mcp-home-brand img { display: block; width: 100%; height: auto; }
.mcp-home-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; }
.mcp-home-header .mcp-home-nav-link {
  display: inline-block;
  padding: .6rem .8rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  color: var(--mcp-navy);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
.mcp-home-header .mcp-home-nav-write-a-review { border-color: #c8b578; color: var(--mcp-teal); }
.mcp-home-header .mcp-home-nav-find-model-builders { background: var(--mcp-teal); color: #fff; }
.mcp-home-header .mcp-home-nav-for-model-building-companies { background: #f6f1e0; color: var(--mcp-teal); }
.mcp-home-header .mcp-home-nav-link:hover { text-decoration: underline; }

.mcp-home-layout {
  display: grid;
  gap: 1rem;
  grid-template: "content" / minmax(0, 1fr);
  align-items: start;
}
.mcp-home-content { grid-area: content; min-width: 0; }
.mcp-home-ad { display: grid; gap: 1rem; min-width: 0; }
.mcp-home-ad img { display: block; width: 100%; height: auto; }
.mcp-home-ad-left { grid-area: left-ad; }
.mcp-home-ad-right { grid-area: right-ad; }
.mcp-home-layout.has-left-ad { grid-template-areas: "content" "left-ad"; }
.mcp-home-layout.has-right-ad { grid-template-areas: "content" "right-ad"; }
.mcp-home-layout.has-left-ad.has-right-ad { grid-template-areas: "content" "left-ad" "right-ad"; }
@media (min-width: 960px) {
  .mcp-home-ad {
    position: sticky;
    top: calc(1rem + var(--wp-admin--admin-bar--height, 0px));
    max-height: calc(100vh - 2rem - var(--wp-admin--admin-bar--height, 0px));
    overflow-y: auto;
  }
  .mcp-home-layout.has-left-ad { grid-template: "left-ad content" / minmax(150px, 19%) minmax(0, 1fr); }
  .mcp-home-layout.has-right-ad { grid-template: "content right-ad" / minmax(0, 1fr) minmax(150px, 19%); }
  .mcp-home-layout.has-left-ad.has-right-ad {
    grid-template: "left-ad content right-ad" / minmax(150px, 19%) minmax(0, 1fr) minmax(150px, 19%);
  }
}

.mcp-home-footer a { color: var(--mcp-teal); text-decoration: underline; text-underline-offset: .2em; }
.mcp-home-footer nav { gap: .6rem 1.4rem; }

.mcp-intro-hero {
  background: #f6f1e0;
  border-bottom: 1px solid #dedbd0;
  color: #20262b;
  container-type: inline-size;
}
.mcp-intro-hero-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
}
.mcp-intro-hero .mcp-intro-label {
  color: #765300;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
}
.mcp-intro-hero h1 {
  color: #20262b;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  margin: 0;
}
.mcp-intro-description { max-width: 64ch; margin: 1rem 0 1.25rem; }
.mcp-intro-hero .mcp-intro-button {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: .4rem;
  background: #765300;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.mcp-intro-hero .mcp-intro-button:hover { background: #a46e00; }
.mcp-intro-art {
  position: relative;
  background: #fbf8ed;
  border: 1px solid #d8ccaa;
  border-radius: .55rem;
  overflow: hidden;
}
.mcp-intro-art img { display: block; width: 100%; height: auto; }
.mcp-intro-art span {
  position: absolute;
  right: .75rem;
  bottom: .65rem;
  color: #765300;
  font: 700 .65rem monospace;
  letter-spacing: .08em;
}
#mcp-review-form, #mcp-application-form { scroll-margin-top: 2rem; }
@media (max-width: 640px) {
  .mcp-intro-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .mcp-intro-art { display: none; }
}
@container (max-width: 640px) {
  .mcp-intro-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .mcp-intro-art { display: none; }
}

.mcp-home-builder-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: clamp(1.5rem, 5vw, 3rem);
  container-type: inline-size;
}
.mcp-home-builder-split .mcp-home-section { padding: 0; }
.mcp-home-top-builders > h2,
.mcp-home-top-builders > p { text-align: center; }
.mcp-home .mcp-home-top-builders > p { margin-inline: auto; }
.mcp-home-builder-split .mcp-home-grid { grid-template-columns: minmax(0, 1fr); }
.mcp-home-ranked-name { display: inline-flex; align-items: center; gap: .65rem; }
.mcp-home .mcp-home-ranked-logo { width: 44px; height: 44px; object-fit: contain; flex: none; }
.mcp-home-stars { display: block; margin: .45rem 0; }
@media (max-width: 760px) {
  .mcp-home-builder-split { grid-template-columns: minmax(0, 1fr); }
}

.mcp-home .mcp-home-ranking > li { list-style: none; }
.mcp-home .mcp-home-rank-row { display: flex; align-items: center; gap: .75rem; }
.mcp-home-rank-number { font-size: 1.65rem; font-weight: 800; line-height: 1; flex: none; }
.mcp-home-ranked-name { min-width: 0; }

.mcp-directory .mcp-home-footer nav { gap: .6rem 1.4rem; }
.mcp-directory .mcp-home-footer nav a { font: inherit; color: var(--mcp-teal); text-decoration: underline; }

.mcp-home-guide { max-width: 72ch; margin-inline: auto; padding-block: 1.5rem; }
.mcp-home-guide h2 { margin-block-start: 1.75rem; }
.mcp-home-guide li { margin-block-end: .5rem; }

.mcp-home-header { background: #20262b; border-color: #20262b; }
.mcp-home-header .mcp-home-nav-link { color: #fff; }
.mcp-home-header .mcp-home-nav-for-model-building-companies { color: #20262b; }
.mcp-home .mcp-home-button,
.mcp-home .mcp-home-button:hover,
.mcp-home-header .mcp-home-nav-find-model-builders,
.mcp-home .mcp-intro-button { background: #f2b705; color: #20262b; }
.mcp-home .mcp-home-button:hover,
.mcp-home .mcp-intro-button:hover,
.mcp-home-header .mcp-home-nav-find-model-builders:hover { background: #ffcc33; }
