/* Phase 1 global design-system foundation.
   Keeps the approved homepage intact while bringing the rest of the platform
   closer to the same mobile-first, task-first visual language. */

:root {
  --app-header-height: 86px;
  --app-mobile-header-height: 70px;
  --app-bottom-nav-height: 76px;
  --app-shell: min(1180px, calc(100% - 32px));
  --app-shell-wide: min(1360px, calc(100% - 32px));
  --app-card-pad: clamp(14px, 2vw, 22px);
}

html {
  scroll-padding-top: calc(var(--app-header-height) + 16px);
}

body.phase1-foundation {
  overflow-x: hidden;
  background: var(--paper);
}

body.phase1-foundation .app-main {
  isolation: isolate;
}

body.phase1-foundation .site-header {
  min-height: var(--app-header-height);
}

body.phase1-foundation .site-nav a,
body.phase1-foundation .site-footer a,
body.phase1-foundation .mobile-app-nav-item {
  text-decoration: none;
}

body.phase1-foundation .site-nav a:focus-visible,
body.phase1-foundation .site-footer a:focus-visible,
body.phase1-foundation .mobile-app-nav-item:focus-visible,
body.phase1-foundation .button:focus-visible,
body.phase1-foundation button:focus-visible,
body.phase1-foundation input:focus-visible,
body.phase1-foundation select:focus-visible,
body.phase1-foundation textarea:focus-visible {
  outline: 3px solid rgba(217, 180, 37, .7);
  outline-offset: 3px;
}

