/* Lattice Sphere (S7 port, October 4): the console and its modules in the keep's paper world. Scoped under body.page-lattice-sphere. Ruled boxes only; no pictures. */
body.page-lattice-sphere .ls-kind { font: 11px/1.4 var(--meta); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
body.page-lattice-sphere .ls-name { font: 400 28px/1.1 var(--display); overflow-wrap: anywhere; }
body.page-lattice-sphere .ls-line { margin: 0; font-size: 17px; line-height: 1.5; max-width: 60ch; }
body.page-lattice-sphere .ls-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "labos console intakr" ". trackr ."; gap: 36px 56px; align-items: stretch; margin: 0 0 22px; }
body.page-lattice-sphere .ls-mods { display: contents; list-style: none; margin: 0; padding: 0; }
body.page-lattice-sphere .ls-console { grid-area: console; border: var(--rule); background: var(--ink); color: var(--paper); box-shadow: var(--shadow-card); padding: 26px 22px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; min-width: 0; }
body.page-lattice-sphere .ls-console .ls-kind { color: var(--paper); }
body.page-lattice-sphere .ls-console h3 { margin: 0; font: 400 clamp(30px, 3.4vw, 46px)/1 var(--display); overflow-wrap: anywhere; }
body.page-lattice-sphere .ls-mod { position: relative; min-width: 0; display: flex; }
body.page-lattice-sphere .ls-m-labos { grid-area: labos; }
body.page-lattice-sphere .ls-m-intakr { grid-area: intakr; }
body.page-lattice-sphere .ls-m-trackr { grid-area: trackr; }
body.page-lattice-sphere .ls-mod > a, body.page-lattice-sphere .ls-mod > .ls-box { flex: 1 1 auto; border: var(--rule); background: var(--paper); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
body.page-lattice-sphere .ls-mod > a:hover, body.page-lattice-sphere .ls-mod > a:focus-visible { transform: translate(-1px, -1px); box-shadow: var(--shadow-card); }
body.page-lattice-sphere .ls-mod > a .ls-name { text-decoration: underline; text-underline-offset: 4px; }
/* the connectors: a dotted rule from each module to the console */
body.page-lattice-sphere .ls-mod::after { content: ""; position: absolute; border: 0 dotted var(--ink); }
body.page-lattice-sphere .ls-m-labos::after { top: 50%; left: 100%; width: 56px; border-top-width: 2px; }
body.page-lattice-sphere .ls-m-intakr::after { top: 50%; right: 100%; width: 56px; border-top-width: 2px; }
body.page-lattice-sphere .ls-m-trackr::after { bottom: 100%; left: 50%; height: 36px; border-left-width: 2px; }
body.page-lattice-sphere .ls-parts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.page-lattice-sphere .ls-parts li { border: var(--rule); background: var(--paper); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
body.page-lattice-sphere .ls-terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.page-lattice-sphere .ls-terms li { border: var(--rule); background: var(--paper); padding: 18px 22px; min-width: 0; }
body.page-lattice-sphere .ls-terms p { margin: 0; font: 400 clamp(20px, 2vw, 26px)/1.25 var(--display); }
@media (max-width: 1100px) { body.page-lattice-sphere .ls-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  body.page-lattice-sphere .ls-map { grid-template-columns: minmax(0, 1fr); grid-template-areas: "console" "labos" "intakr" "trackr"; gap: 28px; }
  body.page-lattice-sphere .ls-m-labos::after, body.page-lattice-sphere .ls-m-intakr::after, body.page-lattice-sphere .ls-m-trackr::after { top: auto; right: auto; bottom: 100%; left: 50%; width: 0; height: 28px; border-top-width: 0; border-left-width: 2px; }
  body.page-lattice-sphere .ls-terms { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { body.page-lattice-sphere .ls-parts { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { body.page-lattice-sphere .ls-mod > a:hover { transform: none; box-shadow: none; } }
body.page-lattice-sphere .ls-mod > a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
body.page-lattice-sphere .ls-note { margin: 14px 0 0; font: 11px/1.6 var(--meta); letter-spacing: .04em; color: var(--ink-2); max-width: 64ch; }
body.page-lattice-sphere .ls-sunos { border: var(--rule); background: var(--ground); padding: 20px 22px; }
body.page-lattice-sphere .ls-sunos .ls-line { font-size: 17px; }
body:is(.paused, .ink-still).page-lattice-sphere .ls-mod > a { transition: none; }
