/* ==========================================================================
   editorial.css - the layout layer for the hand-built pages
   (services, service detail, blog, blog post, transformations).

   Rules of the house, so the pages read as one publication:
   - square corners: 2px on media, 0 on panels. No floating pills, no 20px cards.
   - separation is a 1px hairline or a full-bleed band, never a shadow.
   - Lora for headlines, Inter for everything you read or click.
   - magenta only for the kicker and the one primary action.
   Loaded after polish.css (see app/src/app/layout.tsx).
   ========================================================================== */

.ed_page {
  background: var(--neutral-0);
}

.ed_section {
  padding: clamp(40px, 5vw, 64px) 0;
}

.ed_section--tight {
  padding: clamp(24px, 3vw, 36px) 0;
}

.ed_section + .ed_section {
  border-top: 1px solid var(--color-border);
}

/* Body column + sidebar. Collapses to one column on tablets. */
.ed_split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.ed_rail {
  position: sticky;
  top: 28px;
  align-self: start;
  display: grid;
  gap: 24px;
}

/* ------------------------------------------------------------- masthead ---- */
.ed_masthead {
  background: var(--color-surface-tint);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(112px, 13vh, 152px) 0 clamp(28px, 3.4vw, 44px);
}

.ed_masthead-body {
  max-width: 780px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.crumbs_part {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumbs a {
  color: var(--teal-600);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs_sep {
  color: var(--neutral-200);
}

.ed_kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--magenta-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ed_kicker::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
}

.ed_title {
  margin: 14px 0 0;
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.ed_lead {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.6;
}

.ed_masthead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  color: var(--teal-800);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ed_masthead-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ed_masthead-meta span + span::before {
  content: "";
  width: 1px;
  height: 12px;
  margin-right: 14px;
  background: var(--neutral-200);
}

/* -------------------------------------------------------------- buttons ---- */
.ed_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--magenta-600);
  border-radius: 2px;
  background: var(--magenta-600);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ed_btn:hover {
  border-color: var(--magenta-700);
  background: var(--magenta-700);
  color: #fff;
}

.ed_btn--ghost {
  border-color: var(--neutral-200);
  background: transparent;
  color: var(--teal-800);
}

.ed_btn--ghost:hover {
  border-color: var(--teal-300);
  background: var(--color-surface-tint);
  color: var(--teal-800);
}

.ed_btn--light {
  border-color: #fff;
  background: #fff;
  color: var(--teal-900);
}

.ed_btn--light:hover {
  border-color: var(--teal-50);
  background: var(--teal-50);
  color: var(--teal-900);
}

.ed_btn--full {
  width: 100%;
}

.ed_link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--teal-200);
  color: var(--teal-600);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.ed_link:hover {
  border-color: var(--teal-600);
  color: var(--teal-700);
}

/* --------------------------------------------------------- section heads ---- */
.ed_head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(20px, 2.4vw, 30px);
}

