@font-face {
  font-family: Montserrat;
  src: url("./fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("./fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --smh-plum: #4f145b;
  --smh-deep: #381345;
  --smh-pink: #b50069;
  --smh-pink-dark: #88004f;
  --smh-lilac: #f7f0f8;
  --smh-ink: #292631;
  --smh-muted: #5a5360;
  --smh-edge: #e4dce7;
  --smh-focus: #c90072;
  --smh-sans: "Source Sans 3", Arial, sans-serif;
  --smh-head: Montserrat, Arial, sans-serif;
  --smh-width: 1180px;
}

.smh-page, .smh-legacy {
  font-family: var(--smh-sans);
}

.smh-page {
  margin: 0;
  background: #fff;
  color: var(--smh-ink);
  font-size: 1.075rem;
  line-height: 1.58;
}

.smh-page *, .smh-page *::before, .smh-page *::after,
.smh-legacy .smh-panel *, .smh-legacy .smh-section *, .smh-legacy .smh-related * {
  box-sizing: border-box;
}

.smh-page h1, .smh-page h2, .smh-page h3,
.smh-legacy h1, .smh-legacy h2, .smh-legacy h3 {
  font-family: var(--smh-head);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.smh-page h1, .smh-legacy #main .smh-home-panel h2 {
  margin: 0;
  font-weight: 750;
}

.smh-page h1 {
  color: var(--smh-plum);
  font-size: clamp(2rem, 4.2vw, 3.55rem);
  text-wrap: balance;
}

.smh-page h2, .smh-legacy .smh-related h2, .smh-legacy .smh-section h2 {
  color: var(--smh-plum);
  margin: 0 0 .65rem;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  font-weight: 720;
}

.smh-page h3, .smh-legacy .smh-card h3 {
  color: var(--smh-plum);
  font-size: 1.075rem;
  font-weight: 720;
  margin: 0 0 .3rem;
}

.smh-page p, .smh-legacy .smh-related p, .smh-legacy .smh-card p {
  margin: 0 0 1rem;
}

.smh-page a, .smh-legacy .smh-section a, .smh-legacy .smh-related a,
.smh-legacy .repair-form a, .smh-legacy .smh-legal-section a {
  color: var(--smh-pink-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
}

.smh-page a:hover, .smh-legacy .smh-section a:hover, .smh-legacy .smh-related a:hover {
  color: var(--smh-plum);
}

.smh-page :focus-visible, .smh-legacy .repair-form :focus-visible, .smh-legacy .smh-related :focus-visible {
  outline: 3px solid var(--smh-focus);
  outline-offset: 4px;
}

.smh-page figure, .smh-legacy .smh-section figure {
  margin: 0;
}

.smh-page img, .smh-section img, .smh-related img {
  display: block;
  max-width: 100%;
  height: auto;
}

.smh-skip, .smh-sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.smh-skip:focus {
  inset: 1rem auto auto 1rem;
  z-index: 10;
  block-size: auto;
  inline-size: auto;
  clip-path: none;
  padding: .7rem;
  background: #fff;
}

.smh-shell {
  width: min(100% - 48px, var(--smh-width));
  margin-inline: auto;
}

.smh-header {
  background: #fff;
  border-block-end: 3px solid var(--smh-pink);
}

.smh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.65rem;
}

.smh-header a, .smh-legacy .site-header a {
  text-decoration: none;
}

.smh-header-inner > nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem 1.35rem;
  padding-block: .6rem;
}

.smh-header-inner nav a {
  color: var(--smh-plum);
  font-size: .96rem;
  font-weight: 650;
}

.smh-header-inner nav a[aria-current], .smh-header-inner nav a:hover {
  color: var(--smh-pink-dark);
  text-decoration: underline;
}

.smh-header .smh-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--smh-plum);
  font-family: var(--smh-head);
  font-size: 1.12rem;
  font-weight: 780;
  letter-spacing: -.055em;
}

.smh-brand img, .smh-legacy .smh-legacy-mark {
  inline-size: 2.6rem;
  block-size: 2.6rem;
  flex: none;
}

.smh-brand span span {
  color: var(--smh-pink);
}

.smh-mobile {
  display: none;
}

.smh-page .button, .smh-legacy .repair-form .button {
  display: inline-flex;
  min-block-size: 44px;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border: 1px solid var(--smh-pink);
  border-radius: 5px;
  background: var(--smh-pink);
  color: #fff;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  font: 700 1rem/1.2 var(--smh-sans);
}

.smh-page .button:hover, .smh-legacy .repair-form .button:hover {
  background: var(--smh-pink-dark);
  color: #fff;
}

.smh-section {
  padding-block: clamp(2.3rem, 6vw, 4.5rem);
}

