/* Paper and marginal lettering shared by the plane and space drawings. */
.math-ink.apollonius {
  --mi-paper: #faf7ee;
  --mi-ink: #38382f;
  --muted: #736c5e;
  --rule: #c7beac;
  --halo: #faf7eef2;
  --wash: #ebe6d6;
  --given: var(--mi-blue);
  --tangent: var(--mi-rust);
  color: var(--mi-ink);
  background: radial-gradient(ellipse at 38% 30%, #ffffff70, transparent 75%), var(--mi-paper);
  font-family: var(--mi-hand);
  color-scheme: light;
}
html[data-time="dusk"] .apollonius { --mi-paper:#eee2d0; --halo:#eee2d0ed; --wash:#e2d3bd; }
html[data-time="night"] .apollonius, .apollonius[data-theme="dark"] {
  --mi-paper:#232526; --mi-ink:#e8e2d1; --muted:#b8ae98; --rule:#696459;
  --halo:#232526ee; --wash:#353637; --given:#afbee5; --tangent:#eda27c;
  color-scheme:dark; background:var(--mi-paper);
}
.apollonius .ink-header {display:flex;align-items:center;justify-content:space-between;gap:.65rem;min-width:0}
.apollonius h1 {margin:0;font:400 clamp(34px,5.4vw,70px)/1 var(--mi-script);letter-spacing:-.015em}
.apollonius .ink-actions {display:flex;align-items:center;gap:clamp(1px,1.3vw,18px)}
.apollonius button,.apollonius select,.apollonius input{font:inherit;color:inherit}
.apollonius button {padding:2px 7px;line-height:1.05;border:0;background:transparent;cursor:pointer}
.apollonius button[aria-pressed="true"],.apollonius button:hover,.apollonius a:hover{color:var(--tangent)}
.apollonius :focus-visible{outline:2px solid var(--mi-gold);outline-offset:2px}
.apollonius [hidden]{display:none!important}
.apollonius .ink-actions button{min-width:42px;min-height:44px;font-size:clamp(17px,1.8vw,22px);color:var(--muted)}
.apollonius .ink-actions button:hover{color:var(--tangent)}
@media(max-width:500px){.apollonius h1{font-size:clamp(31px,8.5vw,45px)}.apollonius .ink-actions{gap:1px}.apollonius .ink-actions button{padding:2px 4px}}
@media(max-height:360px){.apollonius h1{font-size:29px}.apollonius .ink-actions button{min-height:33px}}
