/* DAD download chooser: Windows / Mac (Apple chip) / Mac (Intel) tiles.
   Standalone on purpose -- the DAD pages each carry their own inline styles,
   so this is linked from every page that shows the chooser (thanks,
   changelog) instead of living in one page's <style> block. Uses the site's
   dark-theme variables with fallbacks so it renders the same everywhere. */

.dad-dl-chooser {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: var(--spacing-md, 1.5rem) 0 var(--spacing-sm, 1rem);
}
.dad-hero-content .dad-dl-chooser { max-width: 780px; margin-left: auto; margin-right: auto; }
@media (max-width: 720px) {
    .dad-dl-chooser { grid-template-columns: 1fr; }
}

/* `.dad-doc a` (dad/style.css) turns every link cyan and underlines it on
   hover; match its specificity so the tile keeps its own colours. */
a.dad-dl-option,
.dad-doc a.dad-dl-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    padding: 1.4rem 1rem 1.15rem;
    border-radius: 14px;
    background: var(--color-bg-tertiary, #1a1a1a);
    border: 1px solid var(--color-gray-light, #2a2a2a);
    color: var(--color-text-primary, #ffffff);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
a.dad-dl-option:hover,
.dad-doc a.dad-dl-option:hover {
    border-color: #00bcd4;
    background: rgba(0, 188, 212, 0.06);
    transform: translateY(-2px);
    text-decoration: none;
}
a.dad-dl-option:focus-visible {
    outline: 3px solid rgba(0, 188, 212, 0.55);
    outline-offset: 2px;
}

.dad-dl-option .dad-dl-icon {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--color-text-primary, #ffffff);
    margin-bottom: 0.35rem;
}
.dad-dl-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-text-primary, #ffffff);
}
.dad-dl-meta {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--color-text-muted, #808080);
}
.dad-dl-cta {
    margin-top: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #00bcd4;
}

/* Set by download-chooser.js when it can tell which computer is visiting. */
.dad-dl-suggest {
    display: none;
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #04181c;
    background: #00bcd4;
    padding: 3px 10px;
    border-radius: 999px;
}
a.dad-dl-option.is-suggested,
.dad-doc a.dad-dl-option.is-suggested {
    border-color: #00bcd4;
    box-shadow: 0 0 0 1px #00bcd4 inset;
}
.dad-dl-option.is-suggested .dad-dl-suggest { display: inline-block; }

.dad-dl-help {
    font-size: 0.85rem;
    color: var(--color-text-muted, #808080);
    margin-top: 0.25rem;
}
.dad-hero-content .dad-dl-help { text-align: center; }
