/* Page templates — builds on the approved homepage stylesheet (design/assets/css/site.css).
   Only components that the homepage does not have are defined here; tokens come from :root there. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-trigger[data-current="true"]::after { transform: scaleX(1); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px var(--margin) 0; font-size: 13px; color: var(--graphite); }
.crumbs a { color: var(--anthracite); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: var(--rule); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Page head (listing pages) ---------- */
.page-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; padding: clamp(28px, 4vw, 56px) var(--margin) clamp(28px, 3vw, 40px); }
.page-head h1 { grid-column: 1 / 7; font-weight: 300; font-size: clamp(64px, 9vw, 140px); line-height: .9; letter-spacing: -.05em; color: var(--ink); }
.ph-side { grid-column: 8 / 13; padding-bottom: 8px; }
.ph-side p { font-size: 16px; line-height: 1.55; max-width: 44ch; }
.ph-side .proto-flag { margin-top: 12px; font-size: 13px; }

/* ---------- View tabs ---------- */
.view-tabs { display: flex; align-items: center; gap: 28px; margin: 0 var(--margin); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.view-tabs button { background: none; border: 0; cursor: pointer; font-size: 15px; color: var(--graphite); padding: 16px 0 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.view-tabs button:hover { color: var(--ink); }
.view-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.vt-count { margin-left: auto; font-size: 13px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.view[hidden] { display: none !important; }

/* ---------- Application row (shared by all views and the detail page) ---------- */
.app-list li + li .app-row { border-top: 1px solid var(--rule); }
.app-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: start; padding: 16px 0 18px; }
.app-row .ico { grid-row: 1 / 3; margin-top: 2px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.ar-name { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.ar-meta { grid-column: 3; grid-row: 1; font-size: 13px; color: var(--graphite); white-space: nowrap; align-self: center; }
.ar-desc { grid-column: 2 / 4; font-size: 14px; line-height: 1.5; color: var(--graphite); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-row:hover .ar-name, .app-row:focus-visible .ar-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.app-row:hover .ico { transform: scale(1.06); }
@media (hover: hover) { .app-list:has(.app-row:hover) .app-row:not(:hover) { opacity: .45; } }
.app-row { transition: opacity .25s ease; }

/* ---------- View: by zone ---------- */
.view-zone { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding: 32px var(--margin) 0; }
.vz-map { grid-column: 1 / 6; }
.vz-map .map-figure { position: sticky; top: 84px; }
.vz-list { grid-column: 7 / 13; }
.zgroup { padding-bottom: 28px; scroll-margin-top: 84px; }
.zgroup + .zgroup { padding-top: 8px; }
.zg-title { display: flex; justify-content: space-between; align-items: baseline; font: italic 400 clamp(28px, 2.4vw, 36px)/1.1 var(--note); color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.zg-title span { font: 400 13px var(--sans); color: var(--graphite); font-variant-numeric: tabular-nums; }
.zgroup.is-current .zg-title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- View: by approach ---------- */
.view-mech { padding: 32px var(--margin) 0; }
.mgroup { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); border-top: 1px solid var(--ink); padding: 22px 0 32px; }
.mg-head { grid-column: 1 / 5; }
.mg-head h3 { font-weight: 300; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.05; letter-spacing: -.035em; color: var(--ink); }
.mg-head h3 span { font-size: 14px; font-weight: 400; color: var(--graphite); letter-spacing: 0; margin-left: 6px; }
.mg-head p { font: italic 400 18px/1.4 var(--note); color: var(--ink); margin-top: 14px; max-width: 34ch; }
.mg-head cite { display: block; font: 400 12px var(--sans); color: var(--graphite); margin-top: 6px; font-style: normal; }
.mgroup .app-list { grid-column: 6 / 13; }

/* ---------- View: A to Z ---------- */
.view-az { padding: 32px var(--margin) 0; }
.az-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.az-table thead th { font-size: 13px; font-weight: 400; color: var(--graphite); text-align: left; padding: 0 12px 12px 0; border-bottom: 1px solid var(--ink); }
.az-table td, .az-table tbody th { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.az-table tbody th { font-weight: 400; }
.az-table tbody th a { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.az-table tbody th a:hover { text-decoration: underline; text-underline-offset: 4px; }
.az-table .ico { width: 36px; height: 36px; }
.az-l { width: 48px; }
.az-letter { font-weight: 300; font-size: 28px; color: var(--ink); }
.az-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.az-table .url { color: var(--graphite); font-size: 13px; text-align: right; }
.az-table .tbc { color: #8A5A00; font-size: 13px; }
.view-az .proto-flag { margin-top: 10px; }

/* ---------- Next step band + compact contact ---------- */
.next-step { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: var(--section) var(--margin) 0; padding: 20px 24px; background: var(--stone); font-size: 15px; }
.ns-actions { display: flex; align-items: center; gap: 24px; }
.ns-actions .ul { color: var(--ink); font-weight: 500; }
.page-contact { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); margin-top: var(--section); padding: var(--section) var(--margin); border-top: 1px solid var(--ink); }
.pc-head { grid-column: 1 / 5; }
.pc-head h2 { font-weight: 300; font-size: clamp(38px, 4.2vw, 60px); line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.pc-head p { margin-top: 18px; max-width: 34ch; }
.page-contact .channels { grid-column: 5 / 9; }
.pc-info { grid-column: 10 / 13; border-top: 1px solid var(--ink); }
.pc-info > div { padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
.pc-info dt { font-size: 13px; color: var(--graphite); margin-bottom: 4px; }
.pc-info dd { color: var(--ink); font-size: 15px; }

/* ---------- Detail page: head ---------- */
/* Breadcrumb and copy share the left column; the card spans both rows so its
   centre follows the full header-to-scale height, including wrapped titles. */
.detail-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 0 var(--margin); }
.detail-head > .crumbs { grid-column: 1 / 9; grid-row: 1; padding: 18px 0 0; }
.dh-text { grid-column: 1 / 8; grid-row: 2; padding: clamp(20px, 2.6vw, 36px) 0 clamp(36px, 4vw, 56px); }
.detail-head > .dh-glance { grid-row: 1 / 3; align-self: center; }
.dh-eyebrow { font-size: 14px; color: var(--graphite); margin-bottom: 14px; }
.detail-head h1 { font-weight: 300; font-size: clamp(56px, 7.6vw, 120px); line-height: .92; letter-spacing: -.05em; color: var(--ink); }
.dh-first { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink); margin-top: 28px; max-width: 52ch; }
.dh-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 28px; font-size: 15px; }
.dh-actions .ul { color: var(--ink); }
.dh-glance { grid-column: 9 / 13; border-top: 1px solid var(--ink); padding-top: 18px; }
.dh-ico { width: 96px; height: 96px; color: var(--ink); display: block; margin-bottom: 10px; }
.dh-glance dl > div { display: grid; grid-template-columns: 110px 1fr; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.dh-glance dt { font-size: 13px; color: var(--graphite); }
.dh-glance dd { color: var(--ink); }
.dh-glance .proto-flag { margin-top: 10px; font-size: 12px; line-height: 1.45; }

/* ---------- Detail page: body ---------- */
.detail-body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding: clamp(40px, 5vw, 72px) var(--margin) 0; align-items: start; }
.toc { grid-column: 1 / 4; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.toc-box summary { list-style: none; font-size: 13px; color: var(--graphite); padding-bottom: 10px; border-bottom: 1px solid var(--ink); cursor: default; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc ol { counter-reset: none; }
.toc li a { display: block; padding: 8px 0 8px 14px; font-size: 14px; line-height: 1.35; color: var(--graphite); border-left: 1px solid var(--rule); transition: color .2s, border-color .2s; }
.toc li a:hover { color: var(--ink); }
.toc li a.is-active { color: var(--ink); border-left: 2px solid var(--ink); padding-left: 13px; font-weight: 500; }

.article { grid-column: 4 / 10; max-width: 68ch; }
.article > * + * { margin-top: 1.05em; }
.article p, .article li { font-size: 17px; line-height: 1.72; color: var(--anthracite); }
.article strong { font-weight: 600; color: var(--ink); }
.article a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article h2 { font-weight: 300; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.035em; color: var(--ink); margin-top: 2.2em; padding-top: 18px; border-top: 1px solid var(--ink); scroll-margin-top: 84px; }
.article > h2:first-of-type { margin-top: 0; }
.article h3 { font-weight: 500; font-size: 21px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); margin-top: 1.8em; scroll-margin-top: 84px; }
.article h4 { font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--ink); margin-top: 1.5em; }
.article ul, .article ol { padding-left: 0; }
.article ul li { position: relative; padding-left: 22px; }
.article ul li::before { content: ""; position: absolute; left: 0; top: .82em; width: 10px; height: 1px; background: var(--ink); }
.article ol { counter-reset: n; }
.article ol li { counter-increment: n; position: relative; padding-left: 28px; }
.article ol li::before { content: counter(n); position: absolute; left: 0; font-size: 14px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.article li + li { margin-top: 4px; }
.article table { width: 100%; border-collapse: collapse; margin-top: 1.4em; font-size: 15px; }
.article th, .article td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); line-height: 1.5; }
.article thead th, .article tr:first-child th { font-size: 13px; font-weight: 500; color: var(--graphite); border-bottom: 1px solid var(--ink); }
.article tbody tr:first-child td { border-top: 1px solid var(--ink); }
/* image slots: originals are stock/AI and not shown; the slot keeps file, alt and position (article.json) */
.article .img-slot { display: none; }
/* the hidden lead slot must not push the first heading down */
html:not(.review) .article > h2.sr + .img-slot + h2 { margin-top: 0; }
html.review .article .img-slot { display: block; margin-top: 1.4em; padding: 10px 12px; border: 1px dashed #C9A35A; }
.img-slot figcaption { font-size: 12px; line-height: 1.45; color: #8A5A00; }
.art-updated { margin-top: 3em !important; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px !important; color: var(--graphite) !important; }
.art-updated .proto-flag { display: block; }

/* FAQ in the article */
.faq { margin-top: 1.4em; }
.faq h3 { margin-bottom: .6em; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 300; font-size: 24px; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 18px; }
.faq-a p { font-size: 16px; }

/* Rail */
.rail { grid-column: 10 / 13; position: sticky; top: 84px; display: grid; gap: 22px; }
.rail-doc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
.rd-name { font-size: 20px; letter-spacing: -.02em; color: var(--ink); margin-top: 12px; }
.rd-role { font-size: 14px; color: var(--graphite); margin-bottom: 8px; }
.rail-doc .ul { font-size: 14px; color: var(--ink); }
.rail-cta { border-top: 1px solid var(--ink); padding-top: 14px; display: grid; gap: 12px; justify-items: start; font-size: 14px; }
.rail-cta p { color: var(--graphite); font-size: 13px; }
.rail-cta .ul { color: var(--ink); }

/* Related */
.related { padding: var(--section) var(--margin) 0; }
.rel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.rel-head h2 { font-weight: 300; font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -.03em; color: var(--ink); }
.rel-head .ul { color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; }
.app-list-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--gutter) * 2); }
.app-list-2 li .app-row { border-top: 0 !important; border-bottom: 1px solid var(--rule); }

/* ---------- ≤ 1100 ---------- */
@media (max-width: 1100px) {
  .vz-map { grid-column: 1 / 6; }
  .vz-list { grid-column: 6 / 13; }
  .toc { grid-column: 1 / -1; position: static; max-height: none; margin-bottom: 36px; }
  .toc-box summary { cursor: pointer; display: flex; justify-content: space-between; }
  .toc-box summary::after { content: "+"; } .toc-box[open] summary::after { content: "–"; }
  .toc ol { columns: 2; column-gap: var(--gutter); }
  .article { grid-column: 1 / 9; }
  .rail { grid-column: 9 / 13; }
  .page-contact .channels { grid-column: 5 / 13; }
  .pc-info { grid-column: 1 / -1; margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gutter); }
}

/* ---------- ≤ 860 ---------- */
@media (max-width: 860px) {
  .page-head h1, .ph-side { grid-column: 1 / -1; }
  .ph-side { margin-top: 20px; }
  .view-zone { grid-template-columns: 1fr; }
  .vz-map { display: none; }
  .vz-list { grid-column: 1; }
  .mg-head, .mgroup .app-list { grid-column: 1 / -1; }
  .mgroup .app-list { margin-top: 18px; }
  .detail-head { padding-bottom: clamp(36px, 4vw, 56px); }
  .detail-head > .crumbs, .dh-text, .dh-glance { grid-column: 1 / -1; }
  .dh-text { padding-bottom: 0; }
  .detail-head > .dh-glance { grid-row: 3; }
  .dh-glance { margin-top: 32px; display: grid; grid-template-columns: 96px 1fr; column-gap: 20px; }
  .dh-glance .proto-flag { grid-column: 1 / -1; }
  .article { grid-column: 1 / -1; }
  .rail { grid-column: 1 / -1; position: static; grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .app-list-2 { grid-template-columns: 1fr; }
  .ar-meta { white-space: normal; text-align: right; }
  .pc-head, .page-contact .channels { grid-column: 1 / -1; }
  .page-contact .channels { margin-top: 28px; }
}

/* ---------- ≤ 760: phones ---------- */
@media (max-width: 760px) {
  .view-tabs { gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .view-tabs::-webkit-scrollbar { display: none; }
  .view-tabs button { white-space: nowrap; }
  .vt-count { display: none; }
  .app-row { grid-template-columns: 40px minmax(0, 1fr); }
  .app-row .ico { width: 40px; height: 40px; }
  .ar-meta { grid-column: 2; grid-row: 2; white-space: normal; text-align: left; margin-top: 2px; }
  .ar-desc { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
  .az-table thead { display: none; }
  .az-table, .az-table tbody { display: block; }
  .az-table tr { display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .az-table td, .az-table tbody th { border: 0; padding: 0; }
  .az-table td:not(.az-l) { grid-column: 2; font-size: 13px; color: var(--graphite); text-align: left; }
  .az-table .az-l { grid-row: 1 / 6; width: auto; }
  .az-letter { font-size: 22px; }
  .az-table tbody th a { font-size: 18px; }
  .next-step { flex-direction: column; align-items: flex-start; }
  .ns-actions { flex-wrap: wrap; }
  .detail-head h1 { font-size: 15vw; }
  .toc ol { columns: auto; }
  .rail { grid-template-columns: 1fr; }
  .rail-doc img { aspect-ratio: 3 / 2; }
  .article p, .article li { font-size: 16px; }
  .article table { display: block; overflow-x: auto; }
  .rel-head { flex-direction: column; gap: 10px; }
  .page-contact { grid-template-columns: 1fr; }
  .pc-info { grid-template-columns: 1fr; }
}

/* ---------- Secondary page under an application (e.g. Dudak Dolgusu Fiyatları) ---------- */
.ar-sub { display: inline-block; margin: -10px 0 18px 64px; font-size: 14px; color: var(--anthracite); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ar-sub:hover, .ar-sub:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
.az-table tbody th a.az-sub { display: block; margin: 4px 0 0 48px; font-size: 14px; letter-spacing: 0; color: var(--anthracite); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.az-table tbody th a.az-sub:hover, .az-table tbody th a.az-sub:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
@media (max-width: 760px) { .ar-sub { margin-left: 0; } .az-table tbody th a.az-sub { margin-left: 0; } }

/* ================================================================
   Review mode. Prototype notes (top bar, yellow notes, placeholders,
   unconfirmed data) are hidden in the clean preview; ?inceleme shows them.
   ================================================================ */
html:not(.review) .proto-bar, html:not(.review) .proto-flag, html:not(.review) .proto-only { display: none !important; }
.proto-exit { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; white-space: nowrap; }

/* notched phones: keep content and the fixed bar clear of the safe areas */
:root { --margin: max(clamp(20px, 3.4vw, 48px), env(safe-area-inset-left), env(safe-area-inset-right)); }

/* ---------- Zone picker (≤ 860, where the large map is hidden) ---------- */
.zone-picker { display: none; }
.face-mini .zone { pointer-events: none; cursor: default; }
.face-mini .zone text, .face-mini .zone line { display: none; }
.face-mini .zone .pt { r: 14px; stroke-width: 2; }
.face-mini .zone.is-active .pt { r: 20px; fill: var(--ink); }

/* ---------- ≤ 1100: table of contents becomes a sticky bar that names the current section ---------- */
.toc-current { display: none; }
@media (max-width: 1100px) {
  .toc { position: sticky; top: var(--hdr, 64px); z-index: 30; max-height: none; overflow: visible; background: var(--paper); margin: 0 calc(-1 * var(--margin)) 32px; padding: 0 var(--margin); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
  .toc-box summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 52px; padding: 0; border-bottom: 0; color: var(--ink); cursor: pointer; }
  .toc-label { font-size: 13px; color: var(--graphite); }
  .toc-current { display: block; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toc-box summary::after { content: "+"; font-weight: 300; font-size: 24px; line-height: 1; }
  .toc-box[open] summary::after { content: "–"; }
  .toc-box ol { position: absolute; left: 0; right: 0; top: 100%; columns: auto; background: var(--paper); padding: 4px var(--margin) 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--ink);
                max-height: calc(100dvh - var(--hdr, 64px) - 52px - 84px); overflow-y: auto; overscroll-behavior: contain; }
  .toc li a { display: flex; align-items: center; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
  html { scroll-padding-top: var(--hdr, 64px); }
  .article h2, .article h3 { scroll-margin-top: 64px; }
}

@media (max-width: 860px) {
  .zone-picker { display: block; position: sticky; top: var(--hdr, 64px); z-index: 30; background: var(--paper); margin: -32px calc(-1 * var(--margin)) 20px; padding: 0 var(--margin); border-bottom: 1px solid var(--ink); }
  .zp-toggle { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; width: 100%; min-height: 60px; padding: 8px 0; background: none; border: 0; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
  .zp-toggle::after { content: "+"; font-weight: 300; font-size: 24px; line-height: 1; }
  .zp-toggle[aria-expanded="true"]::after { content: "–"; }
  .zp-ico { width: 32px; height: 32px; color: var(--ink); }
  .zp-text { display: flex; flex-direction: column; min-width: 0; }
  .zp-label { font-size: 13px; color: var(--graphite); }
  .zp-current { font: italic 400 22px/1.15 var(--note); color: var(--ink); }
  .zp-panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 20px; align-items: start;
              background: var(--paper); padding: 12px var(--margin) 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--ink);
              max-height: calc(100dvh - var(--hdr, 64px) - 60px - 84px); overflow-y: auto; overscroll-behavior: contain; }
  .zp-panel[hidden] { display: none; }
  .zp-face { position: sticky; top: 0; }
  .zp-face .face-mini { width: 104px; height: auto; }
  .zp-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .zp-name { font: italic 400 20px/1.2 var(--note); color: var(--ink); }
  .zp-n { font-size: 13px; color: var(--graphite); font-variant-numeric: tabular-nums; }
  .zp-list a[aria-current="true"] .zp-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .zgroup { scroll-margin-top: 72px; }
}

@media (max-width: 760px) {
  /* tabs: three equal columns, always fully visible */
  .view-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; overflow: visible; }
  .view-tabs button { white-space: normal; text-align: center; min-height: 48px; padding: 12px 4px 10px; font-size: 14px; line-height: 1.2; }
  /* by-zone rows on phones: an application can appear under several zones, so rows are compact here;
     the first sentence stays in "Yaklaşıma göre" and on each detail page */
  .view-zone .app-row { grid-template-columns: 32px minmax(0, 1fr); padding: 12px 0; row-gap: 2px; }
  .view-zone .app-row .ico { width: 32px; height: 32px; }
  .view-zone .ar-desc { display: none; }
  .view-zone .ar-sub { margin: -4px 0 12px 48px; }
  /* fixed contact bar + safe area */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .page-head h1 { font-size: 16vw; }
  .zp-panel { grid-template-columns: 80px minmax(0, 1fr); column-gap: 14px; }
  .zp-face .face-mini { width: 80px; }
  .dh-glance { grid-template-columns: 64px 1fr; column-gap: 14px; }
  .dh-ico { width: 64px; height: 64px; }
  .dh-glance dl > div { grid-template-columns: 76px 1fr; }
}

/* ================================================================ D · SEÇİM dili (onaylı ana sayfayla aynı, 27.10.2026)
   Listeler: taş grisi panelde beyaz kartlar (yüz haritası, A). Tablolar: siyah başlık satırı (Bir bakışta, B).
   Görseller ve kutular: 4–6px köşe. */
.vz-map .map-figure { border-radius: 6px; }
.vz-list { background: var(--stone); padding: clamp(16px, 2vw, 24px); border-radius: 6px; align-self: start; }
.vz-list .app-list li + li { margin-top: 8px; }
.vz-list .app-list li + li .app-row { border-top: 0; }
.vz-list .app-row { background: var(--paper); border-radius: 4px; padding: 14px 16px; box-shadow: var(--e1); transition: box-shadow .25s, transform .25s, opacity .25s; }
.vz-list .app-row:hover { box-shadow: var(--e2); transform: translateY(-1px); }
.vz-list .ar-sub { margin-top: 8px; }
.view-tabs { gap: 6px; border-top: 0; border-bottom: 0; padding-top: 4px; }
.view-tabs button { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 4px; }
.view-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.az-table thead th, .article thead th { background: var(--ink); color: var(--paper); padding: 12px; border: 0; }
.az-table td, .az-table tbody th { padding-left: 12px; }
.article thead + tbody tr:first-child td { border-top: 0; }
.article thead ~ tbody td, .article thead ~ tbody th { padding-left: 12px; }
.dh-glance { background: var(--stone); border-top: 0; border-radius: 6px; padding: 20px 22px; }
.dh-glance dl > div:last-child { border-bottom: 0; }
.rail-doc img { border-radius: 4px; }
.related { margin: var(--section) var(--margin) 0; padding: clamp(24px, 3vw, 40px); background: var(--stone); border-radius: 6px; }
.related .app-list-2 { row-gap: 8px; margin-top: 18px; }
.related .app-list-2 li .app-row { background: var(--paper); border: 0 !important; border-radius: 4px; padding: 14px 16px; box-shadow: var(--e1); height: 100%; }
.related .rel-head { border-bottom: 0; padding-bottom: 0; }
.next-step { border-radius: 6px; }
.img-slot, .article img, .article figure img { border-radius: 4px; }
.page-head h1 { font-size: clamp(56px, 7vw, 112px); }

/* Otomatik tarama (27.10.2026): sayfa sonundaki iletişim bloğu 35 sayfada 245px dikey boşlukla 498px'ti. */
.page-contact { margin-top: clamp(48px, 6vw, 88px); padding: clamp(44px, 5vw, 72px) var(--margin); }

/* Uygulama fotoğrafı (27.10.2026): yazının içinde, ilk alt başlığın bölümünden sonra. */
.article .dh-photo { margin: 36px 0 8px; }
.article .dh-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 40% 45%; border-radius: 6px; }
.dh-photo figcaption { margin-top: 8px; font-size: 12px; color: #8A5A00; }

/* Geniş ekran (27.10.2026): metin 68ch ile sınırlı olduğu için 12 sütunlu ızgarada metinle kenar sütun arasında
   boşluk açılıyordu (1920px'te ~260px). 1500px üstünde üç sütun (altında onaylı 12 sütunlu düzen): artan genişlik içindekiler sütununa gider,
   metin ile hekim sütunu bitişik kalır. */
@media (min-width: 1501px) {
  .detail-body { grid-template-columns: minmax(240px, 1fr) minmax(0, 74ch) minmax(280px, 340px); column-gap: clamp(32px, 3vw, 64px); }
  .toc { grid-column: 1; }
  .article { grid-column: 2; max-width: none; }
  .rail { grid-column: 3; }
}

/* Google reviews inside an application article (Mezoterapi; 29.11.2026, M1: initials only) */
.page-reviews { margin: 28px 0 8px; }
.page-reviews .pr-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 14px; }
.page-reviews .pr-head img { width: 24px; height: 24px; }
.page-reviews .pr-head p { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.page-reviews .pr-head .ul { margin-left: auto; font-size: 15px; }
.page-reviews .pr-list { display: flex; gap: 14px; margin: 0 -12px; padding: 4px 12px 16px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.page-reviews .pr-list li { flex: 0 0 min(320px, 84%); scroll-snap-align: start; margin: 0; padding: 20px 20px 18px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.page-reviews .pr-list li::before { content: none; }
.page-reviews blockquote { display: flex; flex-direction: column; height: 100%; margin: 0; padding: 0; border: 0; }
.page-reviews blockquote p { margin: 0; font-size: 16px; line-height: 1.6; font-style: normal; color: var(--ink); }
.page-reviews footer { margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--ink); }
.page-reviews footer span { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; color: var(--graphite); }
@media (max-width: 560px) { .page-reviews .pr-head .ul { margin-left: 0; flex-basis: 100%; } }
