/* The Apps menu panel: always dark, even over the white home page. Needs tokens.css and brand-sprite.html on the page.
   Source: board/rules.css (B3 "The Apps menu": .mn-panel .mn-left .mn-right .mn-row .mn-mark .mn-txt .mn-tags .mn-go .mn-kind
   .mn-own .mn-foot .mn-emb, .pg-pill, .lnk, .apptile, category colours) and board/products.css. Markup: apps-menu.html.

   One row per app: the app's mark, its name with the coloured word, one line, and a coloured category pill carrying the kind's arc.
   "Phoenix" stays white; nothing else is coloured until you hover. Hover = a thin outline in the app's colour and the arrow turns
   to the app's colour (the row never changes size). The company emblem heads the three kinds in the right column.
   This file does not include the site header bar above the panel; that belongs to the page. Everything is scoped under .apps-menu. */

.apps-menu, .apps-menu *, .apps-menu *::before, .apps-menu *::after { box-sizing: border-box; }
.apps-menu {
  --apps-menu-emblem: 32px;                          /* the board's rule text says 32 px (its stylesheet draws 40 px) */
  background: #000; color: var(--on-dark);
  border: 1px solid var(--dark-line); border-radius: 20px; overflow: hidden;
  font-family: var(--font-display); font-size: 17px; line-height: 1.47; letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
.apps-menu p { margin: 0; }
.apps-menu a { color: inherit; }
.apps-menu :focus-visible { outline: 2px solid var(--c, var(--blue-dark)); outline-offset: 2px; }
.apps-menu .ic { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.12em; }
.apps-menu .on-d { color: #fff; }                    /* "Phoenix" on dark */

/* each kind's colour on black (the -dark tones; Post = the darker green) */
.apps-menu .c-mkt  { --c: var(--mk-mkt-dark); }
.apps-menu .c-mkt2 { --c: var(--mk-mkt-2-dark); }
.apps-menu .c-ops  { --c: var(--mk-ops-dark); }
.apps-menu .c-int  { --c: var(--mk-int-dark); }
.apps-menu .c-mkt, .apps-menu .c-mkt2, .apps-menu .c-ops, .apps-menu .c-int {
  --c-soft: color-mix(in srgb, var(--c) 15%, transparent);
  --c-line: color-mix(in srgb, var(--c) 46%, transparent);
}

/* the app tile inside the menu (sprite symbols phx-mk-*-a), coloured on its kind's side */
.apps-menu .apptile { display: block; width: 1em; height: 1em; flex: none; --rim: .2; }
.apps-menu .apptile.t-mkt  { --c: var(--mk-mkt); }
.apps-menu .apptile.t-mkt2 { --c: var(--mk-mkt-2); }
.apps-menu .apptile.t-ops  { --c: var(--mk-ops); }
.apps-menu .apptile.t-int  { --c: var(--mk-int); }

/* pills and links */
.apps-menu .pg-pill { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 980px; font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--c); background: var(--c-soft); white-space: nowrap; }
.apps-menu .pg-pill .glyph { width: 15px; height: 15px; vertical-align: 0; margin-left: -2px; }
.apps-menu .pg-pill.ghost { color: var(--on-dark-2); background: transparent; box-shadow: inset 0 0 0 1px var(--dark-line); }
.apps-menu a.pg-pill.ghost { transition: color .15s, background-color .15s, box-shadow .15s; }
.apps-menu a.pg-pill.ghost:hover { color: #fff; background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--on-dark-3); }
.apps-menu .lnk { color: var(--c); font-size: 15px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.apps-menu .lnk:hover { text-decoration: underline; text-underline-offset: 3px; }
.apps-menu .lnk .ic { transition: transform .15s; }
.apps-menu .lnk:hover .ic { transform: translateX(var(--arrow-go, 4px)); }

/* the panel: apps on the left, the three kinds and "build your own" on the right */
.apps-menu .mn-panel { display: grid; grid-template-columns: 1.55fr 1fr; background: var(--dark-1); border-bottom: 1px solid var(--dark-line); }
.apps-menu .mn-left { padding: 26px 26px 22px; }
.apps-menu .mn-right { padding: 26px 28px 22px; border-left: 1px solid var(--dark-line); background: #0a0a0b; display: flex; flex-direction: column; }
.apps-menu .mn-h { font-size: 13px; color: var(--on-dark-3); margin-bottom: 12px; display: flex; justify-content: space-between; }

/* a row */
.apps-menu .mn-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r-14, 14px); text-decoration: none; color: inherit; box-shadow: inset 0 0 0 1px transparent; transition: background-color .15s, box-shadow .15s; }
.apps-menu .mn-row + .mn-row { margin-top: 4px; }
.apps-menu .mn-row:hover, .apps-menu .mn-row.is-hover { background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--c-line); }
.apps-menu .mn-mark { flex: none; width: 52px; height: 52px; font-size: 52px; display: grid; place-items: center; }
.apps-menu .mn-txt { min-width: 0; flex: 1; }
.apps-menu .mn-txt b { display: block; font-size: 20px; line-height: 1.15; font-weight: var(--logo-weight); }
.apps-menu .mn-txt small { display: block; font-size: 14.5px; color: var(--on-dark-2); margin-top: 3px; }
.apps-menu .mn-tags { display: flex; gap: 6px; align-items: center; flex: none; }
.apps-menu .mn-go { flex: none; color: var(--on-dark-3); transition: transform .15s, color .15s; font-size: 18px; }
.apps-menu .mn-row:hover .mn-go, .apps-menu .mn-row.is-hover .mn-go { color: var(--c); transform: translateX(var(--arrow-go, 4px)); }

/* right column: the emblem heads the three kinds */
.apps-menu .mn-emb { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--dark-line); }
.apps-menu .mn-emb .emb { width: var(--apps-menu-emblem); height: var(--apps-menu-emblem); color: #fff; flex: none; }
.apps-menu .mn-emb b { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.25; color: #fff; }
.apps-menu .mn-emb span { display: block; font-size: 12.5px; color: var(--on-dark-3); margin-top: 2px; line-height: 1.35; }
.apps-menu .mn-kind { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; text-decoration: none; color: inherit; }
.apps-menu .mn-kind .apptile { font-size: 30px; margin-top: 1px; }
.apps-menu .mn-kind b { display: block; font-size: 16px; font-weight: 500; }
.apps-menu .mn-kind:hover b { color: var(--c); }
.apps-menu .mn-kind small { display: block; font-size: 13.5px; color: var(--on-dark-2); margin-top: 1px; }
.apps-menu .mn-own { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--dark-line); }
.apps-menu .mn-own .chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* footer line */
.apps-menu .mn-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 26px; background: #0a0a0b; font-size: 14px; color: var(--on-dark-2); }
.apps-menu .mn-foot .lnk { color: #fff; }

@media (max-width: 820px) {
  .apps-menu .mn-panel { grid-template-columns: 1fr; }
  .apps-menu .mn-right { border-left: 0; border-top: 1px solid var(--dark-line); }
  .apps-menu .mn-row { flex-wrap: wrap; row-gap: 8px; }
  .apps-menu .mn-tags { flex: 1 0 100%; padding-left: 68px; }
  .apps-menu .mn-go { display: none; }
}

