/* ==========================================================================
   Chrysanthia Kong Manuel Immobilier — Site stylesheet
   --------------------------------------------------------------------------
   Structure
     1. Design tokens
     2. Reset & base elements
     3. Utilities (eyebrow, rule-title, buttons, container)
     4. Layout chrome (agency strip, header, nav, brand, lang switch)
     5. Hero
     6. Section primitives
     7. Proof band
     8. About (home page about block)
     9. Pathways
    10. Network card
    11. Reviews callout & Testimonials
    12. Listing break
    13. Contact
    14. Sticky contact bar
    15. Footer
    16. Home page (.home-main)
    17. About page (.about-main, story-*)
    18. Service pages (.service-main — buying / selling / etc.)
    19. Listings index page (.listings-main)
    20. Listings detail page (.listing-detail-main)
    21. Responsive — @media(max-width:1040px)
    22. Responsive — @media(max-width:920px)
    23. Responsive — @media(max-width:760px)
    24. Responsive — @media(max-width:450px)
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */
:root {
  /* Colour */
  --sage: #8faf9e;
  --sage-soft: #afc4b8;
  --sage-deep: #6f9080;
  --taupe: #d4c9bc;
  --taupe-soft: #e7e0d7;
  --clay: #c2a89a;
  --charcoal: #2a2d31;
  --off-white: #f5f3ef;
  --paper: #fcfcfb;
  --ink: #2a2d31;
  --muted: #686c70;
  --line: #d8cfc4;
  --line-soft: #ece5d8;

  /* Gradients */
  --grad-sage: linear-gradient(90deg, #8faf9e 0%, #afc4b8 100%);
  --grad-taupe: linear-gradient(180deg, #d4c9bc 0%, #e7e0d7 100%);
  --grad-paper: linear-gradient(180deg, #fcfcfb 0%, #f5f3ef 100%);

  /* Typography */
  --font-display: 'Tenor Sans', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 12px;
  --radius-sm: 7px;
  --about-section-gap: clamp(1.35rem, 2.4vw, 2rem);
}


/* 2. Reset & base elements
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: .01em;
}

p { margin: 0; }


/* 3. Utilities
   ========================================================================== */
.container {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.rule-title {
  display: inline-block;
  position: relative;
  padding-bottom: .65rem;
}
.rule-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 360px);
  height: 5px;
  background: var(--sage);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .9rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: .76rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  transition: .2s ease;
}
.btn span[aria-hidden="true"] {
  line-height: 1;
}
.btn .contact-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.24rem;
  height: 1.24rem;
  flex: 0 0 1.24rem;
  line-height: 1;
}
.btn .contact-chip__icon img {
  display: block;
  width: 1.24rem;
  height: 1.24rem;
  object-fit: contain;
}
.btn--primary .contact-chip__icon img,
.btn--soft .contact-chip__icon img {
  filter: brightness(0) invert(1);
}
.btn:focus-visible,
.sticky-contact__chip:focus-visible,
.sticky-contact__icon:focus-visible,
.contact-chip:focus-visible,
.section__link:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}
.btn--primary { background: var(--charcoal); color: var(--off-white); }
.btn--primary:hover { background: var(--sage-deep); }
.btn--soft { background: var(--sage); color: var(--paper); }
.btn--soft:hover { background: var(--sage-deep); }
.btn--ghost { border-color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--off-white); }
.cta-actions,
.hero__ctas,
.listing-note__actions,
.service-cta-band__actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}


/* 4. Layout chrome — agency strip, header, brand, nav, lang switch
   ========================================================================== */

/* Sutton agency bar */
.agency-strip { background: var(--charcoal); color: var(--off-white); }
.agency-strip__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: .8rem var(--gutter) .7rem;
}
.agency-strip__logo {
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--off-white);
}
.agency-strip__divider {
  width: 1px;
  height: 34px;
  background: rgba(245, 243, 239, .35);
}
.agency-strip__meta {
  font-size: .72rem;
  line-height: 1.25;
  color: rgba(245, 243, 239, .84);
}
.agency-strip__meta span { display: block; }
.agency-strip__address {
  font-size: .72rem;
  line-height: 1.35;
  color: rgba(245, 243, 239, .84);
  text-align: right;
}

/* Site header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 239, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 207, 196, .8);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: .8rem var(--gutter);
}

/* Brand block (decorated nameplate)
   container-type lets .brand__name scale to the box's actual width
   (via cqi units), not the viewport. */
.brand {
  position: relative;
  z-index: 1;
  color: var(--paper);
  border-radius: var(--radius-sm);
  padding: .82rem 1.1rem;
  width: fit-content;
  min-width: 320px;
  max-width: min(100%, 480px);
  overflow: visible;
  container-type: inline-size;
}
.brand::before {
  content: none;
}
.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-sage);
  border-radius: var(--radius-sm);
  z-index: 1;
  box-shadow: 0 8px 24px rgba(42, 45, 49, .08);
  pointer-events: none;
}
.brand__name {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  /* 3.1cqi = 3.1% of brand container width — scales to the box, not the page */
  font-size: clamp(.68rem, 3.1cqi, .98rem);
  line-height: 1.25;
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__suffix { display: inline; white-space: nowrap; }
.brand__role {
  position: relative;
  z-index: 2;
  font-size: .68rem;
  text-align: center;
  margin-top: .22rem;
  letter-spacing: .06em;
  color: rgba(252, 252, 251, .86);
}

/* Primary nav */
.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(.7rem, 2vw, 1.65rem);
}
.nav a {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding: .35rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: .22s ease;
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

/* Language switcher */
.lang-switch {
  display: flex;
  gap: .15rem;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}
.lang-btn {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  padding: .35rem .45rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.lang-btn.is-active { background: var(--sage); color: var(--paper); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--charcoal);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }


/* 5. Hero
   ========================================================================== */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--grad-paper);
  position: relative;
  overflow: hidden;
}
.home-main .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero-images/hero_home.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .12;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.home-main .hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero__content { display: flex; flex-direction: column; gap: 1.1rem; }
.home-main .hero__content {
  position: relative;
  isolation: isolate;
}
.home-main .hero__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: clamp(-2.5rem, -4vw, -1rem);
  right: clamp(4rem, 28vw, 18rem);
  top: 38%;
  bottom: clamp(-1.8rem, -3vw, -1rem);
  background:
    radial-gradient(circle at 28% 58%, rgba(245, 243, 239, .78), rgba(245, 243, 239, .42) 42%, rgba(245, 243, 239, 0) 72%);
  pointer-events: none;
}
.hero__eyebrow { display: flex; align-items: center; gap: .8rem; }
.hero__eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--sage);
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  letter-spacing: .006em;
}
.hero h1 span { display: block; color: var(--sage-deep); }
.hero__sub {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 58ch;
}
.home-main .hero__sub {
  color: var(--ink);
  font-size: clamp(1.08rem, 1vw + .86rem, 1.24rem);
  line-height: 1.65;
}
.hero__ctas {
  margin-top: .35rem;
}
.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 390px);
}
.hero__visual::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -22px;
  width: 62%;
  height: 38%;
  background: var(--taupe);
  border-radius: var(--radius-sm);
  z-index: 0;
  opacity: .8;
}
.hero__photo {
  position: relative;
  z-index: 1;
  border: 8px solid var(--sage);
  border-radius: 32px 32px 32px 6px;
  overflow: hidden;
  background: var(--taupe-soft);
  aspect-ratio: 4 / 5;
  box-shadow: 0 22px 45px rgba(42, 45, 49, .08);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}


/* 6. Section primitives
   ========================================================================== */
