/* THE DEMOS MENU — AG-TRADES-DEMOS-PAGES-BUILD-0929: a large dropdown from the top bar. One component, three placements: the nav's "Demos" (a panel under the bar at >760,
   a full-height sheet at ≤760), the /demos/ page (inline), and the presentation's end screen (inline).
   Every row comes from /demos/trades.json. Grouped by business type, type-to-filter, built for 48 rows. */

.dm-panel{position:fixed;left:50%;top:var(--dm-top,120px);transform:translateX(-50%);z-index:70;
  width:min(1040px,calc(100vw - 32px));max-height:calc(100vh - var(--dm-top,120px) - 16px);overflow:auto;
  border-radius:26px;background:rgba(11,13,17,.96);color:#f1efe9;box-shadow:0 30px 80px rgba(6,7,10,.55);
  border:1px solid rgba(207,174,98,.28);padding:22px 26px 26px;box-sizing:border-box;
  font-family:Inter,system-ui,-apple-system,sans-serif;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.dm-panel[hidden]{display:none}
.dm-head{display:flex;align-items:center;gap:14px}
.dm-title{font-family:Fraunces,Georgia,serif;font-weight:500;font-size:22px;letter-spacing:-.2px;color:#f4efe4;margin:0;flex:0 0 auto}
.dm-search{flex:1 1 auto;min-width:0;height:46px;border-radius:23px;border:1px solid rgba(207,174,98,.4);
  background:rgba(255,255,255,.06);color:#f4efe4;font:inherit;font-size:15px;padding:0 18px;outline:none}
.dm-search::placeholder{color:rgba(241,239,233,.5)}
.dm-search:focus{border-color:#cfae62;box-shadow:0 0 0 3px rgba(207,174,98,.22)}
.dm-close{flex:0 0 auto;height:44px;padding:0 16px;border-radius:22px;border:1px solid rgba(207,174,98,.45);
  background:rgba(207,174,98,.1);color:#f1efe9;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.dm-close:focus-visible,.dm-row:focus-visible{outline:2px solid #f0d488;outline-offset:2px}
.dm-groups{columns:4 212px;column-gap:28px;margin-top:20px}
.dm-group{break-inside:avoid;margin:0 0 18px}
.dm-group[hidden]{display:none}
.dm-gh{font-family:Fraunces,Georgia,serif;font-weight:500;font-size:16px;color:#d9b464;margin:0 0 6px;padding:0 10px}
.dm-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;padding:0 10px;border-radius:12px;
  color:#f1efe9;text-decoration:none;font-size:14.5px;font-weight:600;line-height:1.25}
.dm-row[hidden]{display:none}
.dm-row:hover,.dm-row.dm-on{background:rgba(207,174,98,.14)}
.dm-row[aria-current="page"]{color:#cfae62}
.dm-row mark{background:none;color:#f0d488;font-weight:800}
.dm-tag{flex:0 0 auto;font-size:11px;font-weight:700;letter-spacing:.06em;color:rgba(241,239,233,.62);display:inline-flex;align-items:center;gap:6px}
.dm-tag::before{content:"";width:7px;height:7px;border-radius:50%;background:#cfae62}
.dm-none{margin:18px 10px 4px;font-size:15px;color:rgba(241,239,233,.7)}
.dm-none[hidden]{display:none}
.dm-scrim{position:fixed;inset:0;z-index:69;background:rgba(6,7,10,.35)}
.dm-scrim[hidden]{display:none}
.dm-trigger::after{content:"";display:inline-block;width:6px;height:6px;margin-left:8px;border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;transform:translateY(-3px) rotate(45deg);opacity:.8}
.dm-trigger[aria-expanded="true"]{color:var(--c-gold,#cfae62)}

/* INLINE (the /demos/ page, the presentation's end screen): the same rows, in the page's own box */
.dm-inline{position:static;transform:none;width:auto;max-height:none;overflow:visible;box-shadow:none;border-radius:22px}

@media (max-width:760px){
  .dm-panel:not(.dm-inline){top:0;left:0;right:0;bottom:0;transform:none;width:100%;max-height:none;height:100%;
    border-radius:0;border:0;padding:0 0 24px;background:#0d0e12}
  .dm-panel:not(.dm-inline) .dm-head{position:sticky;top:0;z-index:2;background:#0d0e12;flex-wrap:wrap;padding:16px 16px 12px;gap:10px}
  .dm-panel:not(.dm-inline) .dm-title{flex:1 1 auto;font-size:20px}
  .dm-panel:not(.dm-inline) .dm-search{order:3;flex:1 1 100%}
  .dm-groups{columns:1;margin-top:4px;padding:0 8px}
  .dm-panel:not(.dm-inline) .dm-gh{position:sticky;top:122px;z-index:1;background:#0d0e12;padding:12px 10px 6px;margin:0}
  .dm-row{min-height:48px;font-size:15.5px}
  .dm-inline{padding:18px 14px 20px}
  .dm-inline .dm-head{flex-wrap:wrap}
  .dm-inline .dm-search{flex:1 1 100%}
}
@media (prefers-reduced-motion:no-preference){
  .dm-panel:not([hidden]){animation:dmIn .16s ease-out}
  @keyframes dmIn{from{opacity:0}to{opacity:1}}
}
