:root {
  --ink: #171713;
  --ink-soft: #4a3f35;
  --ink-muted: #66665f;
  --paper: #f6f6f4;
  --paper-warm: #f1e8d9;
  --line: #d8d7d1;
  --line-soft: #e8dfcf;
  --line-strong: #b8b6ad;
  --gold: #9b6a25;
  --gold-deep: #724714;
  --gold-soft: #f1e8d9;
  --charcoal: #1b1b18;
  --charcoal-deep: #1b1b18;
  --gold-bright: #d0a55f;
  --nav-ink: #f8f5ed;
  --font-sans: "DM Sans", sans-serif;
  --font-serif: "Libre Caslon Display", serif;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}
button, input, select, textarea {
  font-family: inherit;
}
.umma-hub-page { min-height: 100vh; display: flex; flex-direction: column; }
#view-form,
#view-dir { flex: 1 0 auto; }
#view-form { background: #ebe8e2; }
.serif { font-family: var(--font-serif); }

/* NAVBAR */
.umma-nav { background: rgba(250,246,239,0.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.brand-icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; }
.brand-name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; letter-spacing: .15em; color: var(--ink); line-height: 1; font-synthesis: none; }
.brand-tag { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.nav-pills .nav-link { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); border-radius: 2px; padding: .5rem 1.1rem; }
.nav-pills .nav-link.active { background: var(--ink); color: var(--paper); }
.nav-pills .nav-link:not(.active):hover { color: var(--ink); }
.hub-nav-auth-btn {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
.hub-nav-auth-btn:hover {
  background: var(--paper-warm);
  border-color: var(--gold);
  color: var(--ink);
}
.hub-nav-logout-btn {
  border-color: var(--ink-soft);
}
.hub-nav-member-label {
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ink-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .hub-nav-member-label { max-width: 100px; }
}

/* HERO */
.hero-eyebrow { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }
.hero-title { font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
.hero-title em { font-style: italic; color: var(--gold-deep); }

/* INTAKE HERO — matched to Muse reference typography/layout */
.intake-hero {
  position: relative;
  overflow: hidden;
  background: #1b1b18;
  color: #f8f5ed;
  padding: clamp(36px, 7vw, 84px) 0;
  text-align: left;
}
.intake-hero-decor {
  pointer-events: none;
  position: absolute;
  width: 420px;
  height: 420px;
  right: -150px;
  top: -260px;
  border: 1px solid rgba(208, 165, 95, .32);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(208, 165, 95, .04),
    0 0 0 140px rgba(208, 165, 95, .025);
}
.intake-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  text-align: left;
}
.intake-hero-copy {
  max-width: none;
  margin: 0;
  text-align: left;
}
.intake-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #d8ba88;
  background: none;
  padding: 0;
  margin: 0 0 14px;
  border: none;
  box-shadow: none;
  text-align: left;
  line-height: 1.5;
}
.intake-hero-eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: #d8ba88;
  flex-shrink: 0;
}
h1.intake-hero-title,
.intake-hero-title {
  font-family: "Libre Caslon Display", serif !important;
  font-size: clamp(2.4rem, 5.8vw, 4.7rem) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-synthesis: none !important;
  line-height: 1.02 !important;
  letter-spacing: -.025em !important;
  color: #f8f5ed !important;
  margin: 0 0 20px !important;
  max-width: 760px;
  text-align: left;
  text-shadow: none;
}
.intake-hero-lead {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  font-weight: 400;
  line-height: 1.5;
  color: #c7c3b8;
  max-width: 680px;
  margin: 0;
  text-align: left;
}
.intake-hero-meta {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 22px;
  color: #e6dfd2;
}
.intake-hero-meta li {
  position: relative;
  padding-left: 13px;
  font-family: "DM Sans", sans-serif;
  font-size: .86rem;
  font-weight: 400;
  color: #e6dfd2;
  letter-spacing: 0;
  line-height: 1.5;
}
.intake-hero-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d0a55f;
}
@media (max-width: 620px) {
  .intake-hero { padding: 34px 20px 40px; }
  .intake-hero-inner {
    padding-left: 0;
    padding-right: 0;
  }
  .intake-hero-title {
    max-width: none;
  }
  .intake-hero-meta { gap: 10px 18px; }
}