.section { padding: clamp(3rem, 6vw, 5.25rem) 0; }
.section--paper { background: var(--paper); }
.section--taupe { background: var(--taupe-soft); }
.section--about-home { padding-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section--pathways {
  background: var(--taupe-soft);
  border-top: 0;
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section__title { font-size: clamp(2rem, 4vw, 3.1rem); }
.section__intro {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.section__link {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--sage-deep);
  color: var(--sage-deep);
  padding-bottom: .35rem;
  white-space: nowrap;
}

/* Stacked section heads */
.section__head--stack { display: block; margin-bottom: 2rem; }
.section__head--stack .eyebrow { display: block; margin-bottom: .45rem; }
.section__head--stack .rule-title { display: block; width: max-content; max-width: 100%; }
.section__head--stack .section__intro {
  margin-top: 1.15rem;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.75;
}
.section__head--intro-below { display: block; }
.section__head--intro-below .eyebrow { display: block; margin-bottom: .45rem; }
.section__head--intro-below .rule-title { display: block; width: max-content; max-width: 100%; }
.section__head--intro-below .section__intro {
  margin-top: 1.35rem;
  max-width: 66ch;
  font-size: 1rem;
  line-height: 1.75;
}


/* 7. Proof band
   ========================================================================== */
.proof-band {
  background: var(--sage);
  padding: clamp(.95rem, 2vw, 1.35rem) 0;
  border-top: 1px solid rgba(42, 45, 49, .08);
  border-bottom: 1px solid rgba(42, 45, 49, .08);
}
.proof-band__inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "rating" "quotes" "link";
  justify-items: center;
  align-items: center;
  text-align: center;
  gap: .38rem;
  color: var(--paper);
  max-width: 900px;
  margin: 0 auto;
}
.proof-band__rating {
  grid-area: rating;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 0;
  text-align: center;
}
.proof-band__stars {
  display: block;
  width: clamp(120px, 15vw, 170px);
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
  margin: 0 auto;
}
.proof-band__rating strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--paper);
}
.proof-band__quotes {
  grid-area: quotes;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem .85rem;
  color: rgba(252, 252, 251, .88);
  font-size: .92rem;
  line-height: 1.3;
}
.proof-band__quotes span { position: relative; white-space: nowrap; }
.proof-band__quotes span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: .95rem;
  border-radius: 50%;
  background: rgba(252, 252, 251, .55);
  vertical-align: middle;
}
.proof-band__link {
  grid-area: link;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: .45rem;
  padding: .72rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(252, 252, 251, .95);
  color: var(--charcoal);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(42, 45, 49, .08);
  box-shadow: 0 8px 18px rgba(42, 45, 49, .1);
  transition: .2s ease;
}
.proof-band__link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}
.proof-band__link:hover {
  background: var(--charcoal);
  color: var(--paper);
  border-color: var(--charcoal);
}


/* 8. About (home page about block)
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 350px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__image {
  border: 7px solid var(--sage);
  border-radius: 34px 34px 6px 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--taupe-soft);
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 27%;
}
.about__portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 350px);
}
.about__portrait::before {
  content: "";
  position: absolute;
  left: -18px;
  top: -18px;
  width: 58%;
  height: 34%;
  background: var(--taupe);
  border-radius: var(--radius-sm);
  z-index: 0;
  opacity: .8;
}
.about__portrait .hero__photo {
  border-width: 7px;
  border-radius: 34px 34px 34px 6px;
}
.about__copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
  width: 100%;
}
.about__copy p {
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 100%;
}
.about__copy .muted { color: var(--muted); }
.about__copy .section__link {
  display: inline-block;
  width: auto;
  max-width: max-content;
  align-self: flex-start;
  margin-top: .25rem;
}


/* 9. Pathways
   ========================================================================== */
.pathways {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.path-card {
  background: rgba(252, 252, 251, .95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.path-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(42, 45, 49, .07);
}
.path-card--buyer { border-top: 8px solid var(--sage); }
.path-card--seller { border-top: 8px solid var(--charcoal); }
.path-card__top {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .15rem;
}
.icon-token,
.path-card__icon,
.principle-card__icon,
#contact .network-card--service .network-pill__icon,
.network-map__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.icon-token--soft,
.principle-card__icon,
#contact .network-card--service .network-pill__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  background: rgba(143, 175, 158, .16);
  border: 1px solid rgba(143, 175, 158, .28);
  color: var(--sage-deep);
  padding: 0;
}
.icon-token--soft img,
.principle-card__icon img,
#contact .network-card--service .network-pill__icon img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
  object-position: center;
}
.path-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  flex: 0 0 48px;
}
.path-card__icon img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.path-card--buyer .path-card__icon { background: var(--grad-sage); color: var(--off-white); }
.path-card--seller .path-card__icon { background: var(--charcoal); color: var(--sage-soft); }
.path-card__label {
  font-size: .86rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.path-card--buyer .path-card__label { color: var(--sage-deep); }
.path-card h3 { font-size: 1.85rem; }
.path-card p { color: var(--muted); line-height: 1.7; }
.path-card .section__link { margin-top: auto; align-self: flex-start; }


/* 10. Network card
   ========================================================================== */
.network-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 2.5rem;
  align-items: center;
  overflow: hidden;
}
.network-card__lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
}
.network-pill {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 1rem .95rem;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 1rem;
  align-items: center;
}
.network-pill__icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 68px;
  padding: 7px;
  overflow: hidden;
}
.network-pill__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.network-pill strong {
  display: block;
  font-size: .94rem;
  line-height: 1.25;
}
.network-pill span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-top: .25rem;
  line-height: 1.45;
}


/* 11. Reviews callout & Testimonials
   ========================================================================== */
.reviews-callout {
  margin: -.25rem 0 1.25rem;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.reviews-callout__main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.reviews-callout__stars {
  width: 138px;
  height: auto;
  flex: 0 0 auto;
}
.reviews-callout__copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--charcoal);
}
.reviews-callout__copy span {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.reviews-callout__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  white-space: nowrap;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  border-bottom: 1px solid var(--sage-deep);
  padding-bottom: .28rem;
}
.reviews-callout__link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.testimonial {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial__stars {
  letter-spacing: .12em;
  color: var(--sage-deep);
  font-size: 1.05rem;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--charcoal);
}
.testimonial__name {
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}


/* 12. Listing break
   --------------------------------------------------------------------------
   Default: taupe band (home page — wraps a dark inner card).
   On about/service pages, the band itself is the dark band (no inner card),
   so the default is overridden via parent-main scoping.
   ========================================================================== */
.section--listing-break {
  background: var(--taupe-soft);
  padding: clamp(1.15rem, 2.4vw, 1.75rem) 0;
  border: 0;
}
.about-main .section--listing-break,
.service-main .section--listing-break {
  background: var(--charcoal);
  padding: clamp(1.05rem, 2.3vw, 1.65rem) 0;
  border-top: 1px solid rgba(252, 252, 251, .08);
  border-bottom: 1px solid rgba(252, 252, 251, .08);
}

.listing-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .45rem;
  background: transparent;
  color: var(--paper);
  border: 0;
  border-radius: 0;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: none;
}
.listing-note .eyebrow { color: rgba(252, 252, 251, .72); }
.listing-note h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  color: var(--paper);
  line-height: 1.18;
}
.listing-note p {
  color: rgba(252, 252, 251, .82);
  line-height: 1.35;
  margin: 0;
  max-width: 58ch;
  font-size: .95rem;
}
.listing-note__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .3rem;
}
.listing-note .btn--ghost {
  border-color: rgba(252, 252, 251, .72);
  color: var(--paper);
}
.listing-note .btn--ghost:hover {
  background: var(--paper);
  color: var(--charcoal);
}


/* 13. Contact
   ========================================================================== */
.contact { background: var(--grad-taupe); text-align: center; }
.contact h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  max-width: 22ch;
  margin: 0 auto;
}
.contact p {
  color: var(--muted);
  max-width: 46ch;
  margin: 1rem auto 2rem;
}
.contact__links {
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.contact-actions {
  justify-content: flex-start;
  margin: .65rem 0 0;
  width: 100%;
  max-width: 560px;
}
.contact-actions--home {
  justify-content: center;
  margin: 1.5rem auto 0;
}
.contact-actions .btn {
  justify-content: flex-start;
  gap: .68rem;
  min-width: min(100%, 220px);
  padding-inline: 1.15rem;
  text-align: left;
}
.contact-actions .btn .contact-chip__icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-basis: 1.35rem;
}
.contact-actions .btn .contact-chip__icon img {
  width: 1.35rem;
  height: 1.35rem;
}
.contact-action--phone {
  min-width: min(100%, 220px);
}
.contact-action--phone .contact-chip__icon img {
  filter: brightness(0) invert(1);
}
.contact-action--message {
  width: auto;
  min-width: min(100%, 180px);
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(252, 252, 251, .7);
  border: 1px solid rgba(216, 207, 196, .9);
  border-radius: 999px;
  padding: .65rem 1rem;
  font-weight: 500;
}
.contact-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.contact-chip__icon img {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
}
.contact-chip__text {
  overflow-wrap: anywhere;
}
.contact-form-placeholder {
  scroll-margin-top: 8rem;
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  background: rgba(252, 252, 251, .72);
  border: 1px solid rgba(216, 207, 196, .58);
  border-radius: var(--radius-sm);
}
.contact-form-placeholder h3 {
  margin-top: .35rem;
  font-size: 1.18rem;
}
.contact-form-placeholder p {
  max-width: 58ch;
  margin: .35rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}