.smh-section-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .7rem 1.4rem;
  flex-wrap: wrap;
  margin-block-end: 1rem;
}

.smh-section-top p {
  margin: 0;
  color: var(--smh-muted);
}

.smh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.smh-tool-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.smh-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--smh-edge);
  border-radius: 8px;
  overflow: hidden;
}

.smh-card:hover {
  border-color: #a575ab;
}

.smh-card .smh-card-image {
  display: block;
}

.smh-card-image img {
  inline-size: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.smh-card-copy {
  padding: 1rem;
}

.smh-card-copy h3 a {
  min-height: 0;
  display: inline;
  font-weight: inherit;
  color: var(--smh-plum);
  text-decoration: none;
}

.smh-card-copy h3 a:hover {
  text-decoration: underline;
}

.smh-card-copy p {
  margin: .5rem 0 0;
  color: var(--smh-muted);
  font-size: .97rem;
  line-height: 1.4;
}

.smh-tint, .smh-collection-lead {
  background: var(--smh-lilac);
}

.smh-collection-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(1rem, 5vw, 4rem);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.smh-collection-columns img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 2.1;
  object-fit: cover;
}

.smh-page p.smh-lede {
  margin: .9rem 0 1.25rem;
  max-width: 62ch;
  color: var(--smh-muted);
  font-size: clamp(1.14rem, 2vw, 1.36rem);
  line-height: 1.45;
}

.smh-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  color: var(--smh-muted);
  padding-block: 1rem 2rem;
  font-size: .94rem;
}

.smh-breadcrumbs > :not(:first-child)::before {
  content: "/";
  margin-inline-end: .5rem;
  color: var(--smh-muted);
}

.smh-tool-layout, .smh-tool-followup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 3.5rem);
}

.smh-tool-intro figure img, .smh-tool-followup figure img {
  inline-size: 100%;
  aspect-ratio: 2.05;
  object-fit: cover;
  border-radius: 8px;
}

.smh-tool-intro figure, .smh-tool-intro .smh-safety {
  margin-block: 1.1rem;
}

.smh-tool-followup {
  padding-block: 2.5rem 4rem;
}

.smh-panel {
  background: #fff;
  border: 1px solid var(--smh-edge);
  border-block-start: 4px solid var(--smh-pink);
  border-radius: 8px;
  box-shadow: 0 8px 28px #38134513;
  padding: clamp(1rem, 3vw, 1.8rem);
  color: var(--smh-ink);
  min-width: 0;
}

.smh-safety {
  padding: 1rem;
  border: 1px solid #dcb9c4;
  border-inline-start: 4px solid #9b1b43;
  background: #fff0f3;
  border-radius: 5px;
}

.smh-safety p {
  margin: .35rem 0 0;
}

.smh-data-panel {
  margin-block: 1.6rem 2rem;
  max-width: 55rem;
}

.smh-data-panel h2 {
  margin-block-start: 0;
}

.smh-data-panel > p {
  margin-block: .4rem 1rem;
}

.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1rem;
  margin-block-end: 1.15rem;
}

.form-fields label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  color: var(--smh-plum);
  font: 660 1rem/1.25 var(--smh-sans);
}

.form-fields label:has(textarea) {
  grid-column: 1 / -1;
}

.form-fields small, .smh-tool-wrap .smh-privacy-note, .smh-page figcaption {
  color: var(--smh-muted);
  font-size: .89rem;
  font-weight: 400;
}

.smh-page figcaption {
  margin-block-start: .45rem;
}

.smh-tool-wrap .smh-privacy-note {
  margin: .85rem 0 0;
}

.form-fields input, .form-fields select, .form-fields textarea {
  width: 100%;
  min-inline-size: 0;
  min-block-size: 44px;
  padding: .5rem .6rem;
  border: 1px solid #97899c;
  border-radius: 5px;
  background: #fff;
  color: var(--smh-ink);
  font: 400 1rem/1.35 var(--smh-sans);
}

.form-fields textarea {
  min-block-size: 5rem;
  resize: vertical;
}

.repair-form .button:disabled {
  opacity: .65;
  cursor: default;
}

.tool-result:not(:empty) {
  margin-block-start: 1.25rem;
  padding: 1rem;
  background: var(--smh-lilac);
  border-inline-start: 4px solid var(--smh-plum);
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.tool-result[data-state="danger"] {
  background: #fff0f3;
  border-inline-start-color: #9b1b43;
}

.tool-result[data-state="warning"] {
  background: #fff6df;
  border-inline-start-color: #aa7418;
}

.tool-result strong {
  font-size: 1.16rem;
  line-height: 1.3;
  color: var(--smh-plum);
}

.tool-result p {
  margin: .5rem 0 0;
}

.tool-result pre {
  margin: .7rem 0;
  font: inherit;
  white-space: pre-wrap;
}

.result-links, .tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  margin: .6rem 0 0;
  padding: 0;
  list-style: none;
}

