/* Page redesigns (Ads, Fight card, RAJU 20 archive, admin tools). Loaded after raju-ui.css. */

/* ---------- Ads ---------- */
.raju-command-ui .ads-head h1{margin:0 0 6px;font-size:34px;line-height:1.1;letter-spacing:-.02em}
.raju-command-ui .ads-head .ads-attribution-note{max-width:640px;font-size:15px}
.raju-command-ui .ads-kpis{display:block!important;margin:18px 0 8px}
.raju-command-ui .ads-headline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.raju-command-ui .ads-headline-card{display:flex;flex-direction:column;gap:6px;min-width:0;padding:18px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:#121514}
.raju-command-ui .ads-headline-label{color:#a3aba6;font-size:13px;font-weight:500}
.raju-command-ui .ads-headline-value{font-size:32px;font-weight:700;letter-spacing:-.02em;line-height:1.05;font-variant-numeric:tabular-nums;color:#f2f4f1}
.raju-command-ui .ads-headline-card.is-good .ads-headline-value{color:#78d99b}
.raju-command-ui .ads-headline-card.is-warn .ads-headline-value{color:#f2c14e}
.raju-command-ui .ads-headline-foot{color:#8a928d;font-size:12px;line-height:1.4}
.raju-command-ui .ads-platform{margin-top:18px}
.raju-command-ui .ads-platform-head h2{margin:0 0 4px;font-size:18px}
.raju-command-ui .ads-platform-head p{margin:0 0 10px;font-size:13px}
.raju-command-ui .ads-platform-table th[scope="row"]{text-align:left;font-weight:600}
.raju-command-ui .ads-platform-table td,.raju-command-ui .ads-platform-table thead th{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.raju-command-ui .ads-platform-table thead th:first-child{text-align:left}
.raju-command-ui .ads-platform-table .ads-col-real{background:rgba(212,255,40,.05);color:#e8ff8a}
.raju-command-ui .ads-platform-table td.is-empty{color:#6c746f}
.raju-command-ui .ads-reconciliation-grid{display:block!important}
.raju-command-ui .ads-split-total{margin:2px 0 10px;color:#c9cfcb;font-size:14px}
.raju-command-ui .ads-split-total strong{font-size:22px;color:#f2f4f1;margin-right:4px}
.raju-command-ui .ads-split-bar{display:flex;height:14px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.06)}
.raju-command-ui .ads-split-bar span{display:block;height:100%}
.raju-command-ui .ads-split-google{background:#6fe7d8}
.raju-command-ui .ads-split-meta{background:#d4ff28}
.raju-command-ui .ads-split-other{background:rgba(163,171,166,.45)}
.raju-command-ui .ads-split-legend{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 0;padding:0}
.raju-command-ui .ads-split-legend li{display:grid;grid-template-columns:12px 1fr auto;grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.03)}
.raju-command-ui .ads-split-legend i{width:12px;height:12px;border-radius:3px}
.raju-command-ui .ads-split-legend span{color:#c9cfcb;font-size:13px}
.raju-command-ui .ads-split-legend strong{font-size:18px;font-variant-numeric:tabular-nums}
.raju-command-ui .ads-split-legend em{grid-column:2 / 4;color:#8a928d;font-size:12px;font-style:normal}
.raju-command-ui .ads-split-note{margin:10px 0 0;font-size:12px}
.raju-command-ui .ads-howto-list{margin:10px 0 0;padding-left:18px;color:#c9cfcb;font-size:13px;line-height:1.5}
.raju-command-ui .ads-howto-list li{margin-bottom:6px}
.raju-command-ui .ads-sync-details>summary{cursor:pointer;color:#a3aba6;font-size:14px;min-height:40px;display:flex;align-items:center}
.raju-command-ui .ads-section-note{max-width:720px}
@media (max-width:980px){
  .raju-command-ui .ads-headline{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .raju-command-ui .ads-head h1{font-size:28px}
  .raju-command-ui .ads-headline-card{padding:14px}
  .raju-command-ui .ads-headline-value{font-size:24px}
  .raju-command-ui .ads-split-legend{grid-template-columns:1fr}
}

/* ---------- RAJU 20 archive ---------- */
#matchday .matchday-bout-choice{grid-template-columns:66px minmax(0,1fr)!important;column-gap:10px!important;padding:8px 10px!important}
#matchday .matchday-bout-number{justify-items:start;align-content:start;padding-top:2px}
#matchday .matchday-closed-chip,#matchday .matchday-open-chip{display:inline-block;white-space:nowrap}
#matchday .matchday-choice.closed{opacity:.86}
#matchday .matchday-bout-names strong{font-size:14px;line-height:18px}
#matchday .matchday-bout-choice>small{font-size:12px;line-height:16px;margin-top:2px}
@media (max-width:760px){#matchday .matchday-bout-choice{flex-basis:200px!important}}

/* ---------- Admin tools: shared page width and headers ---------- */
.raju-command-ui .downloader-page,.raju-command-ui .fighter-data-page{max-width:none}
/* Align page titles on the shared left edge (Fighter data, Token console, Admin, Downloader). */
.raju-command-ui .fd-shell{padding-left:0!important;padding-right:0!important;max-width:none!important}
.raju-command-ui .token-console-hero{padding-left:0!important;padding-right:0!important}
.raju-command-ui .token-console{max-width:none!important}
.raju-command-ui .downloader-head{padding-left:0!important}
.raju-command-ui .admin-section-head h2,.raju-command-ui .admin-panel>h2{margin-left:0!important}
.raju-command-ui .admin-jump{display:flex;gap:6px;flex-wrap:wrap;margin:-8px 0 18px}
.raju-command-ui .admin-jump a{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid rgba(255,255,255,.12);border-radius:999px;color:#c9cfcb;font-size:13px;text-decoration:none}
.raju-command-ui .admin-jump a:hover{border-color:#d4ff28;color:#d4ff28}
.raju-command-ui #admin-pulls,.raju-command-ui #admin-users,.raju-command-ui #admin-log{scroll-margin-top:calc(var(--raju-topbar-height,64px) + 16px)}

/* ---------- Fight card (phones) ---------- */
@media (max-width:1000px){
  .raju-command-ui .fight-controls{display:grid!important;grid-template-columns:minmax(0,1fr) auto;width:100%}
  .raju-command-ui .fight-controls select{grid-column:1 / -1;width:100%}
  .raju-command-ui .fight-controls input{width:100%;min-width:0}
  .raju-command-ui .fight-controls .btn{min-height:42px}
}
