:root {
  --navy: #1b3a4b;
  --navy-deep: #122a38;
  --sage: #8ba38d;
  --sage-dark: #6f8a72;
  --sage-soft: #dce6dc;
  --cream: #f7f4ee;
  --paper: #fffdf9;
  --sand: #e8dfd2;
  --plum: #6b5a6e;
  --ink: #24343c;
  --muted: #5c6b72;
  --line: #e4ddd3;
  --radius: 18px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #c5d4c6;
}

h1,
h2,
.profile-name {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 22px;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-secondary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-google {
  width: 100%;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}

.btn-google:hover {
  background: var(--paper);
  border-color: var(--navy);
}

.btn-google i {
  color: #4285f4;
}

.auth-google {
  margin-top: 48px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-divider span {
  white-space: nowrap;
}

.wizard-field input[readonly] {
  background: var(--cream);
  color: var(--navy);
}

.builder-module--google-calendar {
  margin-top: 22px;
}

.btn-on-dark {
  background: var(--sage);
  color: var(--navy-deep);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  flex: 0 0 auto;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.site-header .brand-logo {
  transform: translateY(-2px);
}

.brand-logo--footer {
  height: 44px;
  margin-bottom: 16px;
  transform: translateY(-2px);
}

.nav-desktop {
  display: none;
  align-items: stretch;
  align-self: stretch;
  gap: 16px;
  margin-right: auto;
  font-size: 0.95rem;
}

.nav-desktop > a,
.nav-find__trigger,
.nav-mobile-panel a:not(.btn),
.nav-mobile-find > summary {
  text-decoration: none;
  color: var(--navy);
}

.nav-desktop > a,
.nav-find__trigger {
  display: inline-flex;
  align-items: center;
}

.nav-desktop > a.is-current,
.nav-find__trigger.is-current,
.nav-mobile-panel > a.is-current {
  font-weight: 700;
}

.nav-find {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-find__trigger {
  gap: 6px;
}

.nav-find__trigger i {
  font-size: 0.62rem;
  opacity: 0.65;
}

.nav-find__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 25;
}

.nav-find__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 8px;
}

.nav-find:hover .nav-find__panel,
.nav-find:focus-within .nav-find__panel,
.nav-find.is-open .nav-find__panel {
  display: block;
}

.nav-find:hover .nav-find__trigger,
.nav-find:focus-within .nav-find__trigger,
.nav-find.is-open .nav-find__trigger {
  color: var(--navy-deep);
}

.nav-mobile-find > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  height: auto;
  white-space: nowrap;
}

.nav-mobile-find > summary i {
  font-size: 0.62rem;
  opacity: 0.65;
}

.nav-mobile-find > summary::-webkit-details-marker {
  display: none;
}

.header-actions {
  display: none;
  gap: 8px;
  margin-left: auto;
}

.nav-mobile {
  margin-left: auto;
}

.nav-mobile-toggle {
  list-style: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  gap: 5px;
  position: relative;
}

.nav-mobile .account-badge {
  top: 2px;
  right: 0;
}

.nav-mobile-toggle::-webkit-details-marker {
  display: none;
}

.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.nav-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 76px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px 24px;
  display: grid;
  gap: 14px;
}

.nav-mobile-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (min-width: 900px) {
  .nav-desktop,
  .header-actions {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }
}

.account-menu {
  position: relative;
}

.account-menu__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
}

.account-menu__summary::-webkit-details-marker {
  display: none;
}

.account-menu__summary i {
  font-size: 0.7rem;
  opacity: 0.7;
}

.account-menu[open] .account-menu__summary {
  border-color: var(--navy);
}

.account-menu__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(139, 163, 141, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
}

.account-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  border: 2px solid var(--paper);
  box-sizing: border-box;
}

.account-badge--inline {
  position: static;
  min-width: 20px;
  height: 20px;
  border: 0;
  margin-left: auto;
}

.account-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 260px;
  padding: 12px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(18, 42, 56, 0.14);
  display: grid;
  gap: 4px;
  z-index: 30;
}

.account-menu__meta {
  margin: 0 0 8px;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
}

.account-menu__meta strong {
  color: var(--navy);
}

.account-menu__meta span {
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-all;
}

.account-menu__panel a,
.account-menu__logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.account-menu__panel a:hover,
.account-menu__logout:hover {
  background: rgba(27, 58, 75, 0.06);
}

.account-menu__logout {
  color: #7a2e28;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(27, 58, 75, 0.07);
}

.account-tabs__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

.account-tabs__link.is-current {
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(18, 42, 56, 0.08);
}

.account-tabs__link .account-badge--inline {
  margin-left: 0;
}

.account-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--paper);
  border: 1.5px solid var(--line);
}

.account-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.account-card > .wizard-fieldset__legend {
  display: block;
  margin: 0 0 10px;
}

.privacy-consent-list {
  margin: 12px 0 0;
  padding-left: 1.15rem;
}

.privacy-consent-list li {
  margin: 0 0 8px;
  color: var(--muted);
}

.account-card + .account-card,
.wizard-form + .account-card {
  margin-top: 16px;
}

.account-card--logout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-card--logout p {
  margin: 0;
}

.account-card .wizard-fields {
  margin: 0;
}

.account-card .wizard-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.nav-mobile-panel .btn,
.nav-mobile-panel form {
  width: 100%;
}

