/* V3.4 - SPORTS EDITION: arena azul, naranja balón, blancos luminosos */
:root{
  color-scheme:light;
  --canvas:#eaf0f7;
  --ink:#16283e;
  --dim:#586b7e;
  --accent:#f56c23;
  --accent2:#ffab4b;
  --sport-navy:#102743;
  --sport-blue:#164f8b;
  --sport-border:#cbdae8;
}
body{
  color:var(--ink);
  background:
    radial-gradient(circle at 99% 17%,#ffd1a868,transparent 25%),
    repeating-linear-gradient(135deg,transparent 0 28px,#1a4d7705 28px 29px),
    linear-gradient(180deg,#dfe9f3 0%,#f4f7fb 34%,#e7eff7 100%);
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f06f28;outline-offset:4px}
.masthead{
  background-color:#0b1b2d;
  background-image:linear-gradient(90deg,#061326f4 0%,#10243dd9 42%,#12243860 78%),
    linear-gradient(0deg,#10233c 0%,transparent 42%),url('/hero_navojoa_balon.webp');
  border-bottom:5px solid #f5792b;
  overflow:hidden;
}
.masthead::before{content:'';position:absolute;right:-12%;top:0;width:46%;height:6px;background:#ff8e37;transform:skewX(-27deg);z-index:2}
.masthead:after{background:linear-gradient(180deg,transparent 76%,#122943)}
.topline{border-bottom-color:#ffecdc44}
.hero .hero-kicker{color:#ffa34d}
.hero h1.hero-place{color:#fff6ef;text-shadow:0 5px 20px #081527e0}
.hero h1.hero-place strong{color:#ffa34d}
.hero-sub{color:#f4e8df}
.hero-facts{color:#ffe2c9}
.main-content{padding-bottom:80px}
.category-panel{
  background:linear-gradient(125deg,#fff 0%,#f5faff 100%);
  border:1px solid #c7d6e7;
  border-top:5px solid #f3792a;
  box-shadow:0 22px 54px #21364a27;
}
.panel-label{color:#1c334e}
.small-note{color:#617b91}
.category-card{background:linear-gradient(120deg,#f1f6fb,#e5eef8);border:2px solid #d1e0ef;color:#1a314e;box-shadow:0 4px 16px #172c4420}
.category-card.selected{background:linear-gradient(130deg,#ff8b3a,#d95516);border-color:#ffac69;box-shadow:0 8px 18px #d9561550;color:#fff}
.category-card:not(.selected):hover{border-color:#f5792b}
.category-icon{background:#ffebd7;border:1px solid #f1ae7b;color:#df5c1b}
.category-card.selected .category-icon{background:#fce0bb38;border-color:#fff7e970;color:white}
.category-icon.recreational{color:#264f80;border-color:#abc1d9}
.category-card.selected .category-icon.recreational{color:white}
.category-text strong{letter-spacing:.015em}
.category-text small,.category-card.selected .category-text small{color:inherit;opacity:.88}
.category-arrow{color:#234f7f}
.category-card.selected .category-arrow{color:#fff}
.league-links{margin:30px 0 12px}
.league-link{
  text-decoration:none;
  min-height:91px;
  background:linear-gradient(122deg,#153c66,#0e2646);
  color:#fff;
  border:2px solid #497ca95c;
  border-bottom:5px solid #f47825;
  border-radius:15px;
  box-shadow:0 12px 22px #16345334;
  position:relative;
}
.league-link:first-child{background:linear-gradient(116deg,#f37b2c,#ce4a14);border-color:#f5a575;border-bottom-color:#18365f}
.league-link svg{stroke:#ffbd76}
.league-link:first-child svg{stroke:#fff}
.league-link:hover,.league-link.active{background:linear-gradient(116deg,#21609b,#123455);border-color:#f9a05d;transform:translateY(-2px)}
.league-link:first-child:hover,.league-link:first-child.active{background:linear-gradient(116deg,#ff8f37,#c74c16)}
.league-link .link-arrow{position:absolute;right:10px;top:8px;font-size:19px;opacity:.85;line-height:1}
.section-topline{margin-top:47px}
.eyebrow-dark{color:#c9571b}
.section-topline h2{color:#143457;font-size:clamp(27px,3.5vw,40px);font-weight:950}
.sync-group{color:#3b5b70}
#refresh-btn{background:#fff;border:2px solid #bbccde;color:#1c4d79;box-shadow:0 4px 12px #254d7c24}
.stat{background:#fff;border:1px solid #c8d9ea;border-top:4px solid #f4772e;box-shadow:0 9px 25px #1c3a5520}
.stat:nth-child(2),.stat:nth-child(4){border-top-color:#1e6ca4}
.stat>span{color:#23517b;font-size:13px}
.stat strong{color:#163957;font-family:inherit;font-weight:950;font-size:43px}
.stat small{color:#65798b;font-size:13px}
.content-card{background:#fff;border:1px solid #c8d8e6;box-shadow:0 22px 45px #16304d20}
.content-head{background:#143759;border-bottom:4px solid #f47a2b}
.tab{color:#d3e4f5;font-size:15px}
.tab.active{color:#fff;border-bottom-color:#ffa555;background:#245786}
.tab:hover{color:#fff;background:#24517c}
.view-panel{background:linear-gradient(180deg,#fff,#f6f9fd)}
.field{color:#264f73}
.field select,.field input{background:#fff;color:#1d3655;border:2px solid #b9d1e3}
.field input::placeholder{color:#677d90}
.list-summary{color:#4d677d}
.round-title{background:linear-gradient(95deg,#ffe4ca,#f1f6fb);border-bottom:3px solid #f38536;border-radius:10px 10px 0 0}
.round-title strong{color:#bd4c13;font-weight:950}
.round-title span{color:#415c76}
.match{background:linear-gradient(105deg,#fff,#f0f6fc);border:1px solid #ccdaea;border-left:5px solid #ec6e29;box-shadow:0 4px 12px #1c426017}
.match-date{color:#61758d}
.match-date strong{color:#194469}
.match-names{color:#183650;font-weight:900}
.match-names .vs{color:#dc5c18;font-weight:900}
.match-location{color:#4b6379}
.match-status{background:#ffead8;color:#9e4717;border-color:#e7ad83;font-weight:900}
.match-status.played{background:#dbf3e2;color:#216340;border-color:#73c48a}
.match-score{color:#133b60}
.more-rounds,.less-rounds{background:#164d82;color:#fff;border:2px solid #164d82;border-radius:12px;font-weight:900;box-shadow:0 8px 18px #164d8230}
.less-rounds{background:#fff;color:#164d82}
.results-intro h3{color:#163e63}
.results-intro p{color:#536d82}
.standings-table th{background:#173f66;color:white}
.standings-table td{color:#17324b;border-bottom-color:#cddbea}
.standings-table tr:hover td{background:#e9f3fb}
.rank-bubble{background:#ffdfbf;color:#c75b22}
.empty{color:#5c7286}
.empty h3{color:#183f64}
.empty p{color:#526b7e}
.team-browser-sidebar{background:#eaf1f9;border-color:#c6d8e9}
.team-picker{background:#fff;color:#1e405f;border:1px solid #bed2e4}
.team-picker small{color:#607b91}
.team-picker.active{background:linear-gradient(120deg,#21609c,#16436d);border-color:#ffb079;color:#fff}
.team-picker.active small{color:#d9efff}
.roster-panel{background:linear-gradient(130deg,#fff,#f3f8fd);border:1px solid #c9d9e9;color:#15334f}
.roster-header{border-bottom-color:#cbdbea}
.roster-eyebrow{color:#c45b19}
.roster-header h3{color:#173b5f}
.roster-header p{color:#617b8f}
.player-row{background:#e9f2fb;border-color:#c3d8e9}
.player-number{background:linear-gradient(120deg,#fa992f,#e96622);color:#fff}
.player-name{color:#183b59}
.alert{background:#fff0e1;color:#9c4816;border:1px solid #e6ba9b}
.footer{background:linear-gradient(180deg,#112b49,#071a2c);border-top:5px solid #f47a2b;color:#fff}
.footer:before{opacity:.12}
.footer-inner small{color:#d2dfec}
/* Separate full pages */
.subhead{
  min-height:355px;position:relative;overflow:hidden;color:#fff;
  background-color:#0b2541;
  background-image:linear-gradient(90deg,#081c36f5 0%,#14314deb 51%,#122f4790 100%),url('/hero_navojoa_balon.webp');
  background-size:cover;background-position:center 47%;border-bottom:6px solid #f47a2b;
}
.subhead::before{content:'';position:absolute;top:0;right:-10%;width:43%;height:6px;background:#f47a2b;transform:skewX(-24deg)}
.brand-link{color:#fff;text-decoration:none}
.subhero{position:relative;padding:38px 0 62px}
.back-link{display:inline-flex;align-items:center;gap:9px;text-decoration:none;border:1px solid #f7f1e963;border-radius:24px;color:#fff;padding:10px 16px;font-size:14px;font-weight:800;margin-bottom:35px;background:#08294b90}
.back-link:hover{background:#ed7227}
.subhero .eyebrow{margin-bottom:12px;color:#ffb372}
.subhero h1{font-size:clamp(36px,5.4vw,66px);line-height:1.05;font-weight:950;text-transform:uppercase;letter-spacing:.025em;margin:0;color:#fff;max-width:900px;text-shadow:0 3px 13px #06162a}
.subhero p:not(.eyebrow){font-size:19px;max-width:670px;line-height:1.55;color:#e6f0f7;margin:17px 0 0}
.subhero-slash{position:absolute;right:1%;bottom:17px;color:#ffa455;font-weight:950;font-size:38px;letter-spacing:-.2em}
.subpage-main{padding-bottom:90px}
.sub-controls{display:flex;align-items:center;gap:17px;flex-wrap:wrap;background:#fff;box-shadow:0 14px 28px #0d2e4d28;border:1px solid #cadbea;border-top:5px solid #f47a2b;border-radius:15px;margin-top:-27px;position:relative;z-index:3;padding:19px 24px}
.sub-control-label{font-size:13px;letter-spacing:.15em;font-weight:950;color:#2c5473}
.sub-category-buttons{display:flex;gap:7px;flex-wrap:wrap}
.sub-category-buttons button{border-radius:9px;border:2px solid #c4d6e9;color:#1c446c;background:#f1f6fb;min-height:47px;padding:9px 16px;font-size:14px;font-weight:900}
.sub-category-buttons button.selected{background:#f47325;border-color:#e76d21;color:#fff;box-shadow:0 4px 9px #ef73253d}
.sub-category-current{margin-left:auto;font-size:13px;color:#56718a}.sub-category-current strong{color:#20486b}
.sub-links{margin:20px 0 22px}
.sub-links .league-link{min-height:78px}
.sub-content-card{background:#fff;border:1px solid #c3d6e5;border-radius:18px;padding:32px;box-shadow:0 19px 39px #16406920}
.sub-card-head{border-bottom:1px solid #cbdbe9;padding-bottom:21px;margin-bottom:25px}
.sport-chip{display:inline-block;font-size:12px;font-weight:950;letter-spacing:.13em;color:#bc5018;background:#fff0e3;border:1px solid #ffb377;padding:8px 12px;border-radius:5px;margin-bottom:13px}
.sub-card-head h2{font-size:clamp(27px,3.1vw,37px);color:#173959;margin:0 0 9px;line-height:1.15}
.sub-card-head p{font-size:16px;color:#587086;line-height:1.55;max-width:760px;margin:0}
.roster-footer-note{font-size:13px;color:#56758b;margin-top:20px;padding-left:10px;border-left:3px solid #f47a2b}
.doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.doc-tile{background:linear-gradient(130deg,#eaf3fc,#f7faff);border:1px solid #c1d7e8;border-left:6px solid #ee7e33;border-radius:14px;padding:26px;position:relative;overflow:hidden;min-height:250px}
.doc-tile:nth-child(2){border-left-color:#226fb1}
.doc-number{display:inline-block;color:#c05318;font-weight:900;font-size:12px;letter-spacing:.12em}
.doc-tile h3,.responsible-empty h3{color:#163b60;font-size:25px;line-height:1.2;margin:19px 0 10px}
.doc-tile p,.responsible-empty p{color:#506c81;line-height:1.65;font-size:16px;margin:0 0 23px}
.doc-mark{position:absolute;right:18px;top:12px;color:#e87b2b33;font-size:90px;font-weight:950;line-height:1}
.doc-status{display:inline-block;border-radius:8px;padding:11px 15px;background:#ddebf7;border:1px solid #b9d1e6;color:#1d4e79;font-size:13px;font-weight:900}
.document-warning{font-size:14px;color:#587087;border-top:1px solid #d4e1ee;margin:25px 0 0;padding-top:18px;line-height:1.65}
.responsible-empty{display:flex;align-items:center;gap:30px;background:linear-gradient(110deg,#eaf3fa,#f4f8fd);border:1px solid #bfd5e8;border-radius:17px;padding:33px}
.responsible-icon{width:94px;height:94px;flex:none;display:grid;place-items:center;border-radius:100%;font-size:65px;font-weight:900;color:#f47a2b;background:#ffead9;border:3px solid #ffc193}
.responsible-empty h3{margin:7px 0 12px}
.responsible-empty p{margin:0;max-width:610px}
@media(max-width:700px){
  .wrap{width:calc(100% - 28px)}
  .masthead{background-image:linear-gradient(90deg,#08182df2 0%,#0c2447bb 59%,#152d4c55 100%),linear-gradient(0deg,#132d48,transparent 45%),url('/hero_navojoa_balon.webp')}
  .category-panel{margin-top:-30px;padding:19px 15px}
  .category-card{padding:15px 10px;gap:10px}
  .category-card.selected{background:linear-gradient(120deg,#f38632,#cf5116)}
  .league-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:22px 0 12px}
  .league-link{font-size:11px;min-height:105px;padding:15px 6px;gap:7px}
  .league-link .link-arrow{font-size:13px;right:5px;top:5px}
  .section-topline h2{color:#163a5d}
  .stat{background:#fff;min-height:133px}
  .tab{font-size:12px}
  .content-head{padding:0 7px}
  .view-panel{padding:15px}
  .match{background:linear-gradient(135deg,#fff,#f0f6fc)}
  .round-title strong{font-size:19px}
  .match-names{font-size:18px}
  .match-date strong{font-size:18px}
  .subhead{min-height:326px;background-position:64% center}
  .subhero{padding:27px 0 46px}
  .subhero h1{font-size:clamp(32px,9vw,44px)}
  .subhero p:not(.eyebrow){font-size:16px}
  .back-link{margin-bottom:27px}
  .sub-controls{gap:12px;padding:18px 15px}
  .sub-category-current{width:100%;margin-left:0}
  .sub-links .league-link{min-height:97px}
  .sub-content-card{padding:18px 15px}
  .doc-grid{grid-template-columns:1fr;gap:12px}
  .doc-tile{padding:22px;min-height:215px}
  .responsible-empty{display:block;padding:23px}
  .responsible-icon{width:65px;height:65px;font-size:44px;margin-bottom:15px}
  .roster-panel{background:#fff}
}
@media(max-width:370px){
  .league-link{font-size:10px;padding:11px 3px}
  .category-text strong{font-size:16px}
  .sub-category-buttons button{padding:9px 12px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.league-link{transition:none}.league-link:hover{transform:none}}
/* Explicitly contrast the logo against the dark hero. */
.masthead .brand,.subhead .brand,.masthead .brand strong,.subhead .brand strong{color:#ffffff}
.masthead .brand span:last-child,.subhead .brand span:last-child{color:#d7e8fa}
