/* Shared article reading and resource-index layout. */
body[data-article-layout] .page-wrapper,
body[data-article-layout] > main:not(.page-wrapper) {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 128px 28px 72px;
}
body[data-article-layout] .article {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.article-page-sections {
  margin: 20px 0 24px;
  padding: 8px 0;
  border-block: 1px solid var(--border, #272634);
}
.article-page-sections ul,
.article-related ul,
.article-resource-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-page-sections ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
.article-page-sections li,
.article-related li,
.article-resource-index li {
  margin: 0;
}
.article .article-navigation-label {
  color: var(--text-primary, #F4F3FB);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.article-page-sections a,
.article-related a,
.article-resource-index a {
  color: var(--text-secondary, #9A98B2);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.article-page-sections a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  border-bottom: 0;
  padding: 4px 0;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--border, #272634);
  text-underline-offset: 4px;
}
.article-page-sections a:hover { border-bottom: 0; }
.article-page-sections a:hover,
.article-related a:hover,
.article-resource-index a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-page-sections a:focus-visible,
.article-related a:focus-visible,
.article-resource-index a:focus-visible {
  outline: 2px solid var(--text-primary, #F4F3FB);
  outline-offset: 3px;
}
.article h2[id] { scroll-margin-top: 108px; }
body[data-article-layout] .article .byline,
body[data-article-layout] .article .picker-label,
body[data-article-layout] .article .swipe-hint,
body[data-article-layout] .article .sources {
  color: var(--text-secondary, #9A98B2);
}
.article-related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #272634);
}
.article-related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 0;
}
.article-related .article-all-resources {
  text-decoration: underline;
  text-decoration-color: var(--border, #272634);
  text-underline-offset: 4px;
}
.article-resource-index {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border, #272634);
}
.article-resource-index > h2 { margin-bottom: 28px; }
.article-resource-group + .article-resource-group { margin-top: 36px; }
.article-resource-group h2 {
  margin: 0;
  font-size: 22px;
}
.article-resource-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 0;
}
@media (max-width: 900px) {
  body[data-article-layout] .page-wrapper,
  body[data-article-layout] > main:not(.page-wrapper) {
    padding: 108px 20px 48px;
  }

}
/* Phone header: one secondary link survives, and it is the Sound Center.
   Player landings convert to install clicks at 9.1% against 1.5 to 2.4% for
   article landings (GA4, Sep 17 to Oct 14, 2026), so the resource hub link
   gives way; the jump navigation and Related reading carry that job. */
@media (max-width: 640px) {
  body[data-article-layout] nav .nav-actions {
    min-width: 0;
    gap: 6px;
    justify-content: flex-end;
  }
  body[data-article-layout] nav .nav-actions .btn-ghost { display: none; }
  body[data-article-layout] nav .nav-actions a.btn-ghost[href$="/sound-center"] { display: inline-flex; }
  body[data-article-layout] nav .nav-actions a.btn-ghost[href$="/sound-center"],
  body[data-article-layout] nav .article-get-app {
    min-width: 0;
    padding: 8px;
    white-space: nowrap;
  }
}

/* The article download offer (2026-10-17): the one store offer component in
   every article body, written by scripts/localize/lib/article-offer.mjs. A
   short heading, the page's offer copy, then both stores as filled buttons at
   every width. */
.article-offer {
  margin: 40px 0;
  padding: 28px 24px;
  border: 1px solid var(--border, #2A2A38);
  border-radius: var(--site-radius, 14px);
  background: var(--surface, #111118);
  text-align: left;
}
.article-offer .article-offer-title {
  margin: 0 0 10px;
  font-size: var(--site-h3-size, 20px);
  font-weight: var(--site-h3-weight, 600);
  line-height: var(--site-h3-line, 1.35);
  letter-spacing: 0;
  color: var(--site-text-primary, #F4F3FB);
}
.article .article-offer > p,
.article .article-offer > ul {
  max-width: none;
  margin: 0 0 12px;
}
.article-offer > ul { padding-left: 20px; }
.article-offer .article-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.article-offer .article-offer-actions .btn {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 12px 20px;
  gap: 8px;
  font-size: 15px;
  white-space: normal;
  text-align: center;
}
.article-offer .article-offer-actions svg { flex: none; }
.article-offer .article-offer-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: var(--site-meta-size, 14px);
}
.article-offer .veil-en-note { margin: 12px 0 0; }
.article-offer :focus-visible { outline: 2px solid var(--site-text-primary, #F4F3FB); outline-offset: 3px; }

/* Screenshot presentation shared with the bedroom guide. */
.article-screenshot { margin: 40px auto; text-align: center; }
.article-screenshot img { width: 100%; max-width: 260px; height: auto; border-radius: 20px; }
.article-screenshot figcaption { color: var(--text-secondary); font-size: 14px; margin-top: 16px; }