.ed_head h2 {
  margin: 8px 0 0;
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ed_head p {
  margin-top: 8px;
  max-width: 56ch;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ------------------------------------------------------- service list ------ */
.ed_services {
  border-top: 1px solid var(--color-border);
}

.ed_service {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 40px;
  gap: 8px 20px;
  align-items: start;
  padding: clamp(18px, 2vw, 26px) 0;
  border-bottom: 1px solid var(--color-border);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.ed_service:hover {
  background: var(--color-surface);
}

.ed_service-num {
  padding-top: 5px;
  color: var(--teal-300);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.ed_service-name {
  margin: 0;
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ed_service-text {
  margin-top: 6px;
  max-width: 62ch;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.ed_service-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ed_service-go {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--neutral-200);
  border-radius: 2px;
  color: var(--teal-700);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ed_service-go svg {
  width: 14px;
  height: 14px;
}

.ed_service:hover .ed_service-go {
  border-color: var(--teal-600);
  background: var(--teal-600);
  color: #fff;
}

@media screen and (max-width: 640px) {
  .ed_service {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .ed_service-go {
    display: none;
  }
}

/* ------------------------------------------------------------- blog rows ---- */
/* Lead story: picture and text side by side, like a front page. */
.ed_story {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(20px, 3.2vw, 44px);
  align-items: center;
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--color-border);
}

.ed_story-media {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--neutral-50);
}

.ed_story-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ed_story:hover .ed_story-media img {
  transform: scale(1.02);
}

.ed_story-title {
  margin: 10px 0 0;
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.ed_story-title a {
  color: inherit;
  text-decoration: none;
}

.ed_story-title a:hover {
  color: var(--teal-600);
}

.ed_story-standfirst {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed_byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.ed_byline .ed_dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--neutral-200);
}

/* Article rows: text left, thumbnail right - dense, scannable. */
.ed_items {
  border-top: 1px solid var(--color-border);
}

.ed_item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  color: inherit;
  text-decoration: none;
}

.ed_item-title {
  margin: 6px 0 0;
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}

.ed_item:hover .ed_item-title {
  color: var(--teal-600);
}

.ed_item-excerpt {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed_item-media {
  overflow: hidden;
  border-radius: 2px;
  background: var(--neutral-50);
}

.ed_item-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ed_item-kicker {
  color: var(--magenta-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media screen and (max-width: 560px) {
  .ed_story {
    grid-template-columns: 1fr;
  }

  .ed_item {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 14px;
  }

  .ed_item-excerpt {
    display: none;
  }
}


/* ---------------------------------------------------------------- prose ---- */
/* CMS rich text (post body, service body). Replaces the imported .w-richtext
   styles, which set 14px/1.4 and a 44px h2 inside a 720px column. */
.ed_prose {
  color: var(--neutral-700);
  font-size: 18px;
  line-height: 1.75;
}

.ed_prose > * + * {
  margin-top: 1.05em;
}

.ed_prose > p:first-child {
  color: var(--teal-900);
  font-size: 19px;
  line-height: 1.7;
}

.ed_prose h2 {
  margin-top: 1.7em;
  margin-bottom: 0.5em;
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ed_prose h3 {
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  color: var(--teal-900);
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.ed_prose h4 {
  margin-top: 1.4em;
  color: var(--teal-800);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ed_prose a {
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ed_prose a:hover {
  color: var(--magenta-600);
}

.ed_prose strong {
  color: var(--neutral-900);
  font-weight: 600;
}

.ed_prose ul,
.ed_prose ol {
  padding-left: 1.15em;
}

.ed_prose li + li {
  margin-top: 0.45em;
}

.ed_prose li::marker {
  color: var(--teal-400);
}

.ed_prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--magenta-500);
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.5;
}

.ed_prose blockquote p {
  margin: 0;
}

.ed_prose img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.6em 0;
  border-radius: 2px;
}

.ed_prose hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.ed_prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.ed_prose th,
.ed_prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

/* --------------------------------------------------------- article page ---- */
.ed_article {
  padding: clamp(112px, 13vh, 152px) 0 clamp(40px, 5vw, 64px);
}

.ed_article-head {
  max-width: 760px;
  margin: 0 auto;
}

.ed_article-title {
  margin: 14px 0 0;
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.ed_standfirst {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 19px;
  line-height: 1.6;
}

.ed_article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13.5px;
}

.ed_article-byline strong {
  color: var(--teal-900);
  font-weight: 600;
}

.ed_article-hero {
  max-width: 1000px;
  margin: clamp(24px, 3vw, 40px) auto 0;
}

.ed_article-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  background: var(--neutral-50);
}

.ed_article-hero figcaption {
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.ed_article-body {
  max-width: 720px;
  margin: clamp(28px, 3.4vw, 44px) auto 0;
}

/* "More on this story" */
.ed_related {
  max-width: 720px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--color-border);
}

.ed_related-list {
  display: grid;
}

.ed_related-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.18s ease;
}

.ed_related-item:hover {
  color: var(--teal-600);
}

.ed_related-item svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--teal-400);
}


/* ------------------------------------------------------------- sidebar ---- */
.ed_card {
  padding: 22px;
  border: 1px solid var(--color-border);
  background: var(--neutral-0);
}

.ed_card--tint {
  border-color: var(--teal-100);
  background: var(--color-surface-tint);
}

.ed_card-title {
  margin: 0 0 10px;
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ed_card-text {
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.ed_rail-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--teal-900);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Facts table (price, duration, who it is for). */
.ed_facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.ed_facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.ed_facts div:last-child {
  border-bottom: 0;
}

.ed_facts dt {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ed_facts dd {
  margin: 0;
  color: var(--teal-900);
  font-size: 14.5px;
  font-weight: 600;
  text-align: right;
}

/* Opening hours */
.ed_hours {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.ed_hours div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ed_hours dt {
  color: var(--teal-800);
  font-weight: 500;
}

.ed_hours dd {
  margin: 0;
}

/* Most read: numbered like a news front page. */
.ed_mostread {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mostread;
}

.ed_mostread li {
  counter-increment: mostread;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.ed_mostread li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ed_mostread a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.32;
  text-decoration: none;
}

.ed_mostread a::before {
  content: counter(mostread);
  color: var(--teal-300);
  font-size: 18px;
  font-weight: 600;
}

.ed_mostread a:hover {
  color: var(--teal-600);
}

/* Topic list */
.ed_topics {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ed_topics a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--teal-800);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}

.ed_topics li:last-child a {
  border-bottom: 0;
}

.ed_topics a:hover,
.ed_topics a[aria-current="page"] {
  color: var(--magenta-600);
}

.ed_topics span {
  color: var(--neutral-400);
  font-size: 12px;
  font-weight: 600;
}

/* --------------------------------------------------------------- faq ------- */
.ed_faq {
  border-top: 1px solid var(--color-border);
}

.ed_faq-item {
  border-bottom: 1px solid var(--color-border);
}

.ed_faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  color: var(--teal-900);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.ed_faq-question::-webkit-details-marker {
  display: none;
}

.ed_faq-icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.ed_faq-icon::before,
.ed_faq-icon::after {
  content: "";
  position: absolute;
  inset: 6px 0 auto 0;
  height: 2px;
  background: var(--teal-600);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ed_faq-icon::after {
  transform: rotate(90deg);
}

.ed_faq-item[open] .ed_faq-icon::after {
  transform: rotate(0deg);
  opacity: 0;
}

.ed_faq-answer {
  padding-bottom: 20px;
}

.ed_faq-answer p {
  max-width: 70ch;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* --------------------------------------------------------------- band ------ */
/* Full-bleed close: flat, square, one action. */
.ed_band {
  margin-top: clamp(32px, 4vw, 56px);
  background: var(--teal-900);
  color: #fff;
}

.ed_band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: clamp(36px, 4.4vw, 56px) 0;
}

.ed_band-copy {
  max-width: 56ch;
}

.ed_band-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ed_band-text {
  margin-top: 10px;
  color: rgba(255, 255, 255, .74);
  font-size: 16px;
  line-height: 1.6;
}

.ed_band-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ed_band-call {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  padding-bottom: 3px;
}

.ed_band-call:hover {
  border-color: #fff;
}

/* ---------------------------------------------------------- empty state ---- */
.ed_empty {
  padding: 36px 0;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.6;
}

@media screen and (max-width: 991px) {
  .ed_split {
    grid-template-columns: minmax(0, 1fr);
  }

  .ed_rail {
    position: static;
  }
}


/* ----------------------------------------------------------- page polish ---- */
/* The template's navbar carries a wide blurred halo meant to sit over the hero
   photo. Over a flat masthead it reads as a smudge, so it gets a hairline and a
   tight shadow on the editorial pages only. */
body:has(.ed_page) .navbar_container {
  box-shadow: 0 1px 0 rgba(6, 48, 47, .06), 0 8px 20px -16px rgba(6, 48, 47, .45);
}

/* The footer fades its columns in on scroll. If that animation never runs (no
   scroll, reduced motion, JS off) the whole footer stays invisible, which looks
   like a blank teal slab. Always show it: the reveal happens off-screen anyway. */
.section_footer [data-w-id] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* The closing band sits directly above the footer, which is also teal-900.
   One step lighter keeps the two bands readable as separate blocks. */
.ed_band {
  background: var(--teal-800);
  border-top: 1px solid rgba(255, 255, 255, .14);
}

/* Tags under an article. */
.ed_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ed_tags li {
  padding: 5px 10px;
  border: 1px solid var(--neutral-200);
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* The article sits in a 720px column; a 1000px hero above it must line up with
   the masthead's container, not the column. */
@media screen and (max-width: 1100px) {
  .ed_article-hero {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ==========================================================================
   SITE ALIGNMENT - the hand-built pages in the imported site's clothes
   --------------------------------------------------------------------------
   Home and About come from the original template: 16-24px corners, pill tags
   and buttons, tinted panels and a rounded dark CTA band. The editorial pages
   were deliberately square, which made moving between sections feel like
   changing websites. This layer keeps every layout, heading and word in place
   and only warms the geometry (radius, surface, depth) so the whole site reads
   as one product.

   Still true: magenta is for the single primary action, teal carries the
   brand, and separation is a hairline or a band - depth is a suggestion, not
   a drop shadow.
   ========================================================================== */
.ed_page {
  --ed-radius-media: 16px;
  --ed-radius-card: 20px;
  --ed-radius-panel: 24px;
  --ed-radius-pill: 999px;
  --ed-shadow-card: 0 22px 44px -36px rgba(6, 48, 47, .38);
  --ed-shadow-soft: 0 30px 70px -52px rgba(6, 48, 47, .5);
}

/* ------------------------------------------------------------ masthead ---- */
/* The About hero is a tinted wash above the fold; the masthead gets the same
   treatment, rounded into the page so it does not read as a flat slab. */
.ed_masthead {
  background:
    radial-gradient(1100px 300px at 84% -60%, rgba(186, 24, 120, .08), transparent 70%),
    radial-gradient(900px 300px at 6% -50%, rgba(12, 108, 108, .18), transparent 72%),
    linear-gradient(180deg, var(--teal-50) 0%, #F5FAF9 58%, var(--neutral-0) 100%);
  border-bottom: 0;
  border-radius: 0 0 var(--ed-radius-panel) var(--ed-radius-panel);
  box-shadow: inset 0 -1px 0 var(--color-border);
}

/* Eyebrow pills - the same shape as .section_tag in the imported sections. */
.ed_kicker {
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--teal-200);
  border-radius: var(--ed-radius-pill);
  background: var(--teal-50);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.ed_kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* On the tinted masthead the pill floats on a lighter surface. */
.ed_masthead .ed_kicker {
  background: rgba(255, 255, 255, .78);
}

/* Two-column masthead when the page has a hero photo (services, blog). The
   photo sits beside the headline on desktop and drops below it on tablets. */
.ed_masthead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.ed_masthead-layout.has-image {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
}

.ed_masthead-image {
  overflow: hidden;
  border: 1px solid rgba(12, 108, 108, .14);
  border-radius: var(--ed-radius-panel);
  background: var(--teal-50);
  box-shadow: var(--ed-shadow-soft);
  aspect-ratio: 16 / 11;
}

.ed_masthead-image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

/* CMS copy may carry line breaks (e.g. "Every treatment,\nunder one roof"). */
.ed_title {
  white-space: pre-line;
}

/* Photo drops under the copy before the two columns get too narrow. */
@media screen and (max-width: 991px) {
  .ed_masthead-layout.has-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .ed_masthead-image {
    aspect-ratio: 16 / 9;
  }
}

/* Meta facts become chips, like the badges the template uses. */
.ed_masthead-meta {
  gap: 8px;
  padding-top: 20px;
  border-top: 0;
}

.ed_masthead-meta span {
  padding: 5px 13px;
  border: 1px solid rgba(12, 108, 108, .14);
  border-radius: var(--ed-radius-pill);
  background: rgba(255, 255, 255, .72);
  color: var(--teal-800);
  font-size: 12px;
  font-weight: 600;
}

.ed_masthead-meta span + span::before {
  display: none;
}

/* --------------------------------------------------------------- buttons ---- */
.ed_btn {
  padding: 0 26px;
  border-radius: var(--ed-radius-pill);
  box-shadow: 0 18px 30px -24px rgba(186, 24, 120, .6);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease,
    box-shadow .18s ease, transform .18s ease;
}

.ed_btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px -26px rgba(186, 24, 120, .72);
}

.ed_btn--ghost,
.ed_btn--ghost:hover {
  box-shadow: none;
}

.ed_btn--light {
  box-shadow: 0 20px 36px -28px rgba(6, 48, 47, .8);
}

/* --------------------------------------------------------------- rhythm ---- */
.ed_section {
  padding: clamp(48px, 5.4vw, 76px) 0;
}

.ed_section--tint {
  background: var(--neutral-25);
}

/* The imported sections get their gutter from .section-padding; the hand-built
   pages use .container directly, so it needs one here or the content touches
   the screen edge on phones. Max width stays 1160 on desktop. */
.ed_page .container {
  width: min(calc(100% - clamp(40px, 6vw, 48px)), 1160px);
}

/* --------------------------------------------------------- service list ---- */
/* Rows keep their number / name / price order; every row becomes a soft card
   with the same 20px corner the template uses for its service blocks. */
.ed_services {
  display: grid;
  gap: 12px;
  border-top: 0;
}

.ed_service {
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--ed-radius-card);
  background: var(--neutral-0);
  transition: background-color .18s ease, border-color .18s ease,
    box-shadow .18s ease, transform .18s ease;
}

.ed_service:hover {
  background: var(--neutral-25);
  border-color: var(--teal-100);
  box-shadow: var(--ed-shadow-card);
  transform: translateY(-1px);
}

.ed_service-go {
  border-radius: 50%;
}

.ed_service-facts span {
  padding: 3px 10px;
  border-radius: var(--ed-radius-pill);
  background: var(--teal-50);
  color: var(--teal-700);
}

/* ------------------------------------------------------------ blog rows ---- */
.ed_story {
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--color-border);
  border-radius: var(--ed-radius-panel);
  background: linear-gradient(180deg, var(--neutral-0) 0%, var(--neutral-25) 100%);
}

.ed_story-media {
  border-radius: var(--ed-radius-media);
}

.ed_items {
  display: grid;
  gap: 12px;
  border-top: 0;
}

.ed_item {
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--ed-radius-card);
  background: var(--neutral-0);
  transition: background-color .18s ease, border-color .18s ease,
    box-shadow .18s ease, transform .18s ease;
}

.ed_item:hover {
  background: var(--neutral-25);
  border-color: var(--teal-100);
  box-shadow: var(--ed-shadow-card);
  transform: translateY(-1px);
}

.ed_item-media {
  border-radius: 14px;
}

.ed_item-kicker {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--ed-radius-pill);
  background: var(--magenta-50);
  color: var(--magenta-700);
  font-size: 10px;
}

/* --------------------------------------------------------------- article ---- */
.ed_article-hero img,
.ed_prose img {
  border-radius: var(--ed-radius-media);
}

.ed_prose blockquote {
  padding: 16px 20px;
  border-left: 3px solid var(--magenta-500);
  border-radius: 0 var(--ed-radius-media) var(--ed-radius-media) 0;
  background: var(--neutral-25);
}

.ed_tags li {
  padding: 6px 12px;
  border-radius: var(--ed-radius-pill);
  background: var(--neutral-25);
}

/* site.css sets every <ul> to flex/column; the tag row is a wrapping row. */
.ed_tags {
  flex-direction: row;
}

.ed_related-item {
  padding: 14px 12px;
  border-radius: 12px;
  transition: color .18s ease, background-color .18s ease;
}

.ed_related-item:hover {
  background: var(--neutral-25);
}

/* --------------------------------------------------------------- sidebar ---- */
.ed_card {
  border-radius: var(--ed-radius-card);
  box-shadow: var(--ed-shadow-card);
}

.ed_card--tint {
  border-color: var(--teal-100);
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--neutral-0) 100%);
}

/* Photo card (contact page "find us" panel) - the template's location cards. */
.ed_card--photo {
  padding: 0;
  overflow: hidden;
}

.ed_card--photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--ed-radius-card) var(--ed-radius-card) 0 0;
}

.ed_card-photo-body {
  padding: 18px 20px 20px;
}

/* ------------------------------------------------------------------ faq ---- */
.ed_faq {
  display: grid;
  gap: 10px;
  border-top: 0;
}

.ed_faq-item {
  padding: 0 18px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--neutral-0);
  transition: border-color .18s ease, background-color .18s ease;
}

.ed_faq-item[open] {
  border-color: var(--teal-100);
  background: var(--neutral-25);
}

.ed_faq-question {
  padding: 16px 0;
}

.ed_faq-icon::before,
.ed_faq-icon::after {
  background: var(--magenta-600);
}

.ed_faq-answer {
  padding-bottom: 16px;
}

/* ----------------------------------------------------------------- band ---- */
/* The closing band mirrors the template's CTA section: rounded top corners
   and a deep teal wash instead of a flat slab. */
.ed_band {
  margin-top: clamp(36px, 4.6vw, 60px);
  border-top: 0;
  border-radius: var(--ed-radius-panel) var(--ed-radius-panel) 0 0;
  background:
    radial-gradient(760px 260px at 88% 0%, rgba(255, 255, 255, .12), transparent 70%),
    linear-gradient(115deg, var(--teal-900) 0%, var(--teal-800) 100%);
}

/* ---------------------------------------------------------- contact page ---- */
.ed_contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.ed_contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--ed-radius-card);
  background: var(--neutral-0);
  box-shadow: var(--ed-shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease,
    background-color .18s ease;
}

