:root{--surface:#fff;--surface-soft:#f6f9f7;--page:#f6f8fa;--ink:#21382e;--muted:#748579;--line:#dde6e0;--accent:#23784f;--accent-soft:#e5f3eb}
[data-theme-toggle]{border:1px solid #ffffff55;background:#ffffff20;color:#fff;border-radius:20px;padding:6px 11px;font:600 11px/1.4 system-ui;white-space:nowrap;cursor:pointer;margin-left:auto}
[data-theme="dark"]{--surface:#19231f;--surface-soft:#1e2b24;--page:#101813;--ink:#e1ebe4;--muted:#a0b2a6;--line:#304238;--accent:#7fdaa8;--accent-soft:#253e30;color-scheme:dark}
html[data-theme="dark"] body{background:var(--page);color:var(--ink)}
html[data-theme="dark"] .navbar-area.navbar-nine{background:linear-gradient(100deg,#152c26,#224e37)!important}
html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6,p,label,legend){color:inherit}
html[data-theme="dark"] :is(.card,.panel,.stat,.group,.modal-content,.dropdown-menu,.list-group-item,dialog){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.bg-white,.bg-light){background:var(--surface)!important}
html[data-theme="dark"] :is(.text-muted,.muted,.form-text){color:var(--muted)!important}
html[data-theme="dark"] :is(input,select,textarea,.form-control,.form-select){background-color:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(table,.table){color:var(--ink);--bs-table-bg:var(--surface);--bs-table-color:var(--ink);--bs-table-border-color:var(--line)}
html[data-theme="dark"] :is(th,td){border-color:var(--line)!important}
html[data-theme="dark"] a:not(.nav-link):not(.btn){color:var(--accent)}
html[data-theme="dark"] :is(.footer-area,.footer-eleven){background:#122019!important;color:var(--ink)}
html[data-theme="dark"] .tournament-app :is(button,summary,.sb-menu-items,.sb-selector-bar,.sb-dialog-heading){background-color:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .tournament-app :is(.stats,.sb-archive-badge,.notice){background:var(--surface-soft);color:var(--muted);border-color:var(--line)}
html[data-theme="dark"] .tournament-app :is(h1,h2,h3,h4,strong){color:var(--ink)}
html[data-theme="dark"] .tournament-app th{background:var(--surface-soft)}
html[data-theme="dark"] .tournament-app :is(.active,.primary){background:var(--accent-soft)!important;color:var(--accent)!important;border-color:var(--accent)!important}
html[data-theme="dark"] .gp-app :is(.gp-group,.gp-team){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .gp-app :is(.gp-group-heading,.gp-group-meta){background:var(--surface-soft);color:var(--muted);border-color:var(--line)}
html[data-theme="dark"] .gp-app :is(strong,h1,h2,h3){color:var(--ink)}
@media print{[data-theme-toggle]{display:none}html[data-theme] body{background:white!important;color:black!important}}
/* Site-wide dark surfaces: include legacy cards and custom admin panels. */
html[data-theme="dark"] body{background-color:var(--page)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.stat-card,.event-card,.team-card,.about-aziapl,.section-aziapl,.edition-card,.album-edition-navigation,.maintenance-controls,.hp-panel,.payment-card,.directory-filter-options,.registration-filter-card){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.winner-board-page,.hp-wrap){background:var(--page)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(section,div,article,aside,form,details)[style*="background"]:is([style*="#fff"],[style*="#f0f4f8"],[style*="#f7f9fa"],[style*="#eef7f2"],[style*="#f5faf7"],[style*="#fafcfb"],[style*="#f2f7f4"],[style*="background:white"],[style*="background: white"]){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6,label,legend){color:inherit!important}
html[data-theme="dark"] :is(.text-dark,.text-black,.text-body,.text-reset,.champion,.runner-up,.award-value,.about-text,.category-list li,.payment-players strong,.payment-total){color:var(--ink)!important}
html[data-theme="dark"] :is(.stat-number,.category-name,.award-label,.text-success,.payment-back){color:var(--accent)!important}
html[data-theme="dark"] :is(.stat-label,.event-meta,.hp-muted,.hint,.payment-heading p,.payment-eyebrow,.payment-category,.payment-note,.payment-players,.payment-total small,.payment-summary>p,.payment-fee){color:var(--muted)!important}
html[data-theme="dark"] :is(.payment-summary,.hp-chip,.special-awards,.directory-column-filter,.payment-pill,.secondary){background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.hp-review,.special-awards h4){color:#f0cb83!important}
/* Bootstrap utilities, table variables, notices and selected states. */
html[data-theme="dark"] :is(.table,table){--bs-table-bg:var(--surface);--bs-table-color:var(--ink);--bs-table-striped-bg:#ffffff06;--bs-table-striped-color:var(--ink);--bs-table-hover-bg:#ffffff0c;--bs-table-hover-color:var(--ink);--bs-table-active-bg:var(--accent-soft);--bs-table-active-color:var(--ink)}
html[data-theme="dark"] :is(table,.table) :is(th,td){background-color:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(table,.table) th{background:var(--surface-soft)!important}
html[data-theme="dark"] :is(.table-striped,.hp-table) tbody tr:nth-of-type(even)>td{background-color:var(--surface-soft)!important}
html[data-theme="dark"] :is(.text-primary,.text-info){color:#98c5ff!important}
html[data-theme="dark"] .text-danger{color:#ffaaa8!important}
html[data-theme="dark"] .text-warning{color:#f0cb83!important}
html[data-theme="dark"] .alert{background:#20332a!important;border-color:#486151!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.alert-warning,.maintenance-notice){background:#352c1b!important;color:#f0d396!important;border-color:#705b2e!important}
html[data-theme="dark"] .alert-danger{background:#3b2426!important;color:#ffc6c2!important;border-color:#784146!important}
html[data-theme="dark"] .alert-info{background:#1b303c!important;color:#b9dffc!important;border-color:#3d6277!important}
html[data-theme="dark"] .alert :is(p,strong,a),html[data-theme="dark"] .maintenance-notice p{color:inherit!important}
html[data-theme="dark"] :is(.badge.bg-light,.badge.bg-white){background:var(--surface-soft)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.bg-warning,.bg-info).text-dark{color:#17241d!important}
html[data-theme="dark"] :is(.btn-outline-primary,.btn-outline-info){color:#98c5ff!important;border-color:#729dc5!important;background:transparent}
html[data-theme="dark"] :is(.btn-outline-success,.btn-aziapl-outline){color:var(--accent)!important;border-color:var(--accent)!important;background:transparent}
html[data-theme="dark"] :is(.btn-outline-secondary,.btn-outline-dark,.btn-light){color:var(--ink)!important;border-color:#82958a!important;background:var(--surface-soft)!important}
html[data-theme="dark"] .btn-outline-danger{color:#ffaaa8!important;border-color:#db8585!important}
html[data-theme="dark"] :is(.btn-outline-warning){color:#f0cb83!important;border-color:#bba06c!important}
html[data-theme="dark"] :is(.btn-outline-primary,.btn-outline-success,.btn-outline-secondary,.btn-outline-danger,.btn-aziapl-outline):hover{background:var(--surface-soft)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.nav-pills,.nav-tabs) .nav-link{color:#a9d8c0}
html[data-theme="dark"] :is(.nav-pills,.nav-tabs) .nav-link.active{background:var(--accent-soft);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.pagination .page-link,.accordion-button,.accordion-body,.input-group-text){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .pagination .active .page-link{background:var(--accent-soft)!important;border-color:var(--accent)!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:var(--muted)!important;opacity:1}
html[data-theme="dark"] :is(input,textarea,select):disabled{color:#a9b8ae!important;background:var(--surface-soft)!important;opacity:1}
html[data-theme="dark"] :is(.form-check-input){accent-color:#7fdaa8}
html[data-theme="dark"] :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #a3eac3;outline-offset:3px}
/* Inline brand-green text needs a brighter shade on the new dark surfaces. */
html[data-theme="dark"] :is(span,strong,div,h1,h2,h3,h4,h5,h6,p)[style*="color:"]:is([style*="#1a6b3c"],[style*="#0b6b57"],[style*="var(--aziapl-green)"]){color:var(--accent)!important}
html[data-theme="dark"] .footer-area :is(p,span,strong,h1,h2,h3,h4,h5,h6){color:var(--muted)!important}
html[data-theme="dark"] .footer-area a:not(.btn){color:var(--accent)!important}
html[data-theme="dark"] .footer-area .btn{color:var(--accent)!important;border-color:var(--accent)!important}
html[data-theme="dark"] .home-sponsor-card img{background:#fff;border-radius:5px;padding:4px}
html[data-theme="dark"] #emailLoginChoice{background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .instagram-invite{background:var(--surface-soft)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.instagram-invite p,.entry small){color:var(--muted)!important}
html[data-theme="dark"] .draw-stage{background:radial-gradient(ellipse at 50% 40%,#215c50,#103b34 55%,#082a25)!important;color:#fff!important}
html[data-theme="dark"] .draw-stage .hint{color:#bed6cb!important}
html[data-theme="dark"] #notice{color:var(--accent)}
@media print{html[data-theme="dark"] :is(.card,.panel,.stat-card,.event-card,.edition-card,.hp-panel,.payment-card,table,th,td){background:#fff!important;color:#111!important}html[data-theme="dark"] :is(.text-muted,.muted){color:#444!important}}
html[data-theme="dark"] :is(.hp-name,.hp-caption,.tournament-app){color:var(--ink)!important}
html[data-theme="dark"] :is(.tournament-note,caption,#organizerCodePanel>summary){color:var(--muted)!important}
html[data-theme="dark"] .registration-actions .btn{background:var(--surface-soft)!important}
html[data-theme="dark"] .raffle-account{background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] p[style*="color:#334b3e"]{color:var(--ink)!important}
html[data-theme="dark"] .registration-actions :is(a,button).btn-outline-danger{color:#ffaaa8!important;border-color:#db8585!important}
html[data-theme="dark"] .registration-actions .btn-outline-primary{color:#98c5ff!important}
html[data-theme="dark"] .registration-actions .btn-outline-success{color:var(--accent)!important}
html[data-theme="dark"] :is(.aziapl-account-link,.aziapl-admin-link.is-active,.aziapl-google-login){background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .aziapl-admin-link.is-active{box-shadow:inset 0 0 0 1px var(--accent)}
@media(max-width:991.98px){html[data-theme="dark"] .navbar-nine .navbar-collapse{background-color:#1b3327}}
html[data-theme="dark"] .navbar-nine .navbar-collapse .nav-link{color:var(--ink)!important}
html[data-theme="dark"] .alert :is(span,small){color:inherit!important}
html[data-theme="dark"] .btn-link{color:#98c5ff!important}
/* Preserve the legibility of dark lettering inside sponsor artwork. */
html[data-theme="dark"] :is(img[alt*="Selkirk"],#edition8-local-sponsors img,img[alt*="Telangana American"]){background:#fff;border-radius:8px;padding:10px;box-sizing:border-box}

/* Account controls stay together at the top right on desktop. */
@media(min-width:992px){.navbar-nine .navbar-btn{display:flex!important;align-items:center;gap:10px;white-space:nowrap}.navbar-nine .aziapl-theme-desktop{margin-left:0;flex:none}}
@media(max-width:991.98px){.navbar-nine .aziapl-theme-mobile{margin-left:auto;margin-right:14px}}
/* Keep every sponsor in one row; small screens can scroll sideways. */
#edition8-local-sponsors>div[style*="overflow-x"]>div[style*="display:grid"],#edition8-local-sponsors>.row{display:grid!important;grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:minmax(125px,1fr);gap:16px;align-items:stretch}
#edition8-local-sponsors>.row{overflow-x:auto;margin:0;padding-bottom:8px}
#edition8-local-sponsors>.row>[class*="col-"]{width:auto;max-width:none;padding:0}

/* Compact mobile sponsors: all six visible in three columns. */
@media(max-width:767.98px){
#edition8-local-sponsors{padding:12px!important}
#edition8-local-sponsors-heading{font-size:16px;margin-bottom:10px!important}
#edition8-local-sponsors>div[style*="overflow-x"]{overflow:visible!important;padding-bottom:0!important}
#edition8-local-sponsors>div[style*="overflow-x"]>div[style*="display:grid"],#edition8-local-sponsors>.row{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row;grid-auto-columns:auto;gap:8px;overflow:visible;padding-bottom:0}
#edition8-local-sponsors .p-2{padding:5px!important}
#edition8-local-sponsors img{width:100%!important;height:120px!important;aspect-ratio:auto!important;object-fit:contain!important;padding:0!important}
}
