/* Final editorial fixes */

/* Buttons: square, clean, not pill-like */
.button,
.mm-button,
a.button,
button.button,
.site-header__cta,
.site-header .button,
.site-header a.button {
  border-radius: 4px !important;
  box-shadow: none !important;
  font-weight: 900 !important;
}

.button--primary,
.mm-button--primary,
.site-header__cta,
.site-header .button,
.site-header a.button {
  background: #172239 !important;
  color: #fffdfa !important;
}

.button--primary:hover,
.mm-button--primary:hover,
.site-header__cta:hover,
.site-header .button:hover,
.site-header a.button:hover {
  background: #c56535 !important;
  color: #fffdfa !important;
}

.button--secondary,
.mm-button--secondary {
  background: transparent !important;
  color: #172239 !important;
  border: 1px solid rgba(23, 34, 57, 0.22) !important;
}

.button--secondary:hover,
.mm-button--secondary:hover {
  background: #f8f3eb !important;
  border-color: #172239 !important;
}

/* What We Do: reveal more photo, reduce the text overlap */
@media (min-width: 981px) {
  .human-intro__photo-wrap {
    max-width: 520px !important;
    min-height: 500px !important;
    transform: translateX(54px);
  }

  .human-intro__photo {
    width: min(88%, 430px) !important;
    margin-left: auto !important;
  }

  .human-intro__quote {
    width: min(72%, 330px) !important;
    left: -18px !important;
    bottom: 42px !important;
    padding: 26px 28px !important;
  }

  .human-intro__quote blockquote {
    font-size: clamp(1.5rem, 1.75vw, 2rem) !important;
  }

  .human-intro__quote p {
    font-size: 0.9rem !important;
  }
}

/* Scorecard reset: square editorial block, not a card */
.section.scorecard-editorial {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 7vw, 124px) 44px;
  background: linear-gradient(90deg, #e8eee0 0 48%, #fffdfa 48% 100%);
}

.scorecard-editorial .container {
  position: relative;
  z-index: 1;
  width: min(88vw, 1680px);
  margin: 0 auto;
}

.scorecard-editorial__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  gap: clamp(46px, 7vw, 104px);
  align-items: center;
}