/* 14. Sticky contact bar (persistent)
   ========================================================================== */
.sticky-contact {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(42, 45, 49, .96);
  color: var(--paper);
  border-top: 1px solid rgba(252, 252, 251, .16);
  backdrop-filter: blur(12px);
  box-shadow: 0 -12px 28px rgba(42, 45, 49, .14);
}
.sticky-contact__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
}
.sticky-contact__social,
.sticky-contact__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.sticky-contact__separator {
  width: 1px;
  height: 34px;
  background: rgba(252, 252, 251, .34);
  flex: 0 0 1px;
  margin: 0 .35rem;
}
.sticky-contact__icon,
.sticky-contact__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(252, 252, 251, .18);
  background: rgba(252, 252, 251, .08);
  transition: .2s ease;
}
.sticky-contact__icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
}
.sticky-contact__icon img,
.sticky-contact__chip img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  flex: 0 0 auto;
}
.sticky-contact__chip img {
  filter: brightness(0) invert(1);
  transition: .2s ease;
}
.sticky-contact__chip {
  gap: .5rem;
  min-height: 38px;
  border-radius: 999px;
  padding: .45rem .85rem;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(252, 252, 251, .9);
  white-space: nowrap;
}
.sticky-contact__chip--message {
  background: rgba(143, 175, 158, .22);
  border-color: rgba(143, 175, 158, .44);
}
.sticky-contact__icon:hover,
.sticky-contact__chip:hover {
  background: var(--paper);
  color: var(--charcoal);
  border-color: var(--paper);
}
.sticky-contact__chip:hover img { filter: none; }


/* 15. Footer
   ========================================================================== */
.footer {
  background: var(--charcoal);
  color: var(--off-white);
  padding: 3rem 0 calc(1.5rem + 76px + env(safe-area-inset-bottom));
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
.footer__brand {
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer p,
.footer a {
  font-size: .86rem;
  color: rgba(245, 243, 239, .72);
}
.footer h4 {
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-soft);
  margin: .15rem 0 .7rem;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.footer__bottom {
  border-top: 1px solid rgba(245, 243, 239, .16);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(245, 243, 239, .5);
  font-size: .72rem;
}


/* 16. Home page (.home-main)
   ========================================================================== */
.home-main { background: var(--off-white); }

.home-panel {
  padding: clamp(1.15rem, 2.4vw, 1.75rem) 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--off-white) 100%);
}
.home-panel--warm { background: var(--taupe-soft); }
.home-panel--contact { background: var(--grad-taupe); }

.home-shell {
  position: relative;
  background: rgba(252, 252, 251, .94);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(42, 45, 49, .06);
  overflow: hidden;
}
.home-shell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: var(--grad-sage);
  opacity: .9;
  z-index: 1;
}
.home-shell__inner {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.home-shell--about-proof { background: transparent; }
.home-shell--about-proof::before { background: var(--grad-sage); }
.home-shell--about-proof .home-shell__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 350px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: linear-gradient(135deg, rgba(252, 252, 251, .98) 0%, rgba(231, 224, 215, .58) 100%);
}
.home-shell__proof {
  position: relative;
  z-index: 2;
  background: var(--sage);
  padding: clamp(1.15rem, 3vw, 2rem);
  border-top: 1px solid rgba(42, 45, 49, .08);
}

.home-shell--pathways .section__head {
  display: block;
  margin-bottom: 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.home-shell--pathways .section__intro {
  margin-top: 1.15rem;
  max-width: 66ch;
}

.home-shell--pathways-listings { background: transparent; }
.home-shell--pathways-listings .home-shell__inner { background: rgba(252, 252, 251, .94); }

.home-shell__listing {
  position: relative;
  z-index: 2;
  background: var(--charcoal);
  color: var(--paper);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 1px solid rgba(252, 252, 251, .12);
}
.home-shell__listing .listing-note { max-width: 900px; }

.home-shell--contact {
  text-align: center;
  background: rgba(252, 252, 251, .76);
}
.home-shell--contact .home-shell__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-shell--contact p {
  color: var(--muted);
  max-width: 46ch;
  margin: 1rem auto 2rem;
}

.home-shell--listing {
  background: var(--charcoal);
  border-color: rgba(252, 252, 251, .14);
  color: var(--paper);
  box-shadow: 0 18px 44px rgba(42, 45, 49, .16);
}
.home-shell--listing::before { background: var(--grad-sage); }
.home-shell--listing .home-shell__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

/* Hero stat strip (home only) */
.hero__stats {
  position: relative;
  z-index: 2;
  margin: -2rem auto 0;
  width: calc(100% - 2rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(42, 45, 49, .08);
  overflow: hidden;
}
.hero__stat {
  padding: 1rem .7rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.hero__stat:last-child { border-right: 0; }
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--sage-deep);
}
.hero__stat--langs strong {
  font-size: 1.02rem;
  letter-spacing: .05em;
  white-space: nowrap;
}
.hero__stat span {
  display: block;
  margin-top: .35rem;
  font-size: .68rem;
  line-height: 1.25;
  color: var(--muted);
}

/* About facts strip (home only) */
.about__facts {
  position: relative;
  z-index: 2;
  margin: -2rem auto 0;
  width: calc(100% - 2rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(42, 45, 49, .08);
  overflow: hidden;
}
.about__fact {
  padding: 1rem .7rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.about__fact:last-child { border-right: 0; }
.about__fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1;
  color: var(--sage-deep);
  font-weight: 400;
}
.about__fact--langs strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .38em;
  width: 100%;
  letter-spacing: .04em;
  white-space: nowrap;
}
.about__fact span {
  display: block;
  margin-top: .35rem;
  font-size: .68rem;
  line-height: 1.25;
  color: var(--muted);
}


/* 17. About page (.about-main, story-*)
   ========================================================================== */
.about-main {
  background: var(--off-white);
}

.story-section {
  padding: var(--about-section-gap) 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--off-white) 100%);
  position: relative;
  overflow: hidden;
}
.story-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: var(--grad-sage);
  opacity: .9;
}

.story-shell {
  position: relative;
  background: rgba(252, 252, 251, .94);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(42, 45, 49, .06);
  overflow: hidden;
}

.listings-shell,
.listing-detail-shell {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.story-header {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(1.6rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, .82fr) 1px minmax(0, 1.18fr);
  gap: clamp(1.5rem, 4vw, 3.75rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(252, 252, 251, .98) 0%, rgba(231, 224, 215, .58) 100%);
}
.story-header__rule {
  width: 1px;
  height: 100%;
  min-height: 150px;
  background: var(--line);
  position: relative;
}
.story-header__rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 70px;
  background: var(--sage);
  border-radius: 999px;
}
.story-title { display: flex; flex-direction: column; gap: .8rem; }
.story-title h1 {
  font-size: clamp(2.15rem, 4.7vw, 4.15rem);
  max-width: 12.5ch;
  line-height: 1.04;
}
.story-title h1 span { color: var(--sage-deep); }
.story-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 72ch;
}
.story-intro p {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.78;
  color: var(--ink);
}
.story-intro .muted { color: var(--muted); }