.nav-mobile-panel form .btn {
  justify-content: center;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(139, 163, 141, 0.2), transparent 40%),
    linear-gradient(180deg, var(--cream) 0%, #f3efe7 100%);
}

.hero--compact {
  padding-bottom: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
}

.hero-accent {
  color: var(--sage-dark);
}

.lede,
.section-intro {
  color: var(--muted);
  font-size: 1.12rem;
}

.lede {
  max-width: 48ch;
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 8px;
}

.carousel {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  max-width: 100%;
  margin-inline: auto;
  margin-top: 28px;
  padding: 0 0 16px;
}

.carousel::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: calc(100% - 12px);
  background: var(--navy);
  border-radius: 28px;
  z-index: -1;
  box-shadow: 0 28px 55px rgba(18, 42, 56, 0.22);
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 28px;
  width: 100%;
  min-width: 0;
}

.carousel-track {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: stretch;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.featured-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 540px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(18, 42, 56, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.featured-card__body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: calc(540px - 210px);
}

.featured-card__bio {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  flex: 0 0 auto;
  max-height: calc(1.45em * 3);
}

.featured-card__cta {
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  text-align: center;
}

.featured-card__photo {
  height: 210px;
  flex-shrink: 0;
  background:
    linear-gradient(160deg, rgba(139, 163, 141, 0.28), transparent 55%),
    linear-gradient(200deg, #e4ebe4, #c9d4cb);
  overflow: hidden;
  position: relative;
}

.featured-card__photo:not(.has-photo) {
  display: grid;
  place-items: center;
}

.featured-card__photo.has-photo {
  /* Avoid sage flash/strip if the image layer doesn't cover subpixels. */
  background: #1b3a4b;
}

.featured-card__photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.featured-card__photo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  margin: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(18, 42, 56, 0.12);
}

.featured-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
}

.featured-card__top {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 3.35rem;
  flex-shrink: 0;
}

.featured-card__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--navy);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.featured-card__status {
  margin: 4px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-card__status--verified { color: var(--navy); }
.featured-card__status--training { color: var(--sage-dark); }
.featured-card__status--therapy { color: var(--plum); }

.featured-card__chips {
  display: block;
  margin: 14px 0 0;
  min-height: 2rem;
  max-height: 2.15rem;
  overflow: hidden;
  flex-shrink: 0;
  mask-image: linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent);
}

.featured-card__chips-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.featured-card__chips-set {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 8px;
}

.featured-card__chips span {
  flex: 0 0 auto;
  max-width: none;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}

.featured-card__chips.is-marquee .featured-card__chips-track {
  animation: featured-chips-marquee linear infinite;
}

.featured-card__chips.is-marquee:hover .featured-card__chips-track,
.featured-card__chips.is-marquee:focus-within .featured-card__chips-track {
  animation-play-state: paused;
}

@keyframes featured-chips-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .featured-card__chips {
    mask-image: none;
  }

  .featured-card__chips.is-marquee .featured-card__chips-track {
    animation: none;
  }

  .featured-card__chips.is-marquee {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .featured-card__chips.is-marquee::-webkit-scrollbar {
    display: none;
  }
}

.featured-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
  min-height: 1.3em;
  flex-shrink: 0;
}

.featured-card__meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}

.carousel-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.carousel-btn--prev::before {
  transform: translateX(1px) rotate(135deg);
}

.carousel-btn--next::before {
  transform: translateX(-1px) rotate(-45deg);
}

.carousel-btn:hover {
  background: var(--navy-deep);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(27, 58, 75, 0.25);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--navy);
  transform: scale(1.15);
}

@media (min-width: 960px) {
  .hero {
    padding: 56px 0 72px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    min-height: 540px;
  }

  .hero-showcase {
    min-height: 540px;
    justify-content: flex-end;
    padding-right: 0;
  }

  .carousel {
    width: 340px;
    padding: 0 16px 16px 0;
  }

  .carousel::before {
    top: 16px;
    left: 16px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
  }
}

.section {
  padding: 72px 0;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

/* Seek */
.seek {
  background: var(--paper);
}

.seek-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.seek-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  min-height: 180px;
}

.seek-card h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
  color: var(--navy);
}

.seek-card p {
  margin: 0;
  color: var(--muted);
}

.seek-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.seek-dot--navy { background: var(--navy); }
.seek-dot--sage { background: var(--sage); }
.seek-dot--plum { background: var(--plum); }
.seek-dot--sand { background: #c4b49a; }

@media (min-width: 800px) {
  .seek-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Preview */
.preview-layout {
  display: grid;
  gap: 40px;
}

.check-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.check-list--light li {
  color: #e8efe8;
}

.profile-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(27, 58, 75, 0.08);
}

.profile-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.profile-name {
  margin: 0;
  font-size: 1.25rem;
}

.profile-status,
.profile-meta,
.profile-bio {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sage-dark);
  border: 1px solid var(--sage);
  border-radius: 999px;
  padding: 4px 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.chips span {
  background: var(--cream);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
}

.profile-meta {
  display: flex;
  gap: 16px;
}

.boundaries {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.boundaries h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.boundaries ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .preview-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Match + trust */
.match {
  background: var(--navy);
  color: #f4f1ea;
}

.match h2,
.panel--navy h2 {
  color: #fff;
}

.match .section-intro {
  color: #c9d4cc;
}

.steps {
  padding-left: 20px;
  margin: 24px 0 28px;
}

.steps li {
  margin-bottom: 10px;
}

.trust-grid,
.knowledge-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.trust-grid h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.trust-grid p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 800px) {
  .trust-grid,
  .knowledge-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Split panels */
.split-grid {
  display: grid;
  gap: 18px;
}

.panel {
  background: var(--paper);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--line);
}

.panel--navy {
  background: var(--navy-deep);
  color: #e8efe8;
  border: 0;
}

.panel p {
  color: var(--muted);
}

.panel--navy p {
  color: #c9d4cc;
}

@media (min-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Knowledge */
.knowledge {
  background: var(--paper);
}

.knowledge-grid a {
  display: block;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--cream);
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--line);
}

