/* QuestWorks homepage: the header mega menu and the phone menu, under the locked DS hero.
   Components keep the design system's own styles (ds/tokens.css, ds/bundle.css). Colors are tokens
   or the bundle's own gradients. Everything is still and complete with prefers-reduced-motion. */

:root { --qs-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94); --qs-ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); }
body.qs-body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); }
[hidden] { display: none !important; }
.qs-skip { position: absolute; left: 12px; top: -80px; z-index: 60; padding: 10px 14px; border-radius: var(--radius-control); background: var(--surface); border: 2px solid var(--core); color: var(--head); }
.qs-skip:focus { top: 12px; }

/* ---------- Header menus (mega menu) ---------- */
.qwh { position: relative; z-index: 20; }
.qwh .qw-hero { position: relative; z-index: 0; isolation: isolate; }
.qwh .qs-menu { z-index: 40; }
/* Panel: solid surface (no glass over the hero), hairline bottom, no shadow. It opens by wiping down;
   switching between menus while one is open only crossfades the contents. */
.qwh .qs-menu.qw-menu { display: block; top: 68px; padding: 0; gap: 0; background: var(--surface) !important; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line); }
.qwh .qs-menu.qw-menu[hidden] { display: none; }
.qs-menu { position: absolute; left: 0; right: 0; z-index: 30; clip-path: inset(0 0 100% 0); transition: clip-path .26s var(--qs-ease); }
.qs-menu.on { clip-path: inset(0 0 -2px 0); }
.qs-menu.qs-switch { transition: none; }
.qs-mm-in { max-width: 1240px; margin: 0 auto; padding: 26px 56px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; box-sizing: border-box; }
.qs-mm-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0 28px; align-content: start; }
.qs-menu-col h5, .qs-mm-rail { margin: 0 0 8px; }
.qwh .qs-menu .qs-menu-col h5 { margin: 0 0 6px; padding-left: 12px; }

/* Link rows: name with an arrow that slides in, the page's approved H1 under it. */
.qwh .qs-menu a.qs-ml { display: block; margin: 0; padding: 8px 12px; border-radius: 10px; color: var(--head); text-decoration: none; transition: background-color .15s var(--qs-ease); }
.qwh .qs-menu a.qs-ml .t { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--head); }
.qwh .qs-menu a.qs-ml .t .qs-arr { opacity: 0; transform: translateX(-6px); transition: opacity .15s var(--qs-ease), transform .15s var(--qs-ease); color: var(--core); }
.qwh .qs-menu a.qs-ml .d { display: block; font-size: 13px; line-height: 1.4; color: var(--ink-3); margin-top: 1px; }
.qwh .qs-menu a.qs-ml:hover, .qwh .qs-menu a.qs-ml:focus-visible, .qwh .qs-menu a.qs-ml.cur { background: var(--alice); }
.qwh .qs-menu a.qs-ml:hover .qs-arr, .qwh .qs-menu a.qs-ml:focus-visible .qs-arr, .qwh .qs-menu a.qs-ml.cur .qs-arr { opacity: 1; transform: none; }
.qwh .qs-menu a.qs-ml:hover .d, .qwh .qs-menu a.qs-ml.cur .d { color: var(--ink-2); }
.qwh .qs-menu a.qs-ml-all { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }

/* Solutions: a rail of three groups; the chosen group's pages in two columns. */
.qs-mm-sol { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; }
.qs-mm-rail { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); padding-right: 16px; }
.qs-mm-rail button { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; transition: background-color .15s var(--qs-ease), color .15s var(--qs-ease); }
.qs-mm-rail button span { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--ink-3); }
.qs-mm-rail button:hover { background: var(--surface-2); }
.qs-mm-rail button[aria-selected="true"] { background: var(--alice); color: var(--head); }
.qs-mm-rail button:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }
.qs-mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-content: start; }

/* Featured card: the page under the pointer, shown as its game (world and team on camera) and its
   data (sample score chip), with its approved H1 and byline on glass. */
