/* (c) 2026 Wayne State University. All rights reserved. */
@media (min-aspect-ratio: 10/16) and (min-height: 600px) {
  :root.sl-framed:not(.sl-desk) {
    background: var(--sl-surface-sunken) linear-gradient(to right, var(--sl-strip-major) 1px, transparent 1px) 0 0 / 60px 100%;
  }
  :root.sl-framed:not(.sl-desk) body {
    position: fixed;
    inset: var(--sl-space-4) 0 auto;
    width: min(100%, calc((100dvh - 2 * var(--sl-space-4)) * 0.5625));
    height: calc(100dvh - 2 * var(--sl-space-4));
    margin: 0 auto;
    overflow: hidden;
    contain: layout paint;
    border-radius: 24px;
    background: var(--sl-bg);
    box-shadow: 0 0 0 1px var(--sl-border), var(--sl-shadow-2);
  }
  :root.sl-framed:not(.sl-desk) .vl, :root.sl-framed:not(.sl-desk) .wi-done { width: 100%; }
  :root.sl-framed:not(.sl-desk) .vl { top: 0; height: 100% !important; }
  :root.sl-framed:not(.sl-desk) dialog { max-width: calc((100dvh - 2 * var(--sl-space-4)) * 0.5625 - 2 * var(--sl-space-3)); }
}

:is(.hm, .ls, .tm-front, .tm-sheet, .sp, .dp, .ab) {
  background-image: linear-gradient(to right, var(--sl-paper-line) 1px, transparent 1px);
  background-size: 60px 100%;
}
:is(.tm-square, .tm-key, .ab-card, .sp-fig, .sp-count, .dp-stage) {
  border-radius: var(--sl-radius-card);
  box-shadow: var(--sl-shadow-card);
}
.tm-square:not(.tm-square--key) { transition: transform var(--sl-dur-fast) var(--sl-ease), border-color var(--sl-dur) var(--sl-ease); }
@media (hover: hover) {
  a.tm-square:not(.tm-square--key):hover, button.tm-square:not(.tm-square--key):hover { border-color: var(--sl-brand); }
}
@media (forced-colors: active) {
  :is(.hm, .ls, .tm-front, .tm-sheet, .sp, .dp, .ab) { background-image: none; }
}
:root.sl-desk { background: var(--sl-bg); }
:root.sl-desk :focus-visible { outline: 2px solid var(--sl-focus); outline-offset: 2px; }
:root.sl-desk :is(a[href], button:not(:disabled), summary, label:has(input)) { cursor: pointer; }
:root.sl-desk .tm-home:hover { border-color: var(--sl-brand); background: var(--sl-brand-tint); }
:root:not(.sl-desk) .sl-desk-only { display: none !important; }
:root.sl-desk .sl-touch-only { display: none !important; }
.sl-kbd { display: inline-block; min-width: 1.5em; padding: 0 0.35em; box-sizing: border-box; border: 1px solid var(--sl-border-control);
  border-bottom-width: 2px; border-radius: 6px; background: var(--sl-surface); color: var(--sl-text-1);
  font: 600 var(--sl-fs-1)/1.5 var(--sl-font-sans); text-align: center; vertical-align: 0.1em; }
.sl-tcursor { position: absolute; left: 0; width: 0; border-left: 1px dashed var(--sl-brand); pointer-events: none; z-index: 2; }
.sl-tcursor[hidden] { display: none; }
.sl-tcursor__label { position: absolute; top: -22px; left: 6px; padding: 0 var(--sl-space-2); border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-pill); background: var(--sl-surface); color: var(--sl-text-1); font-size: var(--sl-fs-1);
  font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: var(--sl-shadow-1); }
.sl-tcursor.is-flipped .sl-tcursor__label { left: auto; right: 6px; }
:root.sl-desk.tm :is(p, li, h1, h2, h3, dt, dd, td, th, figcaption, blockquote) { -webkit-user-select: text; user-select: text; }
:root.sl-desk .sl-trace { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
@media (prefers-reduced-motion: no-preference) {
  :root.sl-desk .sl-trace-strip svg { animation: sl-desk-trace 1.6s ease-out both; }
  :root.sl-desk .sl-trace-cards > :nth-child(2) .sl-trace-strip svg { animation-delay: 0.2s; }
  :root.sl-desk .sl-trace-cards > :nth-child(3) .sl-trace-strip svg { animation-delay: 0.4s; }
  @keyframes sl-desk-trace { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}
