/* ArogYantra home: approved mobile composition only. Desktop/tablet >= 768px stay unchanged. */
.aro-mobile-secondary-nav,
.aro-mobile-care-banner,
.aro-mobile-bottom-nav,
.aro-mobile-notification,
.doctor-profile-cta-mobile {
  display: none;
}

html.home-page body.cosmic .doctor-avatar-wrap picture {
  display: contents;
}

@media (max-width: 767px) {
  html.home-page,
  html.home-page body.cosmic {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  html.home-page body.cosmic {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    background:
      radial-gradient(430px 300px at 86% 9%, rgba(19, 199, 217, .09), transparent 70%),
      radial-gradient(360px 260px at 8% 4%, rgba(242, 190, 77, .07), transparent 72%),
      #031421;
  }

  html.home-page body.cosmic main {
    width: 100%;
    max-width: 100%;
    padding-inline: 14px;
  }

  /* Compact brand row: logo + brand on the left, notification + menu on the right. */
  html.home-page body.cosmic .topbar-wrap {
    position: relative;
    z-index: 70;
    padding-top: 6px;
    background: linear-gradient(180deg, rgba(3, 20, 33, .98), rgba(3, 20, 33, .88));
  }

  html.home-page body.cosmic .topbar-wrap > .max-w-6xl {
    width: 100%;
    max-width: 100%;
    padding-inline: 14px;
  }

  html.home-page body.cosmic .topbar {
    min-height: 62px;
    padding: 7px 10px;
    flex-wrap: nowrap;
    border-radius: 17px;
  }

  html.home-page body.cosmic .topbar .logo-wrap {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  html.home-page body.cosmic .topbar .brand-home-link {
    min-width: 0;
    gap: 8px;
  }

  html.home-page body.cosmic .topbar .brand-home-link .serif {
    font-size: clamp(22px, 6.2vw, 25px);
    white-space: nowrap;
  }

  html.home-page body.cosmic .topbar > nav,
  html.home-page body.cosmic .topbar .nav-pill {
    display: none !important;
  }

  html.home-page body.cosmic .topbar > div:last-child {
    flex: 0 0 auto;
    gap: 7px;
  }

  html.home-page body.cosmic .aro-mobile-notification,
  html.home-page body.cosmic .topbar .menu-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: grid !important;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(19, 199, 217, .24);
    border-radius: 13px;
    color: rgba(247, 250, 255, .90);
    background: rgba(255, 255, 255, .025);
    text-decoration: none;
  }

  html.home-page body.cosmic .aro-mobile-notification svg {
    width: 20px;
    height: 20px;
  }

  html.home-page body.cosmic .topbar .menu-btn {
    font-size: 0;
  }

  html.home-page body.cosmic .topbar .menu-btn::before {
    content: "☰";
    font-size: 21px;
    line-height: 1;
  }

  html.home-page body.cosmic #mnav {
    margin-top: 7px;
    border-radius: 16px;
    background: rgba(5, 19, 32, .98);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .42);
  }

  /* Section links are already available in the mobile hamburger menu. */
  html.home-page body.cosmic .aro-mobile-secondary-nav {
    width: 100%;
    min-height: 42px;
    display: none;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 3px 15px 4px;
    white-space: nowrap;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(19, 199, 217, .12);
    background: rgba(3, 20, 33, .94);
  }

  html.home-page body.cosmic .aro-mobile-secondary-nav::-webkit-scrollbar,
  html.home-page body.cosmic #doctor-section .doctor-showcase-grid::-webkit-scrollbar {
    display: none;
  }

  html.home-page body.cosmic .aro-mobile-secondary-nav a {
    position: relative;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: #a8bbc8;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
  }

  html.home-page body.cosmic .aro-mobile-secondary-nav a[aria-current="page"] {
    color: #f5c451;
  }

  html.home-page body.cosmic .aro-mobile-secondary-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: #f2be4d;
    box-shadow: 0 0 11px rgba(242, 190, 77, .55);
  }

  /* Keep the mobile brand and illustration in one centered column. */
  html.home-page body.cosmic #home-hero {
    padding: 12px 0 10px !important;
  }

  html.home-page body.cosmic #home-hero::before {
    background:
      radial-gradient(290px 260px at 78% 20%, rgba(18, 148, 205, .16), transparent 70%),
      radial-gradient(230px 220px at 16% 17%, rgba(212, 175, 55, .08), transparent 72%);
  }

  html.home-page body.cosmic #home-hero .aro-hero-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "visual" "actions";
    gap: 10px;
    align-items: center;
  }

  html.home-page body.cosmic #home-hero .aro-hero-copy {
    min-width: 0;
    padding: 0;
    align-self: center;
    text-align: center;
  }

  html.home-page body.cosmic #home-hero .hero-top-logo {
    width: 78.66px;
    height: 78.66px;
    margin: 0 auto 2px;
  }

  html.home-page body.cosmic #home-hero .aro-hero-title {
    font-size: clamp(29px, 8.4vw, 34px);
    line-height: 1.02;
    letter-spacing: -.035em;
  }

  html.home-page body.cosmic #home-hero .aro-hero-headline {
    margin-top: 5px;
    font-size: clamp(19px, 5.4vw, 22px);
    line-height: 1.08;
    text-wrap: balance;
  }

  html.home-page body.cosmic #home-hero .aro-hero-kicker {
    display: none;
    max-width: 100%;
    margin: 8px auto 0;
    color: #a8bbc8;
    font-size: 11.5px;
    line-height: 1.48;
  }

  html.home-page body.cosmic #home-hero .aro-brand-values {
    display: none;
    min-height: 20px;
    margin: 9px 0 0;
    justify-content: center;
    gap: 0;
    font-size: 8.7px;
    letter-spacing: .055em;
  }

  html.home-page body.cosmic #home-hero .aro-brand-values span {
    gap: 3px;
    padding: 0 6px;
  }

  html.home-page body.cosmic #home-hero .aro-brand-values span:first-child {
    padding-left: 0;
  }

  html.home-page body.cosmic #home-hero .aro-brand-values b {
    font-size: 10px;
  }

  html.home-page body.cosmic #home-hero .aro-hero-visual {
    min-width: 0;
    align-self: center;
  }

  html.home-page body.cosmic #home-hero .hero-illus-wrap {
    min-width: 0;
    height: auto;
  }

  html.home-page body.cosmic #home-hero .hero-art-card {
    width: 100%;
    max-width: 330px;
    margin-inline: auto;
  }

  html.home-page body.cosmic #home-hero .hero-art-card img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }

  html.home-page body.cosmic #home-hero .aro-feature,
  html.home-page body.cosmic #home-hero .aro-art-tagline {
    display: none;
  }

  html.home-page body.cosmic #home-hero .aro-hero-actions {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  /* Location + query stay in one compact row until the 360px fallback. */
  html.home-page body.cosmic #home-hero .search-combo,
  html.home-page body.cosmic #home-hero .searchbar,
  html.home-page body.cosmic #home-hero .aro-hero-ctas {
    width: 100%;
    max-width: 100%;
  }

  html.home-page body.cosmic #home-hero .searchbar {
    min-height: 40px;
    display: grid;
    grid-template-columns: 36% minmax(0, 1fr) 52px;
    align-items: stretch;
    overflow: visible;
    border-radius: 13px;
  }

  html.home-page body.cosmic #home-hero .search-segment,
  html.home-page body.cosmic #home-hero .search-segment.location,
  html.home-page body.cosmic #home-hero .search-segment.query {
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 38px;
    grid-column: auto;
    grid-row: auto;
    padding: 0 9px;
    border-bottom: 0;
  }

  html.home-page body.cosmic #home-hero .search-segment.location {
    border-right: 1px solid rgba(62, 205, 210, .23);
  }

  html.home-page body.cosmic #home-hero .search-segment svg {
    width: 15px;
    height: 15px;
  }

  html.home-page body.cosmic #home-hero .searchbar input {
    min-width: 0;
    min-height: 38px;
    font-size: 10.5px;
    text-overflow: ellipsis;
  }

  html.home-page body.cosmic #home-hero .aro-location-chevron {
    display: none;
  }

  html.home-page body.cosmic #home-hero .search-submit {
    grid-column: auto;
    grid-row: auto;
    width: 52px;
    height: 40px;
    margin: -1px -1px -1px 0;
    border-radius: 0 13px 13px 0;
  }

  html.home-page body.cosmic #home-hero .aro-hero-ctas {
    margin-top: 9px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  html.home-page body.cosmic #home-hero .aro-hero-cta,
  html.home-page body.cosmic #home-hero #find-doctor,
  html.home-page body.cosmic #home-hero #instant-consult {
    min-width: 0;
    min-height: 44px;
    padding: 4px 6px;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 13px;
  }

  html.home-page body.cosmic #home-hero .aro-hero-cta svg {
    width: 20px;
    height: 20px;
  }

  html.home-page body.cosmic #home-hero .aro-cta-copy {
    min-width: 0;
    align-items: flex-start;
    text-align: left;
  }

  html.home-page body.cosmic #home-hero .aro-cta-copy strong {
    font-size: 12px;
  }

  html.home-page body.cosmic #home-hero .aro-cta-copy small {
    display: block;
    font-size: 8.5px;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
  }

  /* Four dynamic metrics in one compact strip on regular phones. */
  html.home-page body.cosmic #home-hero .aro-stats-spacing {
    padding-top: 9px;
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase {
    min-height: 62px;
    padding: 3px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 14px;
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase__item {
    min-width: 0;
    min-height: 50px;
    padding: 3px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase__item:not(:first-of-type)::before,
  html.home-page body.cosmic #home-hero .home-stats-showcase__item:nth-of-type(even)::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 14%;
    width: 1px;
    height: 72%;
    background: linear-gradient(180deg, transparent, rgba(22, 206, 219, .28), transparent);
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase__item::after {
    display: none !important;
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase__icon svg {
    width: 14px;
    height: 14px;
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase__content {
    align-items: center;
    text-align: center;
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase__value {
    font-size: 21px;
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase__label {
    min-height: 12px;
    margin-top: 2px;
    font-size: 9.5px;
    line-height: 1.15;
  }

  html.home-page body.cosmic #home-hero > .gold-divider {
    display: none;
  }

  /* Compact, touch-scrollable real doctor results. */
  html.home-page body.cosmic #doctor-section {
    padding: 10px 0 12px;
  }

  html.home-page body.cosmic #doctor-section > div:first-child {
    align-items: center;
  }

  html.home-page body.cosmic #doctor-section .section-title {
    font-size: 22px;
    line-height: 1.1;
  }

  html.home-page body.cosmic #doctor-section > div:first-child > a {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 11px !important;
  }

  html.home-page body.cosmic #doctor-section .doctor-showcase-grid {
    width: calc(100% + 14px);
    margin-top: 12px;
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 1px 14px 7px 0;
  }

  html.home-page body.cosmic #doctor-section .doctor-showcase-card {
    width: 182px;
    min-width: 182px;
    min-height: 304px;
    height: auto;
    flex: 0 0 182px;
    scroll-snap-align: start;
    padding: 11px;
    border-radius: 14px;
  }

  html.home-page body.cosmic #doctor-section .doctor-card-top,
  html.home-page body.cosmic #doctor-section .doctor-ribbon,
  html.home-page body.cosmic #doctor-section .doctor-info-row,
  html.home-page body.cosmic #doctor-section .doctor-verify-chip,
  html.home-page body.cosmic #doctor-section .doctor-metric-row,
  html.home-page body.cosmic #doctor-section .doctor-action-grid,
  html.home-page body.cosmic #doctor-section .doctor-rating-copy {
    display: none;
  }

  html.home-page body.cosmic #doctor-section .doctor-avatar-wrap {
    width: 72px;
    height: 72px;
    margin-top: 4px;
    padding: 3px;
  }

  html.home-page body.cosmic #doctor-section .doctor-online-dot {
    width: 16px;
    height: 16px;
    right: 1px;
    bottom: 5px;
    border-width: 2px;
  }

  html.home-page body.cosmic #doctor-section .doctor-rating {
    margin-top: 9px;
    gap: 3px;
  }

  html.home-page body.cosmic #doctor-section .doctor-rating-stars {
    gap: 2px;
  }

  html.home-page body.cosmic #doctor-section .doctor-rating-stars .star::before {
    font-size: 13px;
  }

  html.home-page body.cosmic #doctor-section .doctor-rating-text {
    display: block;
    font-size: 9.5px;
  }

  html.home-page body.cosmic #doctor-section .doctor-name {
    min-height: 34px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    line-height: 1.25;
  }

  html.home-page body.cosmic #doctor-section .doctor-speciality {
    min-height: 28px;
    margin-top: 3px;
    font-size: 10.5px;
    line-height: 1.3;
  }

  html.home-page body.cosmic #doctor-section .doctor-profile-cta {
    min-height: 40px;
    margin-top: auto;
    gap: 6px;
    border-radius: 11px;
    font-size: 10.5px;
  }

  html.home-page body.cosmic #doctor-section .doctor-profile-cta-desktop {
    display: none;
  }

  html.home-page body.cosmic #doctor-section .doctor-profile-cta-mobile {
    display: inline;
  }

  html.home-page body.cosmic #doctor-section .doctor-profile-cta span:last-child {
    font-size: 16px;
  }

  html.home-page body.cosmic #doctor-section > .gold-divider {
    display: none;
  }

  /* Compact integrated-care banner immediately follows doctor carousel. */
  html.home-page body.cosmic .aro-mobile-care-banner {
    min-height: 82px;
    margin: 2px 0 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    overflow: hidden;
    border: 1px solid rgba(20, 184, 166, .38);
    border-radius: 13px;
    background:
      radial-gradient(170px 100px at 10% 50%, rgba(20, 184, 166, .18), transparent 74%),
      linear-gradient(110deg, rgba(4, 35, 39, .96), rgba(5, 20, 34, .96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 13px 30px rgba(0, 0, 0, .24);
  }

  html.home-page body.cosmic .aro-mobile-care-banner__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(242, 190, 77, .58);
    border-radius: 50%;
    color: #f2be4d;
    background: rgba(3, 20, 33, .58);
    font-size: 17px;
  }

  html.home-page body.cosmic .aro-mobile-care-banner__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  html.home-page body.cosmic .aro-mobile-care-banner__copy strong {
    color: #f7faff;
    font-size: 11.5px;
    line-height: 1.2;
  }

  html.home-page body.cosmic .aro-mobile-care-banner__copy small {
    color: #a8bbc8;
    font-size: 9.5px;
  }

  html.home-page body.cosmic .aro-mobile-care-banner > a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    border: 1px solid rgba(242, 190, 77, .42);
    border-radius: 10px;
    color: #f5c451;
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }

  /* The approved mobile landing flow is compact by default. Hidden sections remain reachable via :target. */
  html.home-page body.cosmic #student-section,
  html.home-page body.cosmic #services,
  html.home-page body.cosmic #patient-section,
  html.home-page body.cosmic #footer {
    display: none;
  }

  html.home-page body.cosmic #student-section:target,
  html.home-page body.cosmic #services:target,
  html.home-page body.cosmic #patient-section:target,
  html.home-page body.cosmic #footer:target {
    display: block;
  }

  /* Safe-area aware mobile bottom navigation. */
  html.home-page body.cosmic .aro-mobile-bottom-nav {
    position: fixed;
    z-index: 90;
    left: 10px;
    right: 10px;
    bottom: max(7px, env(safe-area-inset-bottom));
    min-height: 66px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(19, 199, 217, .24);
    border-radius: 17px;
    background: rgba(3, 20, 33, .94);
    box-shadow: 0 15px 42px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .04);
    backdrop-filter: blur(16px);
  }

  html.home-page body.cosmic .aro-mobile-bottom-nav a {
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(216, 228, 236, .68);
    font-size: 9px;
    font-weight: 650;
    text-decoration: none;
  }

  html.home-page body.cosmic .aro-mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
  }

  html.home-page body.cosmic .aro-mobile-bottom-nav a[aria-current="page"] {
    color: #f5c451;
    background: linear-gradient(180deg, rgba(242, 190, 77, .08), transparent);
  }

  html.home-page body.cosmic .aro-guide-launcher {
    display: none !important;
  }

  html.home-page body.cosmic .aro-guide-panel {
    bottom: calc(142px + env(safe-area-inset-bottom));
  }

  html.home-page body.cosmic .aro-guide-nudge {
    display: none !important;
  }

  html.home-page body.cosmic .pwa-install-button,
  html.home-page body.cosmic .pwa-install-message {
    display: none !important;
  }

  html.home-page body.cosmic .aro-mobile-secondary-nav a:focus-visible,
  html.home-page body.cosmic .aro-mobile-notification:focus-visible,
  html.home-page body.cosmic .aro-mobile-care-banner a:focus-visible,
  html.home-page body.cosmic .aro-mobile-bottom-nav a:focus-visible {
    outline: 2px solid #13c7d9;
    outline-offset: -2px;
  }
}

