:root{
  --navy:#082d75;
  --blue:#0b52b5;
  --blue2:#0f67d7;
  --light:#edf5ff;
  --line:#d1e0f4;
  --text:#0a1c45;
  --muted:#61708e;
  --gold:#ffbd16;
  --gold2:#f28b00;
  --silver:#9ea8b8;
  --bronze:#b86528;
  --white:#fff;
  --shadow:0 18px 45px rgba(20,66,130,.13);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 50% 15%,rgba(255,255,255,.9),transparent 28%),
    linear-gradient(180deg,#eef6ff 0,#e9f3ff 62%,#e4f0ff 100%);
  min-height:100vh;
}
button,input,select{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}

/* Topbar */
.topbar{
  min-height:86px;
  padding:0 28px;
  display:grid;
  grid-template-columns:320px 1fr auto;
  align-items:center;
  gap:28px;
  position:sticky;
  top:0;
  z-index:50;
  color:#fff;
  background:
    radial-gradient(circle at 70% 10%,rgba(18,112,245,.5),transparent 32%),
    linear-gradient(110deg,#072f78,#063991 48%,#0653bc);
  box-shadow:0 7px 22px rgba(8,45,117,.18);
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  color:#fff;
  text-decoration:none;
}
.brand-trophy{
  width:48px;height:58px;
  display:grid;place-items:center;
  font-size:38px;
  filter:drop-shadow(0 5px 7px rgba(0,0,0,.2));
}
.brand-copy strong{
  display:block;
  font-size:25px;
  font-style:italic;
  letter-spacing:.6px;
  line-height:1;
}
.brand-copy strong span{color:#ffd43b}
.brand-copy small{
  display:block;
  color:#ffd43b;
  margin-top:6px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.7px;
}
.nav{
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:18px;
  height:86px;
}
.nav-link{
  border:0;
  background:transparent;
  color:rgba(255,255,255,.92);
  font-weight:800;
  font-size:15px;
  padding:0 10px;
  position:relative;
}
.nav-link:hover{color:#fff}
.nav-link.active:after{
  content:"";
  height:4px;
  position:absolute;
  left:5px;right:5px;bottom:0;
  border-radius:4px 4px 0 0;
  background:#ffca16;
}
.top-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.updated-pill{
  white-space:nowrap;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(1,29,86,.22);
  padding:10px 15px;
  border-radius:999px;
  font-size:12px;
  color:#fff;
}
.admin-top-btn{
  padding:10px 15px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.55);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-weight:800;
}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  min-height:520px;
  padding:42px 28px 10px;
  background:
    linear-gradient(160deg,transparent 52%,rgba(46,151,255,.17) 52.2%,rgba(46,151,255,.17) 60%,transparent 60.2%),
    radial-gradient(circle at 50% 5%,#fff 0,#eff7ff 35%,#e9f4ff 70%);
}
.hero:before,
.hero:after{
  content:"";
  position:absolute;
  bottom:42px;
  width:55%;
  height:120px;
  opacity:.55;
  pointer-events:none;
}
.hero:before{
  left:-12%;
  background:linear-gradient(16deg,transparent 35%,#51a8ff 36%,#51a8ff 50%,transparent 51%);
}
.hero:after{
  right:-12%;
  transform:scaleX(-1);
  background:linear-gradient(16deg,transparent 35%,#68b7ff 36%,#68b7ff 50%,transparent 51%);
}
.hero-sports{
  position:absolute;
  top:80px;
  font-size:78px;
  letter-spacing:28px;
  opacity:.26;
  user-select:none;
}
.hero-sports-left{left:3%;transform:rotate(-4deg)}
.hero-sports-right{right:1%;transform:rotate(4deg)}
.hero-title-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  max-width:1100px;
  margin:0 auto;
  text-align:center;
  position:relative;
  z-index:2;
}
.title-line{
  height:1px;
  width:90px;
  background:linear-gradient(90deg,transparent,#3b71c2);
}
.hero-title-wrap h1,
.sports-hero h1{
  margin:0;
  color:#0b2052;
  font-size:42px;
  line-height:1.05;
  letter-spacing:1.2px;
  font-weight:950;
}
.eyebrow{
  margin:0 0 6px;
  color:#0c56be;
  font-size:11px;
  font-weight:950;
  letter-spacing:1.25px;
}
.hero-subtitle{
  margin:8px 0 0;
  font-size:17px;
  color:#23417e;
}
.hero-filters{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  width:min(1180px,calc(100% - 40px));
  margin:10px auto 0;
  position:relative;
  z-index:3;
}
.filter-pill{
  min-width:180px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid #c9daf4;
  background:rgba(255,255,255,.9);
  box-shadow:0 7px 18px rgba(23,80,153,.09);
}
.filter-pill select{
  width:100%;
  height:40px;
  border:0;
  outline:none;
  background:transparent;
  color:#10234d;
  font-weight:700;
}

/* Podium */
.podium{
  width:min(1180px,calc(100% - 24px));
  min-height:330px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1.15fr 1fr;
  align-items:end;
  gap:18px;
  position:relative;
  z-index:3;
}
.podium-card{
  position:relative;
  min-height:255px;
  padding:62px 24px 22px;
  text-align:center;
  border:1.5px solid #d7e3f6;
  border-radius:28px 28px 13px 13px;
  background:linear-gradient(180deg,#fff 0,#fff 68%,#f7fbff 100%);
  box-shadow:0 16px 35px rgba(25,70,130,.15);
  overflow:visible;
}
.podium-card.first{
  min-height:315px;
  border-color:#ffc01d;
  background:linear-gradient(180deg,#fff,#fffaf0);
}
.podium-card.second{
  border-color:#bfc8d6;
  background:linear-gradient(180deg,#fff,#f8f9fc);
}
.podium-card.third{
  border-color:#d6854b;
  background:linear-gradient(180deg,#fff,#fff7f2);
}
.podium-medal{
  position:absolute;
  left:50%;
  top:-39px;
  transform:translateX(-50%);
  width:78px;height:78px;
  display:grid;place-items:center;
  border-radius:50%;
  font-size:38px;
  font-weight:950;
  box-shadow:0 7px 13px rgba(0,0,0,.17);
  border:5px solid rgba(255,255,255,.9);
}
.first .podium-medal{
  background:radial-gradient(circle at 35% 28%,#fff2a0,#ffc62c 43%,#dc8500 74%);
  color:#a76300;
}
.second .podium-medal{
  background:radial-gradient(circle at 35% 28%,#fff,#d8dde6 45%,#8e98a9 80%);
  color:#6a7280;
}
.third .podium-medal{
  background:radial-gradient(circle at 35% 28%,#ffd4b0,#dc8647 48%,#9d481d 82%);
  color:#783414;
}
.dept-logo-box{
  width:72px;height:72px;
  margin:0 auto 10px;
  display:grid;place-items:center;
}
.first .dept-logo-box{width:86px;height:86px}
.department-logo{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
.logo-fallback{
  width:100%;height:100%;
  display:grid;place-items:center;
  border-radius:18px;
  background:#eef4ff;
  color:#0b4fb1;
  font-weight:950;
}
.podium-card h3{
  margin:6px 0 12px;
  font-size:21px;
  line-height:1.2;
}
.medal-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid #d7e0ed;
  border-bottom:1px solid #d7e0ed;
  padding:8px 0;
  gap:8px;
}
.medal-stat{
  font-size:17px;
  font-weight:900;
}
.total-label{
  display:block;
  margin-top:9px;
  font-size:11px;
  color:#33496d;
  font-weight:800;
}
.points-big{
  display:block;
  font-size:30px;
  line-height:1;
  font-weight:950;
}
.podium-base{
  position:absolute;
  left:-5%;right:-5%;
  bottom:-18px;
  height:24px;
  border-radius:50%;
  box-shadow:0 9px 13px rgba(0,0,0,.12);
}
.first .podium-base{background:linear-gradient(#ffd95f,#d99a00)}
.second .podium-base{background:linear-gradient(#f1f3f6,#a7afbd)}
.third .podium-base{background:linear-gradient(#eeb184,#a75b2a)}
.podium-empty{
  grid-column:1/-1;
  min-height:190px;
  display:grid;
  place-items:center;
  color:#6b7c9b;
  font-weight:800;
}

/* Ranking */
.ranking-shell{
  width:min(1460px,calc(100% - 48px));
  margin:-2px auto 36px;
  padding:0 24px 12px;
  border-radius:22px;
  border:1px solid #d2e0f1;
  background:rgba(255,255,255,.88);
  box-shadow:var(--shadow);
}
.ranking-tabs{
  display:flex;
  gap:20px;
  padding:0 12px;
  height:48px;
  align-items:flex-end;
}
.ranking-tab{
  height:48px;
  border:0;
  border-bottom:4px solid transparent;
  background:transparent;
  color:#49618f;
  font-weight:850;
  padding:0 10px;
}
.ranking-tab.active{
  color:#102c68;
  border-bottom-color:#0a5bd0;
}
.table-wrap{
  width:100%;
  overflow:auto;
  border-radius:14px;
  border:1px solid #c9d9ee;
}
.board{
  width:100%;
  border-collapse:collapse;
  min-width:820px;
  background:#fff;
}
.board th{
  padding:12px 15px;
  background:linear-gradient(90deg,#0b3d98,#0759c1);
  color:#fff;
  text-align:center;
  font-size:14px;
}
.board th:nth-child(2){text-align:left}
.board .points-head{color:#ffcf25}
.board td{
  padding:10px 15px;
  border-bottom:1px solid #d9e4f2;
  text-align:center;
  font-weight:700;
}
.board tr:last-child td{border-bottom:0}
.board td:nth-child(2){text-align:left}
.board tbody tr:hover{background:#f5f9ff}
.rank-cell{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:950;
}
.rank-laurel{
  width:34px;height:34px;
  display:grid;place-items:center;
  border-radius:50%;
  font-size:12px;
  font-weight:950;
}
.rank-laurel.r1{background:#fff2bf;color:#b57b00}
.rank-laurel.r2{background:#f0f2f6;color:#727c8d}
.rank-laurel.r3{background:#ffeadc;color:#a05224}
.dept-cell-inner{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:230px;
}
.table-logo{
  width:34px;height:34px;
  object-fit:contain;
}
.table-logo-fallback{
  width:34px;height:34px;
  border-radius:9px;
  background:#eef4ff;
  color:#0a50b4;
  display:grid;place-items:center;
  font-size:11px;
  font-weight:950;
}
.points-cell{
  color:#0652c8;
  font-size:20px;
  font-weight:950!important;
}
.eye-btn{
  width:48px;height:30px;
  border:0;
  border-radius:999px;
  color:#0b5fd3;
  background:#e9f2ff;
  font-size:18px;
}
.official-note{
  padding:10px 0 2px;
  text-align:center;
  color:#4d6592;
  font-size:12px;
}

/* Sports */
.sports-hero{
  width:min(1180px,calc(100% - 44px));
  margin:0 auto;
  padding:55px 0 25px;
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
}
.sports-hero h1{font-size:42px}
.sports-hero p:not(.eyebrow){color:#60708e}
.sport-select-pill{border-radius:13px;min-width:220px}
.sport-panel{
  width:min(1180px,calc(100% - 44px));
  margin:0 auto 24px;
  padding:20px;
  background:#fff;
  border:1px solid #d4e1f2;
  border-radius:20px;
  box-shadow:0 15px 35px rgba(40,77,130,.09);
}
.sport-panel-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}
.sport-panel h2{margin:0 0 3px}
.sport-panel p{margin:0;color:#6a7892}
.category-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.category-card{
  border:1px solid #d5e3f4;
  border-radius:16px;
  background:#fbfdff;
  padding:16px;
}
.category-card h3{margin:0 0 12px}
.category-medal{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:9px 0;
  border-top:1px solid #e0e8f4;
}
.category-medal:first-of-type{border-top:0}

/* About */
.about-section{padding:30px}
.about-card{
  max-width:900px;
  margin:0 auto;
  padding:28px;
  background:#fff;
  border-radius:20px;
  border:1px solid #d2e1f3;
}

/* dialogs */
dialog{
  border:0;
  padding:0;
  background:transparent;
}
dialog::backdrop{
  background:rgba(5,27,67,.63);
  backdrop-filter:blur(3px);
}
.admin-dialog{
  width:min(760px,calc(100vw - 28px));
  max-width:none;
}
.dialog-shell{
  position:relative;
  width:100%;
  max-height:min(86vh,760px);
  overflow:auto;
  padding:28px;
  background:#fff;
  border-radius:22px;
  box-shadow:0 24px 70px rgba(0,0,0,.25);
}
.modal-x{
  position:absolute;
  top:12px;right:14px;
  width:36px;height:36px;
  border:0;
  border-radius:50%;
  background:#f1f5fb;
  color:#10234c;
  font-size:24px;
}
.login-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:18px 0;
}
.dialog-shell label{
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#243b65;
  font-weight:800;
  font-size:13px;
}
.dialog-shell input,
.dialog-shell select{
  width:100%;
  min-width:0;
  height:44px;
  padding:0 13px;
  border:1px solid #c8d9ee;
  border-radius:11px;
  background:#fff;
  outline:none;
}
.admin-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-right:42px;
}
.admin-title h2{margin:0}
.scope-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:18px 0;
  padding:13px 15px;
  border:1px solid #c7daf4;
  border-radius:12px;
  background:#f4f8ff;
}
.scope-banner span{font-size:11px;font-weight:950;color:#687797;letter-spacing:.6px}
.scope-banner strong{color:#0b4fae;font-size:17px}
.admin-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.primary-btn,.secondary-btn,.ghost-btn,.danger-btn{
  border:0;
  border-radius:11px;
  padding:11px 15px;
  font-weight:900;
}
.primary-btn{background:#0960d4;color:#fff}
.secondary-btn{background:#e6f0ff;color:#0a4da8}
.ghost-btn{background:#f2f5fa;color:#31496f}
.danger-btn{background:#fff0f0;color:#b63131}
.admin-actions{display:flex;gap:10px;margin-top:13px}
.inline-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
}
.admin-note{color:#6b7890;font-size:12px}
.msg{min-height:18px;color:#0a58c5;font-size:13px}
hr{border:0;border-top:1px solid #dae4f2;margin:24px 0}

.detail-dialog{width:min(500px,calc(100vw - 28px))}
.detail-card{
  position:relative;
  padding:30px;
  background:#fff;
  border-radius:22px;
  box-shadow:0 24px 70px rgba(0,0,0,.25);
}
.detail-dept{
  display:flex;align-items:center;gap:16px;
}
.detail-dept .dept-logo-box{margin:0;width:78px;height:78px}
.detail-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:20px;
}
.detail-stat{
  padding:13px 8px;
  text-align:center;
  border-radius:12px;
  background:#f4f8ff;
}
.detail-stat strong{display:block;font-size:22px}
.detail-stat span{font-size:11px;color:#697999}

/* Responsive */
@media(max-width:1180px){
  .topbar{grid-template-columns:260px 1fr auto;gap:12px}
  .nav{gap:7px}
  .updated-pill{display:none}
}
@media(max-width:900px){
  .topbar{
    min-height:auto;
    padding:11px 16px;
    grid-template-columns:1fr auto;
  }
  .brand-copy strong{font-size:20px}
  .nav{
    grid-column:1/-1;
    order:3;
    height:46px;
    overflow-x:auto;
    justify-content:flex-start;
  }
  .nav-link{white-space:nowrap}
  .hero{padding-top:28px}
  .hero-title-wrap h1,.sports-hero h1{font-size:31px}
  .hero-sports{display:none}
  .podium{
    grid-template-columns:1fr 1fr 1fr;
    gap:10px;
  }
  .podium-card{padding-left:12px;padding-right:12px}
  .podium-card h3{font-size:16px}
  .category-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  .brand-trophy{font-size:30px;width:38px}
  .brand-copy small{font-size:10px}
  .admin-top-btn{padding:8px 11px}
  .hero{min-height:0;padding:25px 12px 28px}
  .hero-title-wrap{gap:7px}
  .title-line{display:none}
  .hero-title-wrap h1{font-size:27px}
  .hero-subtitle{font-size:14px}
  .hero-filters{
    width:100%;
    justify-content:stretch;
    flex-direction:column;
    margin:20px auto 55px;
  }
  .filter-pill{width:100%}
  .podium{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:38px;
    align-items:stretch;
  }
  .podium-card{min-height:220px!important;order:initial!important}
  .podium-card.first{order:-1!important}
  .ranking-shell{
    width:calc(100% - 20px);
    padding:0 10px 10px;
    border-radius:16px;
  }
  .ranking-tabs{gap:4px;padding:0}
  .ranking-tab{font-size:12px;padding:0 8px}
  .sports-hero{
    width:calc(100% - 24px);
    padding-top:30px;
    flex-direction:column;
    align-items:stretch;
  }
  .sport-panel{width:calc(100% - 24px);padding:13px}
  .category-grid{grid-template-columns:1fr}
  .login-grid,.admin-grid{grid-template-columns:1fr}
  .dialog-shell{padding:22px 16px}
  .admin-title{padding-right:36px}
  .inline-form{grid-template-columns:1fr}
  .detail-stats{grid-template-columns:1fr 1fr}
}

/* PROD-006A — Header Navigation Hotfix */
.nav-link{
  border:0 !important;
  outline:none;
  box-shadow:none;
  -webkit-tap-highlight-color:transparent;
}
.nav-link:focus,
.nav-link:focus-visible,
.nav-link:active{
  outline:none;
  box-shadow:none;
}
.nav-link::after{
  content:"";
  position:absolute;
  left:5px;
  right:5px;
  bottom:0;
  height:4px;
  border-radius:4px 4px 0 0;
  background:transparent;
  transition:background-color .15s ease;
}
.nav-link.active::after{
  background:#ffca16;
}
.nav-link:not(.active)::after{
  background:transparent !important;
}

/* PROD-006B — UI Refinement & Page Separation */

/* Fix brand clipping across desktop widths */
.topbar{
  grid-template-columns:minmax(250px,340px) minmax(520px,1fr) auto;
  overflow:visible;
}
.brand{
  min-width:0;
  overflow:visible;
}
.brand-copy{
  min-width:0;
  overflow:visible;
  white-space:nowrap;
}
.brand-copy strong{
  overflow:visible;
}

/* Home */
.home-hero{
  width:min(1380px,calc(100% - 48px));
  margin:0 auto;
  padding:68px 0 40px;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
  align-items:center;
  gap:54px;
}
.home-copy h1{
  margin:0;
  font-size:64px;
  line-height:.98;
  letter-spacing:-1.5px;
  color:#09245b;
  font-weight:950;
}
.home-copy h1 span{color:#0b5dcc}
.home-lead{
  max-width:670px;
  margin:22px 0 0;
  font-size:18px;
  line-height:1.7;
  color:#526889;
}
.home-actions{
  display:flex;
  gap:12px;
  margin-top:28px;
}
.home-primary,
.home-secondary{
  border-radius:13px;
  padding:13px 20px;
  font-weight:900;
}
.home-primary{
  border:0;
  background:linear-gradient(90deg,#0b4da9,#0969dd);
  color:#fff;
  box-shadow:0 10px 24px rgba(9,91,205,.2);
}
.home-secondary{
  border:1px solid #c7d8ee;
  background:#fff;
  color:#173d7c;
}
.home-top3-card{
  padding:24px;
  border-radius:24px;
  border:1px solid #d1dff1;
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow);
}
.home-top3-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
.home-top3-head h2{margin:0}
.mini-update{
  font-size:11px;
  color:#60718d;
  background:#f3f7fd;
  border-radius:999px;
  padding:7px 10px;
}
.home-top3{display:grid;gap:10px}
.home-rank-card{
  display:grid;
  grid-template-columns:38px 46px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:15px;
  border:1px solid #e0e8f3;
  background:#fbfdff;
}
.home-rank-card.rank-1{border-color:#f7d36a;background:#fffaf0}
.home-rank-card.rank-2{border-color:#d9dee7}
.home-rank-card.rank-3{border-color:#e8c3a9;background:#fffaf6}
.home-rank-no{
  width:34px;height:34px;
  border-radius:50%;
  display:grid;place-items:center;
  background:#edf3fb;
  font-weight:950;
}
.rank-1 .home-rank-no{background:#ffefaf;color:#9d6a00}
.rank-2 .home-rank-no{background:#eef0f4;color:#667084}
.rank-3 .home-rank-no{background:#ffe7d7;color:#9e4d21}
.home-rank-logo{
  width:42px;height:42px;
  display:grid;place-items:center;
}
.home-rank-copy{min-width:0}
.home-rank-copy strong{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.home-rank-copy small{color:#697993}
.home-rank-card>b{color:#0a56bd;white-space:nowrap}
.home-empty{
  padding:34px;
  text-align:center;
  color:#6d7b93;
}

.home-stats{
  width:min(1380px,calc(100% - 48px));
  margin:0 auto 32px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.home-stats article{
  min-height:132px;
  padding:20px;
  border-radius:18px;
  border:1px solid #d7e3f2;
  background:#fff;
  box-shadow:0 10px 25px rgba(31,73,128,.07);
}
.home-stat-icon{font-size:24px}
.home-stats strong{
  display:block;
  margin-top:8px;
  font-size:30px;
  color:#0a4ca5;
}
.home-stats small{color:#60708c}

.home-highlight{
  width:min(1380px,calc(100% - 48px));
  margin:0 auto 48px;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-radius:22px;
  background:linear-gradient(110deg,#082f79,#0968d6);
  color:#fff;
  box-shadow:0 18px 35px rgba(8,54,126,.18);
}
.home-highlight .eyebrow{color:#ffd84f}
.home-highlight h2{margin:0 0 8px}
.home-highlight p:not(.eyebrow){margin:0;color:#dceaff}

/* Leaderboard spacing refinements */
.hero{
  padding-top:46px;
}
.hero-filters{
  margin-top:24px;
  margin-bottom:52px;
}
.podium{
  margin-top:0;
}
.podium-card{
  box-shadow:0 18px 38px rgba(25,70,130,.14);
}
.podium-card.first{
  box-shadow:0 20px 42px rgba(219,157,0,.20);
}
.podium-card.second{
  box-shadow:0 18px 38px rgba(112,124,145,.16);
}
.podium-card.third{
  box-shadow:0 18px 38px rgba(176,93,42,.15);
}

/* Better category result alignment */
.category-card{
  min-width:0;
}
.category-medal{
  display:grid;
  grid-template-columns:105px minmax(0,1fr);
  align-items:start;
  gap:12px;
}
.category-medal strong{
  white-space:nowrap;
}
.category-medal span{
  text-align:left;
  line-height:1.35;
  overflow-wrap:anywhere;
}

/* About */
.about-grid{
  width:min(1120px,calc(100% - 44px));
  margin:0 auto;
  padding:44px 0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:20px;
}
.about-card{
  margin:0;
  max-width:none;
}
.about-main p:not(.eyebrow){
  line-height:1.7;
  color:#526885;
}
.about-meta{
  margin-top:24px;
  display:grid;
  gap:10px;
}
.about-meta div{
  padding:12px 0;
  border-top:1px solid #e2e9f3;
}
.about-meta span{
  display:block;
  font-size:11px;
  color:#76849a;
  text-transform:uppercase;
  letter-spacing:.6px;
}
.about-meta strong{display:block;margin-top:3px}
.about-side{
  display:grid;
  align-content:start;
  gap:10px;
}
.about-stat{
  padding:16px;
  border-radius:14px;
  background:#f5f9ff;
}
.about-stat strong{
  display:block;
  font-size:28px;
  color:#0b56bd;
}
.about-stat span{font-size:12px;color:#677691}

/* Better responsive behavior */
@media(max-width:1200px){
  .topbar{
    grid-template-columns:minmax(220px,280px) minmax(420px,1fr) auto;
  }
  .brand-copy strong{font-size:22px}
}
@media(max-width:980px){
  .home-hero{
    grid-template-columns:1fr;
    padding-top:44px;
  }
  .home-copy h1{font-size:50px}
  .home-top3-card{max-width:none}
  .home-stats{grid-template-columns:1fr 1fr}
  .about-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
  .home-hero,
  .home-stats,
  .home-highlight{
    width:calc(100% - 24px);
  }
  .home-copy h1{font-size:38px}
  .home-actions{flex-direction:column}
  .home-actions button{width:100%}
  .home-stats{grid-template-columns:1fr 1fr;gap:10px}
  .home-stats article{min-height:110px;padding:15px}
  .home-highlight{
    align-items:flex-start;
    flex-direction:column;
  }
  .home-rank-card{
    grid-template-columns:34px 40px minmax(0,1fr);
  }
  .home-rank-card>b{
    grid-column:3;
    font-size:12px;
  }
  .hero-filters{
    margin-bottom:62px;
  }
  .category-medal{
    grid-template-columns:92px minmax(0,1fr);
  }
}

/* PROD-007 — Scoring 4-3-2-1 */
.medal-strip{grid-template-columns:repeat(4,1fr)}
.detail-stats{grid-template-columns:repeat(5,1fr)}
@media(max-width:680px){.detail-stats{grid-template-columns:1fr 1fr}}

/* PROD-007A */
.home-stats-compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}
.home-stats-compact article{min-height:76px;padding:13px 18px;display:flex;align-items:center;gap:13px;border-radius:16px}
.home-stats-compact .home-stat-icon{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;font-size:22px;border-radius:12px;background:#f1f6ff}
.home-stats-compact article>div{min-width:0}
.home-stats-compact strong{margin:0;font-size:25px;line-height:1}
.home-stats-compact small{display:block;margin-top:5px;font-size:12px;white-space:nowrap}

.home-highlight-link{width:min(1380px,calc(100% - 48px));border:0;text-align:left;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.home-highlight-link:hover{transform:translateY(-2px);box-shadow:0 22px 42px rgba(8,54,126,.25);filter:brightness(1.03)}
.home-highlight-link:focus-visible{outline:3px solid #ffd84f;outline-offset:4px}
.home-highlight-cta{flex:0 0 auto;padding:12px 18px;border-radius:12px;background:rgba(255,255,255,.11);color:#fff;font-weight:900;white-space:nowrap}

.sports-directory-shell{width:min(1380px,calc(100% - 44px));margin:0 auto 44px}
.sports-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sport-directory-card{min-height:205px;padding:20px;border:1px solid #d3e1f2;border-radius:20px;background:#fff;color:var(--text);text-align:left;box-shadow:0 12px 28px rgba(32,72,128,.08);transition:.16s}
.sport-directory-card:hover{transform:translateY(-3px);border-color:#9fc2ee;box-shadow:0 18px 36px rgba(32,72,128,.14)}
.sport-directory-top,.sport-directory-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sport-directory-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#eef5ff;font-size:21px}
.sport-status{padding:6px 9px;border-radius:999px;background:#f1f4f8;color:#61718a;font-size:10px;font-weight:850}
.sport-status.complete{background:#e9f8ef;color:#1b7b45}
.sport-directory-card h3{min-height:10px;margin:22px 0 15px;font-size:20px;line-height:1.25}
.sport-progress{height:6px;overflow:hidden;border-radius:999px;background:#e7eef8}
.sport-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0a4ca9,#0c6ee5)}
.sport-directory-footer{margin-top:14px;color:#64738d;font-size:12px}.sport-directory-footer strong{color:#0b58c4}
.sport-detail-section{width:min(1380px,calc(100% - 44px));margin:32px auto 44px}.sport-detail-section .sport-panel{width:100%}
.sport-detail-toolbar{margin-bottom:12px}.back-sports-btn{border:1px solid #cbdced;border-radius:11px;padding:9px 13px;background:#fff;color:#17437f;font-weight:850}
.category-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}.category-card-head h3{margin:0}
.category-status{padding:5px 8px;border-radius:999px;background:#eef4fb;color:#60728e;font-size:9px;font-weight:850;white-space:nowrap}

.results-hero{width:min(1380px,calc(100% - 44px));margin:0 auto;padding:52px 0 24px;display:flex;align-items:flex-end;justify-content:space-between;gap:26px}
.results-hero h1{margin:0;font-size:44px;color:#0a255b;letter-spacing:.5px}.results-hero p:not(.eyebrow){margin:8px 0 0;color:#62728e}
.results-filters{display:flex;gap:10px}.results-select-pill{min-width:220px;border-radius:13px}
.results-shell{width:min(1380px,calc(100% - 44px));margin:0 auto 48px}
.results-summary{display:flex;gap:10px;margin-bottom:16px}.results-summary>div{min-width:175px;padding:12px 15px;border:1px solid #d6e2f1;border-radius:14px;background:#fff}
.results-summary strong{display:block;color:#0a59c8;font-size:22px}.results-summary span{font-size:11px;color:#66758e}
.results-grid{display:grid;gap:20px}.result-sport-block{padding:20px;border:1px solid #d3e0f1;border-radius:20px;background:#fff;box-shadow:0 12px 28px rgba(34,75,129,.07)}
.result-sport-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:14px}.result-sport-heading h2{margin:0}.result-sport-heading>span{padding:7px 10px;border-radius:999px;background:#f1f5fb;color:#667690;font-size:11px}
.result-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.result-category-card{min-width:0;overflow:hidden;border:1px solid #d8e3f2;border-radius:16px;background:#fbfdff}
.result-category-title{padding:15px 16px 12px;border-bottom:1px solid #e1e9f4}.result-category-title h3{margin:0;font-size:17px}.result-category-title span{display:block;margin-top:5px;color:#6d7c94;font-size:10px}
.result-place{display:grid;grid-template-columns:28px 90px minmax(0,1fr);align-items:center;gap:9px;padding:10px 14px;border-bottom:1px solid #e7edf5}.result-place:last-child{border-bottom:0}
.result-place b{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#eef3fa;font-size:11px}.result-place strong{font-size:12px;white-space:nowrap}.result-place span{min-width:0;overflow-wrap:anywhere;font-size:12px;text-align:right}
.place-1{background:#fffcf4}.place-2{background:#fcfcfd}.place-3{background:#fffaf7}
.results-empty{padding:45px;text-align:center;border:1px dashed #cbd9eb;border-radius:18px;color:#6b7a93;background:#fff}

@media(max-width:1100px){.sports-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.result-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.sports-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.results-hero{align-items:stretch;flex-direction:column}.results-filters{width:100%}.results-filters .filter-pill{flex:1}}
@media(max-width:680px){.home-stats-compact{grid-template-columns:1fr 1fr}.home-stats-compact article{min-height:68px;padding:11px 12px}.home-stats-compact .home-stat-icon{width:34px;height:34px;flex-basis:34px;font-size:18px}.home-stats-compact strong{font-size:21px}.home-highlight-link{width:calc(100% - 24px)}.home-highlight-cta{width:100%;text-align:center}.sports-grid{grid-template-columns:1fr}.result-category-grid{grid-template-columns:1fr}.results-filters{flex-direction:column}.results-select-pill{width:100%;min-width:0}.results-summary{display:grid;grid-template-columns:1fr 1fr}.results-summary>div{min-width:0}}

/* =========================================================
   PROD-007B — Home + Leaderboard Merge
   ========================================================= */

.merged-home-hero{
  width:min(1380px,calc(100% - 48px));
  margin:0 auto;
  padding:48px 0 18px;
}
.merged-home-copy{
  max-width:880px;
}
.merged-home-copy h1{
  margin:0;
  font-size:58px;
  line-height:.98;
  letter-spacing:-1.3px;
  color:#09245b;
  font-weight:950;
}
.merged-home-copy h1 span{
  color:#0b5dcc;
}
.merged-home-copy .home-lead{
  max-width:760px;
  margin:18px 0 24px;
}
.merged-home-hero .home-stats-compact{
  width:100%;
  margin:22px 0 0;
}
.merged-leaderboard-hero{
  margin-top:0;
  padding-top:34px;
}
.merged-leaderboard-hero .podium{
  margin-top:52px;
}
.merged-leaderboard-hero + .ranking-shell{
  margin-top:0px;
}
.about-grid-wide{
  grid-template-columns:minmax(0,1fr) 280px;
}
.about-section-block{
  padding:20px 0;
  border-top:1px solid #e2e9f3;
}
.about-section-block:first-of-type{
  border-top:0;
  padding-top:10px;
}
.about-section-block h3{
  margin:0 0 10px;
  color:#123b79;
  font-size:18px;
}
.about-section-block p{
  margin:0 0 10px;
}
.about-section-block p:last-child{
  margin-bottom:0;
}
.about-list{
  margin:0;
  padding-left:20px;
  color:#526885;
  line-height:1.65;
}
.about-list li+li{
  margin-top:7px;
}

@media(max-width:980px){
  .merged-home-copy h1{
    font-size:48px;
  }
  .about-grid-wide{
    grid-template-columns:1fr;
  }
}
@media(max-width:680px){
  .merged-home-hero{
    width:calc(100% - 24px);
    padding-top:30px;
  }
  .merged-home-copy h1{
    font-size:36px;
  }
  .merged-leaderboard-hero{
    padding-top:22px;
  }
}

/* =========================================================
   PROD-007C — Podium hierarchy + About editorial redesign
   ========================================================= */

/* Podium hierarchy:
   #1 highest, #2 lower, #3 lowest */
.podium{
  align-items:end;
}
.podium-card.first{
  min-height:330px;
  transform:translateY(-34px);
}
.podium-card.second{
  min-height:285px;
  transform:translateY(-12px);
}
.podium-card.third{
  min-height:255px;
  transform:translateY(8px);
}
.first .podium-base{bottom:-20px}
.second .podium-base{bottom:-18px}
.third .podium-base{bottom:-16px}

/* About page: remove summary box and separator lines */
.about-section{
  padding:0;
}
.about-editorial{
  width:min(980px,calc(100% - 44px));
  margin:0 auto;
  padding:58px 0 70px;
}
.about-kicker{
  color:#0b5dcc;
  font-size:11px;
  font-weight:950;
  letter-spacing:1.25px;
  margin-bottom:10px;
}
.about-editorial h1{
  margin:0;
  max-width:820px;
  color:#09245b;
  font-size:32px;
  line-height:1.08;
  letter-spacing:-.5px;
}
.about-lead{
  max-width:820px;
  margin:18px 0 26px;
  color:#4f6586;
  font-size:16px;
  line-height:1.7;
}
.about-facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:0 0 34px;
}
.about-facts>div{
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 15px;
  border-radius:14px;
  background:#f3f7fd;
  color:#153d78;
}
.about-facts span{font-size:18px}
.about-facts strong{font-size:13px}

.about-content-block{
  margin-top:34px;
}
.about-content-block h2{
  margin:0 0 12px;
  color:#0d3d82;
  font-size:21px;
}
.about-content-block p{
  margin:0 0 12px;
  color:#526885;
  font-size:16px;
  line-height:1.75;
}
.about-sports-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.about-sports-list span{
  padding:11px 13px;
  border-radius:12px;
  background:#f7faff;
  color:#183b73;
  font-weight:750;
  font-size:14px;
}
.about-closing{
  margin-top:40px;
  padding:24px;
  border-radius:18px;
  background:linear-gradient(110deg,#082f79,#0968d6);
  color:#fff;
  text-align:center;
}
.about-closing strong{
  display:block;
  font-size:17px;
}
.about-closing span{
  display:block;
  margin-top:8px;
  color:#dceaff;
  font-style:italic;
}

/* neutralize old About divider styles */
.about-section-block,
.about-meta div{
  border-top:0 !important;
}

@media(max-width:900px){
  .podium-card.first{transform:translateY(-24px)}
  .podium-card.second{transform:translateY(-8px)}
  .podium-card.third{transform:translateY(6px)}
}
@media(max-width:680px){
  .podium{
    align-items:stretch;
  }
  .podium-card.first,
  .podium-card.second,
  .podium-card.third{
    transform:none;
    min-height:220px;
  }
  .about-editorial{
    width:calc(100% - 24px);
    padding-top:34px;
  }
  .about-editorial h1{
    font-size:32px;
  }
  .about-lead{
    font-size:16px;
  }
  .about-facts{
    grid-template-columns:1fr;
  }
  .about-sports-list{
    grid-template-columns:1fr 1fr;
  }
}


/* =========================================================
   PROD-007D — CTA fix + realistic podium medals
   ========================================================= */

.home-highlight-link{
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.home-highlight-link:hover{
  transform:translateY(-2px);
  filter:saturate(1.05);
}
.home-highlight-link:active{
  transform:translateY(0);
}
.home-highlight-link .home-highlight-cta{
  pointer-events:none;
}

/* realistic medals on podium */
.podium-card{
  overflow:visible;
}
.podium-medal{
  position:absolute;
  top:-56px;
  left:50%;
  transform:translateX(-50%);
  width:96px;
  height:112px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  pointer-events:none;
}
.podium-ribbon{
  position:absolute;
  top:0;
  width:24px;
  height:44px;
  border-radius:7px 7px 10px 10px;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.08);
}
.podium-ribbon.left{
  left:22px;
  transform:rotate(-8deg);
}
.podium-ribbon.right{
  right:22px;
  transform:rotate(8deg);
}
.podium-medal-disc{
  position:absolute;
  top:24px;
  width:72px;
  height:72px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    0 10px 20px rgba(17,34,68,.18),
    inset 0 10px 15px rgba(255,255,255,.50),
    inset 0 -10px 18px rgba(0,0,0,.10);
  border:4px solid rgba(255,255,255,.78);
}
.podium-medal-number{
  font-size:26px;
  font-weight:950;
  line-height:1;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}

.podium-medal.gold .podium-ribbon.left,
.podium-medal.gold .podium-ribbon.right{
  background:linear-gradient(180deg,#ef5350,#c62828);
}
.podium-medal.gold .podium-medal-disc{
  background:
    radial-gradient(circle at 30% 28%, #fff4a8 0%, #ffd94b 26%, #f7b500 55%, #cf8600 100%);
}
.podium-medal.gold .podium-medal-number{
  color:#7b4a00;
}

.podium-medal.silver .podium-ribbon.left,
.podium-medal.silver .podium-ribbon.right{
  background:linear-gradient(180deg,#42a5f5,#1565c0);
}
.podium-medal.silver .podium-medal-disc{
  background:
    radial-gradient(circle at 30% 28%, #ffffff 0%, #edf2f7 22%, #cfd7e3 52%, #8d9aae 100%);
}
.podium-medal.silver .podium-medal-number{
  color:#55657d;
}

.podium-medal.bronze .podium-ribbon.left,
.podium-medal.bronze .podium-ribbon.right{
  background:linear-gradient(180deg,#64b5f6,#1e88e5);
}
.podium-medal.bronze .podium-medal-disc{
  background:
    radial-gradient(circle at 30% 28%, #ffd4b2 0%, #f2a96d 26%, #cd6b23 58%, #94400f 100%);
}
.podium-medal.bronze .podium-medal-number{
  color:#6e3310;
}

@media(max-width:680px){
  .podium-medal{
    top:-48px;
    width:82px;
    height:98px;
  }
  .podium-ribbon{
    width:20px;
    height:38px;
  }
  .podium-ribbon.left{ left:18px; }
  .podium-ribbon.right{ right:18px; }
  .podium-medal-disc{
    top:22px;
    width:60px;
    height:60px;
  }
  .podium-medal-number{
    font-size:22px;
  }
}


/* =========================================================
   PROD-007E — Header / Leaderboard Layout Refinement
   ========================================================= */

/* Header: true centered navigation */
.topbar{
  grid-template-columns:minmax(300px,1fr) auto minmax(300px,1fr) !important;
  gap:18px !important;
  padding:0 28px;
}
.brand{
  justify-self:start;
}
.nav{
  justify-self:center;
  justify-content:center !important;
  gap:24px;
}
.top-actions{
  justify-self:end;
}

/* Header identity */
.brand-copy strong{
  font-size:24px !important;
  font-style:italic;
  line-height:1;
  letter-spacing:.45px;
  white-space:nowrap;
}
.brand-copy strong span{
  color:#ffd43b;
}
.brand-copy small{
  margin-top:6px;
  font-size:11px !important;
  font-weight:750;
  color:#fff !important;
  letter-spacing:.35px;
  white-space:nowrap;
}

/* Old merged intro is no longer used */
.merged-home-hero,
.merged-home-copy{
  display:none !important;
}

/* Main leaderboard heading: centered, with safe vertical separation */
.merged-leaderboard-hero{
  min-height:460px;
  padding-top:34px !important;
  overflow:hidden;
}
.merged-leaderboard-hero .hero-title-wrap{
  width:min(1100px,calc(100% - 40px));
  max-width:1100px;
  margin:0 auto;
  justify-content:center;
  text-align:center;
  position:relative;
  z-index:8;
}
.merged-leaderboard-hero .hero-title-wrap > div:nth-child(2){
  min-width:0;
  padding:0 18px;
}
.merged-leaderboard-hero .hero-title-wrap h1{
  margin:0 !important;
  font-size:42px;
  line-height:1.08;
  white-space:normal;
}
.merged-leaderboard-hero .hero-subtitle{
  margin-top:10px;
}

/* Podium moved down enough so medals cannot collide with title */
.merged-leaderboard-hero .podium{
  margin-top:46px !important;
  min-height:350px;
}

/* Keep medal above cards, but below title region */
.merged-leaderboard-hero .podium-medal{
  z-index:6;
}

/* KPI now lives below leaderboard table */
.leaderboard-kpi-strip{
  width:min(1460px,calc(100% - 48px)) !important;
  margin:0 auto 28px !important;
}
.leaderboard-kpi-strip article{
  box-shadow:0 10px 24px rgba(31,73,128,.07);
}

/* Akses Pantas follows KPI */
.leaderboard-kpi-strip + .home-highlight{
  margin-top:0 !important;
}

/* Desktop menu remains physically centered even with brand/actions */
@media(min-width:901px){
  .nav{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    height:86px;
  }
}

/* Tablet/mobile */
@media(max-width:1180px){
  .topbar{
    grid-template-columns:minmax(250px,1fr) auto !important;
  }
  .nav{
    position:static;
    transform:none;
  }
}
@media(max-width:900px){
  .topbar{
    grid-template-columns:1fr auto !important;
  }
  .nav{
    grid-column:1/-1;
    justify-content:center !important;
    overflow-x:auto;
  }
  .brand-copy strong{
    font-size:19px !important;
  }
  .brand-copy small{
    font-size:10px !important;
  }
  .merged-leaderboard-hero{
    min-height:520px;
    padding-top:38px !important;
  }
  .merged-leaderboard-hero .hero-title-wrap h1{
    font-size:32px;
  }
  .merged-leaderboard-hero .podium{
    margin-top:82px !important;
  }
}
@media(max-width:680px){
  .nav{
    gap:8px;
    justify-content:center !important;
  }
  .nav-link{
    padding:0 8px;
    font-size:13px;
  }
  .merged-leaderboard-hero{
    min-height:0;
  }
  .merged-leaderboard-hero .hero-title-wrap{
    width:100%;
  }
  .merged-leaderboard-hero .hero-title-wrap h1{
    font-size:27px;
  }
  .merged-leaderboard-hero .podium{
    margin-top:72px !important;
  }
  .leaderboard-kpi-strip{
    width:calc(100% - 20px) !important;
  }
}


/* =========================================================
   PROD-007E HOTFIX-1 — Header overlap fix
   ========================================================= */

/* Use a real 3-column grid; do NOT absolutely position nav */
.topbar{
  display:grid !important;
  grid-template-columns:minmax(330px,1fr) auto minmax(330px,1fr) !important;
  align-items:center;
  column-gap:24px !important;
  overflow:visible;
}

.brand{
  justify-self:start;
  min-width:0;
}

.nav{
  position:static !important;
  left:auto !important;
  transform:none !important;
  justify-self:center;
  justify-content:center !important;
  display:flex;
  gap:26px;
  min-width:max-content;
  height:86px;
}

.top-actions{
  justify-self:end;
  min-width:max-content;
  display:flex;
  align-items:center;
  gap:10px;
}

/* Keep menu labels compact and prevent wrapping */
.nav-link{
  white-space:nowrap;
  flex:0 0 auto;
}

/* Medium desktop: reduce horizontal pressure */
@media(max-width:1320px){
  .topbar{
    grid-template-columns:minmax(285px,1fr) auto minmax(285px,1fr) !important;
    column-gap:16px !important;
  }
  .nav{
    gap:18px;
  }
  .nav-link{
    padding-left:7px;
    padding-right:7px;
    font-size:14px;
  }
  .updated-pill{
    padding-left:11px;
    padding-right:11px;
    font-size:11px;
  }
  .admin-top-btn{
    padding-left:12px;
    padding-right:12px;
  }
}

/* Tablet: move nav to its own row, centered */
@media(max-width:1080px){
  .topbar{
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:auto auto;
    padding-top:10px;
  }
  .brand{
    grid-column:1;
    grid-row:1;
  }
  .top-actions{
    grid-column:2;
    grid-row:1;
  }
  .nav{
    grid-column:1/-1;
    grid-row:2;
    width:100%;
    height:48px;
    justify-content:center !important;
    overflow-x:auto;
  }
}

/* Mobile */
@media(max-width:680px){
  .topbar{
    grid-template-columns:minmax(0,1fr) auto !important;
  }
  .brand-copy strong{
    font-size:17px !important;
  }
  .brand-copy small{
    font-size:9px !important;
  }
  .updated-pill{
    display:none !important;
  }
  .nav{
    gap:8px;
    justify-content:center !important;
  }
  .nav-link{
    font-size:12px;
    padding:0 7px;
  }
}

/* =========================================================
   PROD-007F — MOBILE & PWA POLISH
   Baseline: PROD-007E-HOTFIX-1 v1.7.7
   ========================================================= */

/* PWA / device safe areas */
html{
  min-width:320px;
  background:#f4f8ff;
}
body{
  padding-left:env(safe-area-inset-left);
  padding-right:env(safe-area-inset-right);
  padding-bottom:env(safe-area-inset-bottom);
  overflow-x:hidden;
}
.topbar{
  padding-top:max(10px,env(safe-area-inset-top));
}

/* Touch targets */
.nav-link,
.admin-top-btn,
.ranking-tab,
.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn{
  min-height:44px;
}
.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* Compact single-row podium: #2 | #1 | #3 */
.merged-leaderboard-hero .podium{
  width:min(980px,calc(100% - 28px));
  min-height:248px;
  margin-top:58px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:end;
  gap:12px;
}
.merged-leaderboard-hero .podium-card{
  min-width:0;
  min-height:190px;
  padding:47px 12px 18px;
  border-radius:22px 22px 12px 12px;
}
.merged-leaderboard-hero .podium-card.first{
  min-height:218px;
  transform:translateY(-16px);
}
.merged-leaderboard-hero .podium-card.second{
  min-height:196px;
  transform:translateY(-3px);
}
.merged-leaderboard-hero .podium-card.third{
  min-height:188px;
  transform:translateY(4px);
}
.merged-leaderboard-hero .podium-card .dept-logo-box{
  width:58px;
  height:58px;
  margin-bottom:8px;
}
.merged-leaderboard-hero .podium-card.first .dept-logo-box{
  width:66px;
  height:66px;
}
.merged-leaderboard-hero .podium-card h3{
  min-height:38px;
  margin:5px 0 7px;
  font-size:15px;
  line-height:1.18;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.merged-leaderboard-hero .total-label{
  margin-top:5px;
  font-size:10px;
}
.merged-leaderboard-hero .points-big{
  font-size:26px;
}
.merged-leaderboard-hero .podium-medal{
  top:-44px;
  width:76px;
  height:91px;
}
.merged-leaderboard-hero .podium-ribbon{
  width:18px;
  height:34px;
}
.merged-leaderboard-hero .podium-ribbon.left{left:18px}
.merged-leaderboard-hero .podium-ribbon.right{right:18px}
.merged-leaderboard-hero .podium-medal-disc{
  top:20px;
  width:56px;
  height:56px;
}
.merged-leaderboard-hero .podium-medal-number{
  font-size:20px;
}
.merged-leaderboard-hero .podium-base{
  height:18px;
  bottom:-12px;
}
.merged-leaderboard-hero .first .podium-base,
.merged-leaderboard-hero .second .podium-base,
.merged-leaderboard-hero .third .podium-base{bottom:-12px}

/* Slightly denser sports cards on small screens */
@media(max-width:680px){
  .sport-card{
    min-height:auto;
    padding:18px;
  }
}

/* Mobile hardening: keep podium in one row all the way to 320px */
@media(max-width:680px){
  .topbar{
    padding-left:12px;
    padding-right:12px;
  }
  .brand{
    gap:7px;
    min-width:0;
  }
  .brand-trophy{
    width:28px;
    flex:0 0 28px;
    font-size:24px;
  }
  .brand-copy{
    min-width:0;
  }
  .brand-copy strong{
    display:block;
    font-size:clamp(13px,4vw,17px) !important;
    white-space:nowrap;
  }
  .brand-copy small{
    display:block;
    font-size:clamp(7px,2.2vw,9px) !important;
    white-space:nowrap;
  }
  .admin-top-btn{
    flex:0 0 auto;
    padding:7px 10px;
    font-size:clamp(12px,3.2vw,14px);
  }
  .nav{
    width:100%;
    gap:0;
    overflow:visible;
    justify-content:space-between !important;
  }
  .nav-link{
    flex:1 1 25%;
    min-width:0;
    padding:0 4px;
    font-size:clamp(10px,3vw,12px);
  }

  .merged-leaderboard-hero{
    padding-bottom:18px;
  }
  .merged-leaderboard-hero .podium{
    width:100%;
    min-height:190px;
    margin-top:50px;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:end;
    gap:6px;
  }
  .merged-leaderboard-hero .podium-card,
  .merged-leaderboard-hero .podium-card.first,
  .merged-leaderboard-hero .podium-card.second,
  .merged-leaderboard-hero .podium-card.third{
    order:initial !important;
    min-width:0;
    padding:38px 5px 12px;
    border-radius:16px 16px 9px 9px;
  }
  .merged-leaderboard-hero .podium-card.first{
    min-height:176px !important;
    transform:translateY(-12px) !important;
  }
  .merged-leaderboard-hero .podium-card.second{
    min-height:160px !important;
    transform:none !important;
  }
  .merged-leaderboard-hero .podium-card.third{
    min-height:154px !important;
    transform:translateY(3px) !important;
  }
  .merged-leaderboard-hero .podium-card .dept-logo-box,
  .merged-leaderboard-hero .podium-card.first .dept-logo-box{
    width:clamp(38px,12vw,50px);
    height:clamp(38px,12vw,50px);
    margin-bottom:5px;
  }
  .merged-leaderboard-hero .podium-card h3{
    min-height:31px;
    margin:3px 0 4px;
    font-size:clamp(9px,2.7vw,12px);
    line-height:1.12;
    -webkit-line-clamp:3;
  }
  .merged-leaderboard-hero .total-label{
    font-size:8px;
  }
  .merged-leaderboard-hero .points-big{
    font-size:clamp(20px,6vw,24px);
  }
  .merged-leaderboard-hero .podium-medal{
    top:-36px;
    width:60px;
    height:72px;
  }
  .merged-leaderboard-hero .podium-ribbon{
    width:14px;
    height:27px;
  }
  .merged-leaderboard-hero .podium-ribbon.left{left:15px}
  .merged-leaderboard-hero .podium-ribbon.right{right:15px}
  .merged-leaderboard-hero .podium-medal-disc{
    top:17px;
    width:44px;
    height:44px;
    border-width:3px;
  }
  .merged-leaderboard-hero .podium-medal-number{
    font-size:17px;
  }
  .merged-leaderboard-hero + .ranking-shell{
    margin-top:0;
  }
}

@media(max-width:360px){
  .topbar{padding-left:9px;padding-right:9px}
  .brand-trophy{width:24px;flex-basis:24px;font-size:21px}
  .admin-top-btn{padding-left:8px;padding-right:8px}
  .merged-leaderboard-hero .podium{gap:4px}
  .merged-leaderboard-hero .podium-card,
  .merged-leaderboard-hero .podium-card.first,
  .merged-leaderboard-hero .podium-card.second,
  .merged-leaderboard-hero .podium-card.third{padding-left:3px;padding-right:3px}
}

/* =========================================================
   PROD-007F-HOTFIX-1 — Mobile typography refinement
   Reduce department-name typography on mobile only.
   Desktop layout and application architecture remain unchanged.
   ========================================================= */
@media(max-width:680px){
  /* Leaderboard / sport ranking tables */
  .board th{
    font-size:11px;
  }
  .board td{
    font-size:12px;
  }
  .dept-cell-inner{
    min-width:190px;
    gap:8px;
  }
  .dept-cell-inner strong{
    font-size:12px;
    line-height:1.18;
    font-weight:800;
  }
  .table-logo,
  .table-logo-fallback{
    width:29px;
    height:29px;
  }
  .table-logo-fallback{
    font-size:9px;
  }
  .rank-laurel{
    width:30px;
    height:30px;
    font-size:11px;
  }
  .points-cell{
    font-size:17px;
  }

  /* Compact podium department names */
  .merged-leaderboard-hero .podium-card h3{
    font-size:clamp(8px,2.35vw,10.5px);
    line-height:1.12;
    font-weight:850;
  }

  /* Final-results department names */
  .result-place span{
    font-size:10.5px;
    line-height:1.2;
  }

  /* Department detail dialog */
  .detail-dept h2{
    font-size:18px;
    line-height:1.16;
  }
}

@media(max-width:360px){
  .board th{font-size:10px}
  .board td{font-size:11px}
  .dept-cell-inner{min-width:175px;gap:7px}
  .dept-cell-inner strong{font-size:11px}
  .table-logo,
  .table-logo-fallback{width:27px;height:27px}
  .points-cell{font-size:16px}
  .result-place span{font-size:10px}
  .detail-dept h2{font-size:17px}
}

/* PROD-007F-HOTFIX-2 — frontend stability / fast-login polish */
button:disabled{opacity:.65;cursor:not-allowed}
.admin-top-btn,.nav-link,.primary-btn,.secondary-btn,.ghost-btn,.danger-btn{touch-action:manipulation}