.ed_contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-100);
  background: var(--neutral-25);
}

.ed_contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
}

.ed_contact-icon svg {
  width: 19px;
  height: 19px;
}

.ed_contact-label {
  color: var(--teal-600);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ed_contact-value {
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
}

.ed_contact-note {
  color: var(--color-text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* White panel used for the form and grouped content. */
.ed_panel {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--ed-radius-panel);
  background: var(--neutral-0);
  box-shadow: var(--ed-shadow-card);
}

.ed_panel--tint {
  border-color: var(--teal-100);
  background: linear-gradient(180deg, var(--neutral-25) 0%, var(--neutral-0) 100%);
}

.ed_panel-title {
  margin: 0;
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ed_panel-lead {
  margin-top: 8px;
  max-width: 62ch;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ form ---- */
.ed_form {
  margin-top: 22px;
}

.ed_fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ed_field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ed_field--wide {
  grid-column: 1 / -1;
}

.ed_field > span {
  color: var(--teal-800);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ed_field input,
.ed_field select,
.ed_field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-25);
  color: var(--neutral-900);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ed_field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--teal-600) 50%),
    linear-gradient(135deg, var(--teal-600) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.ed_field textarea {
  min-height: 124px;
  resize: vertical;
}

.ed_field input:focus,
.ed_field select:focus,
.ed_field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  background-color: var(--neutral-0);
  box-shadow: 0 0 0 3px rgba(12, 108, 108, .12);
}

.ed_form-note {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ed_form-error {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(185, 28, 28, .18);
  border-radius: 12px;
  background: #FDF2F2;
  color: var(--color-error);
  font-size: 14px;
}

.ed_form-success {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--teal-100);
  border-radius: var(--ed-radius-card);
  background: var(--teal-50);
}

.ed_form-success .ed_panel-title {
  font-size: clamp(22px, 2.2vw, 28px);
}

.ed_form-success p {
  margin-top: 8px;
  color: var(--teal-800);
  font-size: 15px;
  line-height: 1.6;
}

@media screen and (max-width: 640px) {
  .ed_fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .ed_masthead {
    border-radius: 0 0 16px 16px;
  }

  .ed_item {
    padding: 14px;
  }
}

/* Anchor target for /contact#book - the imported navbar is fixed, so a plain
   #book jump would hide the panel under it. */
.ed_anchor {
  scroll-margin-top: 112px;
}

/* The kicker pill sits above a panel heading on the contact page. */
.ed_panel > .ed_kicker {
  margin-bottom: 12px;
}

/* Hours rows on the contact page are a touch airier than the rail default. */
.ed_card .ed_hours div + div {
  margin-top: 4px;
}


