/* DESIGN20: drafts peak column, explore peaks, team name fit, profile compass + slim bio, column picker, no letter-per-line names */

/* ---------- names never break one letter per line.
   overflow-wrap:anywhere lets a box shrink to one character wide, so names and clubs end up stacked letter by letter. */
.p12-surname, .p12-given, .p12-card dd, .t12-name, .rv-table td, .rv-table td a, .rv-person a, .d04-surname, .d04-masthead .career-head h1,
.league-card h2, .gtr-club, .gtr-comp, .roster-row b, .rail-fact b, .geo-stop span, #grbnu-league-flow .gf-map-team > span:last-child,
.roster-colheader, .team-page-head h1, #pt-table td, .rv-heading h1, .utility-hero h1, .player-cell b, .player-cell small, .v4e-table td, .v4e-table td a {
  overflow-wrap: normal !important; word-break: normal !important;
}
.v4e-table td.v4e-nm, .v4e-table td.v4e-nm a { white-space: nowrap; }

/* ---------- drafts */
.draft-mode { display: inline-flex; gap: 0; margin: 4px 0 10px; border: 1px solid var(--line2, #8a6a44); border-radius: 6px; overflow: hidden; }
.draft-mode button { border: 0; background: #e2ba85; color: #2a1a0e; padding: 9px 14px; font: 600 14px/1 var(--sans, 'Archivo', sans-serif); cursor: pointer; }
.draft-mode button + button { border-left: 1px solid var(--line2, #8a6a44); }
.draft-mode button.active { background: #2a1a0e; color: #f5e6cc; }
.draft-note { font-size: 14px; max-width: 900px; margin: 4px 0 14px; }
.draft-table .directory-row { grid-template-columns: 34px minmax(200px, 2fr) 80px 70px 70px 84px 74px 180px; font-size: 13px; min-height: 46px; }
.draft-table .directory-row .num-cell { font-size: 13px; text-align: right; }
.draft-table .directory-row .rank-num { font-size: 12px; }
.draft-table .directory-row .player-cell b { font-size: 14px; }
.draft-table .directory-row .player-cell small { font-size: 12px; display: block; }
.draft-table .draft-head { font-weight: 700; font-size: 12px; min-height: 30px; border-bottom: 2px solid #2a1a0e; }
.draft-table .draft-head:hover { background: none; }
.draft-table .draft-head .num-cell { text-align: right; }
.draft-table .draft-peak { font-weight: 700; }
.draft-table .draft-peak-s { text-align: right; font-size: 12px; color: #5a3e22; }
@media (max-width: 760px) {
  .draft-table .directory-row { grid-template-columns: 24px minmax(0, 1fr) 62px 52px; gap: 8px; font-size: 12px; }
  .draft-table .directory-row .team-col, .draft-table .draft-peak-s, .draft-table .directory-row .num-cell.o, .draft-table .directory-row .num-cell.d,
  .draft-table .draft-head .num-cell:nth-child(4), .draft-table .draft-head .num-cell:nth-child(5) { display: none; }
  .draft-mode button { padding: 8px 10px; font-size: 13px; }
}

/* ---------- explore peaks */
.v4e-peaks td small { display: block; font-size: 11px; opacity: .8; }
.v4e-cap { background: rgba(42, 26, 14, .07); border-left: 3px solid #8b1e3f; padding: 8px 12px; }

/* ---------- team page: long club names never run into the scoreboard */
.t12-nameplate { min-width: 0; }
.t12-nameplate > div { min-width: 0; flex: 1 1 auto; }
.t12-name { overflow-wrap: normal; word-break: normal; max-width: 100%; }
.t12-name.is-fit { white-space: normal; }
.p12-hero-in > div:first-child { min-width: 0; }

/* ---------- profile hero: ID strip + style compass replace the long bio card */
.p14-hero-in { grid-template-areas: "name body side" "id body side" "compass body side" !important; grid-template-rows: auto auto 1fr; }
.p20-id { grid-area: id; display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 0; }
.p20-id span { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 10px 5px; border: 1px solid rgba(248, 240, 224, .42);
  border-radius: 2px; color: var(--cream, #f8f0e0); font: 600 14px/1 'Archivo', Arial, sans-serif; background: rgba(0, 0, 0, .16); white-space: nowrap; }
.p20-id i { font-style: normal; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.p20-compass { grid-area: compass; color: var(--cream, #f8f0e0); max-width: 520px; }
.p20-compass-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid rgba(248, 240, 224, .55); padding-bottom: 6px; margin-bottom: 8px; }
.p20-compass-head h2 { margin: 0; color: var(--cream, #f8f0e0) !important; font: 900 21px/1 'Anybody', 'Archivo', sans-serif; font-stretch: 150%; text-transform: lowercase; letter-spacing: .01em; }
.p20-compass-head p { margin: 0; font-size: 12px; opacity: .8; }
.p20-compass svg { display: block; width: 100%; height: auto; overflow: visible; }
.p20-compass .q { stroke: none; }
.p20-compass .q1 { fill: rgba(120, 190, 255, .10); }
.p20-compass .q2 { fill: rgba(255, 214, 120, .12); }
.p20-compass .q3 { fill: rgba(160, 255, 200, .08); }
.p20-compass .q4 { fill: rgba(255, 140, 120, .10); }
.p20-compass .frame { fill: none; stroke: rgba(248, 240, 224, .7); stroke-width: 1.5; }
.p20-compass .axis { stroke: rgba(248, 240, 224, .55); stroke-width: 1; stroke-dasharray: 3 4; }
.p20-compass .ax-t { fill: var(--cream, #f8f0e0); font: 800 11px 'Archivo', sans-serif; letter-spacing: .16em; text-transform: uppercase; text-anchor: middle; }
.p20-compass .ax-s { font: 800 10px 'Archivo', sans-serif; letter-spacing: .14em; text-transform: uppercase; text-anchor: middle; dominant-baseline: middle; }
.p20-compass .tick { stroke: rgba(248, 240, 224, .8); stroke-width: 1.5; }
.p20-compass .ax-s .o, .p20-legend .o b { fill: #8ccfff; color: #8ccfff; }
.p20-compass .ax-s .d, .p20-legend .d b { fill: #ff8f7a; color: #ff8f7a; }
.p20-compass .p20-trail { fill: none; stroke-width: 1.6; stroke-linejoin: round; opacity: .55; }
.p20-compass .p20-trail.o { stroke: #8ccfff; } .p20-compass .p20-trail.d { stroke: #ff8f7a; }
.p20-compass .p20-past.o { fill: #8ccfff; opacity: .7; } .p20-compass .p20-past.d { fill: #ff8f7a; opacity: .7; }
.p20-compass .p20-dot circle { stroke: #1b120b; stroke-width: 2.5; }
.p20-compass .p20-dot.o circle { fill: #8ccfff; } .p20-compass .p20-dot.d circle { fill: #ff8f7a; }
.p20-compass .p20-dot text { font: 900 12px 'Archivo', sans-serif; fill: #1b120b; text-anchor: middle; }
.p20-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font-size: 14px; }
.p20-legend span { display: inline-flex; align-items: center; gap: 7px; }
.p20-legend b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; background: currentColor; }
.p20-legend .o b { background: #8ccfff; color: #1b120b; } .p20-legend .d b { background: #ff8f7a; color: #1b120b; }
.p20-peak { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid rgba(248, 240, 224, .2); font-size: 13px; }
.p20-peak span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.p20-peak b { font: 800 20px/1 'Archivo', sans-serif; color: #ffb547; letter-spacing: .02em; }
.p20-peak small { opacity: .8; }
.p12-name .p12-surname { white-space: normal; }
@media (max-width: 1180px) {
  .p14-hero-in { grid-template-areas: "name name" "id id" "body side" "compass compass" !important; grid-template-rows: auto; }
  .p20-compass { max-width: 560px; }
}
@media (max-width: 760px) {
  .p20-id span { font-size: 13px; padding: 5px 8px 4px; }
  .p20-compass { max-width: none; }
  .p20-compass .ax-s { font-size: 12px; }
  .p20-compass .ax-t { font-size: 12px; }
}
.p20-compass-head h2 { white-space: nowrap; } @media (max-width: 760px) { .p20-compass-head h2 { font-size: 18px; } }

/* ---------- leaderboards: column picker */
.rv-tools { align-items: center !important; }
#rv-columns { position: relative; }
#rv-columns > summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 12px; background: #2a1a0e;
  color: #f8f0e0 !important; border-radius: 6px; font: 800 16px/1 'Archivo', Arial, sans-serif !important; cursor: pointer; box-shadow: 0 3px 0 #7e1a3b; user-select: none; }
#rv-columns > summary::-webkit-details-marker { display: none; }
#rv-columns > summary:hover { background: #3a2616; }
#rv-columns > summary:focus-visible { outline: 3px solid #ffb547; outline-offset: 2px; }
.cp-plus { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ffb547; color: #2a1a0e; font-size: 21px; font-weight: 900; transition: transform .15s; }
#rv-columns[open] .cp-plus { transform: rotate(45deg); }
.cp-count { font-weight: 600; font-size: 12px; opacity: .85; padding-left: 10px; border-left: 1px solid rgba(248, 240, 224, .35); }
.cp-panel { position: absolute; z-index: 40; top: calc(100% + 10px); left: 0; width: min(820px, calc(100vw - 32px)); background: #f8f0e0; color: #2a1a0e;
  border: 2px solid #2a1a0e; border-radius: 8px; padding: 14px 16px 12px; box-shadow: 0 22px 50px rgba(42, 26, 14, .35); }
.cp-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(42, 26, 14, .2); }
.cp-bar b { font: 900 18px/1 'Anybody', 'Archivo', sans-serif; font-stretch: 130%; }
.cp-bar span { font-size: 13px; color: #5a3e26; }
.cp-panel #rv-column-options { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)) !important; gap: 4px 12px !important; padding: 10px 0 !important; max-width: none !important; max-height: 52vh; overflow: auto; }
.cp-panel #rv-column-options label { padding: 6px 6px; border-radius: 4px; font-size: 14px !important; cursor: pointer; }
.cp-panel #rv-column-options label:hover { background: rgba(126, 26, 59, .08); }
.cp-panel #rv-column-options input { width: 17px; height: 17px; accent-color: #7e1a3b; }
.cp-foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(42, 26, 14, .2); }
.cp-foot button { min-height: 40px !important; padding: 0 18px !important; border-radius: 6px !important; font: 700 14px 'Archivo', sans-serif; cursor: pointer; border: 1px solid #2a1a0e !important; background: transparent !important; }
.cp-foot .cp-done { background: #7e1a3b !important; color: #fff; border-color: #7e1a3b !important; }
@media (max-width: 760px) {
  #rv-columns > summary { font-size: 15px !important; }
  .cp-panel { position: fixed; left: 12px; right: 12px; top: 12vh; width: auto; }
  .cp-panel #rv-column-options { grid-template-columns: 1fr 1fr !important; }
}
.p20-compass .p20-none { fill: rgba(248, 240, 224, .75); font: 700 14px 'Archivo', sans-serif; text-anchor: middle; letter-spacing: .04em; }
.p20-compass.is-empty svg { opacity: .8; }

/* DESIGN21: independently selectable pre-calibration series. */
.p12-line.l-base{stroke:#7a5a3a;stroke-width:2.4;stroke-dasharray:2 5}
.p12-line.l-base.is-proj{stroke-dasharray:7 5;opacity:.75}
.p12-pt.p20-pt-base{fill:#7a5a3a;stroke:#f8f0e0;stroke-width:1.5}
.p12-tog-base span{color:#7a5a3a}.p20-base{display:flex;align-items:baseline;gap:8px;margin-top:6px;font-size:13px;color:#f8f0e0}
.p20-base span{font-size:11px;letter-spacing:.08em}.p20-base b{font-size:17px;color:#f8f0e0}.p20-base small{opacity:.8}
.p20-base-cell{color:#5a3e26}.p20-star{max-width:900px;line-height:1.6}

/* Keep both rating totals readable on narrow phones. */
@media(max-width:520px){
 .p14-hero-in{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"name" "id" "side" "body" "compass"!important}
 .p14-side,.p14-body,.p20-compass{width:100%;min-width:0}
 .p14-body{max-width:300px;justify-self:center}
 .p20-peak{flex-wrap:wrap}
 .p14-side .p12-led-big{font-size:58px}
}