/* INTAKE PROGRESS */
.intake-progress {
  background: var(--charcoal-deep);
  border-bottom: 1px solid rgba(197,160,112,.18);
  padding: 1.1rem 0 1.25rem;
  position: sticky;
  top: 68px;
  z-index: 20;
}
.intake-progress-inner { max-width: 1100px; }
.intake-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .65rem;
}
.intake-progress-label {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,239,230,.88);
}
.intake-progress-count {
  font-size: .72rem;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--gold-bright);
}
.intake-progress-track {
  height: 2px;
  background: rgba(245,239,230,.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .9rem;
}
.intake-progress-fill {
  height: 100%;
  width: 16.666%;
  background: var(--gold-bright);
  transition: width .25s ease;
}
.intake-progress-steps {
  display: flex;
  justify-content: space-between;
  gap: .35rem;
  max-width: 420px;
  margin: 0 auto;
}
.intake-step-dot {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(245,239,230,.35);
  background: transparent;
  color: rgba(245,239,230,.55);
  font-size: .68rem;
  letter-spacing: .04em;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.intake-step-dot.is-active {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  color: var(--charcoal-deep);
}
.intake-step-dot.is-complete {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}
.intake-step-dot:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* INTAKE LAYOUT — match Muse side panel */
.intake-form-container {
  max-width: 1180px;
  padding-top: 42px;
  padding-bottom: 80px;
}
.intake-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.intake-sidebar {
  background: #1b1b18;
  color: #f8f5ed;
  border-radius: 0;
  padding: 26px 22px 22px;
  position: sticky;
  top: 5.5rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  box-shadow: 0 18px 55px rgba(28, 26, 20, .09);
  border: 0;
}
.intake-sidebar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: 13px;
}
.intake-sidebar-label {
  font-family: "DM Sans", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f8f5ed;
  line-height: 1.2;
}
.intake-sidebar-count {
  font-family: "DM Sans", sans-serif;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: 0;
  color: #bbb7ae;
  white-space: nowrap;
  line-height: 1.2;
}
.intake-sidebar-track {
  height: 3px;
  background: #3c3b36;
  margin: 0 0 18px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.intake-sidebar-fill {
  display: block;
  height: 100%;
  width: 16.666%;
  background: #d0a55f;
  transition: width .3s ease;
  border-radius: 0;
}
.intake-sidebar-nav {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
}
.intake-sidebar-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  border: 0;
  border-top: 1px solid #383732;
  border-radius: 0;
  background: none;
  box-shadow: none;
  outline: none;
  font-family: "DM Sans", sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.25;
  color: #9f9d95;
  padding: 14px 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: color .15s;
}
/* No divider directly under the progress bar */
.intake-sidebar-item:first-child {
  border-top: 0;
}
.intake-sidebar-item:last-child {
  border-bottom: 1px solid #383732;
}
.intake-sidebar-item:disabled {
  cursor: not-allowed;
}
.intake-sidebar-item:disabled .intake-sidebar-text {
  color: rgba(159, 157, 149, .45);
}
.intake-sidebar-item:disabled .intake-sidebar-num {
  color: rgba(159, 157, 149, .45);
}
.intake-sidebar-lead {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  min-width: 0;
}
.intake-sidebar-num {
  font-family: "Libre Caslon Display", serif;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  color: #9f9d95;
  letter-spacing: 0;
  line-height: 1.2;
}
.intake-sidebar-check {
  display: none;
  align-items: center;
  justify-content: center;
  color: #78c89e;
  font-size: .66rem;
  line-height: 1;
  font-family: "DM Sans", sans-serif;
}
.intake-sidebar-item.is-complete .intake-sidebar-check {
  display: inline-flex;
}
.intake-sidebar-text {
  flex: 1;
  font-family: "DM Sans", sans-serif;
  font-size: .86rem;
  font-weight: 600;
  color: #9f9d95;
  line-height: 1.25;
}
.intake-sidebar-item.is-active {
  color: #fff;
}
.intake-sidebar-item.is-active .intake-sidebar-num {
  color: #d0a55f;
}
.intake-sidebar-item.is-active .intake-sidebar-text {
  color: #fff;
  font-weight: 600;
}
.intake-sidebar-item.is-complete:not(.is-active) {
  color: #d1cec5;
}
.intake-sidebar-item.is-complete:not(.is-active) .intake-sidebar-num {
  color: #d1cec5;
}
.intake-sidebar-item.is-complete .intake-sidebar-text {
  color: #d1cec5;
  font-weight: 600;
}
.intake-sidebar-item:not(.is-active):not(.is-complete) .intake-sidebar-num {
  color: #9f9d95;
}
.intake-sidebar-item:hover:not(:disabled) .intake-sidebar-text {
  color: #fff;
}
.intake-sidebar-foot {
  font-family: "DM Sans", sans-serif;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  font-size: .73rem;
  line-height: 1.55;
  color: #8f8c84;
  font-weight: 400;
}
.intake-main {
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  padding-top: .15rem;
}
.form-step { display: none; padding: 0; }
.form-step.is-active { display: block; }
.form-step-header {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 25px;
}
.form-step .form-card {
  margin-bottom: 1.25rem;
}
.form-step .form-card:last-child {
  margin-bottom: 0;
}
.form-card {
  border: 1px solid var(--line-soft);
  background: #fff;
  border-radius: 4px;
  padding: 1.5rem 1.45rem;
  box-shadow: 0 1px 2px rgba(26, 22, 18, .04);
}
.intake-main .form-card-title {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
  color: var(--ink);
  letter-spacing: normal;
}
.form-card-divider {
  height: 1px;
  background: var(--line-soft);
  margin: 1.65rem 0 1.35rem;
}
/* Muse field labels — same on every step */
.field-label,
.field-label-intake,
.field-label-plain {
  font-family: "DM Sans", sans-serif;
  font-size: .86rem;
  letter-spacing: normal;
  text-transform: none;
  color: #171713;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}
.intake-main .form-control,
.intake-main .form-select {
  background-color: #fff;
  border: 1px solid #b8b6ad;
  border-radius: 4px;
  padding: 12px 13px;
  min-height: 47px;
  font-size: .9rem;
  color: #171713;
}
.intake-main .form-select,
.umma-hub-page select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2366665f' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
  cursor: pointer;
}
.intake-main .form-control:focus,
.intake-main .form-select:focus {
  border-color: #9b6a25;
  box-shadow: 0 0 0 3px rgba(155, 106, 37, .18);
  background-color: #fff;
  color: #171713;
}
.intake-main .form-select:focus,
.umma-hub-page select.form-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239b6a25' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}
.intake-main .form-control::placeholder,
.intake-main textarea.form-control::placeholder {
  color: #949189;
  opacity: 1;
}
.intake-why-section {
  margin-top: 2.5rem;
}
.field-optional {
  font-size: .77rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: #66665f;
  margin-left: 5px;
}
.field-hint,
.intake-save-note,
.niche-tags-hint,
.location-subpanel-copy,
.upload-zone-hint,
.intake-step-hint {
  color: #66665f;
}
.intake-step-actions {
  border-top: none;
  background: transparent;
  padding: 1.85rem 0 0;
  margin-top: .35rem;
}
.intake-step-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  width: 100%;
}
.intake-step-actions-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .65rem;
  min-height: 2.95rem;
}
.intake-step-actions-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  margin-left: auto;
}
.intake-save-note {
  font-size: .78rem;
  color: var(--ink-muted);
  letter-spacing: .01em;
}
.btn-intake-back {
  appearance: none;
  border: 1px solid #b8b6ad;
  background: transparent;
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .84rem;
  min-height: 47px;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color .15s, background .15s, color .15s;
}
.btn-intake-back:hover {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}
.btn-intake-continue {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--charcoal-deep);
  background: var(--charcoal-deep);
  color: #f8f5ed;
  padding: 12px 18px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .84rem;
  min-height: 47px;
  letter-spacing: 0;
  text-transform: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-intake-continue:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #f8f5ed;
}
.btn-intake-continue:disabled,
.btn-intake-back:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.btn-intake-continue svg {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  vertical-align: -3px;
}
@media (max-width: 575.98px) {
  .intake-save-note { display: none; }
  .intake-step-actions-row { align-items: stretch; }
  .intake-step-actions-left,
  .intake-step-actions-right { width: 100%; margin-left: 0; }
  .btn-intake-back,
  .btn-intake-continue { flex: 1 1 auto; width: 100%; }
}
.hub-form-error {
  font-size: .88rem;
  margin: 0 0 .85rem;
  padding: .75rem .9rem;
  border: 1px solid #f0c2c2;
  background: #fff5f5;
  border-radius: 4px;
}
.intake-step-hint {
  font-size: .75rem;
  color: var(--ink-muted);
  max-width: 36rem;
  margin-top: .85rem;
}
.role-search-wrap {
  position: relative;
}
.role-search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  font-size: .9rem;
  pointer-events: none;
}
.role-search-input {
  padding-left: 2.35rem !important;
}
.role-search-empty {
  font-size: .82rem;
  color: var(--ink-muted);
  margin: .35rem 0 0;
}
.chip.is-role-filtered {
  display: none !important;
}
#f-willing-wrap {
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 2px;
}
@media (min-width: 992px) {
  .intake-progress-mobile { display: none; }
  .intake-form-container {
    padding-top: 42px;
    padding-bottom: 80px;
  }
  .intake-layout { gap: 32px; }
  .form-step-header { margin-bottom: 25px; }
}
@media (max-width: 991.98px) {
  .intake-layout { grid-template-columns: 1fr; }
  .intake-sidebar { display: none; }
  .intake-progress { top: 0; }
  .intake-form-container {
    padding-top: 1.35rem;
    padding-bottom: 2.25rem;
  }
  .intake-main { padding-top: 0; }
}
@media (max-width: 575.98px) {
  .intake-form-container {
    padding-top: 1.15rem;
    padding-bottom: 2rem;
  }
  .form-step-header {
    grid-template-columns: 40px 1fr;
    gap: 10px;
    margin-bottom: 1.35rem;
  }
  .section-num { font-size: 1.2rem; }
  .form-card { padding: 1.15rem 1rem; }
  .intake-step-actions { padding-top: 1.35rem; margin-top: 0; }
  .intake-why-section { margin-top: 2rem; }
  .intake-progress-steps { max-width: none; }
}

