/* oversight: "How much checking does this piece of work need?" Four sliders drive a gold dial. */

.sec.oversight { padding: clamp(48px, 3.4vw, 52px) 0 clamp(48px, 3.4vw, 50px); overflow: clip; }
.oversight__bg { position: absolute; right: -14%; top: 50%; width: min(1100px, 86vh, 90vw); aspect-ratio: 1; transform: translateY(-40%); pointer-events: none; }
.oversight__bg::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' fill='none' stroke-width='1.5'%3E%3Cg stroke='%23E2B062' stroke-opacity='.09' stroke-dasharray='2 10'%3E%3Ccircle cx='500' cy='500' r='480'/%3E%3Ccircle cx='500' cy='500' r='320'/%3E%3C/g%3E%3Cg stroke='%233B7FE0' stroke-opacity='.16' stroke-dasharray='1 16'%3E%3Ccircle cx='500' cy='500' r='400'/%3E%3Ccircle cx='500' cy='500' r='240'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.oversight .wrap { position: relative; }

.oversight__title { margin-bottom: 18px; }
.oversight__lede { font-size: clamp(1.02rem, 1.1vw, 1.12rem); line-height: 1.6; color: var(--white); opacity: .9; }
.oversight__quote { margin: clamp(18px, 2.6vh, 28px) 0 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--gold); }
.oversight__quote p { font-family: var(--f-display); font-style: italic; font-size: clamp(1.05rem, 1.2vw, 1.2rem); line-height: 1.45; color: var(--gold); }

.oversight__tool {
  margin-top: clamp(22px, 3vh, 32px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 80px); align-items: start;
}

/* sliders */
.oversight__controls { display: grid; gap: clamp(8px, 1.4vh, 13px); }
.oversight__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.oversight__label { font-weight: 600; font-size: 1.04rem; color: var(--white); }
.oversight__value { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.06rem; color: var(--gold); text-align: right; white-space: nowrap; }
.oversight__range { position: relative; height: 44px; }
.oversight__range::after {
  /* five stops */
  content: ''; position: absolute; left: 13px; right: 13px; top: 31px; height: 4px; pointer-events: none;
  background:
    radial-gradient(circle, rgba(180, 191, 210, .55) 1.6px, transparent 2px) 0 0 / 4px 4px no-repeat,
    radial-gradient(circle, rgba(180, 191, 210, .55) 1.6px, transparent 2px) 25% 0 / 4px 4px no-repeat,
    radial-gradient(circle, rgba(180, 191, 210, .55) 1.6px, transparent 2px) 50% 0 / 4px 4px no-repeat,
    radial-gradient(circle, rgba(180, 191, 210, .55) 1.6px, transparent 2px) 75% 0 / 4px 4px no-repeat,
    radial-gradient(circle, rgba(180, 191, 210, .55) 1.6px, transparent 2px) 100% 0 / 4px 4px no-repeat;
}
.oversight__range::before {
  /* a glint runs along the filled part of the track */
  content: ''; position: absolute; left: 0; top: 20px; height: 4px; z-index: 1; pointer-events: none;
  width: calc((100% - 28px) * var(--pn, 0) + 14px);
  background: linear-gradient(90deg, transparent, rgba(255, 238, 205, .95), transparent) no-repeat;
  background-size: 70px 100%; background-position: -70px 0; opacity: .9;
}
.js .oversight__range::before { animation: oversight-glint 3.6s var(--ease-out) infinite; }
.oversight__field:nth-child(2) .oversight__range::before { animation-delay: .5s; }
.oversight__field:nth-child(3) .oversight__range::before { animation-delay: 1s; }
.oversight__field:nth-child(4) .oversight__range::before { animation-delay: 1.5s; }
@keyframes oversight-glint { 0% { background-position: -70px 0; } 55%, 100% { background-position: calc(100% + 70px) 0; } }
.reduced .oversight__range::before, .is-off .oversight__range::before { animation: none; }
.oversight__input {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 40px; margin: 0; padding: 0;
  background: transparent; cursor: pointer; border-radius: 0; height: 44px;
}
.oversight__input:focus { outline: none; }
.oversight__input:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.oversight__input::-webkit-slider-runnable-track {
  height: 4px; border: 0;
  background: linear-gradient(90deg, var(--gold) 0, var(--gold) var(--p), rgba(180, 191, 210, .22) var(--p));
}
.oversight__input::-moz-range-track { height: 4px; border: 0; background: rgba(180, 191, 210, .22); }
.oversight__input::-moz-range-progress { height: 4px; background: var(--gold); }
.oversight__input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -12px; border: 0; background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 1 27 14 14 27 1 14Z' fill='%230D1830' stroke='%23E2B062' stroke-width='2'/%3E%3Cpath d='M14 8 20 14 14 20 8 14Z' fill='%23E2B062'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease-out);
}
.oversight__input::-moz-range-thumb {
  width: 28px; height: 28px; border: 0; border-radius: 0; background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 1 27 14 14 27 1 14Z' fill='%230D1830' stroke='%23E2B062' stroke-width='2'/%3E%3Cpath d='M14 8 20 14 14 20 8 14Z' fill='%23E2B062'/%3E%3C/svg%3E");
}
.oversight__input:hover::-webkit-slider-thumb, .oversight__input:active::-webkit-slider-thumb { transform: scale(1.18); }
.oversight__ends { display: flex; justify-content: space-between; gap: 16px; margin-top: -9px; font-size: .9rem; color: var(--mist); }