.story-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 21 / 7;
  min-height: 230px;
  max-height: 390px;
  overflow: hidden;
  background: var(--taupe-soft);
  border-bottom: 1px solid var(--line);
}
.story-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 45, 49, .34), rgba(42, 45, 49, 0) 52%);
  z-index: 1;
  pointer-events: none;
}
.story-photo::after {
  content: "";
  position: absolute;
  left: clamp(1.5rem, 5vw, 4rem);
  bottom: 0;
  width: clamp(110px, 18vw, 220px);
  height: 8px;
  background: var(--sage);
  z-index: 2;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 27%;
  filter: saturate(.96);
}
.story-photo__caption {
  position: absolute;
  left: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(1rem, 2.4vw, 1.8rem);
  z-index: 2;
  color: var(--paper);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(42, 45, 49, .28);
}

.story-body {
  padding: clamp(1.5rem, 5vw, 4rem);
  display: grid;
  gap: 0;
}
.story-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(.9rem, 2vw, 1.35rem);
  padding: clamp(1.7rem, 3.2vw, 2.65rem) 0;
  border-bottom: 1px solid var(--line);
}
.story-block:first-child { padding-top: 0; }
.story-block:last-child { border-bottom: 0; padding-bottom: 0; }

.story-label {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  position: relative;
}
.story-label h2 { font-size: clamp(1.45rem, 2.6vw, 2.2rem); }
.story-copy { display: grid; gap: 1rem; max-width: none; }
.story-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}
.story-copy p.lead { font-size: 1.08rem; color: var(--ink); }

/* Cardlet — small inline cards inside a story block (year markers, pull quotes) */
.path-cardlet {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-top: .2rem;
}
.path-cardlet__year {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--sage-deep);
}
.path-cardlet p {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink);
}
.path-cardlet--quote {
  grid-template-columns: 1fr;
  background: rgba(212, 201, 188, .34);
  padding: 1.1rem 1.25rem;
  margin-top: .35rem;
}
.path-cardlet--quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.55;
  color: var(--charcoal);
}
.path-cardlet--quote cite {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.story-quote-card {
  padding: clamp(1rem, 2.2vw, 1.35rem) clamp(1.5rem, 5vw, 4rem) 0;
}
.path-cardlet--seller-guidance {
  align-items: start;
  background: var(--off-white);
  margin: 0;
}
.path-cardlet__label {
  color: var(--sage-deep);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
}
.path-cardlet--seller-guidance p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-style: italic;
  line-height: 1.58;
  color: var(--charcoal);
}
.path-cardlet--seller-guidance cite {
  display: block;
  margin-top: .65rem;
  font-style: normal;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.section-jump {
  position: sticky;
  top: 4.65rem;
  z-index: 8;
  margin-top: clamp(1rem, 2.2vw, 1.35rem);
  padding: .5rem clamp(1.5rem, 5vw, 4rem);
  background: var(--charcoal);
  border-top: 1px solid rgba(252, 252, 251, .1);
  border-bottom: 1px solid rgba(252, 252, 251, .12);
  overflow: hidden;
}
.section-jump__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 1.75rem;
  min-width: 0;
  overflow: hidden;
}
.section-jump__label {
  color: rgba(252, 252, 251, .68);
  flex: 0 0 auto;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}
.section-jump__links {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 2vw, 1.35rem);
  min-width: 0;
  contain: paint;
  clip-path: inset(0);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.section-jump__links::-webkit-scrollbar {
  display: none;
}
.section-jump__link {
  position: relative;
  flex: 0 0 auto;
  color: var(--paper);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  padding: .18rem 0;
  text-transform: uppercase;
  transition: color .18s ease;
}
.section-jump__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.28rem;
  height: 1px;
  background: var(--sage-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.section-jump__link:hover,
.section-jump__link:focus-visible {
  color: var(--sage-soft);
}
.section-jump__link:hover::after,
.section-jump__link:focus-visible::after {
  transform: scaleX(1);
}
.section-jump__link:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

/* Work principles trio */
.work-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: .35rem;
  width: 100%;
}
.principle-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 170px;
  width: 100%;
}
.principle-card__head {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.principle-card__icon {
  border-radius: 15px;
}
.principle-card h3 { font-size: 1.25rem; }
.principle-card p {
  font-size: .92rem;
  line-height: 1.62;
  color: var(--muted);
}

/* About / Service CTA band (dark band that sits between sections) */
.about-cta-band {
  background: var(--off-white);
  padding: 0 0 var(--about-section-gap);
  border: 0;
}
.about-cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--charcoal);
  border: 1px solid rgba(252, 252, 251, .12);
  border-radius: 22px;
  padding: clamp(1.05rem, 2.4vw, 1.7rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 18px 44px rgba(42, 45, 49, .12);
  overflow: hidden;
}
.about-cta-band h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  color: var(--paper);
  line-height: 1.2;
}
.about-cta-band .btn--soft {
  background: var(--sage);
  color: var(--paper);
  flex: 0 0 auto;
  margin-top: .45rem;
}
.about-cta-band .btn--soft:hover {
  background: var(--sage-soft);
  color: var(--charcoal);
}

/* Testimonial shell (used inside about / service templates) */
.testimonial-section {
  padding: 0 0 clamp(2.5rem, 5vw, 4.75rem);
  background: var(--taupe-soft);
}
.testimonial-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 18px 44px rgba(42, 45, 49, .06);
}
.testimonial-shell__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.testimonial-shell__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.testimonial-shell__head p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 48ch;
}

.carousel-placeholder {
  border: 1.5px dashed var(--sage-deep);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(245, 243, 239, .65), rgba(252, 252, 251, .92));
  padding: 1rem;
  position: relative;
}
.carousel-placeholder__label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .85rem;
  padding: .38rem .65rem;
  border-radius: 999px;
  background: rgba(143, 175, 158, .18);
  color: var(--sage-deep);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  min-height: 250px;
  box-shadow: 0 10px 24px rgba(42, 45, 49, .04);
}
.quote-card__stars {
  color: var(--sage-deep);
  letter-spacing: .14em;
  font-size: 1rem;
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--charcoal);
}
.quote-card cite {
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  font-style: normal;
  font-size: .75rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.testimonial-shell__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.testimonial-shell__cta p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 48ch;
}


/* 18. Service pages (.service-main — buying / selling / etc.)
   ========================================================================== */
.service-main {
  --service-section-gap: clamp(1.35rem, 2.4vw, 2rem);
  background: var(--off-white);
  overflow-x: clip;
}
.service-main .story-section {
  padding: var(--service-section-gap) 0;
}
.service-main .story-title h1 { max-width: 13.5ch; }
.service-main .story-intro { max-width: 76ch; }
.service-main .story-photo {
  aspect-ratio: 21 / 7;
  min-height: 230px;
}
.service-main .story-photo::before {
  background: linear-gradient(90deg, rgba(42, 45, 49, .38), rgba(42, 45, 49, 0) 55%);
}
#buying .story-shell {
  overflow: visible;
}
#selling .story-shell {
  overflow: visible;
}
#buying.story-section {
  overflow: visible;
}
#selling.story-section {
  overflow: visible;
}
#buying .story-header {
  border-radius: 22px 22px 0 0;
}
#selling .story-header {
  border-radius: 22px 22px 0 0;
}
.service-main #buying-approach,
.service-main #buyer-guide,
.service-main #search-strategy,
.service-main #buying-network,
.service-main #start-looking,
.service-main #selling-approach,
.service-main #marketing,
.service-main #selling-network,
.service-main #get-started {
  scroll-margin-top: 8.75rem;
}

/* Summary cards (4-up grid) */
.service-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: .35rem;
}
.summary-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 170px;
}
.summary-card__kicker {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.summary-card h3 { font-size: 1.22rem; }
.summary-card p {
  font-size: .92rem;
  line-height: 1.62;
  color: var(--muted);
}
/* Selling roadmap */
.selling-roadmap {
  display: grid;
  gap: .9rem;
  margin-top: .45rem;
}
.selling-roadmap__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
}
.selling-roadmap__step {
  position: relative;
  min-height: 118px;
  padding: 1rem 1rem 1rem 2.65rem;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.selling-roadmap__step::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.18rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sage);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px rgba(91, 124, 105, .28);
}
.selling-roadmap__step span {
  display: block;
  color: var(--sage-deep);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
}
.selling-roadmap__step strong {
  display: block;
  margin-top: .45rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 400;
  line-height: 1.22;
  color: var(--charcoal);
}
.selling-roadmap__step.is-active {
  background: rgba(143, 175, 158, .16);
  border-color: rgba(111, 144, 128, .42);
  box-shadow: inset 0 0 0 1px rgba(143, 175, 158, .22);
}
.selling-roadmap__step.is-active::before {
  background: var(--sage-deep);
}
.selling-roadmap__step:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}
.selling-roadmap__panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.6vw, 1.8rem);
}
.selling-roadmap__content {
  display: grid;
  gap: .9rem;
}
.selling-roadmap__content[hidden] {
  display: none;
}
.selling-roadmap__content h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.16;
}
.selling-roadmap__content > p {
  max-width: 72ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}