@media (max-width: 360px) {
  html.home-page body.cosmic main {
    padding-inline: 12px;
  }

  html.home-page body.cosmic #home-hero .hero-top-logo {
    width: 75.9px;
    height: 75.9px;
  }

  html.home-page body.cosmic #home-hero .hero-art-card {
    max-width: 292px;
  }

  html.home-page body.cosmic #home-hero .searchbar {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  html.home-page body.cosmic #home-hero .search-segment.location {
    grid-column: 1 / -1;
    grid-row: 1;
    border-right: 0;
    border-bottom: 1px solid rgba(62, 205, 210, .23);
  }

  html.home-page body.cosmic #home-hero .search-segment.query {
    grid-column: 1;
    grid-row: 2;
  }

  html.home-page body.cosmic #home-hero .search-submit {
    grid-column: 2;
    grid-row: 2;
    border-radius: 0 0 13px 0;
  }

  html.home-page body.cosmic #home-hero .aro-hero-cta,
  html.home-page body.cosmic #home-hero #find-doctor,
  html.home-page body.cosmic #home-hero #instant-consult {
    min-height: 40px;
    padding-inline: 6px;
  }

  html.home-page body.cosmic #home-hero .aro-cta-copy small {
    display: none;
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    padding: 4px;
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase__item {
    min-height: 40px;
    flex-direction: row;
    gap: 8px;
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase__item:nth-of-type(odd)::before {
    display: none;
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase__item:nth-of-type(-n+2)::after {
    content: "";
    display: block !important;
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 206, 219, .24), transparent);
  }

  html.home-page body.cosmic #home-hero .home-stats-showcase__content {
    align-items: flex-start;
    text-align: left;
  }

  html.home-page body.cosmic .aro-mobile-care-banner {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  html.home-page body.cosmic .aro-mobile-care-banner > a {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  html.home-page body.cosmic .aro-mobile-bottom-nav {
    left: 6px;
    right: 6px;
  }

  html.home-page body.cosmic .aro-mobile-bottom-nav a {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  html.home-page body.cosmic #doctor-section .doctor-showcase-grid {
    scroll-behavior: auto;
  }
}
