/* ==========================================================================
   Treatment pages — an extension of the homepage system, not a new one.
   Loaded after sections.css (which holds the shared hero glows, dandelions,
   accordion rows, contact section) and before motion.css.
   Every value comes from tokens.css; new pieces reuse the homepage's
   shapes: the capsule (logo "ס"), lavender surfaces, orchid numbers,
   hairline rows, green hover, thin even line drawings.

   Modules (mix per page, so pages share a language without sharing a layout):
     .t-hero       page hero: glows + one long-stemmed line dandelion + breadcrumbs + H1
     .t-crumbs     breadcrumbs
     .t-article    4 : 7 grid with a sticky in-page index (.t-toc)
     .t-h2         numbered question heading (01, 02 … like the intro subheads)
     .t-lead       opening paragraph set large (display font, light)
     .t-prose      reading text
     .t-panel      lavender capsule panel with the orchid rule
     .t-factors    numbered capsule cards (causes, characteristics)
     .t-steps      vertical path with capsule markers (diagnosis, process)
     .t-care       Sivan rising out of a capsule, beside text
     .t-related    the homepage "טיפולים נוספים" block, with link rows
   ========================================================================== */

/* ---------- Shared bits ---------- */
.t-num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orchid-400);
  font-variant-numeric: tabular-nums;
}

/* ---------- 1. Page hero ---------- */
.t-hero {
  /* inherits .hero: slides under the header, glows, white dissolve at the bottom, glow fade on scroll */
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 6rem));
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}
@media (min-width: 760px) {
  /* an inner page: the hero is a title band. Round 3: the space under the title is one title line high */
  .t-hero { min-height: 0; justify-content: flex-start; padding-top: calc(var(--header-h) + clamp(3rem, 7vh, 5.5rem)); padding-bottom: calc(var(--text-display) * 0.95 * 1.08); }
}
.t-hero__text { position: relative; z-index: 2; }
.t-hero__title {
  margin-top: var(--space-5);
  font-size: calc(var(--text-display) * 0.95);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  color: var(--plum-700);
  max-width: 12ch;
}
/* Round 4 (Aviv): ONE dandelion, the homepage's big one, on the left. Its head sits level with the title
   (treatment.js sets --t-head from the title's position); its stem is long and runs on down past the hero,
   behind the article, and fades out softly as the page scrolls. It keeps its sway, now pivoting at the stem's foot. */
.t-hero { overflow: clip visible; z-index: 1; }       /* the stem may run below the hero; no sideways scroll */
.t-hero .hero__bg { overflow: clip; }                  /* the glows stay inside the hero */
.t-hero__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.t-hero .t-hero__long {
  top: var(--t-head, calc(var(--header-h) + 40px));
  bottom: auto;
  left: -4vw;
  width: clamp(200px, 30vw, 430px);
  /* the stem is solid down to the hero's bottom, then thins out to nothing: a long, soft fade */
  -webkit-mask-image: linear-gradient(#000 26%, rgba(0,0,0,0.45) 48%, transparent 82%);
  mask-image: linear-gradient(#000 26%, rgba(0,0,0,0.45) 48%, transparent 82%);
}
.t-hero .t-hero__long .dandelion__sway { transform-origin: -195px 2600px; animation: sway-long 8s var(--ease-in-out) infinite alternate; }
@keyframes sway-long { from { transform: rotate(-0.75deg); } to { transform: rotate(0.65deg); } }
@media (max-width: 759px) {
  .t-hero { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 3.2rem; }   /* one title line under the title */
  .t-hero .t-hero__long { left: -5vw; width: 40vw; opacity: 0.85; -webkit-mask-image: linear-gradient(#000 22%, rgba(0,0,0,0.45) 42%, transparent 72%); mask-image: linear-gradient(#000 22%, rgba(0,0,0,0.45) 42%, transparent 72%); }
  .t-hero__title { max-width: 8ch; }
}

/* ---------- Breadcrumbs ---------- */
.t-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0; padding: 0; font-size: var(--text-xs); color: var(--ink-500); }
.t-crumbs li { display: inline-flex; align-items: center; }
.t-crumbs li + li::before {
  /* the capsule motif, tiny, as the separator */
  content: "";
  width: 14px; height: 6px;
  margin-inline: 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--orchid-300);
}
.t-crumbs a { padding-block: 10px; transition: color var(--dur-2) var(--ease-out); }
@media (hover: hover) { .t-crumbs a:hover { color: var(--plum-700); } }
.t-crumbs [aria-current] { color: var(--ink-700); font-weight: 600; }

/* ---------- 2. Article grid + in-page index ---------- */
.t-article { background: var(--white); padding-top: clamp(1rem, 2vw, 2rem); }
.t-article__grid { display: grid; gap: var(--space-7); }
.t-article__body { display: grid; gap: clamp(4rem, 3rem + 4vw, 7.5rem); min-width: 0; }
@media (min-width: 960px) {
  .t-article__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-9); }
  .t-toc { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}

.t-toc__label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--plum-700);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.t-toc__list { list-style: none; margin: 0; padding: 0; }
.t-toc__list a {
  position: relative;
  display: grid;
  grid-template-columns: 2.4em 1fr;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--ink-700);
  transition: color 1s var(--ease-out), padding 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.t-toc__list a::before {
  /* active marker: the capsule, drawn in from the reading edge */
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 18px; height: 8px;
  margin-top: -4px;
  border-radius: var(--radius-pill);
  background: var(--plum-700);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}