/* WHY SECTION */
.why-section { border: 1px solid var(--line); background: var(--paper); position: relative; }
.why-section::before, .why-section::after { content: ''; position: absolute; width: 12px; height: 12px; border: 1px solid var(--gold); }
.why-section::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.why-section::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.why-num { font-family: var(--font-serif); font-size: 1.8rem; font-style: italic; color: var(--gold-deep); }
.why-card { border-top: 1px solid var(--gold); }
.why-card h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; }

/* FORM */
.form-shell { border: none; background: transparent; }
.intake-layout.form-shell { border: none; background: transparent; }
.section-num {
  font-family: "Libre Caslon Display", serif;
  font-size: 1.55rem;
  color: #9b6a25;
  font-style: normal;
  font-weight: 400 !important;
  font-synthesis: none;
  line-height: 1;
  display: inline-block;
  min-width: auto;
  border-bottom: none;
  padding-top: 6px;
  padding-bottom: 0;
  align-self: flex-start;
}
.section-num::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: #9b6a25;
  margin-top: 7px;
}
.section-title {
  font-family: "Libre Caslon Display", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400 !important;
  font-synthesis: none;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  color: #171713;
}
.section-sub {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #66665f;
  margin-top: 0;
  line-height: 1.5;
  max-width: 650px;
}
.form-control, .form-select {
  background-color: #fff;
  border-color: #b8b6ad;
  color: #171713;
  font-size: .9rem;
  border-radius: 4px;
  font-family: var(--font-sans);
}
.form-control:focus, .form-select:focus {
  border-color: #9b6a25;
  box-shadow: 0 0 0 3px rgba(155, 106, 37, .18);
  background-color: #fff;
  color: #171713;
}
.form-control::placeholder,
textarea.form-control::placeholder {
  color: #949189;
  opacity: 1;
}