body.phase1-foundation .button,
body.phase1-foundation button.button {
  min-height: var(--touch);
  border-radius: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

body.phase1-foundation .button.ghost {
  background: #fffaf3;
}

body.page-public .page-hero,
body.page-auth .page-hero {
  width: var(--app-shell);
  max-width: var(--app-shell);
  padding: clamp(34px, 5vw, 66px) 0 clamp(20px, 3vw, 34px);
  margin-inline: auto;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}

body.page-public .page-hero .eyebrow,
body.page-auth .page-hero .eyebrow,
body.phase1-foundation .section-head .eyebrow {
  margin-bottom: 0;
  color: var(--red);
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
}

body.page-public .page-hero h1,
body.page-auth .page-hero h1 {
  width: min(100%, calc(100vw - 28px));
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(2.1rem, 5vw, 4.35rem);
  line-height: 1.04;
  text-align: center;
  overflow-wrap: anywhere;
}

body.page-public .page-hero > p:not(.eyebrow),
body.page-auth .page-hero > p:not(.eyebrow) {
  width: min(100%, calc(100vw - 28px));
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

body.phase1-foundation .section {
  width: 100%;
}

body.phase1-foundation .section > .section-head,
body.phase1-foundation .section-head {
  width: var(--app-shell);
  max-width: var(--app-shell);
  margin-inline: auto;
  text-align: center;
}

body.phase1-foundation .section-head h2 {
  max-width: 940px;
  margin-inline: auto;
  font-size: clamp(1.85rem, 4vw, 3.65rem);
  line-height: 1.06;
}

body.phase1-foundation .section-lead,
body.phase1-foundation .section-head > p:not(.eyebrow) {
  max-width: 780px;
  margin-inline: auto;
  color: var(--muted);
  font-weight: 750;
}

body.phase1-foundation .hero-search,
body.phase1-foundation .form-card,
body.phase1-foundation .panel,
body.phase1-foundation .profile-card,
body.phase1-foundation .product-card,
body.phase1-foundation .pricing-card,
body.phase1-foundation .role-card,
body.phase1-foundation .gallery-item-card,
body.phase1-foundation .customer-request-card {
  border-radius: 10px;
}

body.page-public .hero-search,
body.page-auth .hero-search {
  width: min(100%, 1020px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(234, 218, 198, .95);
  border-radius: 10px;
  background: rgba(255, 250, 243, .9);
  box-shadow: 0 18px 44px rgba(61, 35, 18, .08);
}

body.page-public .hero-search.compact {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

body.page-public .hero-search input,
body.page-public .hero-search select,
body.page-public .hero-search button,
body.page-auth .hero-search input,
body.page-auth .hero-search select,
body.page-auth .hero-search button {
  min-width: 0;
}

body.phase1-foundation .filter-summary,
body.phase1-foundation .trust-strip,
body.phase1-foundation .intent-chips,
body.phase1-foundation .hero-actions,
body.phase1-foundation .card-actions,
body.phase1-foundation .result-toolbar-actions {
  justify-content: center;
}

body.phase1-foundation .trust-strip,
body.phase1-foundation .intent-chips,
body.phase1-foundation .filter-summary {
  max-width: var(--app-shell);
  margin-inline: auto;
}

body.phase1-foundation .filter-summary span,
body.phase1-foundation .filter-summary strong,
body.phase1-foundation .filter-summary a,
body.phase1-foundation .trust-strip span,
body.phase1-foundation .intent-chips a {
  border-radius: 999px;
  text-align: center;
  line-height: 1.18;
}

body.phase1-foundation .cards,
body.phase1-foundation .role-grid,
body.phase1-foundation .pricing-grid,
body.phase1-foundation .gallery-grid,
body.phase1-foundation .check-grid,
body.phase1-foundation .feature-stack,
body.phase1-foundation .empty-recovery-grid {
  width: var(--app-shell);
  max-width: var(--app-shell);
  margin-inline: auto;
}

body.phase1-foundation .cards,
body.phase1-foundation .role-grid,
body.phase1-foundation .pricing-grid,
body.phase1-foundation .check-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

body.phase1-foundation .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

body.phase1-foundation .split,
body.phase1-foundation .grid-two,
body.phase1-foundation .visual-band {
  width: var(--app-shell);
  max-width: var(--app-shell);
  margin-inline: auto;
}

body.phase1-foundation .profile-card,
body.phase1-foundation .product-card,
body.phase1-foundation .pricing-card,
body.phase1-foundation .panel {
  overflow: hidden;
}

body.phase1-foundation .profile-card h3,
body.phase1-foundation .product-card h3,
body.phase1-foundation .pricing-card h2,
body.phase1-foundation .panel h3 {
  line-height: 1.16;
}

body.phase1-foundation .profile-card p,
body.phase1-foundation .product-card p,
body.phase1-foundation .pricing-card p,
body.phase1-foundation .panel p {
  line-height: 1.45;
}

body.phase1-foundation .profile-card .avatar,
body.phase1-foundation .product-card .product-image {
  box-shadow: 0 10px 24px rgba(61, 35, 18, .08);
}

body.phase1-foundation .marketplace-command-strip {
  width: min(100%, 1040px);
  margin-inline: auto;
}

body.phase1-foundation .marketplace-command-card {
  border-radius: 10px;
}

body.phase1-foundation .faq-list details,
body.phase1-foundation details {
  border-radius: 10px;
}

body.phase1-foundation .faq-list summary,
body.phase1-foundation details summary {
  cursor: pointer;
}

body.phase1-foundation .seo-reader-copy,
body.phase1-foundation .seo-support-content {
  max-width: var(--app-shell);
  margin-inline: auto;
}

body.phase1-foundation .seo-support-content {
  border-top: 1px solid rgba(234, 218, 198, .8);
}

body.phase1-foundation .site-footer {
  position: relative;
  overflow: hidden;
}

body.phase1-foundation .footer-grid,
body.phase1-foundation .footer-bottom {
  position: relative;
  z-index: 1;
}

body.phase1-foundation .footer-bottom {
  text-align: center;
}

@media (min-width: 901px) {
  body.phase1-foundation .site-nav.open {
    display: flex;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: calc(var(--app-mobile-header-height) + 12px);
  }

  body.phase1-foundation {
    padding-top: var(--app-mobile-header-height);
    padding-bottom: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom));
  }

  body.phase1-foundation .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: var(--app-mobile-header-height);
    z-index: 1000;
    background: rgba(255, 249, 240, .98);
    box-shadow: 0 10px 26px rgba(61, 35, 18, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    justify-content: space-between;
    gap: 10px;
  }

  body.phase1-foundation .brand img {
    max-height: 54px;
    width: auto;
    max-width: 190px;
  }

  body.phase1-foundation .nav-toggle {
    min-height: 44px;
    border-radius: 8px;
    margin-left: auto;
    flex: 0 0 auto;
  }

  body.phase1-foundation .site-nav {
    position: fixed;
    top: calc(var(--app-mobile-header-height) + 8px);
    left: 12px;
    right: 12px;
    z-index: 1001;
    max-height: calc(100vh - var(--app-mobile-header-height) - 24px);
    overflow: auto;
    border: 1px solid rgba(234, 218, 198, .92);
    border-radius: 12px;
    background: rgba(255, 250, 243, .98);
    box-shadow: 0 22px 50px rgba(61, 35, 18, .18);
  }

  body.phase1-foundation .site-nav.open {
    display: grid;
    gap: 6px;
    padding: 10px;
  }
}

@media (max-width: 760px) {
  :root {
    --app-shell: min(560px, calc(100vw - 18px));
    --app-shell-wide: min(560px, calc(100vw - 18px));
  }

  html,
  body.phase1-foundation {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.phase1-foundation *,
  body.phase1-foundation *::before,
  body.phase1-foundation *::after {
    box-sizing: border-box;
  }

  body.page-public .page-hero,
  body.page-auth .page-hero {
    width: var(--app-shell);
    max-width: var(--app-shell);
    padding: 28px 0 20px;
    gap: 10px;
    overflow: hidden;
  }

  body.page-public .page-hero h1,
  body.page-auth .page-hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.26rem, 6vw, 1.82rem);
    line-height: 1.08;
    text-wrap: balance;
    overflow-wrap: normal;
  }

  body.page-public .page-hero > p:not(.eyebrow),
  body.page-auth .page-hero > p:not(.eyebrow) {
    width: min(100%, calc(100vw - 32px));
    max-width: min(100%, calc(100vw - 32px));
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    font-size: .82rem;
    line-height: 1.36;
    overflow: visible;
    overflow-wrap: anywhere;
  }

  body.phase1-foundation .section {
    padding-left: 0;
    padding-right: 0;
  }

  body.phase1-foundation .section-head h2 {
    font-size: clamp(1.35rem, 6.6vw, 1.86rem);
  }

  body.phase1-foundation .section-lead,
  body.phase1-foundation .section-head > p:not(.eyebrow) {
    font-size: .86rem;
    line-height: 1.42;
  }

  body.page-public .hero-search,
  body.page-auth .hero-search {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 7px;
    border-radius: 9px;
    overflow: hidden;
  }

  body.page-public:not(.page-home) .hero-search,
  body.page-auth .hero-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-public:not(.page-home) .hero-search button[type="submit"],
  body.page-auth .hero-search button[type="submit"] {
    grid-column: 1 / -1;
  }

  body.page-public .hero-search.product-search,
  body.page-public .hero-search.discovery-search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-public .hero-search input,
  body.page-public .hero-search select,
  body.page-public .hero-search button,
  body.page-auth .hero-search input,
  body.page-auth .hero-search select,
  body.page-auth .hero-search button {
    min-height: 34px;
    padding: 5px 6px;
    font-size: .56rem;
    border-radius: 7px;
  }

  body.phase1-foundation .filter-summary,
  body.phase1-foundation .trust-strip,
  body.phase1-foundation .intent-chips,
  body.phase1-foundation .hero-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 4px;
    overflow: hidden;
  }

  body.page-public:not(.page-home) .filter-summary,
  body.page-public:not(.page-home) .trust-strip,
  body.page-public:not(.page-home) .intent-chips,
  body.page-public:not(.page-home) .hero-actions,
  body.page-auth .hero-actions {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
  }

  body.phase1-foundation .filter-summary span,
  body.phase1-foundation .filter-summary strong,
  body.phase1-foundation .filter-summary a,
  body.phase1-foundation .trust-strip span,
  body.phase1-foundation .intent-chips a,
  body.phase1-foundation .hero-actions .button {
    min-width: 0;
    padding: 7px 4px;
    font-size: .5rem;
    line-height: 1.08;
    white-space: normal;
  }

  body.page-public:not(.page-home) .filter-summary span,
  body.page-public:not(.page-home) .filter-summary strong,
  body.page-public:not(.page-home) .filter-summary a,
  body.page-public:not(.page-home) .trust-strip span,
  body.page-public:not(.page-home) .intent-chips a,
  body.page-public:not(.page-home) .hero-actions .button,
  body.page-auth .hero-actions .button {
    flex: 1 1 calc(50% - 6px);
    max-width: 100%;
  }

  body.phase1-foundation .cards,
  body.phase1-foundation .role-grid,
  body.phase1-foundation .pricing-grid,
  body.phase1-foundation .gallery-grid,
  body.phase1-foundation .check-grid {
    width: var(--app-shell);
    max-width: var(--app-shell);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: hidden;
  }

  body.phase1-foundation .profile-card,
  body.phase1-foundation .product-card,
  body.phase1-foundation .pricing-card,
  body.phase1-foundation .role-card,
  body.phase1-foundation .panel,
  body.phase1-foundation .gallery-item-card {
    padding: 10px 8px;
    border-radius: 8px;
  }

  body.phase1-foundation .profile-card h3,
  body.phase1-foundation .product-card h3,
  body.phase1-foundation .pricing-card h2,
  body.phase1-foundation .panel h3 {
    font-size: .78rem;
    line-height: 1.12;
  }

  body.phase1-foundation .profile-card p,
  body.phase1-foundation .product-card p,
  body.phase1-foundation .pricing-card p,
  body.phase1-foundation .panel p,
  body.phase1-foundation .meta {
    font-size: .62rem;
    line-height: 1.25;
  }

  body.phase1-foundation .badge {
    padding: 4px 7px;
    font-size: .5rem;
  }

  body.phase1-foundation .card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.phase1-foundation .card-actions .button,
  body.phase1-foundation .button.small,
  body.phase1-foundation .button.tiny {
    min-height: 32px;
    padding: 6px 7px;
    font-size: .56rem;
  }

  body.phase1-foundation .split,
  body.phase1-foundation .grid-two,
  body.phase1-foundation .visual-band {
    width: var(--app-shell);
    max-width: var(--app-shell);
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: hidden;
  }

  body.phase1-foundation .mobile-search-coach,
  body.phase1-foundation .pricing-decision-strip,
  body.phase1-foundation .plan-recommender,
  body.phase1-foundation .lead-next-steps,
  body.phase1-foundation .request-booking-stepper,
  body.phase1-foundation .request-match-strip,
  body.phase1-foundation .profile-decision-flow {
    width: var(--app-shell);
    max-width: var(--app-shell);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
  }

  body.page-public:not(.page-home) .mobile-search-coach,
  body.page-public:not(.page-home) .marketplace-command-strip,
  body.page-public:not(.page-home) .lead-next-steps,
  body.page-public:not(.page-home) .request-booking-stepper,
  body.page-public:not(.page-home) .request-match-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.phase1-foundation .pricing-decision-strip,
  body.phase1-foundation .plan-recommender {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.phase1-foundation .mobile-search-coach article,
  body.phase1-foundation .pricing-decision-strip article,
  body.phase1-foundation .plan-recommender article,
  body.phase1-foundation .lead-next-steps article,
  body.phase1-foundation .request-booking-stepper article,
  body.phase1-foundation .request-match-strip article,
  body.phase1-foundation .profile-decision-flow article {
    min-width: 0;
    padding: 9px 6px;
    border-radius: 8px;
  }

  body.phase1-foundation .mobile-search-coach strong,
  body.phase1-foundation .pricing-decision-strip strong,
  body.phase1-foundation .plan-recommender strong,
  body.phase1-foundation .lead-next-steps strong,
  body.phase1-foundation .request-booking-stepper strong,
  body.phase1-foundation .request-match-strip strong,
  body.phase1-foundation .profile-decision-flow strong {
    font-size: .62rem;
    line-height: 1.12;
  }

  body.phase1-foundation .mobile-search-coach small,
  body.phase1-foundation .pricing-decision-strip small,
  body.phase1-foundation .plan-recommender small,
  body.phase1-foundation .lead-next-steps small,
  body.phase1-foundation .request-booking-stepper small,
  body.phase1-foundation .request-match-strip small,
  body.phase1-foundation .profile-decision-flow small {
    font-size: .5rem;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.phase1-foundation .visual-card,
  body.phase1-foundation .visual-card img,
  body.phase1-foundation .visual-card video {
    min-height: 210px;
  }

  body.phase1-foundation .marketplace-command-strip {
    width: var(--app-shell);
    max-width: var(--app-shell);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
  }

  body.phase1-foundation .marketplace-command-card {
    min-height: 92px;
    padding: 9px 6px;
  }

  body.phase1-foundation .marketplace-command-card span,
  body.phase1-foundation .marketplace-command-card em {
    font-size: .48rem;
  }

  body.phase1-foundation .marketplace-command-card strong {
    font-size: .66rem;
    line-height: 1.1;
  }

  body.phase1-foundation .marketplace-command-card small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .54rem;
    line-height: 1.15;
  }

  body.phase1-foundation .pricing-compare {
    width: var(--app-shell);
    margin-inline: auto;
  }

  body.phase1-foundation .form-card label {
    gap: 5px;
  }

  body.phase1-foundation .form-card input,
  body.phase1-foundation .form-card textarea,
  body.phase1-foundation .form-card select {
    min-height: 38px;
    font-size: .82rem;
  }

  body.phase1-foundation .mobile-app-nav {
    min-height: var(--app-bottom-nav-height);
  }
}

@media (max-width: 520px) {
  body.page-public:not(.page-home) .page-hero,
  body.page-auth .page-hero,
  body.page-public:not(.page-home) .cards,
  body.page-public:not(.page-home) .role-grid,
  body.page-public:not(.page-home) .pricing-grid,
  body.page-public:not(.page-home) .gallery-grid,
  body.page-public:not(.page-home) .check-grid,
  body.page-public:not(.page-home) .split,
  body.page-public:not(.page-home) .grid-two,
  body.page-public:not(.page-home) .visual-band,
  body.page-public:not(.page-home) .mobile-search-coach,
  body.page-public:not(.page-home) .marketplace-command-strip,
  body.page-public:not(.page-home) .lead-next-steps,
  body.page-public:not(.page-home) .request-booking-stepper,
  body.page-public:not(.page-home) .request-match-strip {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: 1fr !important;
  }

  body.page-public:not(.page-home) .hero-search,
  body.page-public:not(.page-home) .hero-search.compact,
  body.page-public:not(.page-home) .hero-search.product-search,
  body.page-public:not(.page-home) .hero-search.discovery-search,
  body.page-auth .hero-search {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  body.page-public:not(.page-home) .filter-summary,
  body.page-public:not(.page-home) .trust-strip,
  body.page-public:not(.page-home) .intent-chips,
  body.page-public:not(.page-home) .hero-actions,
  body.page-auth .hero-actions {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-public:not(.page-home) .filter-summary span,
  body.page-public:not(.page-home) .filter-summary strong,
  body.page-public:not(.page-home) .filter-summary a,
  body.page-public:not(.page-home) .trust-strip span,
  body.page-public:not(.page-home) .intent-chips a,
  body.page-public:not(.page-home) .hero-actions .button,
  body.page-auth .hero-actions .button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 390px) {
  body.page-public .hero-search,
  body.page-auth .hero-search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-public .hero-search input,
  body.page-public .hero-search select,
  body.page-public .hero-search button,
  body.page-auth .hero-search input,
  body.page-auth .hero-search select,
  body.page-auth .hero-search button {
    font-size: .5rem;
    padding-left: 4px;
    padding-right: 4px;
  }

  body.phase1-foundation .filter-summary span,
  body.phase1-foundation .filter-summary strong,
  body.phase1-foundation .filter-summary a,
  body.phase1-foundation .trust-strip span,
  body.phase1-foundation .intent-chips a,
  body.phase1-foundation .hero-actions .button {
    font-size: .44rem;
    padding-left: 2px;
    padding-right: 2px;
  }

  body.phase1-foundation .cards,
  body.phase1-foundation .role-grid,
  body.phase1-foundation .pricing-grid,
  body.phase1-foundation .gallery-grid,
  body.phase1-foundation .check-grid {
    gap: 5px;
  }
}

@media (max-width: 760px) {
  body.page-public:not(.page-home) .hero-search,
  body.page-public:not(.page-home) .hero-search.compact,
  body.page-public:not(.page-home) .hero-search.product-search,
  body.page-public:not(.page-home) .hero-search.discovery-search,
  body.page-auth .hero-search {
    grid-template-columns: 1fr !important;
  }

  body.page-public:not(.page-home) .hero-search button[type="submit"],
  body.page-auth .hero-search button[type="submit"] {
    grid-column: 1 / -1 !important;
  }

  body.page-public:not(.page-home) .mobile-search-coach,
  body.page-public:not(.page-home) .marketplace-command-strip,
  body.page-public:not(.page-home) .lead-next-steps,
  body.page-public:not(.page-home) .request-booking-stepper,
  body.page-public:not(.page-home) .request-match-strip {
    grid-template-columns: 1fr !important;
  }

  body.page-public:not(.page-home) .filter-summary,
  body.page-public:not(.page-home) .trust-strip,
  body.page-public:not(.page-home) .intent-chips,
  body.page-public:not(.page-home) .hero-actions,
  body.page-auth .hero-actions {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: hidden !important;
  }
}

@media (max-width: 760px) {
  body.phase1-foundation.page-public:not(.page-home) .filter-summary,
  body.phase1-foundation.page-public:not(.page-home) .trust-strip,
  body.phase1-foundation.page-public:not(.page-home) .intent-chips {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.phase1-foundation.page-public:not(.page-home) .filter-summary > *,
  body.phase1-foundation.page-public:not(.page-home) .trust-strip > *,
  body.phase1-foundation.page-public:not(.page-home) .intent-chips > * {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    place-items: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }

  body.phase1-foundation.page-public:not(.page-home) .visual-band,
  body.phase1-foundation.page-public:not(.page-home) .visual-band > *,
  body.phase1-foundation.page-public:not(.page-home) .visual-card,
  body.phase1-foundation.page-public:not(.page-home) .visual-media {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.phase1-foundation.page-public:not(.page-home) .trust-chip-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
  }

  body.phase1-foundation.page-public:not(.page-home) .trust-chip-row span {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    justify-content: center !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
  }
}

/* Phase 2: customer-first discovery pages for Artists, Tutors, Products, Gallery. */
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) {
  --discovery-accent: var(--red);
  --discovery-soft: rgba(255, 250, 243, .9);
}

body.phase1-foundation.route-tutors {
  --discovery-accent: #dca10a;
}

body.phase1-foundation.route-products {
  --discovery-accent: #16843d;
}

body.phase1-foundation.route-gallery {
  --discovery-accent: #ec6b2e;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero {
  position: relative;
  isolation: isolate;
  width: var(--app-shell-wide);
  max-width: var(--app-shell-wide);
  margin-top: clamp(14px, 2.2vw, 26px);
  padding: clamp(30px, 5vw, 58px) clamp(14px, 3.4vw, 46px);
  border: 1px solid rgba(231, 211, 186, .82);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, .94), rgba(255, 242, 223, .86)),
    #fff8ee;
  box-shadow: 0 22px 62px rgba(87, 49, 24, .09);
  overflow: hidden;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero::before,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero::before {
  z-index: -3;
  background-position: center;
  background-size: cover;
  opacity: .18;
  transform: scale(1.02);
}

body.phase1-foundation.route-artists .discovery-page-hero::before {
  background-image: url("../img/premium/book-artist.webp");
}

body.phase1-foundation.route-tutors .discovery-page-hero::before {
  background-image: url("../img/premium/learn-mehndi.webp");
}

body.phase1-foundation.route-products .discovery-page-hero::before {
  background-image: url("../img/premium/henna-products.webp");
}

body.phase1-foundation.route-gallery .discovery-page-hero::before {
  background-image: url("../img/premium/gallery-cover.webp");
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero::after {
  z-index: -2;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, .78), transparent 36%),
    linear-gradient(90deg, rgba(255, 250, 243, .98) 0%, rgba(255, 250, 243, .9) 56%, rgba(255, 250, 243, .68) 100%);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .eyebrow {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  color: var(--discovery-accent);
  box-shadow: 0 10px 28px rgba(87, 49, 24, .08);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.15rem, 4.7vw, 4.6rem);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero > p:not(.eyebrow) {
  max-width: 820px;
  font-size: clamp(.98rem, 1.5vw, 1.12rem);
  color: #4f3b30;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin-top: 6px;
  border-radius: 8px;
  border-color: rgba(231, 211, 186, .9);
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 18px 46px rgba(87, 49, 24, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search input,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search select {
  border-color: rgba(217, 195, 166, .92);
  background: #fffdfa;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search button {
  background: var(--discovery-accent);
  box-shadow: 0 14px 28px rgba(113, 16, 18, .16);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .trust-strip,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .intent-chips {
  width: min(100%, 980px);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary > *,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .trust-strip > *,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .intent-chips > * {
  border-color: rgba(231, 211, 186, .82);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 20px rgba(87, 49, 24, .06);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-strip {
  width: min(100%, 1040px);
  max-width: 1040px;
  gap: 10px;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card {
  min-height: 136px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 249, 239, .92));
  border-top: 4px solid var(--discovery-accent);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card span,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card em {
  color: var(--discovery-accent);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-results-section {
  padding-top: clamp(32px, 5vw, 58px);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .discovery-results-section .cards {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  align-items: stretch;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card,
body.phase1-foundation.route-gallery .gallery-item-card {
  border-radius: 8px;
  border-color: rgba(231, 211, 186, .9);
  box-shadow: 0 18px 46px rgba(87, 49, 24, .08);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card:hover,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card:hover,
body.phase1-foundation.route-gallery .gallery-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(157, 13, 17, .34);
  box-shadow: 0 22px 56px rgba(87, 49, 24, .12);
}

body.phase1-foundation:is(.route-artists, .route-tutors) .profile-card {
  justify-items: center;
  text-align: center;
}

body.phase1-foundation:is(.route-artists, .route-tutors) .profile-card .avatar {
  width: 72px;
  height: 72px;
  font-size: 1.25rem;
  box-shadow: 0 14px 34px rgba(157, 13, 17, .13);
}

body.phase1-foundation.route-products .product-card .product-image {
  min-height: 150px;
  border-radius: 8px;
  overflow: hidden;
}

body.phase1-foundation.route-products .product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card h3,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card h3 {
  margin-bottom: 0;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card > p:not(.meta):not(.rating-line),
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card > p:not(.meta) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-signal-row,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .trust-chip-row {
  width: 100%;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .card-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .card-actions .button {
  min-width: 0;
  width: 100%;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

body.phase1-foundation.route-gallery .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

body.phase1-foundation.route-gallery .gallery-item-card {
  overflow: hidden;
  background: #fffdfa;
}

body.phase1-foundation.route-gallery .gallery-item {
  border-radius: 8px;
  overflow: hidden;
}

body.phase1-foundation.route-gallery .gallery-item img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

body.phase1-foundation.route-gallery .gallery-card-meta {
  display: grid;
  gap: 6px;
  text-align: center;
}

body.phase1-foundation.route-gallery .gallery-item-card .card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .visual-band {
  border-radius: 8px;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(231, 211, 186, .82);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .94), rgba(255, 247, 235, .92));
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .visual-card {
  border-radius: 8px;
  overflow: hidden;
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .result-toolbar {
  border-radius: 8px;
  border: 1px solid rgba(231, 211, 186, .86);
  background:
    linear-gradient(180deg, #fffdfa, #fff8ef);
  box-shadow: 0 14px 36px rgba(87, 49, 24, .07);
}

body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .provider-prompt-strip,
body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .fast-lane {
  border-radius: 8px;
  border-color: rgba(231, 211, 186, .86);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(255, 241, 221, .9));
}

@media (max-width: 760px) {
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-top: 10px;
    padding: 18px 7px 16px !important;
    gap: 9px;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero::before {
    opacity: .13;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .eyebrow {
    min-height: 24px;
    padding: 5px 9px;
    font-size: .62rem;
    white-space: nowrap;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero h1 {
    width: min(100%, calc(100vw - 46px)) !important;
    max-width: min(100%, calc(100vw - 46px)) !important;
    font-size: clamp(1.05rem, 5.2vw, 1.48rem) !important;
    line-height: 1.08;
    overflow-wrap: anywhere !important;
    word-break: normal;
    hyphens: auto;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero > p:not(.eyebrow) {
    width: min(100%, calc(100vw - 50px)) !important;
    max-width: min(100%, calc(100vw - 50px)) !important;
    font-size: .6rem !important;
    line-height: 1.28 !important;
    text-align: center;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search {
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: min(100%, calc(100vw - 36px)) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    padding: 7px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search input,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search select,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search button {
    min-height: 38px !important;
    padding: 5px 6px !important;
    font-size: .58rem !important;
    border-radius: 7px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search button[type="submit"] {
    grid-column: 1 / -1 !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .trust-strip,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .intent-chips {
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: min(100%, calc(100vw - 36px)) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    flex-direction: initial !important;
    flex-wrap: initial !important;
    gap: 5px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary > *:first-child {
    grid-column: 1 / -1;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary > *,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .trust-strip > *,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .intent-chips > * {
    min-height: 30px !important;
    padding: 5px 6px !important;
    font-size: .5rem !important;
    line-height: 1.08 !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-strip {
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: min(100%, calc(100vw - 36px)) !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card {
    min-width: 0 !important;
    min-height: 98px !important;
    padding: 8px 5px !important;
    text-align: center;
    gap: 4px;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card span,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card em {
    justify-self: center;
    font-size: .42rem !important;
    padding: 3px 5px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card strong {
    font-size: .54rem !important;
    line-height: 1.08 !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card small {
    display: none;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .discovery-results-section .cards,
  body.phase1-foundation.route-gallery .gallery-grid {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card,
  body.phase1-foundation.route-gallery .gallery-item-card {
    min-width: 0 !important;
    padding: 9px 6px !important;
    gap: 6px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors) .profile-card .avatar {
    width: 44px;
    height: 44px;
    font-size: .82rem;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card h3,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card h3,
  body.phase1-foundation.route-gallery .gallery-item-card strong {
    font-size: .67rem !important;
    line-height: 1.1 !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card p,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card p,
  body.phase1-foundation.route-gallery .gallery-card-meta {
    font-size: .54rem !important;
    line-height: 1.16 !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-card > p:not(.meta):not(.rating-line),
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .product-card > p:not(.meta) {
    -webkit-line-clamp: 2;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .quality-meter,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .trust-chip-row,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .profile-signal-row {
    display: none !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .card-actions {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products) .card-actions .button,
  body.phase1-foundation.route-gallery .gallery-item-card .button {
    min-height: 28px !important;
    padding: 5px 6px !important;
    font-size: .5rem !important;
    border-radius: 7px !important;
  }

  body.phase1-foundation.route-products .product-card .product-image {
    min-height: 74px;
  }

  body.phase1-foundation.route-gallery .gallery-item img {
    aspect-ratio: 1 / 1.08;
  }

  body.phase1-foundation.route-gallery .gallery-item-card .card-actions {
    grid-template-columns: 1fr !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .result-toolbar {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    gap: 8px !important;
    padding: 10px 8px !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .result-toolbar strong {
    font-size: .72rem;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .result-toolbar small {
    font-size: .58rem;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .result-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .result-toolbar-actions .button {
    min-width: 0;
    width: 100%;
    padding: 6px 5px;
    font-size: .48rem;
  }
}

@media (max-width: 390px) {
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search input,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search select,
  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero .hero-search button {
    font-size: .52rem !important;
  }

  body.phase1-foundation:is(.route-artists, .route-tutors, .route-products, .route-gallery) .marketplace-command-card strong {
    font-size: .48rem !important;
  }
}

@media (max-width: 760px) {
  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary,
  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .trust-strip,
  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .intent-chips {
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: min(100%, calc(100vw - 36px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .filter-summary > *,
  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .trust-strip > *,
  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .intent-chips > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: initial !important;
  }

  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-page-hero > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .mobile-search-coach {
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: min(100%, calc(100vw - 36px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  body.phase1-foundation.page-public:not(.page-home):is(.route-artists, .route-tutors, .route-products, .route-gallery) .mobile-search-coach article {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 7px 5px !important;
  }

  body.phase1-foundation.page-public:not(.page-home).route-gallery .intent-chips {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
  }
}
