/* fekr-clinic: on top of fekr-ui.css (D16) */
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--fb-ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }
main { min-height: 50vh; }
.muted { color: var(--fb-muted); }
.crisis-bar { background: #fbeee6; color: #6b3410; font-size: .85rem; padding: 6px 0; text-align: center; }
.crisis-bar a { color: #8a3b0c; font-weight: 700; }

.hero { background: var(--fb-ink); color: #dfe9e3; padding-block: 48px 42px; }
.hero .fb-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.hero h1 span { color: var(--fb-lime); font-size: .72em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero .fb-btn-line { border-color: #dfe9e3; color: #fff; }
.hero .fb-btn-line:hover { background: rgba(255, 255, 255, .08); }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-facts li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px 16px; display: grid; }
.hero-facts strong { color: #fff; }
.hero-facts span { font-size: .88rem; }

.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 38px 0 14px; flex-wrap: wrap; }
.sec-title h2 { font-size: 1.3rem; margin: 0; }
.sec-title a { font-size: .9rem; font-weight: 700; }
.cards-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.cards-list.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-card { background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: var(--fb-radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none !important; transition: border-color .15s; }
.svc-card:hover { border-color: var(--fb-brand); }
.svc-card strong { color: var(--fb-ink); }
.svc-card span { font-size: .88rem; color: var(--fb-muted); }
.svc-card.big { padding: 20px; }
.svc-card.big strong { font-size: 1.15rem; }
.tag { font-style: normal; font-size: .76rem; border-radius: 999px; padding: 1px 10px; align-self: flex-start; margin-top: 4px; }
.tag.yes { background: var(--fb-brand-soft); color: var(--fb-brand-dark); }
.tag.no { background: #f1efe9; color: #6f6656; }
.chips-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { border-radius: 999px; padding: 4px 14px; font-size: .9rem; background: var(--fb-surface); border: 1px solid var(--fb-line); color: var(--fb-text); }
.chip:hover { border-color: var(--fb-brand); text-decoration: none; }
.ev-strong { border-inline-start: 4px solid var(--fb-brand); }
.ev-moderate { border-inline-start: 4px solid var(--fb-lime); }
.ev-limited, .ev-emerging { border-inline-start: 4px solid #c9b79a; }
.tag.ev-strong, .tag.ev-moderate, .tag.ev-limited, .tag.ev-emerging { background: var(--fb-paper); color: var(--fb-muted); }

.post-head { background: var(--fb-surface); border-bottom: 1px solid var(--fb-line); padding-block: 30px 20px; }
.post-head h1 { font-size: clamp(1.45rem, 3.4vw, 2.05rem); margin-bottom: 8px; }
.narrow { max-width: 820px; }
.crumbs { font-size: .85rem; color: var(--fb-muted); margin: 0 0 8px; }
.crumbs a { color: var(--fb-muted); }
.lead { font-size: 1.05rem; margin: 0; }
.evidence { margin: 14px 0 0; background: var(--fb-paper); border-radius: 10px; padding: 8px 14px; display: grid; gap: 2px; font-size: .9rem; }
.evidence span { color: var(--fb-muted); }
.avail { margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; }
.avail .fb-btn { display: flex; width: max-content; margin-top: 10px; }
.fb-foot a[dir="ltr"] { white-space: nowrap; }
.avail.yes { background: var(--fb-brand-soft); }
.avail.no { background: #f1efe9; }
.crisis-box { margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; background: #fbeee6; border-inline-start: 5px solid #c0561b; }
.prose { margin-top: 22px; font-size: 1.04rem; line-height: 2; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.note { margin: 18px 0; padding: 10px 16px; border-inline-start: 4px solid var(--fb-lime); background: var(--fb-surface); border-radius: 8px; }
.related h2 { font-size: 1.2rem; margin: 36px 0 0; }
.reviewed { margin-top: 30px; font-size: .84rem; color: var(--fb-muted); border-top: 1px solid var(--fb-line); padding-top: 12px; }

.steps-band { margin-top: 44px; background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: var(--fb-radius); padding: 24px; }
.steps-band h2 { font-size: 1.25rem; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 12px 0 18px; }
.steps li { counter-increment: s; display: grid; gap: 2px; }
.steps li::before { content: counter(s, persian); width: 32px; height: 32px; border-radius: 50%; background: var(--fb-brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps span { color: var(--fb-muted); font-size: .9rem; }

@media (max-width: 900px) {
  .hero .fb-wrap { grid-template-columns: 1fr; }
  .cards-list.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cards-list, .cards-list.three, .steps { grid-template-columns: 1fr; }
  .prose { font-size: 1rem; }
}

/* 0.1.2: a picture on every service / method / problem card and page head (src/art.js) */
.svc-art { display: grid; place-items: center; height: 108px; margin: -14px -16px 8px; border-radius: var(--fb-radius) var(--fb-radius) 0 0; overflow: hidden; }
.svc-card.big .svc-art { margin: -20px -20px 10px; height: 140px; }
.svc-art svg { width: 64px; height: 64px; }
.svc-art.photo img, .page-art.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tone-teal { background: linear-gradient(135deg, #e3f1ee, #cfe6e1); color: #1f6f63; }
.tone-warm { background: linear-gradient(135deg, #fbefe2, #f3dcc4); color: #9a5a1c; }
.tone-green { background: linear-gradient(135deg, #e6f2e6, #d2e8d1); color: #2f6b3a; }
.tone-blue { background: linear-gradient(135deg, #e5eef7, #d2e1f0); color: #2c5b86; }
.svc-card:hover .svc-art svg { transform: scale(1.06); transition: transform .2s; }
.page-art { float: left; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 22px; margin: 0 0 8px 18px; overflow: hidden; }
.page-art svg { width: 64px; height: 64px; }
@media (max-width: 600px) { .page-art { width: 76px; height: 76px; border-radius: 16px; } .page-art svg { width: 44px; height: 44px; } }
/* English references and quotes read left to right (md.js marks them) */
.prose [dir="ltr"] { text-align: left; font-size: .9rem; }
.prose ul li[dir="ltr"] { list-style-position: inside; }

/* 0.1.3: photos on cards (16:9, full width of the card) and on the page head */
.svc-art.photo { height: auto; aspect-ratio: 16 / 9; display: block; background: #e8efe9; }
.svc-card.big .svc-art.photo { height: auto; }
.svc-art.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; transition: transform .25s; }
.svc-card:hover .svc-art.photo img { transform: scale(1.03); }
.page-photo { float: left; width: min(340px, 40%); margin: 0 0 12px 22px; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; background: #e8efe9; }
.page-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-head::after { content: ''; display: block; clear: both; }
@media (max-width: 700px) {
  .page-photo { float: none; width: 100%; margin: 4px 0 14px; aspect-ratio: 16 / 9; }
}

/* 0.1.4: every photo is 3:2, so the card box is 3:2 too and nothing is cropped (two-panel pictures such as mood and
   emotion must stay whole) */
.svc-art.photo { aspect-ratio: 3 / 2; }
.svc-art.photo img { object-fit: contain; }
@media (max-width: 700px) { .page-photo { aspect-ratio: 3 / 2; } }
.page-photo img { object-fit: contain; }
