/* Public directory and profile layout. The shared brand, prices and motion
   controls remain in site.css; these overrides do not affect private panels. */
.directory-theme,
.profile-directory-theme {
  --bg: #101014;
  --panel: #19171e;
  --line: #514337;
  --action-start: #be0058;
  --action-end: #df086c;
  background: var(--bg);
}

.directory-theme .editorial-container {
  width: min(1320px, calc(100% - 56px));
}

.directory-theme .editorial-header {
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 13px max(28px, calc((100vw - 1320px) / 2));
  background: #111015f5;
  border-color: #c7a34d40;
}

.directory-theme .editorial-header-brand {
  grid-column: 1;
  grid-row: 1;
  width: 230px;
}

.directory-theme .editorial-nav-left {
  grid-column: 2;
  grid-row: 1;
  justify-content: center;
}

.directory-theme .editorial-nav-right {
  grid-column: 3;
  grid-row: 1;
}

.directory-theme .editorial-header nav {
  gap: 22px;
  min-width: 0;
}

.directory-theme .editorial-header nav a {
  font-size: 11px;
  letter-spacing: .03em;
}

.directory-theme .editorial-header nav .editorial-account {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #ff3b933d;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--action-start), var(--action-end));
}

.directory-theme .editorial-hero {
  min-height: clamp(560px, calc(100svh - 76px), 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 28px 96px;
  text-align: center;
  border-bottom: 1px solid #c7a34d2e;
}

.directory-theme .editorial-hero::before {
  opacity: 1;
  background: #332024 url('/static/brand/welcome-temple.webp') center top / cover no-repeat;
}

.directory-theme .editorial-hero-shade {
  background: linear-gradient(180deg, #1c0c1a20, #230a204d 58%, #101014 100%);
}

.directory-theme .editorial-hero-content {
  width: min(920px, 100%);
  padding: 44px 48px 38px;
  background: radial-gradient(ellipse at center, #25091fe8 8%, #25091fc7 46%, #25091f59 68%, #25091f00 79%);
  text-shadow: 0 2px 14px #190511;
}

.directory-theme .editorial-hero .editorial-kicker {
  margin: 0 0 24px;
  font-size: 12px;
  letter-spacing: .28em;
}

.directory-theme .editorial-hero .editorial-wordmark {
  width: min(760px, 100%);
  margin: 0 auto 28px;
  filter: drop-shadow(0 4px 16px #15030ce6);
}

.directory-theme .editorial-hero h1.editorial-hero-title {
  max-width: 690px;
  margin: 0 auto 16px;
  font-family: Georgia, serif;
  font-size: clamp(25px, 2.7vw, 36px);
  line-height: 1.25;
}

.directory-theme .editorial-hero-description {
  max-width: 490px;
  margin: 0 auto 26px;
  font-size: 14px;
  line-height: 1.75;
}

.directory-theme .welcome-directory-button {
  min-height: 52px;
  padding: 16px 26px;
  border: 1px solid #f3ca786e;
  border-radius: 7px;
  box-shadow: 0 8px 26px #16071066;
  font-size: 13px;
}

.directory-theme .welcome-adult-note {
  margin: 22px 0 0;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .14em;
}

.directory-theme .hero-motion-toggle {
  position: absolute;
  left: auto;
  right: 28px;
  bottom: 24px;
  transform: none;
  background: #180e19d9;
}

.directory-theme .editorial-directory {
  background: #101014;
}

.directory-theme #perfiles {
  padding: 30px 0 56px;
  scroll-margin-top: 90px;
}

.directory-theme .directory-heading {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.directory-theme .directory-heading .editorial-kicker {
  margin: 0 0 7px;
  font-size: 9px;
  letter-spacing: .14em;
}

.directory-theme .directory-heading h2 {
  font-family: Georgia, serif;
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.directory-publish-link {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.5;
  padding: 12px 0;
  border-bottom: 1px solid #d5267966;
}

.directory-theme .directory-category-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
}

.directory-theme .directory-category-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid #b995555c;
  border-radius: 7px;
  background: #201620;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  text-transform: none;
  white-space: nowrap;
}

.directory-theme .directory-category-nav a:hover {
  background: #37172c;
  border-color: #ed398b;
}

.directory-theme .directory-category-nav a[aria-current="page"] {
  background: linear-gradient(135deg, var(--action-start), var(--action-end));
  border-color: #edc66f;
  box-shadow: inset 0 0 0 1px #f3cd7833;
}

.directory-theme .editorial-search {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
  margin: 0 0 26px;
  border: 1px solid #c7a34d38;
  border-radius: 10px;
  background: #1a1720;
}

.directory-theme .editorial-search label {
  min-width: 0;
  font-size: 10px;
  letter-spacing: .06em;
}

.directory-theme .editorial-search select {
  min-height: 46px;
  margin-top: 8px;
  padding: 11px 30px 11px 12px;
  border: 1px solid #746046;
  border-radius: 6px;
  background: #101014;
  font-size: 14px;
}

.directory-theme .editorial-search select option {
  background: #17131c;
}

.directory-theme .editorial-search button {
  grid-column: auto;
  min-width: 176px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 12px;
}

.directory-theme .editorial-filter-note {
  margin: -8px 0 22px;
  line-height: 1.6;
  font-size: 12px;
}

.directory-theme .editorial-filter-note a { text-decoration: underline; }

.directory-theme .directory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
}

.directory-theme .editorial-cards .directory-card {
  background: #1a161f;
  border: 1px solid #a7814138;
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
  transition: border-color .2s, transform .2s;
}

.directory-theme .editorial-cards .directory-card:hover {
  border-color: #ed398b;
  transform: translateY(-3px);
}

.directory-theme .directory-card .photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  background: #0d0b10;
  border-radius: 0;
}

.directory-theme .directory-card .photo::after { display: none; }

.directory-theme .directory-card .photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.directory-theme .directory-card .badge {
  top: 10px;
  bottom: auto;
  left: 10px;
  z-index: 1;
  padding: 6px 9px;
  border: 1px solid #ff7bb74f;
  border-radius: 4px;
  background: #870a42ee;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.directory-theme .directory-card .badge.platinum,
.profile-directory-theme .profile-tier.platinum {
  background: linear-gradient(135deg, #60451c, #35250f);
  border-color: #e8c76b;
}

.directory-theme .directory-card .badge.directory-assigned-category {
  background: #341128f2;
  border-color: #e5be6d;
  text-transform: none;
  letter-spacing: .02em;
}

/* Keep the bottom stamp uncovered. Images are never cropped or stretched. */
.directory-photo-caption {
  position: absolute;
  inset: auto 0 40px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 30px 14px 10px;
  background: linear-gradient(180deg, transparent, #0c0913db 58%, #0c0913e6);
  text-shadow: 0 2px 5px #000;
  overflow-wrap: anywhere;
}

.directory-photo-caption h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.15;
  font-weight: 500;
}

.directory-age { font-size: 12px; white-space: nowrap; }

.directory-theme .directory-card .placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px 90px;
  background: radial-gradient(ellipse at top, #382032, #141017 70%);
}

.directory-theme .directory-card .placeholder small {
  font-size: 12px;
  text-align: center;
}

.directory-theme .editorial-cards .card-body { padding: 14px; }

.directory-theme .directory-card .directory-city {
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.5;
}

.directory-city > span { margin-right: 3px; }

.directory-theme .directory-card .card-body .directory-intro {
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.directory-theme .directory-card .card-body .directory-category {
  font-size: 10px;
  margin-bottom: 10px;
}

.directory-theme .directory-card .directory-more {
  margin-top: auto;
  padding-top: 11px;
  font-size: 11px;
  letter-spacing: .02em;
}

.directory-theme .editorial-empty {
  padding: 28px;
  border: 1px dashed #c7a34d55;
  border-radius: 10px;
  background: #18141d;
}

.directory-theme .editorial-empty h3 { font-size: 26px; }
.directory-theme .editorial-facts { background: #221520; }
.directory-theme .editorial-plans { background: #17131b; }
.directory-theme .editorial-publish-copy { background: #20131e; }
.directory-theme .editorial-contact { background: #271323; }
.directory-theme footer,
.profile-directory-theme footer { background: #111015; }

/* Profile: full photograph, clear identity and contact before the gallery. */
.profile-directory-theme .site-header {
  min-height: 76px;
  background: #111015f5;
  border-color: #c7a34d40;
}

.profile-directory-theme .adult-bar { background: #18101b; }

.profile-directory-theme .public-profile {
  width: min(1220px, calc(100% - 56px));
  padding-top: 16px;
  padding-bottom: 24px;
}

.profile-directory-theme .profile-back {
  font-size: 12px;
  margin: 0 0 14px;
}

.profile-directory-theme .profile-overview {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.profile-directory-theme .profile-cover {
  width: 100%;
  max-height: none;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  border: 1px solid #a7814159;
  background: #0b090e;
}

.profile-directory-theme .profile-cover img,
.profile-directory-theme .profile-gallery img { object-fit: contain; }

.profile-directory-theme .public-profile .profile-identity {
  padding: 16px 0;
  min-width: 0;
}

.profile-directory-theme .profile-identity h1 {
  font-size: clamp(38px, 4.8vw, 66px);
  line-height: 1.08;
  margin: 22px 0 12px;
  overflow-wrap: anywhere;
}

.profile-directory-theme .profile-location {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.profile-directory-theme .profile-introduction {
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.7;
  margin-bottom: 28px;
}

.profile-directory-theme .profile-facts { gap: 8px; }
.profile-directory-theme .profile-facts span {
  border-color: #c7a34d55;
  padding: 7px 11px;
  border-radius: 5px;
  font-size: 11px;
}
.profile-directory-theme .profile-facts .profile-tier {
  background: #870a42;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.profile-directory-theme .profile-facts .profile-directory-category {
  background: #341128;
  border-color: #e5be6d;
}


.profile-contact-top {
  padding-top: 22px;
  border-top: 1px solid #c7a34d4d;
}

.profile-contact-top h2 {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.profile-contact-top .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.profile-contact-top .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: 14px 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.profile-contact-top .btn.ghost { background: #241420; }

.profile-directory-theme .profile-section-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px 20px;
  margin-top: 20px;
}

.profile-directory-theme .profile-section-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #c7a34d80;
}

.profile-directory-theme .profile-section-links .profile-stories-link {
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #ed398b;
  border-radius: 6px;
  text-decoration: none;
  background: #38132a;
}

.profile-directory-theme .profile-details,
.profile-directory-theme .profile-media,
.profile-directory-theme .reviews-section { scroll-margin-top: 100px; }

.profile-directory-theme .profile-details { margin-top: 36px; }
.profile-directory-theme .profile-text.panel,
.profile-directory-theme .reviews-section {
  border-color: #c7a34d40;
  background: #19151e;
  border-radius: 12px;
  padding: 30px;
}

.profile-directory-theme .profile-text .description {
  font-size: 15px;
  line-height: 1.9;
  max-width: 920px;
}

.profile-directory-theme .profile-media { margin-top: 42px; }
.profile-directory-theme .profile-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.profile-directory-theme .profile-gallery a { background: #0b090e; border-color: #a781414d; }
.profile-directory-theme .video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.profile-directory-theme .video-grid video {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: #08070b;
  border: 1px solid #a781414d;
  border-radius: 10px;
}
.profile-directory-theme .reviews-section { margin-top: 42px; }
.profile-directory-theme .review-entry { background: #141118; }
.profile-directory-theme .review-form input,
.profile-directory-theme .review-form textarea { background-color: #100d15; }

.directory-theme a:focus-visible,
.directory-theme button:focus-visible,
.directory-theme select:focus-visible,
.profile-directory-theme a:focus-visible {
  outline: 3px solid #f4c962;
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .directory-theme .editorial-header { grid-template-columns: 205px 1fr auto; gap: 18px; }
  .directory-theme .editorial-header-brand { width: 205px; }
  .directory-theme .editorial-header nav { gap: 16px; }
  .directory-theme .editorial-nav-right > a:first-child { display: none; }
  .directory-theme .directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .directory-theme .editorial-header { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 18px; padding: 12px 22px 0; }
  .directory-theme .editorial-header-brand { grid-column: 1; grid-row: 1; width: 210px; }
  .directory-theme .editorial-nav-right { grid-column: 2; grid-row: 1; }
  .directory-theme .editorial-nav-left { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .directory-theme .editorial-header .editorial-nav-left { gap: 30px !important; }
  .directory-theme .editorial-header nav a { padding-top: 11px; padding-bottom: 11px; }
  .directory-theme .editorial-header nav .editorial-account { min-height: 40px; padding: 8px 12px; }
  .directory-theme .editorial-hero { min-height: clamp(540px, calc(100svh - 108px), 800px); padding: 54px 22px 90px; }
  .directory-theme .editorial-hero-content { width: 100%; padding: 34px 30px; }
  .directory-theme .hero-motion-toggle { display: inline-flex; margin: 0; min-height: 38px; padding: 8px 12px; }
  .directory-theme .editorial-container { width: calc(100% - 44px); }
  .directory-theme #perfiles { padding-top: 24px; scroll-margin-top: 120px; }
  .directory-theme .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-theme .editorial-search { gap: 14px; padding: 16px; }
  .directory-theme .editorial-search button { min-width: 145px; }
  .profile-directory-theme .public-profile { width: calc(100% - 44px); }
  .profile-directory-theme .profile-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
  .profile-directory-theme .profile-identity h1 { font-size: 38px; }
  .profile-directory-theme .profile-introduction { font-size: 16px; }
  .profile-contact-top .btn { width: 100%; }
}

@media (max-width: 600px) {
  .directory-theme .editorial-header { padding: 10px 16px 0; gap: 3px 12px; min-height: 98px; }
  .directory-theme .editorial-header-brand { width: min(190px, 100%); }
  .directory-theme .editorial-header .editorial-nav-right { gap: 11px; }
  .directory-theme .editorial-header nav a { font-size: 10px; }
  .directory-theme .editorial-header .editorial-account span { font-size: 15px; }
  .directory-theme .editorial-header .editorial-nav-left { gap: 28px !important; }
  .directory-theme .editorial-hero { min-height: clamp(520px, calc(100svh - 98px), 760px); padding: 46px 12px 84px; }
  .directory-theme .editorial-hero::before { background-position: center; }
  .directory-theme .editorial-hero-content { padding: 30px 16px; background: radial-gradient(ellipse at center, #25091feb 10%, #25091fc4 52%, #25091f52 73%, #25091f00 87%); }
  .directory-theme .editorial-hero .editorial-wordmark { margin-bottom: 24px; }
  .directory-theme .editorial-hero h1.editorial-hero-title { max-width: 400px; font-size: 25px; margin: 0 auto 14px; }
  .directory-theme .editorial-hero-description { max-width: 330px; font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
  .directory-theme .editorial-hero .editorial-kicker { font-size: 10px; margin-bottom: 22px; letter-spacing: .22em; }
  .directory-theme .welcome-directory-button { min-height: 50px; padding: 15px 20px; font-size: 12px; }
  .directory-theme .welcome-adult-note { margin-top: 20px; font-size: 8px; letter-spacing: .08em; }
  .directory-theme .hero-motion-toggle { left: 16px; right: auto; bottom: 20px; transform: none; font-size: 9px; white-space: nowrap; }
  .directory-theme .editorial-container { width: calc(100% - 28px); }
  .directory-theme .directory-heading { gap: 12px; margin-bottom: 16px; }
  .directory-theme .directory-heading h2 { font-size: 25px; }
  .directory-theme .directory-heading .editorial-kicker { font-size: 8px; }
  .directory-publish-link { max-width: 100px; text-align: right; font-size: 10px; }
  .directory-theme .directory-category-nav { gap: 8px; margin-bottom: 16px; }
  .directory-theme .directory-category-nav a { flex: 1 0 auto; min-height: 44px; padding: 10px 13px; font-size: 11px; }
  .directory-theme .editorial-search { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px 12px; padding: 13px; margin-bottom: 22px; }
  .directory-theme .editorial-search label { font-size: 9px; }
  .directory-theme .editorial-search select { font-size: 13px; padding-left: 9px; }
  .directory-theme .editorial-search button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .directory-theme .directory-grid { gap: 18px 10px; }
  .directory-theme .editorial-cards .directory-card { border-radius: 7px; }
  .directory-theme .directory-card .badge { top: 7px; left: 7px; padding: 5px 7px; font-size: 8px; }
  .directory-photo-caption { bottom: 28px; padding: 25px 10px 8px; gap: 4px 8px; }
  .directory-photo-caption h3 { font-size: 22px; }
  .directory-age { font-size: 10px; }
  .directory-theme .editorial-cards .card-body { padding: 11px 10px; }
  .directory-theme .directory-card .directory-city { font-size: 11px; margin-bottom: 7px; }
  .directory-theme .directory-card .card-body .directory-intro { font-size: 11px; }
  .directory-theme .directory-card .card-body .directory-category { font-size: 9px; }
  .directory-theme .directory-card .directory-more { font-size: 10px; padding-top: 9px; }
  .directory-theme .directory-card .placeholder small { font-size: 10px; }
  .directory-theme .editorial-empty { padding: 22px 18px; }
  .directory-theme .editorial-empty h3 { font-size: 23px; }
  .profile-directory-theme .public-profile { width: calc(100% - 32px); padding-top: 10px; }
  .profile-directory-theme .profile-overview { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .profile-directory-theme .public-profile .profile-identity { order: -1; padding: 0; }
  .profile-directory-theme .profile-identity h1 { font-size: 42px; margin-top: 16px; }
  .profile-directory-theme .profile-location { font-size: 14px; margin-bottom: 14px; }
  .profile-directory-theme .profile-introduction { font-size: 16px; margin-bottom: 18px; }
  .profile-contact-top { padding-top: 17px; }
  .profile-contact-top .btn { flex: 1 1 auto; width: auto; font-size: 12px; }
  .profile-directory-theme .profile-section-links { margin-top: 12px; gap: 2px 16px; }
  .profile-directory-theme .profile-cover { max-width: 480px; justify-self: center; }
  .profile-directory-theme .profile-details { margin-top: 26px; }
  .profile-directory-theme .profile-text.panel,
  .profile-directory-theme .reviews-section { padding: 22px 18px; }
  .profile-directory-theme .profile-text .description { font-size: 14px; }
  .profile-directory-theme .profile-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .profile-directory-theme .profile-media h2 { font-size: 28px; overflow-wrap: anywhere; }
  .profile-directory-theme .video-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-directory-theme .video-grid video { max-height: 600px; }
  .profile-directory-theme .reviews-heading { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 370px) {
  .directory-theme .editorial-header .editorial-nav-right > a:not(.editorial-account) { display: none; }
  .directory-photo-caption h3 { font-size: 20px; }
  .directory-photo-caption { padding-left: 8px; padding-right: 8px; }
  .directory-theme .directory-card .card-body .directory-intro { -webkit-line-clamp: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .directory-theme .hero-motion-toggle { display: none; }
  .directory-theme .editorial-cards .directory-card { transition: none; }
  .directory-theme .editorial-cards .directory-card:hover { transform: none; }
}
