@import url("./mac-bar.css");
/* The homepage layer on the website sample (om-fvtqd.10): the Mac bar (om-v28ew; web-demo/mac-bar.css), the chip, the welcome note, the store's
   "Sample store" tag, Ask anything turned off, and the small sheets (About, Ask, and the download sheet's stand-in until
   web-demo/get-sheet.js is on the page). Only on the website: every rule is under html[data-om-home], which
   web-demo/home.js sets. The app's own tokens (tokens.css), dark and light. */

/* The footer: room for the Mac bar. The website's day never moves, so the sample clock is not shown; the dock's tools
   are the app's tighter set, and at rest they wait on either side of the bar, showing as the pointer comes near. */
/* Selectors start with P = html[data-om-home][data-frame="v2"]:not(#om-home) so they win over the app's footer rules
   (style.css, nested under html[data-frame="v2"], up to two ids) without !important. */
/* The footer stays where the app has it (--frame-bottom 12px): moving it changes the canvas's room for cards. The Mac bar
   shares the footer's band, centred on it. */
html[data-om-home] {
  /* om-v28ew: the Mac bar (mac-bar.css) bottom centre, in the foot's band; the room the foot keeps for it (its width and
     a gap each side), and --om-home-foot-clear: the bar's full height with the price line and the bottom gap, which the
     canvas's first view keeps clear (om-r0bw0 reads it; defined once, here). */
  --om-mac-bar-gap: var(--frame-bottom, 12px); --om-home-bar-slot: calc(var(--om-mac-bar-w, 304px) + 2 * var(--space-3, 12px));
  /* A plain px length (om-r0bw0's scene.js reads it with parseFloat): the bottom gap 12 + the bar 77 (its two lines and
     the price line, measured at 1x in both engines' stills). */
  --om-home-bar-clear: 89px;
  /* The foot's left group (the wordmark, the views, the dock) ends left of the slot: the views give way (they scroll in
     their own room, style.css om-pgrrc). The wordmark's and the dock's widths are the app's fixed words (measured: 85 px, and the views' 16 px lead;
     the dock 290 px with its names, 106 px as icons below 1920 px). */
  --om-home-wordmark-w: 101px; --om-home-dock-w: 290px;
  /* om-fvtqd.14: All's fit leaves the window's foot clear of cards at rest (the note, the pill, its price line, Ask):
     scene.js planAllRack. 112px: from the note's top (106px above the window's foot at 1280 to 1460 wide) and a gap.
     0.85: the first look is never fitted smaller (the Director's fix pass, 20 Nov); a source may pass under the note. */
  /* om-r0bw0 (the Director, 24 Nov): the height the sample's opening view keeps clear at the window's foot (the note,
     the button with its price line, and the bottom gap), ONE variable: the foot's own task sets it to its bar's height.
     All's fold reads the same value. */
  /* The Director at the merge of om-r0bw0 and om-v28ew (23 Nov): the bar alone is --om-home-bar-clear (89px, above); the
     opening view keeps clear of the bar AND the welcome note above it (10px gap + the note's 33px + 4px): 136px. */
  --om-home-foot-clear: 136px;
  --om-all-fold: var(--om-home-foot-clear); --om-all-min-zoom: 0.85; }
