/* kit/frame.css — the product frame (kit/frame.js) and the light glass look, on every page that loads it.
   The look is the one James picked on 2026-11-11 from a side-by-side with his own examples ("Yes, light glass";
   docs/REDESIGN-REFERENCES.md, Glassy Dashboard V21 and V30): a rail of frosted glass that floats clear of the screen
   edge with names always showing and the current product as a dark pill, pill tabs across the top, and the page itself
   on frosted panels over a soft picture (a USGS aerial photo of Boulder County). One file re-skins every page: it
   re-points the colours the site's own stylesheets already read (plat.css) instead of restyling pages one by one. */
@import url("/assets/fonts/outfit-9bad65.css");

html:root {
  --gl-glass: rgba(255, 255, 255, .72);
  --gl-glass-2: rgba(255, 255, 255, .56);
  --gl-card: rgba(255, 255, 255, .82);
  --gl-edge: rgba(255, 255, 255, .9);
  --gl-ink: #14161b;
  --gl-ink-2: rgba(20, 22, 27, .66);
  --gl-ink-3: rgba(20, 22, 27, .46);
  --gl-hair: rgba(20, 22, 27, .11);
  --gl-pill: #14161b;
  --gl-pill-ink: #fff;
  --gl-accent: #2f5bff;
  --gl-accent-ink: #fff;
  --gl-shadow: 0 24px 60px rgba(40, 52, 84, .20);
  --gl-blur: blur(22px) saturate(150%);
  --gl-font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gl-rail: 248px;
  /* the site's own colours (plat.css), re-pointed: what was cream type on dark green is dark type on glass */
  --spruce: #eef1f7; --spruce-deep: #ffffff; --spruce-raise: rgba(255, 255, 255, .78);
  --paper: #14161b; --paper-2: #eceff5; --paper-line: rgba(20, 22, 27, .12);
  --ink: #14161b; --ink-mute: rgba(20, 22, 27, .62); --mist: rgba(20, 22, 27, .62); --quiet: rgba(20, 22, 27, .5);
  --coral: #2f5bff; --coral-ink: #2148d8; --gold: #2f5bff; --gold-ink: #8a6410;
  --line: rgba(20, 22, 27, .10); --line-strong: rgba(20, 22, 27, .18);
  --display: var(--gl-font); --body: var(--gl-font);
}
/* a sheet was a cream band with dark type: it is a white frosted card, and inside it "paper" is the card again */
html:root .sheet, html:root .on-paper { --paper: var(--gl-card); }

.sl-frame, .sl-frame *, .sl-tabs, .sl-tabs * { box-sizing: border-box; }
.sl-frame, .sl-tabs {
  color: var(--gl-ink); background: var(--gl-glass); border: 1px solid var(--gl-edge);
  box-shadow: var(--gl-shadow), inset 0 1px 0 rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur);
  font: 400 14.5px/1.3 var(--gl-font); letter-spacing: .1px;
}

