/* Smart Downloads (P14) — modest page-level styles.
 * Reuses the site's existing fonts and purple-on-warm-neutrals brand
 * (#6E4FCB); no new design system, no framework. The immutable
 * site.css/legal.css stay untouched — these are additive page classes. */

.downloads-main .lede {
  font-size: 1.1rem;
  line-height: 1.9;
  max-width: 62ch;
}

#product-selector[hidden],
#device-override[hidden],
.dl-install-group[hidden] {
  display: none;
}

#product-selector,
#device-override {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 0;
}

#product-selector button,
#device-override button {
  font: inherit;
  cursor: pointer;
  border: 2px solid #6e4fcb;
  border-radius: 999px;
  background: #fff;
  color: #3a2a7a;
  padding: 0.5rem 1rem;
  min-height: 44px;
}

#product-selector button[aria-pressed="true"],
#device-override button[aria-pressed="true"] {
  background: #6e4fcb;
  color: #fff;
}

#product-selector button:focus-visible,
#device-override button:focus-visible,
.dl-btn:focus-visible,
.dl-copy:focus-visible,
.dl-share input:focus-visible {
  outline: 3px solid #6e4fcb;
  outline-offset: 2px;
}

#downloads-status {
  min-height: 1.5em;
  font-weight: 600;
}

.dl-recommend {
  font-weight: 600;
}

.dl-group {
  border: 1px solid #e3d9f5;
  border-radius: 0.75rem;
  background: #fbf9ff;
  margin: 0.75rem 0;
  padding: 0.25rem 1rem;
}

.dl-group > summary {
  cursor: pointer;
  padding: 0.75rem 0;
  font-size: 1.05rem;
}

.dl-card {
  border: 1px solid #e3d9f5;
  border-radius: 0.75rem;
  background: #fbf9ff;
  margin: 1rem 0;
  padding: 1rem 1.25rem;
}

.dl-card h3 {
  margin: 0 0 0.5rem;
}

.dl-aud {
  font-weight: 400;
  font-size: 0.9em;
}

.dl-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: grid;
  gap: 0.5rem;
}

.dl-entry {
  line-height: 1.8;
}

.dl-btn {
  display: inline-block;
  border-radius: 999px;
  background: #6e4fcb;
  color: #fff;
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  min-height: 44px;
}

.dl-btn--ghost {
  background: #fff;
  color: #3a2a7a;
  border: 2px solid #6e4fcb;
}

.dl-meta {
  font-size: 0.85em;
  opacity: 0.85;
}

.dl-pending span:first-child,
.dl-soon span:first-child,
.dl-note {
  font-weight: 600;
}

.dl-web,
.dl-desktop,
.dl-share {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #d9cdf3;
}

.dl-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.dl-share input {
  font: inherit;
  direction: ltr;
  text-align: left;
  flex: 1 1 16rem;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #c9bdf0;
  border-radius: 0.5rem;
  background: #fff;
  color: inherit;
}

.dl-copy {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  border: 2px solid #6e4fcb;
  background: #fff;
  color: #3a2a7a;
  padding: 0.45rem 1rem;
  min-height: 44px;
}

.dl-copy-status {
  min-height: 1.5em;
}
