/* ltis.craitr.no on a phone: the same beats, reflowed to read. [ours] Neko, 13 Oct 2026.
   The 1920×1080 board stays the desktop and projector view; below 820 px (or a narrow portrait screen)
   mobile.js builds #mread from the board's own data and this file hides the scaled stage. Colours = the board's tokens. */
#mread { display: none; }
html.m body { display: block; padding: 0; background: var(--bg); overflow-x: hidden; height: auto; }
html.m .viewport, html.m .hint { display: none !important; }
html.m #mread { display: block; font-family: var(--mono); color: var(--ink); font-size: 15px; line-height: 1.6; padding-bottom: 48px; }

.m-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--blue); color: #fff; }
.m-top .bar { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; font-size: 13px; line-height: 18px; }
.m-top .bar span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.m-top .bar .cy { color: #9fe6ff; }
.m-idx { display: flex; gap: 2px; overflow-x: auto; padding: 0 12px 6px; scrollbar-width: none; }
.m-idx::-webkit-scrollbar { display: none; }
.m-idx a { flex: none; min-width: 36px; height: 32px; display: grid; place-items: center; color: #c8d0ff; text-decoration: none; font-size: 13px; border-radius: 2px; }
.m-idx a.go { color: #fff; padding-inline: 8px; }
.m-idx a[aria-current="true"] { background: var(--label-bg); color: var(--label-ink); }

.m-intro { padding: 20px 16px 4px; }
.m-intro h1 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--hi); text-wrap: balance; }
.m-intro p { margin: 0 0 8px; color: var(--dim); font-size: 13px; line-height: 1.55; }

.m-beat { padding: 28px 16px 8px; border-top: 1px solid var(--rule); scroll-margin-top: 84px; }
.m-beat:first-of-type { border-top: 0; }
.m-num { display: inline-block; background: var(--label-bg); color: var(--label-ink); font-size: 12px; line-height: 18px; padding: 0 6px; margin-bottom: 8px; }
.m-beat h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--hi); text-wrap: balance; }
.m-about { margin: 2px 0 14px; font-size: 13px; color: var(--cyan); }
.m-lines p { margin: 0 0 10px; }
.m-lines p:first-child:not(.sub) { color: var(--hi); font-size: 17px; line-height: 1.45; }
.m-lines p.sub { color: var(--ink); }
.m-lines p.gap { margin-top: 12px; }
.m-lines b, .m-lines strong { color: var(--hi); }

.m-frame { margin: 14px -16px 4px; background: #000; position: relative; }
.m-frame .tc { position: static; inset: auto; padding: 14px 16px; font-size: 13.5px; line-height: 1.55; overflow: visible; }
.m-frame .tc .gap { height: 10px; }
.m-frame img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.m-frame svg { display: block; width: 100% !important; max-width: 100%; height: auto; }
.m-frame .bodies { position: static; inset: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 8px; padding: 12px; }
.m-frame .bod { min-width: 0; padding: 10px 8px 8px; }
.m-frame .bod svg { height: 30px; }
.m-frame .bodies, .m-frame .ph { padding: 12px 16px; font-size: 13px; }
.m-frame.strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 2px; }
.m-frame.strip figure { flex: 0 0 88%; margin: 0; scroll-snap-align: start; }
.m-frame.strip figcaption { padding: 4px 16px 0; }
.m-cap { font-size: 12px; line-height: 1.5; color: var(--dim); padding: 4px 0 0; }
.m-frame.strip + .m-cap { display: none; }

.m-pushes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; border-top: 1px dashed var(--rule); padding-top: 12px; }
.m-pushes li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 8px; font-size: 14px; line-height: 1.5; }
.m-pushes .t { font-weight: 600; }
.m-pushes .t.ref { color: var(--ref); } .m-pushes .t.no { color: var(--no); } .m-pushes .t.claim { color: var(--claim); } .m-pushes .t.q { color: var(--cyan); }
.m-pushes .who { color: var(--who); margin-right: 6px; }
.m-pushes details { grid-column: 2; margin-top: 4px; }
.m-pushes summary { cursor: pointer; color: var(--dim); font-size: 12px; min-height: 28px; display: flex; align-items: center; }
.m-pushes .cite { white-space: pre-wrap; font-size: 12.5px; line-height: 1.55; color: var(--ink); background: #0d0d14; border-left: 2px solid var(--rule); padding: 8px 10px; margin-top: 4px; }

.m-links { display: grid; gap: 6px; margin-top: 14px; }
.m-links a { color: var(--cyan); font-size: 14px; min-height: 36px; display: flex; align-items: center; }
.m-go { display: block; margin: 24px 16px 4px; width: calc(100% - 32px); min-height: 52px; border: 1px solid var(--hi); background: transparent; color: var(--hi);
  font: 600 15px/1 var(--mono); letter-spacing: .04em; cursor: pointer; }
.m-go:focus-visible, .m-idx a:focus-visible, .m-links a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.m-foot { padding: 28px 16px 0; color: var(--dim); font-size: 12px; line-height: 1.6; border-top: 1px solid var(--rule); margin-top: 24px; }
.m-foot a { color: var(--cyan); }
