/* Store-aware download button shared by articles and resource indexes. */
:root { --header-download: var(--site-action, #B8A8FF); --header-download-ink: var(--site-on-action, #08080F); }
nav .article-get-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
  background: var(--header-download);
  color: var(--header-download-ink);
  border: 1px solid var(--header-download);
  font-weight: 600;
  text-decoration: none;
}
nav .article-get-app:hover {
  opacity: 1;
  background: var(--site-action-hover, #F4F3FB);
  color: var(--header-download-ink);
  border-color: var(--site-action-hover, #F4F3FB);
}
nav .article-get-app:focus-visible { outline: 2px solid var(--tint, #B8A8FF); outline-offset: 3px; }
[id="download"], #article-download { scroll-margin-top: 90px; }

/* Header store chooser. The <details> opens without JavaScript; phones never
   see it because header-downloads.js swaps it for a direct store link. */
nav .article-get-app-menu { position: relative; }
nav .article-get-app-menu > summary { list-style: none; cursor: pointer; }
nav .article-get-app-menu > summary::-webkit-details-marker { display: none; }
nav .article-get-app-menu > summary::marker { content: ''; }
nav .article-get-app-menu[open] > summary {
  background: var(--text-primary, #F4F3FB);
  border-color: var(--text-primary, #F4F3FB);
}
nav .article-store-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1;
  min-width: 220px;
  padding: 8px;
  background: var(--surface-raised, #1A1A24);
  border: 1px solid var(--border, #2A2A38);
  border-radius: 14px;
}
nav .article-store-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-primary, #F4F3FB);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
nav .article-store-menu a:hover { background: var(--border, #2A2A38); }
nav .article-store-menu a:focus-visible { outline: 2px solid var(--tint, #B8A8FF); outline-offset: -2px; }
nav .article-store-menu-note {
  margin: 6px 12px 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary, #9A98B2);
  white-space: normal;
}
