/* BIM LOD guide (/lod-guide/). Loaded on that page only.
   Scoped for embedding in the site shell: every selector sits under the .lodg
   wrapper, classes that collide with assets/styles.css or assets/script.js are
   renamed lg-* (hero, section, lede, eyebrow, reveal, ladder, in, open), and the
   keyframes are lg-* so they can never clash with site keyframes. Tokens live on
   .lodg, not :root, so nothing here reaches the site header, footer or other
   pages (the one exception, the page's scroll padding for the sticky bar, is set on
   html below; this stylesheet loads on this page only). The site's global resets
   (margin/padding 0, list-style none, heading weight 500, text colour) are undone
   below only where the guide relied on the browser defaults.
   Colour: the site's own tokens. Per-level colours appear only where they carry
   meaning (the level numbers, the ladder, the 3D model, coverage LOD pills and package
   accents); labels are neutral, and every selected state uses one style, the site's
   own .filter-chip.active (crimson border, crimson-soft fill).
   Rhythm: sections 96 / 64 px (top / bottom) on desktop, 64 / 40 on phones; blocks
   inside them 40, 24 and 16 apart. Chapters alternate --bg-0 and --bg-1 bands, and the
   site grid shows only behind the hero. Structure comes from spacing and type, with
   few borders or boxes. */
.lodg {
  --bg: #0A0A0B;                        /* site --bg-0 */
  --bg2: #101013;                       /* site --bg-1 */
  --card: #15151A;                      /* site --bg-2 */
  --card2: #1C1C22;
  --line: #2A2A32;
  --line2: #3A3A44;                     /* site --border-strong */
  --text: #FAFAFA;
  --muted: #A1A1AA;
  --dim: #909099;
  --accent: #DF0000;
  --accent-text: #FF3B30;               /* site --crimson-text: crimson for small text, 4.5:1 or better on every guide surface */
  --sel-line: var(--accent);            /* selected: site .filter-chip.active border */
  --sel-fill: rgba(223, 0, 0, .08);     /* selected: site --crimson-soft */
  --radius: 0px;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Outfit", "Avenir Next", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Menlo, monospace;
  --gut: clamp(16px, 4vw, 48px);        /* side gutter */
  --nav-h: 69px;                        /* the site's fixed header (styles.css .nav) */
  --sub-h: 45px;                        /* the sticky "on this page" bar */
  color-scheme: dark;
  background: var(--bg); color: var(--text); font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 699px) { .lodg { --nav-h: 61px; } }
/* in-page links land below the site header and the sticky bar */
html:has(.lodg .lg-subnav) { scroll-padding-top: 126px; }
/* The site gives body overflow-x: hidden, which makes it a scroll container, so nothing inside
   could ever stick to the window. clip trims sideways overflow the same way without that, so the
   "on this page" bar can stick (where clip is unsupported the bar simply scrolls with the page). */
body:has(.lodg .lg-subnav) { overflow-x: clip; }
.lodg * { box-sizing: border-box; }
.lodg [hidden] { display: none !important; }
.lodg a { color: inherit; }
.lodg button { font: inherit; color: inherit; cursor: pointer; }
.lodg button:disabled { cursor: default; }
.lodg h1, .lodg h2, .lodg h3, .lodg h4 { font-family: var(--display); font-weight: 700; color: inherit; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
.lodg em { font-style: normal; color: var(--accent-text); }
.lodg :focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 0; }
.lodg .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- one selected style for every choice, toggle and filter ---------- */
.lodg .lv-btn[aria-checked="true"], .lodg .vt-seg button[aria-pressed="true"],
.lodg .sc-tabs button[aria-pressed="true"], .lodg .el-chips button[aria-pressed="true"],
.lodg .sc-btn[aria-pressed="true"], .lodg .cov-tabs button[aria-pressed="true"],
.lodg .chips input:checked + span, .lodg .seg button[aria-checked="true"] {
  color: var(--text); border-color: var(--sel-line); background-image: linear-gradient(var(--sel-fill), var(--sel-fill));
}
/* the tick on choices, drawn with borders so it adds nothing to the accessible name */
.lodg .chips input:checked + span::before, .lodg .seg button[aria-checked="true"]::before {
  content: ""; display: inline-block; width: 5px; height: 10px; margin: 0 9px 3px 1px; vertical-align: middle;
  border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- sections and type ---------- */
/* Full-bleed bands (so the alternate background runs edge to edge), content 1280px wide */
.lodg .lg-section { padding: 96px max(var(--gut), calc((100% - 1280px) / 2)) 64px; }
.lodg .lg-alt { background: var(--bg2); }
.lodg .section-head { max-width: 760px; margin-bottom: 40px; }
.lodg .section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 10px 0 16px; }
.lodg .section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.lodg .lg-eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 0; }
.lodg .lg-link { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* quiet notes: a small mono label and muted text, no box */
.lodg .lg-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.lodg .lg-note strong { color: var(--text); }
.lodg .lg-note-k { display: block; margin-bottom: 4px; font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 767px) {
  .lodg .lg-section { padding-top: 64px; padding-bottom: 40px; }
  .lodg .section-head { margin-bottom: 24px; }
  .lodg .section-head p { font-size: 16px; }
}
/* the plus/minus on every disclosure */
.lodg .lg-x { width: 14px; height: 14px; position: relative; flex: none; }
.lodg .lg-x::before, .lodg .lg-x::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--muted); transition: transform .3s; }
.lodg .lg-x::after { transform: rotate(90deg); }
.lodg details[open] > summary .lg-x::after { transform: rotate(0); }

