/* StrafeSpec's page (strafespec.html): a reference made from tracklang.js's own tables, and the planner to try lines on. */
#lang { overflow-y: auto; scroll-behavior: smooth; font: 400 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; padding: 0 clamp(16px, 3vw, 40px) 64px; }
#lang > * { max-width: 1480px; margin-inline: auto; }
/* The head row is the Track maker's (editor.css, #simple-head and #menubar .site-menu): the name, its two neighbours as links, the site menu at the right end */
#top { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 6px 0; font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--ink); border-bottom: 1px solid var(--line-soft); }
#top b { font-size: 14px; } #top .gap { flex: 1; } #top .site-menu > .top { padding: 2px 9px 2px 6px; border: 1px solid var(--line); border-radius: 3px; background: var(--well); color: inherit; font: inherit; cursor: pointer; }
/* a list of the page at the left that stays while the rest scrolls */
.shell { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 40px; align-items: start; }
#toc { position: sticky; top: 62px; display: flex; flex-direction: column; gap: 1px; padding-top: 34px; max-height: calc(100vh - 80px); overflow: auto; font-size: 14px; }
#toc a { padding: 4px 10px; border-left: 2px solid var(--line-soft); color: var(--cloud); opacity: .75; text-decoration: none; } #toc a.sub { padding-left: 22px; font-size: 13px; } #toc a:hover { opacity: 1; } #toc a[aria-current="true"] { opacity: 1; border-color: var(--cloud); font-weight: 600; }
#lang > .shell header { display: block; }
#lang h1 { font-size: 28px; line-height: 1.2; margin: 30px 0 8px; font-weight: 650; } #lang h2 { font-size: 20px; margin: 0 0 10px; padding-top: 40px; font-weight: 650; } #lang h3 { font-size: 14px; margin: 0 0 4px; font-weight: 650; }
#lang section { scroll-margin-top: 30px; } .group { scroll-margin-top: 70px; }
.lead { font-size: 16.5px; max-width: 50em; margin: 0; } .lead.more { font-size: 15px; margin-top: 8px; opacity: .85; } #lang section > p, #how ul { max-width: 56em; margin-top: 0; } #how ul { padding-left: 1.2em; } #how li { margin: 4px 0; }
#lang code, #lang td.code { font: 13.5px/1.5 ui-monospace, monospace; } #lang p code, #lang li code { padding: 1px 5px; border-radius: 3px; background: var(--well); }
/* Try it: the text and what the planner makes of it, side by side at one height */
.bench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; height: min(560px, 66vh); min-height: 400px; }
.write, .read { display: flex; flex-direction: column; min-height: 0; } .write > p { margin: 0 0 8px; min-height: 30px; }
.result { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin: 10px 0 0; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 4px; } .result #sum { margin: 0; min-height: 0; flex: 1 1 20em; } #notes:empty { display: none; } #notes { margin-top: 8px; }
.edit { position: relative; flex: 1 1 0; min-height: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--well); overflow: hidden; }
#text, #ink { position: absolute; inset: 0; box-sizing: border-box; width: 100%; height: 100%; margin: 0; padding: 10px 12px; border: 0; font: 14px/22px ui-monospace, monospace; tab-size: 2; white-space: pre; overflow: auto; }
#text { background: none; color: transparent; caret-color: var(--cloud); resize: none; } #text:focus-visible { outline: none; } .edit:focus-within { border-color: var(--cloud); } #ink { pointer-events: none; overflow: hidden; color: var(--cloud); }
:is(#help, #packs, #piecelist) .note, #ink .note { color: var(--haze); font-style: italic; } :is(#help, #packs, #piecelist) .name, #ink .name { color: var(--good); } :is(#help, #packs, #piecelist) .piece, #ink .piece { color: var(--limb); font-weight: 600; } :is(#help, #packs, #piecelist) .made, #ink .made { color: #f29cc0; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; } :is(#help, #packs, #piecelist) .look, #ink .look { color: #c6cf78; } :is(#help, #packs, #piecelist) .set, #ink .set { color: #c9a0f0; } :is(#help, #packs, #piecelist) .word, #ink .word { color: #7fd6d0; } :is(#help, #packs, #piecelist) .num, #ink .num { color: var(--sun); } :is(#help, #packs, #piecelist) .sign, #ink .sign { color: var(--haze); }
#sum { margin: 0 0 6px; min-height: 36px; display: flex; align-items: center; font-weight: 600; line-height: 1.35; } #notes { list-style: none; margin: 0 0 6px; padding: 0; max-height: 130px; overflow: auto; font-size: 14px; } #notes li { padding: 3px 0 3px 10px; border-left: 3px solid #e2a336; margin: 4px 0; } #notes li.bad { border-color: #e5484d; }
.scroll { flex: 1 1 0; min-height: 0; overflow: auto; border: 1px solid var(--line-soft); border-radius: 4px; } .scroll thead th { position: sticky; top: 0; background: var(--ink); }
#lang table { border-collapse: collapse; width: 100%; } #lang th, #lang td { text-align: left; padding: 4px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; } #lang th { font-weight: 600; opacity: .7; font-size: 13px; } #lang tr:last-child td { border-bottom: 0; }
#rows td:nth-child(n+3), #rows th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; } #rows tr.warn td { color: #e2a336; } #rows td:first-child { opacity: .6; }
/* the reference: a box a group, two across where there is room */

.group { break-inside: avoid; margin-bottom: 14px; border: 1px solid var(--line-soft); border-radius: 4px; padding: 10px 0 2px; } .group h3 { padding: 0 12px 4px; }
:is(#help, #packs) td.code { width: 52%; } :is(#help, #packs) td small { display: block; opacity: .7; font-size: 13px; line-height: 1.35; } :is(#help, #packs) tr { cursor: pointer; } :is(#help, #packs) tr:hover td { background: rgb(255 255 255 / .05); }
:is(#help, #packs) button { all: unset; font: inherit; cursor: pointer; } :is(#help, #packs) button:focus-visible { outline: 2px solid var(--cloud); outline-offset: 2px; }
#named td:nth-child(1) { width: 6em; font-weight: 600; } #named td:nth-child(3) { opacity: .75; width: 34%; }
#egs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; } #egs h3 { grid-column: 1 / -1; margin-top: 14px; }
#egs button { text-align: left; padding: 0 0 8px; overflow: hidden; } #egs button img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; background: var(--well); border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
#egs button b { display: block; padding: 0 10px; } #egs button small { opacity: .75; font-size: 13px; line-height: 1.35; display: block; padding: 0 10px; }
@media (max-width: 980px) { .shell { grid-template-columns: 1fr; } #toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 2px 4px; padding-top: 12px; max-height: none; } #toc a { border-left: 0; padding: 2px 8px; } #toc a.sub { display: none; } }
@media (max-width: 760px) { .bench { grid-template-columns: 1fr; height: auto; } .edit { flex: none; height: 200px; } .scroll { flex: none; max-height: 300px; } :is(#help, #packs) { columns: 1; } #help td.code, #named td.code { overflow-wrap: anywhere; } #lang th, #lang td { padding: 4px 8px; } #rows th:nth-child(1), #rows td:nth-child(1) { display: none; } #lang h1 { font-size: 24px; margin-top: 20px; } #named td:nth-child(3) { width: auto; } }
/* the picture, the steps of a first track, the facts */
#pic { flex: 1 1 0; min-height: 0; width: 100%; border: 0; color-scheme: dark; } .read #sum { margin: 8px 0 0; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; } .acts label { opacity: .85; }
#numbers { margin-top: 12px; } #numbers summary { cursor: pointer; opacity: .8; padding: 4px 0; } #numbers summary:hover { opacity: 1; } #numbers .scroll { max-height: 320px; margin-top: 6px; }
#steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 6px; max-width: 60em; }
#steps li { counter-increment: step; display: grid; grid-template-columns: 2em minmax(0, 17em) minmax(0, 1fr); gap: 2px 12px; align-items: center; } #steps li::before { content: counter(step); grid-row: span 2; font-size: 18px; font-weight: 650; opacity: .5; text-align: right; }
#steps button { grid-row: span 2; text-align: left; padding: 7px 10px; } #steps button code { display: block; white-space: normal; } #steps b { align-self: end; } #steps span { align-self: start; opacity: .78; font-size: 14px; line-height: 1.4; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px 28px; }
.facts img.fact, .facts .dia.fact { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; margin: 0 0 8px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--well); box-sizing: border-box; } .facts img.fact:not(.got) { visibility: hidden; } .facts .dia.fact svg { display: block; width: 100%; height: 100%; } .facts p { margin: 0 0 8px; opacity: .9; }
@media (max-width: 760px) { #pic { flex: none; height: 360px; } #steps li { grid-template-columns: 1.4em minmax(0, 1fr); } #steps button, #steps li::before { grid-row: auto; } #steps b, #steps span { grid-column: 2; } }

#dice { color: #fff; font-weight: 600; background: #6b3fa0; border-color: #b592e6; } #dice:hover { background: #7d4dba; } #egs > h3 { scroll-margin-top: 72px; }
table.how { margin: 10px 0 16px; } table.how td.code { width: 46%; }
/* Piece by piece: a box a piece, and the words A to Z over them */
#az { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 14px; font: 13.5px/1.5 ui-monospace, monospace; } #az > * { padding: 1px 7px; border: 1px solid var(--line-soft); border-radius: 3px; color: var(--cloud); text-decoration: none; } #az span { opacity: .55; } #az a.pbox { color: var(--limb); font-weight: 600; } #az a:hover { border-color: var(--cloud); }
#help, #piecelist, #packs { max-width: 980px; }   /* one column: a list to look things up in reads down, not across */ .pbox { padding: 10px 12px 6px; } .pbox h3 { padding: 0; font: 600 15px/1.4 ui-monospace, monospace; color: var(--limb); } .pbox h3 small { font: 400 14px/1.4 system-ui, sans-serif; color: var(--cloud); opacity: .8; margin-left: 10px; }
.pbox p { margin: 6px 0; font-size: 14px; } .pbox p b { font-weight: 600; opacity: .7; font-size: 13px; margin-right: 4px; } .pbox .sig { font: 13.5px/1.5 ui-monospace, monospace; padding: 5px 8px; background: var(--well); border-radius: 3px; overflow-wrap: anywhere; }
.pbox button { all: unset; font: inherit; cursor: pointer; } .pbox button:focus-visible { outline: 2px solid var(--cloud); outline-offset: 2px; } .pbox button.link { text-decoration: underline; text-underline-offset: 2px; } .pbox .try { display: inline-block; font: 13px/1.5 ui-monospace, monospace; padding: 0 6px; margin: 2px 0; border: 1px solid var(--line-soft); border-radius: 3px; } .pbox .try:hover, .pbox .sig:hover { outline: 1px solid var(--line); }
.pbox table td { padding: 3px 8px 3px 0; font-size: 14px; } .pbox table td:nth-child(1) { font-weight: 600; width: 5.5em; } .pbox table td:nth-child(2) { width: 7em; } .pbox table td:nth-child(3) { width: 30%; opacity: .75; font-size: 13px; }
.pbox .piece, .pbox .number, .pbox .word, .pbox .name { font-weight: inherit; } .pbox .sig .piece, .pbox .try .pbox { color: var(--limb); font-weight: 600; } .pbox .number { color: var(--warn, #e2a336); }
#grammar td.code { width: 44%; }

/* The page in parts: a label over each part's first section, a heading in the list at the left */
#lang section.opens { margin-top: 56px; border-top: 1px solid var(--line-soft); } #lang section.opens:first-of-type { margin-top: 0; border-top: 0; } #lang section > p.part { margin: 0 0 -34px; padding-top: 22px; font-size: 12px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--limb); }
#toc b { margin: 14px 0 4px; padding-left: 10px; font-size: 11.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--haze); } #toc b:first-child { margin-top: 0; }
#lang section > h3 { margin-top: 30px; font-size: 16px; }
/* Diagrams (track-diagrams.js): a figure with its drawing and a line under it */
figure.dia { margin: 14px 0 6px; border: 1px solid var(--line-soft); border-radius: 6px; background: rgb(147 166 192 / .045); } figure.dia .draw { overflow-x: auto; padding: 14px 16px 6px; } figure.dia svg { display: block; width: 100%; height: auto; }
figure.dia figcaption { padding: 8px 16px 10px; border-top: 1px solid var(--line-soft); color: var(--haze); font-size: 13px; }
.dia { --c-piece: var(--limb); --c-made: #f29cc0; --c-set: #c9a0f0; --c-look: #c6cf78; --c-num: var(--sun); }
.dia svg text { fill: var(--cloud); font: 13px system-ui, sans-serif; } .dia svg text.code { font: 13px ui-monospace, "SF Mono", Menlo, Consolas, monospace; } .dia svg .t { font-weight: 650; font-size: 14px; } .dia svg .s, .dia svg .lbl, .dia svg .band, .dia svg .what { fill: var(--haze); font-size: 12px; } .dia svg .g { font-size: 13px; } .dia svg .f { fill: var(--haze); font-size: 12.5px; }
.dia svg .piece { fill: var(--c-piece); font-weight: 600; } .dia svg .made { fill: var(--c-made); font-weight: 600; } .dia svg .set { fill: var(--c-set); } .dia svg .look { fill: var(--c-look); } .dia svg .num { fill: var(--c-num); } .dia svg .word { fill: #8fd3c7; } .dia svg .sign { fill: var(--haze); } .dia svg a:hover tspan { text-decoration: underline; }
.dia svg .card { fill: var(--ink); stroke: var(--line); } .dia svg .bar.course { fill: var(--c-piece); } .dia svg .bar.library { fill: var(--c-made); } .dia svg .bar.strafeskin { fill: var(--c-look); } .dia svg .step { fill: var(--ink); stroke: var(--line); } .dia svg .step.end { stroke: var(--c-piece); }
.dia svg path { fill: none; stroke: var(--haze); stroke-width: 1.3; } .dia svg .head { stroke: var(--haze); stroke-width: 1.6; } .dia svg .ask { stroke-dasharray: 4 3; } .dia svg .link { stroke: rgb(147 166 192 / .5); } .dia svg .dash { stroke-dasharray: 3 4; stroke: rgb(147 166 192 / .6); }
.dia svg .face { stroke: var(--limb); stroke-width: 1; stroke-linejoin: round; } .dia svg .face.top { fill: rgb(109 180 242 / .34); } .dia svg .face.front { fill: rgb(109 180 242 / .2); } .dia svg .face.end { fill: rgb(109 180 242 / .1); } .dia svg .face.thing { stroke: var(--sun); } .dia svg .face.top.thing { fill: rgb(255 179 71 / .42); } .dia svg .face.front.thing { fill: rgb(255 179 71 / .26); } .dia svg .face.end.thing { fill: rgb(255 179 71 / .14); } .dia svg .dot { fill: var(--cloud); stroke: none; }
.dia svg .solid { fill: rgb(109 180 242 / .22); stroke: var(--limb); } .dia svg .solid.thing { fill: rgb(255 179 71 / .25); stroke: var(--sun); } .dia svg .dim { stroke: var(--cloud); stroke-width: 1.1; } .dia svg .w { fill: var(--sun); font: 600 13.5px ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
/* a line taken apart: each part over a bracket and its name */
.anatomy { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 22px 36px; padding: 18px 18px 12px; } .aline { display: flex; flex-wrap: wrap; gap: 10px 8px; align-items: flex-start; } .aline:first-child { grid-column: 1 / -1; } .aline > span { display: flex; flex-direction: column; min-width: 0; }
.aline code { padding: 0 2px 5px; font: 15px ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: nowrap; background: none; } .aline b { padding-top: 5px; border-top: 2px solid var(--line); font-size: 12.5px; font-weight: 650; } .aline small { max-width: 15em; color: var(--haze); font-size: 12px; line-height: 1.35; }
.aline .piece { color: var(--c-piece); font-weight: 600; } .aline .made { color: var(--c-made); font-weight: 600; } .aline .look { color: var(--c-look); } .aline .num { color: var(--c-num); } .aline .word { color: #8fd3c7; } .aline > span:has(.piece) b { border-color: var(--c-piece); } .aline > span:has(.made) b { border-color: var(--c-made); } .aline > span:has(.look) b { border-color: var(--c-look); }
/* which look wins: the highest first, a rail beside them */
.cascade { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 8px 28px; align-items: start; margin-top: 8px; } .cascade ol { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; max-width: none; } .cascade ol::before { content: 'wins'; position: absolute; left: 0; top: 0; bottom: 0; width: 16px; border-left: 2px solid var(--c-look, #c6cf78); writing-mode: vertical-rl; padding-left: 3px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--haze); }
.cascade li { display: flex; flex-direction: column; padding: 7px 12px; border: 1px solid var(--line-soft); border-radius: 4px; margin-bottom: 4px; font-size: 13.5px; } .cascade li:first-child { border-color: #c6cf78; } .cascade li span { color: var(--haze); } .cascade li:nth-child(2) { margin-left: 10px; } .cascade li:nth-child(3) { margin-left: 20px; } .cascade li:nth-child(4) { margin-left: 30px; } .cascade li:nth-child(5) { margin-left: 40px; } .cascade p { margin: 0; }
.sizewords { border-collapse: collapse; font-size: 14px; margin-top: 10px; } .sizewords td { padding: 3px 14px 3px 0; vertical-align: top; } .sizewords td.code { font-family: ui-monospace, monospace; color: var(--sun); white-space: nowrap; }
@media (max-width: 900px) { .cascade { grid-template-columns: 1fr; } .anatomy { grid-template-columns: 1fr; } }

/* small pictures of a piece (in its box) and of a pattern (first in its row): drawn by the Track tab in the frame, shown when they come */
img.shot { display: block; background: var(--well); border: 1px solid var(--line-soft); border-radius: 3px; aspect-ratio: 5 / 2; height: auto; } img.shot:not(.got) { visibility: hidden; }
.pbox img.shot { float: right; width: 220px; max-width: 45%; margin: 0 0 6px 10px; } :is(#help, #packs) td.pic { width: 172px; padding-right: 0; } :is(#help, #packs) td.pic img { width: 170px; } #help td.pic img:not(.got) { height: 0; aspect-ratio: auto; border: 0; } #packs td.code { width: 36%; } .pbox table { clear: none; width: auto; min-width: 60%; }
#help td.code { width: 38%; }