/* Chosen searchable selects */
.hub-field .chosen-container { width: 100% !important; font-size: .9rem; }
.hub-field .chosen-container-single .chosen-single {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid #b8b6ad;
  border-radius: 4px;
  box-shadow: none;
  height: auto;
  line-height: 1.5;
  padding: 12px 36px 12px 13px !important;
  color: #171713;
}
.hub-field .chosen-container-single .chosen-single div {
  width: 28px !important;
  background: transparent !important;
}
.hub-field .chosen-container-single .chosen-single div b {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2366665f' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E") no-repeat center center !important;
  background-size: 10px 6px !important;
}
.hub-field .chosen-container-active.chosen-with-drop .chosen-single,
.hub-field .chosen-container-single .chosen-single:hover {
  border-color: #9b6a25;
}
.hub-field .chosen-container .chosen-drop {
  border-color: var(--line);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 4px 12px rgba(26, 22, 18, .08);
}
.hub-field .chosen-container .chosen-results li.highlighted {
  background: var(--ink);
  color: var(--paper);
}

/* Tom Select (country / state / city) dropdown arrow */
.umma-hub-page .ts-wrapper.single .ts-control {
  position: relative !important;
  padding-right: 2.25rem !important;
}
.umma-hub-page .ts-wrapper.single .ts-control::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  width: 10px !important;
  height: 6px !important;
  margin-top: -3px !important;
  border: none !important;
  transform: none !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2366665f' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E") no-repeat center center !important;
  background-size: 10px 6px !important;
  pointer-events: none;
}
.umma-hub-page .ts-wrapper.dropdown-active.single .ts-control::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239b6a25' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E") !important;
}

/* Inline validation */
.field-hint {
  display: block;
  font-size: .75rem;
  color: var(--ink-muted);
  margin-top: 7px;
  line-height: 1.45;
}
.hub-image-spec { line-height: 1.45; }
.field-error-msg { font-size: .8rem; line-height: 1.4; margin-top: .35rem; display: block; }
.hub-field.hub-invalid .form-control,
.hub-field.hub-invalid .upload-zone,
.hub-field.hub-invalid #f-willing-wrap {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, .12);
}
.hub-field.hub-invalid .chosen-container-single .chosen-single {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, .12);
}

