/* Figma Home — match attached EN screen (2-col grid, SOS+wave) */

/* SOS + Listen row */
.lc-sos-listen {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
  max-width: 100%;
}

.lc-sos-listen__sos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 118px;
  height: 58px;
  padding: 0 18px 0 6px;
  border-radius: 36px;
  background: linear-gradient(45deg, #FF3E3A 0%, #C00000 100%);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 6px 14px -6px rgba(229, 57, 53, 0.28);
}

/* Red circle + thin light ring — white phone/medical icon inside */
.lc-sos-listen__sos-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(45deg, #FF3E3A 0%, #C00000 100%);
  border: 2px solid #F3F8F8;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.lc-sos-listen__sos-badge img,
.lc-sos-listen__sos-badge svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}

.lc-sos-listen__sos-text {
  font-family: "Abhaya Libre", Georgia, serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: #fff;
}

.lc-sos-listen__listen {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 4px 12px 4px 5px;
  background: #fff;
  border-radius: 50px;
  border: 1.5px solid #0A4650;
  text-decoration: none !important;
  box-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.08);
}

.lc-sos-listen__listen-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #117174 0%, #0A4751 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lc-sos-listen__listen-icon img,
.lc-sos-listen__listen-icon svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.lc-sos-listen__wave {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 28px;
  overflow: hidden;
}

.lc-sos-listen__wave img,
.lc-sos-listen__wave svg {
  width: 100%;
  height: 24px;
  object-fit: fill;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.lc-figma-home {
  padding: 20px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
}

.lc-figma-home__greeting {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding-right: 4px;
}

.lc-figma-home__welcome {
  margin: 0;
  color: #1A3A5C;
  font-family: "Abhaya Libre", Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.lc-figma-home__subtitle {
  margin: 0;
  color: #414141;
  font-family: "Abhaya Libre", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.lc-figma-home__greeting,
.lc-home-community {
  grid-column: 1 / -1;
}

.lc-home-community {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(165deg, #14685f 0%, #0b454f 72%);
  box-shadow: 0 8px 18px rgba(10, 70, 80, 0.18);
  color: #fff;
}

.lc-home-community__title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: #fff !important;
  text-decoration: none !important;
}

.lc-home-community__badge {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
}

.lc-home-community__badge svg {
  width: 34px;
  height: 32px;
  display: block;
}

.lc-home-community__name {
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.lc-home-community__event {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6e7c4;
  color: #0a4650 !important;
  text-decoration: none !important;
}

.lc-home-community__cal,
.lc-home-community__chevron {
  display: inline-flex;
  flex: 0 0 auto;
}

.lc-home-community__event-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #0a4650;
}

.lc-home-community__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lc-home-community__join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #1e9b45;
  color: #fff !important;
  text-decoration: none !important;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
  font-size: 20px;
  font-weight: 800;
}

.lc-home-community a:focus-visible {
  outline: 3px solid #ffe14a;
  outline-offset: 3px;
}

/* Welcome text left of Marketplace; Currency stacked under Marketplace */
.lc-figma-home__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lc-home-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 112px;
  padding: 14px 10px;
  text-decoration: none !important;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #E7F1F1 100%);
  border: 1.5px solid #0B4852;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.18);
  color: #0A4852 !important;
}

.lc-home-action__label {
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
}

.lc-home-action__icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lc-home-action__icon img,
.lc-home-action__icon svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.lc-figma-home__promo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, #127376 0%, #0A4650 100%);
  color: #fff;
}

.lc-figma-home__promo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lc-figma-home__promo-text {
  flex: 1 1 auto;
  min-width: 0;
}

.lc-figma-home__promo-title {
  font-family: "Abhaya Libre", Georgia, serif;
  font-size: 18px;
  font-weight: 800;
}

.lc-figma-home__promo-sub {
  font-family: "Abhaya Libre", Georgia, serif;
  font-size: 16px;
  opacity: 0.8;
}

.lc-figma-home__promo-sub--long {
  display: none;
}

.lc-sos-listen__listen-label {
  display: none;
}

/* Desktop chrome — hidden on mobile (do not change mobile layout) */
.lc-desk-sidebar,
.lc-desk-topbar {
  display: none;
}

.lc-figma-home__promo-cta {
  border: 0;
  background: #fff;
  color: #1A3A5C;
  border-radius: 12px;
  min-width: 90px;
  height: 34px;
  font-family: "Abhaya Libre", Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 768px) {
  body.home,
  body.front-page,
  body.page-home {
    background: #F3F8F8 !important;
  }

  body.home .site-content,
  body.front-page .site-content {
    background: #F3F8F8 !important;
  }

  body.home .ultp-news-ticker-box,
  body.home #intro-video-container,
  body.front-page .ultp-news-ticker-box,
  body.front-page #intro-video-container {
    display: none !important;
  }
}