/* ---------- hero: the headline, then the stage, full width ---------- */
/* Stacked at every width: breadcrumb, eyebrow, headline and lede (a compact block, left-aligned
   with the page content), then the 3D stage across the whole content width, then the level
   buttons and the explanation. Top padding clears the site's fixed header. The site grid shows
   here only, fading out towards the foot of the hero. */
.lodg .lg-hero {
  position: relative;
  padding: calc(var(--nav-h) + 28px) max(var(--gut), calc((100% - 1440px) / 2)) 64px;
  background-image:
    linear-gradient(180deg, transparent 55%, var(--bg)),
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}
.lodg .lg-hero > .breadcrumb { margin-bottom: 16px; flex-wrap: wrap; }
.lodg .hero-copy { max-width: 1000px; }
.lodg .lg-hero h1 { font-size: clamp(30px, 4.2vw, 60px); margin: 0 0 14px; letter-spacing: -.025em; }
.lodg .lg-hero h1 .lg-eyebrow { display: block; margin-bottom: 12px; }
.lodg .lg-lede { color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; margin: 0; max-width: 760px; }
.lodg .lg-lede strong { color: var(--text); }

/* ---------- the explorer: stage, view row, level buttons, explanation, notes ---------- */
.lodg .explorer { display: grid; min-width: 0; margin-top: 20px; container: lg-explorer / inline-size; }

/* The stage: the model floats on the page (transparent canvas, edges faded), with its scene
   choices on it (dark panels: .86 or more keeps muted text at 4.5:1 over a white part). It is a
   size container, so the poster can be sized exactly like the live camera's view. */
.lodg .stage { position: relative; height: clamp(480px, 65vh, 760px); container-type: size; }
@media (max-width: 767px) { .lodg .stage { height: clamp(400px, 112vw, 520px); } }
.lodg .viewer { position: absolute; inset: 0; overflow: hidden; }
.lodg .viewer canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; opacity: 0; transition: opacity .5s ease; }
.lodg .viewer canvas, .lodg .poster-img {
  --fade: transparent, rgba(0, 0, 0, .3) 3%, rgba(0, 0, 0, .72) 6.5%, #000 10%, #000 90%, rgba(0, 0, 0, .72) 93.5%, rgba(0, 0, 0, .3) 97%, transparent;
  -webkit-mask-image: linear-gradient(90deg, var(--fade)), linear-gradient(180deg, var(--fade));
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, var(--fade)), linear-gradient(180deg, var(--fade));
  mask-composite: intersect;
}
.lodg .viewer canvas:active, .lodg .viewer canvas.is-grabbing { cursor: grabbing; }
.lodg .viewer.is-live canvas { opacity: 1; }
/* the frozen picture of the previous state, faded out over the new one (viewer3d.js) */
.lodg .viewer canvas.viewer-snap, .lodg .viewer.is-live canvas.viewer-snap { position: absolute; inset: 0; opacity: 0; transition: none; pointer-events: none; }
/* Poster: a still of the live render (same first view, transparent background) until the canvas
   fades in over it. The camera keeps a fixed vertical field of view, and in a box narrower than
   1.25:1 it stands back so the width fits; the still is sized the same way: the box height, or
   80% of the box width when that is smaller, centred. */
