/* American 26 editorial identity. Layout, pitch and player geometry stay in their existing stylesheets. */
body{--bg:#373942;--panel:#3c3d47;--raised:#454752;--text:#f2efe5;--muted:#d8d4c3;--line:#666773;--red:#aa021d;--action:#aa021d;--motif:url("away-stars.svg?v=183");--motif-size:64px 44px;background:var(--bg)}
body[data-theme="light"]{--bg:#f2efe5;--panel:#fffdf7;--raised:#e8e3d6;--text:#31374d;--muted:#55596a;--line:#c6c2b3;--red:#cf0d28;--action:#cf0d28;--motif:url("home-waves.svg?v=183");--motif-size:800px 64px}
#siteHeader{position:relative;background:var(--bg);border-bottom:1px solid var(--line);border-top:12px solid transparent;background-image:var(--motif);background-size:var(--motif-size);background-repeat:repeat-x;background-position:center -12px;background-origin:border-box;height:82px}
#siteHeader .brand-word{font-size:40px;letter-spacing:-.7px}
#siteHeader .brand-number{font-size:48px;font-style:normal;letter-spacing:-1px;color:var(--text)}
#siteHeader .brand{gap:6px}
#siteHeader .beta-tag{font-family:Arial,sans-serif;font-size:9px;letter-spacing:1px;color:var(--muted);border-color:var(--line)}
body #siteHeader .site-nav a{background:transparent;color:var(--muted);border-radius:0;border-bottom:2px solid transparent}
body #siteHeader .site-nav a[aria-current]{color:var(--text);background:transparent;border-bottom-color:var(--red)}
body #siteHeader .site-nav a:hover{color:var(--text);background:var(--raised)}
body #siteHeader :is(.theme-toggle,.header-matches,.account-button){background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
body #siteHeader :is(.theme-toggle,.header-matches,.account-button):hover{background:var(--raised)!important}
body #siteHeader #save,body .squad-actions #saveNamed,body .profile-action:not(:disabled){background:var(--action);border-color:var(--action);color:#fff}
body #siteHeader #save:hover,body .squad-actions #saveNamed:hover{background:#8a172d;border-color:#8a172d}
.intro h1{letter-spacing:-.9px;font-weight:900}
body .panel{border-radius:2px}
body .section-title{border-top-color:var(--line)}
body .squad .section-title{border-top-color:var(--red)}
.panel-step,.eyebrow{letter-spacing:1.8px}
body .builder-switch button{background:var(--panel);color:var(--text);border-color:var(--line);border-radius:2px}
body .builder-switch button.active{background:var(--raised);border-color:var(--red);box-shadow:inset 0 -3px var(--red);color:var(--text)}
body .builder-switch button span{color:var(--muted)}
body .builder-switch button.active span{color:var(--red)}
body .builder-coach{background:var(--panel);color:var(--text);border-color:var(--line)}
body .view-tabs{background:var(--bg);border-radius:2px}
body .view-tabs button{background:transparent;color:var(--muted);border-radius:0;box-shadow:none}
body .view-tabs button.active{background:var(--panel);color:var(--text);box-shadow:inset 0 -3px var(--red)}
body .list-head,body .local-note{background:var(--bg);border-color:var(--line)}
body:not([data-theme="light"]) :is(dialog,.community-card,.depth-card,.schedule-section,.tournament-card,.squad-management,.match-centre,.profile-planning){background:var(--panel);border-color:var(--line)}
body:not([data-theme="light"]) :is(input,select,textarea){background:#373942;border-color:var(--line);color:var(--text)}
body:not([data-theme="light"]) .player:hover{background:var(--raised)}
body:not([data-theme="light"]) .positions button.active{background:var(--action);color:white;border-color:var(--action)}
body footer{position:relative;border-top:1px solid var(--line);padding-top:42px;background-image:var(--motif);background-repeat:repeat-x;background-size:var(--motif-size);background-position:center 0}
body footer strong{font-family:var(--heading);font-size:21px;font-weight:900;letter-spacing:.2px;color:var(--text)}
@media(min-width:761px){.intro h1{font-size:clamp(40px,4.5vw,64px)}.site-nav a{font-family:var(--heading);font-weight:900;font-size:20px}.builder-switch button{font-family:var(--heading);font-weight:900;font-size:21px}.builder-switch button span{font-family:Arial,sans-serif}.section-title h2{letter-spacing:-.4px}}
@media(min-width:761px) and (max-width:1100px){#siteHeader{gap:10px}#siteHeader .brand-word{font-size:30px}#siteHeader .brand-number{font-size:38px}}
@media(max-width:760px){#siteHeader{height:auto;border-top-width:8px;background-position:center -16px;padding-top:7px}#siteHeader .brand-word{font-size:25px;letter-spacing:-.4px}#siteHeader .brand-number{font-size:32px}#siteHeader .brand{gap:4px}body footer{padding-top:42px}}
@media(max-width:370px){#siteHeader .brand-word{font-size:22px}#siteHeader .brand-number{font-size:29px}}

/* Keep decorative artwork above the header controls, never behind their labels. */
body #siteHeader{background-image:none;border-top-width:20px;height:90px}
#siteHeader::before{content:"";position:absolute;left:0;right:0;top:-20px;height:20px;background-image:var(--motif);background-repeat:repeat-x;background-position:center;background-size:56px 22px;pointer-events:none}
body[data-theme="light"] #siteHeader::before{background-size:400px 24px}
@media(max-width:760px){body #siteHeader{height:auto;border-top-width:16px}#siteHeader::before{top:-16px;height:16px;background-size:48px 19px}body[data-theme="light"] #siteHeader::before{background-size:320px 20px}}

/* Kit-led editorial refinement: matched wordmark, broad ribbons and one row of stars. */
body #siteHeader{height:112px;border-top-width:36px;border-bottom:2px solid var(--text)}
#siteHeader::before{top:-36px;height:36px;background-size:56px 38px}
body[data-theme="light"] #siteHeader::before{background-size:600px 48px}
body #siteHeader .brand{align-items:baseline;gap:8px}
body #siteHeader .brand-word,body #siteHeader .brand-number{font-size:52px;font-style:normal;line-height:1;letter-spacing:-1.2px;color:var(--text)}
body #siteHeader .brand .beta-tag{align-self:center;font-family:Arial,sans-serif;font-size:9px;letter-spacing:1px}
body .intro{border-left:0;border-bottom:2px solid var(--text);padding:0 0 18px;margin-bottom:22px}
body .intro h1{font-size:clamp(42px,5.6vw,78px);line-height:.95;letter-spacing:-1.5px;margin-top:0}
body .intro p{font-size:15px;color:var(--muted)}
body:not([data-theme="light"]) .intro h1 span{color:var(--text);text-decoration:underline;text-decoration-color:var(--action);text-decoration-thickness:5px;text-underline-offset:8px}
body .panel{border:1px solid var(--line);border-radius:0;box-shadow:none}
body .section-title{border-top:5px solid var(--text);border-bottom:1px solid var(--line);margin-bottom:14px;background:var(--raised)}
body .squad .section-title{border-top-color:var(--action)}
body .section-title h2{font-size:36px;letter-spacing:-.7px}
body .panel-step{color:var(--muted);font-size:10px;letter-spacing:2px}
body .section-title h2 span{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:0}
body .counter{color:var(--text)}
body .builder-switch{gap:0;border:1px solid var(--line)}
body .builder-switch button{border:0;border-right:1px solid var(--line);box-shadow:none;border-radius:0}
body .builder-switch button:last-child{border-right:0}
body .builder-switch button.active{background:var(--text);color:var(--bg);box-shadow:inset 0 -4px var(--action)}
body .builder-switch button.active span{color:var(--bg)}
body .builder-coach{border-radius:0}
body .view-tabs{border-radius:0;border-block:1px solid var(--line);padding:5px;gap:4px}
body .view-tabs button{font-family:var(--heading);font-weight:900;font-size:20px;letter-spacing:.1px}
body .view-tabs button.active{background:var(--text);color:var(--bg);box-shadow:inset 0 -3px var(--action)}
body .list-head{font-size:10px;letter-spacing:1.4px;color:var(--muted)}
body .community-card,body .depth-card,body .tournament-card{border-radius:0;box-shadow:none;border-top:3px solid var(--text)}
body .depth-card h3{background:var(--raised);color:var(--text);border-color:var(--line)}
body :is(.position-balance>div,.profile-stats,.profile-quick,.compare-metrics>div,.compare-columns section,.squad-management,.match-centre,.match-lineup-controls,.kit-options){background:var(--panel);border-color:var(--line);color:var(--text)}
body .kit-choice{color:var(--muted)}
body .kit-choice.active{background:var(--text);color:var(--bg);box-shadow:none}
body:not([data-theme="light"]) :is(.counter,.first-choice .depth-rank,.schedule-summary,.position-tag,.shared-roster h3,.community-card-top,.schedule-team,.profile-stats strong,.position-balance strong,.builder-coach>span,.tournament-year,#poolSelectedCount,.depth-summary,.selected-fixture>span:first-child){color:var(--text)}
body:not([data-theme="light"]) :is(.inline-link,.creator-link,#creditBody a,.name-button:hover,#teamDetailBody a,.picker-player-status,.tournament-card a){color:var(--text);text-decoration:underline;text-decoration-color:var(--action);text-underline-offset:3px}
body .positions button.active,body .picker-views button.active,body .picker-levels button.active,body .bench-feature.selected,body .export-preferences button[aria-pressed="true"],body .add.selected{background:var(--action);border-color:var(--action);color:#f2efe5}
body .bench-pick,body .bench-feature{background:var(--panel);color:var(--text);border-color:var(--line)}
body .bench-pick.selected{border-color:var(--action)}
body .league-option input{accent-color:var(--action)}
body footer{padding-top:66px;background-size:64px 44px;background-position:center 5px;border-top:2px solid var(--text)}
body[data-theme="light"] footer{background-size:800px 64px;background-position:center -5px}
body .presentation-header{border-bottom:2px solid var(--text)}
body .presentation-heading h2{letter-spacing:-.6px}
@media(min-width:761px) and (max-width:1200px){body #siteHeader{gap:10px}body #siteHeader .brand-word,body #siteHeader .brand-number{font-size:38px}body #siteHeader button{padding-inline:10px}body #siteHeader .site-nav a{font-size:18px;padding-inline:8px}}
@media(max-width:760px){body #siteHeader{height:auto;border-top-width:28px}#siteHeader::before{top:-28px;height:28px;background-size:44px 30px}body[data-theme="light"] #siteHeader::before{background-size:450px 36px}body #siteHeader .brand-word,body #siteHeader .brand-number{font-size:30px;letter-spacing:-.5px}body #siteHeader .brand{gap:5px}body .intro{padding-bottom:12px;margin-bottom:15px}body .intro h1{font-size:40px;line-height:1.02;letter-spacing:-.6px}body .intro p{font-size:13px}body .section-title h2{font-size:29px}body .view-tabs button{font-size:17px}body .builder-switch{gap:1px}body .builder-switch button{border-bottom:1px solid var(--line)}body footer{padding-top:64px}}
@media(max-width:370px){body #siteHeader .brand-word,body #siteHeader .brand-number{font-size:26px}body .intro h1{font-size:35px}body .section-title h2{font-size:26px}}

/* One continuous stripe traced from the supplied home kit; never tile or clip it. */
body[data-theme="light"] #siteHeader::before{background-repeat:no-repeat;background-size:100% 100%;background-position:center}
body[data-theme="light"] footer{background-repeat:no-repeat;background-size:100% 64px;background-position:center 0;padding-top:76px}

/* Header actions share one height, baseline and type treatment. */
body #siteHeader>button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;white-space:nowrap;height:42px;min-height:42px;border-radius:2px;padding:0 14px!important;font:700 14px/1 Arial,sans-serif;margin-block:0}
body #siteHeader>.account-button{height:42px;min-height:42px;font:700 14px/1 Arial,sans-serif!important}
body #siteHeader>.site-nav{align-items:center}
body #siteHeader .site-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;white-space:nowrap}
@media(min-width:761px) and (max-width:1050px){body #siteHeader{height:auto;min-height:112px;flex-wrap:wrap;padding-top:10px;padding-bottom:12px;gap:10px}body #siteHeader>.brand{flex-basis:100%}body #siteHeader>.site-nav{margin-left:0;margin-right:auto}body #siteHeader>button{padding-inline:10px!important}}
@media(max-width:760px){body #siteHeader>button,body #siteHeader>.account-button{height:34px;min-height:34px;padding:0 8px!important;font-size:12px!important}body #siteHeader .site-nav a{min-height:34px}}

/* The two-line mobile headline needs room for its underline below the last line. */
@media(max-width:760px){body:not([data-theme="light"]) .intro h1{margin-bottom:20px}}

/* Give the desktop title, underline and supporting sentence separate breathing room. */
@media(min-width:761px){body .intro h1{line-height:1.04;margin-bottom:22px}body .intro p{line-height:1.5}body .intro{padding-bottom:22px}}

/* Reflow squad views according to the panel width, including during window resizing. */
@media(min-width:761px){#squadPanel{container-name:squad-views;container-type:inline-size}body .view-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}body .view-tabs button{min-width:0;min-height:44px;white-space:nowrap;line-height:1.2;padding:10px 8px}}
@container squad-views (max-width:820px){body .view-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}body .view-tabs button{font-size:18px;letter-spacing:0;white-space:normal;text-align:center}}
.winter-pool-toggle{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:.5rem 0 1rem;font-weight:700;cursor:pointer}
.winter-pool-toggle[hidden]{display:none}
.winter-pool-toggle input{width:1.1rem;height:1.1rem;accent-color:#ad1736}
.winter-pool-toggle small{font-size:.85em;font-weight:400;opacity:.75}