/* Directory map (SEO catalog) */
.directory-map {
  min-width: min(640px, calc(100vw - 32px));
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(18, 42, 56, 0.12);
}

.directory-map__tabs {
  display: flex;
  gap: 4px;
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--line);
}

.directory-map__tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.directory-map__tab.is-current {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

a.directory-map__tab:hover {
  color: var(--navy);
}

.directory-map__panel {
  display: block;
  padding: 14px 16px 16px;
}

.directory-map__topics {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 0 8px;
  width: max-content;
}

.directory-map__col {
  min-width: max-content;
  padding: 0 8px;
}

.directory-map__col + .directory-map__col {
  border-left: 1px solid var(--line);
}

.directory-map__section {
  margin-bottom: 16px;
}

.directory-map__section h2 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  background: #e4eaee;
  margin: 0 0 8px;
  padding: 8px 14px;
}

.directory-map__topics ul {
  list-style: none;
  margin: 0;
  padding: 0 14px;
}

.directory-map__topics a,
.directory-map__section h2 {
  white-space: nowrap;
}

.directory-map__topics a,
.directory-map__all a {
  display: block;
  color: var(--navy);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.7;
}

.directory-map__topics a:hover,
.directory-map__all a:hover {
  text-decoration: underline;
}

.directory-map__all {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 8px 14px 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.directory-map__all a {
  font-weight: 600;
}

.nav-mobile-find .directory-map {
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.nav-mobile-find .directory-map__tabs {
  padding: 8px 0 0;
}

.nav-mobile-find .directory-map__panel {
  padding: 12px 0 0;
}

.nav-mobile-find .directory-map__topics {
  grid-template-columns: 1fr;
  width: auto;
}

.nav-mobile-find .directory-map__col {
  min-width: 0;
  padding: 0;
}

.nav-mobile-find .directory-map__col + .directory-map__col {
  border-left: 0;
}

.nav-mobile-find .directory-map__topics a,
.nav-mobile-find .directory-map__section h2 {
  white-space: normal;
}

.nav-mobile-find .directory-map__all {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.directory-page {
  padding: 48px 0 72px;
  background: linear-gradient(180deg, var(--cream), #f3efe7);
}

.directory-page__inner {
  max-width: 720px;
}

.directory-page__inner--wide {
  max-width: 860px;
}

.directory-page h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.directory-page__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.directory-page__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
}

.directory-page__card strong {
  font-size: 1.05rem;
}

.directory-page__card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.directory-page__empty,
.directory-page__back {
  margin-top: 24px;
}

.directory-page__back a {
  color: var(--navy);
}

.talk-board {
  padding: 48px 0 80px;
  background: linear-gradient(180deg, var(--cream), #f3efe7);
}

.talk-board__inner {
  max-width: 1120px;
}

.talk-board h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.talk-board__disclaimer {
  margin: 28px 0 0;
}

.talk-board__steps {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.talk-board__steps li + li {
  margin-top: 4px;
}

.talk-board__grid {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .talk-board__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .talk-board__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.talk-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18, 42, 56, 0.06);
}

.talk-card__photo {
  height: 168px;
  background:
    linear-gradient(160deg, rgba(139, 163, 141, 0.28), transparent 55%),
    linear-gradient(200deg, #e4ebe4, #c9d4cb);
  display: grid;
  place-items: center;
}

.talk-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.talk-card__photo span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.talk-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.talk-card__status {
  margin: 0;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.talk-card h2 {
  margin: 4px 0 0;
  font-size: 1.25rem;
}

.talk-card h2 a {
  text-decoration: none;
}

.talk-card__place,
.talk-card__bio,
.talk-card__meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.talk-card__bio {
  flex: 1;
}

.talk-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.talk-card__tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--navy);
  font-size: 0.78rem;
}

.talk-card__meta {
  font-weight: 600;
  color: var(--navy);
}

.talk-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.talk-card__actions .btn {
  flex: 1 1 auto;
}

.talk-board__empty {
  margin-top: 28px;
}


/* Footer */
.site-footer {
  background: #efe8dc;
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand p,
.site-footer a,
.footer-bottom p {
  color: var(--muted);
  text-decoration: none;
}

.site-footer h2 {
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  }
}

/* Registration wizard */
.wizard {
  padding: 40px 0 72px;
  background:
    radial-gradient(circle at 12% 0%, rgba(139, 163, 141, 0.18), transparent 40%),
    linear-gradient(180deg, var(--cream), #f3efe7);
  min-height: calc(100vh - 160px);
}

.wizard-shell {
  max-width: 820px;
}

.wizard-shell--narrow {
  max-width: 640px;
}

.wizard-shell--wide {
  max-width: 1180px;
}

.wizard-field--half {
  min-width: 0;
}

@media (min-width: 720px) {
  .builder-item__fields {
    grid-template-columns: 1fr 1fr;
  }

  .builder-item__fields .wizard-field:not(.wizard-field--half),
  .builder-item__fields .builder-check {
    grid-column: 1 / -1;
  }
}

.wizard--builder {
  padding-bottom: 96px;
}

.builder-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
}

.builder-chips__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.builder-chips ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.builder-chips li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}

.builder-layout {
  display: grid;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

@media (min-width: 1024px) {
  .builder-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }

  .builder-preview {
    position: sticky;
    top: 88px;
  }
}

.builder-module {
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 22px;
  background: var(--paper);
  border: 1.5px solid var(--line);
}

.builder-module__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.builder-module__head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.builder-module__head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.builder-switch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  cursor: pointer;
}

.builder-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.builder-switch__ui {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(27, 58, 75, 0.18);
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.15s ease;
}

.builder-switch__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(18, 42, 56, 0.2);
  transition: transform 0.15s ease;
}

.builder-switch.is-on .builder-switch__ui,
.builder-switch:has(input:checked) .builder-switch__ui {
  background: var(--sage-dark);
}

.builder-switch.is-on .builder-switch__ui::after,
.builder-switch:has(input:checked) .builder-switch__ui::after {
  transform: translateX(18px);
}

.builder-switch__copy {
  display: grid;
  gap: 4px;
}

.builder-switch__copy strong {
  color: var(--navy);
  font-size: 1rem;
}

.builder-switch__copy span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.builder-offer {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}

.builder-offer[hidden] {
  display: none !important;
}

.builder-offer__grid,
.pp-offer__grid {
  display: grid;
  gap: 12px;
}

.builder-offer__col,
.pp-offer__col {
  padding: 14px 16px;
  border-radius: 16px;
}

.builder-offer__col p,
.pp-offer__col p {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder-offer__col ul,
.pp-offer__col ul {
  margin: 0;
  padding-left: 1.1rem;
}

.builder-offer__col li + li,
.pp-offer__col li + li {
  margin-top: 6px;
}

.builder-offer__col--ok,
.pp-offer__col--ok {
  background: rgba(139, 163, 141, 0.16);
  color: var(--navy);
}

.builder-offer__col--no,
.pp-offer__col--no {
  background: rgba(107, 90, 110, 0.1);
  color: var(--navy);
}

.builder-offer__ack {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
}

@media (min-width: 720px) {
  .builder-offer__grid,
  .pp-offer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.builder-list {
  display: grid;
  gap: 12px;
}

.builder-item {
  padding: 16px;
  border-radius: 16px;
  background: rgba(247, 244, 238, 0.8);
  border: 1px solid var(--line);
}

.builder-item__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.builder-item__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.builder-item__remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #7a2e28;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.builder-item__fields {
  display: grid;
  gap: 14px;
}

.builder-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.builder-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px dashed rgba(27, 58, 75, 0.28);
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.builder-add:hover {
  border-color: var(--navy);
  background: rgba(27, 58, 75, 0.03);
}

.builder-preview__label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.builder-preview__frame {
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 8px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(27, 58, 75, 0.08), transparent 40%);
}

.builder-preview .pp {
  transform-origin: top center;
}

.pp-wrap {
  padding: 28px 0 80px;
  background:
    radial-gradient(circle at 88% 0%, rgba(139, 163, 141, 0.22), transparent 36%),
    linear-gradient(180deg, var(--cream), #f3efe7);
}

.pp-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.pp-toolbar p {
  margin: 0;
  color: var(--muted);
}

.pp-toolbar__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pp-toolbar__actions form {
  margin: 0;
}

.pp-toolbar__url {
  color: var(--navy);
  font-weight: 700;
  word-break: break-all;
}

.pp {
  container-type: inline-size;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 18px 50px rgba(18, 42, 56, 0.08);
}

.pp.is-hidden,
.pp-section.is-hidden,
.pp-ask.is-hidden,
.pp-hero__place.is-hidden,
.pp-hero__path.is-hidden,
.pp-tags.is-hidden,
.pp-bio.is-hidden,
.pp-social.is-hidden,
.pp-social li.is-hidden {
  display: none !important;
}

.pp-hero {
  display: grid;
  gap: 20px;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(247, 244, 238, 0.92);
  border: 1px solid var(--line);
}

.pp-hero__photo {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(27, 58, 75, 0.1);
  display: grid;
  place-items: center;
  color: var(--navy);
}

.pp--live .pp-hero__photo {
  width: min(100%, 168px);
}

@container (min-width: 640px) {
  .pp-hero {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 28px;
    padding: 20px;
    align-items: start;
  }

  .pp-hero__photo,
  .pp--live .pp-hero__photo {
    width: 100%;
  }
}

.pp-hero__photo.is-empty {
  background:
    linear-gradient(165deg, rgba(139, 163, 141, 0.28), transparent 58%),
    rgba(27, 58, 75, 0.08);
  color: var(--navy);
}

.pp-hero__placeholder {
  display: grid;
  place-items: center;
  font-size: clamp(2.8rem, 12cqw, 5.2rem);
  opacity: 0.72;
}

.pp-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-hero__copy {
  min-width: 0;
  padding-top: 4px;
}

.pp-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.pp-hero__path {
  margin: 8px 0 0;
  font-weight: 600;
  color: var(--sage-dark);
}

.pp-hero__place {
  margin: 6px 0 0;
  color: var(--muted);
}

.pp-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.pp-social__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
  font-size: 1.05rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pp-social__link:hover,
.pp-social__link:focus-visible {
  background: var(--sage-soft);
  border-color: var(--sage);
  color: var(--navy);
}

.pp-ask {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

.pp-ask__btn {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.pp-ask__meta {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.pp-ask__disclaimer {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4ead6;
  color: #5c4a28;
  font-size: 0.92rem;
  line-height: 1.5;
}

.pp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.pp-tags li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}

.pp-bio {
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 54ch;
}

.pp-section {
  padding-top: 28px;
}

.pp-section + .pp-section {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.pp-section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pp-section__head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.pp-section__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(139, 163, 141, 0.28);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pp-talk-count {
  margin: 0 0 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--sage-soft);
  color: var(--navy);
  font-weight: 600;
}

.pp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.pp-timeline__item {
  display: grid;
  gap: 6px;
  padding: 14px 0 14px 18px;
  border-left: 2px solid var(--sage);
  position: relative;
}

.pp-timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
}

@media (min-width: 640px) {
  .pp-timeline__item {
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: start;
  }
}

.pp-timeline__when {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.pp-timeline__body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}

.pp-timeline__place,
.pp-timeline__note {
  margin: 4px 0 0;
  color: var(--muted);
}

.pp-timeline__note {
  color: var(--ink);
}

.pp-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .pp-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.pp-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(247, 244, 238, 0.9);
  border: 1px solid var(--line);
}

.pp-card__meta {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.pp-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
}

.pp-card__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.pp-card--media {
  overflow: hidden;
}

.pp-card__thumb {
  display: block;
  width: calc(100% + 36px);
  margin: -16px -18px 14px;
  padding: 0;
  border: 0;
  background: #ece6db;
  cursor: pointer;
  height: 148px;
  overflow: hidden;
  position: relative;
}

.pp-card__thumb img,
.pp-card__thumb embed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.pp-card__thumb--pdf {
  background: #fff;
}

.pp-card__thumb--pdf embed {
  height: 220%;
  object-fit: unset;
  background: #fff;
}

.pp-card__sheet {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--navy);
  font-size: 2.4rem;
  background: linear-gradient(180deg, #fffdf9 0%, #f4eee4 100%);
}

.pp-card__thumb--word .pp-card__sheet {
  color: #2b579a;
}

.builder-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.builder-file__button {
  margin-top: 0;
}

body.is-doc-open {
  overflow: hidden;
}

.doc-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.doc-viewer[hidden] {
  display: none !important;
}

body.is-photo-crop-open {
  overflow: hidden;
}

.photo-crop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.photo-crop[hidden] {
  display: none !important;
}

.photo-crop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 42, 56, 0.55);
}

