/* Prof. Barak Haviv — treatment pages, design pass 1.
   Loaded after home.css: same two inks (#0102AD, #018CA1) on white, same seam, same ball-with-ring.
   Styles the class names tools/build-mockup.js renders, so the content stays generated from content/*.md. */

.inner .container { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.inner .note { background: #FFF08A; color: #3d3300; font: 700 .8em/1.4 var(--body); padding: 1px 6px; border-radius: 4px; }
.ico-arrow { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.inner .btn { gap: 10px; }
.btn--accent { background: var(--teal); color: var(--white); }
.btn--accent:hover { background: var(--white); color: var(--teal); border-color: var(--teal); }
.btn--secondary { border-color: var(--indigo); color: var(--indigo); }
.btn--secondary:hover { background: var(--indigo); color: var(--white); }
.btn--on-deep { border-color: var(--white); color: var(--white); }
.btn--on-deep:hover { background: var(--white); color: var(--indigo); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.menu nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--teal); text-underline-offset: 10px; }

/* page hero: the words on indigo, the joint icon on white, the teal bone across the seam */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(to left, var(--indigo) 0 62%, var(--white) 62%); }
.page-hero .container { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; min-height: 460px; }
.page-hero .container > div:first-child { padding: 56px 0 64px clamp(32px, 5vw, 80px); color: var(--white); }
.page-hero h1 { font-size: clamp(38px, 4.4vw, 66px); line-height: 1.08; color: var(--white); }
.page-hero__lead { margin-top: 22px; max-width: 34em; font-size: 20px; line-height: 1.65; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero__icon { justify-self: center; width: clamp(200px, 20vw, 280px); height: auto; aspect-ratio: 1; padding: 13%; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 2px var(--indigo); }
.page-hero::after { content: ""; position: absolute; left: 38%; bottom: 46px; width: clamp(140px, 15vw, 220px); height: clamp(48px, 4.6vw, 70px); margin-left: calc(clamp(140px, 15vw, 220px) / -2); border-radius: 999px; background: var(--teal); box-shadow: 0 0 0 10px var(--white); transform: rotate(-32deg); }
.breadcrumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font: 600 15px/1.4 var(--display); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px var(--white); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-hero :focus-visible { outline-color: var(--white); }

/* reading layout: article on the start side, the page index on the end side */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(40px, 6vw, 96px); align-items: start; padding-block: var(--sec); }
.prose { max-width: 760px; }
.prose > section + section { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--indigo); }
.prose h2 { display: flex; align-items: center; gap: 16px; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.15; margin-bottom: 22px; }
.prose h2::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--indigo); }
.prose p { margin-top: 16px; font-size: 19px; line-height: 1.8; }
.prose h2 + p { margin-top: 0; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.prose ul > li { position: relative; padding-inline-start: 28px; font-size: 19px; line-height: 1.7; }
.prose ul > li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; position: relative; padding-inline-start: 52px; font-size: 19px; line-height: 1.7; min-height: 36px; }
.prose ol > li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--indigo); color: var(--white); display: grid; place-items: center; font: 800 17px/1 var(--body); }
.prose a { font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: var(--teal); }
.checks > li { padding-inline-start: 36px !important; }
.checks > li::before { width: 18px !important; height: 18px !important; top: .3em !important; border-radius: 5px !important; background: var(--white) !important; box-shadow: inset 0 0 0 2px var(--indigo); }
.meta-note { padding: 14px 20px; border: 1px dashed var(--indigo); border-radius: 16px; font-size: 16px !important; }

/* tables: an indigo head, solid rules */
.table-wrap { margin-top: 24px; overflow-x: auto; border-radius: 20px; box-shadow: inset 0 0 0 2px var(--indigo); }
.prose table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.6; }
.prose th { background: var(--indigo); color: var(--white); font: 700 17px/1.4 var(--display); text-align: start; padding: 16px 18px; }
.prose td { padding: 16px 18px; border-top: 1px solid var(--indigo); vertical-align: top; }
.prose td:first-child { font-weight: 700; }

/* research: a ruled teal panel */
.research { margin-top: 8px; padding: 28px 30px; border-radius: 24px; box-shadow: inset 0 0 0 2px var(--teal); }
.research__label { display: flex; align-items: center; gap: 10px; margin: 0 0 8px !important; font: 800 18px/1.3 var(--display) !important; }
.research__label::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }

