/* contact.css - THE CONTACT PAGE, ONE SCREEN (owner, 2026-11-16; contact_1116; review round 2026-11-17).
   "The Contact page as one page, phone and desktop: nobody has to scroll; everything needed to reach us, very minimal
   and artistic, in the site's own style; a thing we do not have yet (the e-mail address, the number) keeps its place,
   empty; very easy to use."

   What is on it. One sentence, DROP US A LINE., in the poster voice of the seven pages (Roboto Flex 900 at half width).
   Its I is not a letter: it is a real line, hung from a brass pin where the letter's top would be, with a brass printer
   nozzle at its end (the nozzle that prints the bar's motto, EVERY LINE HAS A PURPOSE). This line has one too: it is
   the rule of the table. On one side of it the ways to reach us, on the other their names. A way we do not have yet
   is its bare row, as high as any other row. Under DROP, what to send. The two doors (Get a quote, Upload your file)
   are the shell's own: its floating plate and the rail's plate on a desktop, the dock on a phone. The page draws none.

   How it is laid out. The panel is a size container (.ct); every measure is a share of it (cqw / cqh), so the same
   sheet holds a 963 wide panel, the 2900 one of a 32:9 monitor and a phone. The sentence is fitted to the panel's
   width from its measured width in ems (at "opsz" 144 a word is the same share of an em at every size) and never
   grows past what the panel's height can hold (the side margins grow instead); the line's place is that sentence's
   own I: no script places anything.
   The line stands in for the I only where it can: its two pictures are in and the sentence is set as it was measured
   (.is-pic on .ct: the page's own line says so where it is opened at its own address, the script at the end of app.js
   where it is printed up the panel). Wherever it cannot be (no script, another face forced on the page, a contrast
   theme, a browser without container units: .is-plain and the two blocks at the foot of the desktop part), the
   sentence is simply whole and nothing hangs. Opened at its own address the sentence waits unseen until that is known
   (.is-hold), so it is never shown with its letter first and the line a moment later.
   Nothing here scrolls: the desktop panel is 871 high by the shell; a phone gives the page its screen
   (.hero-screen: 100 %) and the sizes follow the screen's height. Where a screen is too small for all of it the page
   scrolls as any page does, it is never cut.
   Selectors carry #view (or its outgoing ghost) so the shared sheets' rules cannot outrank them. */