.photo-crop__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(18, 42, 56, 0.28);
}

.photo-crop__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px 0;
}

.photo-crop__eyebrow {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.photo-crop__head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.photo-crop__lede {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.photo-crop__close {
  border: 0;
  background: transparent;
  color: var(--navy);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
}

.photo-crop__close:hover {
  background: rgba(27, 58, 75, 0.08);
}

.photo-crop__stage {
  display: grid;
  place-items: center;
  padding: 22px;
  background: #1b3a4b;
  margin-top: 18px;
}

.photo-crop__frame {
  position: relative;
  width: min(320px, 72vw);
  aspect-ratio: 1;
  border-radius: 32px;
  overflow: hidden;
  background: #0f2430;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 0 0 3px rgba(247, 244, 238, 0.88);
}

.photo-crop__frame:active {
  cursor: grabbing;
}

.photo-crop__frame--circle {
  border-radius: 50%;
}

.photo-crop__frame--circle .photo-crop__grid {
  border-radius: 50%;
}

.photo-crop__frame--card {
  width: min(420px, 88vw);
  aspect-ratio: 322 / 210;
  border-radius: 28px 28px 16px 16px;
}

.photo-crop__frame img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
}

.photo-crop__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 33%, rgba(255, 255, 255, 0.28) 33%, rgba(255, 255, 255, 0.28) 34%, transparent 34%, transparent 66%, rgba(255, 255, 255, 0.28) 66%, rgba(255, 255, 255, 0.28) 67%, transparent 67%),
    linear-gradient(to bottom, transparent 33%, rgba(255, 255, 255, 0.28) 33%, rgba(255, 255, 255, 0.28) 34%, transparent 34%, transparent 66%, rgba(255, 255, 255, 0.28) 66%, rgba(255, 255, 255, 0.28) 67%, transparent 67%);
}