.t-toc__list a.is-active { color: var(--plum-700); padding-inline-start: 30px; }
.t-toc__list a.is-active::before { transform: none; }
.t-toc__list a.is-active .t-num { color: var(--plum-700); }
@media (hover: hover) { .t-toc__list a:hover { color: var(--plum-700); } }
.t-toc__call {
  display: inline-flex; align-items: center; gap: 0.85em;
  margin-top: var(--space-6);
  font-weight: 600; color: var(--plum-700);
}
.t-toc__call .arrow-link__icon { transition: background-color 1.1s var(--ease-out), border-color 1.1s var(--ease-out); }
@media (hover: hover) { .t-toc__call:hover .arrow-link__icon { background: var(--lavender-100); border-color: var(--orchid-300); } }
@media (max-width: 959px) {
  .t-toc__inner { padding: var(--space-5) var(--space-5) var(--space-3); border-radius: var(--radius-lg); background: var(--lavender-50); }
  .t-toc__label { border-bottom-color: var(--lavender-200); padding-bottom: var(--space-3); }
  .t-toc__list a { border-bottom-color: var(--lavender-200); }
  .t-toc__list li:last-child a { border-bottom: 0; }
  .t-toc__list a::before { display: none; }
  .t-toc__call { display: none; }
}

/* ---------- Headings + text ---------- */
.t-h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.22;
  color: var(--plum-700);
  margin-bottom: var(--space-6);
}
.t-h2 .t-num { flex: none; transform: translateY(-0.35em); }
.t-block { scroll-margin-top: calc(var(--header-h) + 24px); }

.t-prose { max-width: var(--measure); }
.t-prose p { color: var(--ink-700); line-height: 1.8; }
.t-prose p + p { margin-top: var(--space-4); }

/* the first answer is set like the homepage's opening line: display font, light, a size up */
.t-lead p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-900);
  max-width: 34ch;
}

/* ---------- Panel (sensations) ---------- */
.t-panel {
  position: relative;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) clamp(1.5rem, 1rem + 4vw, 4.5rem);
  border-radius: var(--radius-xl);
  background: var(--lavender-100);
}
.t-panel::before {
  /* the orchid rule from the homepage pull quote, drawn in on reveal */
  content: "";
  display: block;
  width: 56px; height: 1.5px;
  margin-bottom: var(--space-5);
  background: var(--orchid-500);
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out) 0.3s;
}
.t-panel.is-revealed::before, html:not(.js) .t-panel::before { transform: none; }
.t-panel p { color: var(--ink-700); line-height: 1.8; max-width: var(--measure); }
.t-panel p:first-child {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-900);
}
.t-panel p + p { margin-top: var(--space-4); }
@media (min-width: 760px) { .t-panel { border-radius: 120px; } }

/* ---------- Factors (causes) ---------- */
.t-factors {
  list-style: none; margin: var(--space-6) 0 0; padding: 0;
  display: grid;
  gap: clamp(10px, 1.4vw, 18px);
}
@media (min-width: 600px) { .t-factors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 600px) { .t-factor--full { grid-column: 1 / -1; } .t-factor--w2 { grid-column: span 2; } }
.t-factor {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  min-height: 100%;
  padding: var(--space-5) var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--lavender-100);
  color: var(--ink-700);
  line-height: 1.7;
  /* the homepage tile hover: turns sage, floats a touch */
}
.t-factor__num {
  display: inline-flex; align-items: center; justify-content: center;
  justify-self: start;
  width: 52px; height: 28px;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--orchid-400);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--plum-700);
  transition: border-color 1.2s var(--ease-out), color 1.2s var(--ease-out);
}
@media (hover: hover) {
  .t-factor:hover .t-factor__term { transform: translateY(-4px); }
}

/* ---------- Steps (diagnosis) ---------- */
.t-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); position: relative; }
.t-steps::before {
  /* the thin path between the markers */
  content: "";
  position: absolute;
  inset-inline-start: 25px;
  top: 30px; bottom: 30px;
  width: 1px;
  background: linear-gradient(var(--orchid-300), var(--lavender-200));
}
.t-step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.t-step__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 28px; margin-top: 3px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1.5px solid var(--plum-700);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0; line-height: 1; color: var(--plum-700);
  font-variant-numeric: tabular-nums;
  position: relative; z-index: 1;
}
.t-step p { color: var(--ink-700); line-height: 1.8; max-width: var(--measure); }

/* ---------- Care (Sivan + text) ---------- */
.t-care { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 760px) { .t-care { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); } }
.t-portrait {
  /* the homepage hero capsule (logo "ס" proportions, about 2.4 : 1) with Sivan rising out of its rounded end */
  --img-h: min(300px, 72vw);
  --cap-h: calc(var(--img-h) * 0.5);
  position: relative;
  margin: 0;
  height: var(--img-h);
  width: min(100%, calc(var(--img-h) * 1.2));
}
@media (min-width: 760px) { .t-portrait { --img-h: min(300px, 24vw); } }
.t-portrait__cap {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--cap-h);
  border-radius: var(--radius-pill);
  background: var(--lavender-200);
  overflow: hidden;
}
.t-portrait__img {
  position: absolute;
  bottom: 0;
  right: 4%;
  height: var(--img-h);
  width: auto;
  max-width: none;
}
.t-portrait__img--top { clip-path: inset(0 0 calc(var(--cap-h) - 1px) 0); }
/* inside the capsule the image is positioned against the capsule, so lift it back to the figure's bottom */
.t-portrait__cap .t-portrait__img { bottom: 0; }

