/* Scoped to the American barn style preview. Loaded only by this page. */

#mk-footer,
#mk-footer .mk-footer-copyright {
  background-color: #3d4045;
}

#mk-footer .mk-footer-copyright {
  color: #fff;
}

.barn-preview {
  --navy: #173460;
  --navy-deep: #102544;
  --title: #003584;
  --ink: #1c2836;
  --muted: #5c6b7c;
  --line: #d7e0ea;
  --paper: #f3f6fa;
  --card: #fff;
  --shadow: 0 10px 28px rgba(23, 52, 96, 0.08);
  font-family: "Open Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
}

.barn-preview * {
  box-sizing: border-box;
}

.barn-preview img {
  max-width: 100%;
  height: auto;
  display: block;
}

.barn-preview h1,
.barn-preview h2,
.barn-preview h3,
.barn-preview .btn {
  font-family: Roboto, "Open Sans", sans-serif;
}

.barn-preview h1,
.barn-preview h2,
.barn-preview h3 {
  color: var(--title);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 16px;
}

.barn-preview h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.barn-preview h2 {
  font-size: clamp(28px, 3vw, 36px);
}

.barn-preview h3 {
  font-size: 22px;
  color: var(--navy);
}

.barn-preview p {
  margin: 0 0 16px;
}

.barn-preview a {
  color: var(--title);
}

.barn-preview .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.barn-preview .lede {
  font-size: 20px;
  max-width: 42rem;
}

.barn-preview .eyebrow {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: Roboto, "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.barn-preview .hero {
  background: #fff;
}

.barn-preview .hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.barn-preview .hero-figure {
  margin: 0;
  background: #e7eef6;
  border-radius: 16px;
  overflow: hidden;
}

.barn-preview .hero-figure img {
  width: 100%;
}

.barn-preview .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.barn-preview a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid var(--navy);
}

.barn-preview a.btn:hover,
.barn-preview a.btn:focus {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.barn-preview a.btn-ghost {
  background: #fff;
  color: var(--navy);
}

.barn-preview a.btn-ghost:hover,
.barn-preview a.btn-ghost:focus {
  background: var(--paper);
  color: var(--navy-deep);
}

.barn-preview .panel {
  background: #fff;
}

.barn-preview .prose {
  max-width: 46rem;
}

.barn-preview .gallery {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.barn-preview .gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.barn-preview .gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e7eef6;
  cursor: pointer;
}

.barn-preview .gallery button:focus {
  outline: 3px solid var(--title);
  outline-offset: -3px;
}

.barn-preview .gallery figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 15px;
}

.barn-preview .uses {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.barn-preview .uses article {
  background: var(--paper);
  border-radius: 12px;
  padding: 18px 18px 8px;
}

.barn-preview .kit-grid {
  display: grid;
  gap: 22px;
}

.barn-preview .kit-more {
  justify-content: center;
  margin-top: 28px;
}

.barn-preview .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.barn-preview .card-media {
  background: #e7eef6;
  aspect-ratio: 4 / 3;
}

.barn-preview .card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.barn-preview .card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.barn-preview .card h3 {
  font-size: 20px;
  margin: 0;
}

.barn-preview .card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.barn-preview .card h3 a:hover,
.barn-preview .card h3 a:focus {
  text-decoration: underline;
}

.barn-preview .meta,
.barn-preview .price {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.barn-preview .price {
  color: var(--ink);
  font-weight: 700;
  margin-top: auto;
}

.barn-preview .steps {
  display: grid;
  gap: 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.barn-preview .steps li {
  background: #fff;
  border-radius: 12px;
  padding: 18px 18px 8px;
  border: 1px solid var(--line);
}

.barn-preview .steps strong {
  display: block;
  font-family: Roboto, "Open Sans", sans-serif;
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 6px;
}

.barn-preview .style-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.barn-preview .style-links a {
  font-weight: 700;
}

.barn-preview dialog {
  width: min(980px, 94vw);
  max-height: 92vh;
  border: 0;
  padding: 12px;
  background: #102544;
  color: #fff;
  border-radius: 12px;
}

.barn-preview dialog::backdrop {
  background: rgba(16, 37, 68, 0.72);
}

.barn-preview dialog img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #e7eef6;
}

.barn-preview dialog figcaption {
  margin: 10px 4px 0;
  font-size: 15px;
}

.barn-preview dialog .close-dialog {
  margin: 0 0 8px auto;
  display: block;
  background: #fff;
  color: var(--navy);
  border: 0;
  border-radius: 4px;
  min-height: 40px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 800px) {
  .barn-preview .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .barn-preview .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .barn-preview .uses,
  .barn-preview .steps {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .barn-preview .kit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1180px) {
  .barn-preview .kit-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .barn-preview .wrap {
    padding: 40px 16px;
  }

  .barn-preview .lede {
    font-size: 18px;
  }

  .barn-preview .actions,
  .barn-preview a.btn {
    width: 100%;
  }
}

/* Outlined "See all … kits" button, same look as the Gable Roof and Modern Leanto previews (t92u) */
.barn-preview .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.barn-preview .cta-row a.btn.btn-outline {
  width: auto;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  text-align: center;
}

.barn-preview .cta-row a.btn.btn-outline:focus {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}

.barn-preview .cta-row a.btn.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.barn-preview .cta-row a.btn.btn-outline:focus-visible {
  outline: 2px solid #0096ff;
  outline-offset: 2px;
}