.photo-crop__tools {
  padding: 18px 22px 22px;
}

.photo-crop__zoom {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.photo-crop__zoom input {
  width: 100%;
  accent-color: var(--navy);
}

.photo-crop__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.doc-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 42, 56, 0.55);
}

.doc-viewer__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  height: min(86vh, 820px);
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(18, 42, 56, 0.28);
}

.doc-viewer__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.doc-viewer__kind {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.doc-viewer__head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.doc-viewer__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-viewer__body {
  min-height: 0;
  background: #f4f1ea;
}

.doc-viewer__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.doc-viewer__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1b1b1b;
  padding: 16px;
}

.doc-viewer__html,
.doc-viewer__fallback {
  height: 100%;
  overflow: auto;
  padding: 28px;
  margin: 0;
}

.doc-viewer__html {
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
}

.doc-viewer__fallback {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
}

.wizard-fields {
  display: grid;
  gap: 18px;
}

.wizard-fields__row {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .wizard-fields__row {
    grid-template-columns: 1fr 1fr;
  }
}

.wizard-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.wizard-field input,
.wizard-field textarea,
.wizard-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wizard-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.wizard-field select {
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231b3a4b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.wizard-field input:focus,
.wizard-field textarea:focus,
.wizard-field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 75, 0.12);
}