.lodg .viewer-poster { position: absolute; inset: 0; transition: opacity .5s ease; }
.lodg .viewer.is-live .viewer-poster { opacity: 0; pointer-events: none; }
.lodg .poster-img { position: absolute; left: 50%; top: 50%; display: block; max-width: none; width: auto; height: 100%; height: min(100cqh, 80cqw); transform: translate(-50%, -50%); }
.lodg .poster-load { display: none; position: absolute; left: 10%; right: 10%; bottom: 0; height: 2px; overflow: hidden; }
.js .lodg .poster-load { display: block; }                 /* no script: the still is all there is */
.lodg .poster-load::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--accent); animation: lg-load 1.4s ease-in-out infinite; }
@keyframes lg-load { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.lodg .viewer-poster.is-still .poster-load { display: none; }

/* scene choices on the stage: buildings and single elements top left, GPR and the tour top right */
.lodg .scene-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 12px; pointer-events: none; }
.lodg .scene-bar > * { pointer-events: auto; }
.lodg .sc-left { display: grid; gap: 6px; justify-items: start; }
.lodg .sc-right { display: flex; flex-wrap: wrap; gap: 6px; }
.lodg .sc-tabs { display: flex; gap: 2px; padding: 3px; background: rgba(10, 10, 11, .86); border: 1px solid var(--line2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lodg .sc-tabs button { border: 1px solid transparent; background: none; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .2s, border-color .2s; }
.lodg .sc-tabs button:not([aria-pressed="true"]):hover { color: var(--text); border-color: var(--line2); }
.lodg .el-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 3px 3px 3px 10px; background: rgba(10, 10, 11, .86); border: 1px solid var(--line2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; color: var(--muted); }
.lodg .el-chips span { margin-right: 4px; }
.lodg .el-chips button { border: 1px solid var(--line2); background: var(--bg2); padding: 3px 9px; font-size: 12px; color: var(--muted); transition: color .2s, border-color .2s; }
.lodg .el-chips button:not([aria-pressed="true"]):hover { color: var(--text); border-color: var(--muted); }
.lodg .sc-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: rgba(10, 10, 11, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 7px 14px 7px 11px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .2s, border-color .2s; }
.lodg .sc-btn:not([aria-pressed="true"]):hover { color: var(--text); border-color: var(--muted); }
.lodg .gpr-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #ff8a3d; }
.lodg .gpr-btn[aria-pressed="true"] .gpr-dot { background: #ff8a3d; }
.lodg .tour-ico { width: 0; height: 0; border-left: 9px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.lodg .tour-btn[aria-pressed="true"] .tour-ico { width: 9px; height: 11px; border: 0; border-left: 3px solid var(--accent); border-right: 3px solid var(--accent); }
@container lg-explorer (max-width: 900px) { .lodg .tour-more { display: none; } }
/* phones: a labelled select replaces the element chips */
.lodg .el-select { display: none; min-width: 0; }
/* the select reads "Single element" until one is chosen, so it is plainly a choice */
.lodg .el-select select { width: 100%; min-width: 0; height: 100%; min-height: 34px; background: rgba(10, 10, 11, .86); color: var(--text); border: 1px solid var(--line2); border-radius: 0; padding: 4px 8px; font: 600 13px var(--font); }
.lodg .gpr-legend { position: absolute; right: 0; top: 46px; z-index: 2; display: grid; grid-template-columns: auto auto auto; gap: 4px 16px; padding: 10px 12px; background: rgba(10, 10, 11, .88); border-left: 2px solid #ff8a3d; font-size: 12px; }
.lodg .gpr-legend strong, .lodg .gpr-legend em { grid-column: 1 / -1; }
.lodg .gpr-legend strong { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #ffb37a; }
.lodg .gpr-legend span { display: flex; align-items: center; gap: 8px; color: var(--text); }
.lodg .gpr-legend span::before { content: ""; width: 16px; height: 4px; border-radius: 2px; background: var(--c); }
.lodg .gpr-legend em { color: var(--dim); font-style: normal; font-size: 11px; }

/* the stage's foot: the level badge, and the showcase's Skip control and progress line */
.lodg .stage-foot { position: absolute; left: 0; bottom: 12px; z-index: 2; pointer-events: none; }
.lodg .stage-foot > * { pointer-events: auto; }
.lodg .stage-badge { margin: 0; display: flex; align-items: baseline; gap: 8px; padding: 6px 12px 7px; background: rgba(10, 10, 11, .86); border: 1px solid var(--line2); font: 600 14px/1.2 var(--display); color: var(--text); white-space: nowrap; }
.lodg .stage-badge b { font-size: 22px; font-weight: 700; color: var(--c); }
/* the showcase's Skip control sits just above the badge, out of the flow, so it moves nothing */
.lodg .intro-ui { position: absolute; left: 0; bottom: calc(100% + 6px); width: max-content; margin: 0; display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; background: rgba(10, 10, 11, .86); border: 1px solid var(--line2); font: 500 12px/1.3 var(--mono); color: var(--muted); }
.lodg .intro-skip { min-height: 32px; padding: 4px 12px; border: 1px solid var(--line2); background: none; color: var(--text); font: 600 13px var(--font); }
.lodg .intro-skip:hover { border-color: var(--accent); }
.lodg .intro-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 2px; background: var(--line); }
.lodg .intro-bar i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .6s ease; }

/* "Drag to rotate": once per visit, over the lower part of the model, for about 4 s (app.js). It
   takes no clicks, so the first drag reaches the model, and it is decoration for assistive
   technology (the hint line under the stage says the same). Out of the flow: it moves nothing.
   The rounded shape marks it as a hint, not one of the square controls. */
.lodg .drag-hint { position: absolute; left: 50%; bottom: 22%; z-index: 2; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); padding: 7px 16px 7px 9px; border-radius: 999px; background: rgba(10, 10, 11, .72); border: 1px solid var(--line2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--text); font: 500 13px/1.35 var(--font); pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.lodg .drag-hint.is-on { opacity: .94; }
.lodg .drag-hint svg { flex: none; width: 32px; height: 32px; overflow: visible; }
.lodg .dh-hand path { stroke: var(--bg); }
.lodg .drag-hint.is-on .dh-hand { animation: lg-sway 2s ease-in-out 2; }
@keyframes lg-sway { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* without WebGL: still images, and only the controls that work on them */
.lodg .still-note { display: none; margin: 8px 0 0; font: 500 12px/1.4 var(--mono); color: var(--muted); }
.lodg .explorer.is-still .still-note { display: block; }
.lodg .explorer.is-still .scene-bar, .lodg .explorer.is-still .view-row, .lodg .explorer.is-still #cmpBtn { display: none; }

/* the view row under the stage: the hint, then the quieter camera controls */
.lodg .view-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 8px; }
.lodg .vt-hint { margin: 0; font: 400 12px/1.4 var(--mono); color: var(--dim); }
.lodg .vt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.lodg .vt-seg, .lodg .vt-cam { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.lodg .vt button { min-height: 32px; padding: 4px 7px; border: 1px solid transparent; background: none; font-size: 13px; font-weight: 500; color: var(--muted); transition: color .2s, border-color .2s; }
.lodg .vt button:hover:not(:disabled) { color: var(--text); }
.lodg .vt button:disabled { opacity: .45; }
.lodg .vt-seg button[aria-pressed="true"] { font-weight: 600; }
.lodg .vt-ico { display: inline-grid; place-items: center; width: 32px; padding: 0 !important; }
.lodg .vt-ico svg { width: 17px; height: 17px; }
.lodg .vt-sep { width: 1px; height: 16px; margin: 0 4px; background: var(--line2); }

/* the four level buttons: number (a small accent in the level's colour), name, one line */
.lodg .lv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.lodg .lv-btn { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: left; padding: 12px 14px 13px; border: 1px solid var(--line2); background: none; transition: border-color .2s; }
.lodg .lv-btn:hover { border-color: var(--muted); }
.lodg .lv-btn[aria-checked="true"]:hover { border-color: var(--sel-line); }
.lodg .lv-top { display: flex; align-items: baseline; gap: 8px; }
.lodg .lv-n { font: 700 22px/1 var(--display); color: var(--c); }
.lodg .lv-name { font: 600 15px/1.2 var(--display); color: var(--text); }
.lodg .lv-mean { font-size: 13px; line-height: 1.4; color: var(--muted); }
@container lg-explorer (max-width: 600px) {
  .lodg .lv { gap: 6px; }
  .lodg .lv-btn { padding: 10px 8px 11px; align-items: flex-start; }
  .lodg .lv-top { flex-direction: column; gap: 3px; }
  .lodg .lv-n { font-size: 20px; }
  .lodg .lv-name { font-size: 13px; }
  .lodg .lv-mean { display: none; }               /* the explanation below says the same */
}
/* Compare and LOD 500: two quiet toggles under the buttons */
.lodg .lv-opts { display: flex; flex-wrap: wrap; gap: 0 32px; margin-top: 8px; }
.lodg .lv-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 0; border: 0; background: none; font-size: 14px; color: var(--muted); text-align: left; transition: color .2s; }
.lodg .lv-opt::before { content: ""; flex: none; width: 14px; height: 14px; border: 1px solid var(--line2); background: transparent; transition: background .2s, border-color .2s; }
.lodg .lv-opt:hover:not(:disabled) { color: var(--text); }
.lodg .lv-opt[aria-pressed="true"] { color: var(--text); }
.lodg .lv-opt[aria-pressed="true"]::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg); }
.lodg .lv-opt:disabled { opacity: .45; }
.lodg .lv-opt-sub { font: 500 12px var(--mono); color: var(--dim); }
.lodg .lv-opt-k { font: 700 13px var(--display); color: var(--c); }

/* the explanation of the selected level */
.lodg .lx { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.lodg .lx > * { max-width: 860px; }
.lodg .lx-lead { display: grid; gap: 8px; }
.lodg .lx-title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.lodg .lx-lod { color: var(--c); font-weight: 700; }
.lodg .lx-changed { margin: 0; font-size: 17px; line-height: 1.55; }
.lodg .lx-rely { margin: 0; font-size: 15px; line-height: 1.55; }
.lodg .lx-k { display: block; font: 600 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.lodg .lx-scene { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.lodg .lx-tech { margin-top: 4px; }
/* the as-built and scope notes: quiet, side by side under the explanation */
.lodg .lg-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 767px) { .lodg .lg-notes { grid-template-columns: 1fr; } }
.lodg .lx-tech summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; min-height: 32px; font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lodg .lx-tech summary::-webkit-details-marker { display: none; }
.lodg .lx-tech summary:hover { color: var(--text); }
.lodg #lxTech { display: grid; gap: 16px; padding-top: 12px; }
.lodg .tx-note { margin: 0; font-size: 13px; color: var(--muted); }
.lodg .chars { display: grid; gap: 7px; }
.lodg .char { display: grid; grid-template-columns: 88px 1fr 98px; align-items: center; gap: 10px; font-size: 13px; }
.lodg .char-n { color: var(--muted); }
.lodg .char-bar { height: 4px; background: var(--line); overflow: hidden; }
.lodg .char-bar i { display: block; height: 100%; background: var(--c); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.lodg .char-s { font: 500 11px var(--mono); color: var(--muted); text-align: right; }
.lodg .tx-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lodg .tx-cols h3, .lodg .tier h4 { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 6px; }
.lodg .tx-cols ul, .lodg .tier ul { margin: 0; padding: 0; list-style: none; font-size: 14px; display: grid; gap: 5px; }
.lodg .tx-cols li, .lodg .tier li { padding-left: 18px; position: relative; }
.lodg .tx-cols li::before, .lodg .tier li::before { content: "\2713"; position: absolute; left: 0; color: var(--c, var(--accent)); font-weight: 700; }
.lodg ul.neg li::before { content: "\2715"; color: #e2667a; }
.lodg .tx-list { margin: 0; display: grid; gap: 10px; font-size: 14px; }
.lodg .tx-list dt { font: 600 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.lodg .tx-list dd { margin: 0; color: var(--muted); }

/* phones: the scene choices in two rows (buildings; then the element select, GPR and the tour) */
@media (max-width: 640px) {
  .lodg .lg-hero { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 40px; }
  .lodg .lg-hero > .breadcrumb { margin-bottom: 12px; }
  .lodg .lg-hero h1 .lg-eyebrow { margin-bottom: 8px; font-size: 11px; }
  .lodg .explorer { margin-top: 16px; }
  .lodg .scene-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
  .lodg .sc-left, .lodg .sc-right { display: contents; }
  .lodg .sc-tabs { grid-column: 1 / -1; }
  .lodg .sc-tabs button { flex: 1 1 0; padding: 6px 4px; font-size: 13px; }
  .lodg .el-chips { display: none; }
  .lodg .el-select { display: flex; }
  .lodg .sc-btn { padding: 6px 10px 6px 9px; font-size: 13px; gap: 6px; }
  .lodg .tour-more { display: none; }
  .lodg .gpr-legend { top: 88px; left: 0; right: auto; grid-template-columns: 1fr 1fr; }
  .lodg .stage-badge b { font-size: 18px; }
  .lodg .lx-changed { font-size: 16px; }
  .lodg .char { grid-template-columns: 78px 1fr 84px; }
  .lodg .tx-cols { grid-template-columns: 1fr; }
}
/* the narrowest phones: the select gets a row of its own */
@container lg-explorer (max-width: 340px) {
  .lodg .scene-bar { grid-template-columns: 1fr 1fr; }
  .lodg .el-select { grid-column: 1 / -1; }
  .lodg .sc-btn { justify-content: center; }
}

/* ---------- sticky "on this page" bar ---------- */
/* It follows the hero in the page and sticks under the site header once reached. Below the
   site menu (z-index 100), so an open menu covers it; the phone CTA bar is at the bottom. */
.lodg .lg-subnav { position: sticky; top: var(--nav-h); z-index: 40; height: var(--sub-h); background: rgba(10, 10, 11, .94); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lodg .sn-inner { display: flex; gap: 28px; height: 100%; padding: 0 max(var(--gut), calc((100% - 1280px) / 2)); overflow-x: auto; scrollbar-width: none; }
.lodg .sn-inner::-webkit-scrollbar { display: none; }
.lodg .sn-inner a { position: relative; flex: none; display: flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s; }
.lodg .sn-inner a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
.lodg .sn-inner a:hover, .lodg .sn-inner a[aria-current] { color: var(--text); }
.lodg .sn-inner a[aria-current]::after { transform: scaleX(1); }
@media (max-width: 640px) { .lodg .sn-inner { gap: 22px; } .lodg .sn-inner a { font-size: 13px; } }

/* ---------- packages (#tiers): the one full comparison ---------- */
.lodg .tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.lodg .tier { --c: #2fd38a; display: flex; flex-direction: column; gap: 16px; padding-top: 20px; border-top: 2px solid var(--c); }
.lodg .tier-lod { font: 600 13px var(--mono); color: var(--c); }
.lodg .tier-top h3 { font-size: 30px; margin: 8px 0 4px; }
.lodg .tier-sub { margin: 0; color: var(--muted); }
.lodg .tier-use { margin: 0; font-size: 15px; }
.lodg .tier-note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.lodg .tier-who { font-size: 14px; color: var(--muted); margin: auto 0 0; }
.lodg .tier-who span { display: block; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.lodg .tier-500 { margin: 0; font-size: 13px; color: var(--dim); }
.lodg .tier-views { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lodg .tier-views > span { width: 100%; font-size: 13px; color: var(--muted); }
.lodg .tiers-foot { margin-top: 40px; max-width: 760px; font-size: 15px; }
@media (max-width: 960px) { .lodg .tiers { grid-template-columns: 1fr; gap: 40px; } }

.lodg .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--accent); color: #fff; font-weight: 600; padding: 12px 20px; border-radius: 0; text-decoration: none; transition: filter .2s; }
.lodg .btn:hover { filter: brightness(1.1); }
.lodg .btn.small { padding: 9px 16px; font-size: 14px; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); align-self: flex-start; }
.lodg .btn.small:hover { box-shadow: inset 0 0 0 1px var(--c); filter: none; }
.lodg .btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }

/* ---------- from model to drawings (#drawings) ---------- */
/* Six example A3 sheets, the page's one bright moment. Each card is a plain link to its SVG;
   app.js opens it in a <dialog> instead (built on first use). */
.lodg .dwg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.lodg .dwg-card { min-width: 0; display: flex; flex-direction: column; }
.lodg .dwg-open { display: block; padding: 8px; background: #fff; line-height: 0; cursor: zoom-in; outline-offset: 3px; transition: box-shadow .25s; }
.lodg .dwg-open:hover { box-shadow: 0 0 0 1px var(--muted); }
.lodg .dwg-open img { display: block; width: 100%; height: auto; aspect-ratio: 420 / 297; }
.lodg .dwg-cap { margin: 0; padding: 14px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lodg .dwg-cap b { font-family: var(--display); font-size: 18px; line-height: 1.2; }
.lodg .dwg-meta { color: var(--muted); font-size: 14px; }
.lodg .dwg-no { font: 500 12px var(--mono); color: var(--dim); letter-spacing: .04em; }
.lodg .dwg-foot { margin: 40px 0 0; color: var(--muted); font-size: 15px; }
.lodg .dwg-dialog { width: min(100% - 24px, 1400px); max-width: none; max-height: 94vh; margin: auto; padding: 0; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--bg2); color: var(--text); }
.lodg .dwg-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.lodg .dwg-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.lodg .dwg-dlg-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lodg .dwg-dlg-title { font-size: 18px; }
.lodg .dwg-dlg-actions { display: flex; align-items: center; gap: 16px; }
.lodg .dwg-dlg-actions form { margin: 0; }
.lodg .dwg-dlg-close { border: 1px solid var(--line2); background: var(--card); padding: 6px 14px; border-radius: var(--radius); }
.lodg .dwg-dlg-close:hover { border-color: var(--accent); }
/* the sheet keeps a readable size and pans inside the dialog on small screens */
.lodg .dwg-dlg-body { flex: 1 1 auto; min-height: 0; overflow: auto; background: #fff; overscroll-behavior: contain; }
.lodg .dwg-dlg-img { display: block; width: 100%; min-width: 760px; height: auto; }
.lodg .dwg-dlg-note { margin: 0; padding: 8px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 960px) { .lodg .dwg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
@media (max-width: 560px) {
  .lodg .dwg-grid { grid-template-columns: 1fr; gap: 32px; }
  .lodg .dwg-dlg-bar { flex-wrap: wrap; }
}

/* ---------- check an item (#coverage) ---------- */
.lodg .cov-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.lodg .cov-tabs { display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.lodg .cov-tabs button { border: 1px solid var(--line2); background: none; padding: 8px 14px; border-radius: 0; font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; transition: color .2s, border-color .2s; }
.lodg .cov-tabs button:hover { color: var(--text); }
.lodg .cov-tabs button[aria-pressed="true"] { font-weight: 600; }
.lodg .cov-tabs button.hid { border-style: dashed; }
.lodg .cov-tabs button.hid[aria-pressed="true"] { border-style: solid; }
.lodg .cov-tabs .cnt { font: 600 11px var(--mono); color: var(--dim); }
.lodg .cov-search input { width: min(320px, 100%); background: var(--bg); border: 1px solid var(--line2); color: var(--text); border-radius: 0; padding: 10px 16px; font: inherit; font-size: 14px; }
.lodg .cov-search input::placeholder { color: var(--muted); opacity: 1; }
.lodg .cov-search input:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.lodg .cov-search { flex: 0 1 320px; order: 2; }   /* after the filters on wide screens; first on phones */
.lodg .cov-table-wrap { border-top: 1px solid var(--line2); }
.lodg .cov { width: 100%; border-collapse: collapse; font-size: 15px; }
.lodg .cov th { text-align: left; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 14px 12px 12px 0; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.lodg .th-tier { color: var(--c); }
.lodg .cov td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lodg .cov td.it { font-weight: 600; min-width: 190px; }
.lodg .cov td.nt { color: var(--muted); font-size: 14px; }
.lodg .cov .dash { color: var(--dim); font-weight: 600; padding-left: 10px; }
/* "Not modelled" is drawn as a short rule (the text is in a screen-reader span),
   so the copy carries no dash character. */
.lodg .cov .dash::before { content: ""; display: inline-block; width: 12px; height: 2px; background: currentColor; vertical-align: middle; }
.lodg .cov-cat { display: block; font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.lodg .cov tr.is-hidden td.it { color: #ffc49b; }
.lodg .noscan { display: inline-block; font: 600 12px var(--mono); color: var(--muted); border: 1px dashed var(--line2); padding: 2px 9px; border-radius: 0; margin: 0 8px 6px 0; text-decoration: line-through; text-decoration-color: rgba(226, 102, 122, .7); }
.lodg .see3d { border: 0; background: none; color: var(--accent-text); font: 600 12px var(--mono); padding: 0; margin-left: 4px; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.lodg .cov-empty { color: var(--muted); padding: 20px 0; margin: 0; }
.lodg .pill { display: inline-block; font: 600 12px var(--mono); color: var(--c); border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 2px 9px; border-radius: 2px; margin-right: 8px; white-space: nowrap; }
/* label pills that carry no level meaning: quiet grey outline, muted text */
.lodg .pill.quiet { color: var(--muted); border-color: var(--line2); background: transparent; }
.lodg .gpr { margin-top: 40px; display: grid; grid-template-columns: 300px 1fr; gap: 24px 40px; align-items: center; }
.lodg .gpr h3 { font-size: 22px; margin-bottom: 8px; }
.lodg .gpr p { margin: 0; color: var(--muted); }
.lodg .gpr p strong { color: var(--text); }
.lodg .gpr-art svg { width: 100%; display: block; }
.lodg .gpr-cart { animation: lg-cart 6s ease-in-out infinite alternate; }
.lodg .gpr-waves { animation: lg-cart 6s ease-in-out infinite alternate; }
.lodg .gpr-waves path { animation: lg-wave 1.2s ease-out infinite; }
.lodg .gpr-waves path:nth-child(2) { animation-delay: .25s; } .lodg .gpr-waves path:nth-child(3) { animation-delay: .5s; }
@keyframes lg-cart { to { transform: translateX(170px); } }
@keyframes lg-wave { from { opacity: 1; } to { opacity: 0; } }
.lodg .gpr-hit { opacity: .15; animation: 6s ease-in-out infinite alternate; }
.lodg .gpr-hit.h1 { animation-name: lg-hit1; } .lodg .gpr-hit.h2 { animation-name: lg-hit2; } .lodg .gpr-hit.h3 { animation-name: lg-hit3; }
@keyframes lg-hit1 { 0%, 25% { opacity: .15; } 35%, 100% { opacity: 1; } }
@keyframes lg-hit2 { 0%, 55% { opacity: .15; } 65%, 100% { opacity: 1; } }
@keyframes lg-hit3 { 0%, 85% { opacity: .15; } 95%, 100% { opacity: 1; } }
@media (max-width: 760px) {
  .lodg .gpr { grid-template-columns: 1fr; }
  /* search above the filters; the filters become one sideways-scrolling row (app.js keeps the active one in view) */
  .lodg .cov-search { order: 0; flex: 1 1 100%; }
  .lodg .cov-search input { width: 100%; }
  .lodg .cov-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .lodg .cov-tabs button { flex: 0 0 auto; white-space: nowrap; }
  .lodg .cov thead { display: none; }
  .lodg .cov tr { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 6px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .lodg .cov td { border: 0; padding: 0; }
  .lodg .cov td.it, .lodg .cov td.nt { grid-column: 1 / -1; }
  .lodg .cov tr.is-hidden td[colspan] { grid-column: 1 / -1; }
  .lodg .cov td:not(.it):not(.nt):not([colspan])::before { display: block; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
  .lodg .cov td:nth-child(2):not([colspan])::before { content: "Layout"; }
  .lodg .cov td:nth-child(3):not(.nt)::before { content: "Engineering"; }
  .lodg .cov td:nth-child(4)::before { content: "Fabrication"; }
  .lodg .cov .dash { padding-left: 0; }
}

/* ---------- build your scope (#wizard) ---------- */
.lodg .wiz { display: grid; gap: 24px; }
.lodg .wiz fieldset { border: 0; border-top: 1px solid var(--line); padding: 20px 0 0; margin: 0; min-width: 0; }
.lodg .wiz legend { float: left; width: 100%; font: 600 17px var(--display); padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.lodg .wiz legend + * { clear: both; }
.lodg .wiz legend span { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border: 1px solid var(--line2); color: var(--text); font: 600 13px var(--mono); }
.lodg .wiz legend small { color: var(--dim); font: 400 13px var(--font); }
.lodg .chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.lodg .chips label { position: relative; }
.lodg .chips input { position: absolute; opacity: 0; pointer-events: none; }
.lodg .chips span { display: inline-block; padding: 9px 16px; border-radius: 0; border: 1px solid var(--line2); background: none; font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s; user-select: none; }
.lodg .chips span:hover { border-color: var(--muted); }
.lodg .chips input:checked + span { font-weight: 600; padding-left: 12px; }
.lodg .chips input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.lodg .check { display: flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--muted); font-size: 14px; }
.lodg .check input { accent-color: var(--accent); width: 18px; height: 18px; }
.lodg .result { margin-top: 40px; background: var(--bg2); border-top: 2px solid var(--accent); padding: clamp(20px, 3vw, 32px); }
.lodg .result-tier { display: grid; gap: 2px; margin-bottom: 24px; }
.lodg .rt-label { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.lodg .rt-name { font: 700 clamp(32px, 4vw, 46px)/1.1 var(--display); }
.lodg .rt-name.is-mixed { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.lodg .rt-prompt { font: 600 clamp(20px, 2.4vw, 26px)/1.3 var(--display); color: var(--text); margin-top: 4px; }
.lodg .rt-sub { color: var(--muted); }
.lodg .matrix { width: 100%; border-collapse: collapse; font-size: 15px; }
.lodg .matrix th { text-align: left; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line2); }
.lodg .matrix td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lodg .matrix td:last-child { color: var(--muted); }
.lodg .matrix tr.excl td:first-child { color: var(--muted); font-size: 14px; }
.lodg .result-notes { margin: 24px 0 0; padding-left: 18px; list-style: disc; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.lodg .result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.lodg .copied { color: var(--accent-text); font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .lodg .matrix thead { display: none; }
  .lodg .matrix tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 4px; }
  .lodg .matrix td { border: 0; padding: 0; }
  .lodg .result-actions .btn { flex: 1 1 100%; }
}

/* ---------- reference (#reference): collapsed blocks, quieter text ---------- */
.lodg .ref { border-top: 1px solid var(--line); }
.lodg .ref:last-of-type { border-bottom: 1px solid var(--line); }
.lodg .ref > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; }
.lodg .ref > summary::-webkit-details-marker { display: none; }
.lodg .ref-h { display: grid; gap: 4px; }
.lodg .ref-h h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; }
.lodg .ref-sub { color: var(--muted); font-size: 15px; }
.lodg .ref > summary:hover h3 { color: var(--text); }
.lodg .ref > summary:hover .lg-x::before, .lodg .ref > summary:hover .lg-x::after { background: var(--text); }
.lodg .ref-body { padding: 0 0 40px; display: grid; gap: 24px; font-size: 15px; color: var(--muted); }
.lodg .ref-p { margin: 0; max-width: 760px; }
.lodg .ref-p strong { color: var(--text); }
.lodg .ref-h4 { font-size: 18px; color: var(--text); margin-top: 16px; }
.lodg .lg-attrib { margin: 40px 0 0; color: var(--dim); font-size: 12.5px; max-width: 980px; }
.lodg .lg-attrib a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ladder */
.lodg .lg-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lodg .rung-btn { width: 100%; display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 16px 0; transition: background .2s; }
.lodg .rung:last-child .rung-btn { border-bottom: 0; }
.lodg .rung-btn:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 7%, transparent), transparent 60%); }
.lodg .rung-id { font: 700 34px/1 var(--display); color: var(--c); padding-left: 4px; }
.lodg .rung-body { display: grid; gap: 2px; }
.lodg .rung-name { font: 600 18px var(--display); color: var(--text); }
.lodg .rung-an { color: var(--c); font-size: 14px; font-style: italic; }
.lodg .rung-txt { color: var(--muted); font-size: 15px; }
.lodg .rung-go { font: 600 13px var(--mono); color: var(--dim); white-space: nowrap; }
.lodg .rung-btn:hover .rung-go { color: var(--text); }
.lodg .new { font-style: normal; font: 600 10px var(--mono); letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line2); padding: 1px 6px; margin-left: 8px; vertical-align: 3px; white-space: nowrap; }
@media (max-width: 640px) { .lodg .rung-btn { grid-template-columns: 56px 1fr; gap: 12px; } .lodg .rung-id { font-size: 26px; } .lodg .rung-go { display: none; } }

/* weakest-link game */
.lodg .game-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 40px; align-items: center; }
.lodg .game-controls { display: grid; gap: 10px; }
.lodg .g-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; }
.lodg .g-n { font-weight: 600; color: var(--text); }
.lodg .seg { display: flex; border: 1px solid var(--line); padding: 3px; gap: 3px; }
.lodg .seg button { flex: 1; border: 1px solid transparent; background: none; padding: 7px 6px; font-size: 13px; color: var(--muted); transition: color .2s; }
.lodg .seg button:hover { color: var(--text); }
.lodg .seg button[aria-checked="true"]::before { margin-right: 7px; }
.lodg .game-result { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.lodg .game-svg { width: 100%; max-width: 200px; border: 1px solid var(--line); }
.lodg #gCol { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.lodg #gCol rect { transition: fill .4s, height .4s, opacity .3s; }
.lodg #gTol { transition: r .5s, opacity .4s; stroke-width: 2; }
.lodg .game-lod { font: 700 clamp(40px, 5vw, 56px)/1 var(--display); }
.lodg .game-lod.pop { animation: lg-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes lg-pop { from { transform: scale(.8); opacity: .3; } }
.lodg .game-out p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
@media (max-width: 960px) { .lodg .game-body { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .lodg .game-result { grid-template-columns: 1fr; justify-items: center; text-align: center; } .lodg .g-row { grid-template-columns: 1fr; gap: 4px; } }

/* what a scanner can and can't see */
.lodg .scan-combo { max-width: 760px; font-size: 15px; }
.lodg .scan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.lodg .scan-card { margin: 0; display: grid; gap: 16px; }
.lodg .scan-svg { width: 100%; background: var(--bg); border: 1px solid var(--line); }
.lodg .scan-card figcaption { color: var(--muted); font-size: 15px; }
.lodg .scan-card figcaption strong { color: var(--text); }
.lodg .beams line { stroke-dasharray: 160; animation: lg-beam 2.4s linear infinite; }
.lodg .beams line:nth-child(2) { animation-delay: .3s; } .lodg .beams line:nth-child(3) { animation-delay: .6s; }
.lodg .beams.b2 line { animation-delay: 1.2s; }
@keyframes lg-beam { 0% { stroke-dashoffset: 160; opacity: 0; } 20% { opacity: 1; } 100% { stroke-dashoffset: -160; opacity: 0; } }
.lodg .pts circle { opacity: 0; animation: lg-pt 4.8s ease-out infinite; }
@keyframes lg-pt { 0% { opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.lodg .scan-note { margin: 0; max-width: 760px; color: var(--muted); }
.lodg .scan-note strong { color: var(--text); }
.lodg .scan-note em { color: #22c7e0; }
.lodg .svg-l { font: 600 11px var(--mono); fill: var(--muted); text-anchor: middle; }
.lodg .svg-l.warn { fill: #ff8a3d; font-size: 14px; }
.lodg .svg-big { font: 700 34px var(--display); fill: var(--text); }
.lodg .svg-big.q { fill: #22c7e0; animation: lg-blink 2s infinite; }
@keyframes lg-blink { 50% { opacity: .35; } }
@media (max-width: 860px) { .lodg .scan-grid { grid-template-columns: 1fr; } }

/* rules of thumb: the three ideas, then the ten rules */
.lodg .idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.lodg .idea h4 { font-size: 19px; color: var(--text); margin: 16px 0 8px; }
.lodg .idea p { margin: 0; color: var(--muted); font-size: 15px; }
.lodg .idea-art { border: 1px solid var(--line); padding: 12px; }
.lodg .idea-art svg { width: 100%; height: 120px; display: block; }
.lodg .mix rect { transform-box: fill-box; transform-origin: bottom; animation: lg-grow 3.2s ease-in-out infinite alternate; }
.lodg .mix rect:nth-child(2) { animation-delay: .4s; } .lodg .mix rect:nth-child(3) { animation-delay: .8s; } .lodg .mix rect:nth-child(4) { animation-delay: 1.2s; }
@keyframes lg-grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.lodg .stairs .over { animation: lg-over 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
@keyframes lg-over { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.lodg .spin-dash { animation: lg-dash 6s linear infinite; }
@keyframes lg-dash { to { stroke-dashoffset: -110; } }
@media (max-width: 960px) { .lodg .idea-grid { grid-template-columns: 1fr; gap: 32px; } }
.lodg .rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.lodg .rule { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.lodg .rule-t { display: flex; gap: 12px; font-size: 16px; font-weight: 600; color: var(--text); }
.lodg .rule-n { font: 600 14px/1.5 var(--mono); color: var(--accent-text); }
.lodg .rule p { margin: 0; font-size: 14.5px; }
.lodg .myth { color: #ffb4bf; text-decoration: line-through; text-decoration-color: rgba(226, 102, 122, .6); }
.lodg .myth span { text-decoration: none; display: inline-block; font: 700 10px var(--mono); letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line2); padding: 0 6px; margin-right: 6px; }
@media (max-width: 860px) { .lodg .rules { grid-template-columns: 1fr; } }

/* glossary */
.lodg .glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 40px; margin: 0; }
.lodg .g-item dt { font: 700 15px var(--mono); color: var(--text); }
.lodg .g-item dd { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- reveal ---------- */
/* Hidden only once the site's head script has set html.js, so the content
   (pre-rendered into the HTML at build time) stays readable without JavaScript. */
.lodg .lg-reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .lodg .lg-reveal { opacity: 0; transform: translateY(18px); }
.js .lodg .lg-reveal.lg-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lodg *, .lodg *::before, .lodg *::after { animation: none !important; transition: none !important; }
  .lodg .drag-hint { transition: opacity .4s ease !important; }     /* no sway: it only shows and fades */
  .js .lodg .lg-reveal { opacity: 1; transform: none; }
  .lodg .pts circle { opacity: 1; }
  .js .lodg .poster-load { display: none; }
}

/* ---------- print (wizard result only) ---------- */
/* app.js puts lg-print-wiz on <body> for the duration of "Print / save PDF". */
@media print {
  body.lg-print-wiz { background: #fff; color: #000; }
  body.lg-print-wiz > *:not(main), body.lg-print-wiz main > *:not(.lodg), body.lg-print-wiz .lodg > *:not(#wizard), body.lg-print-wiz .lodg .wiz, body.lg-print-wiz .lodg .result-actions { display: none !important; }
  body.lg-print-wiz .lodg { background: none; color: #000; }
  body.lg-print-wiz .lodg #wizard { padding: 0; }
  body.lg-print-wiz .lodg .section-head p, body.lg-print-wiz .lodg .lg-eyebrow { display: none; }
  .lodg .result, .lodg .matrix td, .lodg .matrix th { border-color: #ccc !important; background: #fff !important; color: #000 !important; }
  .lodg .rt-name, .lodg .rt-sub, .lodg .rt-label, .lodg .result-notes { color: #000 !important; }
  .lodg .pill { color: #000 !important; border-color: #000 !important; background: none !important; }
}