.scorecard-editorial__copy .eyebrow,
.support-split__copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #c56535;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scorecard-editorial__copy .eyebrow::before,
.support-split__copy .eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.scorecard-editorial h2 {
  max-width: 560px;
  margin: 0;
  color: #172239;
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 3.25vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.scorecard-editorial__lead {
  max-width: 540px;
  margin: 22px 0 0;
  color: #172239;
  font-size: clamp(1.04rem, 1.2vw, 1.15rem);
  line-height: 1.64;
  font-weight: 750;
}

.scorecard-editorial__body {
  max-width: 540px;
  margin: 16px 0 0;
  color: #465044;
  font-size: 1rem;
  line-height: 1.72;
}

.scorecard-editorial__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.scorecard-editorial__visual {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: center;
}

.scorecard-editorial__route {
  position: absolute;
  right: -34px;
  top: 18px;
  width: clamp(220px, 24vw, 360px);
  height: clamp(220px, 24vw, 360px);
  opacity: 0.16;
  pointer-events: none;
  background:
    linear-gradient(90deg, #c56535 0 52%, transparent 52% 100%) 0 14% / 100% 3px no-repeat,
    linear-gradient(90deg, transparent 0 22%, #c56535 22% 76%, transparent 76% 100%) 0 40% / 100% 3px no-repeat,
    linear-gradient(90deg, #c56535 0 34%, transparent 34% 100%) 0 68% / 100% 3px no-repeat,
    linear-gradient(90deg, transparent 0 42%, #c56535 42% 100%) 0 90% / 100% 3px no-repeat,
    linear-gradient(180deg, #c56535 0 42%, transparent 42% 100%) 18% 0 / 3px 100% no-repeat,
    linear-gradient(180deg, transparent 0 18%, #c56535 18% 74%, transparent 74% 100%) 48% 0 / 3px 100% no-repeat,
    linear-gradient(180deg, #c56535 0 64%, transparent 64% 100%) 78% 0 / 3px 100% no-repeat;
}

.scorecard-editorial__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin-left: auto;
  padding: clamp(34px, 4vw, 48px);
  background: #fffdfa;
}

.scorecard-editorial__panel h3 {
  margin: 0;
  color: #172239;
  font-family: var(--ff-serif);
  font-size: clamp(1.75rem, 2.35vw, 2.55rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.scorecard-editorial__checks {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.scorecard-editorial__checks li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #465044;
  font-size: 0.98rem;
  line-height: 1.5;
}

.scorecard-editorial__checks li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  background: #c56535;
}

/* Support split section */
.section.support-split {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 8vw, 132px) 44px;
  background: linear-gradient(90deg, #f8f3eb 0 42%, #fffdfa 42% 100%);
}

.support-split .container {
  position: relative;
  z-index: 1;
  width: min(100%, 1220px);
  margin: 0 auto;
}

.support-split__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(48px, 7vw, 108px);
  align-items: start;
}

.support-split__copy {
  position: sticky;
  top: 120px;
}

.support-split h2 {
  max-width: 500px;
  margin: 0;
  color: #172239;
  font-family: var(--ff-serif);
  font-size: clamp(2.1rem, 3.15vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.support-split__lead {
  max-width: 500px;
  margin: 22px 0 0;
  color: #172239;
  font-size: clamp(1.03rem, 1.18vw, 1.14rem);
  line-height: 1.64;
  font-weight: 750;
}

.support-split__body {
  max-width: 500px;
  margin: 16px 0 0;
  color: #6f756d;
  font-size: 1rem;
  line-height: 1.72;
}

.support-split__photo {
  margin: 34px 0 0;
  width: min(100%, 420px);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #fffdfa;
}

.support-split__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.support-split__services {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(23, 34, 57, 0.13);
}

.support-split__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  padding: clamp(26px, 3.6vw, 38px) 0;
  border-bottom: 1px solid rgba(23, 34, 57, 0.13);
}

.support-split__icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  background: #f8f3eb;
}

.support-split__icon img {
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.support-split__item h3 {
  margin: 0;
  color: #172239;
  font-family: var(--ff-serif);
  font-size: clamp(1.55rem, 2.05vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.support-split__item p {
  max-width: 660px;
  margin: 10px 0 0;
  color: #6f756d;
  font-size: 0.98rem;
  line-height: 1.62;
}

.support-split__item a {
  color: #c56535;
  font-weight: 900;
  text-underline-offset: 0.18em;
}

.support-split__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

@media (max-width: 980px) {
  .section.scorecard-editorial,
  .section.support-split {
    padding: 76px 24px;
    background: #fffdfa;
  }

  .scorecard-editorial__layout,
  .support-split__layout {
    grid-template-columns: 1fr;
  }

  .support-split__copy {
    position: static;
  }

  .support-split__photo {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .section.scorecard-editorial,
  .section.support-split {
    padding: 64px 20px;
  }

  .scorecard-editorial__actions,
  .support-split__cta {
    flex-direction: column;
  }

  .scorecard-editorial__actions .button,
  .support-split__cta .button {
    width: 100%;
    justify-content: center;
  }

  .support-split__item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .scorecard-editorial__panel {
    padding: 28px 24px;
  }
}

/* Hero logo watermark */
.mm-hero-editorial__copy {
  position: relative;
}

.mm-hero-editorial__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -42px;
  top: -62px;
  width: clamp(220px, 26vw, 420px);
  height: clamp(220px, 26vw, 420px);
  background-image: url("/fileadmin/messy-middle/logos/messy-middle-logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.055;
  pointer-events: none;
}

.mm-hero-editorial h1 {
  position: relative;
  z-index: 1;
}

/* Header logo: slightly more visible without making the header clumsy */
.site-header__logo img,
.site-header__brand img {
  max-height: 54px !important;
}

.site-header__brand-name {
  font-size: 1rem !important;
}

/* Home Guides & News cards: fix broken read-more layout */
.section.notes-preview .notes-preview-grid {
  width: min(100%, 980px) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

.section.notes-preview .note-preview-card {
  position: relative !important;
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 28px 26px 30px !important;
  border-top: 1px solid rgba(23, 34, 57, 0.12) !important;
  border-bottom: 1px solid rgba(23, 34, 57, 0.08) !important;
  background: #fffdfa !important;
}

.section.notes-preview .note-preview-card h3 {
  font-size: clamp(1.45rem, 1.9vw, 2.05rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  margin-bottom: 12px !important;
}

.section.notes-preview .note-preview-card p {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  margin-bottom: 24px !important;
  font-size: 0.95rem !important;
  line-height: 1.48 !important;
}

.section.notes-preview .note-preview-card .arrow-link,
.section.notes-preview .note-preview-card a.arrow-link {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  margin-top: auto !important;
  display: inline-flex !important;
  width: fit-content !important;
  color: #c56535 !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
}

.section.notes-preview .note-preview-card .arrow-link:hover,
.section.notes-preview .note-preview-card a.arrow-link:hover {
  color: #172239 !important;
}

/* Keep the notes heading from overpowering the cards */
.section.notes-preview .notes-head h2 {
  font-size: clamp(2rem, 2.65vw, 3.25rem) !important;
  line-height: 1.08 !important;
}

/* Mobile notes preview */
@media (max-width: 760px) {
  .mm-hero-editorial__copy::before {
    left: -24px;
    top: -36px;
    opacity: 0.045;
  }

  .site-header__logo img,
  .site-header__brand img {
    max-height: 46px !important;
  }

  .section.notes-preview .notes-preview-grid {
    grid-template-columns: 1fr !important;
    width: min(100%, 560px) !important;
  }

  .section.notes-preview .note-preview-card h3 {
    font-size: clamp(1.45rem, 7vw, 2rem) !important;
  }
}

/* Hero logo watermark refinement */
.mm-hero-editorial__copy::before {
  left: -86px !important;
  top: -104px !important;
  width: clamp(340px, 34vw, 620px) !important;
  height: clamp(340px, 34vw, 620px) !important;
  opacity: 0.085 !important;
}

@media (max-width: 760px) {
  .mm-hero-editorial__copy::before {
    left: -58px !important;
    top: -70px !important;
    width: 360px !important;
    height: 360px !important;
    opacity: 0.065 !important;
  }
}