.wizard-field input.is-capitalize {
  text-transform: capitalize;
}

.wizard-select {
  position: relative;
}

.wizard-select.is-enhanced .wizard-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wizard-select__button {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wizard-select.is-enhanced .wizard-select__button {
  display: flex;
}

.wizard-select__button.is-empty {
  color: var(--muted);
}

.wizard-select__button i {
  font-size: 0.78rem;
  color: var(--navy);
  transition: transform 0.18s ease;
}

.wizard-select.is-open .wizard-select__button {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 75, 0.12);
}

.wizard-select.is-open .wizard-select__button i {
  transform: rotate(180deg);
}

.wizard-select__menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(18, 42, 56, 0.12);
  max-height: 280px;
  overflow: auto;
}

.wizard-select__menu [role="option"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--navy);
  cursor: pointer;
}

.wizard-select__menu [role="option"]:hover,
.wizard-select__menu [role="option"]:focus-visible {
  background: rgba(139, 163, 141, 0.18);
  outline: none;
}

.wizard-select__menu [role="option"].is-empty {
  color: var(--muted);
}

.wizard-select__menu [role="option"] i {
  opacity: 0;
  color: var(--sage-dark);
  font-size: 0.85rem;
}

.wizard-select__menu [role="option"].is-selected {
  background: rgba(27, 58, 75, 0.08);
  font-weight: 600;
}

.wizard-select__menu [role="option"].is-selected i {
  opacity: 1;
}

.wizard-field__hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.wizard-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.wizard-fieldset__legend {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
}

.wizard-fieldset__legend span {
  display: inline;
  margin-left: 4px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.wizard-checks {
  display: grid;
  gap: 10px;
}

.wizard-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wizard-check:hover {
  border-color: rgba(27, 58, 75, 0.35);
}

.wizard-check.is-selected {
  border-color: var(--navy);
  background: rgba(27, 58, 75, 0.04);
  box-shadow: 0 10px 24px rgba(18, 42, 56, 0.06);
}

.wizard-check__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-check__box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: transparent;
  font-size: 0.7rem;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wizard-check.is-selected .wizard-check__box {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.wizard-check__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.wizard-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
}

.wizard-callout__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.wizard-callout__body {
  min-width: 0;
}

.wizard-callout__body p,
.wizard-callout__body ul {
  margin: 0;
}

.wizard-callout__body ul {
  padding-left: 1.1rem;
  margin-top: 8px;
}

.wizard-callout__body li + li {
  margin-top: 6px;
}

.wizard-callout__heading {
  font-weight: 700;
}

.wizard-callout__spaced {
  margin-top: 10px !important;
}

.wizard-callout--info {
  background: rgba(139, 163, 141, 0.18);
  color: var(--navy);
}

.wizard-callout--info .wizard-callout__icon {
  background: rgba(27, 58, 75, 0.1);
  color: var(--navy);
}

.wizard-callout--warn {
  background: #f4ead6;
  color: #5c4a28;
}

.wizard-callout--warn .wizard-callout__icon {
  background: rgba(156, 120, 42, 0.16);
  color: #8a6820;
}

.wizard-docs {
  margin-top: 18px;
}

.wizard-docs__req {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(27, 58, 75, 0.06);
  color: var(--navy);
}

.wizard-docs__req-title {
  margin: 0 0 8px;
  font-weight: 700;
}

.wizard-docs__req ul {
  margin: 0;
  padding-left: 1.1rem;
}

.wizard-docs__req li + li {
  margin-top: 6px;
}

.wizard-docs__note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.wizard-upload {
  margin-top: 16px;
}

.wizard-upload__title {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}

.wizard-upload__title span,
.wizard-upload__hint {
  font-weight: 500;
  color: var(--muted);
}

.wizard-upload__hint {
  margin: 6px 0 14px;
  font-size: 0.88rem;
}

.wizard-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wizard-upload__thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(27, 58, 75, 0.08);
}

.wizard-upload__thumb--circle {
  border-radius: 50%;
}

.wizard-upload__thumb--card {
  width: 72px;
  height: 47px;
  border-radius: 12px 12px 8px 8px;
}

.wizard-upload__thumb[hidden] {
  display: none !important;
}

