/* ── Nav Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink, #1f2730);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible {
  background: rgba(45, 91, 87, 0.08);
  color: var(--accent-deep);
}

.nav-dropdown-trigger:hover .nav-icon,
.nav-dropdown-trigger:focus-visible .nav-icon {
  opacity: 0.85;
}

.nav-dropdown.is-open .nav-dropdown-trigger {
  background: rgba(45, 91, 87, 0.14);
  color: var(--accent-deep);
}

.nav-dropdown-trigger .nav-chevron {
  transition: transform 200ms ease;
}

.nav-dropdown.is-open .nav-dropdown-trigger .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  padding: 8px 0;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(20, 33, 58, 0.12);
  z-index: 30;
  flex-direction: column;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(64, 120, 116, 0.08);
  color: var(--accent-deep);
}

.nav-dropdown-menu a.is-current {
  color: var(--accent-deep);
  font-weight: 600;
}

/* ── Page Hero Banner (How It Works, Blog) ── */
.page-hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 44px;
  margin-top: 8px;
}

.page-hero-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-banner-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-hero-banner-content {
  position: relative;
  z-index: 1;
  color: #fff;
  width: 100%;
  text-align: center;
}

.page-hero-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin: 0 0 6px;
}

.page-hero-banner-content h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.15;
  color: #fff;
  max-width: none;
}

.page-hero-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.85;
  margin: 0;
}

/* ── How It Works Page ── */
.hiw-page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.hiw-intro {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: center;
  margin: 0 0 48px;
  padding: 32px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.hiw-intro-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hiw-intro-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hiw-intro-text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0 0 16px;
}

.hiw-intro-text p {
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 12px;
  font-size: 0.93rem;
}

/* Steps - horizontal on desktop, stack on mobile */
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.hiw-step {
  text-align: center;
  padding: 32px 24px 28px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  position: relative;
}

.hiw-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.hiw-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0 0 8px;
}

.hiw-step p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Connector arrows between steps (desktop only) */
.hiw-step-connector {
  display: none;
}

/* Expect section - two column */
.hiw-expect {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.hiw-expect-sidebar h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0 0 12px;
  position: sticky;
  top: 100px;
}

.hiw-expect-sidebar p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  position: sticky;
  top: 140px;
}

.hiw-expect-body p {
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 16px;
  font-size: 0.93rem;
}

.hiw-expect-body p:last-child {
  margin-bottom: 0;
}

/* CTA section */
.hiw-cta {
  text-align: center;
  padding: 44px 32px;
  background: var(--accent-deep);
  border-radius: var(--radius-xl);
  color: #fff;
}

.hiw-cta h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
}

.hiw-cta > p {
  opacity: 0.85;
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.hiw-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hiw-cta-buttons .button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 150ms ease;
}

.hiw-cta-buttons .button-light:hover {
  transform: translateY(-1px);
}

.hiw-cta-buttons .button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 150ms ease, border-color 150ms ease;
}

.hiw-cta-buttons .button-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.7);
}

/* ── Blog Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 0 16px 40px;
  margin-top: 36px;
}

.blog-card {
  position: relative;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(20, 33, 58, 0.1);
}

.blog-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 14px;
}

.blog-card-date {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
}

.blog-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Card hero fallback when a post has no image yet (P7-PHOTOS fills these later). */
.blog-card-image-placeholder {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

/* Empty state when a region's blog has no published posts. */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  padding: 48px 16px;
}

/* ── Blog post (article) page ── */
.blog-post {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 0 16px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.blog-post-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
}

.blog-post-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-post-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 24px;
  /* Override the global hero `h1 { max-width: 11ch }` (pages.css) so the
     article title fills the column instead of stacking a couple words per line. */
  max-width: none;
  text-wrap: balance;
}

/* Hero banner header — the post photo as a wide, short letterbox with the
   title overlaid, so it reads as the page header rather than a body image.
   (Built by ssr.js generateBlogPost when the post has a hero image; posts with
   no hero fall back to the plain stacked .blog-post-header.) */
.blog-post-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 240px;
  margin: 0 0 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.blog-post-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.blog-post-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.42) 38%,
    rgba(0, 0, 0, 0.12) 70%,
    rgba(0, 0, 0, 0.02) 100%
  );
}
.blog-post-banner-text {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px 28px;
}
.blog-post-banner-text .blog-post-meta {
  margin-bottom: 8px;
}
.blog-post-banner-text .blog-post-category {
  color: #fff;
  opacity: 0.95;
}
.blog-post-banner-text .blog-post-date {
  color: rgba(255, 255, 255, 0.85);
}
.blog-post-banner-text .blog-post-title {
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.blog-post-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink);
}

.blog-post-body p {
  margin: 0 0 18px;
}

.blog-post-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 32px 0 12px;
  color: var(--ink);
}

.blog-post-body h3 {
  font-size: 1.2rem;
  margin: 26px 0 10px;
  color: var(--ink);
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.blog-post-body li {
  margin-bottom: 8px;
}

.blog-post-body a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: underline;
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 8px 0 20px;
  display: block;
}

.blog-post-body blockquote {
  margin: 0 0 20px;
  padding: 12px 20px;
  border-left: 4px solid var(--accent);
  background: var(--surface-strong);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--muted);
  font-style: italic;
}

.blog-post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface-strong);
  padding: 2px 6px;
  border-radius: 6px;
}

