/* AppWT Manuals floating widgets: back to top, translate, accessibility, cookies.
 *
 * Ported from prismaticflowers.com and re-themed to the AppWT black-and-gold palette.
 * Externalised rather than inlined so the bundle satisfies script-src/style-src 'self'
 * even if the inline allowance is tightened later.
 *
 * Palette (CLAUDE.md brand): base black #0A0A0A, charcoal #1A1A1A / #222222,
 * champagne gold #C4A052 (single accent, under 10% of surface), pearl #FAFAFA,
 * warm gray #A3B5CC.
 */

:root {
  --awx-black: #0A0A0A;
  --awx-charcoal: #1A1A1A;
  --awx-surface: #222222;
  --awx-gold: #C4A052;
  --awx-gold-dim: rgba(196, 160, 82, .22);
  --awx-pearl: #FAFAFA;
  --awx-muted: #A3B5CC;
  --awx-border: rgba(196, 160, 82, .28);
  --awx-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
}

/* ---------------------------------------------------------------- the dock
 * One stack, one owner of the corner. Floating furniture that each positions
 * itself independently is how two controls end up on top of each other, and how a
 * widget lands on whatever the site already pins. One column, fixed gaps.
 */
.awx-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.awx-fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--awx-surface), var(--awx-charcoal));
  color: var(--awx-gold);
  border: 1px solid var(--awx-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--awx-shadow);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  padding: 0;
}
.awx-fab:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #2a2a2a, var(--awx-surface));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 0 1px var(--awx-gold-dim);
}
.awx-fab:focus-visible {
  outline: 3px solid var(--awx-gold);
  outline-offset: 3px;
}
.awx-fab svg { width: 22px; height: 22px; display: block; }

/* Back to top hides until there is somewhere to go back to. */
#awx-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
}
#awx-top.awx-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------------------------------------------------------------- panels */
/* Beside the dock, not above it.
 *
 * A panel anchored above the dock covered the dock's own buttons: the column is about
 * 220px tall and a 620px panel starting 78px up swallows all of it. The collision test
 * caught it, and so did a click that landed on the panel instead of the button under it.
 * Sitting the panel to the LEFT of the column keeps every control reachable while a
 * panel is open. */
.awx-panel {
  position: fixed;
  right: 76px;
  bottom: 18px;
  width: min(370px, calc(100vw - 94px));
  max-height: min(72vh, 620px);
  overflow-y: auto;
  background: var(--awx-charcoal);
  color: var(--awx-pearl);
  border: 1px solid var(--awx-border);
  border-radius: 14px;
  box-shadow: var(--awx-shadow);
  z-index: 2147483001;
  display: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.awx-panel.awx-open { display: block; }

.awx-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--awx-border);
  position: sticky;
  top: 0;
  background: var(--awx-charcoal);
  border-radius: 14px 14px 0 0;
}
.awx-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--awx-gold);
  letter-spacing: .01em;
}
.awx-panel-head .awx-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--awx-muted);
  margin-top: 2px;
}
.awx-x {
  background: transparent;
  border: 1px solid var(--awx-border);
  color: var(--awx-pearl);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  flex: 0 0 auto;
}
.awx-x:hover { background: var(--awx-surface); color: var(--awx-gold); }
.awx-body { padding: 14px 16px 18px; }

.awx-group { margin-bottom: 18px; }
.awx-group:last-child { margin-bottom: 0; }
.awx-group h3 {
  margin: 0 0 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--awx-muted);
  font-weight: 600;
}

.awx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.awx-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 12px;
  background: var(--awx-surface);
  color: var(--awx-pearl);
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: background .15s, border-color .15s, color .15s;
  font-family: inherit;
}
.awx-opt:hover { background: #2c2c2c; border-color: var(--awx-border); }
.awx-opt:focus-visible { outline: 3px solid var(--awx-gold); outline-offset: 2px; }
.awx-opt[aria-pressed="true"] {
  border-color: var(--awx-gold);
  color: var(--awx-gold);
  background: rgba(196, 160, 82, .10);
}
.awx-opt .awx-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--awx-border);
  margin-left: auto; flex: 0 0 auto;
}
.awx-opt[aria-pressed="true"] .awx-dot { background: var(--awx-gold); border-color: var(--awx-gold); }