.selling-roadmap__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: .25rem;
}
.selling-roadmap__detail {
  border-top: 1px solid rgba(212, 201, 188, .72);
  padding-top: .85rem;
}
.selling-roadmap__detail h4 {
  color: var(--charcoal);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.selling-roadmap__detail p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.62;
  margin-top: .25rem;
}
.seller-presentation {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(1.1rem, 3vw, 1.65rem);
  align-items: center;
  min-width: 0;
  margin-top: .35rem;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.45rem);
}
.seller-presentation__preview {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  min-height: 210px;
  background: linear-gradient(135deg, rgba(212, 201, 188, .42), rgba(245, 243, 239, .92));
  border: 1px solid rgba(216, 207, 196, .8);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.seller-presentation__sheet {
  width: min(58%, 190px);
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 30px rgba(42, 45, 49, .08);
  padding: 1rem;
}
.seller-presentation__sheet::before {
  content: "";
  display: block;
  width: 44%;
  height: 4px;
  margin-bottom: 1rem;
  background: var(--sage);
}
.seller-presentation__sheet span {
  display: block;
  height: 7px;
  margin-top: .55rem;
  background: var(--line-soft);
}
.seller-presentation__sheet span:nth-child(3) { width: 72%; }
.seller-presentation__copy {
  display: grid;
  gap: .75rem;
  min-width: 0;
}
.seller-presentation__copy h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.16;
}
.seller-presentation__copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}
.seller-presentation__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .1rem;
}
.seller-presentation__pills span {
  background: rgba(143, 175, 158, .14);
  border: 1px solid rgba(143, 175, 158, .25);
  border-radius: 999px;
  color: var(--sage-deep);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  padding: .42rem .68rem;
  text-transform: uppercase;
}

/* Process steps (5-up numbered) */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .35rem;
  counter-reset: process;
}
.process-step {
  counter-increment: process;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-height: 210px;
  position: relative;
  overflow: hidden;
}
.process-step::before {
  content: counter(process, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  color: rgba(143, 175, 158, .35);
}
.process-step h3 { font-size: 1.15rem; }
.process-step p {
  font-size: .9rem;
  line-height: 1.62;
  color: var(--muted);
}

/* Marketing band — dark lead column + light feature list */
.marketing-band {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.35rem;
  align-items: stretch;
  margin-top: .35rem;
}
.marketing-band__lead {
  background: var(--charcoal);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .8rem;
}
.marketing-band__lead .eyebrow { color: rgba(252, 252, 251, .7); }
.marketing-band__lead h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  color: var(--paper);
}
.marketing-band__lead p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(252, 252, 251, .82);
}
.marketing-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
}
.marketing-item {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.marketing-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}
.marketing-item span {
  display: block;
  margin-top: .35rem;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--muted);
}
.marketing-visibility-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1rem 1.45rem;
  align-items: start;
  margin-top: .85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.05rem, 2.4vw, 1.4rem);
}
.marketing-visibility-panel__intro h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.48rem);
  line-height: 1.18;
}
.marketing-visibility-panel__intro p {
  margin-top: .45rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.62;
}
.marketing-visibility-panel__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  align-items: center;
  justify-items: center;
  padding-left: 1.35rem;
  border-left: 1px solid rgba(216, 207, 196, .85);
}
.marketing-visibility-panel__stats div {
  min-width: 0;
  text-align: center;
}
.marketing-visibility-panel__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  font-weight: 400;
  line-height: 1;
  color: var(--sage-deep);
}
.marketing-visibility-panel__stats span {
  display: block;
  margin-top: .3rem;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}
.marketing-visibility-panel__logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 76px));
  gap: .65rem;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 1rem;
  padding-inline: clamp(.35rem, 2vw, 1rem);
  border-top: 1px solid var(--line);
}
.marketing-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
}
.marketing-logo img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Service-context network card overrides */
.network-card--service {
  grid-template-columns: .9fr 1.1fr;
  margin-top: .35rem;
}
.network-card--service .network-pill__icon { color: var(--paper); }
.network-card--service .network-pill__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
#contact .network-card--service .network-pill {
  grid-template-columns: 48px minmax(0, 1fr);
  padding: .82rem;
  background: rgba(252, 252, 251, .68);
  border-color: rgba(216, 207, 196, .58);
  border-radius: 14px;
}
#contact .network-card--service .network-pill__icon {
  justify-self: center;
  align-self: center;
  margin: 0;
}
#contact .network-card--service .network-pill__icon img {
  filter: brightness(0) saturate(100%) invert(54%) sepia(11%) saturate(654%) hue-rotate(94deg) brightness(95%) contrast(87%);
}
#contact .network-card--service .network-pill > div {
  align-self: center;
  min-width: 0;
}
#contact .contact-service-card {
  grid-template-columns: minmax(210px, .78fr) minmax(0, 1.22fr);
  gap: 1.35rem;
  margin-top: 1.65rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  background: rgba(245, 243, 239, .56);
  border-color: rgba(216, 207, 196, .62);
}
#contact .contact-service-card .network-grid {
  gap: .7rem;
}
#contact .contact-service-card .network-card__lead {
  margin-top: .55rem;
  font-size: 1rem;
  line-height: 1.62;
}

/* Selling network map */
.network-map__intro {
  max-width: 72ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}
.network-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(150px, .62fr) minmax(230px, 1fr);
  grid-template-rows: repeat(3, minmax(118px, auto));
  gap: 1rem 1.25rem;
  align-items: center;
  min-height: 520px;
  margin-top: .35rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: linear-gradient(135deg, rgba(252, 252, 251, .94), rgba(245, 243, 239, .86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.network-map__spokes {
  position: absolute;
  inset: 1.25rem;
  width: calc(100% - 2.5rem);
  height: calc(100% - 2.5rem);
  pointer-events: none;
  z-index: 0;
}
.network-map__spoke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(37%, 300px);
  height: 0;
  border-top: 1.6px solid rgba(111, 144, 128, .58);
  transform-origin: left center;
}
.network-map__spoke--one { transform: rotate(225deg); }
.network-map__spoke--two { transform: rotate(315deg); }
.network-map__spoke--three { transform: rotate(180deg); }
.network-map__spoke--four { transform: rotate(0deg); }
.network-map__spoke--five { transform: rotate(135deg); }
.network-map__spoke--six { transform: rotate(45deg); }
.network-map__hub {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  display: grid;
  place-items: center;
  width: min(100%, 168px);
  aspect-ratio: 1;
  padding: 1.1rem;
  background: var(--charcoal);
  border: 1px solid rgba(252, 252, 251, .14);
  border-radius: 999px;
  color: var(--paper);
  text-align: center;
  box-shadow: 0 18px 34px rgba(42, 45, 49, .12);
  align-content: center;
}
.network-map__hub span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  letter-spacing: .08em;
  line-height: 1;
}
.network-map__hub strong {
  display: block;
  margin-top: .22rem;
  color: var(--sage-soft);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.network-map__node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(42, 45, 49, .035);
}
.network-map__node--one { grid-column: 1; grid-row: 1; }
.network-map__node--two { grid-column: 3; grid-row: 1; }
.network-map__node--three { grid-column: 1; grid-row: 2; }
.network-map__node--four { grid-column: 3; grid-row: 2; }
.network-map__node--five { grid-column: 1; grid-row: 3; }
.network-map__node--six { grid-column: 3; grid-row: 3; }
.network-map__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(143, 175, 158, .16);
  border: 1px solid rgba(143, 175, 158, .3);
  color: var(--sage-deep);
}
.network-map__icon img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.network-map__node h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.18;
}
.network-map__node p {
  margin-top: .28rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

/* Inline service note */
.service-note {
  background: rgba(212, 201, 188, .34);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  color: var(--charcoal);
  font-size: .95rem;
  line-height: 1.65;
}
.service-note strong { color: var(--sage-deep); font-weight: 600; }

/* Service CTA band */
.service-cta-band {
  background: var(--off-white);
  padding: 0 0 var(--service-section-gap);
  border: 0;
}
.service-cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--charcoal);
  border: 1px solid rgba(252, 252, 251, .12);
  border-radius: 22px;
  padding: clamp(1.05rem, 2.4vw, 1.7rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 18px 44px rgba(42, 45, 49, .12);
  overflow: hidden;
}
.service-cta-band h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  color: var(--paper);
  line-height: 1.2;
}
.service-cta-band p {
  color: rgba(252, 252, 251, .76);
  margin-top: .35rem;
  max-width: 58ch;
  line-height: 1.55;
}
.service-cta-band__actions {
  justify-content: center;
  gap: .75rem;
  margin-top: .55rem;
}
.service-cta-band .btn--soft {
  background: var(--sage);
  color: var(--paper);
  flex: 0 0 auto;
}
.service-cta-band__inner > .btn {
  margin-top: .55rem;
}
.service-cta-band .btn--soft:hover {
  background: var(--sage-soft);
  color: var(--charcoal);
}
.service-cta-band .btn--ghost {
  border-color: rgba(252, 252, 251, .32);
  color: var(--paper);
}
.service-cta-band .btn--ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--charcoal);
}