/* ---------- Related treatments ---------- */
.t-related { padding-top: clamp(2rem, 1.5rem + 3vw, 4rem); }
.t-links__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: 22px 0;
  text-align: start;
}
.t-links__go, .t-links__here {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(90, 9, 84, 0.2);
  color: var(--plum-700);
  transition: background-color 1.1s var(--ease-out), color 1.1s var(--ease-out), border-color 1.1s var(--ease-out), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.t-links__go .icon, .t-links__here .icon { width: 18px; height: 18px; }
.t-links__here { border-color: transparent; }
.t-links__here .icon { width: 26px; height: 26px; }
.t-links__link .acc__title { transition: color 1s var(--ease-out); }
.t-links__link[aria-current] .acc__title { color: var(--plum-700); }
@media (hover: hover) {
  .t-links__link:hover .acc__title { color: var(--plum-700); }
  .t-links__link:not([aria-current]):hover .t-links__go { background: var(--lavender-100); border-color: var(--orchid-300); transform: translateX(-3px); }
}

/* ---------- Motion (reduced motion collapses the tokens; these add only what tokens can't) ---------- */
@media (prefers-reduced-motion: reduce) {
  .t-panel::before { transition: none !important; }
}

/* ---------- Phones: denser legend and cards ---------- */
@media (max-width: 599px) {
  .t-factor { gap: var(--space-2); padding: var(--space-5); }
}
.t-factor__term { display: inline-block; font-weight: 700; color: var(--plum-700); transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }

.t-care__text p { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 300; line-height: 1.65; color: var(--ink-900); }
.t-care__cta { margin-top: var(--space-6); --btn-h: 46px; padding: 0 1.5em; font-size: calc(var(--text-xs) * 1.1); }
@media (hover: hover) { .t-care__cta:hover .icon--move { transform: translateX(-4px); } }

/* ==========================================================================
   Rollout modules (2026-11-21): the same family, composed per page
     .t-hero__title--long   a long page title, a size down
     .t-article--plain      no in-page index: one reading column (short pages)
     .t-prose--lg           an opening paragraph too long for .t-lead
     .t-more                in-text links set as hairline arrow rows
     .t-checks              short lists with capsule ticks
     .t-cards / .t-card     titled cards (types, techniques)
     .t-duo                 two panels side by side (men / women)
     .t-rows                full-width hairline rows: title beside text
     .t-media               the homepage video player shell
     .t-path                titled steps on the thin path
     .t-faq                 the homepage accordion, for questions and answers
     .t-group               a chapter of a long page
   ========================================================================== */
.t-hero__title--long { font-size: calc(var(--text-display) * 0.62); max-width: 18ch; line-height: 1.12; }
@media (max-width: 759px) { .t-hero__title--long { max-width: 13ch; } }

.t-article--plain .t-article__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .t-article--plain .t-article__body { width: min(100%, 52rem); margin-inline-start: auto; margin-inline-end: 8%; }
}

.t-prose--lg p:first-child { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 300; line-height: 1.7; color: var(--ink-900); }
.t-prose a, .t-panel a, .t-card a:not(.t-card__go), .t-checks a { color: var(--plum-700); text-decoration: underline; text-decoration-color: var(--orchid-300); text-underline-offset: 3px; transition: text-decoration-color 1s var(--ease-out); }
@media (hover: hover) { .t-prose a:hover, .t-panel a:hover, .t-checks a:hover { text-decoration-color: var(--plum-700); } }
.t-panel strong, .t-prose strong { font-weight: 700; color: var(--plum-700); }

/* in-text links as rows (the live page's links, same text and order) */
.t-more { display: grid; border-top: 1px solid var(--line); max-width: var(--measure); }
.t-more a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 18px 0; border-bottom: 1px solid var(--line);
  color: var(--ink-900); font-size: var(--text-base);
  transition: color 1s var(--ease-out);
}
.t-more br { display: none; }
.t-more .t-links__go { transition: background-color 1.1s var(--ease-out), border-color 1.1s var(--ease-out), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) {
  .t-more a:hover { color: var(--plum-700); }
  .t-more a:hover .t-links__go { background: var(--lavender-100); border-color: var(--orchid-300); transform: translateX(-3px); }
}

/* capsule ticks */
.t-checks { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 600px) { .t-checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t-checks li {
  position: relative;
  padding: 16px 22px; padding-inline-start: 58px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lavender-200);
  background: var(--white);
  color: var(--ink-700); line-height: 1.6;
}
.t-checks li::before {
  content: ""; position: absolute; inset-inline-start: 20px; top: 50%;
  width: 22px; height: 10px; margin-top: -5px;
  border-radius: var(--radius-pill); background: var(--orchid-300);
}
.t-checks--tall li { border-radius: var(--radius-lg); padding-top: 20px; padding-bottom: 20px; }
.t-checks--tall li::before { top: 30px; }

/* titled cards */
.t-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 1.6vw, 20px); }
.t-card {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-xl);
  background: var(--lavender-100);
}
.t-card--line { background: var(--white); border: 1px solid var(--lavender-200); }
.t-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--space-4); }
.t-card__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; line-height: 1.3; color: var(--plum-700); }
.t-card p { color: var(--ink-700); line-height: 1.8; max-width: var(--measure); }
.t-card p + p { margin-top: var(--space-3); }
.t-card .t-defs { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--lavender-200); }
.t-card .t-defs p { font-size: var(--text-sm); }
.t-card__title, .t-duo .t-card__title { transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { .t-card:hover .t-card__title { transform: translateY(-3px); } }

.t-duo { display: grid; gap: clamp(12px, 1.6vw, 20px); }
@media (min-width: 760px) { .t-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t-duo .t-card { border-radius: var(--radius-xl); }
@media (min-width: 760px) { .t-duo .t-card:first-child { border-start-end-radius: 140px; } .t-duo .t-card:last-child { border-end-start-radius: 140px; } }

/* full-width rows: title on one side, text on the other (techniques) */
.t-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.t-row { display: grid; gap: var(--space-4); padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
@media (min-width: 960px) { .t-row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-9); } }
.t-row__title { display: flex; align-items: baseline; gap: 16px; font-size: var(--text-xl); font-weight: 400; line-height: 1.3; color: var(--plum-700); }
.t-row__title .t-num { flex: none; transform: translateY(-0.3em); }
.t-row__body p { color: var(--ink-700); line-height: 1.85; max-width: var(--measure); }
.t-row__body p:first-child { font-size: 1.06em; }

/* video */
.t-media { max-width: 46rem; }
.t-media .video { border-radius: var(--radius-xl); }

/* titled steps */
.t-path { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3rem); position: relative; }
.t-path::before { content: ""; position: absolute; inset-inline-start: 25px; top: 30px; bottom: 30px; width: 1px; background: linear-gradient(var(--orchid-300), var(--lavender-200)); }
.t-path > li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.t-path__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; line-height: 1.35; color: var(--plum-700); margin-bottom: var(--space-3); }
.t-path p { color: var(--ink-700); line-height: 1.8; max-width: var(--measure); }
.t-path p + p, .t-path p + .t-media, .t-path .t-media + p { margin-top: var(--space-4); }

