@font-face{font-family:Ruckus;src:url("fonts/TK10k-Ruckus-Web.otf") format("opentype")}
@font-face{font-family:Label;src:url("fonts/SilkscreenGrid-Regular.ttf") format("truetype")}
/*
  ONE LATTICE. Cell = 3px: 1px gap, then a 2px dot (the tk10k / K10k grid).
  Every box edge on a lattice field is a whole number of cells from the field's origin.
  Spacing has three steps, each double the last: 3 (together) / 6 (related) / 12 (separate).

  LABEL TYPE. 8px with an 8px line. The font's metrics are whole pixels (6 up, 2 down), so the
  5px capitals always sit on rows 1-5 of the line, with 1px of side bearing built in each side.
  A box around a label therefore needs 1px more padding above than below for equal margins.

  Ported from design/mockups/front-page.template.html and add-a-film.template.html.
*/
:root{
  --teal:#00665d; --teal-dot:#007369; --teal-lit:#00b3a4; --teal-hi:#00e6d2; --teal-mid:#00ccbb;
  --link:#469e93; --link-dark:#2a655e;
  --paper:#fff; --ink:#333; --muted:#888; --accent:#ff8a1f; --accent-ink:#5a2c00;
  --quiet:#666;   /* muted text in the 8px label face, and a whole paragraph of it, darker than --muted to be read on white */
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:#f0f0f0;color:var(--ink);font:13px/18px Geneva,Verdana,Tahoma,sans-serif}
.px,.btn b{font:8px/8px Label,monospace;text-transform:uppercase;-webkit-font-smoothing:none}
/* the 12px above the page is the gap the mockups leave between their note and the page */
.site{width:1062px;margin:12px 0 24px max(12px,round(down,calc((100vw - 1062px)/2),1px));background:var(--paper);box-shadow:rgba(0,0,0,.25) 0 1px 2px 1px}

.lat{background:linear-gradient(var(--lb) 1px,transparent 1px) 0 0/3px 3px,linear-gradient(90deg,var(--lb) 1px,transparent 1px) 0 0/3px 3px,var(--ld)}
/* Ruckus is set as SVG text so the baseline is an explicit whole pixel.
   x=1 puts its dots on lattice columns; y=21 puts the six cap rows on lattice rows 1-6 and descenders on row 7. */
svg.rk{display:block;width:100%;height:24px;overflow:visible}
svg.rk text{font:24px Ruckus,monospace;fill:currentColor;-webkit-font-smoothing:antialiased}
h1,h2{margin:0}   /* a section heading is drawn by its SVG: the page's first is its h1, the rest h2 */

/* masthead: the tk10k strip, 9 dot rows plus the closing 1px gap */
.mast{--lb:var(--teal);--ld:var(--teal-dot);height:28px;position:relative;overflow:hidden}
#logo{position:absolute;left:9px;top:0;width:60px;height:27px}
/* captions: the lattice is suppressed behind the text only, a solid box exactly as tall as the capitals (two dot rows) */
.cap{position:absolute;height:5px;background:var(--teal);white-space:nowrap}
.cap b{display:block;font-weight:normal;margin-top:-1px}
.cap.l1{left:69px;top:7px;color:var(--teal-hi)}
.cap.l2{left:69px;top:16px;color:var(--teal-mid)}
.cap.ctr{left:951px;top:16px;color:var(--teal-mid)}
.cap.ctr i{font-style:normal;color:var(--teal-hi)}
/* a caption that would come within one cell of the counter is hidden (only the lower phone caption at 318-320px) */
.cap.over{visibility:hidden}
.prog{--lb:var(--teal);--ld:var(--accent);position:absolute;left:0;top:24px;height:3px;width:0}

.nav{height:27px;padding:6px 12px;display:flex;gap:6px;background:#e0e0e0;box-shadow:inset 0 -1px 0 #c4c4c4;--corner:#e0e0e0}
.nav .sp{flex:1}
/* Button, 15px tall, built from hard-edged 1px layers (after the K10k nav buttons):
   outline with the four corner pixels knocked out; two highlight rows on top and one column on the left;
   two shade rows at the bottom and one column on the right; an icon cell with a divider; icon and label each wear a 1px dark outline. */
.btn{--o:#003d38;--h1:#3c9188;--h2:#26817a;--m:#0f6e65;--l1:#095e56;--l2:#05524b;--plate:#004840;--corner:var(--paper);
  position:relative;display:inline-flex;height:15px;padding:0;border:0;color:#fff;text-decoration:none;cursor:pointer;box-shadow:1px 2px 0 #c4c4c4;
  background:
   linear-gradient(var(--corner),var(--corner)) 0 0/1px 1px,linear-gradient(var(--corner),var(--corner)) 100% 0/1px 1px,
   linear-gradient(var(--corner),var(--corner)) 0 100%/1px 1px,linear-gradient(var(--corner),var(--corner)) 100% 100%/1px 1px,
   linear-gradient(var(--o),var(--o)) 0 0/100% 1px,linear-gradient(var(--o),var(--o)) 0 100%/100% 1px,
   linear-gradient(var(--o),var(--o)) 0 0/1px 100%,linear-gradient(var(--o),var(--o)) 100% 0/1px 100%,
   linear-gradient(var(--l1),var(--l1)) 15px 2px/var(--dw,1px) 12px,linear-gradient(var(--l2),var(--l2)) 16px 2px/var(--dw,1px) 12px,linear-gradient(var(--h2),var(--h2)) 17px 2px/var(--dw,1px) 12px,
   linear-gradient(var(--h1),var(--h1)) 1px 1px/calc(100% - 2px) 1px,linear-gradient(var(--h2),var(--h2)) 1px 2px/calc(100% - 2px) 1px,
   linear-gradient(var(--h2),var(--h2)) 1px 2px/1px 11px,
   linear-gradient(var(--l2),var(--l2)) 1px 13px/calc(100% - 2px) 1px,linear-gradient(var(--l1),var(--l1)) 1px 12px/calc(100% - 2px) 1px,
   linear-gradient(var(--l2),var(--l2)) calc(100% - 2px) 2px/1px 12px,
   var(--m);
  background-repeat:no-repeat}
.nav .btn{--corner:#e0e0e0}
/* A long display name in the nav is cut, never wrapped and never with an ellipsis; lattice.js cuts it between two letters
   at a whole cell. Only across, so nothing above or below the letters is lost. The full name is the button's title. */
.nav .btn b{max-width:150px;overflow-x:clip}
.btn.hot{--o:#7a3c00;--h1:#ffc48a;--h2:#ffa64d;--m:#f58a1f;--l1:#e07a12;--l2:#c96a08;--plate:#8a4500}
.btn.off{filter:grayscale(1);opacity:.55;cursor:default}
.btn i{flex:none;width:18px;height:15px;position:relative}
.btn i svg{position:absolute;left:4px;top:3px;width:9px;height:9px;display:block}
.btn b{display:block;font-weight:normal;height:7px;margin:4px 8px 0 2px;white-space:nowrap;
  text-shadow:1px 0 var(--plate),-1px 0 var(--plate),0 1px var(--plate),0 -1px var(--plate),1px 1px var(--plate),-1px -1px var(--plate),1px -1px var(--plate),-1px 1px var(--plate)}

.grid{display:grid;grid-template-columns:228px 558px 228px;gap:12px;padding:12px}
.col{display:flex;flex-direction:column;gap:12px}
.grid.msgs{padding-bottom:0}   /* flash messages: the page below supplies the gap */
.col.solo{grid-column:2}   /* a page that is one box: the middle column */
.full{grid-column:1/-1}
/* section hues (spec 10.5): --ld is the dot, --ink2 the dark */
.rose{--ld:#e8d6d6;--ink2:#8f4a4d}
.green{--ld:#d3e6e3;--ink2:#2a655e}
.olive{--ld:#e6e2bf;--ink2:#7d7430}
.blue{--ld:#d6deea;--ink2:#56678f}
.sec{--lb:var(--paper)}
.band{height:24px;padding-left:9px;overflow:hidden;color:var(--ink2)}
.blank{height:3px;background:var(--paper)}
.field{padding:9px;display:flex;flex-direction:column;gap:9px}

/* A box on a lattice field occupies whole cells, but its outline is drawn 1px in from the left and top
   (the gap column/row), so the outline runs from the first dot edge to the last and the dots outside
   sit one gap away on all four sides. Inside: outline, 1px of paper, then content. */
.panel,.bar{background:var(--paper);border:solid var(--paper);border-width:1px 0 0 1px;box-shadow:inset 0 0 0 1px var(--ink2);padding:2px}
.tbar{height:15px;padding:4px 5px 3px;margin-bottom:1px;background:var(--ink2);color:#fff}
.tabs{height:15px;display:flex;gap:1px;background:var(--ld);white-space:nowrap;overflow:hidden}
.tabs span{height:15px;padding:4px 5px 3px;color:var(--ink2)}
.tabs span.on{background:var(--paper);color:var(--ink)}
/* Text in a box wraps anywhere it must, so a long unbroken name, place or address never widens the page */
.body{padding:6px;overflow-wrap:anywhere}
.body>*{margin:0}
.body>*+*{margin-top:6px}
/* a box with no title bar needs one extra pixel so its height stays on whole cells */
.panel>.body:first-child{padding-top:7px}
.chips{display:flex;flex-wrap:wrap;gap:3px}
.chip{height:15px;padding:3px 3px 2px;border:1px solid var(--ld);color:var(--ink)}
.chip b{font-weight:normal;color:var(--ink2)}
/* a name and place in a list of plans: no bold face in body text, the section's dark hue instead */
.feed b,.spots b{font-weight:normal;color:var(--ink2)}
.sub2{color:var(--muted);font-size:11px}
.plain{color:var(--muted);font-size:11px}
a{color:var(--link);text-decoration:none}
.plainlink{cursor:pointer}
[hidden]{display:none!important}

.list{list-style:none;margin:0;padding:0}
.list li{display:flex;gap:6px;padding:3px 0}
.list li+li{box-shadow:inset 0 1px 0 var(--ld)}
.list .n{margin-top:5px;height:8px;color:var(--muted);flex:none;width:12px}
.kv{list-style:none;margin:0;padding:0}
.kv li{display:flex;gap:6px;padding:3px 0}
.kv li+li{box-shadow:inset 0 1px 0 var(--ld)}
.kv .k{flex:none;width:42px;height:8px;margin-top:5px;color:var(--quiet)}
.feed p{padding:3px 0}
.body.feed>p+p{margin-top:0;box-shadow:inset 0 1px 0 var(--ld)}
.feed .when{display:block;height:8px;margin:3px 0 4px;color:var(--quiet)}
canvas{display:block;image-rendering:pixelated}
/* the front-page map is a link to the full map, exactly the size of the map it holds */
.maplink{display:block;align-self:flex-start}
/* a countdown in the label face, doubled, on one body line; its figures are fixed width */
.count{height:18px;padding-top:1px;font-size:16px;line-height:16px;font-variant-numeric:tabular-nums}
.countcap{height:9px;color:var(--ink2)}   /* its caption: one label line, made up to whole cells with what follows */
/* The full map (/map/). On the desktop the list is one front-page column (228px) wide, three dots from the map,
   which takes the rest of the field. */
.mapgrid>.sec{grid-column:1/-1}   /* the section takes the page's width in every layout */
.mapgrid .field{display:grid;grid-template-columns:minmax(0,1fr) 228px;align-items:start}
.mapside{position:relative;display:flex;flex-direction:column;gap:9px;min-width:0}
.mapbox{position:relative;align-self:flex-start}   /* exactly the map's size; the pick mark is laid over it */
.mapside canvas{cursor:crosshair}
/* read by screen readers, not shown */
.sr{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* while the All button is hidden, what follows it starts the box */
.spots-box .body>[data-all][hidden]+*{margin-top:0}
/* each item, like a Just in line: the name, the place, then (with script) the distance and Show near here */
.spots{list-style:none;padding:0}
.spots li{padding:3px 0}
.spots li+li{box-shadow:inset 0 1px 0 var(--ld)}
.spots p{margin:0}
/* one label line (8px, made up to whole cells by its margins); if it has to wrap, the second line is 1px lower */
.spots .near{display:flex;flex-wrap:wrap;column-gap:12px;row-gap:1px;margin:3px 0 4px;color:var(--quiet)}
.spots .near span:empty{display:none}   /* no distance in the All list */
/* Show near here is a line of label type; its tap area reaches into the space round it, not past the next row's */
.spots .near button{position:relative}
.spots .near button::after{content:"";position:absolute;inset:-4px -3px}
/* the map's key, after the mockup's legend: a box with one line of labels, each after a drawn dot in the map's colours */
.legend{background:var(--paper);border:solid var(--paper);border-width:1px 0 0 1px;box-shadow:inset 0 0 0 1px var(--ink2);
  min-height:18px;padding:5px 5px 4px;display:flex;flex-wrap:wrap;column-gap:12px;color:var(--ink)}
.legend span{display:flex;gap:3px}
.legend i{display:block;flex:none;width:4px;height:4px;margin-top:2px;background:linear-gradient(var(--dotc),var(--dotc)) 1px 1px/2px 2px no-repeat,#1b2440}
.legend .p{--dotc:var(--accent)}
.legend .m{--dotc:var(--teal-hi)}

/* form fields: a label in label type, then a box outlined like every other box */
.f{display:block;min-width:0}
.f>span{display:block;line-height:12px;margin:-2px 0 2px;color:var(--ink2)}
/* A label may wrap. Its lines are 12px apart, which is 4 cells, so the field below moves down by whole cells.
   The 2px of leading above the first line is taken back by the negative margin, so a one-line label sits
   exactly where an 8px line would, 4px above its box. */
.f input,.f select,.f textarea{display:block;width:100%;height:24px;margin:0;padding:2px 5px;border:1px solid var(--ink2);border-radius:0;background:var(--paper);color:var(--ink);font:13px/18px Geneva,Verdana,Tahoma,sans-serif;-webkit-appearance:none;appearance:none;outline:0}
.f textarea{height:60px;resize:none}
.f input:focus,.f select:focus,.f textarea:focus{box-shadow:inset 0 0 0 1px var(--accent);border-color:var(--accent)}
.f select{background-image:linear-gradient(var(--ink2),var(--ink2)),linear-gradient(var(--ink2),var(--ink2)),linear-gradient(var(--ink2),var(--ink2));background-size:5px 1px,3px 1px,1px 1px;background-position:right 6px top 10px,right 7px top 11px,right 8px top 12px;background-repeat:no-repeat;padding-right:18px}
/* a <form> inside a box: its parts are related, so 6px apart */
.body>form{display:flex;flex-direction:column;gap:6px}
.body>form>*{margin:0}
.err{color:var(--accent-ink)}
/* a field's errors together, as one element its aria-describedby can name; related, so 6px apart */
.errs{display:flex;flex-direction:column;gap:6px}
.errs>p{margin:0}
.body>form .plain ul{margin:0;padding-left:18px}
.frow{display:flex;gap:6px}
.frow>.f{flex:1 1 0;display:flex;flex-direction:column;justify-content:flex-end}   /* if one label wraps, the fields in a row still line up */
.check{display:flex;gap:6px;align-items:flex-start;cursor:pointer}
.check input{flex:none;-webkit-appearance:none;appearance:none;margin:3px 0 0;width:12px;height:12px;border:1px solid var(--ink2);border-radius:0;background:var(--paper)}
.check input:checked{background:linear-gradient(var(--accent),var(--accent)) 2px 2px/6px 6px no-repeat,var(--paper)}
/* city picker (citypicker.js): the matches are a .list under the field; the one the keys are on is lit */
.picks li{padding:3px;cursor:pointer}
.picks li:hover,.picks li[aria-selected=true]{background:var(--ld)}
/* a submit button that reads as a link, for a second action in the same form */
.linkbtn{margin:0;padding:0;border:0;background:none;color:var(--link);font:inherit;cursor:pointer}

u{text-decoration:none}.short{display:none}
.btnrow{height:15px;display:flex}
.foot{height:27px;padding:10px 11px 0;background:var(--teal);color:var(--teal-mid)}
.foot a{color:var(--teal-hi)}
.foot span+span::before{content:" \00b7\0020"}

/* ================= PHONE (and anything narrower than the desktop page) =================
   The lattice never scales. The page is a single column a whole number of cells wide.
   Label type, tags and buttons are pixel-doubled (exactly 2x, so still on whole pixels) to be readable and tappable.
   Body text goes to 15px on a 21px line (7 cells). */
@media (max-width:1085px){
  body{font-size:15px;line-height:21px}
  .site{width:min(450px,round(down,100vw,3px));margin-left:round(down,calc((100vw - min(450px,round(down,100vw,3px)))/2),1px)}
  .long{display:none}.short{display:inline}
  .nav{height:48px;padding:9px 12px;gap:0}   /* the gap is set in whole pixels by script */
  .nav .sp{display:none}
  .btn{zoom:2}
  .nav .btn b{display:none}
  .nav .btn i{width:17px}
  .btnrow{height:30px}
  /* A button whose doubled label is wider than its box (a long label on a narrow phone), set by lattice.js:
     first it drops its icon cell and stays doubled (.noi); only if that still does not fit, it goes single size (.one). */
  .btnrow.noi .btn{--dw:0px}.btnrow.noi .btn i{display:none}.btnrow.noi .btn b{margin:4px 3px 0}
  .btnrow.one{height:15px}.btnrow.one .btn{zoom:1}
  .grid{display:flex;flex-direction:column;gap:12px;padding:12px 6px}
  .col,.full{display:contents}
  .px{font-size:16px;line-height:16px}
  .cap.px{font-size:8px;line-height:8px}   /* the masthead strip stays at 1x */
  /* one line, so lattice.js can tell when a doubled title is too wide; then it goes single size (.tight) */
  .tbar{height:30px;padding:8px 10px 6px;white-space:nowrap;overflow:hidden}
  .tbar.tight{height:15px;padding:4px 5px 3px;font-size:8px;line-height:8px}
  .tabs{height:30px}
  .tabs span{height:30px;padding:8px 10px 6px}
  .chips{gap:6px}
  .chip{height:30px;padding:6px 6px 4px;border-width:2px}
  .sub2{font-size:13px}
  .plain{font-size:13px}
  .list li{gap:9px}
  .list .n{width:24px;height:16px;margin-top:3px}
  .kv li{gap:9px}
  .kv .k{width:84px;height:16px;margin-top:3px}
  .feed .when{height:16px;margin:3px 0 5px}
  .mapgrid .field{display:flex;align-items:stretch}
  .spots .near{row-gap:2px;margin:3px 0 5px}
  .spots .near button::after{inset:-14px -6px}   /* 44px tall, for a finger */
  .count{height:21px;padding-top:3px}
  .countcap{height:18px}
  /* doubled; on a narrow phone the two labels take a line each, 21px apart, so the box grows by whole cells */
  .legend{min-height:33px;padding:9px 10px 7px;row-gap:5px}
  .legend span{gap:6px}
  .legend i{zoom:2;margin-top:1px}
  .f>span{line-height:24px;margin:-4px 0 1px}   /* doubled: 24px (8 cells) between lines; one line still takes 21px */
  /* 16px text in fields, so iPhone Safari does not zoom the page when one is tapped */
  .f input,.f select,.f textarea{height:33px;padding:5px 8px;font-size:16px;line-height:21px}
  .f textarea{height:96px}
  .f select{background-position:right 9px top 15px,right 10px top 16px,right 11px top 17px;padding-right:24px}
  .frow{gap:9px}
  .check{gap:9px}
  .check input{width:21px;height:21px;margin:0}
  .check input:checked{background:linear-gradient(var(--accent),var(--accent)) 4px 4px/11px 11px no-repeat,var(--paper)}
  /* the footer's items no longer fit on one doubled line, so each takes its own */
  .foot{height:auto;padding:17px 12px 15px;display:flex;flex-direction:column;gap:6px}
  .foot span+span::before{content:none}
}
/* the phone: the front page's sections in one column, Next up first (spec 9.1) */
@media (max-width:599px){
  .s-next{order:1}.s-event{order:2}.s-world{order:3}.s-just{order:4}.s-guide{order:5}
}
/* Without script the nav's icons are never drawn, so on a phone or in two columns each button shows its label instead,
   single size, without the empty icon cell, spread across the strip and centred in it (16px above and below the 15px
   button, inside the strip's 47px above its rule). A long name gives way first. */
@media (max-width:1085px) and (scripting:none){
  .nav{padding:16px 12px;justify-content:space-between;gap:6px}
  .nav .btn{zoom:1;--dw:0px;min-width:0}
  .nav .btn i{display:none}
  .nav .btn b{display:block;margin:4px 3px 0;min-width:0;overflow-x:clip}
}
/* Without script nothing measures, so on the narrowest phones every body button drops its icon cell, and on every
   phone and two-column width every title bar is single size, which fits the site's longest titles (a chapter's
   doubled title is wider than a phone). */
@media (max-width:374px) and (scripting:none){
  .btnrow .btn{--dw:0px}.btnrow .btn i{display:none}.btnrow .btn b{margin:4px 3px 0}
}
@media (max-width:1085px) and (scripting:none){
  .tbar{height:15px;padding:4px 5px 3px;font-size:8px;line-height:8px}
}
/* ================= TWO COLUMNS: phones on their side, small tablets =================
   Same doubled labels and 15px text as the phone. The page width is the largest number of cells that
   lets three film cards and two equal columns all land on whole cells (cells = 2 mod 6), so at most
   15px of the screen is left over, split between the two sides. */
@media (min-width:600px) and (max-width:1085px){
  .site{width:calc(round(down,calc(100vw - 6px),18px) + 6px);margin-left:round(down,calc((100vw - round(down,calc(100vw - 6px),18px) - 6px)/2),1px)}
  .cap .long{display:inline}.cap .short{display:none}
  .nav{gap:12px}
  .nav .sp{display:block}
  .grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px;align-items:start}
  .col.solo{grid-column:1/-1}
  .tabs.tight{height:27px}
  .tabs.tight span{height:27px;padding:10px 10px 9px;font-size:8px;line-height:8px}
  .tabs .long{display:inline}.tabs .short{display:none}
  .mcol{display:flex;flex-direction:column;gap:12px;order:2;min-width:0}
  /* the full map's list under the map, its items in two columns (the hidden ones are always moved to the end) */
  .spots{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:12px}
  .spots li+li{box-shadow:none}
  .spots li:nth-child(n+3){box-shadow:inset 0 1px 0 var(--ld)}
}

/* ================= LONG-FORM TEXT: field guide chapters and the code of conduct (spec 9.4, 10.4) =================
   Body type on whole lines: 13px on 18px, 15px on 21px below 1086px. A block is separated from the one before by one
   whole line, and a heading from what it heads by nothing, so every box below stays on whole cells.
   The measure is no wider than 558px. Geneva has no bold, so emphasis is carried by colour and face: strong text takes the section's dark hue, and a
   subheading is set in the label face (a 12px line, doubled on phone and two columns), dark hue for ## and muted for ###,
   one whole body line below the text before it and the body directly after. Only a section's own heading is dot matrix. */
.prose{overflow-wrap:anywhere}
.prose>*{max-width:558px}
.prose :where(p,ul,ol,blockquote,table,h1,h2,h3,li,tr){margin:0}
.prose :is(strong,b){font-weight:normal;color:var(--ink2)}
.prose :is(h1,h2,h3){font:8px/12px Label,monospace;text-transform:uppercase;-webkit-font-smoothing:none;color:var(--ink2)}
.prose h3{color:var(--quiet)}
.prose>*+*,.prose blockquote>*+*{margin-top:18px}
.prose :is(h1,h2,h3)+*{margin-top:3px}   /* outranks .prose>*+* and follows the blockquote rule it ties with */
.prose :is(ul,ol){padding-left:18px}
.prose li>:is(ul,ol){margin-top:0}
.prose li>p+p{margin-top:18px}
/* links in long-form text are underlined, 1px in the link colour, two pixels below the text, so a link cannot be
   mistaken for strong text (which is coloured too); nav, buttons, list titles and the chapter index keep none */
.prose a,.src a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;text-decoration-color:var(--link)}
/* a chapter's opening "*Researched, not yet tested by us.*": a paragraph of nothing but emphasis, set muted */
.prose>p:first-child:has(>em:only-child){color:var(--quiet)}
/* code: monospace on the body's own lines. A block keeps each command on one line and scrolls sideways inside its
   tinted box (by its scroll bar, touch, trackpad, or the arrow keys once it has focus), so a flag is never broken across
   lines and the page never widens. Where the scroll bar takes room of its own rather than floating over the text,
   lattice.js makes the block taller by that much, up to the next whole body line. */
.prose code{font:12px/1 ui-monospace,Menlo,Consolas,monospace;background:var(--ld);padding:0 2px}
.prose pre{font:12px/18px ui-monospace,Menlo,Consolas,monospace;background:var(--ld);padding:0 6px;white-space:pre;overflow-x:auto;overflow-y:hidden;overflow-wrap:normal}
.prose pre:focus-visible{outline:1px solid var(--accent);outline-offset:0}
.prose pre code{font:inherit;background:none;padding:0}
/* a tip: a bar of the section's colour down its left, three cells in, on whole lines */
.prose blockquote{padding-left:12px;box-shadow:inset 3px 0 0 var(--ink2)}
/* a table: rules are shadows, not borders, so a row is exactly one line (or a whole number of lines when its text wraps) */
.prose table{width:100%;border-collapse:collapse;table-layout:fixed}
.prose :is(th,td){padding:0 6px 0 0;text-align:left;vertical-align:top;box-shadow:inset 0 -1px 0 var(--ld)}
.prose th{font:8px/18px Label,monospace;text-transform:uppercase;-webkit-font-smoothing:none;color:var(--ink2)}
.prose tr:last-child :is(th,td){box-shadow:none}
/* Previous and next in the label face, each on one line, a whole cell below the text above */
.pager{display:flex;gap:12px;margin-top:12px;height:9px;line-height:8px;white-space:nowrap}
.pager a{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis}
.pager .next{text-align:right}
.pager .next:first-child{margin-left:auto}
.chapters .src,.src{min-width:0;overflow-wrap:anywhere}
.chapters li>span:last-child{min-width:0}
@media (max-width:1085px){
  .prose>*+*,.prose blockquote>*+*,.prose li>p+p{margin-top:21px}
  .prose :is(ul,ol){padding-left:21px}
  .prose blockquote{padding-left:12px}
  .prose :is(h1,h2,h3){font-size:16px;line-height:24px}
  .prose :is(h1,h2,h3)+*{margin-top:6px}
  .prose th{font-size:16px;line-height:21px}
  /* A table of three or more columns (marked .stack by guide/chapters.py) is too narrow to read here as columns, so
     each row is a block and each cell starts with its column's heading, doubled, muted, and the cell's text follows
     on the same line. The heading is inline text on the text's baseline, on a 16px line inside the 21px one, so every
     cell stays a whole number of lines and the words wrap only at spaces. The cells of a row sit together; rows are
     three cells apart (4px, the rule, 4px), closer than the table is to the text around it (a whole line). The heading row is kept for screen readers only; the cells' labels are left out of what they
     read (they have the column headers already), and the elements keep their roles (guide/chapters.py). */
  .prose table.stack,.prose .stack :is(thead,tbody,tr){display:block}
  .prose .stack th{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .prose .stack td{display:block;padding:0;box-shadow:none}
  .prose .stack td::before{content:attr(data-label);content:attr(data-label) / "";margin-right:6px;font:16px/16px Label,monospace;text-transform:uppercase;-webkit-font-smoothing:none;color:var(--quiet)}
  .prose .stack td:first-child{color:var(--ink2)}
  .prose .stack tbody tr+tr{margin-top:4px;padding-top:5px;box-shadow:inset 0 1px 0 var(--ld)}
  .prose pre{font-size:13px;line-height:21px}
  .prose code{font-size:13px}
  .pager{margin-top:12px;height:18px;line-height:16px}
}