:is(#view, .view-ghost).ct-page {
  --ct-ink: #0c0b0a;
  padding: 0; overflow: hidden auto;
  color: var(--ct-ink);
  font-family: 'Roboto Flex', Roboto, Arial, sans-serif;
  /* brushed steel, as the rails: their own grain, a soft light from the upper right (the side the shell's plates and
     the nozzle are lit from: their shadows fall down and to the left), a darker far side */
  background:
    url("assets/tex/rail-brush.png?h=f79252a0") 0 0 / 512px 256px repeat,
    radial-gradient(115% 85% at 82% -8%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 58%),
    linear-gradient(258deg, #c4c6c7 0%, #d2d3d4 30%, #c9cbcc 56%, #b7b9bb 82%, #c0c2c3 100%);
  background-blend-mode: normal;
}

:is(#view, .view-ghost).ct-page .ct { height: 100%; container: ct / size; }
:is(#view, .view-ghost).ct-page .ct-in {
  /* the page's side margins: 56, and more on a very wide panel, so the sentence never outgrows the panel's height. The
     sentence's ink (the D's stem to the full stop) ends .0759 em short of its measure, so both margins stand half of
     that to the right (--dx): the ink, not its box, is in the middle of the panel */
  --dx: calc(min(100cqw - 112px, 194cqh) * .00606);
  --padl: calc(max(56px, calc((100cqw - 194cqh) / 2)) + var(--dx)); --padr: calc(max(56px, calc((100cqw - 194cqh) / 2)) - var(--dx));
  --top: 40px;
  --kh: 30px;                                           /* the small line over the sentence */
  --hw: calc(100cqw - var(--padl) - var(--padr));       /* the sentence's measure */
  --f: calc(var(--hw) / 6.26);                          /* DROP US A LINE. is 6.211 em wide */
  --sb: calc(var(--f) * .0144);                         /* the D keeps that much room on its left: the sentence is drawn as far to the left, so its first stem stands on the page's left edge, with the small line over it and what to send under it */
  --ix: calc(var(--padl) + var(--f) * 4.8755 - var(--sb));   /* the middle of its I, from the page's left edge */
  --iy: calc(var(--top) + var(--kh) + var(--f) * .061); /* the top of its capitals, from the page's top edge */
  --pin: max(9px, calc(var(--f) * .1));
  --nz: clamp(90px, 14.6cqh, 136px);                    /* the nozzle's height */
  --nz-ar: .55;                                         /* ... its picture's width over its height */
  --cord: max(2px, calc(var(--nz) * .0466));            /* ... and the cord, as thick as the stub of it in that picture */
  --lg: 64px;                                           /* the table: the gap the line hangs in */
  --tx: calc(var(--f) * 2.3347 - var(--sb));            /* ... it begins under the U of US (the U's own left edge) */
  --vw: calc(var(--ix) - var(--padl) - var(--tx) - var(--lg) / 2);    /* ... a way's room: from there to the line's gap */
  --bt: clamp(26px, 5.6cqh, 58px);                      /* the sentence to what stands under it */
  position: relative; box-sizing: border-box; height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;    /* the sentence; the table, what to send beside it; air; the foot */
  padding: var(--top) var(--padr) 34px var(--padl);
}
/* (:where: a reset written with :is() would outrank every one-class rule below) */
:is(#view, .view-ghost).ct-page .ct-in :where(h1, p, dl, dt, dd) { margin: 0; padding: 0; }
:is(#view, .view-ghost).ct-page .ct-in > * { grid-column: 1; }   /* one column: two things in one row share it (left and right), none opens a second */

/* ---- the sentence ---- */
:is(#view, .view-ghost).ct-page .ct-h { grid-row: 1; font: inherit; color: inherit; letter-spacing: 0; text-transform: none; }
:is(#view, .view-ghost).ct-page .ct-h::after { content: none; }
:is(#view, .view-ghost).ct-page .ct-kick { display: block; height: var(--kh); font-size: 15px; line-height: 18px; font-weight: 700; font-stretch: 100%; }
:is(#view, .view-ghost).ct-page .ct-say {
  /* (as wide as its words, not as its measure: the script watches this box, and so learns of a face or a spacing put on the
     page later, by an extension or a reader's own sheet) */
  display: block; width: fit-content; max-width: 100%; margin-left: calc(var(--sb) * -1); font-size: var(--f); line-height: .86; font-weight: 900; font-stretch: 50%;
  font-variation-settings: "opsz" 144; text-transform: uppercase; letter-spacing: 0;
}
/* where the line hangs, the letter keeps its room and its place in the sentence and the line is drawn where it stands; the
   sentence is then held to its rows. Anywhere else (.is-plain, or before a script has looked: the sentence may not be set as
   it was measured) it is whole and may take another row rather than be cut */
:is(#view, .view-ghost).ct-page .ct.is-pic:not(.is-plain) .ct-i { color: transparent; }
:is(#view, .view-ghost).ct-page .ct.is-pic:not(.is-plain) .ct-say { white-space: nowrap; }
/* opened at its own address the page is simply there (not printed up the panel): the sentence waits unseen until the line's two
   pictures and the face are known to be in, or to have failed (.is-hold: put on and taken off by the page's own two lines,
   contact_html.js; 3 s at the very most, on a slow first visit). It is then shown whole and right in one frame: never with a letter that turns
   into the line a moment later, never in another face, set wide and cut by the panel's edge */
:is(#view, .view-ghost).ct-page .ct.is-hold .ct-say { visibility: hidden; }

/* ---- the line: a pin, a cord, the nozzle. .ct-hang is its place (never turned: the script reads it); .ct-drop swings ---- */
:is(#view, .view-ghost).ct-page .ct-hang {
  position: absolute; grid-column: 1; grid-row: 1 / 5; z-index: 3; pointer-events: none; visibility: hidden;
  /* (its foot: level with the foot of the shell's floating plate, 58 over the panel's edge: a hanging weight needs air under it) */
  left: calc(var(--ix) - var(--padl)); top: calc(var(--iy) - var(--top)); bottom: 24px; width: 0;
}
:is(#view, .view-ghost).ct-page .ct.is-pic:not(.is-plain):not(.is-hold) .ct-hang { visibility: visible; }
:is(#view, .view-ghost).ct-page .ct-drop {
  position: absolute; inset: 0; transform-origin: 50% 0; will-change: transform;
  /* it hangs a finger in front of the sheet: its shadow falls down and to the left, as the shell's plates' do */
  filter: drop-shadow(calc(var(--nz) * -.05) calc(var(--nz) * .12) calc(var(--nz) * .06) rgba(16,14,10,.36));
}
/* the cord runs down to the nozzle's collar, over the stub of cord in the nozzle's picture (one black from the pin to the brass) */
:is(#view, .view-ghost).ct-page .ct-cord {
  position: absolute; z-index: 1; left: calc(var(--cord) / -2); width: var(--cord); top: 0; bottom: calc(var(--nz) * .9);
  background: #0b0b0b; border-radius: 1px; transform-origin: 50% 0;
}
:is(#view, .view-ghost).ct-page .ct-noz {
  position: absolute; left: calc(var(--nz) * var(--nz-ar) / -2); bottom: 0; width: calc(var(--nz) * var(--nz-ar)); height: var(--nz); max-width: none;
  /* the one thing on the page a hand takes hold of: a press on it is its own (not the page's under it, not a link's beside
     it), and a drag that starts on it marks no words */
  pointer-events: auto; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
:is(#view, .view-ghost).ct-page .ct-pin {
  position: absolute; z-index: 2; left: calc(var(--pin) / -2); top: calc(var(--pin) * -.08); width: var(--pin); height: var(--pin); max-width: none;
}
/* before it is let go the nozzle sits at the pin, the cord not paid out (the script lets it go: .is-down) */
:is(#view, .view-ghost).ct-page .ct-hang:not(.is-down) .ct-cord { bottom: auto; height: calc(var(--pin) * .5 + var(--nz) * .1); }
:is(#view, .view-ghost).ct-page .ct-hang:not(.is-down) .ct-noz { bottom: auto; top: calc(var(--pin) * .5); }

/* ---- what to send: under DROP, as wide as that word, its capitals' top on the table's first rule ---- */
:is(#view, .view-ghost).ct-page .ct-start {
  grid-row: 2; align-self: start; width: calc(var(--f) * 2.08); margin-top: calc(var(--bt) * .62 - .166em);
  font-size: clamp(19px, calc(var(--f) * .17), 46px); line-height: 1.07; font-weight: 800; font-stretch: 62%;
  font-variation-settings: "opsz" 144; text-wrap: balance;
}

/* ---- the table the line rules, hung under US A LINE.: the way on the line's left, the way's name on its right. Its rules
   begin on the U's left edge and end on the full stop's right edge (the measure is .049 em wider than the sentence, and
   the stop keeps .0125 em of its own room to its right) ---- */
:is(#view, .view-ghost).ct-page .ct-tab { grid-row: 2; margin: calc(var(--bt) * .62) calc(var(--f) * .0615 + var(--sb)) 0 var(--tx); }
:is(#view, .view-ghost).ct-page .ct-r {
  display: grid; grid-template-columns: var(--vw) var(--lg) minmax(0, 1fr); align-items: baseline;
  padding: clamp(9px, 1.5cqh, 14px) 0 clamp(10px, 1.7cqh, 15px); border-top: 2px solid var(--ct-ink);
}
:is(#view, .view-ghost).ct-page .ct-r:last-child { border-bottom: 2px solid var(--ct-ink); }
/* (owner, 2026-11-17: the design is right, the table's type was not: plain normal-width text under a poster. Two blind
   rounds of judges chose this, and he chose it by eye, A of three types shown him (bold condensed; the logo's serif; thin
   condensed): the table speaks in the page's own voices. A way's NAME in the sentence's voice, small: tight condensed
   capitals, never letter-spaced (800 at half width); the WAY bold and condensed, a little broader than what to send
   (800 at 72 % width, "opsz" 144, figures of one width). The printer's width hints (ems() in contact_html.js) are read
   from this very setting: change one, change the other) */
:is(#view, .view-ghost).ct-page .ct-k {
  grid-column: 3; grid-row: 1; font-size: clamp(18px, 1.45cqw, 30px); line-height: 1; font-weight: 800; font-stretch: 50%;
  font-variation-settings: "opsz" 144; text-transform: uppercase; letter-spacing: .02em;     /* (a hair apart: tight caps clot at phone size; never tracked out) */
}
:is(#view, .view-ghost).ct-page .ct-v {
  grid-column: 1; grid-row: 1; min-height: 1.15em; text-align: right; overflow-wrap: anywhere;
  font-size: var(--fs); line-height: 1.15; font-weight: 800; font-stretch: 72%; font-variation-settings: "opsz" 144; font-variant-numeric: tabular-nums;
}
:is(#view, .view-ghost).ct-page .ct-tab {
  /* a way's type: never wider than its room (--w3 is the longest of these ways in ems, written by the page's printer) */
  --fs: min(clamp(20px, min(2.3cqw, 3.3cqh), 36px), calc(var(--vw) / (var(--w3, 11.6) * 1.09)));
}
/* a place kept empty still has its line of type: the row is as high as a worded one and its name sits where theirs do */
:is(#view, .view-ghost).ct-page .ct-v.is-empty::before { content: "\200b"; }
/* the address and the numbers stand larger, once they are there, all in one size; never wider than their room (--w: the
   longest one's width in ems, --wp: the row of two numbers in one line with .9 em between them; both written by the
   page's printer). Two numbers share their row SIDE BY SIDE (owner, 2026-11-17: «شماره ها کنار هم باشه نه زیر هم»):
   the type is the largest at which the two stand in one line */
:is(#view, .view-ghost).ct-page .ct-r.is-big .ct-v:not(.is-empty) {
  font-size: min(clamp(30px, min(3.9cqw, 5.4cqh), 62px), calc(var(--vw) / (var(--w, 11.7) * 1.02)), calc(var(--vw) / (var(--wp, var(--w, 11.7)) * 1.02)));
}
:is(#view, .view-ghost).ct-page .ct-v.is-many { display: flex; flex-wrap: nowrap; justify-content: flex-end; column-gap: .9em; }
:is(#view, .view-ghost).ct-page .ct-v a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .22s ease; }
:is(#view, .view-ghost).ct-page .ct-v a:hover { background-size: 100% 2px; }
:is(#view, .view-ghost).ct-page .ct-v a:focus-visible { background-size: 100% 2px; outline: 2px solid var(--ct-ink); outline-offset: 4px; }
@media (hover: none) { :is(#view, .view-ghost).ct-page .ct-v a { background-size: 100% 2px; } }   /* no pointer to find it with: the line under a link is there at rest */
:is(#view, .view-ghost).ct-page .ct-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- the foot: the metal company, level with the shell's floating "Get a quote" (26 to 190 across, 763 to 813 down the
   panel) and to its right ---- */
:is(#view, .view-ghost).ct-page .ct-foot { grid-row: 4; display: flex; align-items: center; min-height: 50px; margin-bottom: 24px; padding-left: max(0px, calc(214px - var(--padl))); }
:is(#view, .view-ghost).ct-page .ct-sis { font-size: 15px; line-height: 1.3; font-weight: 500; font-stretch: 100%; }
:is(#view, .view-ghost).ct-page .ct-sis a { color: inherit; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }
:is(#view, .view-ghost).ct-page .ct-sis a::after { content: " \2197"; content: " \2197" / " (opens in a new tab)"; }
:is(#view, .view-ghost).ct-page .ct-sis a:hover { text-decoration-thickness: 3px; }
:is(#view, .view-ghost).ct-page .ct-sis a:focus-visible { outline: 2px solid var(--ct-ink); outline-offset: 3px; }

/* ---- where the line cannot stand in for the letter whatever the script finds: a contrast theme (the clear letter would get
   the theme's ink, the cord the theme's paper), and a browser without container units (every measure above is one) ---- */
@media (forced-colors: active) {
  :is(#view, .view-ghost).ct-page .ct .ct-i { color: inherit !important; }
  :is(#view, .view-ghost).ct-page .ct .ct-hang { display: none !important; }
}
@supports not (width: 1cqw) {
  :is(#view, .view-ghost).ct-page .ct .ct-i { color: inherit !important; }
  :is(#view, .view-ghost).ct-page .ct .ct-hang { display: none !important; }
  :is(#view, .view-ghost).ct-page .ct .ct-say { font-size: 56px; white-space: normal; }
  /* (a desktop there: the margins are made of those units too, and what to send would share the table's first row) */
  @media (min-width: 821px) {
    :is(#view, .view-ghost).ct-page .ct .ct-in { --padl: 56px; --padr: 56px; }
    :is(#view, .view-ghost).ct-page .ct .ct-start { width: auto; margin: 10px 0 14px; }
    :is(#view, .view-ghost).ct-page .ct .ct-tab { grid-row: 3; align-self: start; margin: 0; }
  }
}

/* ============================================================================================================================
   A PHONE. The page list opens rolled up on this page (index.html shutHere: as on the articles), so the whole screen is
   the page; its black plate hangs at the top left (to 63 down). The sentence stands in two rows under it, the line hangs
   from the second row's I and rules the same table turned round: names on its left, ways on its right. The nozzle hangs
   under the table, what to send beside it. The two doors are the dock's. Sizes follow the screen's height (cqh).
   When the visitor lowers the list, the page steps aside (the second block); a phone held sideways has its own
   arrangement (the third).
   ============================================================================================================================ */
@media (max-width: 820px) {
  .hero-screen:has(> #view.ct-page:not([hidden])) { height: 100%; }
  /* the page is as high as the screen and never a scroller of its own: what does not fit makes it taller, and the panel scrolls */
  :is(#view, .view-ghost).ct-page { box-sizing: border-box; height: 100%; min-height: 360px; padding: 0; overflow: visible; }
  :is(#view, .view-ghost).ct-page .ct-in { height: auto; min-height: 100%; }
  :is(#view, .view-ghost).ct-page .ct-in {
    --padl: 18px; --padr: 18px; --top: 76px; --kh: 0px; --sb: 0px;
    /* DROP US is 3.33 em wide; the sentence is as large as the width holds, and as the height holds beside the table
       (a tablet held upright, 700 high and more, has room for a larger one) */
    --f: min(calc(var(--hw) / 3.37), calc(13.6cqh + max(0px, 100cqh - 700px) * .12));
    --ix: calc(var(--padl) + var(--f) * 1.3045);          /* the I of the second row */
    --iy: calc(var(--top) + var(--f) * .921);             /* ... and its capitals' top: one row (.86) down */
    --nz: clamp(44px, 9.6cqh, 74px);
    --lg: max(30px, calc(4.9cqh + 7px));                  /* (a taller screen hangs a longer line: the gap grows with it, so the swing its fall leaves stays inside) */
    --tx: 0px;
    --vw: calc(100cqw - var(--ix) - var(--lg) / 2 - var(--padr));     /* a way's room: from the line's gap to the page's right margin */
    --bt: clamp(10px, 2.6cqh, 26px);
    /* (a tall screen: the nozzle's tip ends higher over the metal company's line, whose link begins right beside it there,
       and that line has more room under it: a finger on the nozzle is never taken for a press on the link) */
    --hb: clamp(8px, calc(12cqh - 62px), 26px);
    --rg: clamp(8px, 3cqh, 22px);                         /* two numbers one under the other (only on the narrowest screens): the room between them */
    grid-template-rows: auto auto minmax(calc(var(--nz) + 10px + var(--hb)), 1fr) auto;
    padding: var(--top) var(--padr) clamp(12px, calc(8cqh - 42px), 20px) var(--padl);
  }
  :is(#view, .view-ghost).ct-page .ct-kick { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :is(#view, .view-ghost).ct-page .ct-w3::before { content: "\A"; white-space: pre; }      /* two rows: DROP US / A LINE. */
  :is(#view, .view-ghost).ct-page .ct-hang { grid-row: 1 / 4; bottom: var(--hb); }
  :is(#view, .view-ghost).ct-page .ct-tab { grid-row: 2; margin: var(--bt) 0 0; }
  /* (the type follows the screen's width and its height: the same sheet sets a small phone, a tall one and a tablet held upright) */
  :is(#view, .view-ghost).ct-page .ct-r { grid-template-columns: calc(var(--ix) - var(--padl) - var(--lg) / 2) var(--lg) minmax(0, 1fr); padding: clamp(7px, 2.3cqh, 26px) 0 clamp(8px, 2.5cqh, 28px); }
  :is(#view, .view-ghost).ct-page .ct-k { grid-column: 1; text-align: right; font-size: clamp(13px, min(4.1cqw, 2.6cqh), 24px); }
  /* (the address and the two numbers in one size (--fb): the largest at which the two numbers stand side by side, .9 em
     apart; an address longer than that row breaks after its @. The other ways are never larger than they are: on a
     phone the two numbers side by side set the size of the whole table. A way gives way to its room before it takes a
     second line: a fold phone's tall, narrow cover screen; never under 12 px) */
  :is(#view, .view-ghost).ct-page .ct-tab { --fb: clamp(12px, min(5.2cqw, 3.5cqh, calc(var(--vw) / (var(--wp, var(--w, 11.7)) * 1.02))), 36px); }
  :is(#view, .view-ghost).ct-page .ct-v { grid-column: 3; text-align: left; font-size: min(clamp(14px, min(4.4cqw, 2.8cqh), 28px), max(12px, calc(var(--vw) / (var(--w3, 11.6) * 1.02))), var(--fb)); line-height: 1.18; }
  :is(#view, .view-ghost).ct-page .ct-r.is-big .ct-v:not(.is-empty) { font-size: var(--fb); }
  /* a finger's room on each link (44 and more): the link stays in its line of type, only its pressable band grows; two
     numbers side by side, each band its own, .9 em apart (a press on one number is never the other's) */
  :is(#view, .view-ghost).ct-page .ct-v a { padding: 14px 0; background-origin: content-box; }     /* (14: the bold condensed type stands a little smaller, its band was 42 on a tall phone) */
  :is(#view, .view-ghost).ct-page .ct-v.is-many { justify-content: flex-start; }
  /* what to send: beside the nozzle, on its right, at the line's foot */
  :is(#view, .view-ghost).ct-page .ct-start {
    /* (clear of the nozzle and of the swing its fall leaves: 3.4 % of the screen's height) */
    grid-row: 3; align-self: end; width: auto; margin: 0 0 12px calc(var(--ix) - var(--padl) + var(--nz) * .3 + 3.4cqh + 8px);
    font-size: clamp(15px, min(4.5cqw, 2.8cqh), 30px); line-height: 1.08; text-wrap: balance;     /* (even lines: no word alone on the last one) */
  }
  :is(#view, .view-ghost).ct-page .ct-foot { grid-row: 4; min-height: 0; margin-bottom: 0; padding-left: 0; }
  :is(#view, .view-ghost).ct-page .ct-sis { font-size: clamp(13.5px, min(3.7cqw, 2.2cqh), 20px); }
  :is(#view, .view-ghost).ct-page .ct-sis a { padding: 8px 0 clamp(12px, calc(8cqh - 42px), 20px); }       /* (a finger's room, downward: away from the nozzle, to the page's foot and no further; the link stays in its line of type) */
  /* a short screen (a small phone with both of its browser's bars showing): first the metal company's line is left out,
     then what to send, and the rows stand closer; a fold phone's cover screen (306 wide and less: 280, 301) keeps neither */
  @container ct (max-height: 477px) { :is(#view, .view-ghost).ct-page .ct-foot { display: none; } }
  @container ct (max-height: 430px) {
    :is(#view, .view-ghost).ct-page .ct-in { --nz: clamp(34px, 9.6cqh, 74px); grid-template-rows: auto auto minmax(calc(var(--nz) + 12px), 1fr) auto; }
    :is(#view, .view-ghost).ct-page .ct-r { padding: 1.6cqh 0 1.8cqh; }
    :is(#view, .view-ghost).ct-page .ct-start { display: none; }
  }
  @container ct (max-width: 306px) {
    :is(#view, .view-ghost).ct-page .ct-start, :is(#view, .view-ghost).ct-page .ct-foot { display: none; }
    :is(#view, .view-ghost).ct-page .ct-r { padding: 1.4cqh 0 1.6cqh; }      /* (an address and a number stand in two lines each there: the rows give them the room) */
    :is(#view, .view-ghost).ct-page .ct-in { --padr: 14px; }                  /* (... and a way has a little more room) */
  }
  /* the one place the two numbers stand one under the other: a page 306 wide and less (a fold phone's cover screen), where
     the two side by side would be smaller than 12 px; the table's size is then the address's or one number's; a finger's
     room apart, each band its own. (A 320 wide phone sets them side by side, the table a little smaller: one under the
     other, they made its page scroll on the 568 high one) */
  @container ct (max-width: 306px) {
    :is(#view, .view-ghost).ct-page .ct-tab { --fb: clamp(12px, min(5.2cqw, 3.5cqh, calc(var(--vw) / (var(--w, 11.7) * 1.02))), 36px); }
    :is(#view, .view-ghost).ct-page .ct-v.is-many { flex-wrap: wrap; row-gap: var(--rg); }
    :is(#view, .view-ghost).ct-page .ct-v.is-many a { padding: calc(var(--rg) / 2) 0; }
  }
}

/* ---- THE VISITOR LOWERS THE PAGE LIST (a tap on the black plate), the phone held upright. The hanging signs then cover the
   screen's left: to --lr across (229 on a 390 screen; less where the signs are drawn smaller: --rail-k by the screen's
   width, --mnav-k by its height) and about 505 down. The founder's rule for every phone page is that nothing may stand
   under them, so the page steps aside: all of it stands in the strip on the list's right - the sentence in three rows, the
   nozzle on a short line under its I, each way under its name, the metal company at the foot. What to send (the page's
   description) waits until the list is sent up again. The page keeps to its strip for as long as the list is THERE, not
   only while it is called open: sent up, the signs are still hanging for most of a second (#mnavDrop is hidden only when
   the roll is home). Should this page ever open with the list down (index.html shutHere), this is what it shows. ---- */
@media (max-width: 820px) and (orientation: portrait), (max-width: 820px) and (min-height: 500.02px) {
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-in {
    --lr: calc((24.2px + 204.6px * var(--rail-k, 1)) * var(--mnav-k, 1));
    --padl: calc(var(--lr) - var(--rail-w, 0px) + 9px); --padr: 10px; --top: 16px;
    --f: min(calc(var(--hw) / 2.12), 11.5cqh);            /* DROP is 2.08 em wide */
    --ix: calc(var(--padl) + var(--f) * .5285);           /* the I of the third row */
    --iy: calc(var(--top) + var(--f) * 1.781);            /* ... two rows (.86 each) down */
    --nz: clamp(40px, 8.6cqh, 60px);
    --vw: calc(100cqw - var(--padl) - var(--padr));
    grid-template-rows: auto calc(var(--nz) + 24px) auto minmax(0, 1fr) auto;     /* (the nozzle's row: 12 over it, 12 under its tip) */
  }
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-w3::before { content: none; }
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-w2::before, :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-w4::before { content: "\A"; white-space: pre; }      /* three rows: DROP / US A / LINE. */
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-hang { grid-row: 1 / 3; bottom: 12px; }
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-tab { grid-row: 3; margin-top: 0; }
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-r { display: block; padding: clamp(5px, 1.3cqh, 10px) 0 clamp(6px, 1.5cqh, 11px); }
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-k { display: block; text-align: left; font-size: 13px; margin-bottom: 2px; }     /* (a name never touches its way) */
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-v { display: block; text-align: left; font-size: 14.5px; }
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-r.is-big .ct-v:not(.is-empty) { font-size: clamp(12px, min(4.3cqw, calc(var(--vw) / (var(--w2, 8.9) * 1.02))), 17px); }     /* (no piece of an address is broken inside itself) */
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-v.is-many { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; row-gap: 12px; }     /* (two numbers: one under the other, each band its own) */
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-v.is-many a { padding: 6px 0; }
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-start { display: none; }
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-foot { grid-row: 5; }
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-sis { font-size: 12.5px; }
  :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-sis a { white-space: normal; }
  /* a short screen (600 high and less: most phones with the browser's bars showing): beside the list there is no room for the
     metal company's line as well as an address in two lines and two numbers one under the other; it is back the moment the
     list goes up */
  @container ct (max-height: 600px) {
    :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-foot { display: none; }
  }
  /* the smallest screens (an old small phone with the browser's bars showing): the rows stand closer, and so do two numbers
     (their bands still touch, 25 px each), so that an address and a number of two lines each still end above the dock */
  @container ct (max-height: 520px) {
    :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-in { grid-template-rows: auto calc(var(--nz) + 13px) auto minmax(0, 1fr) auto; }
    :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-hang { bottom: 8px; }
    :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-r { padding: 3px 0 4px; }
    :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-v.is-many { row-gap: 8px; }
    :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-v.is-many a { padding: 4px 0; }
  }
  /* a 320 wide phone: the strip beside the list is too narrow for an address in a readable size, so the sentence and its
     line stand there alone and the table is back the moment the list goes up; a fold phone's cover screen has no strip at all */
  @media (max-width: 339px) {
    :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-tab,
    :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-foot { display: none; }
  }
  @media (max-width: 304px) {
    :is(.mnav-top.is-open, .mnav-drop:not([hidden])) ~ .viewport :is(#view, .view-ghost).ct-page .ct-in { display: none; }
  }
}

/* ---- A PHONE HELD SIDEWAYS (a short, wide screen). The black plate hangs at the top left, drawn small (--mnav-k), and its
   list comes down under it; the page stands on their right, list up or down alike: the sentence in ONE row, the table under
   it as on a desktop (the way on the line's left, its name on its right), the nozzle under the table. What to send and
   the metal company's line are left out. Every height here is a share of the screen's (cqh), so it holds a 280 high
   panel as it holds a 380 one. (A phone wider than 820 sideways is given the shell's desktop stage, as on every page.) ---- */
@media (max-width: 820px) and (orientation: landscape) and (max-height: 500px) {
  :is(#view, .view-ghost).ct-page { min-height: 0; }
  :is(#view, .view-ghost).ct-page .ct-in {
    --lr: calc((24.2px + 204.6px * var(--rail-k, 1)) * var(--mnav-k, 1));
    --sl: calc(var(--lr) - var(--rail-w, 0px));                              /* the list's right edge, in the page */
    --bw: min(calc(100cqw - var(--sl) - 30px), 131.5cqh);                    /* the sentence's measure: the room there, or what the height can hold */
    --padl: calc(var(--sl) + 14px + (100cqw - var(--sl) - 30px - var(--bw)) / 2); --padr: calc(100cqw - var(--padl) - var(--bw));
    --top: 3.5cqh; --kh: 0px;
    --f: calc(var(--hw) / 6.26);
    --ix: calc(var(--padl) + var(--f) * 4.8755);
    --iy: calc(var(--top) + var(--f) * .061);
    --nz: clamp(26px, 14cqh, 44px);
    --lg: 24px;
    --tx: 0px;
    --vw: calc(var(--ix) - var(--padl) - var(--lg) / 2);
    --bt: 3cqh;
    grid-template-rows: auto auto minmax(calc(var(--nz) + 3cqh), 1fr) auto;
    padding: var(--top) var(--padr) 2.5cqh var(--padl);
  }
  :is(#view, .view-ghost).ct-page .ct-w3::before { content: none; }
  :is(#view, .view-ghost).ct-page .ct-hang { grid-row: 1 / 4; bottom: 0; }
  :is(#view, .view-ghost).ct-page .ct-tab { margin: var(--bt) calc(var(--f) * .0615) 0 0; }
  :is(#view, .view-ghost).ct-page .ct-r { grid-template-columns: var(--vw) var(--lg) minmax(0, 1fr); padding: 1.8cqh 0 2cqh; }
  :is(#view, .view-ghost).ct-page .ct-k { grid-column: 3; text-align: left; font-size: clamp(11px, 4.6cqh, 15px); }
  :is(#view, .view-ghost).ct-page .ct-v { grid-column: 1; text-align: right; font-size: clamp(11px, 5.2cqh, 17px); }
  :is(#view, .view-ghost).ct-page .ct-r.is-big .ct-v:not(.is-empty) { font-size: clamp(11px, min(6.4cqh, calc(var(--vw) / (var(--wp, var(--w, 11.7)) * 1.02))), 21px); }
  :is(#view, .view-ghost).ct-page .ct-v.is-many { justify-content: flex-end; row-gap: 0; }
  :is(#view, .view-ghost).ct-page .ct-v a, :is(#view, .view-ghost).ct-page .ct-v.is-many a { padding: 6px 0; }
  :is(#view, .view-ghost).ct-page .ct-start, :is(#view, .view-ghost).ct-page .ct-foot { display: none; }
}
