/* AMG V5 internal-page cohesion layer. Specialized page CSS remains authoritative. */
:root{--amg-red:#ef1736;--amg-red-dark:#bd1029;--amg-ink:#101820;--amg-black:#070b0e;--amg-paper:#fbfaf7;--amg-warm:#f3f0e9;--amg-line:#dfe2e4;--amg-muted:#606a72;--amg-r-sm:14px;--amg-r-md:22px;--amg-r-lg:32px;--amg-pill:999px;--amg-shadow:0 16px 42px rgba(16,24,32,.09);--amg-lift:0 22px 54px rgba(16,24,32,.15)}
body:not(.home){background:var(--amg-paper);color:var(--amg-ink)}
body:not(.home) #content{min-height:55vh;background:var(--amg-paper)}
body:not(.home) .wrap{width:min(1180px,calc(100% - 40px))}
body:not(.home) .content-narrow{width:min(780px,calc(100% - 40px))}

/* Shared black header, transparent logo, pill navigation. */
body:not(.home) .community-bar{background:#020506;border-bottom:1px solid rgba(255,255,255,.11)}
body:not(.home) .community-bar a{border-radius:var(--amg-pill);transition:background .2s ease,color .2s ease}
body:not(.home) .community-bar a:hover{background:rgba(255,255,255,.09)}
body:not(.home) .site-header{background:rgba(7,11,14,.98);border-bottom:1px solid rgba(255,255,255,.13);box-shadow:0 12px 30px rgba(0,0,0,.14)}
body:not(.home) .site-header .brand img,body:not(.home) .site-header .custom-logo{display:block;width:auto;max-width:220px;height:68px;object-fit:contain;background:transparent!important;border:0!important;box-shadow:none!important}
body:not(.home) .nav-list>li>a{border-radius:var(--amg-pill);transition:background .2s ease,color .2s ease,transform .2s ease}
body:not(.home) .nav-list>li>a:hover{background:rgba(255,255,255,.09);transform:translateY(-1px)}
body:not(.home) .nav-list ul{border:1px solid rgba(255,255,255,.12);border-radius:var(--amg-r-sm);overflow:hidden;box-shadow:var(--amg-lift)}
body:not(.home) .nav-list ul a:hover{background:rgba(239,23,54,.13);color:#fff}
body:not(.home) .header-search{border-radius:var(--amg-pill);overflow:hidden}
body:not(.home) .header-cta,body:not(.home) .nav-toggle{border-radius:var(--amg-pill)}

/* Page and article introductions. */
body:not(.home) .page-hero,body:not(.home) .legal-hero,body:not(.home) .article-header{position:relative;padding-block:clamp(54px,7vw,105px);background:linear-gradient(135deg,#070b0e 0%,#15191d 72%,#291018 100%);color:#fff;overflow:hidden}
body:not(.home) .page-hero:after,body:not(.home) .legal-hero:after,body:not(.home) .article-header:after{content:"";position:absolute;right:-12%;bottom:-65%;width:42vw;height:42vw;border-radius:50%;background:radial-gradient(circle,rgba(239,23,54,.23),transparent 66%);pointer-events:none}
body:not(.home) .page-hero>*,body:not(.home) .legal-hero>*,body:not(.home) .article-header>*{position:relative;z-index:1}
body:not(.home) .page-hero h1,body:not(.home) .legal-hero h1,body:not(.home) .article-header h1{max-width:1050px;color:#fff;letter-spacing:-.045em;line-height:.96;text-wrap:balance}
body:not(.home) .article-header .dek,body:not(.home) .article-header .byline,body:not(.home) .article-header a{color:#e7e9eb}
body:not(.home) .eyebrow,body:not(.home) .meta{color:var(--amg-red);letter-spacing:.12em;text-transform:uppercase}

/* Light content surfaces and consistent typography. */
body:not(.home) .section:not(.section-dark):not(.amg-v4-dark):not(.amg-v2-dark),body:not(.home) .legal-content,body:not(.home) .entry-content,body:not(.home) .prose{color:var(--amg-ink)}
body:not(.home) .section:not(.section-dark):not(.amg-v4-dark):not(.amg-v2-dark) h2,body:not(.home) .section:not(.section-dark):not(.amg-v4-dark):not(.amg-v2-dark) h3,body:not(.home) .legal-content h2,body:not(.home) .entry-content h2,body:not(.home) .entry-content h3{color:var(--amg-ink)}
body:not(.home) .entry-content,body:not(.home) .legal-content,body:not(.home) .prose{font-size:clamp(1rem,.97rem + .18vw,1.125rem);line-height:1.78}
body:not(.home) .entry-content a,body:not(.home) .legal-content a,body:not(.home) .prose a{color:var(--amg-red-dark);text-decoration-thickness:2px;text-underline-offset:3px}
body:not(.home) .entry-content blockquote,body:not(.home) .prose blockquote{margin:2rem 0;padding:1.4rem 1.6rem;border:0;border-left:5px solid var(--amg-red);border-radius:0 var(--amg-r-sm) var(--amg-r-sm) 0;background:var(--amg-warm)}
body:not(.home) .entry-content img,body:not(.home) .prose img{border-radius:var(--amg-r-md)}

/* Reusable cards, directories, notices and forms. */
body:not(.home) :is(.story-grid,.card-grid,.listing-grid,.status-grid,.principles,.studio-v4-cards,.amg-v4-cards,.amg-v2-cards)>*{border-color:var(--amg-line);border-radius:var(--amg-r-md);box-shadow:var(--amg-shadow);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
body:not(.home) :is(.story-grid,.card-grid,.listing-grid,.status-grid,.principles,.studio-v4-cards,.amg-v4-cards,.amg-v2-cards)>a:hover{transform:translateY(-4px);box-shadow:var(--amg-lift);border-color:#cfd3d6}
body:not(.home) :is(.status-card,.slate-card,.contact-card,.notice,.source-note,.empty-note,.paper,.directory-note,.editorial-source-box,.editorial-disclaimer){border-radius:var(--amg-r-md);border-color:var(--amg-line);box-shadow:var(--amg-shadow)}
body:not(.home) :is(input,select,textarea){min-height:48px;border:1px solid #cfd4d7;border-radius:var(--amg-r-sm);background:#fff;color:var(--amg-ink);font-size:16px}
body:not(.home) textarea{min-height:150px}
body:not(.home) :is(input,select,textarea):focus{outline:3px solid rgba(239,23,54,.18);border-color:var(--amg-red)}
body:not(.home) :is(.button,.amg-v4-button,.amg-v2-button,.studio-v4-button,button[type=submit],input[type=submit]){min-height:48px;border-radius:var(--amg-pill);transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
body:not(.home) :is(.button,.amg-v4-button,.amg-v2-button,.studio-v4-button,button[type=submit],input[type=submit]):hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(189,16,41,.2)}

/* Archives and related-story thumbnails stay image-led. */
body:not(.home) :is(.story-card,.archive-card,.related-card,.search-card){border:1px solid var(--amg-line);border-radius:var(--amg-r-md);background:#fff;box-shadow:var(--amg-shadow);overflow:hidden}
body:not(.home) :is(.story-card,.archive-card,.related-card,.search-card) img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}

/* Footer and floating contact control. */
body:not(.home) .site-footer{margin:70px 20px 20px;border-radius:var(--amg-r-lg);background:#071017;color:#e8ecef;overflow:hidden}
body:not(.home) .site-footer .footer-logo-optimized{display:block;width:auto;max-width:230px;height:auto;background:transparent;border:0;box-shadow:none}
body:not(.home) .site-footer a{border-radius:8px;color:#e8ecef}
body:not(.home) .site-footer a:hover{color:#fff;text-decoration-color:var(--amg-red)}
body:not(.home) .contact-dock-toggle,body:not(.home) .contact-dock-panel{border-radius:var(--amg-pill)}
body:not(.home) .contact-dock-panel{border-radius:var(--amg-r-md)}

/* Keep dark feature sections genuinely dark and readable. */
body:not(.home) :is(.section-dark,.amg-v4-dark,.amg-v2-dark){background:#0b1014;color:#f7f8f9}
body:not(.home) :is(.section-dark,.amg-v4-dark,.amg-v2-dark) :is(h1,h2,h3,p,a,li){color:inherit}

@media(max-width:900px){body:not(.home) .wrap,body:not(.home) .content-narrow{width:min(100% - 28px,780px)}body:not(.home) .site-header .brand img,body:not(.home) .site-header .custom-logo{height:54px;max-width:175px}body:not(.home) .page-hero,body:not(.home) .legal-hero,body:not(.home) .article-header{padding-block:48px}body:not(.home) .site-footer{margin:44px 10px 10px;border-radius:24px}}
@media(prefers-reduced-motion:reduce){body:not(.home) *,body:not(.home) *:before,body:not(.home) *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
