/* Final contrast guard. Loaded after every theme so button text cannot inherit
   an equal-to-background color from a shared or legacy stylesheet. */
.template-classic .nav-button,.template-classic .button.primary,.template-classic .about-cta a,.template-classic .plan-purchase,.template-classic .float-register,
.template-aurora .aurora-register,.template-aurora .aurora-actions a:first-child,.template-aurora .aurora-end>a,.template-aurora .about-cta a,.template-aurora .plan-purchase,.template-aurora .float-register,
.template-nebula .nebula-join,.template-nebula .nebula-hero-actions a:first-child,.template-nebula .nebula-cta a,.template-nebula .plan-purchase,.template-nebula .float-register,
.template-horizon .horizon-join,.template-horizon .horizon-actions a:first-child,.template-horizon .horizon-end a,.template-horizon .about-cta a,.template-horizon .plan-purchase,.template-horizon .float-register,
.template-obsidian .obsidian-button,.template-obsidian .obsidian-hero-actions a:first-child,.template-obsidian .obsidian-end>a,.template-obsidian .about-cta a,.template-obsidian .plan-purchase,.template-obsidian .float-register,
.template-spectrum .spectrum-action,.template-spectrum .spectrum-end .spectrum-action,.template-spectrum .about-cta a,.template-spectrum .plan-purchase,.template-spectrum .float-register,
.template-next .next-nav-action,.template-next .next-actions a:first-child,.template-next .next-end>a,.template-next .plan-purchase,.template-next .float-register {
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    text-shadow:0 1px 1px rgba(0,0,0,.18);
}
.template-pop .pop-main-button,.template-pop .about-cta a,.template-pop .plan-purchase,.template-pop .float-register { color:#17233e !important; -webkit-text-fill-color:#17233e !important; text-shadow:none; }
.template-obsidian .obsidian-button,.template-obsidian .obsidian-hero-actions a:first-child,.template-obsidian .obsidian-end>a,.template-obsidian .about-cta a,.template-obsidian .plan-purchase,.template-obsidian .float-register { color:#20180d !important; -webkit-text-fill-color:#20180d !important; text-shadow:none; }
.template-spectrum.spectrum-mono .spectrum-end .spectrum-action { color:#101010 !important; -webkit-text-fill-color:#101010 !important; }
.template-next .next-end>a { color:var(--nx-ink) !important; -webkit-text-fill-color:var(--nx-ink) !important; text-shadow:none; }
.template-next .next-cinema .next-end>a { color:var(--nx-ink) !important; }
.template-aurora .aurora-footer-action { color:#fff !important; -webkit-text-fill-color:#fff !important; }
/* Registration links are marked server-side on every inner page. Keep the
   fallback explicit so inherited article/footer colors can never hide them. */
.site-inner-page .float-register[data-track-register],
.site-inner-page .nav-button[data-track-register],
.site-inner-page .aurora-register[data-track-register],
.site-inner-page .nebula-join[data-track-register],
.site-inner-page .horizon-join[data-track-register],
.site-inner-page .obsidian-button[data-track-register],
.site-inner-page .pop-main-button[data-track-register],
.site-inner-page .spectrum-action[data-track-register],
.site-inner-page .next-nav-action[data-track-register] {
    font-weight:800;
}
.site-inner-page .float-register { color:#fff !important; -webkit-text-fill-color:#fff !important; }
.site-inner-page .footer-legal a,.site-inner-page .friend-links a { text-shadow:none; }
.template-aurora .legal-card,.template-aurora .legal-card p,.template-aurora .intro-copy,.template-aurora .about-flow p:not(.eyebrow),
.template-horizon .legal-card,.template-horizon .legal-card p,.template-horizon .intro-copy,.template-horizon .about-flow p:not(.eyebrow),
.template-pop .legal-card,.template-pop .legal-card p,.template-pop .intro-copy,.template-pop .about-flow p:not(.eyebrow),
.template-spectrum .legal-card,.template-spectrum .legal-card p,.template-spectrum .intro-copy,.template-spectrum .about-flow p:not(.eyebrow) { text-shadow:none; }
@media(max-width:700px){.template-next .next-nav-action,.template-next .next-actions a:first-child{font-size:12px}.template-aurora .aurora-register,.template-nebula .nebula-join,.template-horizon .horizon-join,.template-obsidian .obsidian-button,.template-pop .pop-main-button,.template-spectrum .spectrum-action{line-height:1.3;white-space:nowrap}}
/* Final homepage guard for Atelier: download-variants.css is injected after
   theme styles and must never pull this grid panel over hero content. */
.template-atelier .site-downloads.site-downloads-home{position:relative!important;inset:auto!important;right:auto!important;bottom:auto!important;left:auto!important;grid-column:1/-1;width:100%;max-width:none;min-width:0;margin:34px 0 0;padding:20px;border:1px solid var(--at-line);border-radius:4px;background:var(--at-panel);color:var(--at-ink);box-shadow:none;transform:none}
.template-atelier .site-downloads.site-downloads-home .site-download-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;overflow:visible;padding:0}
.template-atelier .site-downloads.site-downloads-home .download-item{width:100%;min-width:0;min-height:56px;padding:8px 10px;border:1px solid var(--at-line);border-radius:4px;background:var(--at-bg);color:var(--at-ink)!important;box-shadow:none;transform:none}
.template-atelier .site-downloads.site-downloads-home .download-item b{color:var(--at-ink)}
.template-atelier .site-downloads.site-downloads-home .download-item small{color:var(--at-muted)}
.template-atelier .site-downloads.site-downloads-home .download-mark{background:color-mix(in srgb,var(--at-accent),var(--at-bg) 80%);color:var(--at-ink)}
@media(max-width:760px){.template-atelier .site-downloads.site-downloads-home{width:100%;max-width:100%;margin:24px 0 0;padding:14px}.template-atelier .site-downloads.site-download-home .site-download-grid,.template-atelier .site-downloads.site-downloads-home .site-download-grid{display:flex;gap:8px;max-width:100%;overflow-x:auto;padding:0 0 5px}.template-atelier .site-downloads.site-downloads-home .download-item{flex:0 0 150px;width:150px;min-width:150px;min-height:50px}}
/* The metrics/download section is a sibling of the hero. Keep shared download
   variants in normal flow and let the section gap provide the spacing. */
.template-atelier .at-hero-lower .site-downloads.site-downloads-home{grid-column:auto;margin:0}
