/* The high school Bidology: the college Bidology's stylesheet (style.css, copied from sites/bidology/assets) plus the few
   pieces this page adds. Tokens are style.css's. */
/* in a phone app's frame the sticky bars sit below the status bar (zero inset elsewhere) */
.topbar{top:env(safe-area-inset-top,0px)}
.deck{top:calc(56px + env(safe-area-inset-top,0px))}
.tag.sec{box-shadow:inset 0 0 0 1px var(--line);color:var(--muted);font-weight:500}
.rcard .inl{margin:8px 4px 2px;font-size:12px;color:var(--muted)}
.dstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 0}
.dstats div{padding:10px 12px;border-radius:12px;background:var(--bg2)}
.dstats b{display:block;font:600 20px/1.1 var(--font-num);color:var(--ink)}
.dstats span{font-size:12px;color:var(--muted)}
.seven small.g{color:var(--muted)}
.howv{max-width:80ch;padding-top:12px;color:var(--ink-body)}
.howv h2{margin:26px 0 8px;font:700 24px/1.2 var(--font-display);letter-spacing:-.02em;color:var(--ink)}
.howv h2:first-child{margin-top:6px}
.howv h3{margin:20px 0 6px;font:650 16px/1.3 var(--font-display);color:var(--ink)}
.howv p{margin:0 0 12px}
.howv blockquote{margin:8px 0 14px;padding:8px 14px;border-left:3px solid var(--line);color:var(--muted);font-size:14px}
.howv .tw{margin:6px 0 14px}
.howv table.grid th{position:static}
.howv tr.tot td{font-weight:600;color:var(--ink);border-top:1px solid var(--line)}
.cafoot{margin:56px 0 0;padding-top:16px;border-top:1px solid var(--hair);font-size:12px;color:var(--muted);max-width:110ch}
/* on a phone the deck is four rows, a third of the screen: it stays where it is instead of following the reader */
@media (max-width:640px){.dstats b{font-size:17px}.deck{position:static}}
.rcard .cnote{margin:-4px 4px 10px;font-size:12px;line-height:1.45;color:var(--muted)}
.mk.spr{background-repeat:no-repeat}
/* the state picker, first control on the deck: college's pill select (web-app pill-select, as the rankings page's state
   box), its chevron 12px inside the edge on a box the select's own size; the label is for screen readers */
