/* place.css - "Where I'm at" on the course pages and the "Find my level" screens (assets/learn/place.js). Loaded after
   learn.css and course.css; colours come from the role tokens, so light and dark follow the theme. No boxes inside the
   hero card: the line and the form sit on the card itself, under a rule. No pills, no gradients. */

/* ---- the course page: the line under the course button, and the form */
.plc{margin:16px 0 0;font-size:15.5px;color:var(--ink-2);min-width:0;max-width:100%}
.plc,.plc *,.plc *::before,.plc *::after{box-sizing:border-box}
.plc-note{flex:1 0 100%;margin:-2px 0 0;line-height:1.5}
/* the sticky site header never covers what the picker scrolls to */
.cp-filters,#plHere,.plc-form,.plc-form select,li.cp-u{scroll-margin-top:96px}
@media (max-width:760px){.cp-hero.crs{grid-template-columns:minmax(0,1fr)}.cp-hero-b{min-width:0}}
.plc-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin:0}
.plc-at b{color:var(--ink)}
.cp-hero.crs:has(.plc-form){align-items:start}
.plc .plc-btn{background:none;border:0;padding:6px 0;margin:0;font:700 15.5px/1.3 var(--f-body);color:var(--study-ink);cursor:pointer;
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center;
  white-space:normal;text-align:left;max-width:100%}   /* a text link: it may wrap (the action-bar buttons stay on one line) */