/* questions and answers: the homepage accordion */
.t-faq { border-top: 1px solid var(--line); }
.t-faq .acc__item { border-bottom: 1px solid var(--line); }
.t-faq .acc__title { font-size: var(--text-lg); line-height: 1.4; text-align: start; }
.t-faq .acc__inner > * + * { margin-top: var(--space-4); }
.t-faq .acc__inner { padding-bottom: var(--space-6); }
.t-faq .t-prose p { font-size: 1rem; }

/* chapters of a long page */
.t-group { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.t-group__title { display: flex; align-items: baseline; gap: 16px; font-size: var(--text-2xl); font-weight: 300; line-height: 1.15; color: var(--plum-700); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.t-group__title .t-num { flex: none; transform: translateY(-0.5em); }
.t-sub { font-size: var(--text-xl); font-weight: 400; line-height: 1.3; color: var(--plum-700); margin-bottom: var(--space-5); }


.t-lead--wide p { max-width: 40ch; }
.t-lead--md p { font-size: var(--text-lg); line-height: 1.65; max-width: 46ch; }
.t-panel--strong p:first-child { font-family: inherit; font-size: inherit; }
.t-panel--strong p { line-height: 1.85; }
.t-panel__term { display: block; margin-bottom: 0.35em; font-weight: 400; color: var(--plum-700); }
.t-more { margin-top: var(--space-6); }
.t-more a > span:first-child { text-decoration: none; }
.t-sub { font-size: var(--text-xl); }
.t-faq .acc__heading { font-size: inherit; font-weight: inherit; }
.t-path .t-media { margin-top: var(--space-5); }
.t-duo .t-card__title.t-h2 { margin-bottom: var(--space-4); font-size: var(--text-xl); }
.t-block--duo { display: block; }

/* ---------- rollout polish ---------- */
@media (min-width: 960px) {
  /* plain pages: the reading column starts under the title (right edge); the stem keeps the left */
  .t-article--plain .t-article__body { margin-inline-start: 0; margin-inline-end: auto; }
}
@media (min-width: 760px) { .t-hero__title { max-width: 18ch; } }
.t-block > :not(.t-h2) + * { margin-top: var(--space-6); }
.t-care__text p + p { margin-top: var(--space-4); }
/* care beside a longer text: a smaller capsule, the text set as reading text */
@media (min-width: 760px) { .t-care--prose { grid-template-columns: auto minmax(0, 1fr); align-items: start; } }
.t-care--prose .t-portrait { --img-h: min(240px, 60vw); }
@media (min-width: 760px) { .t-care--prose .t-portrait { position: sticky; top: calc(var(--header-h) + 40px); } }
.t-care--prose .t-care__text p { font-family: var(--font-body, inherit); font-size: var(--text-base); line-height: 1.8; color: var(--ink-700); }
.t-care--prose .t-care__text p:first-child { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.65; color: var(--ink-900); }
.t-panel--plain p:first-child { font-family: inherit; font-size: inherit; font-weight: 400; color: var(--ink-700); }
.t-panel--plain .t-panel__term { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; line-height: 1.45; margin-bottom: 0.6em; }
.t-panel--strong strong { font-weight: 600; }
@media (min-width: 600px) {
  .t-factors--tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-factors--tips .t-factor:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.t-row__body a { color: var(--plum-700); text-decoration: underline; text-decoration-color: var(--orchid-300); text-underline-offset: 3px; }
@media (hover: hover) { .t-row__body a:hover { text-decoration-color: var(--plum-700); } }
.t-care--prose .t-portrait { width: calc(var(--img-h) * 1.2); max-width: 100%; }
/* in-text link rows run the full width of the panel above them (Aviv, 2026-11-21) */
.t-more { max-width: none; }

/* Aviv, 2026-11-21: the content starts closer under the title on every treatment page */
@media (min-width: 760px) { .t-hero { padding-bottom: calc(clamp(1.5rem, 2.5vw, 2.5rem) + 40px); } }   /* Aviv: +40px */
.t-hero + .t-article { padding-top: 0; }
@media (max-width: 759px) { .t-hero { padding-bottom: 1.75rem; } }

/* ---------- Treatments index (treatments/index.html): every treatment as a large hairline row ---------- */
.t-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .t-index { columns: 2; column-gap: var(--space-9); border-top: 0; } .t-index li { break-inside: avoid; border-top: 1px solid var(--line); } .t-index li:nth-child(6) { border-top: 1px solid var(--line); } }
.t-index__link {
  display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; align-items: center; gap: var(--space-4);
  padding: 26px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300; line-height: 1.3; color: var(--ink-900);
}
@media (min-width: 960px) { .t-index__link { border-bottom: 0; } .t-index li:last-child .t-index__link, .t-index li:nth-child(5) .t-index__link { border-bottom: 1px solid var(--line); } }
.t-index__link .t-num { font-family: var(--font-body); }
.t-index__name { transition: color 1s var(--ease-out), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.t-index__link .t-links__go { transition: background-color 1.1s var(--ease-out), border-color 1.1s var(--ease-out), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) {
  .t-index__link:hover .t-index__name { color: var(--plum-700); transform: translateX(-4px); }
  .t-index__link:hover .t-links__go { background: var(--lavender-100); border-color: var(--orchid-300); transform: translateX(-3px); }
}

/* Aviv, 2026-11-21: no long text in narrow columns.
   - the two pain panels stack as full-width boxes (women first)
   - Sivan's capsule sits above a longer text instead of beside it
   - the post-birth tips run one per row */
.t-duo--stack { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 760px) {
  .t-duo--stack .t-card { border-radius: var(--radius-xl) !important; padding: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(2rem, 1.5rem + 3vw, 3.5rem); }
  .t-duo--stack .t-card:first-child { border-start-end-radius: 120px !important; }
  .t-duo--stack .t-card:last-child { border-end-start-radius: 120px !important; }
}
@media (min-width: 760px) { .t-care--prose { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); } .t-care--prose .t-portrait { position: relative; top: auto; } }
@media (min-width: 600px) { .t-factors--tips { grid-template-columns: minmax(0, 1fr); } }
.t-factors--tips .t-factor { grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: var(--space-4); }
.t-factors--tips .t-factor__num { margin-top: 2px; }

/* Aviv, 2026-11-21: the cause's term on its own line, the text starting below it (no dash) */
.t-factor__term { display: block; margin-bottom: 4px; }

/* numbered capsules for short items (constipation causes): sized to their words, no empty space around them */
.t-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.t-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding-block: 10px; padding-inline-start: 10px; padding-inline-end: 22px;
  border-radius: var(--radius-pill);
  background: var(--lavender-100);
  color: var(--ink-900); line-height: 1.45;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.t-pill__num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 24px; border-radius: var(--radius-pill);
  background: var(--white); border: 1.5px solid var(--orchid-400);
  font-size: var(--text-xs); font-weight: 700; line-height: 1; color: var(--plum-700); font-variant-numeric: tabular-nums;
}
@media (hover: hover) { .t-pill:hover { transform: translateY(-2px); } }

/* ---------- Variant B modules (constipation proposal) ---------- */
/* intro beside a ruled, numbered list */
.t-split { display: grid; gap: var(--space-7, 2.5rem); }
@media (min-width: 960px) { .t-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9, 5rem); align-items: start; } .t-split__lead { position: sticky; top: calc(var(--header-h) + 32px); } }
.t-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.t-ledger__item {
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; gap: 12px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  font-size: var(--text-lg); line-height: 1.5; color: var(--ink-900);
}
.t-ledger__item > span:last-child, .t-ledger__item .t-num {
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), color 1.2s var(--ease-out);
}
.t-ledger__item .t-num { font-size: var(--text-sm); color: var(--orchid-500); }
/* hover: the words lift a touch and the hairline beneath fills in with orchid, drawn from the right */
.t-ledger__item::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
  background: linear-gradient(to left, var(--orchid-400), var(--orchid-300) 60%, transparent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .t-ledger__item:hover > span:last-child { transform: translateY(-2px); color: var(--plum-700); }
  .t-ledger__item:hover .t-num { transform: translateY(-2px); color: var(--plum-700); }
  .t-ledger__item:hover::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .t-ledger__item > span, .t-ledger__item::after { transition: none; } }

