/* "Get <app>": the Mac App Store badge, the direct Mac download and the App Store badge. Markup is written by
   scripts/gen-app-downloads.py from apps.toml `downloads` (piper-hq docs/decisions/mac-editions.md); don't edit it
   in the pages. Colours come from each page's tokens (--ink, --muted, --line, --card), as app-status.css does. */
.app-downloads{
  --ad-ink:var(--ink,#253b34);--ad-muted:var(--muted,#59695e);--ad-line:var(--line,#c2cbbb);
  --ad-card:var(--card,var(--surface,#fffdf7));--ad-accent:var(--accent,currentColor);
  max-width:740px;margin:0 auto 28px;text-align:left;color:var(--ad-ink)}
.app-downloads h3{margin:0 0 14px;font-size:20px}
.app-downloads ul{display:flex;flex-wrap:wrap;gap:16px 28px;margin:0;padding:0;list-style:none}
.app-downloads li{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;flex:1 1 220px}
.app-downloads li p{margin:0;font-size:15px;line-height:1.5;color:var(--ad-muted);max-width:34ch}
.app-downloads li p b{color:var(--ad-ink)}
/* Apple's badge: unchanged artwork, 40 px tall, with clear space (Apple's guidelines ask for a quarter of its height). */
.app-downloads-badge{display:inline-block;padding:10px 0;line-height:0;border-radius:10px}
/* The closing section styles its app icon as "img"; the badge must stay Apple's artwork, so nothing of that applies. */
.app-downloads .app-downloads-badge img{width:auto;height:40px;max-width:none;margin:0;border-radius:0;box-shadow:none}
/* The badge colour is chosen in the markup (<picture>): white only on pages with a dark look (showcase.css) when the
   system is dark; light-only pages (Recipes, YoMamma) keep the black one. */
/* The direct download: our own button, never styled like Apple's badge. */
.app-downloads-direct{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin:8px 0 0;padding:8px 18px 8px 14px;
  border:2px solid var(--ad-ink);border-radius:14px;color:var(--ad-ink);font-weight:700;text-decoration:none}
.app-downloads-direct:hover span{text-decoration:underline;text-underline-offset:3px}
.app-downloads-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
:is(.app-downloads-badge,.app-downloads-direct):focus-visible{outline:3px solid var(--ad-accent);outline-offset:4px}
@media (forced-colors:active){.app-downloads-direct{border-color:LinkText;color:LinkText}}