.vh{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.statepick{display:flex;align-items:center;max-width:100%}
.statebox{position:relative;display:inline-flex;max-width:100%}
.statebox::after{content:"";position:absolute;right:12px;top:50%;width:16px;height:16px;margin-top:-8px;background:var(--muted);-webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none}
.statepick select{-webkit-appearance:none;appearance:none;height:36px;margin:0;padding:0 34px 0 14px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--ink);font:600 14px/1 var(--font-ui);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;max-width:100%;-webkit-tap-highlight-color:transparent}
@media (hover:hover) and (pointer:fine){.statepick select:hover{background:var(--bg2)}}
.statepick select option{background:var(--bg);color:var(--ink)}
@media (forced-colors:active){.statebox::after{forced-color-adjust:none;background:CanvasText}}
/* How it works: numbered citations and their quotes */
.howv .lead{font-size:17px;color:var(--ink)}
.howv .chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 16px}
.howv .chips span{padding:4px 10px;border-radius:999px;background:var(--bg2);font:600 13px/1.2 var(--font-ui);color:var(--ink)}
.howv .chips i{font-style:normal;color:var(--faint);align-self:center}
.howv .step{margin:0 0 16px}
.howv .step .when{margin:-2px 0 6px;font-size:13px;color:var(--muted)}
.howv sup a{font:600 11px/1 var(--font-num);text-decoration:none;color:var(--muted);padding:0 1px}
.howv sup a:hover{color:var(--ink)}
.howv ol.srcs{padding-left:22px}
.howv ol.srcs li{margin:0 0 10px;scroll-margin-top:120px}
.howv ol.srcs li:target{background:var(--bg2);border-radius:8px}
.howv ol.srcs .loc{color:var(--muted);font-size:13px}
.howv details{margin:4px 0 0}
.howv details summary{cursor:pointer;font-size:13px;color:var(--muted)}
.howv details blockquote{margin:6px 0 0;white-space:pre-wrap}
.howv .note{font-size:13px;color:var(--muted)}
.empty-state{max-width:70ch;padding:24px 0;color:var(--ink-body)}
.empty-state h2{font:700 22px/1.2 var(--font-display);color:var(--ink);margin:0 0 8px}
.rcard .done{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:var(--bg2);font:600 11px/1.3 var(--font-ui);color:var(--muted)}
.rr.qd .nm::after{content:"Qualified";margin-left:6px;font:600 10px/1 var(--font-ui);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.pathlist{display:grid;gap:6px;margin:8px 0 0}
.pathlist div{display:flex;justify-content:space-between;gap:12px;padding:8px 12px;border-radius:10px;background:var(--bg2);font-size:13px}
.pathlist b{font:600 14px/1.2 var(--font-num);color:var(--ink)}
/* ---- the simulators (2026-10-30): Simulate is the college Simulate tab, State Meet the Meet Simulator; their pieces
   are style.css's and meetsim.css's. These are the few this page adds. */
.page.ms{padding-top:0}
#view-meet .ms-simgrid{margin-top:8px}
/* the meet in step 1, drawn as college's course box (meetsim.css .ms-course), without its button behavior */
.msmeet{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:10px 0 8px;padding:7px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.msmeet b{font:600 14px/1.25 var(--font-ui);color:var(--ink)}
.msmeet span{font-size:12px;color:var(--muted)}
#view-meet .seg-sm{margin:4px 0 6px;flex-wrap:wrap}
#view-meet .ms-team summary{grid-template-columns:26px minmax(0,1fr) 14px}
#view-meet .ms-team summary .mk{width:26px;height:26px}
.rescols.one{grid-template-columns:minmax(0,1fr)}
.rescols.one>div+div{margin-top:28px}
.svfin{margin:8px 0 0;padding:0;list-style:none;border-top:1px solid var(--hair)}
.svfin li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:2px 8px;align-items:baseline;padding:4px 2px;border-bottom:1px solid var(--hair);font-size:13px}
.svfin li .pl{font:500 12px var(--font-num);color:var(--muted);text-align:right}
.svfin li small{grid-column:2;font-size:11px;color:var(--muted)}
.svfin li .mono{grid-row:1;grid-column:3}
.rosrow.off .nm{color:var(--muted)}
/* a spot held by a runner no page names (middle school): it races, without a name or time */
.ms-unl .nm{color:var(--muted)}
.rosrow{display:grid;grid-template-columns:minmax(0,1fr) 54px auto;gap:8px;align-items:center}
.lockbox{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 4px}
.finalv{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:28px;align-items:start;margin:8px 0 28px}
.finalv .nat{position:static}
.finalv .rrs.fin .rr{grid-template-columns:28px 26px minmax(0,1fr) 64px}
.finalnote{margin:6px 0 16px;color:var(--ink-body)}
.archnote{margin:10px 0 0;font-size:14px;color:var(--muted)}
.archnote b{color:var(--ink-body)}
.ms-lockplace select{max-width:100%}
#qlkWhat{max-width:260px}
@media (max-width:860px){.finalv{grid-template-columns:1fr}}
@media (max-width:640px){#qlkWhat{max-width:100%}.lockbox span{flex-basis:100%}}
/* a round with a long name (New York's county and division gate) must not push the countdown past the page */
.hero .countdown{flex:0 1 auto;max-width:540px}
.countdown .lab{overflow-wrap:anywhere}

/* Chart legends: a gap between the name and its percentage. */
.conv .ckey>span{display:inline-flex;align-items:center;gap:6px;min-width:0}
.conv .ckey i{flex:none;margin-right:0}
.conv .ckey .ckn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:22ch}
.conv .ckey b{flex:none}

/* One page, two products (states.js MODE): the Meet Simulator shows no week strip, week picker or Archive note. */
.scope{max-width:64ch;margin:6px 0 0;font-size:14px;line-height:1.45;color:var(--muted)}
.vnav-menu [hidden]{display:none!important}
body[data-mode="meet"] #strip,body[data-mode="meet"] #segWk,body[data-mode="meet"] #archNote{display:none}
/* runners a list doesn't name (middle school athletes): a count, never a row */
.unlisted{margin:6px 0 0;font-size:13px;color:var(--muted)}
.svfin .nl,.ms-finish .nl{color:var(--muted);font-style:italic}
/* the page name stays on one line beside the Feedback button on a phone ("HS Rankings", "State Bidology", "Meet
   Simulator" are two words; college's "Bidology" is one): the view's name ends in an ellipsis instead, as college's does */
.topbar-prod .prod-name{white-space:nowrap}

/* The Meet Simulator in college's form (sites/meetsim): its masthead (meetsim.css .ms-head, 28px under the top bar as
   college's page pads it: the three-bar glyph and the
   name, the explain line under it), no countdown, and no deck: the championship, class and boys or girls are chosen in
   step 1 "The meet" as college's fields (states.js msFields; the deck shows only while they are parked there, between
   draws of the view). The topbar reads "Fitness through", as college's. */
body[data-mode="meet"] .page>.ms-head{padding:28px 0 18px}
body[data-mode="meet"] #deck:not(:has(.statepick)){display:none}
body[data-mode="meet"] #countdown,body[data-mode="meet"] #lede,body[data-mode="meet"] #scopeNote{display:none}
body[data-mode="meet"] #deck .search{display:none}
#view-meet .ms-fields{margin:2px 0 12px}
#view-meet .ms-field .statepick,#view-meet .ms-field .statebox,#view-meet .ms-field .statebox select{width:100%}
#view-meet .ms-field .statebox select{height:40px;padding:0 34px 0 12px;border-radius:10px;font:600 14px/1.25 var(--font-ui)}
#view-meet .ms-field>.seg{max-width:100%;overflow-x:auto}