/* 19. Listings index page (.listings-main)
   ========================================================================== */

/* ── Listing toolbar: tabs + count ── */
.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .75rem 0;
  margin: 1.75rem 0;
  flex-wrap: wrap;
}
.listing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.listing-tabs button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--charcoal);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .3rem .85rem;
  transition: background .15s, color .15s, border-color .15s;
}
.listing-tabs button.is-active,
.listing-tabs button:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--paper);
}
.listing-count {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Listing groups ── */
.listing-group { margin-top: 2.5rem; }
.listing-group + .listing-group { margin-top: 3.5rem; }
.listing-past-toggle {
  margin-top: 2rem;
}
.listing-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}
.listing-pagination span {
  color: var(--muted);
  font-size: .82rem;
  white-space: nowrap;
}
.listing-pagination button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

/* ── Listing grid ── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* ── Listing card ── */
.listing-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.listing-card:hover {
  box-shadow: 0 8px 28px rgba(42,45,49,.1);
  transform: translateY(-3px);
}
.listing-card--active {
  border-top: 6px solid var(--sage);
  border-radius: 2px 2px 12px 12px;
}

/* Stretched-link: the image <a> covers the whole card */
.listing-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.listing-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
}
.listing-card__image:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: -3px;
}
.listing-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.listing-card:hover .listing-card__image img {
  transform: scale(1.03);
}

/* Status pill */
.listing-card__status {
  position: absolute;
  top: .75rem;
  left: .75rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: .22rem .65rem;
  text-transform: uppercase;
  z-index: 2;
}
.listing-card__status--active,
.listing-card__status--for-sale,
.listing-card__status--for-rent {
  background: var(--sage);
  color: var(--paper);
}
.listing-card__status--sold,
.listing-card__status--rented,
.listing-card__status--past {
  background: var(--charcoal);
  color: var(--paper);
}

/* Card body */
.listing-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
  padding: 1.1rem 1.1rem .9rem;
}
.listing-card__meta {
  color: var(--sage-deep);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.listing-card--active .listing-card__meta { color: var(--sage-deep); }
.listing-card:not(.listing-card--active) .listing-card__meta { color: var(--muted); }
.listing-card__meta .dot { margin: 0 .3em; color: var(--line); }
.listing-card__address {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 0;
}
.listing-card__desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .5rem;
  font-size: .78rem;
  color: var(--muted);
  margin-top: .1rem;
}
.listing-card__facts .dot { color: var(--line); }

/* Card footer */
.listing-card__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
  padding-top: .75rem;
}
.listing-card__price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--charcoal);
  flex: 0 1 auto;
}
.listing-card__footer--past {
  justify-content: flex-end;
}
.listing-card .section__link {
  font-size: .78rem;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  white-space: nowrap;
}
.listing-card__link:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

/* Empty state */
.listing-empty-state {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3rem 2rem;
  margin-top: 2rem;
}
.listing-empty-state h3 { font-family: var(--font-display); color: var(--charcoal); }
.listing-empty-state p { color: var(--muted); margin-top: .5rem; }
.listing-empty-state .btn { margin-top: 1.25rem; }
.listing-empty-state--section {
  padding: 2rem;
}


/* 20. Listings detail page (.listing-detail-main)
   ========================================================================== */

/* ── Banner (sold/rented) ── */
.listing-detail-banner {
  background: var(--charcoal);
  border-radius: 8px;
  color: var(--paper);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 1.5rem;
  padding: .75rem 1.25rem;
  text-align: center;
}
.listing-detail-banner p { margin: 0; }

/* ── Hero image ── */
.listing-detail-hero {
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: .75rem;
}
.listing-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-detail-hero .listing-card__status {
  top: 1rem;
  left: 1rem;
  font-size: .78rem;
}

/* ── Thumbnail strip ── */
.listing-detail-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
}
.listing-detail-thumbs > div {
  flex: 1 1 0;
  max-width: 25%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--taupe-soft);
}
.listing-detail-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-detail-thumbs__more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}

/* ── Detail layout: sidebar summary at wide viewport ── */
/* Detail shell: banner + CTA full width; middle is a two-column flex row.
   Wrap the hero+thumbs+sections (left) and summary (right) in .listing-detail-body
   — see template change below. */
.listing-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.listing-back-link {
  align-self: flex-start;
  color: var(--sage-deep);
  border-bottom: 1px solid var(--sage-deep);
  font-size: .74rem;
  letter-spacing: .16em;
  line-height: 1.3;
  padding-bottom: .3rem;
  text-transform: uppercase;
}
.listing-detail-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2.5rem;
}
.listing-detail-main-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.listing-detail-hero,
.listing-detail-thumbs,
.listing-section { min-width: 0; }
.listing-detail-summary {
  flex: 0 0 340px;
  max-width: 340px;
  position: sticky;
  top: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-wrap: anywhere;
}

/* ── Summary block ── */
.listing-detail-summary .eyebrow { font-size: .72rem; }
.listing-detail-summary h1 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--charcoal);
  line-height: 1.2;
  margin: .4rem 0 .5rem;
}
.listing-location { font-size: .88rem; color: var(--muted); margin: 0; }
.listing-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--charcoal);
  margin: .6rem 0 1rem;
}

/* ── Fact grid ── */
.listing-fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: .5rem 0 1.25rem;
}
.listing-fact {
  background: var(--off-white);
  border-radius: 8px;
  padding: .6rem .75rem;
}
.listing-fact__value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--charcoal);
  display: block;
}
.listing-fact__label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* CTAs in summary */
.listing-detail-summary .btn { display: block; text-align: center; margin-top: .6rem; }

/* ── Editorial sections ── */
.listing-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
}
.listing-section:first-of-type { border-top: none; padding-top: 0; }

/* Inclusions / exclusions two-col */
.listing-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}
.info-card--included { border-top: 4px solid var(--sage); }
.info-card--included .eyebrow { color: var(--sage-deep); }
.info-card--excluded { border-top: 4px solid var(--clay); }
.info-card--excluded .eyebrow { color: var(--clay); }
.info-card p { font-size: .9rem; color: var(--charcoal); margin-top: .4rem; line-height: 1.5; }