.plc .plc-btn:hover{text-decoration-thickness:2px}
.plc-btn:focus-visible,.plc-save:focus-visible,.plc-f select:focus-visible,.plc-seg input:focus-visible + span{outline:3px solid var(--study-ink);outline-offset:2px}
.plc-share{flex:1 0 100%;margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;font-size:14.5px}
.plc .plc-share .plc-btn{font-size:14.5px}
.plc-ok{color:var(--ink-2)}
.plc-url{width:min(100%,420px);min-height:40px;padding:6px 10px;border-radius:10px;border:2px solid var(--rule-2);background:var(--surface);color:var(--ink);font:500 14px/1.2 var(--f-body)}
.plc-offer{margin:0 0 4px;line-height:1.5}
.plc-offer b{color:var(--ink)}
.plc-line .plc-save{min-height:44px}
.plc-catch{margin:6px 0 0;line-height:1.5}
.plc-catch a{color:var(--study-ink);font-weight:700}
.plc-form{margin:22px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:12px 18px;align-items:flex-end}
.plc-h{flex:1 0 100%;margin:0;font:600 20px/1.25 var(--f-display);color:var(--ink)}
.plc-sub{flex:1 0 100%;margin:-4px 0 2px;max-width:60ch;line-height:1.5}
.plc-f{display:flex;flex-direction:column;gap:6px;min-width:0;max-width:100%}
.plc-f > span{font-size:14px;font-weight:700;color:var(--ink-3)}
.plc-f select{min-height:46px;max-width:100%;padding:8px 36px 8px 12px;border-radius:12px;border:2px solid var(--rule-2);background:var(--surface);color:var(--ink);
  font:600 16px/1.2 var(--f-body);appearance:none;-webkit-appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23748297' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 10px center;background-size:18px}
.plc-f select[aria-invalid="true"]{border-color:var(--ln-wrong,#d9534f)}
.plc-unit{flex:1 1 320px}
.plc-unit select{width:100%}
.plc-err{flex:1 0 100%;margin:-4px 0 0;color:var(--ink);font-weight:700}
.plc-acts{flex:1 0 100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
.plc-save{min-height:48px;padding:0 20px;border:0;border-radius:14px;background:var(--study);color:#04161c;font:700 16px/1.2 var(--f-body);cursor:pointer;
  box-shadow:0 4px 0 var(--ln-lip,#08707a);transition:transform .09s cubic-bezier(.34,1.56,.64,1),box-shadow .09s}
.plc-save:active{transform:translateY(4px);box-shadow:0 0 0 var(--ln-lip,#08707a);transition-duration:0s}

/* the path: already covered (open, a quiet dashed ring, not gold) and the unit the learner is up to */
.plc-tag{color:var(--ink-2);font-weight:700;font-size:13.5px}
.ln-lessons.is-path li.is-covered .n{background:var(--surface);color:var(--ink-2);box-shadow:0 0 0 2px var(--rule-2) inset,0 5px 0 var(--rule-2);
  outline:2px dashed var(--rule-2);outline-offset:3px}
.ln-lessons.is-path li.is-upto .plc-tag{color:var(--study-ink)}
@media (max-width:760px){.plc-line{gap:0 16px}.plc-form{gap:12px}.plc-f{width:100%}.plc-f select{width:100%}.plc-save{flex:1 0 100%}}

/* ---- Find my level: intro options (radio groups that look like the course page's segmented control) */
.pl-intro .ln-noodle{margin:0 0 6px}
.pl-fine{color:var(--ink-3);font-size:15px;line-height:1.55;margin:8px 0 0;max-width:62ch}
.pl-opts{margin:22px 0 0;display:grid;gap:14px}
.pl-optsh{margin:0;font:600 18px/1.3 var(--f-display);color:var(--ink)}
.plc-seg{border:0;margin:0;padding:0;min-width:0}
.plc-seg legend{font-size:14px;font-weight:700;color:var(--ink-3);padding:0;margin:0 0 6px}
.plc-seg label{position:relative;display:block}
.plc-seg input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}

/* the question screen: where the question comes from */
.pl-from{margin:0 0 6px;color:var(--ink-3);font-size:14.5px}
.pl-from b{color:var(--ink-2)}

/* the result */
.pl-result .ln-lead{text-align:left}
.pl-result h2{margin:26px 0 8px;font-size:20px}
.pl-pick{margin:16px 0 0;max-width:520px}
.pl-pick select{width:100%}
.pl-str{list-style:none;margin:0;padding:0;display:grid;gap:2px}
/* rows apart by a faint tint on every other one, no rule lines (light and dark: the ink at a few per cent) */
.pl-str li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 12px;border-radius:10px}
.pl-str li:nth-child(odd){background:color-mix(in srgb,var(--ink) 4.5%,transparent)}
.pl-str .t{font-weight:600;color:var(--ink);min-width:0}
.pl-str .w{flex:none;min-width:98px;display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:14.5px;color:var(--ink-2)}
.pl-ic{flex:none;width:20px;height:20px;overflow:visible}
.pl-ic .r{fill:none;stroke:currentColor;stroke-width:2.2}
.pl-ic .f{fill:currentColor;stroke:currentColor;stroke-width:2.2;stroke-linejoin:round}
.pl-ic .k{fill:none;stroke:var(--surface);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pl-ic-s{color:var(--study-ink)}
.pl-ic-p{color:var(--gold-ink)}
.pl-ic-n{color:var(--ink-3)}
.pl-catch{margin:8px 0 0;padding:0 0 0 20px}
.pl-catch li{margin:4px 0}
.pl-catch a{color:var(--study-ink);font-weight:700}
@media (prefers-reduced-motion:reduce){.plc-save{transition:none}.plc-save:active{transform:none}}

/* Find my level's action bar: labels stay on one line; on narrow screens the buttons stack full width, main one on top */
.lp-place .lp-btn{white-space:nowrap}
@media (max-width:520px){.lp-place .lp-actions{flex-direction:column-reverse;align-items:stretch}.lp-place .lp-btn{flex:0 0 auto;width:100%;min-height:50px}}

/* the course page's board, tier and route choices, and Find my level's: a plain button group (no track, no pill):
   bordered buttons that wrap as whole buttons, the chosen one filled with the course tint */
.cp .cs-lvnav,.plc-seg > div{display:flex;flex-wrap:wrap;gap:6px;padding:0;background:none;border-radius:0;width:auto;max-width:100%;overflow:visible}
.cp .cs-lvnav button,.plc-seg span{flex:0 0 auto;min-height:44px;padding:9px 14px;border-radius:10px;border:2px solid var(--rule-2);background:var(--surface);color:var(--ink-2);
  font:700 15px/1.2 var(--f-body);white-space:nowrap;box-shadow:none}
.cp .cs-lvnav button[aria-pressed="true"],.plc-seg input:checked + span{border-color:var(--ci,var(--study-ink));background:var(--ct,var(--study-tint));color:var(--ink);box-shadow:none}
.plc-seg span{display:flex;align-items:center;justify-content:center}
@media (max-width:600px){.cp .cs-lvnav button,.plc-seg label{flex:1 0 auto}.cp .cs-lvnav button{padding:9px 12px}.plc-seg > div{display:flex}}