/* full-width sage band with four tiles */
.t-band { background: var(--green-50); padding-block: var(--section-y); }
.t-band .t-prose p { color: var(--ink-700); }
.t-tiles { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 600px) { .t-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .t-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.t-tile {
  position: relative; padding: 26px 24px 28px;
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--green-200);
  color: var(--ink-900); line-height: 1.55; font-size: 1.12rem;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.t-tile::before { content: ""; display: block; width: 26px; height: 10px; margin-bottom: 16px; border-radius: var(--radius-pill); background: var(--sage-200); }
@media (hover: hover) { .t-tile:hover { transform: translateY(-3px); } }

/* closing statement in a plum capsule */
.t-statement {
  padding: clamp(2rem, 1.5rem + 3vw, 3.75rem) clamp(1.5rem, 1rem + 5vw, 6rem);
  border-radius: var(--radius-xl); background: var(--plum-700); color: var(--white);
}
@media (min-width: 760px) { .t-statement { border-radius: 140px; } }
.t-statement p { max-width: 52ch; }
.t-statement p strong { font-weight: inherit; }
.t-statement p:first-child { color: var(--lavender-200); line-height: 1.8; }
.t-statement p + p { margin-top: var(--space-5); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300; line-height: 1.45; }
.t-after-band { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.t-ledger--after { margin-top: var(--space-6); max-width: 50rem; }

/* ==========================================================================
   Information centre pages (מרכז מידע) — built on the treatment template
   ========================================================================== */
.t-stack > * + * { margin-top: clamp(4rem, 3rem + 4vw, 7.5rem); }
.t-more-top { margin-top: var(--space-6); }
.t-panel--after { margin-top: var(--space-7); }
.t-h2--lead { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300; line-height: 1.5; color: var(--ink-900); max-width: 34ch; }

/* longer sentences in the ruled list */
.t-ledger--prose .t-ledger__item { font-size: 1.06rem; line-height: 1.8; color: var(--ink-700); padding-block: 22px; }
.t-ledger--prose .t-ledger__item .t-num { font-size: var(--text-sm); }

/* videos with a title under each (physiotherapy treatment, pelvic floor) */
.t-vids { display: grid; gap: clamp(20px, 2vw, 32px); }
@media (min-width: 760px) { .t-vids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .t-vids:not(.t-vids--2) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.t-vid { margin: 0; }
.t-vid .video, .t-vid__media .video { border-radius: var(--radius-lg); }
.t-vid__title {
  margin-top: var(--space-4); padding-inline-start: 34px; position: relative;
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; line-height: 1.35; color: var(--plum-700);
}
.t-vid__title::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 22px; height: 10px; border-radius: var(--radius-pill); background: var(--orchid-300); }

/* anatomy illustrations (pelvic floor): two white frames side by side, captions below */
.t-anat { display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 700px) { .t-anat { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 62rem; } }
.t-anat__fig { margin: 0; }
.t-anat__frame {
  display: grid; place-items: center; padding: clamp(1rem, 0.5rem + 2vw, 2.25rem);
  border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--lavender-200);
  transition: border-color 1.1s var(--ease-out);
}
.t-anat__frame img { width: 100%; max-width: 360px; height: auto; transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { .t-anat__frame:hover { border-color: var(--orchid-300); } .t-anat__frame:hover img { transform: scale(1.02); } }
.t-anat__cap { margin-top: var(--space-4); text-align: center; font-family: var(--font-display); font-size: var(--text-lg); color: var(--plum-700); }

/* glossary: the table as an accordion */
.t-dict__head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; color: var(--ink-500); }
.t-dict__list .acc__trigger { gap: 16px; }
.t-dict__num { flex: none; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; color: var(--orchid-500); font-variant-numeric: tabular-nums; }
.t-dict__grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .t-dict__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); } }
.t-dict__col { padding: var(--space-5) var(--space-5) var(--space-6); border-radius: var(--radius-lg); background: var(--lavender-50); }
.t-dict__col--aka { background: var(--white); border: 1px solid var(--lavender-200); }
.t-dict__label { margin-bottom: var(--space-3); font-size: var(--text-sm); font-weight: 700; color: var(--plum-700); }
.t-dict__col p { color: var(--ink-700); line-height: 1.8; overflow-wrap: anywhere; }
.t-dict__col p + p { margin-top: var(--space-3); }
.t-dict__list .acc__title { flex: 1; text-align: start; }
.t-anat__frame img { width: auto; max-width: 100%; height: clamp(260px, 28vw, 420px); object-fit: contain; }
.t-anat > .t-anat__fig { margin-top: 0; }

