/* Scoped to the Why Build preview. Loaded only by this page. */

#mk-footer,
#mk-footer .mk-footer-copyright {
  background-color: #3d4045;
}

#mk-footer .mk-footer-copyright {
  color: #fff;
}

.why-preview {
  --navy: #173460;
  --navy-deep: #102544;
  --title: #003584;
  --ink: #1c2836;
  --muted: #5c6b7c;
  --line: #d7e0ea;
  --paper: #f3f6fa;
  --shadow: 0 10px 28px rgba(23, 52, 96, 0.08);
  font-family: "Open Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  font-size: 18px;
}

.why-preview * {
  box-sizing: border-box;
}

.why-preview img,
.why-preview video {
  max-width: 100%;
  height: auto;
  display: block;
}

.why-preview h1,
.why-preview h2,
.why-preview h3,
.why-preview .btn {
  font-family: Roboto, "Open Sans", sans-serif;
}

.why-preview h1,
.why-preview h2,
.why-preview h3 {
  color: var(--title);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.why-preview h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 900;
}

.why-preview h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.why-preview h3 {
  font-size: 20px;
  color: var(--navy);
}

.why-preview p {
  margin: 0 0 14px;
}

.why-preview a {
  color: var(--title);
}

.why-preview .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.why-preview .lede {
  font-size: 20px;
  line-height: 1.45;
  max-width: 36rem;
}

.why-preview .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.why-preview a.btn,
.why-preview button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--navy);
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2;
}

.why-preview a.btn:hover,
.why-preview a.btn:focus,
.why-preview button.btn:hover,
.why-preview button.btn:focus {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.why-preview .band button.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.why-preview .band button.btn-ghost:hover,
.why-preview .band button.btn-ghost:focus {
  background: #fff;
  color: var(--navy);
}

.why-preview .panel {
  background: #fff;
}

.why-preview .paper {
  background: var(--paper);
}

.why-preview .band {
  background: var(--navy-deep);
  color: #fff;
}

.why-preview .band h2,
.why-preview .band p {
  color: #fff;
}

.why-preview .band p {
  max-width: 40rem;
  font-size: 20px;
}

.why-preview .split {
  display: grid;
  gap: 36px;
  align-items: center;
}

.why-preview .photo-frame {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #e7eef6;
  box-shadow: var(--shadow);
}

.why-preview .photo-frame img {
  width: 100%;
}

.why-preview .load-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.why-preview .load-row li {
  margin: 0;
  padding: 14px 12px;
  background: var(--paper);
  border-radius: 12px;
  color: var(--navy);
  font-family: Roboto, "Open Sans", sans-serif;
  font-weight: 700;
  text-align: center;
}

.why-preview .scope-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.why-preview .callout {
  margin: 0;
  padding: 28px 28px 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 20px;
  line-height: 1.45;
  color: var(--navy);
}

.why-preview .callout p:last-child {
  margin-bottom: 0;
}

.why-preview .path {
  display: grid;
  gap: 18px;
  margin: 28px 0 8px;
  padding: 0;
  list-style: none;
}

.why-preview .path li {
  margin: 0;
  padding: 8px 8px 8px 0;
}

.why-preview .path strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--navy);
  font-family: Roboto, "Open Sans", sans-serif;
  font-size: 20px;
}

.why-preview .path span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: Roboto, "Open Sans", sans-serif;
  font-weight: 700;
}

.why-preview .text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.why-preview .text-links a {
  font-family: Roboto, "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.why-preview .steel-list {
  display: grid;
  gap: 8px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.why-preview .steel-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.why-preview .steel-list svg {
  width: 36px;
  height: 36px;
  margin-top: 2px;
  color: var(--navy);
}

.why-preview .steel-list h3 {
  margin-bottom: 4px;
}

.why-preview .steel-list p {
  margin: 0;
  color: var(--muted);
}

.why-preview .qualifier {
  margin-top: 22px;
  max-width: 44rem;
}

.why-preview .video-row {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 36px;
}

.why-preview video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--navy-deep);
  border-radius: 16px;
}

.why-preview .next-links {
  display: grid;
  gap: 12px;
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
}

