/* Local alignment with home-reference.tsx (Figma 39:996, 2026-09-11).
 * Assets and links remain owned by the existing PHP.
 * Load after design-20260911.css.
 */
.ms-mobile-copy { display: none; }
.ms-partner-more-mobile { display: none; }
.ms-home .ms-partners-featured { grid-template-columns: repeat(5,minmax(0,1fr)); }

/* One card frame; the 260px illustration area has no second frame. */
.ms-taxonomy__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #dbe4e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}
.ms-taxonomy__card .ms-taxonomy__image {
  display: block;
  flex: 0 0 260px;
  width: 100%;
  height: 260px;
  aspect-ratio: auto;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: #fff !important;
  box-shadow: none;
}
.ms-taxonomy__card .ms-taxonomy__image img {
  display: block;
  width: 100%;
  height: 260px;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: #fff;
  box-shadow: none;
}
.ms-taxonomy__card .ms-taxonomy__card-body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 0;
  padding: 16px 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.ms-taxonomy__card h3 {
  width: 100%;
  margin: 0;
  padding: 0 0 8px;
  border-bottom: 1px solid #dbe4e8;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: normal;
}
.ms-taxonomy__card h3 a { color: #172e42; }
.ms-taxonomy__card .ms-taxonomy__children {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 24px;
}
.ms-taxonomy__card .ms-taxonomy__children li {
  display: block;
  margin: 0;
  padding: 0;
}
.ms-taxonomy__card .ms-taxonomy__children a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  color: #172e42;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}
.ms-taxonomy__card .ms-taxonomy__children a::after {
  content: '\2192';
  float: none;
  flex: 0 0 20px;
  color: #007c96;
  font-weight: 600;
}
.ms-taxonomy__card .ms-taxonomy__browse {
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: #172e42;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}
.ms-home > .ms-taxonomy {
  width: calc(100% - 48px);
  max-width: 1240px;
  padding: 64px 0;
}
.ms-home .ms-taxonomy__intro { margin-bottom: 24px; }
.ms-home .ms-taxonomy__intro h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: normal;
}
.ms-home .ms-taxonomy__all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.ms-home .ms-taxonomy__grid { gap: 24px; }
.ms-home .ms-taxonomy__card { min-height: 480px; }
.ms-taxonomy--directory .ms-taxonomy__card { min-height: 600px; }
.ms-home .ms-taxonomy__card .ms-taxonomy__card-body { min-height: 0; }

/* Home typography and vertical rhythm from the current desktop reference. */
.ms-home h1, .ms-home h2, .ms-home h3 { letter-spacing: normal; }
.ms-home-hero .hero-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 620px;
  max-width: 100%;
}
.ms-home .ms-home-hero .hero-message > * { margin: 0; }
.ms-home .ms-home-hero h1 { font-size: 64px; line-height: 70px; }
.ms-home-hero .hero-message > .eyebrow { font-size: 12px; line-height: 18px; }
.ms-home-hero .hero-message > p:not(.eyebrow) { font-size: 18px; line-height: 28px; }
.ms-home-hero .search { width: 100%; gap: 12px; }
.ms-home-hero .ms-bom-link { font-weight: 500; line-height: 24px; }
.ms-home .ms-services h2 { line-height: 46px; }
.ms-home .ms-service-card { gap: 16px; }
.ms-home .ms-service-title h3 { line-height: 32px; }
.ms-home .ms-service-title img { filter: none; }
.ms-home .ms-service-card li { background-image: url('design-20260911/figma-service-check.svg'); background-size: 18px 18px; }
.ms-home .ms-service-action { line-height: 24px; }
.ms-home .ms-service-action img { width: 28px; height: 28px; }
.ms-home .ms-industry { min-height: 620px; }
.ms-home .ms-industry h2 { line-height: 46px; }
.ms-home .ms-industry-options > a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding-block: 6px;
  font-size: 16px;
  line-height: 28px;
}
.ms-home .company-figures { padding-block: 32px; }
.ms-home .company-figure {
  gap: 8px;
  padding: 22px 20px;
  border-color: rgb(26 64 87 / 30%);
  background: #f9fbfc;
}
.ms-home .company-figure dd { margin: 0; font-size: 52px; line-height: 1.4; }
.ms-home .company-figure dt { color: #172e42; font-size: 16px; font-weight: 500; line-height: 1.4; }
.ms-home .ms-about-home h2 { color: #0e1012; line-height: 54px; }
.ms-home .ms-about-home p { max-width: 530px; color: #0e1012; }
.ms-home .ms-about-home .button {
  justify-content: center;
  width: 240px;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 15px;
  line-height: 24px;
}
.ms-home .ms-brands > .eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 13px;
}
.ms-home .ms-brands h2 { margin: 0; padding-bottom: 16px; line-height: 46px; }
.ms-home .ms-authorized { gap: 20px; padding: 16px 0 24px; }
.ms-home .ms-authorized a { height: auto; min-height: 108px; padding: 16px; }
.ms-home .ms-brands-heading { margin-bottom: 24px; }
.ms-home .ms-brands-heading h3 {
  margin: 0;
  border-left-width: 4px;
  padding-left: 14px;
  font-weight: 600;
  line-height: 36px;
}
.ms-home .ms-brands-heading > a { font-size: 14px; line-height: 22px; }
.ms-home .ms-learning { display: flex; flex-direction: column; gap: 24px; }
.ms-home .ms-learning > * { margin: 0; }
.ms-home .ms-learning h2, .ms-home .ms-closing h2 { line-height: 43px; }
.ms-home .ms-learning h3 { font-size: 20px; line-height: 28px; }
.ms-home .ms-learning p { color: #536775; font-size: 16px; line-height: 26px; }
.ms-home .ms-learning nav a { flex: 0 1 240px; font-size: 16px; font-weight: 500; line-height: 24px; }
.ms-home .ms-closing .button {
  justify-content: center;
  width: 200px;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}
@media (min-width: 701px) {
  .ms-home .ms-partners { padding-top: 24px; row-gap: 24px; }
  .ms-home .ms-quality-home { margin-bottom: 64px; }
  .ms-home .ms-quality-home h2 { line-height: 43px; }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .ms-home .ms-taxonomy__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-home .company-figure dd { font-size: 40px; }
}
@media (max-width: 760px) {
  .ms-home > .ms-taxonomy { width: calc(100% - 48px); padding: 32px 0; }
  .ms-home .ms-taxonomy__grid { grid-template-columns: minmax(0, 1fr); }
  .ms-taxonomy--directory { padding-inline: 0; }
  .ms-home .ms-taxonomy__intro { gap: 12px; }
  .ms-home .ms-taxonomy__intro h2 { font-size: 26px; line-height: 34px; }
  .ms-home .ms-taxonomy__all { font-size: 13px; }
  .ms-home .company-figures { padding-block: 24px; }
  .ms-home .company-figures-grid { gap: 24px; }
  .ms-home .company-figure { padding: 18px 10px; }
  .ms-home .company-figure dd { font-size: 32px; line-height: 44px; }
  .ms-home .company-figure dt { font-size: 12px; line-height: 20px; }
}
/* Mobile values read from Figma 39:1132, mobile-reference.tsx. */
@media (max-width: 700px) {
  .ms-home .ms-partners-featured { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ms-home .ms-brands-heading > a { display: none; }
  .ms-home .ms-partner-more-mobile { display: block; margin-top: 24px; text-align: right; font-size: 14px; line-height: 22px; }
  .ms-desktop-copy, .ms-desktop-word, .ms-desktop-break { display: none; }
  .ms-mobile-copy { display: inline; }
  .ms-home .ms-taxonomy__intro { flex-wrap: nowrap; }
  .ms-home .ms-taxonomy__all { flex: 0 0 112px; justify-content: flex-end; }
  .ms-home .ms-home-hero h1 { font-size: 40px; line-height: 46px; }
  .ms-home-hero .hero-message > p:not(.eyebrow) { font-size: 16px; line-height: 26px; }
  .ms-home-hero .search { gap: 12px; padding-left: 16px; font-size: 14px; }
  .ms-home-hero .search button { min-width: 80px; font-size: 15px; }
  .ms-home-hero .ms-bom-link { font-size: 16px; }
  .ms-home .ms-services { padding-block: 32px; }
  .ms-home .ms-services h2 { margin-bottom: 20px; font-size: 30px; line-height: 40px; }
  .ms-home .ms-service-grid { gap: 20px; }
  .ms-home .ms-service-card { min-height: 310px; }
  .ms-home .ms-industry { min-height: 800px; padding-block: 32px; }
  .ms-home .ms-industry h2 { margin-bottom: 24px; font-size: 28px; line-height: 38px; }
  .ms-home .ms-industry-image { height: 205px; }
  .ms-home .ms-industry-options button {
    min-height: 44px;
    padding: 11px 16px;
    font-size: 15px;
    line-height: 22px;
  }
  .ms-home .ms-industry-options > a {
    min-height: 44px;
    padding: 11px 0;
    font-size: 15px;
    line-height: 22px;
  }
  .ms-home .ms-about-home {
    align-items: flex-start;
    padding-top: 310px;
    padding-bottom: 32px;
    background-size: 780px 470px;
    background-position: right -40px top;
    background-repeat: no-repeat;
    background-color: #f7fafb;
  }
  .ms-home .ms-about-home > .wrap { padding-block: 0; }
  .ms-home .ms-about-home h2 { line-height: 42px; }
  .ms-home .ms-brands { padding-block: 24px; }
  .ms-home .ms-brands h2 { line-height: 40px; }
  .ms-home .ms-brands-heading h3 { line-height: 36px; }
  .ms-home .ms-brands-heading > a { font-size: 12px; }
  .ms-home .ms-partners { gap: 24px 18px; }
  .ms-home .ms-partners a { height: 100px; }
  .ms-home .ms-partners img { max-width: 136px; }
  .ms-home .ms-quality-home { padding-block: 28px; }
  .ms-home .ms-quality-home h2, .ms-home .ms-quality-home p,
  .ms-home .ms-learning h3, .ms-home .ms-learning > p { display: none; }
  .ms-home .ms-quality-home a { display: block; font-size: 16px; line-height: 26px; margin: 0; }
  .ms-home .ms-quality-home a + a { margin-top: 26px; }
  .ms-home .ms-learning { padding-block: 24px; }
  .ms-home .ms-learning h2 { font-size: 20px; font-weight: 500; line-height: 28px; }
  .ms-home .ms-learning nav a { flex-basis: auto; font-size: 14px; line-height: 22px; }
  .ms-home .ms-learning nav { flex-direction: row; flex-wrap: wrap; gap: 22px 24px; }
  .ms-home .ms-learning nav a:first-child { flex-basis: 100%; }
  .ms-home .ms-closing { padding-block: 24px; }
  .ms-home .ms-closing h2 { font-size: 36px; line-height: 43px; }
  .ms-home .ms-closing .button { width: 100%; }
}