/* FAQ: ruled rows, a drawn plus that turns to minus */
.faq { border-top: 2px solid var(--indigo); }
.faq details { border-bottom: 1px solid var(--indigo); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 0 22px 56px; font: 800 21px/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; left: 8px; top: 50%; width: 22px; height: 3px; border-radius: 2px; background: var(--teal); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { margin: 0 0 24px; }

/* condition blocks on the shoulder and knee hubs */
.cond { padding: 28px 30px 30px; border-radius: 28px; box-shadow: inset 0 0 0 2px var(--indigo); }
.cond dl { margin: 0 0 24px; display: grid; grid-template-columns: 120px 1fr; gap: 12px 24px; }
.cond dt { font: 800 17px/1.6 var(--display); }
.cond dd { margin: 0; font-size: 18px; line-height: 1.7; }

/* illustration placeholders */
.inner .arch { margin: 24px 0 0 !important; }
.inner .arch__frame { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 24px; box-shadow: inset 0 0 0 2px var(--indigo); }
.inner .arch__label { font: 700 17px/1.5 var(--display); padding: 0 24px; text-align: center; }
.inner .arch__ball { position: absolute; bottom: 22px; inset-inline-end: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px var(--white); }

/* page index */
.toc { position: sticky; top: 112px; padding-top: 18px; border-top: 2px solid var(--indigo); }
.toc__d summary { list-style: none; cursor: pointer; font: 800 26px/1.2 var(--display); margin-bottom: 12px; }
.toc__d summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0 0 24px; padding: 0; }
.toc a:not(.btn) { display: block; padding: 7px 0; font: 600 17px/1.4 var(--display); text-decoration: none; }
.toc a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
.toc .btn { width: 100%; }

/* service cards on the services page */
.grid--3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: 28px; box-shadow: inset 0 0 0 2px var(--indigo); }
.card__icon { width: 72px; height: 72px; padding: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--indigo); }
.card__title { font: 800 28px/1.15 var(--display); margin: 0; }
.card__text { margin: 0 !important; font-size: 17px !important; line-height: 1.65 !important; }
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 800 17px/1 var(--display); text-decoration: none; }
.card:hover { background: var(--indigo); color: var(--white); }
.card:hover .card__icon { background: var(--white); }

/* closing band */
.inner .section { padding: 0 var(--gutter) var(--sec); }
.inner .section .container { padding: 0; }
.cta-band { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(40px, 5vw, 72px); border-radius: 24px; background: var(--indigo); color: var(--white); }
.cta-band h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.15; color: var(--white); }
.cta-band p { margin-top: 12px; font-size: 19px; max-width: 34em; }
.cta-band :focus-visible { outline-color: var(--white); }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .toc__d summary { display: flex; align-items: center; justify-content: space-between; font-size: 22px; padding: 6px 0; }
  .toc__d summary::after { content: ""; width: 12px; height: 12px; border-inline-end: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(45deg); margin-inline-end: 6px; transition: transform .2s; }
  .toc__d[open] summary::after { transform: rotate(-135deg); }
  .toc .btn { margin-top: 12px; }
}
@media (max-width: 860px) {
  .page-hero { background: var(--indigo); }
  .page-hero .container { grid-template-columns: 1fr; min-height: 0; }
  .page-hero .container > div:first-child { padding: 40px 0 48px; }
  .page-hero__icon, .page-hero::after { display: none; }
  .page-hero .btn-row .btn { flex: 1 1 auto; }
  .cond dl { grid-template-columns: 1fr; gap: 2px; }
  .cond dd { margin-bottom: 12px; }
  .cta-band { border-radius: 20px; }
  .prose ol > li { padding-inline-start: 46px; }
}

/* ---------- all pages (about, articles, article, patients, contact) ---------- */
.ico-arrow--down { transform: rotate(-90deg); }
/* heroes without media: the whole band is ink */
.page-hero:not(.page-hero--media) { background: var(--indigo); }
.page-hero:not(.page-hero--media) .container { grid-template-columns: 1fr; min-height: 340px; }
.page-hero:not(.page-hero--media) .container > div:first-child { max-width: 900px; padding-inline-start: 0; }
.page-hero:not(.page-hero--media)::after { display: none; }
/* about: Barak on the white side, standing on the seam */
.page-hero .arch { margin: 0 !important; align-self: end; justify-self: center; width: 100%; max-width: 440px; }
.page-hero .arch__frame { aspect-ratio: auto; border-radius: 0; box-shadow: none; display: block; }
.page-hero .arch__img { width: 100%; height: auto; }
.page-hero .arch__ball { display: none; }

/* article hero: meta line and the short answer */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; font: 700 15px/1.4 var(--display); }
.article-meta span:not(.note) + span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 18px; border-radius: 50%; background: var(--teal); vertical-align: middle; }
.answer { margin-top: 28px; padding: 22px 26px; border-radius: 22px; box-shadow: inset 0 0 0 2px var(--white); max-width: 46em; }
.answer__label { font: 800 18px/1.3 var(--display); margin-bottom: 6px; }
.answer p { font-size: 19px; line-height: 1.7; }
.cover { margin: 56px 0 0; }
.cover img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 24px; background: var(--white); }

/* section headings outside prose */
.inner .section--alt { border-top: 1px solid var(--indigo); padding-top: var(--sec); }
.st { margin-bottom: 40px; }
.st__title { font-size: clamp(32px, 3vw, 44px); line-height: 1.15; }
.st__rule { display: none; }

