/* Polariscope. One bench on the always-black stage, laid out as the Dichroscope: the two pickers in one panel on
   top, in the left column over the stone; the eyepiece (the one bold element, the larger) on the right from the
   top, with the turn, the polarizers, the conoscope and the red plate under it; each drawing's control right under
   it, then its caption. Below 900px one column: pickers, eyepiece, stone. The field and the stone in it are the
   color-critical zone: only neutral black or the open field's white next to them. The table and the disclaimer
   under the bench follow the theme. */

.wrap.page-hero.pl-hero{padding-top:28px;padding-bottom:22px}

/* ---------- the bench ---------- */
.pl-bench{padding:6px 0 26px;color-scheme:dark}
.pl :focus-visible{outline:2px solid currentColor;outline-offset:2px}
.pl-bench :focus-visible{outline:2px solid #fff;outline-offset:2px;box-shadow:0 0 0 5px #000}
.pl-grid{--rest:350px;--e:min(calc((100% - 24px) * .6),max(330px,calc(100vh - var(--rest))));
  --e:min(calc((100% - 24px) * .6),max(330px,calc(100svh - var(--rest))));--s:max(300px,calc(var(--e) * .66));
  display:grid;gap:14px 24px;justify-content:center;align-items:start;grid-template-columns:var(--s) var(--e);
  grid-template-rows:auto 1fr auto;grid-template-areas:"pick eye" "stone eye" "foot foot"}
.pl-grid>*{min-width:0}
.pl-pick{grid-area:pick}
.pl-view-eye{grid-area:eye}
.pl-view-stone{grid-area:stone}
.pl-foot{grid-area:foot}

/* ---------- the pickers ---------- */
.pl-pick{border-radius:var(--r-panel);padding:12px 16px 13px;display:grid;grid-template-columns:1fr 1fr;gap:6px 16px;margin:0}
.pl-pick>*{position:relative}
.pl-sel{display:flex;flex-direction:column;gap:6px;min-width:0}
.pl-sel label{font-size:.875rem;font-weight:560;color:#fff}
.pl-sel select{font:inherit;font-size:.9375rem;color:#fff;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.42);
  border-radius:var(--r-chip);padding:9px 12px;min-height:44px;width:100%;cursor:pointer}
.pl-sel select option,.pl-sel select optgroup{color:#000;background:#fff}
.pl-pick .pl-hint{grid-column:1/-1}
.pl-hint{font-size:.8125rem;line-height:1.35;color:rgba(255,255,255,.8);margin:0}

/* ---------- the drawings ---------- */
.pl-view{margin:0;min-width:0}
.pl-stage{position:relative;aspect-ratio:1;width:100%;background:#000;border:1px solid rgba(255,255,255,.14);border-radius:var(--r-panel);overflow:hidden}
.pl-svg{position:absolute;inset:0;width:100%;height:100%;display:block;font-family:inherit}
.pl-stage-stone{aspect-ratio:400/322;cursor:grab;touch-action:pan-y}
.pl-layer{transform-origin:50% 50%;will-change:transform}
.pl-figure{position:absolute;left:8%;top:8%;width:84%;height:84%;border-radius:50%;image-rendering:auto}
.pl-strain{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:screen}
.pl-strain.pl-strain-open{mix-blend-mode:multiply}
.pl-under-cono{opacity:0}
.pl-ring-hit{position:absolute;inset:0;border-radius:50%;clip-path:circle(49% at 50% 50%);touch-action:none;cursor:grab}
.pl-dragging,.pl-stage-stone.pl-dragging{cursor:grabbing}

/* ---------- the controls under the drawings ---------- */
.pl-ctl{margin:10px 2px 0;min-width:0}
.pl-ctl-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.pl-ctl label{font-size:.875rem;font-weight:560;color:#fff}
.pl-ctl output{font-size:.9375rem;font-weight:600;color:#fff;min-width:3.2em;text-align:right}
.pl-ctl .pl-hint{margin-top:2px}
.pl-ctl input[type=range]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:44px;margin:0;
  background:transparent;cursor:pointer;touch-action:pan-y}
.pl-ctl input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:rgba(255,255,255,.22)}
.pl-turn input[type=range]::-webkit-slider-runnable-track{
  background:linear-gradient(90deg,transparent calc(25% - 1px),rgba(255,255,255,.6) calc(25% - 1px) calc(25% + 1px),transparent calc(25% + 1px) calc(50% - 1px),rgba(255,255,255,.6) calc(50% - 1px) calc(50% + 1px),transparent calc(50% + 1px) calc(75% - 1px),rgba(255,255,255,.6) calc(75% - 1px) calc(75% + 1px),transparent calc(75% + 1px)),rgba(255,255,255,.22)}
.pl-ctl input[type=range]::-moz-range-track{height:6px;border-radius:3px;background:rgba(255,255,255,.22)}
.pl-ctl input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:24px;height:24px;margin-top:-9px;
  border-radius:50%;background:#fff;border:0;box-shadow:0 0 0 4px rgba(0,0,0,.6)}
.pl-ctl input[type=range]::-moz-range-thumb{width:24px;height:24px;border-radius:50%;background:#fff;border:0;box-shadow:0 0 0 4px rgba(0,0,0,.6)}
.pl-ctl input[type=range]:focus-visible{outline:none}
.pl-ctl input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px #000,0 0 0 5px #fff}
.pl-ctl input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 3px #000,0 0 0 5px #fff}
.pl-opts{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 22px;margin:8px 2px 0}
.pl-opt{display:flex;align-items:center;gap:10px;min-width:0}
.pl-opt-l{font-size:.875rem;font-weight:560;color:#fff}
.pl-seg{margin-left:0;background:#111;border-color:rgba(255,255,255,.14)}
.pl-seg button{min-height:36px;padding:7px 13px}
.pl-seg .thumb{opacity:0}
.pl-seg.ready .thumb{opacity:1}
.pl-seg:not(.ready) button[aria-pressed="true"]{background:#fff;color:#000}   /* until the thumb is placed */
.pl-chk{flex-wrap:wrap;gap:0 10px;flex:1 1 220px}
.pl-chk label{display:inline-flex;align-items:center;gap:9px;font-size:.875rem;font-weight:560;color:#fff;cursor:pointer;min-height:44px}
.pl-chk input{width:20px;height:20px;margin:0;accent-color:#fff;cursor:pointer}
.pl-chk label:has(input:disabled){color:#8C8C8C;cursor:not-allowed}
.pl-chk input:disabled{cursor:not-allowed}
.pl-chk .pl-hint{flex-basis:100%;margin-top:-6px}

/* ---------- captions ---------- */
.pl-cap{margin:12px 4px 0}
.pl-cap-row{display:flex;justify-content:space-between;align-items:baseline;gap:2px 12px;flex-wrap:wrap;font-size:.875rem;color:#A3A3A3}
.pl-cap-row b{color:#fff;font-weight:600}
#pl-read{text-align:right}
.pl-now{margin:6px 0 0;font-size:.8125rem;color:#E6E6E6}
.pl-under{margin:8px 0 0;font-size:.8125rem;line-height:1.45;color:#C9C9C9}
.pl-under+.pl-under{color:#A3A3A3}
.pl-under a{color:#fff}
.pl-gamut{margin:6px 0 0;font-size:.75rem;line-height:1.4;color:#A3A3A3}
.pl-foot{display:flex;flex-direction:column;align-items:center;gap:8px}
.pl-acts{position:relative;display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center}
.pl-sm{padding:9px 16px;min-height:44px;font-size:.875rem}
.pl-status{font-size:.8125rem;color:#C9C9C9;margin:0;overflow-wrap:anywhere}
.pl-status:empty{position:absolute}
.pl-noscript{color:#fff;font-size:.875rem;margin:0;text-align:center}

/* ---------- inside the drawings (SVG) ---------- */
.pl-svg text{font-family:inherit}
.pl-bg{fill:#000}
.pl-fieldc{fill:#020202;stroke:rgba(255,255,255,.12);stroke-width:1}
.pl-fieldc.pl-open{fill:#fff;stroke:none}
.pl-bezel{fill:#141414;stroke:rgba(255,255,255,.2);stroke-width:1}
.pl-tick{fill:none;stroke:#8C8C8C;stroke-width:1.4;stroke-linecap:round}
.pl-ring-n{fill:#BDBDBD;font-size:11px;font-weight:600;text-anchor:middle;dominant-baseline:central}
.pl-ring-0{fill:#fff}
.pl-fe{fill:none;stroke:rgba(255,255,255,.32);stroke-width:.8;stroke-linejoin:round}
.pl-on-light .pl-fe{stroke:rgba(0,0,0,.35)}
.pl-vib{fill:none;stroke:rgba(255,255,255,.5);stroke-width:1;stroke-dasharray:5 5}
.pl-on-light .pl-vib{stroke:rgba(0,0,0,.45)}
.pl-mark{fill:none;stroke:#E6E6E6;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.pl-mark-t{fill:#E6E6E6;font-size:15px;font-weight:650;dominant-baseline:central}
.pl-end{text-anchor:end}
.pl-fe2{fill:none;stroke:rgba(255,255,255,.3);stroke-width:.7;stroke-linejoin:round}
.pl-out{fill:none;stroke:rgba(255,255,255,.75);stroke-width:1.1;stroke-linejoin:round}
.pl-axis{fill:none;stroke:rgba(255,255,255,.75);stroke-width:1.4;stroke-dasharray:6 5}
.pl-arc{fill:none;stroke:#fff;stroke-width:1.3}
.pl-ang{fill:#fff;font-size:17px;font-weight:650;text-anchor:middle;dominant-baseline:central;paint-order:stroke;stroke:#000;stroke-width:4px;stroke-linejoin:round}
.pl-pol{fill:rgba(190,225,255,.12);stroke:rgba(215,236,255,.65);stroke-width:1.2}
.pl-plate{fill:rgba(255,255,255,.08);stroke:rgba(255,255,255,.7);stroke-width:1.2;stroke-dasharray:3 2}
.pl-sphere{fill:rgba(190,225,255,.14);stroke:rgba(215,236,255,.7);stroke-width:1.2}
.pl-white2{fill:#fff;opacity:.6}
.pl-vm{fill:none;stroke:#fff;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.pl-vd{fill:#fff}
.pl-bulb{fill:#5E5E5E}
.pl-glass{fill:rgba(255,255,255,.12);stroke:#fff;stroke-width:1.4}
.pl-fil{fill:none;stroke:#fff;stroke-width:1.6}
.pl-lab{fill:#DADADA;font-size:16.5px;dominant-baseline:central;paint-order:stroke;stroke:#000;stroke-width:4px;stroke-linejoin:round}
.pl-lab.pl-small{font-size:15px;fill:#C9C9C9}
.pl-mid{text-anchor:middle}

/* ---------- below the bench: follows the theme ---------- */
.pl-after{padding-top:30px;padding-bottom:72px}
.pl-after h2{font-size:1.25rem;line-height:1.25;font-weight:600;letter-spacing:-.01em;margin:0 0 4px}
.pl-tw{max-width:1100px}
.pl-tw table{min-width:0}
.pl-tw th[scope=row]{font-weight:600;background:none;white-space:nowrap}
.pl-tw tr:last-child th{border-bottom:0}
.pl-tw tr.pl-on th,.pl-tw tr.pl-on td{background:var(--surface)}
.pl-shown{font-weight:400;color:var(--muted)}
.pl-under-t{font-size:.8125rem;line-height:1.45;color:var(--muted);max-width:80ch;margin-top:10px}
.pl-disclaimer{font-size:.8125rem;line-height:1.45;color:var(--muted);max-width:80ch}

/* ---------- breakpoints ---------- */
@media (min-width:900px) and (max-width:1099.98px){
  .pl-grid{--rest:380px}
}
@media (max-width:899.98px){
  .pl-grid{grid-template-columns:min(100%,max(280px,calc(100vh - 150px)));
    grid-template-columns:min(100%,max(280px,calc(100svh - 150px)));
    grid-template-areas:"pick" "eye" "stone" "foot";gap:16px}
  .pl-view{margin-bottom:8px}
}
@media (max-width:519.98px){
  .pl-pick{grid-template-columns:1fr;padding:12px 14px 13px}
  .pl-stage{border-radius:var(--r-inner)}
  .pl-cap{margin:10px 2px 0}
  .pl-cap-row{flex-direction:column;gap:0;font-size:.8125rem}
  #pl-read{text-align:left}
  .pl-tw th,.pl-tw td{padding:10px 10px;hyphens:auto;overflow-wrap:anywhere}
  .pl-tw th[scope=row]{white-space:normal}
}
@media (prefers-reduced-motion:reduce){
  .pl *,.pl *::before,.pl *::after{transition-duration:0s!important;animation-duration:0s!important}
}
@media (forced-colors:active){
  .pl-stage{forced-color-adjust:none;background:#000;border-color:CanvasText}
  .pl-pick{border:1px solid CanvasText}
  .pl-sm{border:1px solid ButtonText}
  .pl-ctl input[type=range]{forced-color-adjust:auto;appearance:auto;-webkit-appearance:auto}
}