.secondary-button {
  min-block-size: 40px;
  padding: .45rem .75rem;
  border: 1px solid var(--smh-plum);
  border-radius: 4px;
  background: #fff;
  color: var(--smh-plum);
  font: inherit;
  cursor: pointer;
}

.smh-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(13rem, 17rem);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block-end: 4rem;
}

.smh-article-header {
  max-width: 53rem;
  margin-block-end: 1.25rem;
}

.smh-page .smh-article-header h1 {
  text-wrap: pretty;
}

.smh-article-header .smh-category, .smh-article-header .smh-byline {
  color: var(--smh-muted);
  font-size: .94rem;
  margin-block-end: .5rem;
}

.smh-article-header .smh-category {
  font-weight: 700;
  color: var(--smh-pink-dark);
}

.smh-article section, .smh-article figure {
  scroll-margin-top: 18px;
}

.smh-article section {
  margin-block-start: 2.35rem;
}

.smh-article-cover img, .smh-inline-figure img {
  inline-size: 100%;
  aspect-ratio: 1.9;
  object-fit: cover;
  border-radius: 8px;
}

.smh-article .smh-inline-figure {
  margin: 1.3rem 0;
}

.smh-article-side {
  align-self: start;
  position: sticky;
  top: 1rem;
  border-block-start: 4px solid var(--smh-pink);
  padding: 1.15rem;
  background: var(--smh-lilac);
  border-radius: 6px;
}

.smh-article-side h2, .smh-sources h2 {
  font-size: 1.14rem;
}

.smh-article-side ul, .smh-sources ul {
  margin: .5rem 0 1.2rem;
  padding-inline-start: 1.1rem;
}

.smh-article-side li, .smh-sources li {
  margin-block-end: .4rem;
}

.smh-article-side p {
  margin: .9rem 0 0;
  font-size: .94rem;
}

.smh-faq details {
  border-block-start: 1px solid var(--smh-edge);
}

.smh-faq details:last-child {
  border-block-end: 1px solid var(--smh-edge);
}

.smh-faq summary {
  cursor: pointer;
  font-weight: 680;
  color: var(--smh-plum);
  padding: .8rem 0;
}

.smh-faq details p {
  padding-inline-start: 1.1rem;
}

.smh-related {
  display: grid;
  grid-template-columns: 1.2fr minmax(14rem, .8fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.6rem);
  margin-block: 2rem;
  color: var(--smh-ink);
  background: var(--smh-lilac);
  border-radius: 8px;
  border: 1px solid var(--smh-edge);
  font-family: var(--smh-sans);
}

.smh-related h2 {
  margin-block-start: 0;
}

.smh-related-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  min-width: 0;
}

.smh-related-media img {
  aspect-ratio: 1;
  object-fit: cover;
  inline-size: 100%;
  border-radius: 5px;
}

.smh-footer {
  padding-block: 2.8rem 1.5rem;
  background: var(--smh-deep);
  color: #fff;
}

.smh-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.4rem;
}

.smh-footer nav a {
  display: block;
  width: fit-content;
  color: #fff;
}

.smh-footer a:hover {
  color: #ffe8f4;
}

.smh-footer .smh-footer-note {
  border-block-start: 1px solid #775684;
  color: #eee2f1;
  font-size: .95rem;
  margin-block: 1.6rem 0;
  padding-block-start: .8rem;
}

.smh-equipment {
  padding-block: 1.5rem 4rem;
}

.smh-commercial {
  max-width: 72ch;
}

.smh-equipment nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  margin-block-end: 1.6rem;
}

.smh-equipment-group {
  margin-block-start: 2.25rem;
}

.smh-equipment-group header {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 65ch);
  align-items: center;
  gap: 1.25rem;
  background: var(--smh-lilac);
  border-radius: 8px;
  padding: .8rem;
}

.smh-equipment-group header img {
  border-radius: 5px;
  aspect-ratio: 1.75;
  object-fit: cover;
}

.smh-equipment-group header p {
  margin: 0;
}

.smh-equipment-group ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.smh-equipment-group li {
  padding: .85rem;
  border: 1px solid var(--smh-edge);
  border-radius: 6px;
}

.smh-legacy {
  --brand-700: var(--smh-plum);
  --brand-600: var(--smh-pink);
  --brand-100: var(--smh-lilac);
  --hc-font-family-sans: var(--smh-sans);
  --hc-color-action: var(--smh-pink-dark);
  --hc-color-action-hover: var(--smh-plum);
  --hc-color-surface-subtle: var(--smh-lilac);
  --link: var(--smh-pink-dark);
}

