/* Marketplace apps across the site: the navigation menu, app tiles, the homepage strip
   and the footer column. Rendered by marketing/website/tools/marketplace_apps.py. */

.mkt-badge { display: inline-grid; flex: none; place-items: center; width: 38px; height: 38px; color: #fff; font-size: .78rem; font-weight: 900; letter-spacing: .02em; border-radius: 10px; background: var(--teal); }
.mkt-badge.ev { background: #0f6b57; }
.mkt-badge.tt { background: var(--blue); }
.mkt-badge.crm { background: #6a4bd8; }
.mkt-badge.km { background: #0b3d91; }
.mkt-badge.th { background: #2f6bf2; }
.mkt-nav-app em, .mkt-tile em { margin-left: 6px; padding: 2px 7px; color: #8a4b00; font-size: .68rem; font-style: normal; font-weight: 800; background: #fff4e5; border: 1px solid #f5d4a8; border-radius: 999px; vertical-align: 2px; }

/* Navigation menu */
.mkt-menu { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.mkt-menu-toggle { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; background: none; border: 0; border-radius: 6px; cursor: pointer; }
.mkt-menu-toggle span { width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .15s; }
.mkt-menu-toggle:focus-visible { outline: 2px solid var(--blue); }
.mkt-menu-panel { position: absolute; top: calc(100% + 12px); left: 50%; z-index: 40; display: none; width: 400px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(6, 25, 67, .16); transform: translateX(-50%); }
.mkt-menu-panel::before { position: absolute; top: -14px; right: 0; left: 0; height: 14px; content: ""; }
.mkt-menu:hover .mkt-menu-panel, .mkt-menu:focus-within .mkt-menu-panel, .mkt-menu.open .mkt-menu-panel { display: block; }
.mkt-menu.open .mkt-menu-toggle span { transform: rotate(225deg); margin-top: 3px; }
.mkt-menu-title { margin: 4px 8px 6px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav-links .mkt-menu-panel a { border-bottom: 0; }
.mkt-nav-app { display: flex; gap: 12px; align-items: flex-start; padding: 9px 8px; color: var(--ink); border-radius: 10px; }
.mkt-nav-app:hover, .mkt-nav-app:focus-visible { background: var(--soft); }
.mkt-nav-app-text { display: grid; gap: 2px; }
.mkt-nav-app-text strong { font-size: .95rem; }
.mkt-nav-app-text small { color: var(--muted); font-size: .8rem; font-weight: 500; line-height: 1.35; }
.mkt-menu-all { display: block; margin: 6px 8px 4px; padding-top: 10px; color: var(--blue); font-size: .88rem; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .mkt-menu { display: grid; gap: 8px; }
  .mkt-menu-toggle { display: none; }
  .site-header.nav-open .mkt-menu-panel { position: static; display: grid; width: auto; padding: 0 0 0 14px; gap: 4px; background: none; border: 0; box-shadow: none; transform: none; }
  .mkt-menu-panel::before, .mkt-menu-title, .mkt-nav-app-text small { display: none; }
  .site-header.nav-open .nav-links .mkt-menu-panel a { justify-content: flex-start; min-height: 40px; padding: 6px 10px; background: #fff; }
  .mkt-nav-app { align-items: center; }
  .mkt-nav-app .mkt-badge { width: 28px; height: 28px; font-size: .62rem; border-radius: 8px; }
  .mkt-menu-all { margin: 0; border-top: 0; }
}

/* App tiles */
.mkt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mkt-tile { display: flex; gap: 14px; align-items: flex-start; padding: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.mkt-tile:hover, .mkt-tile:focus-visible { border-color: var(--blue); box-shadow: 0 14px 32px rgba(6, 25, 67, .1); }
.mkt-tile-text { display: grid; flex: 1; gap: 4px; }
.mkt-tile-text strong { font-size: 1.02rem; }
.mkt-tile-text > span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.mkt-tile-go { align-self: center; color: var(--blue); font-weight: 800; }
.mkt-note { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.mkt-section { padding-top: clamp(28px, 4vw, 48px); }

/* Homepage strip */
.mkt-strip { padding: clamp(30px, 4vw, 48px) 0; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mkt-strip-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.mkt-strip-head h2 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.mkt-strip-head a { color: var(--blue); font-weight: 800; }

@media (max-width: 1000px) { .mkt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mkt-tiles { grid-template-columns: 1fr; } }

/* Footer apps column */
@media (min-width: 1121px) {
  body .site-footer.with-apps { grid-template-columns: minmax(240px, 1.3fr) repeat(auto-fit, minmax(110px, 1fr)); }
}
