/* Founder Phase 1 review, Section A: public hierarchy, discovery and catalog polish. */

body.phase3-app-shell {
  --shell-header-height: 84px;
  --shell-mobile-header-height: 70px;
}

body.u1-platform-shell.phase3-app-shell .site-header {
  padding-block: 10px;
  border-bottom-color: rgba(122, 38, 25, .16);
  background-image:
    linear-gradient(90deg, rgba(255, 249, 239, .97), rgba(255, 244, 226, .94)),
    url('../img/hero-pattern.svg');
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 30px rgba(76, 39, 20, .08);
}

body.u1-platform-shell.phase3-app-shell .site-header.is-scrolled {
  background-image:
    linear-gradient(90deg, rgba(255, 249, 239, .99), rgba(255, 244, 226, .98)),
    url('../img/hero-pattern.svg');
}

body.u1-platform-shell.phase3-app-shell .site-header .brand {
  flex-basis: 250px;
}

body.u1-platform-shell.phase3-app-shell .site-header .brand img {
  width: clamp(190px, 17vw, 250px);
  max-height: 60px;
}

body.phase3-app-shell .site-nav .nav-icon-link {
  min-width: 68px;
  min-height: 54px;
  padding: 8px 7px;
  font-size: .82rem;
}

body.phase3-app-shell .nav-link-icon .ui-icon-svg {
  width: 23px;
  height: 23px;
}

body.route-home.page-home .discovery-v1-home {
  display: block !important;
  min-height: 0 !important;
  width: min(1180px, calc(100vw - 32px)) !important;
  margin-inline: auto !important;
  padding: clamp(38px, 6vw, 76px) clamp(22px, 5vw, 70px) !important;
  border: 1px solid rgba(157, 13, 17, .12);
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(230, 171, 47, .18), transparent 29%),
    radial-gradient(circle at 90% 18%, rgba(157, 13, 17, .1), transparent 31%),
    #fffaf1;
  text-align: center;
}

body.route-home.page-home .discovery-v1-home__primary {
  width: min(100%, 960px);
  margin-inline: auto;
  justify-items: center;
}

body.route-home.page-home .discovery-v1-home h1 {
  max-width: 940px;
  margin-inline: auto;
  font-size: clamp(2.65rem, 5.25vw, 4.9rem);
  line-height: .98;
  text-wrap: balance;
}

body.route-home.page-home .discovery-v1-home .discovery-v1-lead {
  max-width: 720px;
  margin-inline: auto;
}

body.route-home.page-home .discovery-v1-search {
  width: min(100%, 820px);
  margin-inline: auto;
  text-align: left;
}