.blog-post-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.section-actions {
  margin-top: 20px;
}

.section-actions .button {
  min-width: 220px;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}

.header-cta {
  padding: 14px 18px;
  background: var(--accent-deep);
  color: #fff8ef;
  font-weight: 700;
}

/* Home page hero already has a primary "Schedule a Consultation" CTA in the
   hero card — the nav button on top would be redundant. Suppress it there. */
body[data-page="home"] .header-cta {
  display: none;
}

.header-cta:hover,
.button:hover,
.slot-button:hover,
.meeting-button:hover,
.nav-toggle:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
  gap: 56px;
  align-items: start;
  padding: 24px 0 24px;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.hero-copy {
  padding: 28px 12px 28px 4px;
}

.consultation-hero {
  grid-template-areas:
    "copy  copy"
    "photo panel";
  grid-template-rows: auto 1fr;
  align-items: stretch;
}
.consultation-hero > .hero-copy {
  grid-area: copy;
}
.consultation-hero > .hero-photo {
  grid-area: photo;
  margin-top: 0;
  /* Fill the full height of row 2 so the media lines up flush with the CTA card
     on its right — the card sets the row height (prequal + consult buttons make
     it taller than the media's natural height), and stretching the media to match
     closes the gap that otherwise appeared above it. object-fit: cover (base
     .hero-photo) crops to fill, so no distortion. Mobile stacks + re-sizes the
     media below, so this doesn't bite there. */
  align-self: stretch;
}
.consultation-hero > .hero-panel {
  grid-area: panel;
  display: flex;
  flex-direction: column;
}
.consultation-hero .hero-cta-card {
  flex: 1;
}
/* Headline + lede span the full top row above the photo+card pairing. */
.consultation-hero > .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.consultation-hero > .hero-copy .eyebrow {
  margin: 0;
}
.consultation-hero > .hero-copy h1 {
  max-width: none;
  text-wrap: balance;
  margin: 0;
}
.consultation-hero > .hero-copy .hero-text {
  max-width: 64ch;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Consultation hero without the CTA panel (consultation booking off): the panel
   is hidden and the photo spans the full hero width, so there's no empty column.
   The `has-consult` class is added by the template only when consultationForm is
   on; without it, these overrides take effect. */
.consultation-hero:not(.has-consult) {
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "photo";
  /* Only two areas here (the CTA panel is hidden). Pin the track count to two
     so the stacked mobile layout — which otherwise inherits `auto auto auto` —
     doesn't reserve a phantom third row and leave a full row-gap (40px) of dead
     space under the photo. */
  grid-template-rows: auto auto;
}
.consultation-hero:not(.has-consult) > .hero-panel {
  display: none;
}
.consultation-hero:not(.has-consult) > .hero-photo {
  align-self: stretch;
  max-height: 460px;
}

.browse-hero {
  margin-bottom: 8px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--accent-deep);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.hero-text,
.section-heading p,
.feature-card p,
.blog-card p,
.perk-card p,
.team-card p,
.schedule-copy p,
.booking-summary p,
.pillars p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 56ch;
  margin: 20px 0 0;
  font-size: 1.05rem;
}

.hero-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  margin-top: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.button {
  padding: 15px 22px;
  font-weight: 700;
}

.button-primary {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 16px 36px rgba(45, 91, 87, 0.28);
}

.button-primary:hover {
  background: #1f4744;
}

.button-secondary {
  background: rgba(20, 33, 58, 0.08);
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 0;
}

.hero-stats div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.5);
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 2rem;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.panel-card,
.feature-card,
.showcase-card,
.blog-card,
.perk-card,
.team-card,
.schedule-card,
.pillars article,
.cta-section,
.neighborhood-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel-card {
  padding: 28px;
}

.search-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(255, 248, 238, 0.86)),
    radial-gradient(circle at top right, rgba(45, 91, 87, 0.22), transparent 38%);
}

.panel-label {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
}

select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.95);
  color: var(--ink);
}

.matching-summary,
.booking-summary {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15, 92, 77, 0.08);
  color: var(--forest);
}

.matching-summary strong,
.booking-summary strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.process-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.section {
  margin-top: 34px;
  padding: 34px 0 0;
}

.section-accent {
  margin-top: 44px;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: 24px;
}

.section-heading.compact {
  max-width: 620px;
}

.feature-grid,
.property-grid,
.blog-grid,
.perk-grid,
.team-grid,
.pillars,
.neighborhood-list,
#neighborhood-card-grid {
  display: grid;
  gap: 18px;
}

.feature-grid,
#neighborhood-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.neighborhood-card {
  padding: 24px;
}

.property-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-meta,
.team-meta,
.perk-meta,
.subpage-badges,
.neighborhood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.property-groups,
.booking-list,
.commute-ranking {
  display: grid;
  gap: 18px;
}

.property-group {
  display: grid;
  gap: 18px;
}

.property-group-heading {
  max-width: 760px;
}

.property-detail-section {
  display: grid;
  gap: 18px;
}

