/* Fraunces + Inter (SIL OFL 1.1, licences in fonts/), served from this site: one variable file each */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600 700;font-display:swap;src:url(fonts/fraunces-latin.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/inter-latin.woff2) format('woff2')}
/* League table base (C) for the C1–C4 variants: lighter photo header, Glass title shading,
   no per-row arrows, one application form with multi-select. */
:root{--font:'Inter',system-ui,sans-serif;--bg:#f6f3ec;--surface:#fffdf8;--ink:#1b1a17;--ink-2:#5f5a50;--line:#e5dfd2;--accent:#7a1f2b;--accent-ink:#7a1f2b;--rank-bg:transparent;--rank-ink:#1b1a17;--pick:#f3e7d6}
.banner{height:260px;background:linear-gradient(180deg,rgba(10,25,40,.05),rgba(10,25,40,.32)),url(bg1.jpg) center 38%/cover;display:flex;align-items:flex-end}
.container{max-width:1180px;margin:0 auto;padding:0 24px;width:100%}
.banner .container{padding-bottom:30px}
.kicker{color:#fff;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;margin:0 0 8px;text-shadow:0 1px 10px rgba(0,0,0,.5)}
h1{font-family:'Fraunces',Georgia,serif;font-weight:700;font-size:50px;line-height:1.02;margin:0;color:#fff;letter-spacing:-.01em;text-shadow:0 2px 18px rgba(0,0,0,.45)}
.bar{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:2px solid var(--ink)}
.bar input[type=search]{font:inherit;font-size:14px;border:1px solid var(--line);background:#fff;border-radius:6px;padding:9px 12px;width:min(320px,100%)}
.legend{font-size:12.5px;color:var(--ink-2)}
.rt thead th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);border-bottom:1px solid var(--ink)}
.rt td,.rt tbody th{padding:10px 8px}
.rk{font-family:'Fraunces',Georgia,serif;font-size:22px;font-weight:700;min-width:0;height:auto;padding:0}
.nm{font-size:15.5px}
.rt td.c-src:not(.c-world){font-weight:600}
.c-world{font-size:13px}
tbody.item:hover > tr:first-child{background:#fbf7ee}
tbody.item.picked > tr:first-child{background:var(--pick)}
tbody.medal-gold .rk{color:#b08d1e}tbody.medal-silver .rk{color:#7e878e}tbody.medal-bronze .rk{color:#a8622a}
footer{text-align:center;padding:30px 20px 60px;color:var(--ink-2);font-size:12.5px;line-height:1.75}
footer a{color:var(--accent-ink);font-weight:600}
.sources{margin:30px 0 0;padding:20px 0;border-top:2px solid var(--ink);font-size:13.5px;color:var(--ink-2);line-height:1.6}
.sources h2,.apply h2{font-family:'Fraunces',Georgia,serif;color:var(--ink);font-size:22px;margin:0 0 10px}
.sources ul{margin:0;padding-left:18px}

/* tick column */
.c-sel{width:44px}
.pick{display:inline-grid;place-items:center;cursor:pointer;position:relative}
.pick input{position:absolute;opacity:0;width:1px;height:1px}
.pick-box .pick-ui{width:22px;height:22px;border:2px solid #b9b0a0;border-radius:6px;background:#fff;display:grid;place-items:center;transition:all .12s}
.pick-box .pick-ui::after{content:"";width:6px;height:11px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg) translate(-1px,-1px);opacity:0}
.pick-box input:checked + .pick-ui{background:var(--accent);border-color:var(--accent)}
.pick-box input:checked + .pick-ui::after{opacity:1}
.pick input:focus-visible + .pick-ui{outline:2px solid var(--accent);outline-offset:2px}
.pick-pill .pick-ui{font-size:12.5px;font-weight:700;border:1px solid var(--accent);color:var(--accent-ink);background:#fff;border-radius:999px;padding:6px 12px;white-space:nowrap}
.pick-pill .pick-ui::before{content:"+ Add"}
.pick-pill input:checked + .pick-ui{background:var(--accent);color:#fff}
.pick-pill input:checked + .pick-ui::before{content:"✓ Added"}

/* chips + picker */
.chips{display:contents}
.chip{display:inline-flex;align-items:center;gap:4px;background:var(--pick);color:var(--ink);border-radius:999px;padding:4px 4px 4px 11px;font-size:13px;font-weight:600;white-space:nowrap}
.chip-x{border:0;background:rgba(0,0,0,.08);color:var(--ink);width:20px;height:20px;border-radius:50%;cursor:pointer;font-size:14px;line-height:1;display:grid;place-items:center}
.chip-x:hover{background:var(--accent);color:#fff}
.picker-field{display:grid;gap:5px}
.picker-label{font-size:13px;font-weight:600;color:var(--ink-2)}
.picker{position:relative;display:flex;flex-wrap:wrap;gap:6px;align-items:center;background:#fff;border:1px solid var(--line-2,#cfd8dc);border-radius:10px;padding:6px 8px;min-height:46px;cursor:text}
.picker:focus-within{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.picker input{border:0!important;outline:0!important;padding:5px 4px!important;flex:1;min-width:120px;width:auto!important;font-size:15px}
.suggest{position:absolute;left:-1px;right:-1px;top:calc(100% + 4px);z-index:20;list-style:none;margin:0;padding:6px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 14px 30px rgba(0,0,0,.14);max-height:280px;overflow:auto}
.suggest li{padding:8px 10px;border-radius:7px;cursor:pointer;font-size:14px}
.suggest li.on,.suggest li:hover{background:var(--pick)}
.suggest li.none{color:var(--ink-2);cursor:default;background:none}

@media (max-width:820px){h1{font-size:34px}.banner{height:200px}.container{padding:0 16px}
  .rk{font-size:24px}.rt tbody.item{border-radius:8px;background:var(--surface)}
  .rt td.c-sel{order:0;width:auto}
  .rt tbody.item > tr:first-child th.c-name{flex-basis:calc(100% - 110px)}
  .rt td.c-sel:has(.pick-pill){order:1;margin-left:auto}
  .rt tbody.item:has(.pick-pill) > tr:first-child th.c-name{flex-basis:calc(100% - 150px)}}

/* selection tray (C1, C4): on phones the chips go on their own line */
.tray .container{display:flex;align-items:center;gap:14px;padding-top:12px;padding-bottom:12px}
.tray .chips-row{flex:1;display:flex;flex-wrap:wrap;gap:6px;max-height:64px;overflow:auto}
.tray .n{font-weight:700;white-space:nowrap}
@media (max-width:820px){.tray .container{flex-wrap:wrap;gap:8px 12px}.tray .chips-row{order:3;flex-basis:100%;max-height:72px}.tray .cta{margin-left:auto;padding:11px 16px;white-space:normal;text-align:center}}