/* ── Tables (general info, rooms, expenses) ── */
.listing-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
  max-width: 100%;
  overflow-x: auto;
}
.listing-table table { width: 100%; border-collapse: collapse; }
.listing-table thead tr { background: var(--off-white); }
.listing-table th,
.listing-table td {
  padding: .6rem .9rem;
  font-size: .85rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.listing-table th { font-weight: 600; color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.listing-table tbody tr:last-child td,
.listing-table tbody tr:last-child th { border-bottom: none; }

/* ── Bottom CTA band — reuses .service-cta-band; override only if needed ── */
.listing-detail-cta {
  margin-top: 3rem;
  text-align: center;
  background: var(--charcoal);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 5vw, 4rem);
}
.listing-detail-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--paper);
  line-height: 1.25;
}
.listing-detail-cta p { color: rgba(252,252,251,.76); margin-top: .4rem; max-width: 52ch; margin-left: auto; margin-right: auto; }
.listing-detail-cta .btn { margin-top: 1rem; }
.listing-detail-cta .btn--soft { background: var(--sage); color: var(--paper); }
.listing-detail-cta .btn--soft:hover { background: var(--sage-soft); color: var(--charcoal); }


/* 21. Responsive — @media (max-width: 1040px)
   ========================================================================== */
@media (max-width: 1040px) {
  /* Service page collapses 4/5/3-column grids to 2-up */
  .service-summary,
  .selling-roadmap__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketing-band,
  .network-card--service { grid-template-columns: 1fr; }
  .seller-presentation {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .seller-presentation__preview {
    max-width: 100%;
    min-height: clamp(180px, 32vw, 230px);
  }
  .seller-presentation__sheet {
    max-width: calc(100% - 2rem);
  }

  /* Listings grid: 3-up → 2-up */
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Listing detail: stack the two columns */
  .listing-detail-body { flex-direction: column; gap: 1.5rem; }
  .listing-detail-summary {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    position: static;
  }
  .listing-fact-grid { grid-template-columns: repeat(4, 1fr); }
}


/* 22. Responsive — @media (max-width: 920px)
   ========================================================================== */
@media (max-width: 920px) {
  /* Layout grids collapse to single column */
  .hero__grid,
  .about,
  .network-card,
  .listing-note { grid-template-columns: 1fr; }
  .home-shell--about-proof .home-shell__inner { grid-template-columns: 1fr; }

  /* Hero stacks: visual under content */
  .hero__visual { justify-self: center; order: 0; }
  .hero__content { order: -1; }

  /* Card grids collapse */
  .testimonials,
  .pathways { grid-template-columns: 1fr; }
  .listing-note__actions { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  /* About / story page */
  .story-header {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .story-header__rule {
    width: 100%;
    height: 1px;
    min-height: 1px;
  }
  .story-header__rule::after {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 5px;
  }
  .story-title h1 { max-width: 14ch; }
  .story-photo { aspect-ratio: 16 / 8; min-height: 240px; }
  .work-principles,
  .testimonial-track { grid-template-columns: 1fr; }
  .testimonial-shell__head {
    align-items: flex-start;
    flex-direction: column;
    gap: .8rem;
  }
  .about-cta-band__inner { flex-direction: column; }
}


/* 23. Responsive — @media (max-width: 760px)
   ========================================================================== */
@media (max-width: 760px) {
  /* Listings grid: 2-up → 1-up */
  .listing-grid { grid-template-columns: 1fr; }
  .listing-two-col { grid-template-columns: 1fr; }
  .listing-fact-grid { grid-template-columns: 1fr 1fr; }
  .listing-detail-cta .btn { width: 100%; }

  /* Issue A: text overflow in description and info sections */
  .listing-section,
  .listing-detail-summary { overflow-wrap: anywhere; }
  .info-card p,
  .info-card .eyebrow { overflow-wrap: anywhere; }

  /* Issue A: tables scroll horizontally instead of overflowing the page */
  .listing-table { overflow-x: auto; max-width: 100%; display: block; }

  /* Issue F: card meta graceful wrap */
  .listing-card__meta { text-wrap: pretty; }
  .listing-card__meta span:not(.dot) { white-space: nowrap; }

  /* Agency strip */
  .agency-strip__inner {
    justify-content: center;
    padding: .55rem .9rem;
    gap: .65rem;
  }
  .agency-strip__logo { font-size: .95rem; }
  .agency-strip__meta { font-size: .58rem; }
  .agency-strip__address,
  .agency-strip__license { display: none; }
  .agency-strip__divider { height: 22px; }

  /* Header / nav */
  .header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .6rem;
    padding: .75rem var(--gutter);
  }
  .brand { min-width: 0; width: 100%; padding: .82rem .9rem; }
  .brand__name { font-size: .72rem; letter-spacing: .025em; line-height: 1.15; }
  .brand__role {
    display: block;
    font-size: .56rem;
    line-height: 1.15;
    margin-top: .28rem;
    letter-spacing: .04em;
  }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--taupe-soft);
    border-bottom: 1px solid var(--line);
    padding: .7rem var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .lang-switch { padding-left: .5rem; }

  /* Hero */
  .hero { padding-top: 2rem; }
  .home-main .hero::before { background-position: center top; opacity: .1; }
  .home-main .hero__content::before {
    left: -1.35rem;
    right: -1.35rem;
    top: 34%;
    bottom: -1rem;
    background: linear-gradient(180deg, rgba(245, 243, 239, .04), rgba(245, 243, 239, .68) 48%, rgba(245, 243, 239, .32) 78%, rgba(245, 243, 239, 0));
  }
  .hero h1 { font-size: clamp(2.35rem, 13vw, 3.4rem); }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero__stat:last-child { border-bottom: 0; }
  .hero__stat--langs strong { font-size: .95rem; }

  /* Section heads */
  .section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
  .section__head--stack { display: block; }

  /* Proof band */
  .proof-band__inner {
    justify-items: center;
    align-items: center;
    gap: .28rem;
    max-width: 34rem;
  }
  .proof-band__rating {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .28rem;
  }
  .proof-band__quotes {
    display: grid;
    justify-items: center;
    gap: .12rem;
    line-height: 1.25;
  }
  .proof-band__quotes span { white-space: normal; }
  .proof-band__quotes span:not(:last-child)::after { display: none; }
  .proof-band__link { justify-self: center; margin-top: .38rem; }

  /* Reviews callout */
  .reviews-callout {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.15rem;
  }
  .reviews-callout__main {
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
  }
  .reviews-callout__stars { width: 118px; }
  .reviews-callout__copy strong { font-size: 1.2rem; }

  /* About (home block) */
  .about__image { display: none; }
  .about__portrait {
    justify-self: center;
    width: min(100%, 310px);
    margin-top: .35rem;
  }
  .about__facts {
    margin: .85rem auto 0;
    width: 100%;
    max-width: 310px;
  }

  /* Network */
  .network-grid { grid-template-columns: 1fr; }
  .network-pill { grid-template-columns: 60px 1fr; }
  .network-pill__icon {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    padding: 6px;
    border-radius: 16px;
  }
  .network-map {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    gap: .8rem;
    padding: 1rem;
  }
  .network-map__spokes {
    display: none;
  }
  .network-map__hub,
  .network-map__node,
  .network-map__node--one,
  .network-map__node--two,
  .network-map__node--three,
  .network-map__node--four,
  .network-map__node--five,
  .network-map__node--six {
    grid-column: auto;
    grid-row: auto;
  }
  .network-map__hub {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    border-radius: var(--radius);
    padding: 1rem;
  }
  .network-map__node {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: .95rem;
  }
  .network-map__icon {
    width: 46px;
    height: 46px;
  }

  /* Path cards */
  .path-card { min-height: unset; padding: 1.55rem; }
  .path-card {
    align-items: center;
    text-align: center;
  }
  .path-card__top {
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    margin-bottom: .25rem;
  }
  .path-card__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
  }
  .path-card__icon img { width: 24px; height: 24px; }
  .path-card__label { font-size: .8rem; }
  .path-card .section__link { align-self: center; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: calc(1.5rem + 104px + env(safe-area-inset-bottom)); }

  /* Home shells get tighter */
  .home-panel,
  .section--listing-break { padding: 1rem 0; }
  .home-shell { border-radius: 16px; }
  .home-shell__inner { padding: 1.35rem; }
  .home-shell__proof { padding: 1.1rem; }

  /* About / story page tightening */
  :root { --about-section-gap: 1.2rem; }
  .story-section { padding-top: var(--about-section-gap); }
  .story-shell { border-radius: 16px; }
  .story-header,
  .story-body,
  .testimonial-shell { padding: 1.35rem; }
  .story-photo {
    margin: 0 -1.35rem;
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }
  .story-photo__caption { left: 1.35rem; }
  .story-photo::after { left: 1.35rem; }
  .story-copy p.lead { font-size: 1.02rem; }
  .path-cardlet { grid-template-columns: 1fr; gap: .45rem; }
  .story-quote-card { padding: 1rem 1.35rem 0; }
  .section-jump {
    top: 3.85rem;
    padding: .5rem 1.35rem;
  }
  .section-jump__inner {
    gap: .75rem;
  }
  .section-jump__links {
    flex: 1 1 auto;
    width: auto;
  }
  .section-jump__link {
    font-size: .66rem;
  }

  /* Service page tightening */
  .service-main { --service-section-gap: 1.2rem; }
  .service-main #buying-approach,
  .service-main #buyer-guide,
  .service-main #search-strategy,
  .service-main #buying-network,
  .service-main #start-looking,
  .service-main #selling-approach,
  .service-main #marketing,
  .service-main #selling-network,
  .service-main #get-started {
    scroll-margin-top: 8.25rem;
  }
  .service-summary,
  .selling-roadmap__steps,
  .process-steps { grid-template-columns: 1fr; }
  .summary-card,
  .process-step { min-height: unset; }
  .selling-roadmap {
    gap: .8rem;
  }
  .selling-roadmap__step {
    min-height: unset;
    padding: 1rem;
    padding-left: 2.45rem;
  }
  .selling-roadmap__step::before {
    left: 1rem;
    top: 1.15rem;
  }
  .selling-roadmap__details { grid-template-columns: 1fr; }
  .selling-roadmap__panel { padding: 1.1rem; }
  .seller-presentation {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .seller-presentation__preview {
    max-width: 100%;
    min-width: 0;
    min-height: 190px;
  }
  .seller-presentation__sheet {
    max-width: calc(100% - 2rem);
  }
  .marketing-visibility-panel {
    grid-template-columns: 1fr;
  }
  .marketing-visibility-panel__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    padding-left: 0;
    padding-top: .95rem;
    border-left: 0;
    border-top: 1px solid rgba(216, 207, 196, .85);
  }
  .service-main .story-photo {
    margin: 0 -1.35rem;
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }
  #buying .story-photo {
    margin: 0;
  }
  .marketing-band__lead { padding: 1.35rem; }
  .network-card--service { padding: 1.15rem; }
  #contact .network-card--service .network-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    padding: .95rem;
    text-align: center;
  }
  #contact .network-card--service .network-pill__icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    margin: 0 auto;
  }
  #contact .network-card--service .network-pill__icon img {
    width: 25px;
    height: 25px;
  }
  #contact .network-card--service .network-pill > div {
    display: grid;
    justify-items: center;
    gap: .28rem;
    width: 100%;
  }
  #contact .network-card--service .network-pill span {
    margin-top: 0;
  }
  .contact-chip {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: .42rem;
    min-height: 76px;
    padding: .95rem 1rem;
    border-radius: 22px;
  }
  .contact-chip__icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(143, 175, 158, .14);
    color: var(--sage-deep);
    font-size: 1rem;
  }
  .btn .contact-chip__icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-basis: 1.2rem;
    background: transparent;
  }
  .btn .contact-chip__icon img {
    width: 1.2rem;
    height: 1.2rem;
  }
  .contact-actions .btn .contact-chip__icon {
    width: 1.3rem;
    height: 1.3rem;
    flex-basis: 1.3rem;
  }
  .contact-actions .btn .contact-chip__icon img {
    width: 1.3rem;
    height: 1.3rem;
  }
  .contact-actions {
    align-items: stretch;
  }
  #contact .contact-service-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
  }
  #contact .contact-service-card .network-grid {
    grid-template-columns: 1fr;
    gap: .65rem;
  }
  .contact-form-placeholder {
    scroll-margin-top: 9.5rem;
  }

  /* Sticky contact — stack vertically */
  .sticky-contact__inner {
    flex-direction: column;
    justify-content: center;
    gap: .45rem;
    padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom));
  }
  .sticky-contact__social,
  .sticky-contact__actions { justify-content: center; }
  .sticky-contact__separator {
    width: 58px;
    height: 1px;
    flex: 0 0 1px;
    margin: .05rem 0;
    background: rgba(252, 252, 251, .28);
  }
  .sticky-contact__chip {
    min-height: 34px;
    padding: .38rem .75rem;
    font-size: .78rem;
  }
  .sticky-contact__icon { width: 34px; height: 34px; }
  .sticky-contact__icon img,
  .sticky-contact__chip img { width: 17px; height: 17px; }
}