/* Gallery thumbnail wrappers */
.detail-thumb-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  padding: 2px;
  transition: border-color 0.2s;
}
.detail-thumb-wrap:hover {
  border-color: var(--accent, #8b7355);
}
.detail-thumb-wrap.is-active {
  border-color: var(--accent, #8b7355);
}
.detail-thumb-label {
  font-size: 0.7rem;
  text-transform: capitalize;
  color: var(--text-muted, #6b6255);
  margin-top: 2px;
  text-align: center;
}

.detail-switch-chip {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.92);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.detail-switch-chip.is-active,
.detail-switch-chip:hover {
  background: rgba(64, 120, 116, 0.12);
  border-color: rgba(64, 120, 116, 0.35);
}

.commute-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 20px;
}

.commute-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.schedule-form {
  display: grid;
  gap: 16px;
}

.wizard-progress,
.form-step-card {
  display: grid;
  gap: 16px;
}

.wizard-progress {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.wizard-progress-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(20, 33, 58, 0.08);
  background: rgba(255, 252, 246, 0.72);
  color: var(--muted);
}

.wizard-progress-item span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(20, 33, 58, 0.08);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.88rem;
}

.wizard-progress-item strong {
  color: inherit;
  font-size: 0.82rem;
}

.wizard-progress-item.is-active {
  border-color: rgba(45, 91, 87, 0.35);
  background: rgba(45, 91, 87, 0.12);
  color: var(--ink);
}

.wizard-progress-item.is-complete {
  border-color: rgba(15, 92, 77, 0.18);
  background: rgba(15, 92, 77, 0.08);
  color: var(--forest);
}

.wizard-stage {
  position: relative;
  overflow: hidden;
}

.wizard-step {
  transition: opacity 180ms ease, transform 180ms ease;
}

.wizard-step.is-hidden {
  display: none;
}

.wizard-step.is-active {
  animation: wizard-slide-in 220ms ease;
}

.form-step-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(20, 33, 58, 0.08);
  background: rgba(255, 252, 246, 0.82);
}

.form-step-header h3 {
  margin-bottom: 6px;
}

.form-step-header p:last-child {
  margin-bottom: 0;
}

.form-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.compact-submit-row {
  align-items: center;
}

.is-hidden {
  display: none;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compact-fields {
  gap: 12px;
}

.field-span-2 {
  grid-column: span 2;
}

.text-input,
.text-area {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.95);
  color: var(--ink);
}

.text-area {
  resize: vertical;
  min-height: 112px;
}

.helper-copy,
.selected-note,
.booking-item p {
  color: var(--muted);
  line-height: 1.6;
}

.success-note {
  border-color: rgba(15, 92, 77, 0.22);
  background: rgba(15, 92, 77, 0.08);
}

.consult-widget-form,
.consult-details-form {
  display: grid;
  gap: 16px;
}

.consult-widget-confirmation,
.consult-details-feedback {
  display: grid;
  gap: 12px;
}

.consultation-widget-card {
  display: grid;
  gap: 18px;
}

.consultation-widget-card h2 {
  max-width: 10ch;
}

.consult-details-panel {
  display: grid;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 33, 58, 0.08);
}

.hub-list,
.date-list,
.selected-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hub-button,
.date-button,
.selected-chip,
.inline-link {
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.92);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
  cursor: pointer;
}

.meeting-type-button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  white-space: normal;
  border-radius: 16px;
  padding: 14px 18px;
  flex: 1 1 0;
  min-width: 0;
}

.meeting-type-button strong {
  font-size: 0.95rem;
}

.meeting-type-button span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.meeting-type-button.is-active {
  background: rgba(64, 120, 116, 0.12);
  border-color: rgba(64, 120, 116, 0.35);
}

@media (hover: hover) {
  .meeting-type-button:hover:not(.is-active) {
    background: rgba(64, 120, 116, 0.06);
    border-color: rgba(64, 120, 116, 0.2);
  }
}

.meeting-type-button:active:not(.is-active) {
  background: rgba(64, 120, 116, 0.06);
  border-color: rgba(64, 120, 116, 0.2);
}

.date-button strong,
.rank-metrics strong {
  color: var(--ink);
}

.date-button.is-active,
.selected-chip {
  background: rgba(64, 120, 116, 0.12);
  border-color: rgba(64, 120, 116, 0.35);
}

@media (hover: hover) {
  .hub-button:hover,
  .date-button:hover {
    background: rgba(64, 120, 116, 0.12);
    border-color: rgba(64, 120, 116, 0.35);
  }
}

.selected-properties,
.specialist-request {
  padding: 16px 18px;
  border: 1px dashed rgba(20, 33, 58, 0.18);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.7);
}

.specialist-request {
  display: grid;
  gap: 12px;
}

.property-picker,
.property-picker-groups,
.property-picker-chips,
.communication-list,
.amenity-priority-picker {
  display: grid;
  gap: 12px;
}

.property-picker,
.amenity-priority-picker {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.72);
  border: 1px solid rgba(20, 33, 58, 0.08);
}

.property-picker-group {
  display: grid;
  gap: 10px;
}

.property-picker-chips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amenity-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenity-priority-picker .property-picker-header {
  gap: 6px;
}

.amenity-priority-picker .helper-copy {
  font-size: 0.92rem;
}

