/* Readability and touch targets. Loaded after page styles, except on Metal Slug. */
/* Paired collection cards share image frames and a bottom-aligned action row. */
@media (min-width: 761px) {
  .homepage .project-grid {
    align-items: stretch;
  }

  .homepage .project-grid > .project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .homepage .project-grid .project-visual {
    flex: none;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  .homepage .project-grid .project-visual > img {
    object-fit: contain;
  }

  .homepage .project-grid .card-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
  }

  .homepage .project-grid .card-description {
    margin-bottom: 20px;
  }

  .homepage .project-grid .card-bottom {
    margin-top: auto;
  }
}

.breadcrumbs {
  font-size: 14px;
  line-height: 1.5;
  gap: 4px 12px;
  margin-bottom: 36px;
}

.breadcrumbs a,
.page-sections a,
.guide-source a,
.guide-discovery a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
}

.page-sections {
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 14px;
  line-height: 1.5;
}

.detail-description,
.quick-answer > p:last-child,
.detail-features p,
.how-to p,
.steps-graphic p,
.controls-section > div > p:not(.eyebrow),
.controls-list dd,
.tips-grid p,
.faq-list details > p,
.homepage .faq-list details > p,
.legal p {
  font-size: 16px;
  line-height: 1.8;
}

.controls-list dt,
.faq-list summary,
.homepage .faq-list summary {
  font-size: 16px;
  line-height: 1.5;
}

.card-copy > p:not(.eyebrow),
.homepage .card-copy > p:not(.eyebrow),
.about-copy > p:not(.eyebrow),
.project-disclaimer,
.guide-source,
.text-link,
.about-copy .text-link {
  font-size: 14px;
  line-height: 1.7;
}

.detail-page .eyebrow,
.section-heading .eyebrow,
.homepage .section-heading .eyebrow,
.about-copy > .eyebrow,
.homepage .about-copy > .eyebrow,
.faq-heading .eyebrow,
.contact-intro > .eyebrow,
.legal > .eyebrow,
.blog-empty .eyebrow {
  font-size: 12px;
  letter-spacing: 1.4px;
}

.guide-section.racing {
  --accent: #ae3b1a;
}

/* CTA labels sit on tinted panels, so use the body ink for reliable contrast. */
.guide-section .project-end-cta .eyebrow {
  color: var(--ink);
}

.guide-source {
  flex-wrap: wrap;
  gap: 8px 24px;
}

.guide-source > *,
.guide-source a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.stat-cell > span {
  max-width: 100%;
  font-size: 14px;
  line-height: 1.5;
}

.stat-cell {
  min-width: 0;
}

.menu-button {
  width: 44px;
  height: 44px;
}

.related .text-link,
.about-copy .text-link,
.detail-page .button,
.how-to .button {
  min-height: 44px;
}

.detail-page .button {
  font-size: 14px;
}

.room-status {
  font-size: 14px;
  line-height: 1.6;
}

.featured-copy .room-status {
  max-width: 430px;
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 3px solid #b7d49f;
  color: #e1eedf;
  background: #ffffff0c;
}

.detail-intro .room-status {
  max-width: 580px;
  margin: 18px auto 0;
  color: #4f5d47;
}

.guide-fold > summary,
.experience-fold > summary,
.project-artwork > summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  min-height: 64px;
  padding: 20px 64px 20px 24px;
  border: 1px solid #c9cebf;
  border-radius: 20px;
  background: #eeefe6;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.guide-fold > summary::-webkit-details-marker,
.experience-fold > summary::-webkit-details-marker,
.project-artwork > summary::-webkit-details-marker {
  display: none;
}

.guide-fold > summary > span,
.experience-fold > summary > span,
.project-artwork > summary > span {
  display: block;
  margin-top: 7px;
  color: #58634e;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.guide-fold > summary::after,
.experience-fold > summary::after,
.project-artwork > summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: calc(50% - 7px);
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.guide-fold[open] > summary::after,
.experience-fold[open] > summary::after,
.project-artwork[open] > summary::after {
  top: calc(50% - 3px);
  transform: rotate(225deg);
}

.guide-fold-body {
  padding-top: 32px;
}

.experience-fold {
  padding-block: 20px 35px;
}

.experience-fold > summary {
  width: min(1000px, calc(100% - 104px));
  margin-inline: auto;
}

/* Promotional artwork stays available without taking over the product preview. */
.product-preview {
  max-width: 1000px;
  border: 1px solid #c9cebf;
  background: #eeefe6;
}

.product-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.product-preview figcaption {
  padding: 16px 20px;
  color: #4f5b46;
  background: #eeefe6;
  font-size: 14px;
  line-height: 1.6;
}

.project-artwork {
  max-width: 1000px;
  margin-block: 24px 36px;
}

.project-artwork > summary {
  min-height: 56px;
  padding: 16px 60px 16px 22px;
  font-size: 16px;
}

.project-artwork .detail-image {
  width: 100%;
  max-width: none;
  margin: 20px 0 0;
}

@media (max-width: 860px) {
  .experience-fold > summary {
    width: calc(100% - 72px);
  }
}

@media (max-width: 760px) {
  .homepage .featured-copy .room-status {
    color: #41523d;
    background: #edf2e7;
    border-color: #6a8151;
  }
}

@media (max-width: 620px) {
  .breadcrumbs {
    margin-bottom: 28px;
  }

  .page-sections {
    gap: 4px 20px;
  }

  .stat-cell {
    padding-inline: 10px;
  }

  .experience-fold > summary {
    width: calc(100% - 40px);
  }

  .guide-fold > summary,
  .experience-fold > summary {
    padding: 18px 54px 18px 20px;
    font-size: 18px;
  }

  .guide-fold > summary::after,
  .experience-fold > summary::after {
    right: 22px;
  }
}

@media (max-width: 400px) {
  .stat-cell {
    padding-inline: 7px;
  }

  .stat-cell strong {
    font-size: clamp(26px, 8vw, 32px);
    letter-spacing: -1px;
  }
}

/* Give long fact labels room on the narrowest phones instead of clipping them. */
@media (max-width: 359px) {
  .stat-graphic {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-cell {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
  }

  .stat-cell strong {
    min-width: 80px;
    font-size: 32px;
  }
}