/* sliders */
.awx-slider-row { margin-bottom: 14px; }
.awx-slider-row:last-child { margin-bottom: 0; }
.awx-slider-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; margin-bottom: 6px;
}
.awx-slider-label b { color: var(--awx-gold); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"].awx-range {
  width: 100%; height: 5px; border-radius: 3px; appearance: none;
  background: var(--awx-surface); border: 1px solid var(--awx-border); cursor: pointer;
}
input[type="range"].awx-range::-webkit-slider-thumb {
  appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--awx-gold); border: 2px solid var(--awx-black); cursor: pointer;
}
input[type="range"].awx-range::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--awx-gold); border: 2px solid var(--awx-black); cursor: pointer;
}

.awx-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.awx-btn {
  flex: 1 1 auto;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--awx-border);
  background: var(--awx-surface);
  color: var(--awx-pearl);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
}
.awx-btn:hover { background: #2c2c2c; }
.awx-btn:focus-visible { outline: 3px solid var(--awx-gold); outline-offset: 2px; }
.awx-btn-primary {
  background: var(--awx-gold);
  color: var(--awx-black);
  border-color: var(--awx-gold);
  font-weight: 600;
}
.awx-btn-primary:hover { background: #d4b264; }

/* A status line instead of alert(). An accessibility tool must never open a blocking
 * modal: it steals focus, cannot be styled, and freezes a headless browser. */
.awx-status {
  margin-top: 10px;
  min-height: 18px;
  font-size: 12px;
  color: var(--awx-gold);
}

/* ---------------------------------------------------------------- cookie bar */
.awx-cookie {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: min(430px, calc(100vw - 36px));
  background: var(--awx-charcoal);
  color: var(--awx-pearl);
  border: 1px solid var(--awx-border);
  border-radius: 14px;
  box-shadow: var(--awx-shadow);
  padding: 18px;
  z-index: 2147483002;
  display: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
}
.awx-cookie.awx-open { display: block; }
.awx-cookie h2 {
  margin: 0 0 7px; font-size: 15px; color: var(--awx-gold); font-weight: 600;
}
.awx-cookie p { margin: 0 0 13px; color: var(--awx-muted); }
.awx-cookie a { color: var(--awx-gold); }

/* SLIM CONSENT CARD ON PHONES — the arithmetic, not a preference (2026-09-29).
 * MEASURED at 390x844 on a clean profile: the card rendered t=597 b=832 h=235 and covered THREE
 * controls, not the one I first reported — "See the new release" (625-675) and "Browse the shelf"
 * (689-740), both by the card's own <p>. To clear the lowest of them the card must END above 740,
 * and with bottom:12px that caps its height at 844-740-12 = 92px. The full notice cannot reach
 * that at any font size, so the TEXT is the constraint and phones get their own complete
 * sentence. NOTHING IS TRUNCATED and the long text stays in the DOM.
 * Tony 2026-09-19: "That cookie banner cannot cover anything important or it needs to go." */
/* APPLIED AT EVERY WIDTH, because Tony's rule has no breakpoint in it. A full elementFromPoint
 * sweep on 2026-09-29 found the card covering 11 controls at 500px and 3 at 1440px, not just the
 * phone case I first reported. Scoping the fix to phones would have left both standing. */
.awx-cookie-long  { display: none; }
.awx-cookie-short { display: block; }
.awx-cookie   { padding: 10px 14px; line-height: 1.35; }
.awx-cookie h2 { display: none; }        /* role="dialog" aria-label="Cookie choices" carries the name */
.awx-cookie p { margin: 0 0 8px; }
.awx-cookie .awx-actions { display: flex; gap: 8px; }
.awx-cookie .awx-status:empty { display: none; margin: 0; }
@media (max-width: 480px) {
  /* SECOND PASS. The first landed the card at t=732 while "Browse the shelf" ends at 740, so its
   * last 8px sat under the card. elementFromPoint tests the CENTRE (714) and reported it clear —
   * a centre-point pass is not a clearance. Trimmed 9px more so the card starts BELOW the button. */
  .awx-cookie   { padding: 8px 12px; font-size: 12.5px; line-height: 1.3; }
  .awx-cookie h2 { display: none; }              /* role="dialog" aria-label carries the name */
  .awx-cookie p { margin: 0 0 6px; }
  .awx-cookie .awx-actions { display: flex; gap: 8px; }
  .awx-cookie .awx-btn { padding: 7px 10px; font-size: 12.5px; min-height: 34px; flex: 1 1 auto; }
  .awx-cookie .awx-status:empty { display: none; margin: 0; }

}

/* On a phone the cookie card and the dock both want the bottom of the screen.
 * The card takes the full width and the dock lifts above it while it is open. */
@media (max-width: 640px) {
  .awx-cookie { left: 12px; right: 12px; width: auto; bottom: 12px; }
  /* One ROW on a phone, so a full-width panel above it clears the buttons instead of
   * burying them. A 4-button column is 220px tall and would leave no usable height. */
  .awx-dock { right: 12px; left: 12px; bottom: 12px; flex-direction: row;
              justify-content: flex-end; }
  /* MEASURED 2026-08-12: the card renders 235px tall and sits 12px off the bottom, so it occupies
   * up to 247px. A 234px lift left the dock 13px INSIDE the card — the buttons were sitting on the
   * cookie notice. 12 + 235 + 10px gap = 257. Browser overlap test, not eyeballed. */
  body.awx-cookie-open .awx-dock { bottom: 257px; }
  .awx-panel { right: 12px; left: 12px; width: auto; bottom: 70px; max-height: 62vh; }
  body.awx-cookie-open .awx-panel { bottom: 292px; }
  .awx-grid { grid-template-columns: 1fr; }
  /* On a phone the cart drawer is 92vw — measured 359 of 390px — so there is no clear side to move
   * the dock to and it still lands on the cart. Stand down while the drawer is open instead.
   * :has() is unsupported on old engines, where this rule is simply ignored and behaviour is
   * unchanged: it can only ever remove an overlap, never create one. */
  body:has(.drawer[open]) .awx-dock,
  body:has(.drawer[open]) .awx-panel { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ------------------------------------------------- desktop: the dock owns the LEFT corner
 * Tony 2026-08-12: "on desktop can we shift the icons to the left instead of right so it does not
 * cover cart slideout?"
 *
 * The storefront's cart drawer is `inset:0 0 0 auto` at 400px — it comes in from the RIGHT, over
 * the top of this dock. Below 1024px the drawer is nearly full-width, so there is no clear side to
 * move to and the phone layout above still applies.
 *
 * ⭐ POSITION LIVES ON THE DOCK. The .awx-fab buttons are static flex children; setting left/right
 * on them does nothing at all, with or without !important. One element owns the corner.
 *
 * ⭐ AND THE COOKIE CARD IS ALREADY DOWN THERE at left:18px. Two independently-positioned pieces of
 * floating furniture in one corner is the collision this file's header warns about, so the dock
 * lifts above the card while it is open: 18px offset + 235px measured card + 12px gap = 265px. */
@media (min-width: 1024px) {
  .awx-dock { right: auto; left: 18px; align-items: flex-start; }
  body.awx-cookie-open .awx-dock { bottom: 265px; }
  .awx-panel { right: auto; left: 76px; }
}

/* ---------------------------------------------------------------- a11y effects
 * Applied at the ROOT only. Never `calc(1em * S)` on every element: 1em resolves
 * against the parent's already-multiplied size, so the factor compounds once per
 * level of nesting and 17.5px becomes 560px five levels down.
 */
html.awx-contrast body { background: #000 !important; color: #fff !important; }
html.awx-contrast body :not(.awx-dock):not(.awx-panel):not(.awx-cookie):not(svg):not(path) {
  background-color: transparent !important;
  color: #fff !important;
  border-color: #fff !important;
}
html.awx-contrast a, html.awx-contrast a * { color: #ffe680 !important; }

html.awx-invert body { filter: invert(1) hue-rotate(180deg); }
html.awx-invert body img,
html.awx-invert body video { filter: invert(1) hue-rotate(180deg); }

html.awx-grayscale body { filter: grayscale(1); }
html.awx-invert.awx-grayscale body { filter: invert(1) hue-rotate(180deg) grayscale(1); }

html.awx-underline body a { text-decoration: underline !important; }

html.awx-readable body,
html.awx-readable body p,
html.awx-readable body li,
html.awx-readable body span,
html.awx-readable body div {
  font-family: Verdana, "DejaVu Sans", Arial, sans-serif !important;
  letter-spacing: .015em;
}

html.awx-nomotion *,
html.awx-nomotion *::before,
html.awx-nomotion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

html.awx-bigcursor body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 2l30 22-13 2 7 14-6 3-7-14-11 8z' fill='%23C4A052' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 4 2, auto;
}

html.awx-focus :focus { outline: 4px solid var(--awx-gold) !important; outline-offset: 2px !important; }

/* A reading guide bar that follows the pointer, for tracking a line of text. */
.awx-guide {
  position: fixed; left: 0; right: 0; height: 40px; pointer-events: none;
  background: rgba(196, 160, 82, .14);
  border-top: 2px solid var(--awx-gold);
  border-bottom: 2px solid var(--awx-gold);
  z-index: 2147482000; display: none;
}
html.awx-guide-on .awx-guide { display: block; }

@media print { .awx-dock, .awx-panel, .awx-cookie, .awx-guide { display: none !important; } }

/* A MODAL DRAWER OUTRANKS A CONSENT BANNER (Clint, Security, 2026-09-29).
 * MEASURED, NOT INFERRED: on the manuals homepage at 390px, with the cart drawer open,
 * document.elementFromPoint over the drawer's Checkout control (#drCo, {l:50,r:372,t:730,b:781})
 * returned button.awx-btn "Essential only" ({l:190,r:359,t:743,b:782}). The banner is 235px tall
 * at z-index 2147483002 and the drawer is z-index 130, so a FIRST-TIME visitor who adds a book
 * and opens the cart cannot press Checkout until they dismiss consent.
 * Tony 2026-09-19, after paid ad spend: "That cookie banner cannot cover anything important or
 * it needs to go ... never ever let this happen again."
 * NOTHING IS REMOVED. Consent is DEFERRED while a modal is open and returns the moment it closes.
 * Two selectors on purpose: :has() is the correct expression and the sibling form is the fallback
 * for an engine without it. Desktop was already reachable; this only changes the covered case. */
body:has(.drawer[open]) .awx-cookie,
.drawer[open] ~ .awx-cookie {
  display: none !important;
}

/* RESERVE THE BAND THE CONSENT CARD OWNS (Clint, Security, 2026-09-29).
 * MEASURED: the card is 235px tall at bottom:12px, so at 390x844 it owns t=597..832 - the whole
 * bottom third. Anything a visitor scrolls to the bottom of the viewport lands under it,
 * including "Buy at -> Get PDF Now" and "Continue to Secure Stripe" at the foot of the buy form.
 * THREE SCROLL MODES GAVE THREE ANSWERS ON AN UNCHANGED SITE - scrollIntoView block:'center'
 * reported 0 of 98 controls covered, block:'nearest' and block:'end' reported 97 of 98. The
 * instrument was deciding the answer, so the fix is not to argue about the probe: it is to make
 * the band unreachable by page content while the card is open.
 * scroll-padding-bottom is exactly the property for this - it stops scrollIntoView and anchor
 * jumps short of a fixed element. padding-bottom guarantees the page can scroll far enough that
 * the last content clears the card.
 * NOTHING IS REMOVED and consent is unchanged; only the space beneath it is reserved. */
/* ⭐ ONE MEASURED NUMBER, NOT THREE GUESSES. 250px cleared the consent CARD and parked the buy
 * button straight under the WIDGET DOCK, which lifts above the card while it is open - the same
 * bottom-bar-ladder defect in a new place. The whole bottom-anchored fixed stack was measured at
 * 320, 360, 390, 414, 480 and 640 CSS px: the dock top is 541 of an 844 viewport at EVERY width,
 * so the stack is 303px and the card (581..623 top, varying with text wrap) is never the topmost
 * part of it. 320px = 303 measured + 17 clearance. */
/* ⚠ RESIZED 2026-09-29 AFTER THE CARD SHRANK, BECAUSE A RESERVE SIZED FOR AN OLD CARD IS WRONG
 * IN BOTH DIRECTIONS. 320 = 303px measured stack + 17 clearance, when the consent card was 235px
 * tall. The card is now MEASURED at 91-105px, so the stack is the dock top at 541 of an 844
 * viewport minus the card's saving = 127 (12px offset + 105px card + 10px gap). Leaving 320 would
 * push 193px of dead space under every page; dropping it entirely would put content back under
 * the card. Measured, then set. */
html:has(.awx-cookie.awx-open) { scroll-padding-bottom: 127px; }
body:has(.awx-cookie.awx-open) { padding-bottom: 127px; }


/* ─────────────────────────────────────────────────────────────────────────────────────────────
 * THE ORIGINAL LIFTS (257 / 292 / 265) ARE KEPT ON PURPOSE, AND HERE IS WHY (2026-09-29).
 *
 * They were derived from a 235px card, so with the card now MEASURED at 91-105px they leave a
 * visible gap between the dock and the card. I recomputed them to 127/162/135 and MEASURED the
 * result: the dock dropped into the hero and covered "Browse the shelf". I then tried standing
 * the two side by side with a 68px inset, measured again, and ALL FOUR DOCK BUTTONS WERE BLOCKED
 * - the dock is a 214px-wide ROW (l=164..378 at 390px), not the single 44px button I had assumed,
 * so the card overlapped it by 158px and won on z-index.
 *
 * ⭐ THE ORIGINAL NUMBERS ARE ALREADY CORRECT ONCE THE CARD IS SHORT. At 390x844 the lift puts
 * the dock at 541-587, ABOVE the hero CTAs (625-740), and the card sits at 742-832, BELOW them.
 * Nothing is covered at either end. The cost is a cosmetic gap; the alternative cost was a
 * blocked accessibility control, and that is not a trade worth making.
 *
 * THE LESSON, WRITTEN HERE SO THE NEXT EDIT DOES NOT REPEAT IT: measure the element you are
 * making room for. I budgeted for one button and the thing was a row of four.
 * ───────────────────────────────────────────────────────────────────────────────────────────── */


/* THE 481-640px BAND GETS ITS OWN LIFT, BECAUSE THE TWO BANDS MEASURE DIFFERENTLY (2026-09-29).
 * At 390x844 the hero CTAs own 625-740, so the 257px lift (dock 541-587) clears them and a 127px
 * lift lands on them. At 500x844 the same CTAs sit near 541-587, so 257 lands ON them and the
 * shorter lift is the one that clears. Card is 105px here: 12 + 105 + 10 = 127, panel +35 = 162.
 * Two numbers because two measurements, not because two guesses. */
@media (min-width: 481px) and (max-width: 640px) {
  body.awx-cookie-open .awx-dock  { bottom: 127px; }
  body.awx-cookie-open .awx-panel { bottom: 162px; }
}


/* ─────────────────────────────────────────────────────────────────────────────────────────────
 * THE DOCK'S EMPTY SPACE WAS SWALLOWING CLICKS (Clint, 2026-09-29, measured).
 *
 * At <=640px the dock is `right:12px; left:12px` - FULL WIDTH - with the buttons pushed right by
 * justify-content:flex-end. The left three quarters of that container is empty and transparent
 * AND STILL WINS THE HIT TEST. Measured at 500x844 with the consent banner DISMISSED:
 * `Security & Privacy` (t=789..823, l=48..176) and `Running the Business` (t=789..823, l=183..330)
 * both returned `div.awx-dock` from elementFromPoint and could not be pressed. Same cause as
 * "See the new release" and "Browse the shelf" reading as covered by the dock earlier today.
 *
 * ⭐ THE CONSENT BANNER WAS NEVER THE CAUSE. I spent two passes moving the banner and the dock
 * around each other; the container's phantom hit area was doing it the whole time, warm and cold.
 *
 * THE FIX MOVES NOTHING. The container stops taking pointer events and its children take them
 * back, which is the standard pattern for a transparent overlay wrapper. Layout is untouched, so
 * every measured position above stays exactly where it is.
 * ───────────────────────────────────────────────────────────────────────────────────────────── */
.awx-dock { pointer-events: none; }
.awx-dock > * { pointer-events: auto; }


/* ─────────────────────────────────────────────────────────────────────────────────────────────
 * THE DOCK RESTS DIRECTLY ABOVE THE CONSENT CARD WHERE THAT COVERS NOTHING NEW
 * (S.A.R.A.H., The Shift wave 15, 2026-09-30). Overrides the lifts above for the bands below;
 * those rules stay for the record. MEASURED on clean profiles, Chrome system-ui font. The card's
 * height changes at 481, 545 and 641px: 91px (<=480), 105px (481-544), 87px (545-640), 105px (641+).
 *
 *   >=1024px   card 105px at bottom 18. The 265px lift left a 198px gap and the panel opened
 *              UNDER the card (panel b=750, card t=645 at 1024x768). Dock 18+105+10 = 133, panel
 *              level with it. The dock's bottom slot belongs to the back-to-top button (hidden
 *              until you scroll), so the visible buttons sit 56px higher at the top of the page,
 *              exactly as they do at rest.
 *   641-1023px card (left) and dock (right) sit side by side, so the dock stays put; the panel
 *              opened under the card (b=1006, card t=901 at 768x1024) and now lifts to 133.
 *   545-640px  card 87px: the 127px lift left a 28px gap. Dock 12+87+10 = 109, panel +58 = 167,
 *              reserved band 109+46+10 = 165.
 *   481-544px  card 105px: the 127px lift is already 10px above it. Only the panel moves, from 162
 *              (11px over the buttons) to 127+58 = 185, the dock's own resting relation.
 *   <=480px    NOT MOVED, ON PURPOSE. Lowering the dock to sit on the card (113px) newly covers a
 *              hero line on /serves/michigan/ada/ at 375x667 and on /free-guides/ at 375x667 and
 *              390x844; no height between the hero and the card covers nothing new on all pages.
 *              That trade is an owner decision (reported). What IS fixed here: the panel opened
 *              off the top of a 667px screen (t=-39), so its height is capped to what is left.
 * ───────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  body.awx-cookie-open .awx-panel { max-height: min(62vh, calc(100vh - 304px)); }
}
@media (min-width: 481px) and (max-width: 544px) {
  body.awx-cookie-open .awx-panel { bottom: 185px; }
}
@media (min-width: 545px) and (max-width: 640px) {
  body.awx-cookie-open .awx-dock  { bottom: 109px; }
  body.awx-cookie-open .awx-panel { bottom: 167px; }
  html:has(.awx-cookie.awx-open:not(.awx-inflow)) { scroll-padding-bottom: 165px; }
  body:has(.awx-cookie.awx-open:not(.awx-inflow)) { padding-bottom: 165px; }
}
@media (min-width: 641px) and (max-width: 1023px) {
  body.awx-cookie-open .awx-panel { bottom: 133px; }
}
@media (min-width: 1024px) {
  body.awx-cookie-open .awx-dock  { bottom: 133px; }
  body.awx-cookie-open .awx-panel { bottom: 133px; }
}