.amenity-priority-picker .property-chip {
  width: auto;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.amenity-picker-actions {
  display: flex;
  justify-content: flex-start;
}

.amenity-toggle {
  font-size: 0.92rem;
}

.neighborhood-link {
  width: fit-content;
  margin-top: 6px;
}

.commute-disclosure {
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.commute-disclosure summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

.commute-disclosure[open] summary {
  margin-bottom: 18px;
}

.consultation-cta-panel {
  display: grid;
  gap: 16px;
}

/* Contextual prequalification band — shown after the property grid for regions
   without a centralized leasing team (see index.html). Reuses the .panel-card
   surface/shadow; adds a two-column copy/action layout and a region-accent stripe
   so it reads as a CTA without a full color block. Stacks on narrow viewports. */
.prequal-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border-left: 4px solid var(--accent);
}
.prequal-band-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.prequal-band-copy .eyebrow {
  margin: 0;
}
.prequal-band-copy h2 {
  margin: 0;
}
.prequal-band-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}
.prequal-band-action {
  flex: none;
}
.prequal-band-action .button {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .prequal-band {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .prequal-band-action .button {
    width: 100%;
  }
  /* Tighten the space under the hero on phones. Desktop keeps its roomy rhythm,
     but stacked on a narrow screen the hero's bottom padding (24px) plus the
     first content section's top margin+padding (34+34) reads as a void under
     the photo. Trim both here; paired with the panel-row grid fix above (which
     removes a further ~40px on ND), this closes the gap from ~132px to ~30px. */
  .hero.consultation-hero {
    /* Double class so this wins over the .hero rule in the max-width:1120px
       block below (same specificity, later in the file would otherwise win). */
    padding-bottom: 8px;
  }
  .property-detail-section {
    margin-top: 10px;
    padding-top: 12px;
  }
}

@keyframes wizard-slide-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.property-chip {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.92);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
  cursor: pointer;
}

.property-chip.is-selected,
.property-chip:hover {
  background: rgba(64, 120, 116, 0.12);
  border-color: rgba(64, 120, 116, 0.35);
}

.commute-summary {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(73, 96, 80, 0.08);
  margin-bottom: 16px;
}

.rank-card,
.booking-item {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.88);
}

.rank-card {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.rank-metrics {
  text-align: right;
}

.rank-metrics span {
  display: block;
  color: var(--muted);
}

.showcase-card {
  overflow: hidden;
}

.showcase-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.showcase-image {
  aspect-ratio: 4 / 3;
}

.showcase-copy {
  padding: 20px 22px 22px;
}

.showcase-copy a {
  display: inline-flex;
  color: var(--accent-deep);
  font-weight: 800;
  margin-top: 14px;
}

.blog-meta span,
.team-meta span,
.perk-meta span,
.subpage-badges span,
.neighborhood-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 33, 58, 0.08);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.property-price {
  margin: 16px 0 8px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.property-price small {
  font-size: 0.95rem;
  color: var(--muted);
}

.property-address {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.property-match-group {
  background: rgba(15, 92, 77, 0.05);
  border-radius: 16px;
  padding: 12px 14px;
}

.team-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.team-card.is-selected {
  border-color: rgba(45, 91, 87, 0.42);
  box-shadow: 0 24px 48px rgba(20, 33, 58, 0.12), 0 0 0 1px rgba(45, 91, 87, 0.18);
}

.inline-link {
  font-weight: 800;
}

.inline-link:hover {
  background: rgba(64, 120, 116, 0.12);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
}

.pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillars article {
  padding: 24px;
}

.pillars span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(45, 91, 87, 0.12);
  color: var(--accent-deep);
  font-weight: 800;
  margin-bottom: 16px;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.benefit-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.schedule-card {
  padding: 24px;
}

.meeting-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.date-list,
.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-button,
.slot-button {
  flex: 0 0 auto;
}

.blog-grid,
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.perk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-card,
.team-card,
.perk-card {
  padding: 24px;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(15, 92, 77, 0.85), rgba(45, 91, 87, 0.85));
  color: #fff8ef;
  font-weight: 800;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  margin-bottom: 40px;
}

.local-panel h2 {
  margin-bottom: 14px;
}

.neighborhood-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.neighborhood-pill {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.92);
}

.neighborhood-pill strong {
  display: block;
  margin-bottom: 6px;
}

.subpage-badges {
  margin-top: 24px;
}

.is-hidden {
  display: none;
}

.crm-page {
  background:
    radial-gradient(circle at top left, rgba(31, 39, 48, 0.08), transparent 28%),
    linear-gradient(180deg, #ece7df 0%, #e8e1d7 42%, #f4efe8 100%);
}

.crm-shell {
  max-width: 1480px;
}

.crm-main,
.crm-layout,
.pipeline-grid,
.lead-list,
.detail-stack,
.note-list,
.metric-grid {
  display: grid;
  gap: 18px;
}

.crm-hero,
.crm-controls,
.detail-panel,
.lead-column,
.metric-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.crm-hero {
  padding: 24px;
}

.crm-hero-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.crm-hero-flex .section-heading {
  flex: 1 1 380px;
  min-width: 0;
}

.crm-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .crm-hero-flex {
    flex-direction: column;
    align-items: stretch;
  }
  .crm-hero-actions {
    justify-content: flex-end;
  }
}

/* Schedule hero — operational layout (title row + today's status strip) */

.crm-hero-schedule {
  position: relative;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.crm-hero-schedule::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg,
    rgba(64, 120, 116, 0) 0%,
    rgba(64, 120, 116, 0.55) 35%,
    rgba(64, 120, 116, 0.55) 65%,
    rgba(64, 120, 116, 0) 100%);
  pointer-events: none;
}