.oversight__presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.oversight__presets-label { font-size: .95rem; color: var(--mist); margin-right: 4px; }
.oversight__preset {
  min-height: 44px; padding: 0 12px; border: 1px solid rgba(226, 176, 98, .4); border-radius: var(--r-btn);
  background: transparent; color: var(--white); font-weight: 500; font-size: .9rem; cursor: pointer;
  transition: background-color .35s, color .35s, border-color .35s;
}
.oversight__preset:hover, .oversight__preset:focus-visible { border-color: var(--gold); background: rgba(226, 176, 98, .12); }
.oversight__preset.is-on { background: var(--gold); color: var(--night); border-color: var(--gold); }

/* result */
.oversight__result {
  position: relative; padding: clamp(22px, 2.4vw, 34px) clamp(22px, 2.6vw, 38px) clamp(22px, 2.4vw, 30px);
  background: linear-gradient(180deg, rgba(6, 11, 24, .62), rgba(6, 11, 24, .35));
  border: 1px solid rgba(226, 176, 98, .24); isolation: isolate;
}
.oversight__result::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--lo, 0); transition: opacity .6s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(226, 176, 98, .12), transparent 70%);
}
.oversight__dial { position: relative; width: min(100%, 360px); margin: 0 auto; }
.oversight__svg { width: 100%; height: auto; overflow: visible; }
.oversight__ticks line { stroke: rgba(180, 191, 210, .35); stroke-width: 2; transition: stroke .5s; }
.oversight__ticks line.is-major { stroke-width: 3; }
.oversight__ticks line.is-lit { stroke: var(--gold); }
.oversight__track { fill: none; stroke: rgba(180, 191, 210, .08); stroke-width: 16; }
.oversight__band { fill: none; stroke-width: 16; opacity: .32; transition: opacity .6s, filter .6s; }
.oversight__band--1 { stroke: #3B7FE0; }
.oversight__band--2 { stroke: #7D9AC9; }
.oversight__band--3 { stroke: #C9A367; }
.oversight__band--4 { stroke: #E2B062; }
.oversight__band.is-on { opacity: 1; filter: drop-shadow(0 0 8px rgba(226, 176, 98, .55)); }
.oversight__scan { fill: none; stroke: #FFF1D6; stroke-width: 16; stroke-dasharray: 0 100; opacity: .55; mix-blend-mode: screen; }
.oversight__inner { fill: none; stroke: var(--gold); stroke-opacity: .3; stroke-width: 1.5; stroke-dasharray: 2 7; }
.oversight__needle-tip { fill: #FFE7BC; filter: drop-shadow(0 0 6px rgba(255, 220, 160, .9)); }
.oversight__hub { fill: var(--navy); stroke: var(--gold); stroke-width: 2; }
.oversight__hub-mark { fill: var(--gold); }
.oversight__ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 20px; }
.oversight__rung { position: relative; padding-top: 10px; font-size: .9rem; line-height: 1.3; color: var(--mist); }
.oversight__rung::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(180, 191, 210, .2); }
.oversight__rung::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); box-shadow: 0 0 10px rgba(226, 176, 98, .6); }
.oversight__rung.is-on { color: var(--white); }
.oversight__rung.is-on::after { transform: scaleX(1); }

.oversight__verdicts { display: grid; margin-top: 16px; }
.oversight__verdict { grid-area: 1 / 1; position: relative; }
.oversight__verdict.is-on { z-index: 1; }
.oversight__verdict-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 1.65vw, 1.6rem); line-height: 1.2; color: var(--white); }
.oversight__verdict-text { margin-top: 8px; font-size: 1.02rem; line-height: 1.55; color: var(--white); opacity: .88; }
.oversight__chapters { margin-top: 2px; display: grid; gap: 0; }
.oversight__chapters a {
  display: inline-block; padding: 11px 0; min-height: 44px; line-height: 1.45; text-decoration: none; color: var(--mist); font-size: .95rem;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out), color .3s;
}
.oversight__chapters a:hover, .oversight__chapters a:focus-visible { color: var(--white); background-size: 100% 1px; }
.oversight__chapters b { color: var(--gold); font-weight: 600; margin-right: 4px; }
.oversight__chapters span { font-variant-numeric: tabular-nums; color: var(--gold); margin-left: 4px; white-space: nowrap; }

/* without JS every level is listed */
.no-js .oversight__verdict[hidden] { display: block; margin-top: 20px; }
.no-js .oversight__verdicts { display: block; }

.js .oversight__verdict { visibility: hidden; }
.js .oversight__verdict.is-on { visibility: visible; }
.oc-fallback .oversight__verdict.is-on, .reduced .oversight__verdict.is-on { visibility: visible; }

@media (prefers-reduced-motion: no-preference) {
  .oversight__bg::before { animation: oversight-turn 160s linear infinite; }
}
@keyframes oversight-turn { to { transform: rotate(360deg); } }
.is-off .oversight__bg::before { animation-play-state: paused; }

@media (max-width: 900px) {
  .oversight__tool { grid-template-columns: minmax(0, 1fr); }
  .oversight__bg { right: -50%; top: 70%; width: min(160vw, 86vh); }
}
@media (max-width: 480px) {
  .oversight__ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .oversight__label { font-size: 1rem; }
  .oversight__value { font-size: .98rem; }
  .oversight__row { flex-wrap: wrap; gap: 2px 12px; }
  .oversight__result { padding: 20px 18px; }
}