.smh-legacy .site-header {
  background: #fff;
  border-block-end: 3px solid var(--smh-pink);
}

.smh-legacy .site-header .brand-mark, .smh-legacy .site-header__brand-domain {
  display: none;
}

.smh-legacy .site-header .brand, .smh-legacy .site-header .site-header__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .55rem;
  color: var(--smh-plum);
}

.smh-legacy .site-header .brand strong, .smh-legacy .site-header__brand-name {
  color: var(--smh-plum);
  font-family: var(--smh-head);
  font-size: 1.13rem;
  letter-spacing: -.04em;
}

.smh-legacy .site-header nav a {
  color: var(--smh-plum);
}

.smh-legacy .site-footer {
  background: var(--smh-deep);
  color: #fff;
}

.smh-legacy .site-footer a {
  color: #fff;
}

.smh-legacy .hero-band {
  background: linear-gradient(100deg, #3f164c 0%, #542264 74%, #63306f 100%);
  color: #fff;
}

.smh-legacy .hero-band .hero {
  align-items: center;
  gap: clamp(1.25rem, 5vw, 4rem);
}

.smh-legacy .hero-band h1 {
  color: #fff;
  line-height: 1.05;
  font-family: var(--smh-head);
  font-size: clamp(2.05rem, 4vw, 3.6rem);
}

.smh-legacy .hero-band h1 em {
  font-style: normal;
  color: #ffcdea;
}

.smh-legacy .hero-band .eyebrow, .smh-legacy .hero-band .lead {
  color: #f8edf9;
}

.smh-legacy .hero-band .problem-search {
  background: #fff;
  color: var(--smh-ink);
  border-radius: 6px;
  padding: .75rem;
}

.smh-legacy .hero-band .quick-links a {
  color: #fff;
  background: #ffffff13;
  border-color: #ffffff50;
}

.smh-legacy .hero-band .quick-links a:hover {
  color: var(--smh-deep);
  background: var(--smh-lilac);
}

.smh-legacy .hero-media img {
  width: 100%;
  aspect-ratio: 2.3;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.smh-legacy .hero-media .evidence-caption {
  background: var(--smh-lilac);
  border-radius: 0 0 8px 8px;
  color: var(--smh-ink);
}

.smh-legacy #main .smh-home-panel {
  margin: 1.25rem 0 0;
}

.smh-legacy #main .smh-home-panel h2 {
  color: var(--smh-plum);
  font-size: 1.18rem;
  margin-block-end: .85rem;
}

.smh-legacy .smh-section p, .smh-legacy .smh-section h2 {
  text-wrap: pretty;
}

.smh-legacy .smh-section-top a,
.smh-legacy .smh-related a {
  font-weight: 700;
}

@media (max-width: 1120px) {
  .smh-tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .smh-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .smh-header-inner > nav, .smh-header .smh-header-cta {
    display: none;
  }

  .smh-mobile {
    display: block;
    position: relative;
  }

  .smh-mobile summary {
    cursor: pointer;
    min-height: 44px;
    padding: .65rem .3rem;
    color: var(--smh-plum);
  }

  .smh-mobile nav {
    position: absolute;
    z-index: 5;
    inset-inline-end: 0;
    min-inline-size: 10.5rem;
    padding: .6rem .9rem;
    display: grid;
    gap: .2rem;
    background: #fff;
    border: 1px solid var(--smh-edge);
    box-shadow: 0 6px 20px #38134527;
  }

  .smh-mobile nav a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 700px) {
  .smh-shell {
    width: min(100% - 32px, var(--smh-width));
  }

  .smh-grid, .smh-equipment-group ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smh-collection-columns, .smh-reading-layout, .smh-tool-layout, .smh-tool-followup, .smh-related {
    grid-template-columns: minmax(0, 1fr);
  }

  .smh-article-side {
    position: static;
    grid-row: 1;
  }

  .smh-related-media img {
    aspect-ratio: 2.1;
  }

  .smh-tool-intro figure {
    display: none;
  }

  .smh-legacy .hero-band .quick-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 410px) {
  .smh-grid, .smh-equipment-group ul, .form-fields, .smh-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.smh-legacy .hero-band .hero {
  align-items: start;
}

.smh-legacy .hero-band .hero-media img {
  aspect-ratio: 1.38;
}

.smh-legacy .hero-band .evidence-caption span,
.smh-legacy .hero-band .evidence-caption span strong {
  color: var(--smh-ink);
}

.smh-legacy .smh-home-panel .smh-home-see-tools {
  display: inline-flex;
  min-block-size: 36px;
  margin-block-start: .55rem;
  color: var(--smh-pink-dark);
  font-weight: 660;
}

@media (max-width: 700px) {
  .smh-legacy .hero-band .hero-media img {
    aspect-ratio: 1.75;
  }
}