.wizard-upload__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wizard-upload__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border: 1.5px dashed rgba(27, 58, 75, 0.28);
  border-radius: 16px;
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wizard-upload__button:hover {
  border-color: var(--navy);
  background: rgba(27, 58, 75, 0.03);
}

.wizard-upload__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.wizard-upload__list:empty {
  display: none;
}

.wizard-upload__list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
}

.wizard-consents {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.wizard-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
}

.wizard-consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

.wizard-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wizard-legal {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.wizard-progress {
  margin-bottom: 28px;
}

.wizard-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(27, 58, 75, 0.12);
  overflow: hidden;
}

.wizard-progress__bar span {
  display: block;
  height: 100%;
  background: var(--navy);
  border-radius: inherit;
}

.wizard-progress__label {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.wizard-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.wizard-lede {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
}

.wizard-alert,
.wizard-notice {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.wizard-alert {
  background: #f8e8e6;
  color: #7a2e28;
}

.wizard-notice {
  background: var(--sage-soft);
  color: var(--navy);
}

.wizard-form {
  margin-top: 28px;
}

.wizard-options {
  display: grid;
  gap: 14px;
}

.wizard-options--compact .wizard-option__card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.wizard-option {
  cursor: pointer;
  display: block;
}

.wizard-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-option__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: 22px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wizard-option:hover .wizard-option__card {
  border-color: rgba(27, 58, 75, 0.35);
  transform: translateY(-1px);
}

.wizard-option.is-selected .wizard-option__card {
  border-color: var(--navy);
  box-shadow: 0 14px 34px rgba(18, 42, 56, 0.1);
}

.wizard-option__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sage-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.55rem;
  line-height: 1;
  --fa-primary-opacity: 1;
  --fa-secondary-opacity: 0.35;
}

.wizard-option__icon i {
  font-size: 1.55rem;
  line-height: 1;
}

.wizard-option__icon--specialist {
  background: rgba(27, 58, 75, 0.12);
  color: var(--navy);
  --fa-primary-color: var(--navy);
  --fa-secondary-color: var(--sage);
}

.wizard-option__icon--in_training {
  background: rgba(139, 163, 141, 0.28);
  color: var(--sage-dark);
  --fa-primary-color: var(--sage-dark);
  --fa-secondary-color: var(--navy);
}

.wizard-option__icon--clinic {
  background: rgba(107, 90, 110, 0.16);
  color: var(--plum);
  --fa-primary-color: var(--plum);
  --fa-secondary-color: var(--navy);
}

.wizard-option__icon--coach {
  background: rgba(27, 58, 75, 0.1);
  color: var(--navy);
  --fa-primary-color: var(--sage-dark);
  --fa-secondary-color: var(--navy);
}

.wizard-option__title {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
}

.wizard-option__subtitle {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sage-dark);
}

.wizard-option__description {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.wizard-option__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  margin-top: 4px;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0.7rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wizard-option.is-selected .wizard-option__check {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.wizard-actions .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (min-width: 720px) {
  .wizard-options {
    grid-template-columns: 1fr;
  }
}

[data-supportive-talk]:not(:has([data-supportive-talk-enabled]:checked)) [data-supportive-talk-details] {
  display: none;
}

.hours-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.hours-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
}

.hours-row__day {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.hours-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

.hours-row input[type="time"] {
  width: 7.6rem;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--navy);
}

.hours-row:not(:has(input[type="checkbox"]:checked)) input[type="time"] {
  opacity: 0.45;
  pointer-events: none;
}

.slot-calendar {
  display: grid;
  gap: 18px;
}

.slot-day h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--navy);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.slot-option {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.slot-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slot-option:has(input:checked),
.slot-option:has(input:focus-visible) {
  border-color: var(--navy);
  background: var(--sage-soft);
  box-shadow: 0 0 0 3px rgba(27, 58, 75, 0.12);
}

.request-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.request-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}

.request-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.request-card__who,
.request-card__when,
.request-card__meta,
.request-card__note {
  margin: 0;
}

.request-card__who {
  font-weight: 700;
  color: var(--navy);
}

.request-card__when {
  font-weight: 600;
  color: var(--sage-dark);
}

.request-card__meta,
.request-card__note {
  color: var(--muted);
  font-size: 0.92rem;
}

.request-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.request-status {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(27, 58, 75, 0.08);
  color: var(--navy);
}

.request-status--accepted {
  background: var(--sage-soft);
  color: var(--sage-dark);
}

.request-status--proposed {
  background: rgba(107, 90, 110, 0.12);
  color: var(--plum);
}

.request-status--declined,
.request-status--cancelled {
  background: rgba(122, 46, 40, 0.1);
  color: #7a2e28;
}

.account-card .request-card p {
  margin: 0;
}

.account-card .request-card__who {
  color: var(--navy);
}

.account-card .request-card__when {
  color: var(--sage-dark);
}

@media (max-width: 560px) {
  .hours-row {
    grid-template-columns: 1fr 1fr;
  }

  .hours-row__day {
    grid-column: 1 / -1;
  }
}

dialog.app-modal {
  width: min(28rem, calc(100% - 32px));
  margin: auto;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(18, 42, 56, 0.28);
}

dialog.app-modal::backdrop {
  background: rgba(18, 42, 56, 0.48);
}

dialog.app-modal h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

dialog.app-modal p {
  margin: 0 0 12px;
}