.qwh .qs-menu a.qs-pv { position: relative; display: block; margin: 0; padding: 0; min-height: 300px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0f2236; color: inherit; text-decoration: none; isolation: isolate; }
.qwh .qs-menu a.qs-pv:hover { background: #0f2236; }
.qs-pv .art, .qs-pv .art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.qs-pv .art img { object-fit: cover; transition: opacity .35s var(--qs-ease), transform 6s linear; }
.qs-pv .art img[data-pv-img2] { opacity: 0; }
.qs-pv:hover .art img { transform: scale(1.04); }
.qwh .qs-menu .qs-pv .qw-camrow { display: flex; flex-direction: row; left: 14px; right: auto; top: 14px; bottom: auto; }
.qwh .qs-menu .qs-pv .qw-cam { display: block; }
/* The bundle's ".qm-menu a span" (block, 13px, grey) would hit every span in the card; reset it. */
.qwh .qs-menu .qs-pv .gl .h .qm-em { display: inline; font-size: inherit; background: linear-gradient(117deg, #3079AE, #7ABDED); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qwh .qs-menu .qs-pv .chip .qm-tag { display: inline-block; font-size: 10px; }
.qwh .qs-menu .qs-pv .chip .qm-mono { display: block; white-space: nowrap; max-width: none; }
.qwh .qs-menu .qs-pv .chip .qd-word { display: block; }
.qwh .qs-menu .qs-pv .gl .go span { display: inline; font-size: inherit; color: inherit; }
.qs-arr { flex: none; }
.qwh .qs-pv .qw-cam video { display: block; width: 58px; height: 44px; object-fit: cover; border-radius: 8px; border: 2px solid #fff; box-sizing: border-box; background: #0f2236; }
.qs-pv .chip { position: absolute; right: 14px; top: 14px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.qs-pv .chip .qm-mono { font-size: 10px; color: var(--ink-3); max-width: 12em; text-align: right; }
.qs-pv .chip b { font-size: 34px; line-height: 1; font-weight: 500; background: linear-gradient(135deg, #176BBA, #7ABDED); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.qs-pv .chip .qd-word { margin: 0; font-size: 12px; }
.qs-pv .chip .qm-tag { margin-top: 4px; }
.qs-pv .gl { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: opacity .2s var(--qs-ease), transform .2s var(--qs-ease); }
.qs-pv.out .gl, .qs-pv.out .chip b { opacity: .0; transform: translateY(4px); }
.qs-pv .chip b { transition: opacity .2s var(--qs-ease), transform .2s var(--qs-ease); }
.qs-pv .gl .qm-eyebrow { margin: 0; }
.qs-pv .gl .h { font-size: 20px; line-height: 1.25; color: var(--head); }
.qs-pv .gl .by { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.qs-pv .gl .by[hidden] { display: none; }
.qs-pv .gl .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 14px; color: var(--core); }
.qs-pv .gl .go .qs-arr { transition: transform .15s var(--qs-ease); }
.qs-pv:hover .gl .go .qs-arr { transform: translateX(3px); }

/* Company: proof card. */
.qs-proof { align-self: start; border-radius: 16px; padding: 22px; border: 1px solid var(--line); }
.qs-proof .big { display: block; font-size: 56px; font-weight: 300; line-height: 1; margin: 12px 0 8px; background: linear-gradient(117deg, #3079AE, #7ABDED); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qs-proof p { margin: 0 0 18px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.qs-proof .logos { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.qs-proof .logos img { height: 20px; width: auto; max-width: 96px; object-fit: contain; filter: grayscale(1) brightness(.35) opacity(.7); }
.qwh .qs-menu .qs-proof a.qm-link { display: inline-flex; margin: 0; padding: 0; }
.qwh .qs-menu .qs-proof a.qm-link:hover { background: none; }

/* Footer strip in every menu: price line and the one button. */
.qs-mm-foot { border-top: 1px solid var(--line); background: var(--bg-alt); }
.qs-mm-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 12px max(56px, calc((100% - 1240px) / 2 + 56px)); }
.qs-mm-price, .qs-mm-cta { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-2); }
.qwh .qs-menu .qs-mm-price a { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; color: var(--core); background: none; }
.qwh .qs-menu .qs-mm-cta a.qm-btn { margin: 0; padding: 8px 14px; color: #fff; }
.qwh .qs-menu .qs-mm-cta a.qm-btn:hover { background: linear-gradient(117deg, #3079AE, #7ABDED); }

/* Nav indicator: one pill that slides to the open menu's button. */
.qwh .qw-head .qm-header nav { position: relative; }
.qs-nav-ind { position: absolute; top: 50%; left: 0; height: 36px; width: 0; margin-top: -18px; border-radius: 10px; background: var(--alice); opacity: 0; pointer-events: none; z-index: 0; transition: transform .22s var(--qs-ease), width .22s var(--qs-ease), opacity .15s var(--qs-ease); }
.qs-nav-ind.on { opacity: 1; }
.qwh .qm-header nav .qs-nav-ind::after { content: none; display: none; }
.qs-nav-ind.jump { transition: opacity .15s var(--qs-ease); }
.qwh .qw-head .qm-header nav > button, .qwh .qw-head .qm-header nav > a { position: relative; z-index: 1; }
.qwh .qw-head .qm-header nav button[aria-expanded="true"] { color: var(--head); background: transparent; }
.qwh .qw-head .qm-header nav button::after { transition: transform .2s var(--qs-ease), margin .2s var(--qs-ease); }
.qwh .qw-head .qm-header nav button[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .qs-menu.on.qs-enter .qs-ml, .qs-menu.on.qs-enter .qs-menu-col h5, .qs-menu.on.qs-enter .qs-mm-rail button { animation: qs-mm-in .32s var(--qs-ease) both; animation-delay: calc(var(--k, 0) * 18ms + 40ms); }
  .qs-menu.on.qs-enter .qs-pv, .qs-menu.on.qs-enter .qs-proof { animation: qs-mm-in .4s var(--qs-ease) both; animation-delay: 90ms; }
  .qs-mm-grid.qs-enter .qs-ml { animation: qs-mm-in .26s var(--qs-ease) both; animation-delay: calc(var(--k, 0) * 16ms); }
}
@keyframes qs-mm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qs-menu, .qs-nav-ind, .qs-pv .art img, .qs-pv .gl { transition: none !important; } }
.qs-menu-scrim { position: fixed; inset: 0; z-index: 15; background: rgba(13, 27, 42, .18); opacity: 0; pointer-events: none; transition: opacity .18s var(--qs-ease); }
.qs-menu-scrim.on { opacity: 1; pointer-events: auto; }

/* Phone menu: full screen, groups open like the bundle's MobileMenu rows. */
.qs-mobile { position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: var(--bg); }
.qs-mobile .mm4 { max-width: none; min-height: 100%; border: 0; border-radius: 0; }
.qs-mobile .x { all: unset; cursor: pointer; font-size: 28px; line-height: 1; padding: 4px 8px; color: var(--ink-2); }
.qs-mob-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 18px; }
.qs-mob-group summary::-webkit-details-marker { display: none; }
.qs-mob-group summary span { color: var(--ink-3); transition: transform .2s var(--qs-ease); }
.qs-mob-group[open] summary span { transform: rotate(90deg); }
.qs-mob-group a { padding-left: 36px !important; font-size: 16px !important; }
[data-theme="swap"] .qs-mobile { background: linear-gradient(117deg, #1F7FC7 0%, #3079AE 38%, #6BAFE0 100%); }
[data-theme="swap"] .qwh .qw-head .qm-header { background: linear-gradient(117deg, #1F7FC7 0%, #3079AE 38%, #6BAFE0 100%); border-bottom-color: var(--line); }

@media (max-width: 960px) {
  .qs-menu, .qs-menu-scrim { display: none !important; }
}

/* Preview controls (not part of the site design). */
.qs-preview { position: fixed; right: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #CFDDEA; border-radius: 10px; background: #fff; font-size: 13px; color: #292929; }
.qs-preview .qm-mono { color: #4E5A6B; }
.qs-preview button, .qs-preview a { all: unset; cursor: pointer; padding: 4px 8px; border-radius: 6px; color: #296590; }
.qs-preview button:hover, .qs-preview a:hover, .qs-preview button[aria-pressed="true"] { background: #E3F3FF; }
.qs-show-drafts [data-copy="draft"] { outline: 2px dashed #E8863B; outline-offset: 2px; }
.qs-show-drafts [data-copy="guide"] { outline: 1px dotted #3079AE; outline-offset: 2px; }

/* Narrow desktops (961 to 1099px): a smaller preview card, and Solutions links in one column. */
@media (max-width: 1099px) {
  .qs-mm-in { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 24px 32px; }
  .qs-mm-sol { grid-template-columns: 140px minmax(0, 1fr); gap: 16px; }
  .qs-mm-grid { grid-template-columns: 1fr; }
  .qwh .qs-menu .qs-pv .qw-cam:nth-child(3) { display: none; }
  .qwh .qs-menu .qs-pv .qw-cam video { width: 46px; height: 35px; }
  .qs-pv .chip { padding: 8px 12px; }
  .qs-pv .chip b { font-size: 28px; }
  .qs-mm-foot { padding: 12px 32px; }
}