html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud #clock { display: none; }
html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud .account-slot { display: none; }
html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud :is(#district-switch, .tool-dock, .camera-tools) { gap: 0;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-move) var(--ease-out), transform var(--dur-move) var(--ease-out); }
html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud :is(#district-switch, .tool-dock) { transform: translateX(16px); }
html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud :is(.camera-tools) { transform: translateX(-16px); }
html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud:is([data-revealed], :focus-within) :is(#district-switch, .tool-dock, .camera-tools) {
  opacity: 1; transform: none; pointer-events: auto; }
html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud :is(#district-switch, .tool-dock, .camera-tools) button { padding-inline: var(--space-1); }

/* Narrower windows: the tools never go under the Mac bar. Below 1920 px the tools are icons (their names stay as labels
   for assistive tech and as tips), so the views keep their full width beside them; below 1500 px the zoom group gives way (scrolling still zooms); below 1180 px the views fold
   into the app's own Views menu. */
html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud #district-switch.om-frame-group {
  max-inline-size: max(0px, calc(50vw - var(--om-home-bar-slot) / 2 - var(--gutter) - var(--om-home-wordmark-w) - 2 * var(--space-2) - var(--om-home-dock-w))); }
@media (max-width: 1919px) {
  html[data-om-home] { --om-home-dock-w: 106px; }
  html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud .tool-dock button > span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* The zoom group: right of the slot only where it and Ask anything both fit there (1500 px and wider). */
@media (max-width: 1499px) {
  html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud .camera-tools { display: none; }
}
@media (max-width: 1179px) {
  html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud #district-switch { --view-menu-display: inline-flex; }
  html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud #district-switch > :not(.om-views-menu) { display: none; }
}

/* The Mac bar is web-demo/mac-bar.css (the phone page's too). On the desktop the foot keeps a slot for it at its centre
   (--om-home-bar-slot): the wordmark, the views and the dock end left of it, the zoom group and Ask anything sit right of
   it, so nothing in the foot lies under the bar and its words never wrap (1280 to 2560 wide). */
/* The chip: top right, quiet, where the app's sign-in buttons sit (none on the website). */
.om-home-chip { margin-inline: auto 8px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--space-2);
  border: 1px solid var(--rule); border-radius: var(--radius-pill); color: var(--paper-3);
  font: var(--text-small)/1 var(--font-ui); white-space: nowrap; }
.om-home-chip svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* The welcome note: one line above the Mac bar, once; it fades on the first click. */
.om-home-note { position: fixed; z-index: 40; left: 50%; bottom: calc(var(--om-home-bar-clear) + 10px); transform: translateX(-50%);
  padding: 7px 14px; border: 1px solid var(--rule); border-radius: var(--radius-pill); color: var(--paper-2);
  background: color-mix(in srgb, var(--table) 92%, transparent); box-shadow: var(--raise-1); white-space: nowrap;
  font: var(--text-ui)/1.3 var(--font-ui); pointer-events: none; opacity: 1; transition: opacity .6s var(--ease-out); }
.om-home-note[data-fading] { opacity: 0; }

/* Ask anything, turned off on the website: the field stays, with small ChatGPT and Claude marks in place of the keys. */
html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud .om-ask .om-ask-keys { display: none; }
html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud .om-ask .om-ask-field { cursor: pointer; padding-inline-end: 52px; }
.om-home-marks { position: absolute; inset-inline-end: var(--space-2); display: inline-flex; gap: 5px; align-items: center; color: var(--paper-3); pointer-events: none; }
.om-home-marks svg { width: 14px; height: 14px; }

/* The small sheets: never a wall; the page behind stays usable. */
.om-home-sheet { position: fixed; z-index: 60; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 140px); overflow: auto;
  padding: var(--space-4) var(--space-4) var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius-sheet);
  color: var(--paper); background: var(--table); box-shadow: var(--raise-3, var(--raise-2)); font: var(--text-ui)/1.45 var(--font-ui);
  transform-origin: bottom center; animation: om-home-grow var(--dur-move) var(--ease-out); }
.om-home-sheet[hidden] { display: none; }
.om-home-sheet:focus { outline: none; }
.om-home-sheet[data-at="center"] { left: 50%; bottom: 68px; translate: -50% 0; }
.om-home-sheet[data-at="left"] { left: var(--gutter); bottom: 68px; transform-origin: bottom left; }
.om-home-sheet[data-at="right"] { right: var(--gutter); bottom: 68px; transform-origin: bottom right; }
.om-home-sheet h2 { margin: 0 28px var(--space-2) 0; font: var(--weight-strong) 17px/1.25 var(--font-ui); letter-spacing: -.01em; color: var(--paper); }
.om-home-sheet h3 { margin: var(--space-3) 0 var(--space-1); font: var(--weight-strong) var(--text-small)/1.3 var(--font-ui); color: var(--paper-2); }
.om-home-sheet p { margin: 0 0 var(--space-2); color: var(--paper-2); }
.om-home-sheet p.om-home-quiet { color: var(--paper-3); font-size: var(--text-small); }
.om-home-sheet dl { margin: 0; }
.om-home-sheet dt { margin-top: var(--space-2); color: var(--paper); font-weight: var(--weight-medium); }
.om-home-sheet dd { margin: 2px 0 0; color: var(--paper-2); }
.om-home-sheet .om-home-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: var(--radius-control);
  color: var(--paper-3); background: transparent; font: 18px/1 var(--font-ui); cursor: pointer; }
.om-home-sheet .om-home-close:hover { background: var(--well); color: var(--paper); }
.om-home-sheet .om-home-get { display: inline-flex; align-items: center; gap: 7px; margin-top: var(--space-2); height: 34px; padding: 0 var(--space-4);
  border: 1px solid var(--rule-strong); border-radius: var(--radius-pill); color: var(--paper); background: transparent;
  font: var(--weight-medium) var(--text-small)/1 var(--font-ui); cursor: pointer; }
.om-home-sheet .om-home-get:hover { background: var(--well); }
.om-home-sheet .om-home-get svg { width: 12px; height: 14px; margin-top: -2px; fill: currentColor; }
.om-home-replay { display: grid; place-items: center; aspect-ratio: 16 / 9; margin: var(--space-2) 0; border: 1px solid var(--rule); border-radius: var(--radius-control);
  color: var(--paper-3); background: var(--well); font: italic var(--text-note)/1.3 var(--font-voice); text-align: center; padding: var(--space-3); }
@keyframes om-home-grow { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .om-home-sheet { animation: none; } .om-home-note { transition: none; } }

/* The About text is the page's own HTML (for search engines too); shown as a sheet when the wordmark is pressed. */
html[data-om-home][data-frame="v2"]:not(#om-home) #lower-hud .canvas-wordmark { pointer-events: auto; cursor: pointer; }