/* article cards: image, title, short lead; the image turns capsule on hover */
.card--article { padding: 0; box-shadow: none; border-radius: 0; gap: 0; }
.card--article:hover { background: none; color: inherit; }
.card__media { display: block; width: 100%; }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; background: var(--white); transition: border-radius .35s cubic-bezier(.16, 1, .3, 1); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; flex: 1; }
.card__meta { font: 700 15px/1.3 var(--display); }
.card--article .card__title { font-size: 24px; line-height: 1.35; }
.card--article .card__title a { text-decoration: none; }
.card--article:hover .card__title a { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--teal); }
.inner .grid--3:has(.card--article) { gap: 48px 32px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* about: career timeline on one rail */
.timeline { list-style: none; margin: 24px 0 0; padding: 0; border-inline-start: 2px solid var(--teal); }
.timeline li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 0 28px 22px; font-size: 18px; line-height: 1.65; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px var(--white); }
.timeline__year { font: 800 20px/1.4 var(--body); }

/* patients: document lists */
.inner .grid--2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; padding-block: var(--sec); }
.inner .grid--2 h2 { font-size: 30px !important; margin-bottom: 18px !important; }
.doclist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--indigo); }
.doclist a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; border-bottom: 1px solid var(--indigo); font: 700 20px/1.35 var(--display); text-decoration: none; }
.doclist small { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--indigo); font: 700 12px/1.4 var(--body); }
.doclist a > span:last-child { width: 44px; height: 44px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--indigo); display: grid; place-items: center; }
.doclist a:hover { color: var(--teal); }
.inner .section > .container > .meta-note { margin-bottom: var(--sec); }

/* contact: the form and the clinic card side by side */
.inner .clinic { border-top: 0; gap: clamp(32px, 5vw, 72px); padding-block: var(--sec); align-items: start; }
.clinic-card { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: 32px; box-shadow: inset 0 0 0 2px var(--indigo); }
.clinic-card h3 { font-size: 28px; margin-bottom: 8px; }
.clinic-card label { margin-top: 8px; font: 700 17px/1.3 var(--display); }
.clinic-card input, .clinic-card select, .clinic-card textarea { min-height: 52px; padding: 12px 18px; border: 2px solid var(--indigo); border-radius: 16px; background: var(--white); color: var(--indigo); font: 400 18px/1.4 var(--body); }
.clinic-card input:focus, .clinic-card select:focus, .clinic-card textarea:focus { outline: 3px solid var(--teal); outline-offset: 2px; }
.clinic-card .btn-row { margin-top: 18px; }
#form-status { font-weight: 700; }
.clinic-card dl { margin: 12px 0 0; border-top: 2px solid var(--indigo); }
.clinic-card__row { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--indigo); }
.clinic-card dt { font: 700 16px/1.6 var(--display); }
.clinic-card dd { margin: 0; font: 700 18px/1.6 var(--body); }
.inner .map { min-height: 320px; border-radius: 32px; background: var(--indigo); color: var(--white); display: grid; place-items: center; font: 700 19px/1.4 var(--display); }

@media (max-width: 860px) {
  .page-hero--media .arch { display: none; }
  .cover img { aspect-ratio: 16 / 10; border-radius: 24px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .clinic-card { padding: 24px; border-radius: 24px; }
  .clinic-card__row { grid-template-columns: 1fr; gap: 2px; }
}

/* breathing room between any hero and the first section under it */
.inner .page-hero + .section { padding-top: var(--sec); }

/* about timeline: the numbered balls sit centred on the teal rail */
.prose ol.timeline { gap: 0; margin-top: 28px; margin-inline-start: 18px; border-inline-start: 2px solid var(--teal); }
.prose ol.timeline > li { padding: 0 0 26px 0; padding-inline-start: 38px; min-height: 0; }
.prose ol.timeline > li::before { inset-inline-start: -19px; top: -2px; width: 36px; height: 36px; box-shadow: 0 0 0 4px var(--white); }
.prose ol.timeline > li:last-child { padding-bottom: 0; }

/* contact: space between the clinic card and the map */
.inner .clinic > div { display: grid; gap: 32px; align-content: start; }

/* services: the ruled rows inside the prose column */
.prose .areas { margin-top: 8px; }
.prose .areas a { grid-template-columns: 80px minmax(0, 220px) 1fr 52px; padding: 26px 16px; font-weight: 400; text-decoration: none; }
.prose .areas li::before { display: none; }
.prose .areas > li { padding: 0; }
.inner .arch__label mark { font-size: 17px; }

/* hero image fills the whole white side, edge to edge, up to the seam */
.page-hero__img { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; margin: 0; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero:has(.page-hero__img) .container { grid-template-columns: 1fr; }
.page-hero:has(.page-hero__img) .container > div:first-child { margin-inline-end: 38%; padding-inline-end: 0; }
.page-hero:has(.page-hero__img)::after { z-index: 1; }
@media (max-width: 860px) {
  .page-hero__img { position: static; display: block; width: 100%; height: 260px; }
  .page-hero:has(.page-hero__img) .container > div:first-child { margin-inline-end: 0; }
}

/* ---------- WordPress theme additions ---------- */
.clinic-card form { display: flex; flex-direction: column; gap: 10px; }
.map--embed, .clinic__map--embed { overflow: hidden; padding: 0; }
.map--embed iframe, .clinic__map--embed iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
.wp-block-image img, .prose img { max-width: 100%; height: auto; }