/* 24. Responsive — @media (max-width: 450px)
   ========================================================================== */
@media (max-width: 450px) {
  /* Header / brand */
  .header__inner { gap: .45rem; padding: .65rem var(--gutter); }
  .brand { padding: .78rem .72rem; }
  .brand__suffix { display: none; }
  .brand__name { font-size: .7rem; letter-spacing: .02em; }
  .brand__role {
    display: block;
    font-size: .54rem;
    line-height: 1.15;
    margin-top: .24rem;
    letter-spacing: .04em;
  }
  .lang-switch { padding-left: .4rem; }
  .lang-btn { font-size: .68rem; padding: .32rem .38rem; }

  /* Buttons & chips go full-width */
  .btn { width: 100%; }
  .contact-chip { width: 100%; justify-content: center; }

  /* About facts column */
  .about__facts { grid-template-columns: 1fr; }
  .about__fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .about__fact:last-child { border-bottom: 0; }

  /* Story / principles */
  .story-title h1 { font-size: 2.1rem; }
  .principle-card { min-height: unset; }

  /* Issue E: toolbar tabs — smaller pills so all five fit in two rows max */
  .listing-tabs button {
    padding: .28rem .6rem;
    font-size: .68rem;
  }

  /* Footer / sticky contact */
  .footer { padding-bottom: calc(1.5rem + 94px + env(safe-area-inset-bottom)); }
  .sticky-contact__inner { gap: .38rem; }
  .sticky-contact__chip {
    min-height: 34px;
    padding: .36rem .52rem;
    border-radius: 999px;
    font-size: .7rem;
    gap: .35rem;
  }
}

/* Listings section hardening overrides
   Place this at the very end of styles.css, after all media queries. */

/* Keep the listings header flush with the shell; padding begins below it. */
.listings-shell {
  padding: 0;
}

.listings-content {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.listings-main [hidden] {
  display: none !important;
}

@media (min-width: 921px) {
  .listings-main .story-header {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  }

  .listings-main .story-title h1 {
    max-width: 15ch;
  }
}

.listing-card {
  min-width: 0;
}

.listing-card__address,
.listing-card__desc,
.listing-card__facts {
  overflow-wrap: anywhere;
}

.listing-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.listing-detail-thumbs > div {
  max-width: none;
}

/* 3) If detail.njk is adjusted so only hero/thumbs live in .listing-detail-main-col
   and the editorial sections live in .listing-detail-content, keep the lower content
   calm and readable without trapping it in the hero/sidebar column. */
.listing-detail-content {
  display: grid;
  gap: 0;
  width: min(100%, 900px);
  margin-inline: auto;
}

.listing-detail-content .listing-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.listing-detail-content .listing-section > p {
  max-width: 72ch;
}

.listing-description p {
  max-width: 72ch;
}

.listing-description p + p {
  margin-top: 1rem;
}

.listing-detail-content .listing-two-col,
.listing-detail-content .listing-table {
  max-width: 900px;
}

@media (max-width: 760px) {
  .listing-detail-content .listing-two-col,
  .listing-detail-content .listing-table {
    max-width: 100%;
  }

  .listing-table {
    border-radius: 8px;
    overflow: hidden;
  }

  .listing-table table,
  .listing-table tbody,
  .listing-table tr,
  .listing-table th,
  .listing-table td {
    display: block;
    width: 100%;
  }

  .listing-table thead {
    display: none;
  }

  .listing-table tr {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .listing-table tbody tr:last-child {
    border-bottom: 0;
  }

  .listing-table th,
  .listing-table td {
    padding: 0;
    border-bottom: 0;
  }

  .listing-table th {
    margin-bottom: .3rem;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .listing-table td {
    overflow-wrap: anywhere;
  }
}
