/* COLORS: change a value here (like --ball) and every place that uses it updates */
:root{--court:#1d5f9e;--navy:#081d3c;--surround:#2f7d57;--ball:#d6ea3c;--ink:#10243a;--paper:#f4f8fb;--mute:#3b5068;--radius:10px}
/* BASICS: rules that apply to the whole page */
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--paper);line-height:1.55}
a{color:inherit}:focus-visible{outline:3px solid var(--ball);outline-offset:2px}
/* .wrap keeps content centered and not too wide. Any element with class="wrap" gets this */
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
/* HEADER: the navy bar and menu at the top */
header{background:var(--navy);color:#fff;border-bottom:6px solid var(--surround)}
header .wrap{display:flex;align-items:center;justify-content:space-between;padding-top:14px;padding-bottom:14px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;font-size:1.35rem;letter-spacing:-.02em}
.brand img{height:56px;width:auto;display:block}
.brand .ball{width:22px;height:22px;border-radius:50%;background:var(--ball);box-shadow:inset -5px -3px 0 rgba(0,0,0,.15)}
nav a{margin-left:20px;text-decoration:none;font-weight:600;opacity:.9}
nav a:hover,nav a[aria-current]{opacity:1;text-decoration:underline;text-decoration-color:var(--ball);text-underline-offset:6px}
/* TEXT SIZES AND SPACING for sections and headings (h1, h2) */
section{padding:48px 0}
h1{font-size:clamp(2rem,5vw,3rem);letter-spacing:-.03em;line-height:1.05;margin:0 0 10px}
h2{font-size:clamp(1.5rem,4vw,2rem);letter-spacing:-.025em;margin:0 0 6px}
.lead{margin:0 0 28px;max-width:36em;color:var(--mute)}
/* BUTTONS: anything with class="btn" */
.btn{display:inline-block;border:0;cursor:pointer;font:inherit;font-weight:800;padding:13px 26px;border-radius:999px;text-decoration:none;background:var(--ball);color:var(--navy);transition:transform .15s}
.btn:hover{transform:translateY(-2px)}
/* home: top story + trending */
.top{display:grid;grid-template-columns:1.6fr 1fr;gap:28px}
.story{background:var(--court);color:#fff;border-radius:var(--radius);padding:32px;min-height:300px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden}
.story:before{content:"";position:absolute;right:-70px;top:-70px;width:240px;height:240px;border-radius:50%;background:var(--ball);opacity:.9;box-shadow:inset -22px -14px 0 rgba(0,0,0,.12)}
.story h2{position:relative;font-size:clamp(1.6rem,4vw,2.3rem)}
.story p{position:relative;margin:0;max-width:28em;opacity:.95}
.trend h3,.cols h3{margin:0 0 10px;font-size:1.1rem;border-bottom:3px solid var(--court);padding-bottom:6px}
ul.list{list-style:none;padding:0;margin:0}
ul.list li{padding:10px 0;border-bottom:1px solid #dbe5ee}
ul.list a{text-decoration:none;font-weight:600}ul.list a:hover{text-decoration:underline}
ul.list small{display:block;color:var(--mute);font-weight:400}
/* COLUMNS: grid puts the sports lists side by side and stacks them on small screens */
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:30px}
.note{font-size:.9rem;color:var(--mute);margin-top:18px}
.band{background:var(--surround);color:#fff;text-align:center;padding:44px 0}
.band p{margin:0 auto 14px;max-width:34em}
.band.alt{background:var(--court)}
.band a:not(.btn){font-weight:800}
/* request page */
.white{background:#fff;border-top:1px solid #dbe5ee;border-bottom:1px solid #dbe5ee}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:28px;list-style:none;padding:0;margin:0}
.steps li{border-top:4px solid var(--court);padding-top:14px}.steps b{display:block;margin-bottom:4px}.steps span{color:var(--mute)}
.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:720px}.full{grid-column:1/-1}
label{display:block;font-weight:700;font-size:.95rem;margin-bottom:4px}
input,select,textarea{width:100%;font:inherit;padding:11px 12px;border:1.5px solid #b9c9d8;border-radius:var(--radius);background:#fff;color:var(--ink)}
textarea{min-height:90px;resize:vertical}
.formgrid .btn{background:var(--court);color:#fff}
#status{margin-top:14px;font-weight:600;color:var(--surround);min-height:1.5em}
/* TABLES: used on the Standings page. .tablewrap lets a wide table scroll sideways on phones instead of breaking the layout */
.tablewrap{overflow-x:auto;margin-bottom:36px;background:#fff;border:1px solid #dbe5ee;border-radius:var(--radius)}
table{border-collapse:collapse;width:100%;min-width:320px}
caption{text-align:left;font-weight:800;padding:14px 16px 6px;font-size:1.05rem}
th{background:var(--court);color:#fff;text-align:left;padding:10px 16px;font-size:.9rem}
td{padding:10px 16px;border-top:1px solid #e3ebf2}
tr:nth-child(even) td{background:#f4f8fb}
.two{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media(max-width:700px){.two{grid-template-columns:1fr}}
/* GEAR PAGE: product cards in a grid. Each .item is one product */
.items{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-bottom:36px}
.item{background:#fff;border:1px solid #dbe5ee;border-radius:var(--radius);padding:16px;display:flex;flex-direction:column}
.item .pic{aspect-ratio:4/3;background:#e6eef5;border-radius:8px;margin-bottom:12px;display:grid;place-items:center;color:var(--mute);font-size:.9rem}
.item h3{margin:0 0 4px;font-size:1.05rem}
.item p{margin:0 0 14px;color:var(--mute);font-size:.95rem;flex:1}
.item .btn{background:var(--court);color:#fff;text-align:center;padding:10px 18px}
.disclosure{background:#fff;border-left:5px solid var(--ball);padding:12px 16px;border-radius:6px;margin:0 0 32px;max-width:44em;font-size:.95rem}
/* APP COMING SOON BOX: the dark box above the footer with the iOS and Android labels */
.appsoon{background:var(--navy);color:#fff;text-align:center;padding:40px 0}
.appsoon h2{margin-bottom:6px}
.appsoon p{margin:0 auto 18px;max-width:34em;opacity:.9}
.pills{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.pill{border:2px solid var(--ball);color:var(--ball);border-radius:999px;padding:8px 22px;font-weight:800}
footer{padding:26px 0;color:#52667b;font-size:.9rem}
/* PHONE LAYOUT: these rules only apply on screens 700px wide or smaller */
@media(max-width:700px){.top,.formgrid{grid-template-columns:1fr}nav a{margin-left:14px;font-size:.95rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* TEAM PAGE: small detail lines inside cards */
.item .meta{margin:0 0 4px;color:var(--mute);font-size:.95rem}
/* PHONE MENU: lets the menu links wrap onto a second line instead of running off the screen */
@media(max-width:700px){header .wrap{flex-direction:column;align-items:flex-start;gap:8px}nav{display:flex;flex-wrap:wrap}nav a{margin:0 14px 4px 0}}

/* FRONT PAGE: the tennis-colored Find a Partner box at the top center */
.top-box{padding:32px 0 8px}
.findbox{background:var(--court);color:#fff;text-align:center;max-width:640px;margin:0 auto;padding:28px 24px;border:4px solid #fff;border-radius:14px;box-shadow:0 0 0 6px var(--surround)}
.findbox h2{margin:0 0 6px}.findbox p{margin:0 0 16px}
/* SECTION HEADERS with a "See more" link on the right */
.sechead{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.sechead h2{margin:0}
a.more{font-weight:800;color:var(--court);text-decoration:none}a.more:hover{text-decoration:underline}
.headline{background:#fff;border-left:6px solid var(--ball);border-radius:var(--radius);padding:22px 24px}
.headline h3{margin:0 0 6px;font-size:1.4rem}.headline p{margin:0;color:var(--mute)}
.sub{margin:18px 0 10px;font-size:1.05rem}
/* SCORE CARDS: .scores is the grid, .score is one game */
.scores{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-bottom:28px}
.score{background:#fff;border:1px solid #dbe5ee;border-radius:var(--radius);padding:14px 16px}
.white .score{background:var(--paper)}
.scorehead{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:.85rem;color:var(--mute)}
.badge{font-weight:800;font-size:.75rem;padding:2px 8px;border-radius:999px;background:#dbe5ee;color:var(--ink)}
.badge.live{background:#d33;color:#fff}.badge.final{background:var(--navy);color:#fff}
.side{display:flex;justify-content:space-between;padding:3px 0}


/* STANDINGS DROPDOWN */
.leaguepick{max-width:420px;margin-bottom:24px}
[hidden]{display:none!important}

/* LANGUAGE BUTTON in the header */
.langbtn{background:transparent;color:#fff;border:2px solid var(--ball);border-radius:999px;padding:6px 14px;font:inherit;font-weight:800;cursor:pointer}
.langbtn:hover{background:var(--ball);color:var(--navy)}

/* JOIN FORM: checkbox groups, hidden spam trap, and the small link under the front page box */
fieldset{border:0;padding:0;margin:0}
legend{font-weight:700;font-size:.95rem;margin-bottom:6px;padding:0}
.checks{display:flex;flex-wrap:wrap;gap:8px 18px}
label.check{display:flex;gap:8px;align-items:flex-start;font-weight:600;margin-bottom:8px}
label.check input{width:auto;margin-top:4px}
.hp{position:absolute;left:-9999px}
.findbox .small{margin:14px 0 0}.findbox .small a{color:#fff;font-weight:700}

/* LANGUAGE MENU in the header (replaces the old EN/ES button) */
.langsel{width:auto;background:var(--navy);color:#fff;border:2px solid var(--ball);border-radius:999px;padding:6px 12px;font-weight:800;cursor:pointer}

/* language menu sits inside the nav, right after Home */
nav .langsel{margin-left:20px}
@media(max-width:700px){nav .langsel{margin:0 14px 4px 0}}

/* PROFILE PICTURE PREVIEW on the join form */
.avatar{width:120px;height:120px;border-radius:50%;object-fit:cover;margin-top:10px;border:3px solid var(--court);display:block}

/* NEWS LINKS inside the big story blocks */
.story a{color:#fff;text-decoration:none}.story a:hover{text-decoration:underline}
.headline a{color:var(--ink);text-decoration:none}.headline a:hover{text-decoration:underline}

/* SCORE CARDS: extra bits for the live data */
.score small{display:block;color:var(--mute);margin-top:6px}
.badge.soon{background:var(--ball);color:var(--navy)}
.scores .note{grid-column:1/-1;margin:0}

/* RANKINGS: up and down arrows next to the rank */
.move{font-size:.75rem}.move.up{color:var(--surround)}.move.down{color:#c33}

/* HEADER MENU: keeps each menu word on one line and wraps the whole menu neatly when translated words are longer */
header .wrap{flex-wrap:wrap;gap:10px 24px}
nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 14px;flex:1 1 420px}
nav a{margin:0;white-space:nowrap;font-size:.95rem}
nav .langsel{margin:0}
@media(max-width:700px){
  header .wrap{flex-direction:column;align-items:flex-start;gap:8px}
  nav{justify-content:flex-start;gap:6px 16px;flex:none}
}

/* LOGIN link in the menu (top right) and the members-only bar */
nav a.loginlink{background:var(--ball);color:var(--navy);padding:6px 16px;border-radius:999px;font-weight:800;opacity:1}
nav a.loginlink:hover{text-decoration:none;transform:translateY(-1px)}
.memberbar{background:var(--surround);color:#fff;font-weight:800;font-size:.85rem;padding:6px 0;letter-spacing:.04em;text-transform:uppercase}
.offer{background:#fff;border-left:5px solid var(--ball);padding:12px 16px;border-radius:6px;max-width:44em}

/* HOME PAGE BACKGROUND: only the front page has <body class="home">, so no other page changes.
   The image is fixed behind everything, with a dark tint on top so the text stays easy to read.
   To make the picture brighter, lower the .55 numbers. To make text even easier to read, raise them. */
body.home{background:var(--navy)}
body.home::before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(rgba(8,29,60,.55),rgba(8,29,60,.55)),url(background.jpg) center/cover no-repeat}
/* TEXT COLORS on the home page: light text wherever it sits straight on the picture */
body.home section:not(.white) h2,body.home section:not(.white) .note{color:#fff}
body.home a.more{color:var(--ball)}
body.home .note{color:#e6eef7}
body.home .headline .note{color:var(--mute)}
/* the Scores strip becomes a dark see-through panel; the score cards inside stay light */
body.home .white{background:rgba(8,29,60,.78);border-color:rgba(255,255,255,.15)}
body.home .white h2,body.home .white .sub{color:#fff}
body.home footer{color:#d5e0ec;background:rgba(8,29,60,.78)}
body.home .findbox,body.home .headline,body.home .item{box-shadow:0 8px 24px rgba(0,0,0,.35)}
body.home .findbox{box-shadow:0 0 0 6px var(--surround),0 8px 24px rgba(0,0,0,.35)}

/* MEMBERSHIP: tier list in the join offer box, and the Terms page */
.tiers{margin:8px 0;padding-left:20px}.tiers li{margin-bottom:6px}.offer p{margin:8px 0 0}
.terms{max-width:44em}.terms h2{margin-top:28px;font-size:1.3rem}

/* PROFILE PAGE: sticky progress circle, pop-up bubble, section cards, interest chips */
.pbar{position:sticky;top:0;z-index:5;background:var(--paper);border-bottom:1px solid #dbe5ee;padding:10px 0;color:var(--court)}
.pbar .wrap{display:flex;align-items:center;gap:16px}
.ring{width:72px;height:72px;flex:none}.ring circle{fill:none;stroke-width:7}.ring .bg{stroke:#dbe5ee}
.ring .fg{stroke:var(--court);stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%;transition:stroke-dashoffset .4s}
.bubble{position:relative;background:var(--navy);color:#fff;border-radius:14px;padding:10px 36px 10px 14px;max-width:340px;font-size:.92rem;animation:pop .5s ease-out}
.bubble:before{content:"";position:absolute;left:-8px;top:26px;border:8px solid transparent;border-left:0;border-right-color:var(--navy)}
.bubble b{display:block}.bubble a{color:var(--ball);font-weight:700}
.bubble .x{position:absolute;right:6px;top:2px;background:none;border:0;color:#fff;font-size:1.4rem;line-height:1;cursor:pointer}
@keyframes pop{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.05)}100%{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.bubble{animation:none}}
.pcard{background:#fff;border:1px solid #dbe5ee;border-radius:var(--radius);padding:20px;margin-bottom:20px;max-width:720px;scroll-margin-top:100px}
.pcard h2{font-size:1.25rem}.pcard fieldset{margin-top:14px}.count{font-size:.85rem;color:var(--mute);text-align:right}
.chips label.check{position:relative;border:1.5px solid #b9c9d8;border-radius:999px;padding:6px 14px;margin:0;cursor:pointer;background:#fff}
.chips label.check input{position:absolute;opacity:0}
.chips label.check:has(input:checked){background:var(--court);border-color:var(--court);color:#fff}
.chips label.check:has(input:focus-visible){outline:3px solid var(--ball);outline-offset:2px}
fieldset[id]{scroll-margin-top:100px}

/* PROFILE HEADER (Facebook style): banner behind, round picture on the left */
.sr{position:absolute;opacity:0;width:1px;height:1px}
.cover{max-width:960px;margin:0 0 24px;background:#fff;border:1px solid #dbe5ee;border-radius:var(--radius);overflow:hidden;scroll-margin-top:100px}
.banner{position:relative;height:clamp(120px,28vw,240px);background:linear-gradient(135deg,var(--court),var(--navy)) center/cover}
.bannerbtn{position:absolute;right:12px;bottom:12px;margin:0;background:rgba(8,29,60,.78);color:#fff;border-radius:999px;padding:6px 14px;font-size:.85rem;font-weight:700;cursor:pointer}
.idrow{display:flex;align-items:flex-end;gap:16px;padding:0 20px 18px}
.idrow h1{margin:10px 0 0;font-size:clamp(1.5rem,4vw,2rem)}.idrow .meta{margin:0;color:var(--mute)}
.avatarwrap{position:relative;display:block;flex:none;margin:-56px 0 0;cursor:pointer}
.avatar.big{width:112px;height:112px;margin:0;border:4px solid #fff;background:#e6eef5}
.avatar.ph{display:grid;place-items:center;border-radius:50%;font-size:2.2rem;color:var(--mute)}
.bannerbtn:has(input:focus-visible),.avatarwrap:has(input:focus-visible){outline:3px solid var(--ball);outline-offset:2px}

/* FOOTER LINKS: Terms of Use and Privacy Policy next to the copyright */
.flinks{margin-left:12px}.flinks a{margin-left:14px;text-decoration:none}.flinks a:hover{text-decoration:underline}
