/* Coach OS 3.61 — brand-led Home with contextual mobile navigation.
   Home stays clean; the working areas retain their useful bottom navigation. */
.v360-brand-purpose {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.v360-brand-purpose article {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e5dce0;
  border-radius: 19px;
  background: #fff;
}

.v360-brand-purpose span {
  color: #c72c60;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.v360-brand-purpose h2 {
  margin: 6px 0 5px;
  color: #183e35;
  font-size: 17px;
  line-height: 1.16;
  letter-spacing: -.02em;
}

.v360-brand-purpose p {
  margin: 0;
  color: #71686d;
  font-size: 10px;
  line-height: 1.5;
}

body[data-coach-theme="dark"] .v360-brand-purpose article {
  border-color: #4a3f45;
  background: #211b20;
}

body[data-coach-theme="dark"] .v360-brand-purpose h2 { color: #f7f0f3; }
body[data-coach-theme="dark"] .v360-brand-purpose p { color: #c6bbc0; }

@media (max-width: 980px) {
  body.home-mode #v313BottomNav,
  body.home-mode .v313-bottom-nav,
  body.home-mode #myGameBottomNav,
  body.home-mode .mygame-bottom-nav,
  body.home-mode #myGameMoreOverlay,
  body.home-mode .mygame-more-overlay,
  body.home-mode #myGameMoreSheet,
  body.home-mode .mygame-more-sheet {
    display: none !important;
  }

  body.home-mode .main {
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
  }

  .mobile-header {
    width: 100%;
    min-width: 0;
  }

  .v313f-mobile-workspaces {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: stretch;
  }

  .v313f-mobile-workspaces button {
    min-width: 0;
    min-height: 38px;
    line-height: 1.15;
  }

  .v357-home-page,
  .v313-page,
  .page {
    min-width: 0;
    max-width: 100%;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: 1000;
    text-align: center;
  }

  body.home-mode .toast {
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 700px) {
  .v360-brand-purpose {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 9px;
  }

  .v360-brand-purpose article {
    padding: 14px 15px;
    border-radius: 17px;
  }

  .v360-brand-purpose h2 {
    font-size: 15px;
  }

  body.home-mode .main {
    padding: 12px 12px max(24px, env(safe-area-inset-bottom)) !important;
  }

  .main {
    overflow-x: clip;
  }

  .v357-home-page {
    padding: 8px 0 18px !important;
  }

  .v357-home-intro,
  .v357-workspace-section,
  .v355-coach-today,
  .v355-today-section,
  .v355-today-card {
    max-width: 100%;
    box-sizing: border-box;
  }

  .v357-home-intro {
    padding: 22px 18px;
  }

  .v357-workspace-section {
    margin-top: 12px;
  }
}

@media (max-width: 430px) {
  .mobile-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .v313f-mobile-workspaces {
    gap: 4px;
  }

  .v313f-mobile-workspaces button {
    padding-left: 3px;
    padding-right: 3px;
  }
}
