/* GeoTerva — the "Inside a module" rows of the home page: the window of each row holds the real screens of three modules (tour-anim.js), laid out at the
   width of a laptop and scaled to the window; the modules' own styles are assets/home/tour-mods.css (scoped under .tv .mod). Here only the box, the
   pointer, the turn-taking and the report window. */
.vp.tvp{background:#eef2f6;cursor:pointer;outline:none}
.vp.tvp:focus-visible{box-shadow:inset 0 0 0 3px var(--gt-terva,#4d7c1f)}
.tv{position:absolute;inset:0;overflow:hidden;user-select:none;-webkit-user-select:none}
.tv .mod{position:absolute;left:0;top:0;transform-origin:0 0;overflow:hidden;background:#f4f7fb;color:#152033;font-size:16px;line-height:1.4;display:flex;flex-direction:column;text-align:left;opacity:0;transition:opacity .5s ease;pointer-events:none}
.tv .mod.on{opacity:1}
.tv .mod header.run-head{flex:none;position:static !important;top:auto !important}
.tv .mod .studio{flex:1 1 auto;min-height:0;display:grid !important;grid-template-columns:minmax(0,1fr) 605px;gap:16px;padding:12px 16px 16px !important;height:auto !important;max-height:none !important;margin:0 !important;max-width:none !important}
.tv .mod.narrow .studio{grid-template-columns:minmax(0,1fr);padding:8px !important}
.tv .mod.narrow .studio-stage{display:none !important}
/* the box's own grid, whatever the reader's screen: the modules' responsive rules follow the real window (on a phone they stack the drawing over the panel
   and give the panel a minimum height; on a tablet they make one column), not the box */
.tv .mod[data-m] .studio{grid-template-columns:minmax(0,1fr) 500px !important;grid-template-rows:minmax(0,1fr) !important;grid-auto-rows:0 !important}
.tv .mod[data-m] .studio-stage{grid-column:1 !important;grid-row:1 !important}
.tv .mod[data-m] .studio-panel{grid-column:2 !important;grid-row:1 !important;min-height:0 !important;align-self:stretch !important}
.tv .mod[data-m].narrow .studio{grid-template-columns:minmax(0,1fr) !important}
.tv .mod[data-m].narrow .studio-stage,.tv .mod[data-m].narrow .studio-panel{grid-column:1 !important}
/* a narrow window, the Report turn: the drawing first, alone and whole (tour-anim.js marks it and the elements around it) */
.tv .mod.narrow.tv-stg .studio-stage{display:flex !important}
.tv .mod.narrow.tv-stg .studio-panel{display:none !important}
.tv .mod.narrow.tv-stg [data-tvpath]:not([data-tvfig])>:not([data-tvpath]){display:none !important}
.tv .mod.narrow.tv-stg [data-tvpath]:not([data-tvfig]){display:flex !important;flex-direction:column !important;flex:1 1 auto !important;min-height:0 !important;height:auto !important;max-height:none !important;margin:0 !important;padding:0 !important;border:0 !important}
.tv .mod.narrow.tv-stg .studio-stage[data-tvpath]{height:100% !important;background:#fff;border-radius:12px}
.tv .mod.narrow.tv-stg [data-tvfig]{flex:1 1 auto !important;display:block !important;width:100% !important;height:100% !important;min-height:0 !important;max-height:none !important;margin:0 !important}
.tv .mod .studio-stage,.tv .mod .studio-panel{min-height:0;height:100% !important;max-height:none !important;position:static !important;top:auto !important}
.tv .mod .studio-stage{overflow:hidden;display:flex !important;flex-direction:column !important;justify-content:flex-start !important;padding:0 !important}   /* the module pads its sticky stage for the page's bars; in the box there are none */
.tv .mod .studio-canvas{flex:1 1 auto !important;height:auto !important;max-height:none !important;min-height:0;display:flex !important;flex-direction:column !important;align-items:stretch !important;justify-content:flex-start !important;aspect-ratio:auto !important}
.tv .mod .studio-canvas>.viewbar{flex:none !important;position:static !important}
.tv .mod .studio-canvas>:not(.viewbar){flex:1 1 auto;min-height:0}
.tv .mod .studio-panel{display:flex !important;flex-direction:column !important;overflow:hidden;padding:0 !important}
.tv .mod .studio-tabs,.tv .mod .tool-tabs{flex:none}
.tv .mod .tv-scroll{flex:1 1 auto;min-height:0;overflow:hidden;position:relative}
.tv .mod .tv-scroll>[data-tabpage]{display:none !important}
.tv .mod .tv-scroll>[data-tabpage].on{display:block !important}
.tv .mod .tv-abar{flex:none}.tv .mod .tv-abar .rw-analyze{position:static !important;margin:0 !important}
.tv .mod [hidden]{display:none !important}
.tv .mod .tv-type{outline:2px solid #173f7c;outline-offset:-1px;box-shadow:0 0 0 3px rgba(23,63,124,.18)}
.tv .mod .tv-press{transform:scale(.95)}
.tv .mod .btn,.tv .mod .gc-method-btn{transition:transform .12s}
/* the report window the module opens for Save as PDF: over the panel (the drawing stays in view; tour-anim.js places it); the A4 page, 794 px, is shown
   at the panel's width (its zoom: tour-anim.js) */
.tv .mod .tv-doc{position:absolute;inset:0;z-index:60;overflow:hidden;display:flex;flex-direction:column;background:#dfe5ec;opacity:0;transform:translateY(26px);transition:opacity .45s ease,transform .5s ease}
.tv .mod .tv-doc.on{opacity:1;transform:none}
.tv .mod .tv-doc-bar{flex:none;display:flex;align-items:center;gap:7px;padding:11px 12px;white-space:nowrap;background:#f4f6f8;border-bottom:1px solid #d5dbe3;font:13px/1.2 "Source Sans 3","Segoe UI",system-ui,sans-serif;color:#34425a}
.tv .mod .tv-doc-bar b{font-weight:600;margin-right:auto;color:#152033}
.tv .mod .tv-doc-bar span{border:1px solid #c9d2dd;border-radius:6px;padding:6px 10px;background:#fff}
.tv .mod .tv-doc-bar span.p{background:#155ca0;border-color:#155ca0;color:#fff}
.tv .mod .tv-doc-scroll{flex:1 1 auto;min-height:0;overflow:hidden}
.tv .mod .tv-paper{width:794px;zoom:.6;margin:24px auto 44px;background:#fff;box-shadow:0 8px 28px rgba(15,35,70,.22);border-radius:2px}
.tv .mod .tv-paper .report{max-width:none !important;margin:0 !important}
.tv .mod[data-m] .tv-doc .blk{display:block}   /* the slope report wraps its sections in .blk, which the modules' common sheet (tour-mods.css, loaded later) makes a three-column grid */
/* the pointer: outside the scaled box, so that its size stays the same */
.tv .ptr{position:absolute;left:0;top:0;width:20px;height:24px;opacity:0;transition:transform .45s cubic-bezier(.3,.9,.3,1),opacity .3s;pointer-events:none;z-index:6;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}
.tv .ptr.on{opacity:1}
/* the data could not be loaded: the window stays empty and calm */
.tv-failed .vp.tvp{background:#eef2f6}
@media (prefers-reduced-motion:reduce){.tv .mod,.tv .ptr,.tv .mod .tv-doc{transition:none !important}}