/* ==========================================================================
   About page (אודות)
   ========================================================================== */
.a-intro { padding-block: clamp(1rem, 0.5rem + 2vw, 2.5rem) 0; }
.a-intro__grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: start; }
@media (min-width: 900px) { .a-intro__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
/* the photo in a tall capsule, like the logo's "ס" and the homepage portrait */
.a-intro__photo { margin: 0; max-width: 440px; justify-self: center; width: 100%; }
@media (min-width: 900px) { .a-intro__photo { justify-self: start; position: sticky; top: calc(var(--header-h) + 32px); } }
.a-intro__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 240px 240px var(--radius-xl) var(--radius-xl); background: var(--lavender-100); }
.a-intro__hello { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 300; line-height: 1.2; color: var(--plum-700); margin-bottom: var(--space-5); }
.a-intro__letter .t-prose { margin-top: var(--space-5); }
.a-intro__sign { margin-top: var(--space-6); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 300; line-height: 1.5; color: var(--plum-700); }
.a-intro__lang { margin-top: var(--space-5); }
.a-intro__en {
  display: inline-flex; align-items: center; gap: 10px; flex-direction: row-reverse;
  padding: 10px 20px; border-radius: var(--radius-pill); border: 1px solid var(--lavender-200); background: var(--white);
  color: var(--plum-700); font-weight: 600; font-size: var(--text-sm);
  transition: background-color 1.1s var(--ease-out), border-color 1.1s var(--ease-out);
}
.a-intro__en .icon { width: 16px; height: 16px; transform: scaleX(-1); transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { .a-intro__en:hover { background: var(--lavender-100); border-color: var(--orchid-300); } .a-intro__en:hover .icon { transform: scaleX(-1) translateX(-3px); } }

/* research timeline: year capsules on a thin line */
.t-years { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); position: relative; }
.t-years::before { content: ""; position: absolute; inset-inline-start: 35px; top: 18px; bottom: 18px; width: 1px; background: linear-gradient(var(--orchid-300), var(--lavender-200)); }
.t-years__item { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-5); align-items: baseline; }
.t-years__year {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  height: 30px; border-radius: var(--radius-pill); background: var(--white); border: 1.5px solid var(--orchid-400);
  font-size: var(--text-sm); font-weight: 700; color: var(--plum-700); font-variant-numeric: tabular-nums;
}
.t-years__item--lead .t-years__year { background: var(--plum-700); border-color: var(--plum-700); color: var(--white); }
.t-years__item--lead .t-years__year .icon { width: 22px; height: 22px; }
.t-years__text { color: var(--ink-700); line-height: 1.75; font-size: 1.06rem; }
.t-years__item--lead .t-years__text { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink-900); }

/* steps with a bold lead-in */
.t-steps--after { margin-top: var(--space-6); }
.t-step__title { display: block; margin-bottom: 0.3em; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; color: var(--plum-700); }

/* the quote inside the plastination panel */
q.a-quote { quotes: none; font-family: var(--font-display); color: var(--plum-700); }

/* the Facebook post from the live page */
.a-post { margin: var(--space-6) 0 0; max-width: 500px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--lavender-200); background: var(--white); }
.a-post iframe { display: block; width: 100%; max-width: 500px; border: 0; }

/* publications */
.t-pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.t-pub { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-4); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--lavender-200); align-items: baseline; transition: border-color 1.1s var(--ease-out); }
@media (hover: hover) { .t-pub:hover { border-color: var(--orchid-300); } }
.t-pub__text { color: var(--ink-700); line-height: 1.7; text-align: left; overflow-wrap: anywhere; }
.t-pub__links { margin-top: var(--space-3); display: flex; gap: 10px; align-items: center; color: var(--ink-300); }
.t-pub__link { display: inline-flex; padding: 4px 14px; border-radius: var(--radius-pill); background: var(--lavender-100); color: var(--plum-700); font-size: var(--text-sm); font-weight: 600; transition: background-color 1.1s var(--ease-out); }
@media (hover: hover) { .t-pub__link:hover { background: var(--lavender-200); } }
.a-intro { background: var(--white); padding-bottom: clamp(1rem, 0.5rem + 2vw, 2rem); }
@media (max-width: 899px) { .a-intro__photo { max-width: 280px; } }