@media (min-width: 769px) {
  /* ——— Desktop Home shell (Figma) ——— */
  body.lc-desk-home {
    --lc-desk-sidebar: 248px;
    --lc-desk-topbar: 72px;
    background: #F3F8F8 !important;
  }

  body.lc-desk-home .site-header,
  body.lc-desk-home .site-footer,
  body.lc-desk-home .header-navbar,
  body.lc-desk-home .header-hero,
  body.lc-desk-home .lc-desktop-footer-note,
  body.lc-desk-home .lcmtm-mobile-shell,
  body.lc-desk-home .lcmtm-mobile-top,
  body.lc-desk-home .lcmtm-mobile-bottom {
    display: none !important;
  }

  body.lc-desk-home .ultp-news-ticker-box,
  body.lc-desk-home #intro-video-container {
    display: none !important;
  }

  body.lc-desk-home .site-content,
  body.lc-desk-home .content-area,
  body.lc-desk-home .site-main,
  body.lc-desk-home .page,
  body.lc-desk-home .entry-content {
    background: #F3F8F8 !important;
  }

  body.lc-desk-home {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  body.lc-desk-home .site-content {
    margin-left: var(--lc-desk-sidebar) !important;
    padding-top: var(--lc-desk-topbar) !important;
    width: calc(100% - var(--lc-desk-sidebar)) !important;
    max-width: calc(100% - var(--lc-desk-sidebar)) !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Theme .container is full-site width and overflows after sidebar offset */
  body.lc-desk-sports .page__text {
    margin-top: 40px !important;
  }

  body.lc-desk-home .site-content .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    box-sizing: border-box !important;
  }

  body.lc-desk-home .page,
  body.lc-desk-home .page__text,
  body.lc-desk-home .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.lc-desk-home .entry-header,
  body.lc-desk-home .entry-title,
  body.lc-desk-home .page__title {
    display: none !important;
  }

  /* Hide in-content SOS (duplicate lives in top bar) */
  body.lc-desk-home .site-main > .lc-sos-listen,
  body.lc-desk-home .entry-content > .lc-sos-listen,
  body.lc-desk-home .page__text > .lc-sos-listen {
    display: none !important;
  }

  .lc-desk-sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: var(--lc-desk-sidebar) !important;
    z-index: 10050 !important;
    padding: 28px 18px 24px !important;
    background: #0A4650 !important;
    color: #fff !important;
    box-sizing: border-box !important;
  }

  .lc-desk-sidebar__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 36px;
    padding: 0 8px;
  }

  .lc-desk-sidebar__logo {
    width: 100%;
    max-width: 180px;
  }

  .lc-desk-sidebar__logo .custom-logo-link {
    display: block !important;
    line-height: 0;
  }

  .lc-desk-sidebar__logo .custom-logo {
    display: block !important;
    width: 100% !important;
    max-width: 180px !important;
    height: auto !important;
    filter: brightness(0) invert(1);
  }

  .lc-desk-sidebar__wordmark {
    color: #fff !important;
    text-decoration: none !important;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .lc-desk-sidebar__tag {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .lc-desk-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .lc-desk-sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.15s ease;
  }

  .lc-desk-sidebar__label {
    color: #fff !important;
  }

  .lc-desk-sidebar__item.is-active .lc-desk-sidebar__link,
  .lc-desk-sidebar__link:hover {
    background: #137578;
  }

  .lc-desk-sidebar__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .lc-desk-sidebar__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .lc-desk-topbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: fixed !important;
    top: 0 !important;
    left: var(--lc-desk-sidebar) !important;
    right: 0 !important;
    width: auto !important;
    max-width: calc(100% - var(--lc-desk-sidebar)) !important;
    height: var(--lc-desk-topbar) !important;
    z-index: 10040 !important;
    padding: 0 28px !important;
    background: #137578 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .lc-desk-topbar__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
  }

  .lc-desk-topbar__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    flex-shrink: 0;
  }

  .lc-desk-topbar__back:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .lc-desk-topbar__title {
    margin: 0 !important;
    color: #fff !important;
    font-family: "Abhaya Libre", Georgia, serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .lc-desk-topbar__tools {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    background: transparent !important;
  }

  .lc-desk-topbar__sos {
    display: flex;
    min-width: 0;
    flex: 0 1 480px;
    background: transparent !important;
  }

  .lc-desk-topbar__sos .lc-sos-listen {
    display: flex !important;
    width: 100%;
    padding: 0 !important;
    gap: 12px !important;
    background: transparent !important;
  }

  .lc-desk-topbar__sos .lc-sos-listen__sos {
    min-width: 110px;
    height: 48px;
  }

  .lc-desk-topbar__sos .lc-sos-listen__sos-badge {
    width: 40px;
    height: 40px;
  }

  .lc-desk-topbar__sos .lc-sos-listen__sos-text {
    font-size: 24px;
    text-transform: uppercase;
  }

  .lc-desk-topbar__sos .lc-sos-listen__listen {
    min-height: 48px;
    flex: 1 1 auto;
    max-width: 280px;
    padding-right: 14px !important;
    gap: 8px !important;
  }

  .lc-desk-topbar__sos .lc-sos-listen__listen-icon {
    width: 40px;
    height: 40px;
  }

  .lc-desk-topbar__sos .lc-sos-listen__listen-label {
    display: inline-block !important;
    flex: 0 0 auto;
    color: #0A4650 !important;
    font-family: "Abhaya Libre", Georgia, serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  .lc-desk-topbar__sos .lc-sos-listen__wave {
    flex: 1 1 auto;
    max-width: 120px;
  }

  .lc-desk-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 44px;
    padding: 4px 6px 4px 10px;
    background: #fff;
    border-radius: 999px;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
  }

  .lc-desk-lang__user,
  .lc-desk-user__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0A4650;
    margin-right: 2px;
    background: transparent;
    border: 0;
    padding: 0;
    width: 28px;
    height: 28px;
    cursor: pointer;
  }

  .lc-desk-user {
    position: relative;
    display: inline-flex;
  }

  .lc-desk-user__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #c5d6d8;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(10, 70, 80, 0.14);
    z-index: 80;
  }

  .lc-desk-user:hover .lc-desk-user__menu,
  .lc-desk-user:focus-within .lc-desk-user__menu {
    display: block;
  }

  .lc-desk-user__menu a {
    display: block;
    padding: 10px 14px;
    color: #0A4650 !important;
    text-decoration: none !important;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
  }

  .lc-desk-user__menu a:hover,
  .lc-desk-user__menu a:focus {
    background: #e7f3f3;
  }

  .lc-desk-lang__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    color: #0A4650 !important;
    text-decoration: none !important;
    font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
    font-size: 14px;
    font-weight: 700;
  }

  .lc-desk-lang__link.is-active {
    background: #0A4650;
    color: #fff !important;
  }

  /* Main home body — centered in available content area */
  body.lc-desk-home .lc-figma-home {
    max-width: 960px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 28px 8px 36px !important;
    gap: 22px !important;
    box-sizing: border-box !important;
  }

  body.lc-desk-home .lc-figma-home__welcome {
    font-size: 34px !important;
    color: #0A4650 !important;
  }

  body.lc-desk-home .lc-figma-home__subtitle {
    font-size: 18px !important;
    color: #0A4852 !important;
  }

  body.lc-desk-home .lc-figma-home__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.lc-desk-home .lc-figma-home__greeting {
    grid-column: 1 / span 2 !important;
  }

  body.lc-desk-home .lc-home-community {
    grid-column: 1 / -1 !important;
    grid-row: 2;
  }

  body.lc-desk-home .lc-home-action {
    min-height: 132px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 18px 12px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1.5px solid #0A4650 !important;
    box-shadow: 0 4px 14px rgba(10, 70, 80, 0.08) !important;
    box-sizing: border-box !important;
  }

  body.lc-desk-home .lc-home-action__label {
    font-size: 18px !important;
  }

  body.lc-desk-home .lc-home-action__icon,
  body.lc-desk-home .lc-home-action__icon img,
  body.lc-desk-home .lc-home-action__icon svg {
    width: 52px !important;
    height: 52px !important;
  }

  body.lc-desk-home .lc-figma-home__promo {
    padding: 18px 22px !important;
    border-radius: 16px !important;
    background: #0A4650 !important;
    gap: 16px !important;
  }

  body.lc-desk-home .lc-figma-home__promo-sub--short {
    display: none !important;
  }

  body.lc-desk-home .lc-figma-home__promo-sub--long {
    display: block !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    opacity: 0.9 !important;
    max-width: 560px;
  }

  body.lc-desk-home .lc-figma-home__promo-title {
    font-size: 20px !important;
  }

  body.lc-desk-home .lc-figma-home__promo-cta {
    min-width: 110px !important;
    height: 40px !important;
    border-radius: 10px !important;
    font-size: 18px !important;
  }

  body.lc-desk-home .lc-figma-home__promo-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
    background: rgba(243, 248, 248, 0.2) !important;
  }

  /* Keep desktop home chrome clean vs Figma */
  body.lc-desk-home .whatsapp,
  body.lc-desk-home [class*="whatsapp"],
  body.lc-desk-home a[href*="wa.me"],
  body.lc-desk-home .joinchat,
  body.lc-desk-home #wa-widget,
  body.lc-desk-home .a11y-toolbar,
  body.lc-desk-home .pojo-a11y-toolbar {
    display: none !important;
  }
}