body.route-home.page-home .discovery-v1-search .discovery-v1-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.route-home.page-home .discovery-v1-search .ui-button {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

body.route-home.page-home .discovery-v1-search .ui-button.is-location {
  border-color: #176d55;
  background: #176d55;
  color: #fff;
}

body.route-home.page-home .discovery-v1-location-status {
  display: block;
  width: 100%;
  margin-top: 8px;
  text-align: center;
}

body.route-home.page-home .compact-feature-section {
  position: relative;
  overflow: hidden;
}

body.route-home.page-home .compact-feature-section--artists {
  background: linear-gradient(180deg, #fff8f5, #fdebe8) !important;
}

body.route-home.page-home .compact-feature-section--tutors {
  background: linear-gradient(180deg, #f4fbf7, #e5f4eb) !important;
}

body.route-home.page-home .compact-feature-section--products {
  background: linear-gradient(180deg, #fffbeb, #fff1c9) !important;
}

body.route-home.page-home .compact-feature-section .section-head h2,
body.route-home.page-home .home-confidence-section .section-head h2 {
  max-width: 900px !important;
}

body.route-home.page-home .compact-profile-card {
  min-height: 330px !important;
  padding: 24px 20px !important;
  border-color: rgba(83, 42, 23, .14) !important;
  background: rgba(255, 255, 255, .78) !important;
  box-shadow: 0 16px 36px rgba(74, 38, 20, .09) !important;
}

body.route-home.page-home .compact-feature-section--artists .compact-profile-card {
  background: linear-gradient(160deg, #fff, #ffe7e2) !important;
}

body.route-home.page-home .compact-feature-section--tutors .compact-profile-card {
  background: linear-gradient(160deg, #fff, #dff2e7) !important;
}

body.route-home.page-home .compact-feature-section--products .compact-profile-card {
  background: linear-gradient(160deg, #fff, #ffefba) !important;
}

body.route-home.page-home .compact-profile-card > img {
  width: 136px !important;
  height: 136px !important;
  min-width: 136px !important;
  border: 4px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 24px rgba(67, 34, 18, .16);
}

body.route-home.page-home .compact-feature-section--products .compact-profile-card > img {
  border-radius: 20px !important;
}

body.route-home.page-home .compact-profile-card strong {
  font-size: 1.08rem !important;
}

body.route-home.page-home .pwa-install-card,
body.route-home.page-home ~ .pwa-install-card,
.pwa-install-card {
  border-color: rgba(157, 13, 17, .22);
  background: linear-gradient(135deg, #fff0df, #ffe0cc);
  color: #351d14;
  box-shadow: 0 18px 44px rgba(83, 37, 19, .2);
}

body.route-home.page-home .home-confidence-grid .trust-detail-card:nth-child(1) { background: #fde8e4 !important; }
body.route-home.page-home .home-confidence-grid .trust-detail-card:nth-child(2) { background: #e4f3e9 !important; }
body.route-home.page-home .home-confidence-grid .trust-detail-card:nth-child(3) { background: #fff1c9 !important; }
body.route-home.page-home .home-confidence-grid .trust-detail-card:nth-child(4) { background: #ffe8cf !important; }
body.route-home.page-home .home-confidence-grid .trust-detail-card:nth-child(5) { background: #e1f2ef !important; }
body.route-home.page-home .home-confidence-grid .trust-detail-card:nth-child(6) { background: #f4e7f0 !important; }

body.route-home.page-home .customer-task-section {
  background:
    linear-gradient(rgba(255, 250, 242, .91), rgba(255, 247, 235, .94)),
    url('../img/hero-pattern.svg') center / cover !important;
}

body.route-home.page-home .customer-task-grid-v2 .task-detail-card:nth-child(1) { background: #fde8e4 !important; }
body.route-home.page-home .customer-task-grid-v2 .task-detail-card:nth-child(2) { background: #fff1c9 !important; }
body.route-home.page-home .customer-task-grid-v2 .task-detail-card:nth-child(3) { background: #e4f3e9 !important; }
body.route-home.page-home .customer-task-grid-v2 .task-detail-card:nth-child(4) { background: #ffe8cf !important; }

body.route-home.page-home .faq-list details summary {
  color: #3b2419 !important;
  font-weight: 850 !important;
}

body.route-home.page-home .faq-list details p {
  color: #17634e !important;
  font-weight: 500 !important;
}

body.route-home.page-home .home-faq-section .section-head h2 {
  max-width: none !important;
  white-space: nowrap;
}

body.route-artists .artist-filter-actions .button,
body.route-tutors .artist-filter-actions .button {
  min-width: 0 !important;
  padding-inline: 10px !important;
  font-size: .78rem !important;
  white-space: nowrap !important;
}

body:is(.route-artists, .route-tutors) .artist-results-summary {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(157, 13, 17, .14);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff4e8, #fffaf3);
}

body.phase1-foundation:is(.route-artists, .route-tutors) .artist-results-summary h2 {
  max-width: 100%;
  white-space: normal !important;
  text-wrap-mode: wrap !important;
  text-wrap-style: balance;
  overflow-wrap: anywhere;
}

body.route-artists .discovery-v1-provider-card {
  background: linear-gradient(110deg, #fff6f2 0 31%, #fff 31% 100%) !important;
}

body.route-tutors .discovery-v1-provider-card {
  background: linear-gradient(110deg, #eef8f2 0 31%, #fff 31% 100%) !important;
}

body:is(.route-artists, .route-tutors) .discovery-v1-provider-card__media {
  min-height: 210px;
}

body:is(.route-artists, .route-tutors) .discovery-v1-provider-card__media img:not(.discovery-v1-provider-card__placeholder-icon) {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

body.route-artists .discovery-v1-provider-card__body .ui-button {
  border-color: #9d0d11;
  background: #9d0d11;
  color: #fff;
}

body.route-tutors .discovery-v1-provider-card__body .ui-button {
  border-color: #176d55;
  background: #176d55;
  color: #fff;
}

body.u8-catalog-unification.page-public .catalog-u8-hero {
  gap: 16px;
  margin-block: 16px 22px;
  padding: clamp(24px, 3vw, 38px);
}

body.u8-catalog-unification.page-public .catalog-u8-hero h1 {
  font-size: clamp(2.25rem, 4.2vw, 4rem);
}

body.u8-catalog-unification.page-public .catalog-u8-guidance {
  padding: 10px 12px;
  border: 1px solid var(--ms-color-border);
  border-radius: var(--ms-radius-control);
  background: rgba(255, 255, 255, .75);
}

body.u8-catalog-unification.page-public .catalog-u8-guidance > summary {
  cursor: pointer;
  color: var(--ms-color-brand);
  font-weight: 850;
}

body.u8-catalog-unification.page-public .catalog-u8-guidance .catalog-u8-quick-grid {
  margin-top: 12px;
}

body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .app-main {
  display: flex;
  flex-direction: column;
}

body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .app-main > .catalog-u8-hero {
  order: 1;
}

body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .app-main > .marketplace-directory-section {
  order: 2;
}

body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .app-main > .section:not(.marketplace-directory-section) {
  order: 3;
}

body.u8-catalog-unification.page-public .marketplace-results-panel,
body.u8-catalog-unification.page-public .artist-results-panel {
  overflow: hidden;
}

.u1-profile-review-login-gate {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 250px;
  background: linear-gradient(145deg, #fff8ed, #ffecde);
}

.u1-profile-review-login-gate strong {
  color: #6f0b0e;
  font-size: 1.2rem;
}

@media (max-width: 1100px) and (min-width: 981px) {
  body.u1-platform-shell.phase3-app-shell .site-header .brand {
    flex-basis: 205px;
  }

  body.u1-platform-shell.phase3-app-shell .site-header .brand img {
    width: 205px;
  }

  body.phase3-app-shell .site-nav .nav-icon-link {
    min-width: 58px;
    font-size: .74rem;
  }
}

@media (max-width: 980px) {
  body.u1-platform-shell.phase3-app-shell .site-header {
    padding: 8px 14px;
  }

  body.u1-platform-shell.phase3-app-shell .site-header .brand {
    flex-basis: 205px;
  }

  body.u1-platform-shell.phase3-app-shell .site-header .brand img {
    width: min(200px, 58vw);
    max-height: 52px;
  }

  body.phase3-app-shell .site-nav {
    top: calc(var(--shell-mobile-header-height) + 8px);
    border-color: rgba(122, 38, 25, .18);
    background-image:
      linear-gradient(rgba(255, 249, 239, .97), rgba(255, 242, 221, .97)),
      url('../img/hero-pattern.svg');
    background-position: center;
    background-size: cover;
  }
}

@media (max-width: 760px) {
  body.route-home.page-home .discovery-v1-home {
    width: calc(100vw - 16px) !important;
    padding: 30px 16px 34px !important;
    border-radius: 0 0 22px 22px;
  }

  body.route-home.page-home .discovery-v1-home h1 {
    font-size: 1.85rem;
    line-height: 1.05;
  }

  body.route-home.page-home .discovery-v1-search .discovery-v1-actions {
    grid-template-columns: 1fr;
  }

  body.route-home.page-home .home-faq-section .section-head h2 {
    white-space: normal;
  }

  body.route-home.page-home .compact-profile-card > img {
    width: 148px !important;
    height: 148px !important;
    min-width: 148px !important;
  }

  body.u8-catalog-unification.page-public .catalog-u8-hero {
    gap: 12px;
    padding: 18px 14px;
  }

  body.u8-catalog-unification.page-public .catalog-u8-hero h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  body.u8-catalog-unification.page-public .catalog-u8-lead {
    font-size: .92rem;
    line-height: 1.45;
  }

  body.u8-catalog-unification.page-public .catalog-u8-family-nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  body.u8-catalog-unification.page-public .catalog-u8-family-link {
    flex: 0 0 126px;
    scroll-snap-align: start;
  }

  body.u8-catalog-unification.page-public .catalog-u8-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.u8-catalog-unification.page-public .catalog-u8-meta {
    gap: 6px;
  }

  body.u8-catalog-unification.page-public .catalog-u8-meta span {
    min-height: 28px;
    padding: 5px 8px;
    font-size: .72rem;
  }

  body:is(.route-artists, .route-tutors) .artist-results-summary {
    padding: 15px 14px;
  }

  body:is(.route-artists, .route-tutors) .discovery-v1-provider-card__media,
  body:is(.route-artists, .route-tutors) .discovery-v1-provider-card__media img:not(.discovery-v1-provider-card__placeholder-icon) {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.route-home.page-home .compact-profile-card,
  body.u8-catalog-unification.page-public .catalog-u8-quick-card {
    transition: none !important;
  }
}

/* Founder Section A follow-up: full-width discovery, editorial cards and result-first filters. */
body.route-home.page-home .discovery-v1-home {
  width: 100vw !important;
  max-width: none !important;
  margin-inline: calc(50% - 50vw) !important;
  border-inline: 0 !important;
  border-radius: 0 0 28px 28px !important;
}

body.route-home.page-home .discovery-v1-home h1 > span,
body.route-home.page-home .home-confidence-section h2 > span {
  display: block;
}

body.route-home.page-home .compact-feature-section--artists .compact-profile-card {
  border-color: rgba(114, 34, 26, .22) !important;
  background: linear-gradient(145deg, #ffd8cf, #f4b8ad) !important;
  color: #3d1b17 !important;
  box-shadow: 0 18px 40px rgba(116, 44, 29, .16) !important;
}

body.route-home.page-home .compact-feature-section--tutors .compact-profile-card {
  border-color: rgba(20, 91, 67, .22) !important;
  background: linear-gradient(145deg, #d8f0df, #acd9bf) !important;
  color: #123f31 !important;
  box-shadow: 0 18px 40px rgba(23, 89, 66, .15) !important;
}

body.route-home.page-home .compact-feature-section--products .compact-profile-card {
  border-color: rgba(126, 85, 10, .22) !important;
  background: linear-gradient(145deg, #ffedb2, #ffd370) !important;
  color: #4b3105 !important;
  box-shadow: 0 18px 40px rgba(126, 86, 15, .14) !important;
}

body.route-home.page-home .compact-profile-card :is(strong, span, small) {
  color: inherit !important;
}

body.route-home.page-home .home-confidence-section .section-head h2 {
  max-width: 1100px !important;
  margin-inline: auto;
}

/* Founder Phase 1 / Section A closeout: clear, self-contained directory actions. */
body.page-public:is(.route-artists, .route-tutors) .directory-action-nearby {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 48px;
  padding-inline: 13px;
  overflow: hidden;
  border-color: #0f7059 !important;
  background: linear-gradient(145deg, #1b8065 0%, #0f6652 100%) !important;
  color: #fff !important;
  font-size: .84rem;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: 0 10px 22px rgba(15, 102, 82, .18);
}

body.page-public:is(.route-artists, .route-tutors) .directory-action-nearby:hover,
body.page-public:is(.route-artists, .route-tutors) .directory-action-nearby:focus-visible {
  border-color: #0b5847 !important;
  background: linear-gradient(145deg, #126d56 0%, #0a5343 100%) !important;
}

body.page-public:is(.route-artists, .route-tutors) .directory-action-nearby[aria-busy="true"] {
  opacity: .82;
  cursor: progress;
}

@media (min-width: 761px) {
  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .artist-filter-location-row {
    display: flex !important;
    align-items: flex-end;
    min-width: 0;
  }
}

body.page-public:is(.route-products, .route-gallery) .directory-action-new {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 88px;
  min-height: 48px;
  padding-inline: 16px;
  overflow: hidden;
  border: 1px solid #a56b00 !important;
  background: linear-gradient(145deg, #f0b51e 0%, #c98700 100%) !important;
  color: #2f2106 !important;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(175, 111, 0, .2);
  isolation: isolate;
  animation: directory-new-pulse 1.8s ease-in-out infinite;
}

body.page-public:is(.route-products, .route-gallery) .directory-action-new::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .55) 48%, transparent 76%);
  content: "";
  transform: translateX(-115%);
  animation: directory-new-sheen 2.8s ease-in-out infinite;
}

body.page-public:is(.route-products, .route-gallery) .directory-new-action-wrap {
  display: flex;
  align-items: flex-end;
}

@keyframes directory-new-pulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 24px rgba(175, 111, 0, .2); }
  50% { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(175, 111, 0, .32); }
}

@keyframes directory-new-sheen {
  0%, 58% { transform: translateX(-115%); }
  82%, 100% { transform: translateX(115%); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-public:is(.route-products, .route-gallery) .directory-action-new,
  body.page-public:is(.route-products, .route-gallery) .directory-action-new::after {
    animation: none;
  }
}

@media (max-width: 760px) {
  body.page-public:is(.route-artists, .route-tutors) .directory-mobile-nearby-form .directory-action-nearby,
  body.page-public:is(.route-products, .route-gallery) .directory-mobile-nearby-form .directory-action-new {
    min-width: 0;
    width: 100%;
    font-size: .78rem;
  }
}

body.route-home.page-home .home-confidence-section .section-head h2 > span {
  white-space: nowrap;
}

body.route-home.page-home .home-confidence-grid .trust-detail-card {
  min-height: 180px !important;
  padding: 0 !important;
  overflow: hidden !important;
  perspective: 1000px;
  background: transparent !important;
}

body.route-home.page-home .trust-card-flip-inner {
  position: relative;
  width: 100%;
  min-height: 180px;
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.2, .72, .2, 1);
}

body.route-home.page-home .trust-detail-card.is-flipped .trust-card-flip-inner {
  transform: rotateY(180deg);
}

body.route-home.page-home .trust-card-face {
  min-height: 180px;
  border-radius: inherit;
  backface-visibility: hidden;
}

body.route-home.page-home .trust-card-face--front {
  position: relative;
  z-index: 1;
  background: inherit;
}

body.route-home.page-home .home-confidence-grid .trust-detail-card:nth-child(1) .trust-card-face--front { background: #f6c9c1 !important; }
body.route-home.page-home .home-confidence-grid .trust-detail-card:nth-child(2) .trust-card-face--front { background: #bfe4cc !important; }
body.route-home.page-home .home-confidence-grid .trust-detail-card:nth-child(3) .trust-card-face--front { background: #f7d98d !important; }
body.route-home.page-home .home-confidence-grid .trust-detail-card:nth-child(4) .trust-card-face--front { background: #f4c497 !important; }
body.route-home.page-home .home-confidence-grid .trust-detail-card:nth-child(5) .trust-card-face--front { background: #b9ded8 !important; }
body.route-home.page-home .home-confidence-grid .trust-detail-card:nth-child(6) .trust-card-face--front { background: #dfbdd4 !important; }

body.route-home.page-home .trust-card-face--back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: rotateY(180deg);
  background: #2f1a14;
}

body.route-home.page-home .trust-card-face--back::after,
body.route-home.page-home .task-detail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 13, 9, .05), rgba(26, 13, 9, .72));
  pointer-events: none;
}

body.route-home.page-home .trust-card-face--back img,
body.route-home.page-home .task-card-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.route-home.page-home .trust-card-face--back .trust-card-back-label {
  position: absolute;
  z-index: 2;
  inset-inline: 16px;
  bottom: 14px;
  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  color: #fff;
  font-size: 1rem !important;
  font-weight: 900;
  line-height: 1.25 !important;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

body.route-home.page-home .home-confidence-grid .trust-symbol,
body.route-home.page-home .customer-task-grid-v2 .task-symbol {
  width: 54px !important;
  height: 54px !important;
}

body.route-home.page-home .home-confidence-grid .trust-symbol .task-icon-svg,
body.route-home.page-home .customer-task-grid-v2 .task-symbol .task-icon-svg {
  width: 30px !important;
  height: 30px !important;
}

body.route-home.page-home .task-detail-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #3d241a !important;
}

body.route-home.page-home .task-detail-card::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 11, 8, .26), rgba(22, 11, 8, .78));
}

body.route-home.page-home .task-card-visual {
  z-index: -2;
}

body.route-home.page-home .task-detail-card :is(.task-main-action, details, strong, p, summary) {
  position: relative;
  z-index: 1;
  color: #fff !important;
}

body.route-home.page-home .task-detail-card .task-symbol {
  border-color: rgba(255, 255, 255, .64) !important;
  background: rgba(255, 255, 255, .9) !important;
  color: #8f0f13 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

body.route-home.page-home .home-community-proof-section {
  background: linear-gradient(135deg, #f2e4d3, #dfece5) !important;
}

body.route-home.page-home .home-community-proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
  overflow: hidden;
  border: 1px solid rgba(60, 51, 35, .16);
  border-radius: 26px;
  background: #fffaf2;
  box-shadow: 0 24px 60px rgba(60, 36, 22, .14);
}

body.route-home.page-home .home-community-proof-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(28px, 5vw, 62px);
}

body.route-home.page-home .home-community-proof-copy :is(h2, p) {
  margin: 0;
}

body.route-home.page-home .home-community-proof-copy h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
}

body.route-home.page-home .home-community-proof-visual {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, .18), transparent 42%),
    url('../img/founder-section-a/write-review.webp') center / cover no-repeat;
}

body.route-home.page-home .platform-review-form {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 12px;
}

body.route-home.page-home .platform-review-form .platform-review-body,
body.route-home.page-home .platform-review-form .platform-review-consent,
body.route-home.page-home .platform-review-form > .ui-button {
  grid-column: 1 / -1;
}

body.route-home.page-home .platform-review-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #4f4037;
  font-size: .84rem;
  line-height: 1.45;
}

body.route-home.page-home .platform-review-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
}

body.route-home.page-home .home-review-login-gate {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(157, 13, 17, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
}

body.route-home.page-home .platform-review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

body.route-home.page-home .platform-review-list article {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(24, 98, 75, .16);
  border-radius: 18px;
  background: #f1f8f4;
}

body.route-home.page-home .home-faq-section {
  background: linear-gradient(180deg, #f7efe5, #ede5f0) !important;
}

/* Result-first full-width directory layout with one horizontal filter rail. */
body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-directory-workspace, .marketplace-directory-workspace) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-panel, .marketplace-filter-panel) {
  display: block !important;
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.mobile-filter-toggle, .artist-filter-close, .marketplace-filter-close) {
  display: none !important;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-card, .marketplace-filter-card) {
  display: flex !important;
  align-items: flex-end !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  border-color: rgba(157, 13, 17, .18) !important;
  background: linear-gradient(90deg, #fff8ec, #f7eee2) !important;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors) .artist-filter-card > .discovery-v1-eyebrow,
body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-card > :is(.eyebrow, h3) {
  flex: 0 0 auto;
  align-self: center;
  margin: 0 !important;
  white-space: nowrap;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors) .artist-filter-mobile-grid {
  display: contents !important;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors) :is(.artist-filter-left, .artist-filter-form, .artist-filter-right) {
  display: flex !important;
  align-items: flex-end !important;
  gap: 10px !important;
  min-width: max-content !important;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors) .artist-filter-form > label,
body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-form > label {
  flex: 0 0 178px;
  min-width: 178px;
  scroll-snap-align: start;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors) .artist-filter-location-row,
body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .artist-filter-location-row {
  flex: 0 0 154px;
  min-width: 154px;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors) .artist-filter-form > label .artist-helper-select {
  display: none !important;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors) :is(.artist-quick-signals-group, .artist-filter-right) {
  flex: 0 0 auto;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors) .artist-filter-group {
  margin: 0 !important;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors) .quick-filter-checks,
body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) :is(.marketplace-shortcuts, .marketplace-quick-signals) {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  min-width: max-content;
}

body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors) .artist-filter-actions {
  display: flex !important;
  flex: 0 0 auto;
  gap: 8px !important;
  margin: 0 !important;
}

body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-form {
  display: flex !important;
  align-items: flex-end !important;
  gap: 10px !important;
  min-width: max-content;
}

body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-form > :is(button, a) {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-card > :is(datalist, .marketplace-shortcuts) {
  flex: 0 0 auto;
}

/* Artists remain on the original discovery route, so mirror the new rail without
   opting that route into the broader U8 catalogue contract. */
body.page-public.route-artists .artist-directory-workspace {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
}

body.page-public.route-artists .artist-filter-panel {
  display: block !important;
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.page-public.route-artists :is(.mobile-filter-toggle, .artist-filter-close) {
  display: none !important;
}

body.page-public.route-artists .artist-filter-card {
  display: flex !important;
  align-items: flex-end !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  border-color: rgba(157, 13, 17, .18) !important;
  background: linear-gradient(90deg, #fff8ec, #f7eee2) !important;
}

body.page-public.route-artists .artist-filter-card > .discovery-v1-eyebrow {
  flex: 0 0 auto;
  align-self: center;
  margin: 0 !important;
  white-space: nowrap;
}

body.page-public.route-artists .artist-filter-mobile-grid {
  display: contents !important;
}

body.page-public.route-artists :is(.artist-filter-left, .artist-filter-form, .artist-filter-right) {
  display: flex !important;
  align-items: flex-end !important;
  gap: 10px !important;
  min-width: max-content !important;
}

body.page-public.route-artists .artist-filter-form > label {
  flex: 0 0 178px;
  min-width: 178px;
  scroll-snap-align: start;
}

body.page-public.route-artists .artist-filter-location-row {
  flex: 0 0 154px;
  min-width: 154px;
}

body.page-public.route-artists .artist-filter-form > label .artist-helper-select {
  display: none !important;
}

body.page-public.route-artists :is(.artist-quick-signals-group, .artist-filter-right) {
  flex: 0 0 auto;
}

body.page-public.route-artists .artist-filter-group {
  margin: 0 !important;
}

body.page-public.route-artists .quick-filter-checks {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  min-width: max-content;
}

body.page-public.route-artists .artist-filter-actions {
  display: flex !important;
  flex: 0 0 auto;
  gap: 8px !important;
  margin: 0 !important;
}

body:is(.route-artists, .route-tutors) .artist-results-summary,
body:is(.route-products, .route-gallery) .result-toolbar {
  border-color: rgba(87, 47, 24, .2) !important;
  background: linear-gradient(135deg, #e9c9ac, #dcb69b) !important;
  color: #332016 !important;
  box-shadow: 0 12px 28px rgba(70, 37, 20, .12);
}

body.route-artists .discovery-v1-provider-card {
  background: linear-gradient(110deg, #f3bdb1 0 31%, #ffdcd4 31% 100%) !important;
}

body.route-tutors .discovery-v1-provider-card {
  background: linear-gradient(110deg, #a9d8bd 0 31%, #d9f0e1 31% 100%) !important;
}

body:is(.route-artists, .route-tutors) .discovery-v1-provider-card__body :is(h3, strong, p, small) {
  color: #2f2019 !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-hero {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: 0 !important;
  padding: clamp(16px, 1.8vw, 22px) !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-hero h1 {
  font-size: clamp(2.2rem, 3.5vw, 3rem) !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-hero__copy {
  gap: 4px !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-lead {
  max-width: none !important;
  font-size: .95rem !important;
  line-height: 1.35 !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-family-nav {
  min-height: 50px !important;
  gap: 8px !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-family-link {
  min-height: 50px !important;
  padding: 6px 12px !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-actions .ui-button {
  min-height: 42px !important;
  padding-block: 8px !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-meta span {
  min-height: 28px !important;
  padding-block: 4px !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-guidance > summary {
  min-height: 44px !important;
  padding: 8px 12px !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) :is(.catalog-u8-actions, .catalog-u8-meta, .catalog-u8-guidance) {
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-hero {
    gap: 7px !important;
    margin-block: 8px 12px !important;
    padding: 14px !important;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-kicker {
    margin: 0 !important;
    font-size: .7rem !important;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-hero h1 {
    margin: 0 !important;
    font-size: clamp(1.9rem, 8.5vw, 2.2rem) !important;
    line-height: 1.02 !important;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-lead {
    display: -webkit-box;
    margin: 0 !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: .82rem !important;
    line-height: 1.35 !important;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-family-nav {
    gap: 4px !important;
    min-height: 42px;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-family-link {
    flex-basis: 94px !important;
    min-height: 42px !important;
    padding: 6px 8px !important;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-family-link small {
    display: none !important;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-family-link strong {
    font-size: .78rem !important;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-actions {
    gap: 6px !important;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-actions .ui-button {
    min-height: 42px !important;
    padding: 8px 10px !important;
    font-size: .78rem !important;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-meta {
    flex-wrap: nowrap !important;
    overflow-x: auto;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-meta span {
    min-height: 24px !important;
    padding: 3px 7px !important;
    white-space: nowrap;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .catalog-u8-guidance > summary {
    min-height: 40px !important;
    padding: 8px 10px !important;
    font-size: .8rem !important;
  }

  body.route-home.page-home .discovery-v1-home {
    width: 100vw !important;
    padding-inline: 14px !important;
  }

  body.route-home.page-home .discovery-v1-home h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
  }

  body.route-home.page-home .discovery-v1-search .discovery-v1-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  body.route-home.page-home .discovery-v1-search .ui-button {
    min-height: 42px !important;
    padding-inline: 4px !important;
    font-size: clamp(.63rem, 2.7vw, .76rem) !important;
  }

  body.route-home.page-home .home-confidence-section .section-head h2 {
    font-size: clamp(1.4rem, 6.2vw, 1.625rem) !important;
    line-height: 1.08 !important;
  }

  body.route-home.page-home .home-confidence-section .section-head h2 > span {
    white-space: nowrap;
  }

  body.route-home.page-home .trust-card-flip-inner,
  body.route-home.page-home .trust-card-face,
  body.route-home.page-home .home-confidence-grid .trust-detail-card {
    min-height: 180px !important;
  }

  body.route-home.page-home .home-community-proof-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.route-home.page-home .home-community-proof-visual {
    min-height: 330px;
    order: -1;
  }

  body.route-home.page-home .platform-review-form,
  body.route-home.page-home .platform-review-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body.route-home.page-home .platform-review-form > * {
    grid-column: 1 !important;
  }

  body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-card, .marketplace-filter-card) {
    padding: 10px !important;
  }

  body.u8-catalog-unification.page-public:is(.route-artists, .route-tutors) .artist-filter-form > label,
  body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-form > label {
    flex-basis: min(72vw, 210px);
    min-width: min(72vw, 210px);
  }

  body.page-public.route-artists .artist-filter-card {
    padding: 10px !important;
  }

  body.page-public.route-artists .artist-filter-form > label {
    flex-basis: min(72vw, 210px);
    min-width: min(72vw, 210px);
  }

  body:is(.route-artists, .route-tutors) .discovery-v1-provider-card {
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr) !important;
  }

  body:is(.route-artists, .route-tutors) .discovery-v1-provider-card__media,
  body:is(.route-artists, .route-tutors) .discovery-v1-provider-card__media img:not(.discovery-v1-provider-card__placeholder-icon) {
    min-height: 210px !important;
  }
}

/* Founder Phase 1 / Section A acceptance: compact review modal and result-first directories. */
body.route-home.page-home .home-review-open {
  width: min(240px, 100%);
}

body.route-home.page-home .platform-review-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(780px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(157, 13, 17, .24);
  border-radius: 24px;
  background: #fffaf3;
  color: #2f2019;
  box-shadow: 0 28px 90px rgba(36, 20, 12, .32);
}

body.route-home.page-home .platform-review-dialog::backdrop {
  background: rgba(27, 16, 12, .64);
  backdrop-filter: blur(4px);
}

body.route-home.page-home .platform-review-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(157, 13, 17, .12);
}

body.route-home.page-home .platform-review-dialog__head :is(p, h3) {
  margin: 0;
}

body.route-home.page-home .platform-review-dialog__head h3 {
  margin-top: 4px;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
}

body.route-home.page-home .platform-review-dialog__close {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(157, 13, 17, .18);
  border-radius: 999px;
  background: #fff;
  color: #8f0f13;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

body.route-home.page-home .platform-review-dialog .platform-review-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 24px 26px;
}

body.route-home.page-home .platform-review-dialog .platform-review-body,
body.route-home.page-home .platform-review-dialog .platform-review-form > .ui-button {
  grid-column: 1 / -1;
}

body.route-home.page-home .platform-review-dialog .ui-field {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #402d24;
  font-weight: 800;
}

body.route-home.page-home .platform-review-dialog :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  border-color: rgba(87, 47, 24, .24);
  background: #fff;
}

body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-v1-directory-heading {
  margin: clamp(22px, 3vw, 42px) auto 14px !important;
  padding-block: clamp(24px, 3vw, 38px) !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .discovery-v1-directory-heading {
  padding-block: clamp(24px, 3vw, 38px) !important;
}

body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-directory-workspace-section, .marketplace-directory-section) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) :is(.artist-directory-workspace-section, .marketplace-directory-section) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-card, .marketplace-filter-card) {
  display: flex !important;
  align-items: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 12px !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
  scroll-snap-type: none !important;
  border-color: rgba(157, 13, 17, .18) !important;
  background: linear-gradient(90deg, #fff8ec, #f7eee2) !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) :is(.artist-filter-card, .marketplace-filter-card) {
  flex-wrap: nowrap !important;
  min-width: 0 !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
  scroll-snap-type: none !important;
}

body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-card, .marketplace-filter-card) > :is(.discovery-v1-eyebrow, .eyebrow) {
  flex: 0 0 auto !important;
  align-self: center;
  margin: 0 !important;
  width: auto !important;
  white-space: nowrap;
}

body.page-public:is(.route-artists, .route-tutors) .artist-filter-form,
body.page-public:is(.route-products, .route-gallery) .marketplace-filter-form {
  display: flex !important;
  align-items: flex-end !important;
  flex: 1 1 0 !important;
  gap: 8px !important;
  width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.u8-catalog-unification.page-public.route-tutors .artist-filter-form,
body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-form {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
}

body.page-public:is(.route-artists, .route-tutors) .artist-filter-form > label,
body.page-public:is(.route-products, .route-gallery) .marketplace-filter-form > label {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  scroll-snap-align: none !important;
}

body.u8-catalog-unification.page-public.route-tutors .artist-filter-form > label,
body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-form > label {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  scroll-snap-align: none !important;
}

body.page-public:is(.route-artists, .route-tutors) .artist-filter-form > label:first-of-type,
body.page-public:is(.route-products, .route-gallery) .marketplace-filter-form > label:first-of-type {
  flex-grow: 1.35 !important;
}

body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .artist-filter-location-row {
  flex: 0 0 126px !important;
  min-width: 0 !important;
}

body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .artist-filter-location-row {
  flex: 0 0 126px !important;
  min-width: 0 !important;
}

body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-form, .marketplace-filter-form) :is(input, select, .button) {
  min-width: 0 !important;
  min-height: 44px !important;
  padding-inline: 10px !important;
  font-size: clamp(.78rem, .9vw, .9rem) !important;
}

body.page-public:is(.route-artists, .route-tutors) .artist-filter-form > label .artist-helper-select {
  display: none !important;
}

body.page-public:is(.route-artists, .route-tutors) .artist-filter-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  gap: 6px !important;
  margin: 0 !important;
}

body.page-public:is(.route-artists, .route-tutors) .artist-filter-actions .button {
  padding-inline: 12px !important;
  white-space: nowrap;
}

body.page-public:is(.route-products, .route-gallery) .marketplace-filter-form > :is(button, a) {
  flex: 0 0 auto !important;
  width: auto !important;
  white-space: nowrap;
}

body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-form > :is(button.button, a.button) {
  flex: 0 0 max-content !important;
  width: max-content !important;
  max-width: 150px !important;
}

body.page-public:is(.route-products, .route-gallery) .marketplace-results-summary {
  margin-bottom: 14px;
}

@media (max-width: 1100px) {
  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-card, .marketplace-filter-card) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) :is(.artist-filter-card, .marketplace-filter-card) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: visible !important;
  }

  body.page-public:is(.route-artists, .route-tutors) .artist-filter-form,
  body.page-public:is(.route-products, .route-gallery) .marketplace-filter-form {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end !important;
    width: 100% !important;
  }

  body.u8-catalog-unification.page-public.route-tutors .artist-filter-form,
  body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-form {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100% !important;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .artist-filter-location-row {
    min-width: 0 !important;
  }
}

@media (max-width: 760px) {
  body.route-home.page-home .platform-review-dialog__head {
    padding: 18px 18px 14px;
  }

  body.route-home.page-home .platform-review-dialog .platform-review-form {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 18px;
  }

  body.route-home.page-home .platform-review-dialog .platform-review-form > * {
    grid-column: 1 !important;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-card, .marketplace-filter-card) {
    padding: 10px !important;
  }

  body.page-public:is(.route-artists, .route-tutors) .artist-filter-form,
  body.page-public:is(.route-products, .route-gallery) .marketplace-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }

  body.u8-catalog-unification.page-public.route-tutors .artist-filter-form,
  body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .artist-filter-location-row,
  body.page-public:is(.route-artists, .route-tutors) .artist-filter-actions {
    grid-column: 1 / -1;
  }

  body.page-public:is(.route-products, .route-gallery) .marketplace-filter-form > :is(button, a) {
    width: 100%;
  }

  body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-form > :is(button.button, a.button) {
    width: 100% !important;
    max-width: none !important;
  }

  body:is(.route-artists, .route-tutors) .discovery-v1-provider-card {
    grid-template-columns: minmax(104px, 32%) minmax(0, 1fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.route-home.page-home .trust-card-flip-inner {
    transition: none !important;
    transform: none !important;
  }

  body.route-home.page-home .trust-card-face--back {
    display: none !important;
  }
}

/* Founder Phase 1 / Section A final follow-up: compact review and responsive filter contract. */
body.route-home.page-home .home-community-proof-copy {
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .82), transparent 34%),
    linear-gradient(145deg, #fff0cf 0%, #f4d6c9 48%, #dcebe1 100%);
}

body.route-home.page-home .home-review-open {
  justify-self: center;
}

body.route-home.page-home .platform-review-dialog {
  width: min(600px, calc(100vw - 28px));
  max-height: min(690px, calc(100dvh - 24px));
}

body.route-home.page-home .platform-review-dialog__head {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 16px 64px;
  text-align: center;
}

body.route-home.page-home .platform-review-dialog__head h3 {
  margin: 0;
  text-align: center;
}

body.route-home.page-home .platform-review-dialog__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
}

body.route-home.page-home .platform-review-dialog .platform-review-form {
  gap: 11px 12px;
  padding: 16px 20px 20px;
}

body.route-home.page-home .platform-review-rating-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: #402d24;
  font-weight: 800;
  text-align: center;
}

body.route-home.page-home .platform-review-rating-field legend {
  width: 100%;
  margin: 0 0 3px;
  padding: 0;
}

body.route-home.page-home .platform-star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin-inline: auto;
}

body.route-home.page-home .platform-star-rating input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  margin: -1px;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body.route-home.page-home .platform-star-rating label {
  padding: 2px;
  color: #b9aa9a;
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  line-height: 1;
  cursor: pointer;
  transition: color .16s ease, transform .16s ease;
}

body.route-home.page-home .platform-star-rating label:hover,
body.route-home.page-home .platform-star-rating label:hover ~ label,
body.route-home.page-home .platform-star-rating input:checked ~ label {
  color: #d79b18;
}

body.route-home.page-home .platform-star-rating input:focus-visible + label {
  border-radius: 6px;
  outline: 3px solid rgba(157, 13, 17, .28);
  outline-offset: 2px;
}

body.route-home.page-home .platform-star-rating label:hover {
  transform: translateY(-1px) scale(1.06);
}

body.route-home.page-home .platform-review-dialog textarea {
  min-height: 98px;
}

.directory-mobile-filter-toolbar {
  display: none;
}

body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-v1-directory-heading h1 {
  white-space: nowrap;
}

body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-form, .marketplace-filter-form) {
  flex-wrap: nowrap !important;
}

body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-form, .marketplace-filter-form) > label {
  flex-basis: 112px !important;
}

body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .artist-filter-location-row {
  flex-basis: 108px !important;
}

body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .artist-filter-location-row .button {
  width: 100%;
  white-space: nowrap;
}

body.route-tutors .discovery-v1-provider-card {
  border-color: rgba(18, 109, 88, .24) !important;
  background: linear-gradient(120deg, #e1f4ec 0%, #f3fbf7 42%, #d6ebdf 100%) !important;
}

body.route-products .ecommerce-product-card {
  border-color: rgba(157, 103, 13, .24) !important;
  background: linear-gradient(145deg, #fff1c7 0%, #fff8e5 48%, #f2dfb5 100%) !important;
}

body.route-gallery .design-gallery-card {
  border-color: rgba(104, 69, 145, .22) !important;
  background: linear-gradient(145deg, #eee2f7 0%, #faf5ff 52%, #e4d5f1 100%) !important;
}

body.route-community .community-directory-heading,
body.route-requests .community-directory-heading {
  padding-block: clamp(30px, 5vw, 58px);
  text-align: center;
}

body.route-community .community-directory-heading h1,
body.route-requests .community-directory-heading h1 {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
}

@media (max-width: 760px) {
  body.route-home.page-home .home-community-proof-copy {
    padding: 28px 18px;
  }

  body.route-home.page-home .platform-review-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 18px;
  }

  body.route-home.page-home .platform-review-dialog__head {
    min-height: 68px;
    padding: 13px 52px;
  }

  body.route-home.page-home .platform-review-dialog__head h3 {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  body.route-home.page-home .platform-review-dialog__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  body.route-home.page-home .platform-review-dialog .platform-review-form {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px;
    padding: 14px;
  }

  body.route-home.page-home .platform-review-dialog .platform-review-form > * {
    grid-column: 1 !important;
  }

  body.route-home.page-home .platform-review-dialog .ui-field {
    gap: 5px;
  }

  body.route-home.page-home .platform-review-dialog :is(input, select) {
    min-height: 44px;
  }

  body.route-home.page-home .platform-review-dialog textarea {
    min-height: 88px;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .discovery-v1-directory-heading h1 {
    font-size: clamp(1.38rem, 6.8vw, 2rem) !important;
    letter-spacing: -.035em;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .directory-mobile-filter-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .directory-mobile-filter-toolbar .mobile-filter-toggle,
  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) .directory-mobile-filter-toolbar .mobile-filter-toggle {
    display: flex !important;
    width: 100%;
    min-height: 46px;
    margin: 0 !important;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .directory-mobile-nearby-form {
    display: grid;
    min-width: 0;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .directory-mobile-nearby-form .button {
    width: 100%;
    min-height: 46px;
    margin: 0;
    white-space: nowrap;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) .directory-mobile-nearby-form .location-status {
    grid-column: 1;
    margin-top: 4px;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-panel, .marketplace-filter-panel),
  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) :is(.artist-filter-panel, .marketplace-filter-panel) {
    display: none !important;
    position: static !important;
    width: 100% !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-panel, .marketplace-filter-panel).is-mobile-open,
  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) :is(.artist-filter-panel, .marketplace-filter-panel).is-mobile-open {
    display: block !important;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-card, .marketplace-filter-card),
  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) :is(.artist-filter-card, .marketplace-filter-card) {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    overflow: visible !important;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-close, .marketplace-filter-close),
  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) :is(.artist-filter-close, .marketplace-filter-close) {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: grid !important;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-form, .marketplace-filter-form),
  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) :is(.artist-filter-form, .marketplace-filter-form) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-form, .marketplace-filter-form) > label,
  body.u8-catalog-unification.page-public:is(.route-tutors, .route-products, .route-gallery) :is(.artist-filter-form, .marketplace-filter-form) > label {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.page-public:is(.route-artists, .route-tutors, .route-products, .route-gallery) :is(.artist-filter-form, .marketplace-filter-form) > .artist-filter-location-row {
    display: none !important;
  }

  body.page-public:is(.route-artists, .route-tutors) .artist-filter-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.page-public:is(.route-products, .route-gallery) .marketplace-filter-form > :is(button.button, a.button),
  body.u8-catalog-unification.page-public:is(.route-products, .route-gallery) .marketplace-filter-form > :is(button.button, a.button) {
    width: 100% !important;
    max-width: none !important;
  }
}
body.route-requests .community-guest-guide {
  background: linear-gradient(145deg, #eef8f4, #fffdf9) !important;
}

body.route-requests .community-guest-guide .section-head {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

body.route-requests .community-guest-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.route-requests .community-guest-guide-grid article {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--ms-color-border);
  border-radius: 12px;
  background: #fff;
}

body.route-requests .community-guest-guide-grid strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ms-color-ink);
  font-size: 17px;
}

body.route-requests .community-guest-guide-grid p {
  margin: 0;
  color: var(--ms-color-muted);
  line-height: 1.65;
}

body.route-requests .community-guest-paths {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 767px) {
  body.route-requests .community-guest-guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.route-requests .community-guest-paths {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.route-requests .community-guest-paths .button {
    width: 100%;
  }
}
