/* ==========================================================================
   TEAM WOW LAUNCHPAD - LOCAL STYLESHEET
   Extends global Brand Master: https://teamwow-assets.pages.dev/brand_master.css
   ========================================================================== */

:root {
  --launcher-max-w: 1240px;
  --drawer-width: 360px;
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Suppress floating lms_feedback side tab - the header button is the sole trigger */
#beta-feedback-trigger {
  display: none !important;
}

body {
  background-color: var(--crust-light);
  color: var(--crust-burnt);
  font-family: 'OneDotCd', 'Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: normal !important;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- MAIN CONTAINER --- */
.launcher-main {
  flex: 1 0 auto;
  max-width: var(--launcher-max-w);
  margin: 0 auto;
  width: 100%;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-sizing: border-box;
}

/* --- SEARCH & IN-PAGE ROLE FILTER --- */
.search-filter-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 4px;
}

.search-input-box {
  position: relative;
  width: 100%;
  max-width: 620px;
}

.search-icon-img {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
}

.launcher-search-input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 46px;
  border-radius: var(--radius-pill, 9999px);
  border: 1.5px solid var(--crust-dark);
  background: #ffffff;
  font-family: 'OneDotCd', sans-serif;
  font-size: 1.05rem;
  font-weight: normal !important;
  color: var(--crust-burnt);
  box-shadow: 0 2px 8px rgba(71, 43, 16, 0.05);
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.launcher-search-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 144, 226, 0.2);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--crust-light);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--crust-deep);
  font-size: 14px;
  line-height: 1;
}

.search-clear-btn.visible {
  display: flex;
}

/* In-Page Role Filter Pills */
.role-filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  width: 100%;
}

.role-filter-label {
  font-family: 'Subhead1', sans-serif;
  font-size: 0.85rem;
  font-weight: normal !important;
  color: var(--crust-deep);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-right: 2px;
}

.role-filter-chip {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill, 9999px);
  border: 1.5px solid var(--crust-dark);
  background: #ffffff;
  color: var(--crust-deep);
  font-family: 'Subhead1', sans-serif;
  font-size: 0.84rem;
  font-weight: normal !important;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.role-filter-chip:hover {
  background: var(--crust-med);
  color: var(--crust-burnt);
}

.role-filter-chip.active {
  background: var(--dark-blue);
  color: var(--crust-base);
  border-color: var(--dark-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.launcher-tagline-text {
  font-family: 'Subhead2', sans-serif;
  font-size: 1rem;
  font-weight: normal !important;
  color: var(--crust-deep);
  max-width: 680px;
  line-height: 1.3;
  margin-top: 2px;
}

/* --- SECTION GROUPS --- */
.portal-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header-bar {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  border-bottom: 2px solid var(--crust-med);
  padding-bottom: 6px;
}

.section-title {
  font-family: 'Header2', 'ExtraBold', sans-serif;
  font-size: 1.5rem;
  font-weight: normal !important;
  color: var(--dark-blue);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 0;
}

.section-subtitle {
  font-family: 'OneDotCd', sans-serif;
  font-size: 0.98rem;
  font-weight: normal !important;
  color: var(--crust-deep);
}

/* --- PORTAL CARDS GRID --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.portal-card {
  background: #ffffff;
  border-radius: var(--radius-md, 10px);
  border: 1.5px solid var(--crust-med);
  border-top-width: 5px;
  border-top-style: solid;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.22s ease, filter 0.22s ease, transform 0.18s ease;
  position: relative;
}

.portal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.portal-card.dimmed {
  opacity: 0.28;
  filter: grayscale(0.9);
}

.portal-card.hidden {
  display: none !important;
}

/* Card Visual Banner */
.card-visual-banner {
  height: 115px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.card-icon-wrap {
  width: 80px;
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.card-icon-wrap img {
  max-width: 76px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.14));
}

.card-icon-wrap svg {
  width: 56px;
  height: 56px;
}

.card-device-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  background: rgba(254, 250, 246, 0.95);
  color: var(--dark-blue);
  font-family: 'Subhead2', sans-serif;
  font-size: 0.72rem;
  font-weight: normal !important;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--crust-med);
  text-transform: uppercase;
  line-height: 1.2;
}

.card-audience-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  background: #ffffff;
  color: var(--dark-blue);
  font-family: 'Subhead2', sans-serif;
  font-size: 0.74rem;
  font-weight: normal !important;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm, 6px);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  line-height: 1.2;
}