.crm-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.crm-hero-top .section-heading {
  flex: 1 1 380px;
  min-width: 0;
  margin-bottom: 0;
}

.crm-hero-top .section-heading h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  max-width: none;
}

.hero-helper {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: rgba(31, 39, 48, 0.7);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .crm-hero-top {
    flex-direction: column;
    align-items: stretch;
  }
  .crm-hero-top .crm-hero-actions {
    justify-content: flex-end;
  }
}

/* Today / off / next-7 chip row */

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.status-strip > .helper-copy {
  grid-column: 1 / -1;
  margin: 0;
}

.status-chip {
  background: #fffcf6;
  border: 1px solid rgba(31, 39, 48, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.status-chip-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(31, 39, 48, 0.55);
}

.status-chip-value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.status-chip-value-quiet {
  color: rgba(31, 39, 48, 0.6);
  font-weight: 600;
}

.status-chip-detail {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(31, 39, 48, 0.7);
  line-height: 1.45;
  word-break: break-word;
}

.status-chip-detail strong {
  font-weight: 600;
  color: var(--ink);
}

.status-chip-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-deep, #2f6b67);
  background: rgba(64, 120, 116, 0.12);
  border-radius: 999px;
  vertical-align: middle;
}

.status-chip-more {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(31, 39, 48, 0.55);
}

@media (max-width: 860px) {
  .status-strip {
    grid-template-columns: 1fr;
  }
}

/* Section headings between hero / advisor list / calendar overview */

.schedule-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-section-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px;
}

.schedule-section-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.schedule-section-sub {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(31, 39, 48, 0.62);
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.metric-card {
  padding: 20px;
}

.metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
}

.metric-card span {
  color: var(--muted);
}

.crm-controls {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  align-items: end;
}

.crm-export-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.button-small {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: 6px;
}

.crm-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.8fr);
  align-items: start;
}

.pipeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lead-column {
  padding: 18px;
}

.lead-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.lead-column-header h2 {
  font-size: 1.35rem;
}

.lead-column-header span,
.lead-stage-badge,
.lead-priority {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.lead-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.92);
  padding: 16px;
  cursor: pointer;
}

.lead-card.is-selected {
  border-color: rgba(64, 120, 116, 0.42);
  background: rgba(64, 120, 116, 0.08);
}

.lead-card-top,
.lead-card-meta,
.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lead-card p,
.detail-card p,
.note-item p {
  color: var(--muted);
  line-height: 1.6;
}

.lead-card-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.priority-low {
  background: rgba(73, 96, 80, 0.1);
  color: var(--forest);
}

.priority-medium {
  background: rgba(199, 161, 100, 0.18);
  color: #8d6120;
}

.priority-high {
  background: rgba(64, 120, 116, 0.14);
  color: var(--accent-deep);
}

.detail-panel {
  position: sticky;
  top: 110px;
  padding: 22px;
}

.detail-empty {
  color: var(--muted);
}

.detail-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.88);
}

.detail-card h3 {
  margin-bottom: 10px;
}

.lead-stage-badge.stage-new {
  background: rgba(20, 33, 58, 0.08);
  color: var(--ink);
}

.lead-stage-badge.stage-contacted {
  background: rgba(73, 96, 80, 0.12);
  color: var(--forest);
}

.lead-stage-badge.stage-touring {
  background: rgba(64, 120, 116, 0.12);
  color: var(--accent-deep);
}

.lead-stage-badge.stage-application {
  background: rgba(199, 161, 100, 0.18);
  color: #8d6120;
}

.lead-stage-badge.stage-won {
  background: rgba(53, 119, 68, 0.14);
  color: #2f7a43;
}

.lead-stage-badge.stage-lost {
  background: rgba(117, 85, 72, 0.14);
  color: #7b5240;
}

.note-item {
  padding: 14px 0;
  border-top: 1px solid rgba(20, 33, 58, 0.08);
}

.communication-item {
  padding: 14px 0;
  border-top: 1px solid rgba(20, 33, 58, 0.08);
}

.communication-item:first-child {
  border-top: none;
  padding-top: 0;
}

.communication-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.communication-meta span {
  color: var(--muted);
  font-size: 0.86rem;
}

.note-item:first-child {
  border-top: none;
  padding-top: 0;
}

.note-item span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin: 4px 0 8px;
}