/* UPLOAD */
.upload-zone { border: 1px dashed var(--line); background: #fff; aspect-ratio: 1; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; color: var(--ink-muted); font-size: .8rem; letter-spacing: normal; text-transform: none; border-radius: 2px; overflow: hidden; transition: border-color .15s, background .15s; position: relative; }
.upload-zone-wide { aspect-ratio: 16 / 10; min-height: 148px; }
.upload-zone:hover { border-color: var(--gold-deep); }
.upload-zone.is-dragover { border-color: var(--gold-deep); background: var(--paper-warm); border-style: solid; }
.upload-zone img { width: 100%; height: 100%; object-fit: cover; }
.upload-zone #ph-store,
.upload-zone #ph-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .35rem;
  padding: .75rem;
}
.upload-zone-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d8d7d1;
  display: grid;
  place-items: center;
  color: #9b6a25;
  font-size: 1.2rem;
  margin-bottom: .1rem;
}
.upload-zone-cta {
  font-family: var(--font-sans);
  font-size: .86rem;
  font-weight: 700;
  color: #171713;
  letter-spacing: .01em;
}
.upload-zone-hint { display: block; font-size: .74rem; letter-spacing: normal; text-transform: none; color: #66665f; margin-top: .1rem; font-style: normal; line-height: 1.45; max-width: 15rem; }
.upload-file-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: .55rem;
  flex-wrap: wrap;
}
.upload-browse-btn {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .28rem .65rem;
  cursor: pointer;
  line-height: 1.4;
}
.upload-browse-btn:hover {
  border-color: var(--gold-deep);
  color: var(--ink);
}
.upload-file-name {
  font-size: .78rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.photo-remove { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(26,22,18,.8); color: #fff; border: none; font-size: .85rem; cursor: pointer; display: grid; place-items: center; line-height: 1; z-index: 2; }
.upload-zone-spinner { position: absolute; inset: 0; background: rgba(255,253,248,.75); display: flex; align-items: center; justify-content: center; z-index: 3; pointer-events: none; }
.upload-zone-spinner::after { content: ''; width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--gold-deep); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* CHIPS */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; background: #fff; border: 1px solid #b8b6ad; border-radius: 999px; font-size: .8rem; cursor: pointer; color: #171713; transition: all .15s; user-select: none; }
.chip:hover { border-color: #9b6a25; color: #171713; }
.chip.active { background: #1b1b18; color: #f8f5ed; border-color: #1b1b18; }

/* INTRO VIDEO + PRODUCT PHOTOS (equal-height 6/6) */
.hub-media-row {
  align-items: stretch;
}
.hub-media-col {
  min-height: 100%;
}
.hub-media-col .field-label {
  margin-bottom: .55rem;
}
.hub-media-col .video-upload-zone,
.hub-media-col .product-upload-panel {
  min-height: 220px;
}
.hub-media-col .product-grid {
  flex: 1 1 auto;
  align-content: start;
}

/* INTRO VIDEO UPLOAD */
.video-upload-zone {
  position: relative;
  border: 1px dashed var(--line);
  background: #fff;
  border-radius: 4px;
  min-height: 160px;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}
.hub-media-col .video-upload-zone {
  aspect-ratio: auto;
  width: 100%;
}
.video-upload-zone:hover { border-color: var(--gold-deep); }
.video-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .35rem;
  padding: 1rem;
}
.video-upload-zone video {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: contain;
  background: #111;
  cursor: default;
}
.hub-preview-video {
  margin-top: .85rem;
  width: 100%;
}
.hub-preview-video video {
  display: block;
  width: 100%;
  max-height: 220px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.video-upload-zone.is-dragover {
  border-color: var(--gold-deep);
  background: var(--paper-warm);
  border-style: solid;
}

/* NICHE TAGS */
.niche-tags-hint {
  font-size: .8rem;
  color: #66665f;
  margin: 0 0 .75rem;
  line-height: 1.45;
}
.niche-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.niche-tag {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.3;
  padding: 8px 13px;
  border: 1px solid #b8b6ad;
  border-radius: 999px;
  background: #fff;
  color: #171713;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.niche-tag:hover {
  border-color: #9b6a25;
  color: #171713;
}
.niche-tag.is-active {
  background: #1b1b18;
  border-color: #1b1b18;
  color: #f8f5ed;
}

/* BUSINESS LOCATION CHOICES */
.hub-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hub-choice {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.hub-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hub-choice span {
  display: block;
  border: 1px solid #b8b6ad;
  background: #fff;
  padding: 9px 15px;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: #171713;
  transition: border-color .15s, background .15s, color .15s;
}
.hub-choice:hover span {
  border-color: #9b6a25;
  color: #171713;
}
.hub-choice input:checked + span {
  border-color: #9b6a25;
  background: #f1e8d9;
  color: #724714;
}
.location-subpanel {
  border-top: 1px solid #d8d7d1;
  margin-top: 28px;
  padding-top: 25px;
}
.location-subpanel-title {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #171713;
  margin: 0 0 4px;
}
.location-subpanel-copy {
  font-size: .8rem;
  color: #66665f;
  margin: 0 0 18px;
}

/* FIELD ASSIST (mic / speaker) — Muse */
.hub-assist-wrap {
  position: relative;
}
.hub-assist-wrap .form-control {
  padding-right: 92px;
}
.hub-assist-tools {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.hub-icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #d8d7d1;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #66665f;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.hub-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  pointer-events: none;
}
.hub-icon-btn i {
  font-size: .95rem;
  line-height: 1;
}
.hub-icon-btn:hover,
.hub-icon-btn.listening {
  border-color: var(--gold);
  color: var(--gold);
}
.hub-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hub-resource {
  background: #fff;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.hub-resource h4 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 15px;
  font-size: .82rem;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  color: #171713;
}
.hub-resource h4 span {
  font-family: "Libre Caslon Display", serif;
  font-size: 1.15rem;
  color: #9b6a25;
  font-weight: 400;
}
.hub-resource-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hub-resource-wide {
  grid-column: 1 / -1;
}
.hub-resource .form-control {
  font-size: .78rem;
  min-height: 39px;
  padding: 9px 10px;
}
.hub-resource textarea.form-control {
  min-height: 64px;
}
.hub-pay-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hub-pay-option {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.hub-pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hub-pay-option span {
  display: block;
  border: 1px solid #d8d7d1;
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: #171713;
  transition: border-color .15s, background .15s, color .15s;
}
.hub-pay-option small {
  display: block;
  font-weight: 400;
  color: #66665f;
  margin-top: 3px;
}
.hub-pay-option:hover span {
  border-color: #9b6a25;
  color: #171713;
}
.hub-pay-option input:checked + span {
  border-color: #9b6a25;
  background: #f1e8d9;
  color: #171713;
}
.hub-preview {
  background: #1b1b18;
  color: #f8f5ed;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 0;
}
.hub-preview-profile {
  padding: 26px;
}
.hub-preview-identity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #3b3933;
  margin-bottom: 0;
}
.hub-preview-logo,
.hub-preview-avatar {
  position: relative;
  display: grid;
  place-items: center;
  background: #d4cfbf;
  color: #333;
  font-family: "Libre Caslon Display", serif;
  overflow: hidden;
  border: 0;
}
.hub-preview-logo {
  width: 118px;
  height: 72px;
  border-radius: 5px;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.hub-preview-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  font-size: 1.6rem;
  letter-spacing: 0;
  text-transform: none;
  flex: 0 0 auto;
}
.hub-preview-logo img,
.hub-preview-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hub-preview-logo.has-image .hub-preview-logo-fallback,
.hub-preview-avatar.has-image .hub-preview-avatar-fallback {
  display: none;
}
.hub-preview-name {
  font-family: "Libre Caslon Display", serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #f8f5ed;
  margin: 18px 0 2px;
}
.hub-preview-company {
  font-size: .83rem;
  color: #bdb8ac;
  margin: 0;
}
.hub-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}
.hub-preview-tags span {
  border: 1px solid #48463f;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .7rem;
  color: #dfdbd1;
}
.hub-preview-edits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}
.hub-preview-edit {
  appearance: none;
  border: 1px solid #55524a;
  background: transparent;
  color: #fff;
  font-size: .75rem;
  letter-spacing: 0;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.hub-preview-edit:hover {
  border-color: #d0a55f;
  color: #e8c98e;
  background: transparent;
}
@media (max-width: 767.98px) {
  .hub-resource-grid {
    grid-template-columns: 1fr;
  }
  .hub-pay-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* CONTACT PHONE + SOCIAL */
.hub-phone {
  display: grid;
  grid-template-columns: 110px 1fr;
}
.hub-phone .form-select {
  border-radius: 4px 0 0 4px;
  border-right: 0;
  padding-right: 28px;
  background-position: right 8px center;
}
.hub-phone .form-control {
  border-radius: 0 4px 4px 0;
}
.hub-social-row {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 10px;
}
@media (max-width: 575.98px) {
  .hub-phone {
    grid-template-columns: 90px 1fr;
  }
  .hub-social-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* PRODUCT GRID */
.product-upload-panel {
  border: 1px dashed var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 1rem;
}
.hub-media-col .product-upload-panel {
  height: 100%;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.hub-media-col .product-grid {
  grid-template-columns: repeat(2, 1fr);
}
.product-tile {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-warm);
}
.product-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(26,22,18,.85);
  color: #fff;
  border: none;
  font-size: .7rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}
.product-add {
  aspect-ratio: 1;
  min-height: 120px;
  border: 1px dashed var(--line);
  background: #faf7f1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  color: var(--ink-muted);
  text-align: center;
  padding: .75rem;
  border-radius: 4px;
  transition: border-color .15s, background .15s, color .15s;
}
.product-add:hover {
  border-color: var(--gold-deep);
  background: #fff;
}
.product-add-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-size: 1.15rem;
  margin-bottom: .15rem;
}
.product-add-cta {
  font-family: var(--font-sans);
  font-size: .84rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: .01em;
}
.product-add-hint {
  font-size: .67rem;
  color: var(--ink-muted);
  line-height: 1.4;
  max-width: 9.5rem;
}
@media (max-width: 575.98px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* SUBMIT */
.submit-area.intake-step-actions {
  background: transparent;
  border-top: none;
}
.btn-umma { font-family: var(--font-sans); background: var(--ink); color: var(--paper); border: none; padding: .75rem 2rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; border-radius: 2px; transition: background .15s; }
.btn-umma:hover { background: var(--gold-deep); color: var(--paper); }
.btn-umma:disabled { opacity: .6; }
.btn-umma-outline { background: #fffdf8; color: var(--ink); border: 1px solid var(--line); padding: .75rem 1.5rem; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; border-radius: 2px; transition: background .15s, border-color .15s; }
.btn-umma-outline:hover { background: var(--paper-warm); border-color: var(--gold); color: var(--ink); }
.btn-umma-outline:disabled { opacity: .6; }
.hub-forgot-link { display: inline-block; margin-top: .35rem; font-size: .78rem; color: var(--gold-deep); text-decoration: none; letter-spacing: .02em; }
.hub-forgot-link:hover { color: var(--ink); text-decoration: underline; }

/* SUCCESS */
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; margin: 0 auto 1.5rem; font-size: 1.8rem; }

/* DIRECTORY */
.dir-search-modes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .25rem 0 .75rem;
  border: none;
  background: transparent;
}
.dir-search-mode {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink-muted);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .7rem 1.15rem;
  margin: 0;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.dir-search-mode.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.dir-search-mode:hover:not(.is-active) {
  background: var(--paper-warm);
  color: var(--ink);
}
.dir-search-panel { width: 100%; }
.dir-search-hint {
  margin: .55rem 0 0;
  font-size: .78rem;
  color: var(--ink-muted);
  line-height: 1.45;
}
.dir-adv-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)) auto;
  gap: .75rem;
  align-items: end;
}
.dir-adv-label {
  display: block;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .3rem;
  line-height: 1.2;
}
.dir-adv-field .form-control,
.dir-adv-field .form-select {
  min-height: 42px;
  height: 42px;
  font-size: .88rem;
}
.dir-adv-field #dir-adv-city-text {
  width: 100%;
}
.dir-adv-field .ts-wrapper {
  width: 100%;
}
.dir-adv-field .ts-wrapper.single .ts-control {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow: hidden;
  min-height: 42px;
  height: 42px;
  padding: 8px 2.25rem 8px 12px;
  font-size: .88rem;
  border: 1px solid #b8b6ad;
  border-radius: 4px;
  background-color: #fff;
  color: #171713;
  box-sizing: border-box;
}
.dir-adv-field .ts-wrapper.single .ts-control > .item {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  line-height: 1.25;
}
.dir-adv-field .ts-wrapper.focus .ts-control {
  border-color: #9b6a25;
  box-shadow: 0 0 0 3px rgba(155, 106, 37, .18);
}
.dir-adv-field .ts-dropdown {
  border-color: var(--line);
  font-size: .85rem;
}
.dir-adv-field .ts-dropdown .dropdown-input-wrap {
  padding: .45rem .55rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.dir-adv-field .ts-dropdown .dropdown-input {
  width: 100%;
  min-height: 34px;
  padding: .35rem .6rem;
  border: 1px solid #b8b6ad;
  border-radius: 4px;
  font-size: .85rem;
  line-height: 1.3;
  color: #171713;
  background: #fff;
  box-sizing: border-box;
}
.dir-adv-field .ts-dropdown .dropdown-input:focus {
  outline: none;
  border-color: #9b6a25;
  box-shadow: 0 0 0 2px rgba(155, 106, 37, .16);
}
.dir-adv-field .ts-dropdown .dropdown-input::placeholder {
  color: #8a897f;
  opacity: 1;
}
.dir-adv-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  align-self: end;
  margin-bottom: 0;
}
.dir-adv-apply.btn-umma {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0 !important;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  box-sizing: border-box;
  border-radius: 4px;
}
.dir-adv-apply .bi {
  line-height: 1;
  display: block;
}
.dir-adv-clear-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: calc(100% + .35rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  line-height: 1.2;
}
.dir-adv-clear-link:hover {
  color: var(--ink);
}
@media (max-width: 991px) {
  .dir-adv-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dir-adv-keyword {
    grid-column: 1 / -1;
  }
  .dir-adv-actions {
    grid-column: 1 / -1;
    justify-self: start;
    margin-bottom: 1.4rem;
  }
}
@media (max-width: 575px) {
  .dir-adv-grid {
    grid-template-columns: 1fr;
  }
  .dir-search-modes {
    width: 100%;
  }
  .dir-search-mode {
    flex: 1;
    text-align: center;
    padding-left: .5rem;
    padding-right: .5rem;
  }
}
.search-box { display: flex; align-items: center; gap: .5rem; padding: 0 1rem; border: 1px solid var(--line); background: #fffdf8; border-radius: 2px; }
.search-box input { border: none; background: transparent; outline: none; padding: .7rem 0; font-size: .9rem; width: 100%; color: var(--ink); }
.dir-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.dir-search-clear:hover,
.dir-search-clear:focus-visible {
  color: var(--ink);
  background: rgba(0, 0, 0, .06);
  outline: none;
}
.dir-results-wrap { min-height: 0; }
.dir-search-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: -.5rem 0 1rem;
  padding: .45rem .75rem;
  font-size: .8rem;
  color: var(--ink-muted);
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}
.dir-search-btn-spinner {
  display: inline-block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--gold-deep);
  border-radius: 50%;
  animation: spin .65s linear infinite;
}
#dir-search-form button[type="submit"]:disabled {
  opacity: .85;
  cursor: wait;
}
.dir-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper);
}
.dir-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.dir-row:last-child { border-bottom: none; }
.dir-row-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background .15s;
}
.dir-row-link:hover {
  background: var(--paper-warm);
  color: inherit;
}
.dir-row-link:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: -2px;
}
.dir-row-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--gold-soft);
  flex-shrink: 0;
}
.dir-row-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  color: var(--gold-deep);
  font-size: 1.1rem;
  text-align: center;
  padding: .2rem;
}
.dir-row-photo-unavailable {
  font-size: .5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.1;
  max-width: 100%;
}
.dir-row-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}
.dir-row-chevron {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--ink-muted);
}
.dir-row-link:hover .dir-row-chevron { color: var(--gold-deep); }
.dir-row-main { flex: 1 1 180px; min-width: 0; }
.dir-row-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  word-break: break-word;
}
.dir-row-biz {
  font-size: .85rem;
  color: var(--ink-muted);
  margin-top: .2rem;
  word-break: break-word;
}
.dir-row-location {
  font-size: .78rem;
  color: var(--ink-muted);
  margin-top: .35rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .15rem;
  word-break: break-word;
}
.dir-row-location .bi { color: var(--gold-deep); flex-shrink: 0; }
.dir-row-roles {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
  flex: 1 1 auto;
  max-width: 100%;
}
.role-tag {
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .dir-row { padding: .75rem 1rem; flex-wrap: nowrap !important; gap: .65rem; align-items: center; }
  .dir-row-photo { width: 42px; height: 42px; }
  .dir-row-content { flex-direction: column; align-items: flex-start; gap: .25rem; justify-content: center; }
  .dir-row-main { flex: 1 1 0; min-width: 0; }
  .dir-row-roles { justify-content: flex-start; }
  .dir-row-name { font-size: .95rem; }
  .dir-row-biz { font-size: .78rem; margin-top: .1rem; }
  .dir-row-location { margin-top: .15rem; }
  .dir-row-chevron { font-size: .9rem; }
}

.dir-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: 1.5rem;
}
.dir-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 .6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--ink-soft);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.dir-page-btn:hover:not(:disabled):not(.is-active) {
  background: var(--paper-warm);
  border-color: var(--gold);
  color: var(--ink);
}
.dir-page-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  cursor: default;
}
.dir-page-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.dir-page-btn:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}
.dir-page-ellipsis {
  min-width: 26px;
  text-align: center;
  color: var(--ink-muted);
  user-select: none;
}
@media (max-width: 575.98px) {
  .dir-page-btn { min-width: 34px; height: 34px; font-size: .8rem; }
}

.umma-footer { border-top: 1px solid var(--line); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.empty-state { font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; color: var(--ink-muted); }
