/* One instrument above a separate, plainly labelled almanac reference. */
.compass-page { min-width: 0; padding-bottom: 32px; }
.compass-intro { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 35em; margin: 10px 0 22px; }
.compass-instrument { position: relative; color: var(--ink); }
.compass-measurement { display: flex; align-items: baseline; justify-content: center; gap: 14px; min-height: 90px; padding-top: 7px; }
.compass-measurement output { font: 400 clamp(58px,17vw,78px)/1.1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -2px; }
.compass-measurement > span { font-size: 15px; color: var(--muted); }
.compass-dial { position: relative; width: min(100%,300px); aspect-ratio: 1; margin: 0 auto; overflow: hidden; overflow: clip; }
.compass-dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.compass-dial-rim { fill: none; stroke: var(--line); stroke-width: 1; }
.compass-dial line { stroke: var(--ink); stroke-width: 1; }
.compass-dial line.minor { opacity: .35; }
.compass-dial line.major { stroke-width: 1.6; }
.compass-dial text { fill: var(--ink); text-anchor: middle; font: 14px Georgia,serif; }
.compass-dial text:first-of-type { fill: var(--accent); }
.compass-dial-center { fill: var(--ink); }
.compass-needle { position: absolute; inset: 0; pointer-events: none; transform-origin: 50% 50%; }
.compass-needle[hidden] { display: none; }
.compass-needle i { position: absolute; left: calc(50% - 1px); bottom: 50%; height: 22%; width: 2px; background: var(--green); }
.compass-needle span { position: absolute; left: calc(50% - 6px); top: 23%; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 13px solid var(--green); }
.compass-target-marker { position: absolute; inset: 0; pointer-events: none; transform-origin: 50% 50%; }
.compass-target-marker span { position: absolute; top: 5%; left: calc(50% - 5px); width: 10px; height: 10px; border: 2px solid var(--accent); border-radius: 50%; background: var(--paper); }
.compass-target { margin: 14px 0 4px; padding: 10px 0; border-block: 1px solid var(--line); text-align: center; }
.compass-target[hidden] { display: none; }
.compass-target strong { font: 500 18px/1.6 var(--serif); }
.compass-target .text-button { min-height: 44px; padding: 8px 16px; }
.compass-target p { margin: 4px 0 0; font-size: 13px; line-height: 1.8; min-height: 1.8em; }
.compass-accuracy { display: flex; justify-content: center; gap: 16px; min-height: 25px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.compass-guidance { font-size: 14px; line-height: 1.8; text-align: center; margin: 8px 0 0; min-height: 3.6em; }
.compass-status { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 15px 0 5px; }
.compass-controls button { min-height: 48px; width: 100%; white-space: normal; }
.compass-unsupported { margin: 12px 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.compass-help { margin: 14px 0 28px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.compass-help summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-size: 13px; }
.compass-help p { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 4px 0 14px; }
.compass-calendar-heading h3 { margin: 0 0 8px; font: 500 21px/1.5 var(--serif); }
.compass-calendar-heading > span { color: var(--muted); font-size: 11px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.compass-directions { margin: 18px 0 10px; }
.compass-directions > div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.compass-directions dt { font-size: 14px; }
.compass-directions dd { margin: 0; font: 500 20px/1.5 var(--serif); text-align: right; }
.compass-directions > div:not(:has(.compass-find)) { grid-template-columns: minmax(0,1fr) auto; }
.compass-find { min-width: 60px; min-height: 44px; border: 1px solid var(--line); padding: 6px 8px; font-size: 12px; line-height: 1.5; }
.compass-find[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--sage); }
.compass-find:active { background: var(--line); }
.compass-find:disabled { opacity: .55; cursor: default; }
.compass-tradition,.compass-calendar-status { font-size: 12px; line-height: 1.8; color: var(--muted); }
.compass-calendar-status { margin: 16px 0; }
.compass-calendar .text-button { min-height: 44px; }
.compass-entry { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 80px; padding: 14px 0; margin: 0 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.compass-entry strong { display: block; font: 500 22px/1.5 var(--serif); }
.compass-entry small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.compass-page :is(button,summary,[tabindex]):focus-visible,.compass-entry:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.compass-page p,.compass-calendar-heading,.compass-directions,.compass-entry { overflow-wrap: anywhere; }
@media (max-width:360px) { .compass-measurement { gap: 10px; } .compass-measurement > span { font-size: 13px; } .compass-directions dd { font-size: 17px; } }
@media (prefers-reduced-motion:reduce) { .compass-page *,.compass-entry { transition: none !important; animation: none !important; } }