@media (max-width: 1120px) {
  .property-grid,
  .blog-grid,
  .team-grid,
  .feature-grid,
  .showcase-grid,
  #neighborhood-card-grid,
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .schedule-layout,
  .commute-layout,
  .crm-layout,
  .hero {
    grid-template-columns: 1fr;
  }

  /* When hero stacks, add visual separation between copy and consultation */
  .hero {
    gap: 40px;
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .consultation-hero {
    grid-template-areas:
      "copy"
      "photo"
      "panel";
    grid-template-rows: auto auto auto;
  }
  .consultation-hero > .hero-photo {
    align-self: stretch;
  }
  .consultation-hero > .hero-copy .hero-text {
    font-size: 1rem;
  }

  .hero-panel {
    max-width: 560px;
    width: 100%;
    justify-self: center;
  }

  .consultation-widget-card h2 {
    max-width: none;
    text-align: center;
  }

  .consultation-widget-card {
    text-align: center;
  }

  .consultation-widget-card .hub-list,
  .consultation-widget-card .date-list {
    justify-content: center;
  }

  .consultation-widget-card .consult-widget-form {
    text-align: left;
  }

  .hero-copy {
    text-align: center;
    padding: 28px 6px 8px;
  }

  .hero-copy h1 {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .pipeline-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-shell {
    padding: 0 16px 16px;
  }

  .site-header {
    grid-template-columns: auto auto;
    border-radius: 0 0 20px 20px;
    padding: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: start;
    gap: 14px;
    padding-top: 8px;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
    min-width: auto;
  }

  .nav-dropdown-menu a {
    padding: 6px 0;
  }

  .nav-dropdown-menu a:hover {
    background: transparent;
  }

  .page-hero-banner {
    min-height: 240px;
  }

  .page-hero-banner-content {
    padding: 28px 24px 28px;
  }

  .page-hero-banner {
    padding: 28px 24px;
  }

  .page-hero-banner-content h1 {
    font-size: 1.4rem;
  }

  .page-hero-desc {
    font-size: 0.88rem;
  }

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

  .hiw-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .hiw-intro-image {
    max-height: 260px;
  }

  .hiw-steps {
    grid-template-columns: 1fr;
  }

  .hiw-expect {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .hiw-expect-sidebar h2,
  .hiw-expect-sidebar p {
    position: static;
  }

  .hiw-page-content {
    padding: 32px 16px 48px;
  }

  .brand-logo-link {
    width: 72px;
    min-width: 72px;
    min-height: 56px;
  }

  .brand-logo {
    width: 72px;
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(2.8rem, 12vw, 4.4rem);
  }

  .hero-stats,
  .property-grid,
  .blog-grid,
  .team-grid,
  .feature-grid,
  .showcase-grid,
  #neighborhood-card-grid,
  .pillars,
  .perk-grid,
  .neighborhood-list,
  .pipeline-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .rank-card,
  .crm-controls {
    grid-template-columns: 1fr;
  }

  .team-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .property-picker-chips {
    grid-template-columns: 1fr;
  }

  .wizard-progress {
    grid-template-columns: 1fr;
  }

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Property logo overlays */
.showcase-image-wrap {
  position: relative;
  overflow: hidden;
}

.showcase-image-wrap {
  border-radius: inherit;
}

.showcase-image-wrap .showcase-image {
  display: block;
  width: 100%;
}

/* ── Schedule tool (CRM) ──────────────────────────────────────── */

.crm-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.crm-view[hidden] {
  display: none;
}

/* Belt-and-suspenders: many class selectors here set display:flex/inline-flex
 * (e.g. .button, .modal-form), which beat the UA default [hidden] {display:none}
 * on specificity. This makes the HTML hidden attribute reliably hide. */
[hidden] {
  display: none !important;
}

.crm-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.crm-nav a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.crm-nav a:hover {
  color: var(--accent-deep, #2f6b67);
}

.crm-nav .button-small {
  margin-left: 8px;
}

@media (max-width: 720px) {
  .crm-nav {
    gap: 12px;
    flex-wrap: wrap;
  }
  .crm-nav a {
    font-size: 0.82rem;
  }
}

.advisor-table-wrap {
  background: #fffcf6;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
  overflow-x: auto;
}

.advisor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.advisor-table thead th {
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(31, 39, 48, 0.6);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(31, 39, 48, 0.08);
  white-space: nowrap;
}

.advisor-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(31, 39, 48, 0.06);
  vertical-align: middle;
}

.advisor-table tbody tr:last-child td {
  border-bottom: none;
}

.advisor-row.is-inactive {
  opacity: 0.55;
}

.advisor-email {
  color: rgba(31, 39, 48, 0.66);
  font-size: 0.86rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
}

.back-link {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.schedule-debug {
  background: rgba(31, 39, 48, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  overflow-x: auto;
}

/* iOS-style toggle switch */

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  cursor: pointer;
  vertical-align: middle;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(31, 39, 48, 0.22);
  border-radius: 999px;
  transition: background 0.18s;
}

.toggle-track::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s;
}

.toggle-switch input:checked + .toggle-track {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-track::before {
  transform: translateX(16px);
}

.toggle-switch input:focus-visible + .toggle-track {
  box-shadow: 0 0 0 3px rgba(64, 120, 116, 0.3);
}

/* Add-advisor modal form */

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 28px 28px;
}

.modal-form > label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.inline-toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(64, 120, 116, 0.05);
  border: 1px solid rgba(64, 120, 116, 0.18);
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
}

.inline-toggle input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.inline-toggle-text {
  display: grid;
  gap: 4px;
}

.inline-toggle-text strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.inline-toggle-text > span:not(strong) {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(31, 39, 48, 0.66);
  line-height: 1.4;
}

.modal-feedback {
  color: #b03c30;
  font-size: 0.86rem;
  font-weight: 500;
  min-height: 0;
}

.modal-feedback:empty {
  display: none;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

/* Add-user modal — success state with one-time temp password reveal */

.modal-success {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.success-banner {
  background: rgba(64, 120, 116, 0.08);
  border: 1px solid rgba(64, 120, 116, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.success-banner strong {
  color: var(--accent-deep, #2f6b67);
  font-size: 0.95rem;
}

.success-banner p {
  margin: 6px 0 0;
}

.temp-password-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(31, 39, 48, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.temp-password {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  user-select: all;
  word-break: break-all;
}

/* "(you)" badge on advisor's own row */

.me-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-deep, #2f6b67);
  background: rgba(64, 120, 116, 0.12);
  border-radius: 999px;
  vertical-align: middle;
}

.advisor-row.is-me {
  background: rgba(64, 120, 116, 0.025);
}

/* Show inactive toggle */

.advisor-table-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(31, 39, 48, 0.06);
  font-size: 0.82rem;
}

.link-button {
  background: none;
  border: none;
  color: var(--accent-deep, #2f6b67);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(47, 107, 103, 0.3);
  text-underline-offset: 2px;
}

.link-button:hover {
  text-decoration-color: currentColor;
}

/* Weekly schedule editor */

.schedule-subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(31, 39, 48, 0.72);
  margin: 0 0 4px;
}

.schedule-subtitle-sep {
  color: rgba(31, 39, 48, 0.4);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(31, 39, 48, 0.08);
  color: rgba(31, 39, 48, 0.72);
}

.status-pill.is-active {
  background: rgba(64, 120, 116, 0.14);
  color: var(--accent-deep, #2f6b67);
}

.status-pill.is-inactive {
  background: rgba(176, 60, 48, 0.12);
  color: #b03c30;
}

.schedule-editor {
  background: #fffcf6;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.schedule-table thead th {
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(31, 39, 48, 0.6);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(31, 39, 48, 0.08);
  white-space: nowrap;
}

.schedule-table thead th.col-off,
.schedule-table tbody td.col-off {
  text-align: center;
  width: 64px;
}

.schedule-table tbody th {
  text-align: left;
  font-weight: 600;
  padding: 10px 12px;
  color: var(--ink);
  border-bottom: 1px solid rgba(31, 39, 48, 0.06);
  white-space: nowrap;
}

.schedule-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(31, 39, 48, 0.06);
  vertical-align: middle;
}

.schedule-table tbody tr:last-child th,
.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.time-picker {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.time-picker select {
  padding: 6px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.time-picker select[data-time-part="hour"],
.time-picker select[data-time-part="min"] {
  width: 56px;
}

.time-picker select[data-time-part="ampm"] {
  width: 64px;
}

.time-picker select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(64, 120, 116, 0.18);
}

.time-picker select:disabled {
  background: rgba(31, 39, 48, 0.04);
  color: rgba(31, 39, 48, 0.35);
  cursor: not-allowed;
}

.schedule-row.is-off th {
  color: rgba(31, 39, 48, 0.45);
}

.schedule-feedback {
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 0;
  padding: 0 4px;
}

.schedule-feedback:empty {
  display: none;
}

.schedule-feedback.is-success {
  color: var(--accent-deep, #2f6b67);
}

.schedule-feedback.is-error {
  color: #b03c30;
}

.schedule-feedback.is-info {
  color: rgba(31, 39, 48, 0.72);
}

.schedule-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.schedule-actions-right {
  display: flex;
  gap: 10px;
}

/* Schedule home — month-at-a-glance calendar overview */

.calendar-overview-wrap {
  margin-top: 8px;
  padding: 20px;
  background: #fffcf6;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.calendar-overview-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.calendar-overview-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overview-month-label {
  font-weight: 700;
  min-width: 140px;
  text-align: center;
}

.overview-nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}

.overview-nav-btn:hover {
  background: rgba(64, 120, 116, 0.08);
  border-color: rgba(64, 120, 116, 0.3);
}

.overview-empty {
  margin: 0;
  font-size: 0.85rem;
}

.calendar-overview-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(31, 39, 48, 0.55);
  text-align: center;
}

.calendar-overview-weekdays span {
  padding: 6px 0;
}

.calendar-overview-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.overview-cell {
  min-height: 92px;
  padding: 6px;
  border: 1px solid rgba(31, 39, 48, 0.08);
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
}

.overview-cell.is-pad {
  border: 1px dashed rgba(31, 39, 48, 0.05);
  background: transparent;
}

.overview-cell.is-weekend {
  background: rgba(31, 39, 48, 0.025);
}

.overview-cell.is-past {
  opacity: 0.55;
}

.overview-cell.is-today {
  border-color: var(--accent);
  background: rgba(64, 120, 116, 0.04);
  box-shadow: 0 0 0 1px var(--accent);
}

.overview-day-num {
  font-weight: 700;
  font-size: 0.78rem;
  color: rgba(31, 39, 48, 0.7);
  line-height: 1;
}

.overview-cell.is-today .overview-day-num {
  color: var(--accent-deep, #2f6b67);
}

.overview-exceptions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.overview-exception {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(31, 39, 48, 0.04);
  font-size: 0.7rem;
  line-height: 1.25;
  cursor: default;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-exception strong {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.7rem;
}

.overview-pill {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.overview-pill.is-off {
  background: rgba(176, 60, 48, 0.18);
  color: #b03c30;
}

.overview-pill.is-custom {
  background: rgba(64, 120, 116, 0.18);
  color: var(--accent-deep, #2f6b67);
}

@media (max-width: 720px) {
  .overview-cell {
    min-height: 60px;
    padding: 3px;
    gap: 2px;
  }
  .overview-day-num {
    font-size: 0.7rem;
  }
  .overview-exception {
    font-size: 0.6rem;
    padding: 1px 3px;
  }
  .overview-pill {
    font-size: 0.56rem;
  }
}

/* Exception manager (PTO / overrides) */

.exceptions-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 39, 48, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exceptions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.exceptions-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.exceptions-list {
  background: #fffcf6;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
}

.empty-exceptions {
  padding: 18px 16px;
  margin: 0;
}

.exception-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.exception-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(31, 39, 48, 0.06);
  flex-wrap: wrap;
}

.exception-row:last-child {
  border-bottom: none;
}

.exception-row.is-past {
  opacity: 0.6;
}

.exception-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.92rem;
}

.exception-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(31, 39, 48, 0.08);
  color: rgba(31, 39, 48, 0.72);
}

.exception-pill.is-off {
  background: rgba(176, 60, 48, 0.12);
  color: #b03c30;
}

.exception-pill.is-custom {
  background: rgba(64, 120, 116, 0.14);
  color: var(--accent-deep, #2f6b67);
}

.exception-reason {
  color: rgba(31, 39, 48, 0.66);
  font-size: 0.85rem;
}

.exception-actions {
  display: flex;
  gap: 6px;
}

/* Exception modal — type fieldset + custom-hours table */

.exception-type-fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.exception-type-fieldset legend {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(31, 39, 48, 0.6);
  padding: 0 6px;
}

.radio-option {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.exception-custom-hours {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(64, 120, 116, 0.04);
}

.schedule-table.single-row {
  margin: 0;
}

.schedule-table.single-row td {
  padding: 6px 6px;
}

@media (max-width: 640px) {
  .schedule-table {
    font-size: 0.85rem;
  }
  .time-picker {
    flex-wrap: wrap;
    gap: 3px;
  }
  .time-picker select {
    padding: 5px 4px;
    font-size: 0.82rem;
  }
  .time-picker select[data-time-part="hour"],
  .time-picker select[data-time-part="min"] {
    width: 48px;
  }
  .time-picker select[data-time-part="ampm"] {
    width: 56px;
  }
  .schedule-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .schedule-actions-right {
    justify-content: flex-end;
  }
  .exception-row {
    align-items: flex-start;
  }
  .exception-actions {
    margin-top: 4px;
  }
}

/* Legal pages (Privacy Policy, Terms, etc.) — comfortable reading layout */

.legal-page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "dlig" 0;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section:last-of-type {
  margin-bottom: 24px;
}

.legal-section h2 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(31, 39, 48, 0.1);
}

.legal-section h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 8px;
}

.legal-section p {
  margin: 0 0 14px;
  color: rgba(31, 39, 48, 0.85);
}

.legal-section ul {
  margin: 0 0 14px 0;
  padding-left: 22px;
  color: rgba(31, 39, 48, 0.85);
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section li::marker {
  color: rgba(31, 39, 48, 0.4);
}

.legal-section a {
  color: var(--accent-deep, #2f6b67);
  text-decoration: underline;
  text-decoration-color: rgba(47, 107, 103, 0.4);
  text-underline-offset: 2px;
}

.legal-section a:hover {
  text-decoration-color: var(--accent-deep, #2f6b67);
}

.legal-section code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 0.9em;
  background: rgba(31, 39, 48, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
}

.legal-contact-callout {
  margin-top: 8px;
  padding: 18px 22px;
  background: #fffcf6;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-contact-callout p {
  margin: 0 0 4px;
}

.legal-contact-callout p:last-child {
  margin-bottom: 0;
}

.legal-back {
  margin-top: 32px;
  text-align: center;
}

.legal-back a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.legal-back a:hover {
  text-decoration: underline;
}

/* Accessibility statement — language picker */

.lang-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 28px;
  padding: 16px 18px;
  background: #fffcf6;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 340px;
}

.lang-picker-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-picker-select {
  position: relative;
}

.lang-picker-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 10px 36px 10px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.lang-picker-select select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-picker-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.lang-disclaimer {
  margin: 22px 0 28px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

[dir="rtl"] .lang-picker-select select {
  padding: 10px 14px 10px 36px;
}

[dir="rtl"] .lang-picker-chevron {
  right: auto;
  left: 14px;
}

[dir="rtl"] .legal-page-content,
[dir="rtl"] .breadcrumb,
[dir="rtl"] .page-hero-banner-content {
  text-align: right;
}

[dir="rtl"] .legal-back {
  text-align: center;
}

/* Footer privacy link — sits inline with the copyright text */

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 39, 48, 0.25);
  transition: border-color 0.15s;
}

.site-footer a:hover {
  border-bottom-color: var(--ink);
}

/* Cookie consent banner (Approach A — notice + dismiss) */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 680px;
  margin: 0 auto;
  background: #1f2730;
  color: #f5efe7;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1000;
  font-size: 0.88rem;
  line-height: 1.5;
  transition: opacity 0.25s, transform 0.25s;
}

.cookie-banner-text {
  margin: 0;
  flex: 1 1 auto;
  color: rgba(245, 239, 231, 0.92);
}

.cookie-banner-text a {
  color: #f5efe7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: #fff;
}

.cookie-banner-btn {
  flex: 0 0 auto;
  background: var(--accent, #407874);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.cookie-banner-btn:hover {
  background: var(--accent-deep, #2f6b67);
}

.cookie-banner-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cookie-banner.is-dismissed {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
  }
  .cookie-banner-btn {
    align-self: flex-end;
  }
}
