/* © 2025–2026 Joël Abrahams. All rights reserved. */
.hole-page{--hole-edge:var(--space-md);--hole-card-width:17rem;--hole-tools-width:7.5rem;--hole-foot:1.75rem;--hole-line:1.35rem;--hole-low:10rem;--hole-time-room:4.5rem;--hole-radar-room:12rem;--hole-pads-room:0px;--hole-status-room:14rem;--hole-head-room:4rem;--hole-time-left:0px;--hole-time-right:0px;--hole-radar-size:9rem;--hole-status-bottom:max(var(--hole-low),var(--hole-time-room),var(--hole-radar-room),var(--hole-pads-room));--hole-status-depth:0px;--hole-gauge-top:max(22%,var(--hole-head-room) + var(--space-xs),var(--hole-status-depth));--hole-gauge-room:12rem;--hole-gauge-bottom:max(24%,var(--hole-low) + var(--space-lg));background:var(--deep-space);height:100dvh;overflow:hidden}.hole-view{flex:1;min-height:0;position:relative}.hole-canvas{cursor:grab;touch-action:none;width:100%;height:100%;display:block;position:absolute;inset:0;&:active{cursor:grabbing}}.hole-head{top:var(--hole-edge);left:var(--hole-edge);gap:var(--space-sm);flex-direction:column;align-items:flex-start;display:flex;position:absolute}.hole-title{padding:var(--space-2xs)var(--space-md);font-size:var(--text-lg);letter-spacing:0;background:var(--surface);border-radius:var(--radius-pill);margin:0;font-weight:600;line-height:1.4}.hole-card-canvas{pointer-events:none}.hole-gauge{top:var(--hole-gauge-top);bottom:var(--hole-gauge-bottom);left:calc(var(--hole-edge) + var(--space-xs));background:var(--border);width:2px;position:absolute}.hole-mark{bottom:calc(var(--at,0)*100%);left:var(--space-sm);font-size:var(--text-2xs);color:var(--muted);white-space:nowrap;line-height:1;position:absolute;transform:translateY(50%);&:before{top:50%;left:calc(-1*var(--space-sm) - 2px);width:var(--space-xs);content:"";background:var(--muted);height:1px;position:absolute}}.hole-mark-horizon{color:var(--horizon-grid)}.hole-mark-orbit{color:var(--stable-orbit)}.hole-mark-light{color:var(--photon-sphere)}.hole-mark-quiet{color:#0000}.hole-you{bottom:calc(var(--at,1)*100%);background:var(--accent);border:2px solid var(--deep-space);border-radius:50%;width:12px;height:12px;position:absolute;left:-5px;transform:translateY(50%)}.hole-status{right:0;bottom:var(--hole-status-bottom);width:fit-content;max-width:calc(100% - 2*var(--hole-gauge-room));font-size:var(--text-note);text-align:center;pointer-events:none;margin:0 auto;position:absolute;left:0;& .btn-small{margin-left:var(--space-xs);pointer-events:auto}}.hole-status:empty{display:none}.hole-status>span{padding:var(--space-3xs)var(--space-sm);transition:opacity var(--duration-fade);display:block}.hole-line-leaving{opacity:0}@media (prefers-reduced-motion:no-preference){.hole-line{animation:hole-line-in var(--duration-fade)ease-out}}@keyframes hole-line-in{0%{opacity:0;translate:0 var(--space-md)}}@media (height>=501px){.hole-page[data-lines=low] .hole-status{right:var(--hole-time-right);bottom:max(var(--hole-time-room),var(--hole-pads-room));left:var(--hole-time-left);max-width:none}.hole-page[data-lines=low][data-time=under] .hole-status{bottom:max(var(--hole-foot) + var(--space-sm),var(--hole-pads-room))}}.hole-pads{right:0;bottom:calc(var(--hole-time-room) + var(--space-sm));gap:var(--space-sm)var(--space-3xl);grid-template-columns:auto auto;justify-items:center;width:fit-content;margin:0 auto;display:none;position:absolute;left:0}.hole-pad-boost{grid-column:1/-1}@media (pointer:coarse){.hole-pads{display:grid}}.hole-pad{width:var(--button-lg);height:var(--button-lg);touch-action:none}.hole-top{top:var(--hole-edge);right:var(--hole-edge);gap:var(--space-sm);flex-direction:row-reverse;align-items:flex-start;display:flex;position:absolute}.hole-tools{gap:var(--button-gap-tight);width:var(--hole-tools-width);display:grid}.hole-tool{gap:var(--space-xs);height:var(--button-xs);padding:0 var(--space-sm)0 var(--space-xs);font:inherit;font-size:var(--text-xs);color:var(--text);white-space:nowrap;cursor:pointer;background:var(--surface);border:1px solid var(--border);border-radius:var(--box-radius);transition:border-color var(--duration-fast),color var(--duration-fast);align-items:center;font-weight:600;line-height:1;display:flex;&>i{width:1.25em;color:var(--button-icon);text-align:center}&[aria-expanded=true],&[aria-pressed=true]{border-color:var(--accent-border)}&:focus-visible{outline:var(--focus-ring);outline-offset:2px}}@media (hover:hover){.hole-tool:hover{color:var(--hover)}}@media (pointer:coarse){.hole-tool{height:var(--tap-size)}}.hole-cards{gap:var(--space-sm);width:var(--hole-card-width);max-height:calc(100dvh - var(--hole-edge) - max(var(--hole-radar-room),var(--hole-status-room)));scrollbar-width:thin;align-content:start;display:grid;overflow-y:auto}.hole-card{gap:var(--space-xs);padding:var(--space-sm);font-size:var(--text-sm);background:var(--surface);border:1px solid var(--border);border-radius:var(--box-radius);margin:0;display:grid}.hole-card-title{font-size:var(--text-2xs);letter-spacing:.1em;border:0;margin:0;padding:0}.hole-switch-note{font-size:var(--text-2xs);color:var(--muted);line-height:1.35;display:block}.hole-card-part{margin:var(--space-xs)0 0;font-size:var(--text-2xs);color:var(--muted);letter-spacing:.1em;text-transform:uppercase;border:0;padding:0;font-weight:600}.hole-note{font-size:var(--text-xs);color:var(--muted);margin:0;line-height:1.45}.hole-group{gap:var(--space-xs);display:grid}.hole-mode{justify-self:start}.hole-mode[aria-checked=true]>[data-when=off],.hole-mode:not([aria-checked=true])>[data-when=on]{display:none}.hole-field{gap:var(--space-2xs);display:grid}.hole-field-head{justify-content:space-between;gap:var(--space-sm);font-weight:600;display:flex;& output{color:var(--muted);font-variant-numeric:tabular-nums;font-weight:400}}.hole-bar{gap:var(--space-xs);font-size:var(--text-sm);color:var(--muted);align-items:center;display:flex}.hole-small-icon{font-size:var(--text-3xs)}.hole-actions{gap:var(--button-gap-tight);flex-wrap:wrap;display:flex;& .btn-small[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}}.hole-presets{font-size:var(--text-xs);& button{padding:var(--space-xs)var(--space-2xs);flex:1}}.hole-figures{gap:var(--space-3xs)var(--space-sm);font-size:var(--text-xs);grid-template-columns:1fr auto;margin:0;display:grid;& dt{color:var(--muted)}& dd{text-align:right;font-variant-numeric:tabular-nums;margin:0}}.hole-keys dd{text-align:left}.hole-card kbd{padding:0 var(--space-2xs);font-family:var(--font-mono);font-size:var(--text-2xs);border:1px solid var(--border);border-radius:var(--radius-xs)}.hole-corner{bottom:calc(var(--hole-foot) + var(--space-sm));left:var(--hole-edge);gap:var(--space-xs);flex-direction:column;align-items:flex-start;display:flex;position:absolute}.hole-page[data-time=under] .hole-corner{bottom:var(--hole-time-room)}.hole-near{gap:0 var(--space-md);font-size:var(--text-xs);line-height:var(--hole-line);grid-template-columns:auto auto auto;margin:0;display:grid;& dt{color:var(--muted);grid-column:1}& dd{gap:var(--space-xs);font-variant-numeric:tabular-nums;white-space:nowrap;grid-column:2;justify-content:flex-end;align-items:center;margin:0;display:flex}}.hole-more{gap:var(--space-2xs);font:inherit;font-size:var(--text-xs);color:var(--muted);cursor:pointer;background:0 0;border:0;align-items:center;padding:0;display:flex;&[aria-expanded=true]>i{rotate:90deg}&:focus-visible{outline:var(--focus-ring);outline-offset:2px}}.hole-near .hole-skip-cell{grid-column:3}.hole-skip{min-height:var(--button-sm)}.hole-time{right:var(--hole-time-right);bottom:calc(var(--hole-foot) + var(--space-sm));left:var(--hole-time-left);gap:var(--space-sm);width:max-content;padding:var(--space-2xs)var(--space-sm)var(--space-2xs)var(--space-2xs);background:var(--surface);border:1px solid var(--border);border-radius:var(--box-radius);align-items:center;margin-inline:auto;display:flex;position:absolute}.hole-page[data-time=under] .hole-time{right:auto;left:var(--hole-edge);margin:0}.hole-warp-reset{flex:none}.hole-time-out{min-width:9.5rem;font-size:var(--text-xs);color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.hole-flight{gap:var(--space-xs);width:var(--hole-card-width);padding:var(--space-sm);font-size:var(--text-sm);background:var(--surface);border:1px solid var(--border);border-radius:var(--box-radius);margin:0;display:grid}.hole-flight-head{gap:var(--space-sm);justify-content:space-between;align-items:center;display:flex}.hole-flight .hole-mode{--hole-knob-edge:2px;--hole-knob:calc(var(--button-xs) - 2*var(--hole-knob-edge));--mode-switch-knob-room:calc(var(--hole-knob) + 2*var(--hole-knob-edge));width:5.25rem;height:var(--button-xs);font-size:var(--text-2xs);& .mode-switch-knob{top:var(--hole-knob-edge);left:var(--hole-knob-edge);width:var(--hole-knob);height:var(--hole-knob);font-size:var(--text-3xs)}&[aria-checked=true] .mode-switch-knob{left:calc(100% - var(--hole-knob) - var(--hole-knob-edge))}}.hole-pilot{font-size:var(--text-xs);& button{padding:var(--space-xs)var(--space-2xs);flex:1}}.hole-drawn{gap:var(--space-2xs);font-weight:600;display:grid}.hole-power{font-size:var(--text-xs);color:var(--muted);margin:0;line-height:1.45;& output{color:var(--text);font-variant-numeric:tabular-nums}}.hole-restart{justify-self:start}.hole-flight-toggle{display:none}.hole-radar{right:var(--hole-edge);bottom:calc(var(--hole-foot) + var(--space-sm));gap:var(--space-sm);align-items:center;margin:0;display:flex;position:absolute}.hole-radar-screen{width:var(--hole-radar-size);height:var(--hole-radar-size);display:block}.hole-radar-key{gap:var(--space-3xs);font-size:var(--text-2xs);color:var(--muted);display:grid}.hole-key{--hole-key:var(--muted);gap:var(--space-xs);white-space:nowrap;align-items:center;display:flex;&:before{content:"";background:var(--hole-key);flex:none;width:.75rem;height:2px}}.hole-key-you{--hole-key:var(--strong)}.hole-key-gas{--hole-key:var(--orange)}.hole-key-view{--hole-key:color-mix(in srgb,var(--strong)var(--mix-tint),var(--console-bg))}.hole-key-out{--hole-key:var(--photon-sphere)}.hole-key-path{--hole-key:var(--strong)}.hole-key-orbit{--hole-key:var(--stable-orbit)}.hole-key-light{--hole-key:var(--photon-sphere)}.hole-key-horizon{--hole-key:var(--horizon-grid)}.hole-key-end{--hole-key:var(--text)}.hole-key-you:before,.hole-key-end:before{border-radius:50%;width:6px;height:6px;margin-inline:calc(.375rem - 3px)}.hole-key-gas:before,.hole-key-view:before,.hole-key-out:before{height:6px}.hole-radar[data-inside] :is(.hole-key-gas,.hole-key-orbit,.hole-key-light,[data-radar=outside]),.hole-radar:not([data-inside]) [data-radar=inside]{display:none}.hole-radar-scale{max-width:7rem;margin-top:var(--space-2xs);line-height:1.3}.hole-footer{width:auto;height:var(--hole-foot);padding:0 var(--hole-edge);font-size:var(--text-xs);border:0;align-items:center;margin:0;position:absolute;bottom:0;left:0;right:0}.hole-foot-end{gap:var(--space-md);display:flex}.hole-rate{white-space:nowrap;& output{font-variant-numeric:tabular-nums}}.hole-chooser{width:min(64rem,100% - 2rem);padding:var(--space-lg);color:var(--text);background:var(--surface);border:1px solid var(--accent-border);border-radius:var(--box-radius);&::backdrop{background:var(--raster-screen)}&[open]{gap:var(--space-md);display:grid}}.hole-choices{gap:var(--space-sm);grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));display:grid}.hole-choice{gap:var(--space-xs);padding:var(--space-md);font:inherit;font-size:var(--text-sm);color:var(--text);text-align:left;cursor:pointer;background:var(--bg);border:1px solid var(--border);border-radius:var(--box-radius);transition:border-color var(--duration-fast);align-content:start;display:grid;&>strong{font-size:var(--text-md)}&:focus-visible{outline:var(--focus-ring);outline-offset:2px}}@media (hover:hover){.hole-choice:hover{border-color:var(--accent-border)}}.hole-choice-what{color:var(--muted)}.hole-stat{margin-top:var(--space-xs);font-size:var(--text-xs);display:grid;&>:first-child{color:var(--muted)}& output{font-variant-numeric:tabular-nums}}dialog.hole-book:modal{width:min(76rem,100% - 2rem);height:min(50rem,100% - 3rem)}dialog.hole-book:modal .book-close{top:var(--space-lg);right:var(--space-lg)}.hole-noscript{text-align:center;position:absolute;inset:40% 0 auto}@media (width<=860px){.hole-diagram{display:none}}@media (width<=860px),(height<=500px){.hole-radar-key{display:none}.hole-flight-toggle{display:flex}.hole-flight{top:var(--hole-edge);right:calc(var(--hole-edge) + var(--hole-tools-width) + var(--space-sm));z-index:5;width:var(--hole-card-width);display:none;position:fixed}.hole-flight[data-open]{display:grid}}@media (width<=600px),(height<=500px) and (pointer:coarse),(width<=900px) and (height<=500px){.hole-page{--hole-card-width:auto;--hole-tools-width:var(--tap-size);--hole-gauge-top:max(30%,var(--hole-status-depth) + var(--space-xs))}.hole-top{left:var(--hole-edge)}.hole-tool{width:var(--tap-size);justify-content:center;padding:0;&>span{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}.hole-cards{margin-top:calc(var(--button-lg) + var(--space-sm));max-height:calc(100dvh - 2*var(--hole-edge) - var(--button-lg) - var(--space-sm) - var(--hole-low));flex:1;align-self:stretch}.hole-corner{right:var(--hole-edge);align-items:stretch}.hole-page{--hole-radar-size:5rem}.hole-radar{bottom:var(--hole-low)}.hole-diagram{display:none}.hole-flight-toggle{display:flex}.hole-flight{top:calc(var(--hole-edge) + var(--button-lg) + var(--space-sm));right:calc(var(--hole-edge) + var(--tap-size) + var(--space-sm));left:var(--hole-edge);z-index:5;width:auto;display:none;position:fixed}.hole-flight[data-open]{display:grid}.hole-radar{padding:var(--space-xs)}.hole-radar-key{display:none}.hole-pads{bottom:calc(var(--hole-low) + var(--space-3xl));column-gap:var(--space-xl)}.hole-focus{align-self:flex-start}.hole-time .hole-bar{flex:1;min-width:0}.hole-time .wedge-slider{flex:1;width:auto;min-width:3rem}}@media (height<=500px){.hole-page{--hole-gauge-top:max(calc(var(--hole-edge) + var(--button-lg) + var(--space-lg)),var(--hole-status-depth) + var(--space-xs));--hole-gauge-bottom:calc(var(--hole-low) + var(--space-sm))}.hole-top{flex-direction:column;align-items:flex-end}.hole-tools{width:auto;display:flex}.hole-cards{max-height:calc(100dvh - var(--hole-edge) - var(--button-lg) - var(--space-sm) - var(--hole-radar-room));margin-top:0}}@media (width>=901px) and (height<=500px) and (not (pointer:coarse)){.hole-flight{top:calc(var(--hole-edge) + var(--button-xs) + var(--space-sm));right:var(--hole-edge);max-height:calc(100dvh - var(--hole-edge) - var(--button-xs) - var(--space-sm) - var(--hole-radar-room));overflow-y:auto}.hole-page:has(.hole-card:not([hidden]),.hole-flight[data-open]) .hole-status{right:calc(var(--hole-edge) + var(--hole-card-width) + var(--space-sm));left:var(--hole-gauge-room);max-width:none}}@media (width<=600px){.hole-status{top:calc(var(--hole-edge) + var(--button-lg) + var(--space-sm));right:calc(var(--hole-edge) + var(--tap-size) + var(--space-sm));bottom:auto;left:var(--hole-edge);text-align:left;width:auto;max-width:none;margin:0}.hole-page[data-time] .hole-time{right:var(--hole-edge);width:auto}.hole-warp-m{display:none}.hole-time-out{min-width:4.5rem}.hole-mark-real,.hole-status>span:nth-last-child(n+3){display:none}}@media (height<=500px){.hole-status{top:calc(var(--hole-edge) + var(--button-lg) + var(--space-sm));max-width:calc(100% - 2*(var(--hole-edge) + 7rem));bottom:auto}.hole-corner{flex-direction:row;align-items:flex-end;right:auto}.hole-time .wedge-slider{width:calc(var(--slider-icon-size)*3);flex:none}.hole-warp-m{display:none}.hole-time-out{min-width:4.5rem}}@media (height<=500px) and (pointer:coarse),(width<=900px) and (height<=500px){.hole-radar{display:none}.hole-pads{right:var(--hole-edge);bottom:calc(var(--hole-time-room) + var(--space-sm));margin:0;left:auto}}@media (width<=600px) and (height<=720px){.hole-radar{display:none}}.hole-level>[data-level]{display:none}.hole-page[data-level=all] .hole-level>[data-level=all],.hole-page[data-level=instruments] .hole-level>[data-level=instruments],.hole-page[data-level=none] .hole-level>[data-level=none]{display:inline}.hole-page:not([data-level=all]) :is(.hole-title,.hole-flight,.hole-pads,.hole-cards,.hole-focus,.hole-time),.hole-page:not([data-level=all]) .hole-tools>:not(.hole-level),.hole-page[data-level=none] :is(.hole-gauge,.hole-status,.hole-corner,.hole-radar,.hole-footer){visibility:hidden}.hole-page[data-no-near] :is(.hole-near,.hole-more),.hole-page[data-no-status] .hole-status,.hole-page[data-no-gauge] .hole-gauge,.hole-page[data-no-radar] :is(#hole-radar-canvas,.hole-radar-key),.hole-page[data-no-diagram] .hole-diagram,.hole-page[data-no-rate] .hole-rate{display:none}