/* Card Body */
.card-body-content {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  flex: 1 0 auto;
  gap: 8px;
}

.card-heading-title {
  font-family: 'Header2', sans-serif;
  font-size: 1.2rem;
  font-weight: normal !important;
  color: var(--dark-blue);
  letter-spacing: 0.3px;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0;
}

.card-desc-text {
  font-family: 'OneDotCd', sans-serif;
  font-size: 0.94rem;
  font-weight: normal !important;
  color: var(--crust-burnt);
  line-height: 1.3;
  flex: 1 0 auto;
  margin: 0;
}

/* Auth Requirement Indicator */
.card-auth-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Subhead2', sans-serif;
  font-size: 0.76rem;
  font-weight: normal !important;
  color: var(--crust-deep);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Canon Card CTA Buttons - Authentic Domino's Pill Style */
.card-cta-btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 20px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--brand-blue);
  color: #ffffff;
  text-decoration: none;
  font-family: 'Subhead1', sans-serif;
  font-size: 0.88rem;
  font-weight: normal !important;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.card-cta-btn:hover {
  background: var(--dark-blue);
  transform: translateY(-1px);
}

.card-cta-btn.btn-red {
  background: var(--brand-red);
}

.card-cta-btn.btn-red:hover {
  background: var(--dark-red);
}

/* Market Selector Multi-Pill Box */
.card-markets-box {
  margin-top: 4px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.market-box-title {
  font-family: 'Subhead2', sans-serif;
  font-size: 0.72rem;
  font-weight: normal !important;
  color: var(--crust-deep);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.market-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.market-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--brand-blue);
  color: #ffffff;
  text-decoration: none;
  font-family: 'Subhead1', sans-serif;
  font-size: 0.82rem;
  font-weight: normal !important;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.market-pill-link:hover {
  background: var(--dark-blue);
  transform: translateY(-1px);
}

/* --- PORTALS DRAWER & BOTTOM SHEET --- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 40, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.portals-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: var(--drawer-width);
  background: #ffffff;
  z-index: 1001;
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

.portals-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  background: var(--dark-blue);
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--brand-red);
}

.drawer-header-title {
  font-family: 'Header2', sans-serif;
  font-size: 1.15rem;
  font-weight: normal !important;
  letter-spacing: 0.4px;
  color: #ffffff;
  margin: 0;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.drawer-body-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-group-title {
  font-family: 'Subhead1', sans-serif;
  font-size: 0.82rem;
  font-weight: normal !important;
  color: var(--crust-deep);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--crust-med);
}

.drawer-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

.drawer-item-row:hover {
  background: var(--crust-light);
}

.drawer-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm, 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-item-icon svg {
  width: 18px;
  height: 18px;
}

.drawer-item-texts {
  display: flex;
  flex-direction: column;
}

.drawer-item-name {
  font-family: 'Subhead1', sans-serif;
  font-size: 0.96rem;
  font-weight: normal !important;
  color: var(--dark-blue);
  line-height: 1.15;
}

.drawer-item-who {
  font-family: 'OneDotCd', sans-serif;
  font-size: 0.82rem;
  font-weight: normal !important;
  color: var(--crust-deep);
}

.drawer-item-badge {
  font-family: 'Subhead2', sans-serif;
  font-size: 0.68rem;
  font-weight: normal !important;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--crust-med);
  color: var(--crust-burnt);
  text-transform: uppercase;
}

.drawer-footer-link {
  background: var(--crust-light);
  padding: 10px 16px;
  border-top: 1px solid var(--crust-med);
  text-align: center;
}

.drawer-home-link {
  font-family: 'Subhead1', sans-serif;
  font-size: 0.92rem;
  font-weight: normal !important;
  color: var(--brand-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.drawer-home-link:hover {
  text-decoration: underline;
}

/* --- MOBILE BOTTOM SHEET --- */
@media (max-width: 768px) {
  .launcher-main {
    padding: 16px 12px 36px;
    gap: 22px;
  }

  .launcher-search-input {
    height: 42px;
    font-size: 0.98rem;
    padding: 0 36px 0 40px;
  }

  .role-filter-row {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .role-filter-row::-webkit-scrollbar {
    display: none;
  }

  .role-filter-label {
    display: none;
  }

  .role-filter-chip {
    flex-shrink: 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .portals-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 82vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }

  .portals-drawer.open {
    transform: translateY(0);
  }

  .mobile-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-pill, 9999px);
    margin: 0 auto 6px;
    display: block;
  }
}