/* About, round 2 (Aviv): no visible title, a smaller photo that fits the first screen, the letter centred on it */
.t-hero.t-hero--bare { min-height: 0; padding-top: calc(var(--header-h) + 1.25rem); padding-bottom: 0.5rem; }
.t-hero--bare .t-hero__long { display: none; }
.a-intro { padding-top: 0.5rem; }
@media (min-width: 900px) {
  .a-intro__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; }
  .a-intro__photo { position: static; max-width: 330px; justify-self: center; }
  .a-intro__photo img { max-height: calc(100svh - var(--header-h) - 120px); width: auto; max-width: 100%; margin-inline: auto; }
}
@media (max-width: 899px) { .a-intro__photo { max-width: 210px; } }
.t-ledger--caps .t-ledger__item { grid-template-columns: 44px minmax(0, 1fr); }
.t-ledger__cap { display: inline-flex; color: var(--orchid-400); transform: translateY(0.42em); transition: color 1.2s var(--ease-out), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.t-ledger__cap .icon { width: 30px; height: 30px; }
@media (hover: hover) { .t-ledger__item:hover .t-ledger__cap { color: var(--plum-700); transform: translateY(calc(0.42em - 2px)); } }
@media (min-width: 900px) {
  .a-intro__hello { font-size: var(--text-xl); margin-bottom: var(--space-4); }
  .a-intro__letter .t-lead--md p { font-size: 1.2rem; line-height: 1.6; max-width: 52ch; }
  .a-intro__letter .t-prose { margin-top: var(--space-4); max-width: 60ch; }
  .a-intro__letter .t-prose p { line-height: 1.7; }
  .a-intro__sign { margin-top: var(--space-4); }
  .a-intro__photo img { max-height: calc(100svh - var(--header-h) - 160px); }
}
.a-intro__end { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-5); max-width: 60ch; }
.a-intro__end .a-intro__sign, .a-intro__end .a-intro__lang { margin-top: 0; }
/* About, round 3 (Aviv): the photo's top level with the start of the letter's first paragraph; the credentials line as a small caption under it */
.a-intro__caption { margin-top: var(--space-4); text-align: center; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 400; line-height: 1.6; color: var(--plum-700); }
@media (min-width: 900px) {
  .a-intro__grid { align-items: start; }
  .a-intro__photo { margin-top: calc(var(--text-xl) * 1.2 + var(--space-4)); }   /* "שלום," above the paragraph */
}

/* =========================================================================
   Contact page (pages/contact.html): appointment note under the title,
   the shared contact section, two clinic cards with navigation links, the "טיפולים" list
   ========================================================================= */
.page-contact .t-hero { padding-bottom: clamp(1rem, 2vw, 1.75rem); }
.c-note { margin-top: var(--space-3); font-size: var(--text-lg); color: var(--ink-700); }
/* here the contact section is not the last one: keep its soft glows, no lavender floor */
.page-contact .contact.section {
  padding-block: clamp(1.5rem, 3vw, 3rem) clamp(3.5rem, 2.5rem + 4vw, 6rem);
  background:
    radial-gradient(ellipse 55% 60% at 88% 62%, rgba(219, 182, 214, 0.3), rgba(219, 182, 214, 0) 70%),
    radial-gradient(ellipse 50% 45% at 8% 70%, rgba(219, 182, 214, 0.22), rgba(219, 182, 214, 0) 70%);
}
.c-clinics { padding-top: clamp(1rem, 2vw, 2rem); }
.c-clinics__title { margin-bottom: var(--space-6); }
.c-clinics__list { display: grid; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .c-clinics__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); } }
.c-clinic {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--space-3); align-items: center;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--white);
  transition: border-color 1.2s var(--ease-out), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 1.4s var(--ease-out);
}
@media (hover: hover) { .c-clinic:hover { border-color: var(--sage-200); transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(90, 9, 84, 0.25); } }
.c-clinic__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--sage-100); color: var(--plum-700); }
.c-clinic__icon .icon { width: 20px; height: 20px; }
.c-clinic__city { margin: 0; font-family: var(--font-display); font-size: var(--text-lg, 1.4rem); font-weight: 500; color: var(--plum-700); }
.c-clinic__addr, .c-clinic__go { grid-column: 2; margin: 0; }
.c-clinic__addr { margin-top: var(--space-1, 4px); color: var(--ink-700); font-size: var(--text-sm); line-height: 1.5; }
.c-clinic__go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.c-clinic__btn { --btn-h: 44px; padding: 0 1.1em; font-size: var(--text-sm); }
@media (max-width: 459px) { .c-clinic__addr, .c-clinic__go { grid-column: 1 / -1; } }
/* one continuous white page: no hard edges between hero, contact, clinics and the treatments list */
.page-contact main { background: var(--white); }
.page-contact .c-clinics { background: transparent; }
/* Contact, round 2 (Aviv): no visible title; the note leads, details and form fit the first screen */
.page-contact .t-hero.t-hero--bare { padding-bottom: 0; }
.page-contact .c-note { margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--ink-500); }   /* round 3: small, under the message field */
.page-contact .contact.section { padding-top: clamp(1rem, 2.2vw, 2rem); }

/* =========================================================================
   מכתבי תודה (pages/testimonials.html): letters spread out on a wall,
   a soft lift on hover with the date, a large reading view over a 25% dim
   ========================================================================= */
