/* Shared polish, loaded after each page's stylesheet. Home keeps its reviewed
   composition. Selectors name actions explicitly: talent nodes, map points,
   media embeds, checkboxes and destructive confirmations retain their layouts. */
.site-theme{--control-surface:#09131fbf;--control-border:#bedbf02b;--control-hover:#b7daf410;--control-radius:30px}
.site-theme:not(.home-page) :is(.build-tabs button,.feral-modes button,.related-specs button,.account-save-control button,.account-save-control>a,.account-preferences button,.profile-button,.creator-button,.packs-button,.news-switcher button,.guide-more,.dialog-actions button,.build-actions button,.share-actions button,.talent-info-actions button,.saved-build button,.route-summary>button,.tool-action,.pending-actions .cta){
 border-radius:var(--control-radius);border:1px solid var(--control-border);background:var(--control-surface);color:#e0e9ef;box-shadow:none;clip-path:none;text-shadow:none;min-height:44px;padding:11px 18px;font:14px/20px Arial,sans-serif;letter-spacing:0;text-transform:none;align-items:center;justify-content:center;gap:12px;max-width:100%;text-decoration:none;transition:color .16s ease,background-color .16s ease,border-color .16s ease
}
.site-theme:not(.home-page) :is(.profile-button,.creator-button,.packs-button,.account-save-control>a,.pending-actions .cta){display:inline-flex}
.site-theme:not(.home-page) :is(.build-tabs button,.feral-modes button,.related-specs button)[aria-selected=true],.site-theme:not(.home-page) :is(.build-tabs button,.feral-modes button)[aria-pressed=true]{
 border-color:var(--guide-accent,var(--accent,#b7daf4));color:var(--guide-accent,var(--accent,#b7daf4));background:color-mix(in srgb,var(--guide-accent,var(--accent,#b7daf4)) 12%,#09131f)
}
.site-theme:not(.home-page) :is(.guide-content,.article-prose,.legal-content){line-height:1.8}
.site-theme:not(.home-page) :is(.guide-content,.article-prose) p{line-height:1.8}
.site-theme:not(.home-page) :is(.guide-content,.article-prose) h2{line-height:1.2;text-wrap:balance}
.site-theme:not(.home-page) :is(.guide-content,.article-prose) h3{line-height:1.35;text-wrap:balance}
.site-theme:not(.home-page) :is(.article-prose,.guide-content) :is(a:not(.packs-button):not(.profile-button)){text-underline-offset:4px}
.site-theme:not(.home-page) :is(.guide-filters,.tierlist-filters,.packs-filters,.creator-filters,.roster-filters,.calculator-filter) :is(input:not([type=checkbox]):not([type=radio]),select),.site-theme:not(.home-page) :is(.news-switcher,.profile-context,.creator-application-form,.account-preferences) select{
 border:1px solid var(--control-border);border-radius:12px;background:#0c1c2b;min-height:44px;padding:10px 12px;max-width:100%;font-size:16px;color:#e0e9ef
}
.site-theme:not(.home-page) :is(.news-back,.end-back){display:inline-flex;align-items:center;min-height:44px;padding:11px 18px;border:1px solid var(--control-border);border-radius:30px;background:var(--control-surface);line-height:20px}
.site-theme:not(.home-page) .news-switcher{display:grid;gap:10px}
.site-theme:not(.home-page) .news-switcher button{margin-top:0;display:flex;justify-content:space-between}
.site-theme:not(.home-page) .related-specs{align-items:stretch;gap:12px}
.site-theme:not(.home-page) .related-specs>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 18px;border:1px solid var(--control-border);border-radius:30px;background:var(--control-surface);line-height:20px;text-decoration:none}
.site-theme:not(.home-page) :is(.profile-link,.profile-text-button){min-height:44px;line-height:20px;align-items:center;gap:10px}
.site-theme:not(.home-page) :is(.pack-actions,.delivery-actions,.dialog-actions,.build-actions,.share-actions,.character-actions){gap:12px;align-items:center;flex-wrap:wrap}
.site-theme:not(.home-page) .guide-card-action{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:11px 18px;border:1px solid var(--control-border);border-radius:30px;background:var(--control-surface);font:14px/20px Arial,sans-serif;color:#e0e9ef}
.site-theme:not(.home-page) .guide-card-copy{display:flex;flex-direction:column;align-items:flex-start;min-height:300px}
.site-theme:not(.home-page) .guide-card-description{margin-bottom:20px}
.site-theme:not(.home-page) .guide-card-action{margin-top:auto}
.site-theme:not(.home-page) .news-read{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:11px 18px;border:1px solid var(--control-border);border-radius:30px;background:var(--control-surface);font:14px/20px Arial,sans-serif;color:#e0e9ef}
.site-theme:not(.home-page) .news-card-link{height:100%}
.site-theme:not(.home-page) .news-card-copy{display:flex;flex-direction:column;align-items:flex-start;flex:1}
.site-theme:not(.home-page) .news-excerpt{margin-bottom:20px}
.site-theme:not(.home-page) .news-read{margin-top:auto}
.site-theme :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--guide-accent,#d6bd8d);outline-offset:4px}
@media(hover:hover){
 .site-theme:not(.home-page) :is(.build-tabs button,.feral-modes button,.related-specs button,.related-specs>a,.account-save-control button,.profile-button,.creator-button,.packs-button,.news-switcher button,.guide-more,.dialog-actions button,.build-actions button,.share-actions button,.talent-info-actions button,.route-summary>button,.news-back):hover:not(:disabled):not([aria-selected=true]):not([aria-pressed=true]){background:var(--control-hover);border-color:#bedbf066;color:#d7eaff}
 .site-theme:not(.home-page) .guide-card:hover .guide-card-action,.site-theme:not(.home-page) .news-card-link:hover .news-read{background:var(--control-hover);border-color:#bedbf066}
}
@media(max-width:760px){
 .site-theme:not(.home-page) :is(.build-tabs button,.feral-modes button,.related-specs button){padding:10px 12px}
 .site-theme:not(.home-page) .guide-card-copy{min-height:260px}
 .site-theme:not(.home-page) .news-switcher button{width:100%}
 .site-theme:not(.home-page) :is(.guide-content,.article-prose) :is(table,pre){max-width:100%}
}
@media(prefers-reduced-motion:reduce){.site-theme :is(button,a){transition:none!important}}

/* Old Home .section-intro was a flex row; guide prose must remain inline. */
.site-theme.guide-page .guide-content p.section-intro{display:block}

.site-theme:not(.home-page) .news-card:not(.news-featured) .news-card-link{display:flex;flex-direction:column}
.site-theme:not(.home-page) .guide-grid{align-items:stretch}
.site-theme:not(.home-page) .guide-grid .guide-card{display:flex;align-items:stretch}
.site-theme:not(.home-page) .guide-card-copy{flex:1}
/* Full brand lockup is shared by every footer, including generated guides. */
.site-theme footer .footer-brand{display:block;flex-shrink:0;max-width:100%;font:700 clamp(22px,2.2vw,32px)/1.15 Georgia,serif;letter-spacing:-.025em;color:#edf3f7;text-decoration:none;margin:0}
.site-theme footer .footer-brand>span{font:inherit;letter-spacing:inherit;color:#d4c09a}
.site-theme footer .footer-brand>small{display:block;margin-top:6px;color:#edf3f7;font:11px/1.5 Arial,sans-serif;letter-spacing:1.6px;text-transform:uppercase}
@media(max-width:760px){.site-theme footer .footer-brand{flex-basis:100%;font-size:clamp(20px,5.6vw,26px)}.site-theme footer .footer-brand>small{font-size:10px;letter-spacing:1.4px}}
/* Keep the direct return link opposite the brand; legal links own the next row. */
.site-theme footer>a:not(.footer-brand){display:inline-flex;align-items:center;justify-content:flex-end;min-height:44px;margin-inline-start:auto;text-align:right;flex-shrink:0}
