/* ==========================================================================
   Compass bearing dial (interactives-2, Oct 11, 2026). Loads after compass.css
   on /services/compass/ only. Night register, tokens only.
   Hover or focus a category card, or use the select, and the needle swings to that
   category's bearing (rotate only, 450ms, brand ease-out). Reduced motion: it jumps.
   No JS: the dial is a still picture and the select stays hidden (space reserved, no CLS).
   ========================================================================== */
.cdl-layout{display:grid;grid-template-columns:minmax(240px, 320px) minmax(0, 1fr);gap:clamp(1.5rem, 3.5vw, 3rem);align-items:start}
.cdl-panel{position:sticky;top:calc(var(--header-h) + 24px);display:flex;flex-direction:column;gap:20px}
.cdl-layout .cmp-cat-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}

/* Dial drawing */
.cdl-dial{width:100%;max-width:320px;aspect-ratio:1}
.cdl-svg{display:block;width:100%;height:100%;overflow:visible}
.cdl-ticks{fill:none;stroke:color-mix(in srgb, var(--fog-grey) 55%, transparent);stroke-width:10;stroke-dasharray:1.2 8.573}
.cdl-ring{fill:none;stroke:color-mix(in srgb, var(--fog-grey) 28%, transparent)}
.cdl-ring--inner{stroke-dasharray:3 5}
.cdl-pt{fill:var(--fog-grey);font-family:var(--font-mono);font-size:14px;text-anchor:middle;dominant-baseline:central;transition:fill var(--dur-ui) ease-out}
.cdl-pt.is-on{fill:var(--compass)}
.cdl-needle{transform-box:view-box;transform-origin:160px 160px;transition:transform 450ms var(--ease-out)}
.cdl-needle__tip{fill:var(--compass)}
.cdl-needle__tail{fill:color-mix(in srgb, var(--compass) 30%, transparent)}
.cdl-hub{fill:var(--off-white);stroke:color-mix(in srgb, var(--compass) 30%, transparent);stroke-width:6}

/* Readout and native control */
.cdl-side{display:flex;flex-direction:column;gap:16px}
.cdl-readout{display:flex;flex-direction:column;gap:4px;min-height:4.25rem}
.cdl-readout__code{font-size:.8125rem;letter-spacing:.04em;color:var(--compass)}
.cdl-readout__name{font-size:1.375rem;font-weight:500;line-height:1.25;color:var(--text)}
.cdl-control{display:flex;flex-direction:column;align-items:flex-start;gap:10px;visibility:hidden}
.cdl-layout.is-ready .cdl-control{visibility:visible}
.cdl-label{font-size:.9375rem;color:var(--text-soft)}
.cdl-select{width:100%;min-height:44px;padding:8px 40px 8px 14px;border:1px solid var(--night-line-strong);border-radius:var(--radius-card-sm);
  background:var(--navy-mid);
  color:var(--text);font:400 1rem/1.3 var(--font-sans);appearance:none;cursor:pointer}
.cdl-select-wrap{display:block;position:relative;width:100%}
.cdl-select-wrap::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:1.6px solid var(--compass);border-bottom:1.6px solid var(--compass);transform:rotate(45deg);pointer-events:none}
.cdl-select:hover{border-color:color-mix(in srgb, var(--compass) 60%, transparent)}
.cdl-select:focus-visible{outline:2px solid var(--compass);outline-offset:3px}
.cdl-open{display:inline-block;padding-block:11px;line-height:22px}
.cdl-gate{display:inline-flex;align-items:center;gap:8px;font-size:.875rem;color:var(--text-soft)}

/* The card the needle points at */
.cmp-cat.is-bearing{border-color:color-mix(in srgb, var(--compass) 55%, transparent)}

@media (max-width: 1100px){
  .cdl-layout{grid-template-columns:minmax(0, 1fr)}
  .cdl-panel{position:static;flex-direction:row;align-items:center;gap:clamp(1.25rem, 4vw, 2.5rem)}
  .cdl-dial{flex:0 0 clamp(180px, 34vw, 260px)}
  .cdl-side{flex:1 1 auto;min-width:0}
}
@media (max-width: 560px){
  .cdl-panel{flex-direction:column;align-items:stretch}
  .cdl-dial{flex:none;width:min(240px, 80%);margin-inline:auto}
  .cdl-layout .cmp-cat-grid{grid-template-columns:minmax(0, 1fr)}
}
@media (prefers-reduced-motion: reduce){
  .cdl-needle, .cdl-pt{transition:none}
}
@media (forced-colors: active){
  .cdl-needle__tip{fill:Highlight}
}

/* --------------------------------------------------------------------------
   Oct 13, 2026 rework: the dial points at six questions. The left side is the
   instrument alone; the cards carry the words (outcomes, not methods).
   -------------------------------------------------------------------------- */
@media (min-width: 1101px){
  .cdl-layout{grid-template-columns:minmax(300px, 400px) minmax(0, 1fr);align-items:center}
  .cdl-panel{position:static}
}
.cdl-panel .cdl-dial{max-width:360px;margin-inline:auto}
.cdl-pt{font-size:13px}
.cmp-q{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;font:inherit;cursor:pointer}
.cmp-q:focus-visible{outline:2px solid var(--compass);outline-offset:3px}
.cmp-q.is-bearing{background:var(--night-raise)}
@media (max-width: 1100px){
  .cdl-panel{justify-content:center}
  .cdl-panel .cdl-dial{flex:none;width:min(300px, 70%)}
}
@media (max-width: 560px){
  .cdl-panel .cdl-dial{width:min(240px, 72%)}
}
