/* vCOMMAND in-app home page (VOIMAR brand; vCOMMAND = black with red accents, 28 Oct 2026). Loaded by /app/index.html.
   The app strips EVERY class from the home fragment (checked live 28 Oct 21:2x: even mx_ classes go), so this styles by DOM
   STRUCTURE under the app's own .mx_HomePage_body (the same way brand/vmatrix-auth.css styles the sign-in card). home.html must
   keep this order: hero div, stats-head div, tiles div, h2, cards div, links div, footer p. Colours from the app's theme
   variables, so it reads well in light and dark. */
.mx_HomePage_body > div { max-width: 1040px; margin: 0 auto; padding: 24px 24px 40px; text-align: left; }
.mx_HomePage_body > div * { box-sizing: border-box; }

/* hero: black bar with the app icon, the Element logo top right and the name */
.mx_HomePage_body > div > div:nth-of-type(1) { position: relative; display: flex; align-items: center; gap: 24px; padding: 28px 32px;
  border-radius: 18px; background: #0B0B0B; color: #fff; border-left: 6px solid #CC0000; }
.mx_HomePage_body > div > div:nth-of-type(1) > img { width: 88px !important; height: 88px !important; max-height: none !important;
  border-radius: 20px; flex-shrink: 0; margin: 0 !important; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.mx_HomePage_body > div > div:nth-of-type(1) > div:nth-of-type(1) { position: absolute; top: 16px; right: 20px; display: flex;
  align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 700; }
.mx_HomePage_body > div > div:nth-of-type(1) > div:nth-of-type(1) img { width: 24px !important; height: 24px !important; margin: 0 !important; }
.mx_HomePage_body > div > div:nth-of-type(1) > div:nth-of-type(2) > div { font-size: 12px; font-weight: 700; letter-spacing: .09em;
  color: #FF4D4D; text-transform: uppercase; }
.mx_HomePage_body > div > div:nth-of-type(1) h1 { margin: 6px 0 4px !important; font-size: 34px !important; line-height: 1.1;
  color: #fff !important; text-align: left !important; }
.mx_HomePage_body > div > div:nth-of-type(1) p { margin: 0 !important; color: #D1D5DB !important; font-size: 15px; line-height: 1.5; }

/* live statistics: heading line, then 4 columns x 3 rows (people black, messages grey, voice red) */
.mx_HomePage_body > div > div:nth-of-type(2) { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.mx_HomePage_body > div > div:nth-of-type(2) b { font-size: 18px; color: var(--cpd-color-text-primary, #111); }
.mx_HomePage_body > div > div:nth-of-type(2) span { font-size: 12px; color: var(--cpd-color-text-secondary, #6B7280); }
.mx_HomePage_body > div > div:nth-of-type(3) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
.mx_HomePage_body > div > div:nth-of-type(3) > div { padding: 16px 18px; border-radius: 14px; background: var(--cpd-color-bg-subtle-secondary, #F3F4F6);
  border: 1px solid var(--cpd-color-border-interactive-secondary, #E5E7EB); border-left: 4px solid #0B0B0B; }
.mx_HomePage_body > div > div:nth-of-type(3) > div:nth-child(n+5) { border-left-color: #6B7280; }
.mx_HomePage_body > div > div:nth-of-type(3) > div:nth-child(n+9) { border-left-color: #CC0000; }
.mx_HomePage_body > div > div:nth-of-type(3) b { display: block; font-size: 26px; line-height: 1.1; color: #CC0000; }
.mx_HomePage_body > div > div:nth-of-type(3) span { display: block; margin-top: 4px; font-size: 13px; color: var(--cpd-color-text-secondary, #6B7280); }

/* "What you can do here" and the cards in columns, each with its {TAG} chip */
.mx_HomePage_body > div > h2 { margin: 0 0 12px !important; font-size: 18px !important; text-align: left !important; }
.mx_HomePage_body > div > div:nth-of-type(4) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mx_HomePage_body > div > div:nth-of-type(4) > div { display: flex; flex-direction: column; padding: 18px; border-radius: 14px;
  background: var(--cpd-color-bg-canvas-default, #fff); border: 1px solid var(--cpd-color-border-interactive-secondary, #E5E7EB);
  border-top: 3px solid #CC0000; }
.mx_HomePage_body > div > div:nth-of-type(4) > div > span:first-child { align-self: flex-start; padding: 3px 8px; border-radius: 6px;
  background: #0B0B0B; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.mx_HomePage_body > div > div:nth-of-type(4) h3 { margin: 10px 0 6px !important; font-size: 16px !important; text-align: left !important; }
.mx_HomePage_body > div > div:nth-of-type(4) p { margin: 0 !important; font-size: 13.5px; line-height: 1.5; color: var(--cpd-color-text-secondary, #4B5563); }
.mx_HomePage_body > div > div:nth-of-type(4) p b { color: var(--cpd-color-text-primary, #111); }
.mx_HomePage_body > div > div:nth-of-type(4) p + p { margin-top: 8px !important; font-size: 12px; color: #CC0000; }

/* Advanced SecureComms: the last card, two columns wide, the same look as the other cards; its points in two columns (Leonard 28 Oct) */
.mx_HomePage_body > div > div:nth-of-type(4) > div:last-child { grid-column: span 2; }
.mx_HomePage_body > div > div:nth-of-type(4) > div:last-child ul { margin: 10px 0 0 !important; padding-left: 18px; columns: 2; column-gap: 28px; }
.mx_HomePage_body > div > div:nth-of-type(4) > div:last-child li { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--cpd-color-text-secondary, #4B5563); break-inside: avoid; }
.mx_HomePage_body > div > div:nth-of-type(4) > div:last-child li b { color: var(--cpd-color-text-primary, #111); }

/* buttons: the first one brand red, the others outlined; then the text footer */
.mx_HomePage_body > div > div:nth-of-type(5) { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.mx_HomePage_body > div > div:nth-of-type(5) a { padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  text-decoration: none !important; border: 1px solid var(--cpd-color-border-interactive-primary, #9CA3AF); color: var(--cpd-color-text-primary, #111) !important; }
.mx_HomePage_body > div > div:nth-of-type(5) a:first-child { background: #CC0000; border-color: #CC0000; color: #fff !important; }
.mx_HomePage_body > div > p:last-child { margin-top: 20px !important; font-size: 12px; text-align: left !important; color: var(--cpd-color-text-secondary, #6B7280); }

@media (max-width: 900px) {
  .mx_HomePage_body > div > div:nth-of-type(4) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx_HomePage_body > div > div:nth-of-type(3) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mx_HomePage_body > div > div:nth-of-type(4) > div:last-child { grid-column: auto; }
  .mx_HomePage_body > div > div:nth-of-type(4) > div:last-child ul { columns: 1; }
  .mx_HomePage_body > div > div:nth-of-type(4) { grid-template-columns: 1fr; }
  .mx_HomePage_body > div > div:nth-of-type(1) { flex-direction: column; align-items: flex-start; padding: 22px; }
}