.why-preview .next-links a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-family: Roboto, "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--shadow);
}

.why-preview .next-links a:hover,
.why-preview .next-links a:focus {
  color: var(--title);
}

@media (min-width: 800px) {
  .why-preview .split,
  .why-preview .scope-grid,
  .why-preview .video-row {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .why-preview .path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .why-preview .steel-list {
    grid-template-columns: 1fr 1fr;
  }

  .why-preview .next-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 799px) {
  .why-preview .wrap {
    padding: 48px 16px;
  }

  .why-preview .actions a.btn,
  .why-preview .actions button.btn {
    width: 100%;
  }

  .why-preview .load-row {
    grid-template-columns: 1fr;
  }

  .why-preview .split .photo-frame {
    order: -1;
  }
}

/* t94u: navy intro matching the Compare Building Types preview hero
   (rules copied from compare-building-types/styles.css:
   .about-hero, .about-hero-inner, .kicker, h1, .lede, .lede-sub,
   .compare-hero, .step-overview, .jump-title), scoped to this page. */
.why-preview .about-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 48px 20px 52px;
}

.why-preview .about-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
}

.why-preview .about-hero .kicker {
  margin: 0 0 8px;
  color: #9fd3ff;
  font-family: Roboto, "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.why-preview .about-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 900;
  text-transform: none;
}

.why-preview .about-hero .lede {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  max-width: 34em;
}

.why-preview .about-hero .lede-sub {
  margin: 8px 0 0;
  color: #d6e2f0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 34em;
}

.why-preview .step-overview {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 18px 20px;
}

.why-preview .jump-title {
  margin: 0 0 8px 6px;
  color: #9fd3ff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-family: Roboto, "Open Sans", sans-serif;
  line-height: 1.4;
}

.why-preview .step-overview ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.why-preview .step-overview li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-preview .step-overview a,
.why-preview .step-overview button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: none;
}

.why-preview .step-overview a:hover,
.why-preview .step-overview button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.why-preview .step-overview a:focus-visible,
.why-preview .step-overview button:focus-visible {
  outline: 3px solid #9fd3ff;
  outline-offset: 2px;
}

.why-preview .step-overview .n {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Roboto, "Open Sans", sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.why-preview .step-overview .act {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.why-preview .step-overview .act strong {
  color: #fff;
  font-family: Roboto, "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.why-preview .step-overview .act-note {
  color: #d6e2f0;
  font-size: 15px;
  font-weight: 400;
}

.why-preview .photo-frame figcaption {
  padding: 10px 16px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.why-preview .media-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: Roboto, "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.why-preview .steel-intro {
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .why-preview .about-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .why-preview .about-hero {
    padding: 22px 16px 26px;
  }

  .why-preview .about-hero h1 {
    font-size: 30px;
  }

  .why-preview .about-hero .lede {
    font-size: 16px;
  }

  .why-preview .step-overview .act strong {
    font-size: 17px;
  }
}

/* t94u: explicit text colours (the theme stylesheet sets a light grey on p) */
.why-preview .lede { color: #3f4d5e; }
.why-preview .path p,
.why-preview .steel-list p,
.why-preview .qualifier { color: #44515f; }
.why-preview .callout p { color: var(--navy); }
.why-preview .about-hero p.lede { color: #fff; }
.why-preview .about-hero p.lede-sub { color: #d6e2f0; }
.why-preview .band p { color: #fff; }

.why-preview .steel-intro .photo-frame img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.why-preview .callout p { font-size: 19px; line-height: 1.5; }
.why-preview .path p,
.why-preview .steel-list p,
.why-preview .qualifier { font-size: 16px; line-height: 1.5; }
.why-preview .about-hero { font-size: 16px; line-height: normal; }
.why-preview .about-hero .kicker,
.why-preview .jump-title { line-height: normal; }

/* t94u: align link lists with the content edge (theme adds li margin-left) */
.why-preview .next-links li,
.why-preview .text-links li {
  margin: 0;
  padding: 0;
}

/* t94u: one footer colour (the copyright span was darker than #sub-footer) */
#mk-footer #sub-footer {
  background-color: #3d4045;
}

#mk-footer .mk-footer-copyright {
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 14px;
}