.g-section {
  padding-block: clamp(2rem, 4vw, 3.5rem) var(--section-y);
  /* round 2 (Aviv): the site's purple gradient instead of the beige ground: soft lavender glows, fading back to white at both ends */
  background:
    radial-gradient(ellipse 55% 40% at 85% 30%, rgba(219, 182, 214, 0.42), rgba(219, 182, 214, 0) 70%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(219, 182, 214, 0.34), rgba(219, 182, 214, 0) 70%),
    linear-gradient(180deg, var(--white) 0%, var(--lavender-50) 18%, var(--lavender-100) 55%, var(--lavender-50) 85%, var(--white) 100%);
}
.g-wall { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(14px, 3vw, 22px); }
@media (min-width: 760px) { .g-wall { columns: 3; column-gap: clamp(24px, 3vw, 44px); } }
@media (min-width: 1180px) { .g-wall { columns: 4; } }
.g-item { break-inside: avoid; margin-bottom: clamp(14px, 3vw, 44px); position: relative; }
.g-tile {
  position: relative; display: block; width: 100%; padding: clamp(6px, 1vw, 10px); border: 1px solid var(--line); border-radius: 18px;
  background: var(--white); cursor: zoom-in; transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 10px 30px -24px rgba(42, 4, 39, 0.35);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 1.2s var(--ease-out), border-color 1.2s var(--ease-out);
}
.g-tile__img { display: block; width: 100%; height: auto; border-radius: 12px; }
.g-tile__date {
  position: absolute; inset-inline-start: 50%; bottom: 14px; translate: -50% 6px; /* RTL: start = right; pulled back to centre */
  padding: 5px 14px; border-radius: 999px; background: var(--plum-700); color: var(--white); font-size: var(--text-xs); white-space: nowrap;
  opacity: 0; transition: opacity 0.9s var(--ease-out), translate 1.1s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none;
}
[dir="rtl"] .g-tile__date { translate: 50% 6px; }
@media (hover: hover) {
  .g-item:hover { z-index: 2; }
  .g-tile:hover { transform: rotate(0deg) scale(1.08); border-color: var(--sage-200); box-shadow: 0 30px 60px -30px rgba(42, 4, 39, 0.45); }
  .g-tile:hover .g-tile__date { opacity: 1; translate: -50% 0; }
  [dir="rtl"] .g-tile:hover .g-tile__date { translate: 50% 0; }
}
.g-tile:focus-visible { outline: 2px solid var(--plum-700); outline-offset: 4px; transform: rotate(0deg) scale(1.04); }
.g-tile:focus-visible .g-tile__date { opacity: 1; }

.g-viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink-900); overflow: hidden;
}
.g-viewer::backdrop { background: rgba(20, 10, 19, 0.25); opacity: 0; transition: opacity 0.35s var(--ease-out); }
.g-viewer.is-open::backdrop { opacity: 1; }
.g-lock { overflow: hidden; }
.g-viewer__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(64px, 8vh, 88px) clamp(16px, 7vw, 96px); overflow: auto; overscroll-behavior: contain; }
.g-viewer__fig { margin: 0; display: grid; justify-items: center; gap: 12px; opacity: 0; transform: scale(0.96); transition: opacity 0.35s var(--ease-out), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.g-viewer.is-open .g-viewer__fig { opacity: 1; transform: none; }
.g-viewer__img {
  display: block; width: auto; height: auto; max-width: min(100%, 1100px); max-height: calc(100svh - 190px);
  padding: 10px; background: var(--white); border-radius: 18px; box-shadow: 0 40px 90px -30px rgba(20, 10, 19, 0.55);
  opacity: 0.001; transition: opacity 0.4s var(--ease-out);
}
.g-viewer__img.is-in { opacity: 1; }
.g-viewer.is-tall .g-viewer__stage { place-items: start center; }
.g-viewer.is-tall .g-viewer__img { max-height: none; }
.g-viewer__cap { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px; border-radius: 999px; background: var(--white); font-size: var(--text-sm); color: var(--plum-700); box-shadow: 0 10px 30px -18px rgba(20, 10, 19, 0.5); }
.g-viewer__count { color: var(--ink-500); font-size: var(--text-xs); direction: ltr; }
.g-viewer__btn {
  position: fixed; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 999px;
  background: var(--white); color: var(--plum-700); cursor: pointer; box-shadow: 0 10px 30px -14px rgba(20, 10, 19, 0.5);
  transition: background-color 0.9s var(--ease-out), color 0.9s var(--ease-out), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.g-viewer__btn .icon { width: 22px; height: 22px; }
@media (hover: hover) { .g-viewer__btn:hover { background: var(--plum-700); color: var(--white); transform: scale(1.06); } }
.g-viewer__close { top: 16px; inset-inline-end: 16px; }
.g-viewer__prev, .g-viewer__next { top: 50%; margin-top: -26px; }
.g-viewer__prev { inset-inline-start: clamp(10px, 2vw, 28px); }
.g-viewer__next { inset-inline-end: clamp(10px, 2vw, 28px); }
@media (max-width: 759px) {
  .g-viewer__stage { padding: 72px 12px 92px; }
  .g-viewer__prev, .g-viewer__next { top: auto; bottom: 18px; margin-top: 0; }
  .g-viewer__prev { inset-inline-start: calc(50% - 64px); }
  .g-viewer__next { inset-inline-end: calc(50% - 64px); }
}
@media (prefers-reduced-motion: reduce) { .g-tile, .g-viewer__fig, .g-viewer__img, .g-tile__date { transition: none; } }
.g-lock .action-bar, .g-lock .wa-fab { visibility: hidden; }   /* the viewer owns the screen */
/* About, round 5 (Aviv): the photo in our iconic capsule (a tall pill, fully rounded ends) instead of the arch frame */
.a-intro__photo img { aspect-ratio: 5 / 8; border-radius: 999px; object-position: 50% 20%; }
@media (min-width: 900px) { .a-intro__photo img { max-height: calc(100svh - var(--header-h) - 230px); } }
/* About, round 6 (Aviv): the capsule 20% smaller; photo and caption raised so the capsule's top lines up with the first sentence ("נעים להכיר") */
@media (min-width: 900px) {
  .a-intro__photo { max-width: 330px; margin-top: 0.35rem; }
  .a-intro__photo img { max-width: 264px; max-height: calc((100svh - var(--header-h) - 230px) * 0.8); }
}
@media (max-width: 899px) { .a-intro__photo img { max-width: 168px; margin-inline: auto; } }
.a-intro__caption [dir="ltr"] { white-space: nowrap; }
@media (max-width: 899px) { .a-intro__photo { max-width: 320px; } }
