/* Combined Scale Factor & Convergence calculator (app/views/scale_factor/_calculator.html.erb).

   Loaded after ziacon.css and nested under the same .ziacon wrapper, so the calculator takes
   ZiaCon's cards, buttons and fields as they are and this sheet adds only what is its own. It
   is used on /scale-factor and inside the ZiaCon preview, so nothing here assumes which page.

   Brian's mockup (2026-10-16) sets the shape: the input is a ruled sheet, grouped the way his
   spreadsheet groups it, with grey value cells; one Calculate button; the report beside it. He
   asked for as little scrolling as possible, so rows are tight and the two sit side by side.

   The report is the printout: markPrintChain isolates it, and the print rules at the bottom only
   strip screen chrome. A GIS office files it, so it reads like a form a surveyor would sign. */

.ziacon{
  /* A shorter hero for the standalone page: one heading, one line. */
  /* The top padding has to clear the fixed site header, as ziacon.css's .hero .inner does; a bare
     padding-block put the heading under the header on every page (audit, 2026-10-17, P0). */
  .hero-compact .inner{padding-top:calc(var(--head-h, 76px) + 18px);padding-bottom:18px}
  /* The line runs the width of the tools under it. Capped at 62ch (and the box at ziacon.css's
     770px) it wrapped at under half the page with the space beside it empty (Kurt, 2026-10-30). */
  .hero-compact .inner{max-width:none}
  .hero-compact p.sub{max-width:none}
  .hero-compact h1{font-size:clamp(1.8rem,3.4vw,2.5rem)}
  .hero-compact .sub{margin-top:8px}
  .hero-compact .sub a{color:var(--gold-text);font-weight:700;text-decoration:underline;text-underline-offset:3px}
  /* Version line under the heading: which ZiaCon this is, and where its changes are listed. */
  .hero-compact .zc-ver{margin-top:6px;font-size:.82rem;color:var(--ink3)}
  .hero-compact .zc-ver a{color:var(--ink2);text-decoration:underline;text-underline-offset:2px}
  .hero-compact .zc-ver .zc-version{color:var(--ink);font-weight:700;text-decoration:none}
  /* The same line at the bottom of the page, under the notes (Kurt, 2026-11-04). */
  .zc-ver-foot{margin-top:28px;text-align:center;font-size:.85rem;color:var(--ink3)}
  .zc-ver-foot a{color:var(--ink2);text-decoration:underline;text-underline-offset:2px}
  .zc-ver-foot .zc-version{color:var(--ink);font-weight:700;text-decoration:none}
  /* &.sfpage: the page root carries both classes, so a descendant .sfpage would match nothing. */
  &.sfpage .tool{padding-block:24px}
  /* The notes run the full width of the accordion, to the end of the line (Kurt, 2026-11-04;
     until then each item stopped at 72ch). */
  &.sfpage details.accp .notes li{max-width:none}

  /* Focus that can be seen: ZiaCon's gold ring is 1.9:1 on white, under the 3:1 a focus
     indicator needs. Ink with a gold halo keeps the brand and passes. */
  a:focus-visible,button:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 4px rgba(240,177,0,.45)}

  /* Several of these carry a display value that would otherwise beat the hidden attribute. */
  .sfcalc [hidden]{display:none !important}
  /* Scrolled to after a result: clear the fixed site header. */
  .sfcalc,.sfsheet{scroll-margin-top:calc(var(--head-h, 76px) + 16px)}

  .sfgrid{display:grid;grid-template-columns:minmax(0,370px) minmax(0,1fr);gap:24px;align-items:start}

  /* ---------- the input sheet ---------- */
  .sfform .card-head{padding:12px 18px}
  .sfsheetin{padding:6px 18px 4px}
  .sfgroup{border:0;margin:0;padding:0 0 6px}
  .sfgroup legend{display:block;width:100%;font-family:'Zilla Slab';font-weight:800;font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);padding:8px 0 4px;border-bottom:2px solid var(--ink)}
  .sfrow{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:3px 0}
  .sfrow>label,.sfrow>.sflab,.sflabw>label{font-family:'Zilla Slab';font-weight:700;font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink2)}
  /* The grey value cells of Brian's sheet: quiet until focused, so the column reads as data. */
  .sfrow select,.sfrow .txtin{background-color:var(--alt);border-color:transparent;padding-block:6px;font-size:.92rem;min-height:34px}
  .sfrow select{padding-right:30px;background-position:right 10px center}
  .sfrow select:disabled{opacity:1;cursor:default;color:var(--ink2);background-image:none}
  /* A zone the point already names, said rather than picked (shared.js zoneLine). */
  /* The elevation's unit, beside it (shared.js unitChip). */
  .sfrow .zc-withunit{display:flex;align-items:center;gap:6px;min-width:0}
  .sfrow .zc-withunit .txtin{flex:1;min-width:0}
  .sfrow .zc-unitchip{flex:none;width:auto;min-height:34px;font-size:.82rem;padding:4px 26px 4px 8px;background-color:var(--card);border:1px solid var(--line-strong);border-radius:7px;background-position:right 8px center}
  .sfrow .zc-unitchip:disabled{opacity:.5}
  @media (pointer: coarse){ .sfrow .zc-unitchip{min-height:44px} }
  .sfrow .zc-zoneline{display:flex;align-items:center;min-height:34px;padding:6px 10px;font-size:.92rem;color:var(--ink);line-height:1.3}
  .sfrow select:focus,.sfrow .txtin:focus{background-color:var(--field);border-color:var(--ink);outline:2px solid var(--ink);outline-offset:0}
  .sfrow [aria-invalid="true"]{border-color:var(--danger);background-color:#FDF3F2}
  .sffield-err{font-size:.8rem;font-weight:600;color:var(--danger);padding:4px 0 6px 106px;line-height:1.4}
  .sfhint{font-size:.78rem;line-height:1.45;color:var(--ink3);padding:4px 0 6px}

  /* Field tips (ziacon_helper.rb): an "i" after the label, and its popover. The label cell
     holds both, so the row keeps its two columns. */
  .sflabw{display:flex;align-items:center;gap:6px;min-width:0}
  .zc-tip{flex:none;display:inline-grid;place-items:center;width:16px;height:16px;padding:0;border:1.5px solid var(--ink3);border-radius:50%;background:none;color:var(--ink2);font:italic 700 .62rem/1 Georgia,serif;cursor:help;position:relative}
  /* A 32px target around the 16px mark (44px on touch), without moving the label. */
  .zc-tip::after{content:"";position:absolute;inset:-8px}
  .zc-tip:hover,.zc-tip:focus-visible,.zc-tip:has(+ .zc-tippop:popover-open){border-color:var(--ink);color:var(--ink);background:var(--alt)}
  .zc-tippop{position:fixed;inset:auto;margin:0;width:min(320px,calc(100vw - 24px));padding:10px 12px;border:1px solid var(--line);border-top:3px solid #F0B100;border-radius:8px;background:#fff;color:var(--ink);box-shadow:0 8px 24px rgba(20,24,31,.16);font-size:.82rem;line-height:1.5;text-align:left}
  .zc-tippop p{margin:0}
  .zc-tippop .zc-tiph{font-family:'Zilla Slab';font-weight:800;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:4px}
  @media (pointer: coarse){ .zc-tip::after{inset:-14px} }

  /* A group folded to one line that says what it is set to (Units, or Vertical & units). */
  .sfmore{border-top:2px solid var(--ink);margin-top:6px}
  .sfmore>summary{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:8px 0;cursor:pointer;list-style:none}
  .sfmore>summary::-webkit-details-marker{display:none}
  .sfmore-lab{font-family:'Zilla Slab';font-weight:800;font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);white-space:nowrap}
  .sfmore-lab::after{content:"";display:inline-block;width:6px;height:6px;margin-left:8px;border-right:2px solid var(--ink2);border-bottom:2px solid var(--ink2);transform:rotate(45deg) translateY(-2px);transition:transform .15s}
  .sfmore[open] .sfmore-lab::after{transform:rotate(-135deg) translateY(-1px)}
  .sfmore-val{font-size:.8rem;color:var(--ink2);text-align:right;line-height:1.35}
  .sfmore[open] .sfmore-val{display:none}
  .sfmore .sfgroup legend{border-bottom-width:1px}

  .sfseg{display:grid;grid-template-columns:1fr 1fr;background:var(--alt);border-radius:9px;padding:3px;gap:3px}
  .sfseg button{font-family:'Zilla Slab';font-weight:700;font-size:.8rem;color:var(--ink2);background:transparent;border:0;border-radius:7px;min-height:32px;padding:4px 6px;cursor:pointer}
  .sfseg button:hover{color:var(--ink)}
  .sfseg button.active{background:var(--card);color:var(--ink);box-shadow:var(--shadow)}
  @media (pointer: coarse){ .sfseg button{min-height:44px} .sfrow select,.sfrow .txtin{min-height:44px} }

  /* The button stays in view while the form scrolls, so the next action is never off screen. */
  .sfcalcbar{position:sticky;bottom:0;z-index:2;background:var(--card);border-radius:0 0 14px 14px;padding:10px 18px 14px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
  .sfcalcbar .btn{width:100%;font-size:1rem;padding-block:.75rem}
  .sfcalcbar .btn:disabled{opacity:.7;cursor:progress}
  /* Off until the required fields are filled (shared.js gateButtons); the tooltip says what is missing. */
  .sfcalcbar .btn[data-gated]:disabled,.sfactions .btn[data-gated]:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
  .sfstatus{font-size:.84rem;line-height:1.45;color:var(--ink2)}
  .sfstatus:empty{display:none}
  .sfstatus.err{color:var(--danger);font-weight:600}

  /* ---------- the report ---------- */
  .sfout{display:flex;flex-direction:column;gap:12px;min-width:0}
  .sfactions{display:flex;flex-wrap:wrap;gap:8px}
  .sfactions .btn.sm{min-height:40px}
  /* Clear sits under the sheet, at the right, away from Print and Copy. */
  .sf-clearbar{display:flex;justify-content:flex-end}
  .sf-clearbar .btn.sm{min-height:40px}
  /* The pasted line takes the room; the field order is a small select beside it. */
  .sf-pasteline{display:flex;gap:6px;min-width:0}
  .sf-pasteline .txtin{flex:1 1 auto;min-width:0}
  .sf-pasteline select{flex:0 0 7rem;width:7rem}

  .sfsheet{background:#fff;color:var(--ink);border:1px solid var(--line-strong);border-radius:4px;box-shadow:0 2px 4px rgba(20,24,28,.05),0 24px 48px -28px rgba(20,24,28,.35);padding:clamp(18px,3.4vw,36px);font-variant-numeric:tabular-nums;line-height:1.45}
  .sf-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:10px;border-bottom:3px solid var(--ink)}
  .sf-brand{display:flex;align-items:center;gap:8px;font-family:'Zilla Slab';font-weight:800;font-size:1.05rem;color:var(--ink)}
  .sf-brand svg{width:20px;height:20px}
  .sf-date{font-size:.85rem;color:var(--ink2)}
  .sf-title{font-size:clamp(1.4rem,2.6vw,1.8rem);margin-top:14px}

  /* Fields edited on the report itself: text until you point at them. */
  /* Fields edited on the report itself: a dashed underline on screen says they can be typed in;
     on paper they are plain text. */
  .sf-edit{font:inherit;color:inherit;background:transparent;border:0;border-bottom:1px dashed var(--line-strong);border-radius:0;padding:2px 0;width:100%;min-width:0}
  .sf-edit:hover{border-bottom-color:var(--ink3)}
  .sf-edit:focus{outline:2px solid var(--ink);outline-offset:1px;background:var(--accent-bg)}
  .sf-edit::placeholder{color:var(--ink3);opacity:1}
  .sf-project{font-family:'Zilla Slab';font-weight:700;font-size:1.25rem;color:var(--ink2);margin-top:6px}
  .sf-project::placeholder{color:var(--ink3)}
  .sf-sysline{font-size:.8rem;color:var(--ink2);margin-top:6px;line-height:1.5}
  .sf-sysline:empty{display:none}

  .sf-stale{margin-top:12px;font-size:.86rem;color:var(--ink);background:var(--accent-bg);border:1px solid var(--accent-line);border-radius:6px;padding:8px 12px}
  .sf-stale-print{display:none}
  .sfsheet.is-stale .sf-body,.sfsheet.is-stale .sf-map,.sfsheet.is-stale .zc-result,.sfsheet.is-stale .zc-sides,.sfsheet.is-stale .zc-tablewrap{opacity:.45;transition:opacity .2s}

  .sf-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:6px 32px;margin-top:16px}
  .sf-dl{border-top:1px solid var(--ink)}
  .sf-dl .sf-kv{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:6px 0;border-bottom:1px dotted var(--line-strong)}
  .sf-dl dt{font-family:'Zilla Slab';font-weight:700;font-size:.7rem;letter-spacing:.07em;text-transform:uppercase;color:var(--ink2)}
  /* The symbol sits outside the uppercase styling: h and H are different heights. */
  .sf-dl dt i{font-family:Barlow;text-transform:none;letter-spacing:0;font-weight:500}
  .sf-dl dd{text-align:right;font-size:.92rem;font-weight:500;color:var(--ink);overflow-wrap:anywhere}
  .sf-factors dd{font-family:'Zilla Slab';font-weight:700;font-size:1.05rem;white-space:nowrap}
  /* The combined scale factor is the number surveyors copy: ruled above and below, larger. */
  .sf-factors .sf-strong{border-top:2px solid var(--ink);border-bottom:2px solid var(--ink);padding:8px 0}
  .sf-factors .sf-strong dt{color:var(--ink)}
  .sf-factors .sf-strong dd{font-size:1.45rem}
  .sf-factors .sf-inv{margin-top:10px;border-top:1px solid var(--ink)}
  .sf-factors dd.muted{font-family:Barlow;font-weight:500;font-size:.85rem;color:var(--ink3)}
  .sf-copy{margin-top:10px}
  .sf-empty{display:none;margin-top:14px;font-size:.92rem;color:var(--ink2)}
  .sfsheet.is-empty .sf-empty{display:block}
  .sfsheet.is-empty .sf-dl dd{color:var(--ink3)}
  .sfsheet.is-empty .sf-copy{display:none}

  .sf-notes{list-style:none;margin-top:14px;display:flex;flex-direction:column;gap:6px}
  .sf-notes li{font-size:.82rem;color:var(--ink2);padding:7px 11px;background:var(--alt);border-radius:6px}
  .sf-notes li.warn{background:var(--accent-bg);border:1px solid var(--accent-line);color:var(--ink)}

  .sf-map{height:220px;margin-top:16px;border:1px solid var(--line-strong);border-radius:3px;background:var(--alt)}
  .sf-apply{font-size:.84rem;color:var(--ink);margin-top:14px}
  .sf-apply b{font-weight:700}
  .sf-apply span{display:block}

  .sf-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-top:22px}
  .sf-sign{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px}
  .sf-line{display:flex;flex-direction:column;justify-content:flex-end;min-height:40px}
  .sf-line .sf-edit,.sf-line span{font-size:.88rem;color:var(--ink);padding:0 2px 3px;border-bottom:1px solid var(--ink);min-height:1.7em}
  .sf-line .sf-edit:hover{border-bottom-color:var(--ink)}
  .sf-line em{font-style:normal;font-size:.75rem;color:var(--ink3);margin-top:4px}
  .sf-qr{display:flex;flex-direction:column;align-items:center;gap:4px;width:84px;flex-shrink:0}
  .sf-qr svg{width:84px;height:84px;display:block}
  .sf-qr span{font-size:.72rem;line-height:1.4;color:var(--ink3);text-align:center}
  .sf-method{font-size:.78rem;color:var(--ink3);margin-top:14px;line-height:1.5;max-width:68ch}
  .sf-colophon{display:flex;justify-content:space-between;gap:12px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line);font-size:.75rem;color:var(--ink3)}
  /* The version a report was made with (config/ziacon/changelog.yml), so a result can be cited. */
  .sf-colophon .zc-version{color:inherit;text-decoration:none}

  @media(max-width:980px){ .sfgrid{grid-template-columns:minmax(0,1fr)} }
  /* On a phone the label sits above its field, so long values ("State Plane 2022 (NGS beta)",
     "Degrees-Minutes-Seconds") are not cut off by a 96px label column. */
  @media(max-width:480px){
    .sfrow{grid-template-columns:minmax(0,1fr);gap:4px;padding:6px 0}
    .sffield-err{padding-left:0}
  }
  @media(max-width:560px){
    .sf-sign{grid-template-columns:minmax(0,1fr)}
    .sf-foot{flex-direction:column;align-items:stretch}
    .sf-qr{align-self:flex-end}
  }

  @media print{
    /* One page, black on white, no screen chrome. The shadow and radius are screen depth, and
       every vertical gap tightens: a GIS office files a single sheet. */
    .sfsheet{border:0 !important;box-shadow:none !important;border-radius:0 !important;padding:0 !important;color:#000 !important;font-size:9.5pt;line-height:1.35}
    .sfsheet *{color:#000 !important}
    .sf-date,.sf-sysline,.sf-line em,.sf-qr span,.sf-method,.sf-colophon,.sf-dl dt{color:#333 !important}
    .sf-edit{border-bottom-color:transparent !important;background:none !important}
    .sf-line .sf-edit{border-bottom-color:#000 !important}
    .sf-edit::placeholder{color:transparent !important}
    .sf-copy,.sf-clearbar,.sf-empty,.leaflet-control-zoom,.sf-stale-screen{display:none !important}
    /* A stale report printed with Ctrl+P carries a stamp, not old numbers passing for current. */
    .sfsheet.is-stale .sf-stale{display:block !important;border:2px solid #000 !important;background:none !important;font-weight:700;font-size:11pt;padding:6px 10px;margin:8px 0}
    .sfsheet.is-stale .sf-stale-print{display:inline}
    .sfsheet.is-stale .sf-body,.sfsheet.is-stale .sf-map,.sfsheet.is-stale .zc-result,.sfsheet.is-stale .zc-sides,.sfsheet.is-stale .zc-tablewrap{opacity:1 !important}
    .sf-edit{border-bottom-style:solid !important}
    .sf-line em{font-size:7.5pt}
    .sf-method{font-size:7.5pt;max-width:none}
    .sf-colophon{font-size:7.5pt}
    .sf-title{margin-top:10px;font-size:16pt}
    .sf-body{grid-template-columns:1fr 1fr !important;gap:4px 26px;margin-top:10px}
    .sf-dl .sf-kv{padding:3px 0}
    .sf-dl dd{font-size:9.5pt}
    .sf-factors .sf-strong dd{font-size:14pt}
    .sf-factors .sf-strong{padding:4px 0}
    .sf-notes li{background:none !important;border:1px solid #999 !important}
    .sf-map{height:2.4in;margin-top:12px;break-inside:avoid}
    .sf-foot{margin-top:14px;break-inside:avoid}
    .sf-qr,.sf-qr svg{width:72px}
    .sf-qr svg{height:72px}
    /* markPrintChain hides the report's siblings but not its ancestors' own padding: the tool
       section's padding and the grid's gap cost the page its last inch. */
    .tool,.tool>.container,.panel{padding:0 !important;margin:0 !important}
    .sfgrid,.sfout{display:block !important;gap:0 !important}
  }
}

/* ---------- ZiaCon 1.3.0: Brian's review (2026-11-04, 11-06) ----------
   Comps and decisions: ZiaMap AI vault, 02-areas/product/releases/ziacon-brian-r1. */
.ziacon{
  /* The tool choice as two cards: Brian's eye skipped the old pill tabs. */
  .tabs.tabcards{display:grid;grid-template-columns:repeat(2,minmax(0,300px));gap:12px;background:none;border:0;padding:0;margin-bottom:22px}
  .tabs.tabcards .tab{position:relative;display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;
    text-align:left;padding:14px 16px;min-height:72px;border:1.5px solid var(--line-strong);border-radius:12px;background:#fff;color:var(--ink);box-shadow:none;cursor:pointer}
  .tabs.tabcards .tab svg{grid-row:1 / span 2;width:36px;height:36px;padding:7px;border-radius:9px;background:var(--alt);color:var(--ink2)}
  .tabs.tabcards .tab-t{font-family:'Zilla Slab';font-weight:700;font-size:1.12rem;line-height:1.15}
  .tabs.tabcards .tab-s{font-size:.8rem;line-height:1.3;color:var(--ink3)}
  .tabs.tabcards .tab.active{border-color:var(--ink);background:var(--ink);color:#fff}
  .tabs.tabcards .tab.active svg{background:#F0B100;color:var(--ink)}
  .tabs.tabcards .tab.active .tab-s{color:rgba(255,255,255,.75)}
  .tabs.tabcards .tab.active::after{content:"";position:absolute;left:50%;bottom:-8px;width:14px;height:14px;background:var(--ink);transform:translateX(-50%) rotate(45deg);border-radius:2px}
  .tabs.tabcards .tab:not(.active):hover{border-color:var(--ink)}

  /* The instructions at the top of the input; * marks a required field. */
  .sf-howto{margin:0;padding:10px 18px;background:#FFF7DD;border-bottom:1px solid #F3DF9C;font-size:.86rem;line-height:1.45;color:var(--ink)}
  .sf-ast{color:#B42318;font-weight:800}
  /* The unit at the right edge of a length cell: it stays while typing, unlike a placeholder. */
  .sf-infx{position:relative;display:block}
  .sf-infx .txtin{width:100%;padding-right:52px}
  .sf-sfx{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:.72rem;font-weight:600;color:var(--ink3);pointer-events:none}
  /* A press with a gap: the field outlined in red and its reason under it. */
  .sfrow .txtin.is-invalid,.sfrow select.is-invalid{border:1.5px solid #B42318;background-color:#FFF5F4}
  .sffield-err{display:flex;gap:6px;align-items:flex-start}
  .sffield-err::before{content:"!";flex:none;display:inline-grid;place-items:center;width:15px;height:15px;margin-top:1px;border-radius:50%;background:#B42318;color:#fff;font-size:.7rem;font-weight:800;line-height:1}

  /* The sheet: the point's name on its own line, one box, bold italic for the four key values at
     the size of the rest (Brian, 2026-11-06), a copy button after the three he copies. */
  .sf-pointname{margin:2px 0 4px;font-size:1.3rem;font-weight:800;line-height:1.2;color:var(--ink)}
  .sf-pointname.is-blank{color:var(--ink3);font-weight:600}
  .sf-box{border:1px solid var(--ink);padding:4px 12px 10px;margin-top:8px}
  .sfsheet .sf-dl dd{font-variant-numeric:tabular-nums lining-nums}
  .sfsheet .sf-key dd{font-style:italic;font-weight:700}
  .sf-factors .sf-kv dd{display:inline-flex;align-items:center;gap:8px}
  .sf-cp{position:relative;display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid var(--line-strong);border-radius:6px;background:#fff;color:var(--ink2);cursor:pointer}
  .sf-cp::after{content:"";position:absolute;inset:-8px}
  .sf-cp svg{width:13px;height:13px}
  .sf-cp:hover:not(:disabled){border-color:var(--ink);color:var(--ink)}
  .sf-cp:disabled{opacity:.35;cursor:not-allowed}
  .sf-cp:disabled::after{display:none}
  /* The map at survey scale where the signature block was; before a result, its place. */
  .sfsheet .sf-map{height:340px}
  .sf-mapph{height:140px;margin-top:16px;border:1px dashed var(--line-strong);border-radius:3px;background:var(--alt);display:grid;place-items:center;color:var(--ink3);font-size:.86rem;text-align:center;padding:0 12px}
  .sfsheet:not(.is-empty) .sf-mapph{display:none}
  .sf-north{display:grid;justify-items:center;gap:1px;padding:6px 7px 4px;background:rgba(255,255,255,.92);border:1px solid var(--line-strong);border-radius:4px}
  .sf-north svg{width:16px;height:22px}
  .sf-north b{font:800 .7rem/1 'Zilla Slab',serif}
  .leaflet-control-scale-line{font-size:10px;font-weight:600;border-color:#14181C;background:rgba(255,255,255,.85)}
  /* The foot: who made it and which version, and the QR. */
  .sf-foot-r{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-top:16px;padding-top:10px;border-top:1px solid var(--line)}
  .sf-powered{margin:0 0 2px;font-size:.78rem;color:var(--ink2)}
  .sf-powered b{color:var(--ink)}
  .sf-foot-r .sf-qr{margin:0}
}
/* The PDF on letter with no browser margin, so no header, date or URL around the sheet. */
@page{size:letter;margin:0}
@media print{
  .ziacon .sfsheet{padding:.5in !important}
  .ziacon .sf-cp,.ziacon .sf-mapph,.ziacon .leaflet-control-attribution .leaflet-attribution-flag{display:none !important}
  .ziacon .sfsheet .sf-key dd,.ziacon .sf-factors .sf-strong dd{font-size:inherit !important}
  .ziacon .sfsheet .sf-map{height:3.6in}
  .ziacon .sf-box{padding:2px 10px 6px}
  .ziacon .sf-pointname{font-size:14pt}
}
/* Phones: the two tools as a compact switch; before a result the sheet is its title and one
   line, and Print and Copy link wait for a result. */
@media (max-width:600px){
  .ziacon .tabs.tabcards{grid-template-columns:1fr 1fr;gap:6px}
  .ziacon .tabs.tabcards .tab{grid-template-columns:1fr;min-height:52px;padding:10px;text-align:center;justify-items:center}
  .ziacon .tabs.tabcards .tab svg,.ziacon .tabs.tabcards .tab-s,.ziacon .tabs.tabcards .tab.active::after{display:none}
  .ziacon .tabs.tabcards .tab-t{font-size:1rem}
  .ziacon .sfout:has(.sfsheet.is-empty) .sfactions{display:none}
  .ziacon .sfsheet.is-empty>*:not(.sf-top):not(.sf-title){display:none !important}
  .ziacon .sfsheet.is-empty::after{content:"The sheet fills in here when you press Calculate.";display:block;margin-top:10px;padding:12px;border:1px dashed var(--line-strong);border-radius:6px;font-size:.88rem;color:var(--ink3);text-align:center}
}
/* One emphasis on the sheet: the four key values bold italic, the rest regular; and the focus ring
   that revealReport leaves on the sheet never prints. */
.ziacon .sfsheet .sf-dl .sf-kv dd{font-weight:500}
.ziacon .sfsheet .sf-dl .sf-kv.sf-key dd{font-weight:700;font-style:italic}
@media print{
  .ziacon .sfsheet{outline:none !important}
  /* The single point's map, the same height on screen and on paper, so its pin stays centred. */
  .ziacon .zctool #zsSheet .sf-map{height:3.3in !important}
}
.ziacon #zsSheet .sf-map{height:3.3in}
