/* Shared styles for feature overviews and music-making guides. */
#content .hero-card--text,
#content .about-card--text {
  aspect-ratio: auto;
  height: auto;
}

.feature-updates,
.feature-guide {
  max-width: 1120px;
  margin: 72px auto;
  padding: 0 24px;
  box-sizing: border-box;
  line-height: 1.75;
}

.feature-updates__header {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.feature-eyebrow {
  color: #d9ae8f;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-updates h2,
.feature-guide h1 {
  margin: 8px 0 16px;
  padding: 0;
  color: #e18d5a;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.25;
  font-weight: 600;
  overflow: visible;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  border: 1px solid #514034;
  border-radius: 14px;
  background: #1c1917;
}

.feature-card > .feature-eyebrow {
  margin: 0 0 12px;
}

#content .feature-card h3 {
  margin: 0 0 10px;
  color: #f1e4d7;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: normal;
  text-align: left;
}

.feature-card > p:not(.feature-eyebrow) {
  margin: 0 0 22px;
}

.feature-card > a {
  margin-top: auto;
}

.feature-card > a.feature-screenshot {
  margin: 4px 0 18px;
}

a.feature-screenshot {
  display: block;
  border: 1px solid #76513a;
  border-radius: 8px;
  overflow: hidden;
  background: #141211;
  cursor: zoom-in;
}

.feature-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-card .feature-screenshot img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.feature-guide figure {
  margin: 24px 0;
}

.feature-guide figure img {
  max-height: 560px;
  object-fit: contain;
}

.feature-guide figcaption {
  margin-top: 8px;
  color: #d9ae8f;
  font-size: 0.85rem;
}

.feature-lightbox {
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 16px;
  border: 1px solid #b88059;
  border-radius: 12px;
  background: #1c1917;
  color: #f1e4d7;
}

.feature-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.feature-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  width: auto;
  height: auto;
  margin: 12px auto;
  object-fit: contain;
}

.feature-lightbox p {
  max-width: 960px;
  margin: 8px 0 0;
  line-height: 1.5;
}

.feature-lightbox__close {
  display: block;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid #b88059;
  border-radius: 6px;
  background: #33251c;
  color: #fff1e5;
  font: inherit;
  cursor: pointer;
}

.feature-lightbox__close:focus-visible {
  outline: 2px solid #efab80;
  outline-offset: 3px;
}

.feature-updates a,
.feature-guide a,
.feature-guide-banner a,
a.feature-text-link,
.feature-catalog a {
  color: #efab80;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feature-updates a:hover,
.feature-guide a:hover,
.feature-guide-banner a:hover {
  color: #fff1e5;
}

a.feature-text-link:hover,
.feature-catalog a:hover {
  color: #fff1e5;
}

.feature-catalog {
  padding: 12px;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 10px;
}

.feature-catalog__table {
  width: 100%;
  border-collapse: collapse;
  line-height: 1.7;
}

.feature-catalog td {
  padding: 12px 8px;
  border-bottom: 1px solid #333;
}

.feature-catalog tr:last-child td {
  border-bottom: 0;
}

.feature-catalog td p {
  margin: 6px 0 0;
}

.feature-guide pre {
  padding: 16px;
  border: 1px solid #514034;
  border-radius: 8px;
  background: #141211;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feature-updates a:focus-visible,
.feature-guide a:focus-visible,
.feature-guide-banner a:focus-visible,
a.feature-text-link:focus-visible,
.feature-catalog a:focus-visible {
  outline: 2px solid #efab80;
  outline-offset: 5px;
  border-radius: 2px;
}

.feature-updates__more {
  margin: 26px 0 0;
  text-align: center;
}

.feature-guide-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 24px;
  border: 1px solid #76513a;
  border-radius: 14px;
  background: #211b17;
  line-height: 1.65;
}

.feature-guide-banner > div {
  flex: 1 1 320px;
  min-width: 0;
}

.feature-guide-banner p {
  margin: 0;
}

.feature-guide-banner h2 {
  color: #f1e4d7;
  font-size: 1.3rem;
  margin: 8px 0;
}

.feature-guide-link {
  display: inline-block;
  padding: 10px 0;
  font-weight: 600;
}

.feature-guide {
  max-width: 960px;
  margin-top: 40px;
}

.feature-guide__intro {
  max-width: 740px;
}

.feature-guide__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 40px;
}

.feature-guide__nav a {
  padding: 8px 14px;
  border: 1px solid #76513a;
  border-radius: 24px;
  text-decoration: none;
}

.feature-guide section {
  margin: 0 0 28px;
  padding: 28px;
  border: 1px solid #514034;
  border-radius: 14px;
  background: #1c1917;
  scroll-margin-top: 20px;
}

.feature-guide h2 {
  color: #f1e4d7;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 16px;
}

.feature-guide h3 {
  color: #e9b18d;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.feature-guide ul,
.feature-guide ol {
  float: none;
  padding-left: 24px;
}

.feature-guide li + li {
  margin-top: 10px;
}

.feature-guide code,
.feature-guide kbd {
  font-family: Consolas, monospace;
  font-size: 0.92em;
  color: #f0d1b7;
  overflow-wrap: anywhere;
}

.feature-guide__note {
  padding-left: 16px;
  border-left: 3px solid #b88059;
  color: #d6c3b1;
}

.feature-guide__table-wrap {
  overflow-x: auto;
}

.feature-guide table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.feature-guide caption {
  text-align: left;
  margin-bottom: 12px;
  color: #e9b18d;
}

.feature-guide th,
.feature-guide td {
  padding: 12px 10px;
  border-bottom: 1px solid #514034;
  vertical-align: top;
}

.feature-guide th {
  color: #f1e4d7;
}

.feature-guide__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 32px;
}

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

@media (max-width: 600px) {
  .feature-updates,
  .feature-guide {
    padding: 0 4px;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .feature-card,
  .feature-guide section,
  .feature-guide-banner {
    padding: 20px;
  }

  .feature-guide th,
  .feature-guide td {
    padding: 10px 6px;
  }
}