dialog.app-modal .app-modal__note {
  color: var(--muted);
  font-size: 0.92rem;
}

dialog.app-modal form {
  margin: 8px 0 0;
}

dialog.app-modal .btn {
  cursor: pointer;
}

dialog.app-modal--wide {
  width: min(40rem, calc(100% - 32px));
  max-height: 90vh;
  overflow: auto;
}

dialog.app-modal .slot-calendar {
  margin: 0 0 12px;
  max-height: 42vh;
  overflow: auto;
}

dialog.app-modal .slot-day h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.featured-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-body {
  background: var(--cream);
  min-height: 100vh;
}

.admin-bar {
  background: var(--navy-deep);
  color: #f4f7f5;
}

.admin-bar__inner {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 14px 0;
}

.admin-bar__brand {
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

.admin-bar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-bar__nav a,
.admin-bar__aside a,
.admin-bar__aside span {
  color: #c5d4c6;
  text-decoration: none;
  font-size: 0.92rem;
}

.admin-bar__nav a:hover,
.admin-bar__aside a:hover {
  color: #fff;
}

.admin-bar__aside {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-bar__logout {
  background: none;
  border: 0;
  color: #e8b4ae;
  cursor: pointer;
  font: inherit;
}

.admin-main {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.admin-page__head {
  margin-bottom: 22px;
}

.admin-page--narrow {
  max-width: 640px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-stats article {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.admin-stats strong {
  display: block;
  font-size: 1.6rem;
  color: var(--navy);
}

.admin-stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.admin-dl {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-dl li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.admin-dl strong {
  color: var(--navy);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-table a {
  color: var(--navy);
  font-weight: 600;
}

.admin-muted {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: end;
}

.admin-filter .wizard-field {
  margin: 0;
  min-width: 200px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-table__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #7a2e28;
  cursor: pointer;
  font: inherit;
}

.admin-qr {
  text-align: center;
}

.admin-qr__image {
  display: inline-block;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
}

.admin-qr__image svg {
  width: 180px;
  height: 180px;
}

.admin-qr__secret code {
  font-size: 0.95rem;
  word-break: break-all;
}

.knowledge-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 8px;
}

.knowledge-head p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.blog-index,
.blog-rail__track {
  display: grid;
  gap: 20px;
}

.blog-index {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .blog-index {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-rail__viewport {
  overflow: hidden;
}

.blog-rail__track {
  display: flex;
  transition: transform 0.35s ease;
}

.blog-rail .blog-card {
  flex: 0 0 100%;
}

@media (min-width: 900px) {
  .blog-rail .blog-card {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

.blog-rail.is-static .blog-rail__track {
  display: grid;
  grid-template-columns: 1fr;
  transform: none;
}

@media (min-width: 900px) {
  .blog-rail.is-static .blog-rail__track {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-rail__controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.blog-card__photo {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sage-soft);
  border: 1px solid var(--line);
}

.blog-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
}

.blog-card__excerpt {
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-article {
  padding: 40px 0 80px;
}

.blog-article__inner {
  max-width: 720px;
}

.blog-article__cover {
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 12px 0 28px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sage-soft);
  border: 1.5px solid var(--line);
}

.blog-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article__head h1 {
  margin: 0 0 8px;
}

.blog-article__meta {
  margin: 0 0 24px;
  color: var(--muted);
}

.blog-article__body {
  font-size: 1.05rem;
}

.blog-article__body h2,
.blog-article__body h3 {
  margin: 1.6em 0 0.5em;
}

.blog-article__body p,
.blog-article__body li {
  color: var(--ink);
}

.blog-article__body a {
  color: var(--navy);
  text-decoration: underline;
}

.md-editor {
  display: grid;
  gap: 8px;
}

.md-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.md-editor__toolbar button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
  color: var(--navy);
}

.md-editor textarea,
.md-editor__preview {
  min-height: 280px;
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--paper);
  font: inherit;
}

.md-editor__preview {
  overflow: auto;
}

.legal-doc {
  padding: 40px 0 80px;
}

.legal-doc__inner {
  max-width: 720px;
}

.legal-doc__head h1 {
  margin: 0 0 8px;
}

.legal-doc__meta {
  margin: 0 0 24px;
  color: var(--muted);
}

.legal-doc__operator {
  margin: 0 0 32px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--sage-soft);
  color: var(--navy);
}

.legal-doc__operator p {
  margin: 0;
}

.legal-doc__operator p + p {
  margin-top: 10px;
}

.legal-doc__body h2 {
  margin: 1.6em 0 0.5em;
  font-size: 1.25rem;
}

.legal-doc__body p,
.legal-doc__body li {
  color: var(--ink);
}

.legal-doc__body ul {
  padding-left: 1.2em;
}

.legal-doc__body a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc__body code {
  font-size: 0.9em;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.contact-page__channels {
  display: grid;
  gap: 16px;
  margin: 0 0 32px;
}

@media (min-width: 720px) {
  .contact-page__channels {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-page__card {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--sage-soft);
  color: var(--navy);
}

.contact-page__card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.contact-page__card p {
  margin: 0 0 16px;
  color: var(--ink);
}

.contact-page__value {
  display: inline-flex;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-page__noscript {
  margin: 0 0 24px;
  color: var(--muted);
}

.footer-bottom__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-bottom__legal a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