/* ---- the rail. On a phone it is a floating bar along the bottom that slides sideways; names stay on. ---- */
.sl-frame {
  position: fixed; z-index: 2000; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: stretch; gap: 2px; padding: 6px; border-radius: 26px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.sl-frame::-webkit-scrollbar, .sl-tabs::-webkit-scrollbar { display: none; }
.sl-frame-brand { display: none; }
.sl-frame-links, .sl-frame-foot { display: flex; gap: 2px; }
.sl-frame-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 64px; min-height: 48px; padding: 4px 7px; border-radius: 18px;
  color: var(--gl-ink-2); text-decoration: none; font-size: 11px; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.sl-frame-link:hover { color: var(--gl-ink); background: var(--gl-glass-2); }
.sl-frame-link[aria-current="page"] {
  color: var(--gl-pill-ink); font-weight: 500; background: var(--gl-pill); box-shadow: 0 8px 22px rgba(20, 22, 27, .26);
}
.sl-frame-link:focus-visible, .sl-tab:focus-visible, .sl-frame-brand:focus-visible { outline: 2px solid var(--gl-accent); outline-offset: 2px; }
.sl-frame-icon { display: inline-flex; }
.sl-frame-icon svg { width: 18px; height: 18px; }

/* ---- the tabs: pills in their own glass bar; the current one is the dark pill ---- */
.sl-tabs {
  position: relative; z-index: 1500; display: flex; gap: 4px; margin: 10px 10px 0; padding: 5px; border-radius: 999px;
  overflow-x: auto; scrollbar-width: none; font-size: 14px;
}
.sl-tab {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  color: var(--gl-ink-2); text-decoration: none; white-space: nowrap; transition: background-color .15s ease, color .15s ease;
}
.sl-tab:hover { color: var(--gl-ink); background: var(--gl-glass-2); }
.sl-tab[aria-current="page"] { color: var(--gl-pill-ink); background: var(--gl-pill); font-weight: 500; }

/* ---- the page: a soft picture behind, the content on one frosted panel ---- */
html:root, html:root body { background-color: #e9edf5; }
html:root body { color: var(--gl-ink); font-family: var(--gl-font); padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
html:root body:not(.map-home) {
  background: linear-gradient(180deg, rgba(236, 240, 247, .58), rgba(236, 240, 247, .40) 45%, rgba(236, 240, 247, .62)),
    #e9edf5 url("/assets/kit/backdrop.jpg") center / cover no-repeat fixed;
}
html:root body > header.site-head { display: none; }
html:root body:not(.map-home) > main,
html:root body:not(.map-home) > #main,
html:root body:not(.map-home) > #content,
html:root body:not(.map-home) > form#deal {
  background: var(--gl-glass); border: 1px solid var(--gl-edge); border-radius: 28px;
  box-shadow: var(--gl-shadow), inset 0 1px 0 rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur);
  margin: 10px; overflow: clip;
}
html:root .page .sheet, html:root main > .sheet {
  margin: 12px; border: 1px solid var(--gl-edge); border-radius: 24px; box-shadow: 0 10px 30px rgba(40, 52, 84, .08);
}
html:root .page .sheet + .sheet { border-top: 1px solid var(--gl-edge); }
html:root body > footer.site-foot, html:root body > footer {
  margin: 0 10px 10px; border: 1px solid var(--gl-edge); border-radius: 24px; background: var(--gl-glass-2);
  -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur); color: var(--gl-ink-2);
}
html:root h1, html:root h2, html:root h3 { font-family: var(--gl-font); font-weight: 500; letter-spacing: -.2px; }
html:root ::selection { background: var(--gl-accent); color: #fff; }
/* buttons and switches are pills; the lines that were cream on green are hairlines on glass */
html:root .btn, html:root .toggle, html:root .nav-toggle { border-radius: 999px; }
html:root .btn-line, html:root .toggle, html:root .nav-toggle,
html:root .beta-fields input, html:root .beta-fields select { border-color: rgba(20, 22, 27, .22); }
html:root .btn-primary { color: #fff; box-shadow: 0 10px 24px rgba(47, 91, 255, .28); }
html:root .btn-primary:hover { box-shadow: 0 0 0 5px rgba(47, 91, 255, .2); }
html:root .eyebrow { color: var(--gl-accent); }

/* Things pinned to the bottom of the screen sit above the bar: the Help button, and the home map's handle, drawer and legend. */
html:root .sl-help-btn { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
html:root .sl-help-dlg { bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }
html:root body.map-home { padding-bottom: 0; }
html:root body.map-home .map-handle,
html:root body.map-home .house-drawer { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
html:root body.map-home .map-legend { bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 1024px) {
  .sl-frame {
    top: 16px; left: 16px; right: auto; bottom: 16px; width: 216px; flex-direction: column; gap: 3px; padding: 16px 10px 12px;
    border-radius: 28px; overflow-x: visible; overflow-y: auto;
  }
  .sl-frame-brand {
    display: flex; align-items: center; gap: 10px; padding: 2px 10px 14px; color: var(--gl-ink); text-decoration: none;
    font: 500 17px/1.2 var(--gl-font);
  }
  .sl-frame-brand::before {
    content: "s"; width: 30px; height: 30px; border-radius: 10px; background: var(--gl-accent); color: #fff;
    display: grid; place-items: center; font-weight: 600; font-size: 15px;
  }
  .sl-frame-links, .sl-frame-foot { flex-direction: column; gap: 3px; }
  .sl-frame-foot { margin-top: auto; }
  .sl-frame-link {
    flex-direction: row; justify-content: flex-start; gap: 12px; min-width: 0; min-height: 41px; padding: 0 14px;
    border-radius: 999px; font-size: 14.5px;
  }
  .sl-frame-foot .sl-frame-link { min-height: 38px; font-size: 13.5px; }
  html:root body { padding-bottom: 0; padding-left: var(--gl-rail); }
  html:root body:not(.map-home) > main,
  html:root body:not(.map-home) > #main,
  html:root body:not(.map-home) > #content,
  html:root body:not(.map-home) > form#deal { margin: 16px 16px 16px 0; }
  html:root body > footer.site-foot, html:root body > footer { margin: 0 16px 16px 0; }
  html:root .sl-help-btn { bottom: 16px; background: var(--gl-pill); color: #fff; border-color: transparent; }
  html:root .sl-help-dlg { bottom: 72px; }
  .sl-tabs { position: sticky; top: 16px; margin: 16px 16px 0 0; width: fit-content; max-width: calc(100% - 16px); }
  .sl-tabs + main, .sl-tabs + #main { margin-top: 12px !important; }
  /* The home map fills the screen; its own pinned pieces are placed in map-home.css. */
  html:root body.map-home { padding-left: 0; }
}
@media print { .sl-frame, .sl-tabs { display: none; } html:root body { padding: 0; background: #fff; } }

/* Cards that were cream with dark type are white frosted cards; "paper" inside them is the card again. */
html:root :is(.b5-sheet, .card, .cl-again, .cl-pager button, .cl-pick select, .et-table thead th, .lc .bub.her p, .lc .lk-name, .lc .sheet, .mapbox, .pipe-col, .wu-filter, table) { --paper: var(--gl-card); }
/* Dark pills (the current choice) keep white type. */
html:root :is(.bb-tabs button[aria-pressed="true"], .btn-ink, .cl-view button[aria-pressed="true"], .lc .sheet .gm-mark.on, .links a[aria-current="page"], .wu-btns .btn.on) { --paper: #fff; }
html:root .b5-sheet, html:root .card, html:root .pipe-col, html:root .mapbox { border-radius: 22px; border: 1px solid var(--gl-edge); }
