/* ═══════════════════════════════════════════════════════════
   BATIKAN POLAT — "Rehberli akış" ortak bileşenleri (2026-10-18)
   styles.css'i değiştirmez; sayfa içi stillerden SONRA yüklenir.
   Mevcut renkler/yazı tipleri (styles.css :root) aynen kullanılır.
   ═══════════════════════════════════════════════════════════ */

:root { --rh-r: 16px; --rh-warm: #F4EFE6; --rh-line: #E4E6E0; }

/* [hidden] her koşulda gizli kalsın (display:flex/grid kuralları UA kuralını ezmesin) */
[hidden] { display: none !important; }
.rh-tabs[hidden], .rh-panel[hidden], .rh-chip[hidden] { display: none !important; }

/* Klavye kullanıcıları için: içeriğe atla */
.rh-skip {
  position: absolute; left: 8px; top: -60px; z-index: 300;
  background: var(--accent-dark); color: #fff; padding: .7rem 1rem; border-radius: 10px;
  font-size: .9rem; font-weight: 500; transition: top .15s;
}
.rh-skip:focus { top: 8px; outline: 2px solid #fff; outline-offset: 2px; }

/* Yaklaşan sabit menü altında hedefler görünür kalsın */
[id] { scroll-margin-top: 84px; }

/* ── Genel bölüm ve tipografi ── */
.rh-wrap { max-width: 1140px; margin: 0 auto; padding: 0 5vw; }
.rh-sec { padding: 2.25rem 0; }
.rh-sec.tint { background: var(--accent-light); }
.rh-sec.white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rh-sec.warm { background: var(--rh-warm); }
.rh-eyebrow {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--accent);
}
.rh-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); flex: none; }
.rh-h2 { font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 400; line-height: 1.25; margin-bottom: .45rem; }
.rh-sub { color: var(--text-muted); font-size: .95rem; line-height: 1.75; max-width: 64ch; }
.rh-note { color: var(--text-muted); font-size: .8rem; line-height: 1.6; }
.rh-tag {
  display: inline-block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
  color: var(--accent); background: var(--accent-light); border-radius: 99px; padding: .15rem .65rem;
}
.rh-sec.tint .rh-tag { background: var(--white); }
.rh-link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.rh-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.1rem; }

/* Düğmeler: dokunma hedefi */
.btn-primary, .btn-secondary { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
.rh-btn-sm { min-height: 44px; padding: 0 1.1rem !important; font-size: .85rem !important; }

/* ── Sekmeler (kategori / konu seçimi) ── */
.rh-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.1rem; }
.rh-chip {
  min-height: 44px; padding: 0 1.05rem; border-radius: 99px; border: 1px solid var(--border); background: var(--white);
  font: inherit; font-size: .9rem; color: var(--text); cursor: pointer; display: inline-flex; align-items: center;
  transition: background .15s, border-color .15s, color .15s;
}
.rh-chip:hover { border-color: var(--accent); }
.rh-chip[aria-selected="true"], .rh-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.rh-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rh-panel[hidden] { display: none !important; }

/* ── Kartlar ── */
.rh-grid { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
.rh-card {
  display: flex; flex-direction: column; gap: .4rem; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--rh-r); padding: 1.1rem 1.15rem; min-width: 0;
}
.rh-card h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1.3; }
.rh-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.65; }
.rh-card .rh-acts { margin-top: auto; padding-top: .5rem; }
a.rh-card { transition: border-color .2s, box-shadow .2s; }
a.rh-card:hover { border-color: var(--accent); box-shadow: 0 8px 26px rgba(61,107,94,.1); }
.rh-card.quiet { background: var(--bg); }

/* ── Kısa cevap / özet kutusu ── */
.rh-box {
  background: var(--accent-light); border-left: 3px solid var(--accent); border-radius: 0 var(--rh-r) var(--rh-r) 0;
  padding: .95rem 1.15rem; font-size: .95rem; line-height: 1.75;
}
.rh-box b.rh-box-l { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: .15rem; }

/* ── İçindekiler ── */
.rh-toc { margin: 0 0 1.5rem; border: 1px solid var(--border); border-radius: var(--rh-r); background: var(--white); }
.rh-toc > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  min-height: 48px; padding: .4rem 1.1rem; font-weight: 500; font-size: .92rem;
}
.rh-toc > summary::-webkit-details-marker { display: none; }
.rh-toc > summary::after { content: "+"; content: "+" / ""; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-light); color: var(--accent); display: grid; place-items: center; font-size: 1rem; flex: none; }
.rh-toc[open] > summary::after { content: "–"; content: "–" / ""; }
.rh-toc ol { list-style: none; counter-reset: rh; padding: 0 1.1rem .85rem; margin: 0; display: grid; gap: 0; }
.rh-toc li { counter-increment: rh; border-top: 1px solid var(--border); }
.rh-toc li a { display: flex; gap: .7rem; align-items: baseline; min-height: 44px; padding: .5rem 0; font-size: .9rem; line-height: 1.45; color: var(--text); }
.rh-toc li a::before { content: counter(rh, decimal-leading-zero); font-size: .72rem; color: var(--accent); font-weight: 500; flex: none; }
.rh-toc li a:hover { color: var(--accent); }

/* ── Konuya uygun yol (yazı → aktivite → hizmet → randevu) ── */
.rh-path { list-style: none; margin: 0; padding: 0; display: grid; }
.rh-path li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .8rem; padding-bottom: 1rem; position: relative; }
.rh-path li::before { content: ""; position: absolute; left: 16.5px; top: 34px; bottom: 0; width: 1px; background: var(--rh-line); }
.rh-path li:last-child { padding-bottom: 0; }
.rh-path li:last-child::before { display: none; }
.rh-path li > i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 500; }
.rh-path li b { display: block; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.rh-path li div { font-size: .92rem; line-height: 1.6; min-width: 0; }
.rh-path li div a { display: inline-flex; align-items: center; min-height: 36px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; margin-right: .9rem; }
.rh-pathbox { background: var(--white); border: 1px solid var(--border); border-radius: var(--rh-r); padding: 1.15rem; margin-top: 2rem; }
.rh-pathbox > h2, .rh-pathbox > .rh-h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin: 0 0 .25rem; }

/* ── Katlanır bölüm (uzun içerik silinmeden kısa gösterim) ── */
.rh-fold { margin-top: 1rem; border: 1px solid var(--border); border-radius: var(--rh-r); background: var(--white); }
.rh-fold > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  min-height: 52px; padding: .5rem 1.15rem; font-weight: 500;
}
.rh-fold > summary::-webkit-details-marker { display: none; }
.rh-fold > summary::after { content: "+"; content: "+" / ""; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-light); color: var(--accent); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.rh-fold[open] > summary::after { content: "–"; content: "–" / ""; }
.rh-fold > .rh-fold-body { padding: 0 1.15rem 1.15rem; }
.rh-fold:focus-within { border-color: var(--accent); }

/* ── Blog arama ── */
.rh-search { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; }
.rh-search label { font-size: .8rem; color: var(--text-muted); width: 100%; }
.rh-search input[type="search"] {
  flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 0 1rem; border: 1px solid var(--border); border-radius: 99px;
  font: inherit; font-size: 16px; background: var(--white); color: var(--text);
}
.rh-search input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.rh-search .rh-count { font-size: .82rem; color: var(--text-muted); }
.rh-empty { padding: 1.25rem; border: 1px dashed var(--border); border-radius: var(--rh-r); color: var(--text-muted); text-align: center; }

/* ── Yaş yönlendirme şeridi ── */
.rh-ages { display: grid; gap: .6rem; margin-top: 1rem; }
.rh-ages > div { background: var(--accent-light); border-radius: var(--rh-r); padding: .8rem 1rem; font-size: .9rem; line-height: 1.5; }
.rh-ages b { display: block; font-weight: 500; }

@media (min-width: 700px) {
  .rh-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rh-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-ages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 769px) {
  .rh-sec { padding: 3.4rem 0; }
  .rh-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}
@media (min-width: 1000px) { .rh-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rh-chip, a.rh-card, .rh-skip { transition: none; }
}

/* ── Ana sayfa bileşenleri ── */
.rh-links { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; }
.rh-links li { border-top: 1px solid var(--border); }
.rh-links a { display: flex; gap: .8rem; align-items: center; min-height: 48px; padding: .4rem 0; font-size: .92rem; line-height: 1.45; }
.rh-links .k { flex: none; width: 4.7rem; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.rh-links a:hover span:not(.k) { color: var(--accent); }
.kim-card .rh-tag { align-self: flex-start; margin-bottom: .35rem; }
.kim-note { margin-top: .8rem; font-size: .8rem; color: var(--text-muted); line-height: 1.6; }
.kim-adult {
  margin-top: .75rem; padding: .7rem 1rem; border: 1px dashed #C9D4CD; border-radius: var(--rh-r); font-size: .9rem;
  color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .1rem 1rem; align-items: center;
}
.kim-adult a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
#uzmanlik-alanlari { margin-top: 1.25rem; }
#uzmanlik-alanlari > .rh-fold-body { padding-left: 0; padding-right: 0; padding-bottom: 0; }
#uzmanlik-alanlari .expertise-grid, #hizmet-kartlari .services-grid { border-radius: 0 0 var(--rh-r) var(--rh-r); }
#hizmet-kartlari { margin-top: 1.25rem; }

/* ── Uzmanlık sayfası ── */
.exp-card-header[role="button"] { cursor: pointer; }
.exp-card-header[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--rh-r); }
.rh-exp-links { grid-column: 1 / -1; }
.rh-exp-links .rh-links a { min-height: 44px; }
.exp-card.open .exp-card-body { scroll-margin-top: 90px; }
@media (min-width: 700px) { .rh-exp-links .rh-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }

/* ── Hizmetler: kısa seçim sayfası ── */
.rh-sec-tight { padding-top: 1.4rem; padding-bottom: 1.6rem; }
.rh-agebar { display: grid; gap: .2rem; margin-top: .8rem; padding: .6rem .9rem; border-radius: var(--rh-r); background: var(--accent-light); font-size: .84rem; line-height: 1.45; }
.rh-agebar b { font-weight: 500; color: var(--accent-dark); margin-right: .35rem; }
@media (min-width: 700px) { .rh-agebar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 768px) { .svc-hero { padding: 92px 5vw 18px !important; } .svc-hero-inner { gap: 1rem !important; } .svc-hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem) !important; } .svc-hero .crumb { margin-bottom: .5rem; } }

/* Geniş (tam genişlik) katlanır bölümler: eski ayrıntılar silinmeden erişilebilir kalır */
.rh-fold.rh-wide { margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: var(--white); }
.rh-fold.rh-wide:last-of-type { border-bottom: 1px solid var(--border); }
.rh-fold.rh-wide > summary { max-width: 1140px; margin: 0 auto; padding: .6rem 5vw; min-height: 60px; font-size: 1rem; }
.rh-fold.rh-wide > summary small { display: block; font-weight: 400; font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
.rh-fold.rh-wide > .rh-wide-body { padding: 0; border-top: 1px solid var(--border); }

/* ── İletişim: kimin için hızlı seçim ── */
.rh-kimin { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1.25rem; }
.rh-kimin-l { width: 100%; font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.rh-kimin .rh-chip { min-height: 44px; font-size: .88rem; }

/* ── Aktivite: üstten öneri aracı bağlantısı ve #okul çapası ── */
.rh-anchor { display: block; height: 0; overflow: hidden; scroll-margin-top: 84px; }
.tool-hero .rh-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.25rem; }
.rh-hero-btn { min-height: 46px; display: inline-flex; align-items: center; padding: 0 1.35rem; border-radius: 99px; background: #fff; color: var(--accent-dark); font-weight: 500; font-size: .92rem; }
.rh-hero-btn.sec { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.rh-hero-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Uzun sayfalarda içindekiler/yol bileşenleri, sayfa kendi bağlantı stillerini ezmesin ── */
.svc-content .rh-toc li a, .post-content .rh-toc li a, .kvkk-body .rh-toc li a { text-decoration: none; color: var(--text); font-weight: 400; }
.svc-content .rh-toc li a:hover, .post-content .rh-toc li a:hover, .kvkk-body .rh-toc li a:hover { color: var(--accent); }
.svc-content .rh-toc ol, .post-content .rh-toc ol, .kvkk-body .rh-toc ol { margin: 0; padding: 0 1.1rem .85rem; }
.svc-content .rh-toc li, .post-content .rh-toc li, .kvkk-body .rh-toc li { margin: 0; padding: 0; font-size: inherit; color: inherit; }
.svc-content .rh-pathbox h2, .post-content .rh-pathbox h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin: 0 0 .5rem; color: var(--text); }
.svc-content .rh-path, .post-content .rh-path { margin: 0; padding: 0; }
.svc-content .rh-path li, .post-content .rh-path li { margin: 0; }
.svc-content .rh-path li div a, .post-content .rh-path li div a { color: var(--accent); text-decoration: underline; font-weight: 500; }
.kvkk-body { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .kvkk-hero { padding: 96px 5vw 24px !important; }
  .kvkk-body { padding: 24px 5vw 48px !important; }
  .kvkk-table th, .kvkk-table td { padding: .6rem .7rem; }
}

/* ── Mobil: hizmet/yazı giriş alanları daha kompakt (içerik aynı) ── */
@media (max-width: 768px) {
  .svc-detail-hero { padding-top: 92px !important; padding-bottom: 22px !important; }
  .svc-detail-hero-inner { gap: 1.1rem !important; }
  .svc-detail-hero h1 { margin-bottom: .75rem !important; font-size: clamp(1.8rem, 7.6vw, 2.3rem) !important; }
  .svc-detail-hero-inner > div:first-child > p:not(.crumb) { margin-bottom: 1rem !important; line-height: 1.7 !important; font-size: .95rem !important; }
  .svc-detail-hero-inner > div:first-child > div[style*="display:flex"] { gap: .6rem !important; }
  .post-hero { padding-top: 92px !important; padding-bottom: 22px !important; }
}

/* Blog yan menüsü: konu filtreleri gerçek düğme (önceki bağlantı görünümüyle aynı) */
button.sidebar-link { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--border); font: inherit; font-size: 0.875rem; color: var(--text); text-align: left; cursor: pointer; padding: .5rem 0; min-height: 44px; }
button.sidebar-link:last-child { border-bottom: none; }
button.sidebar-link:hover { color: var(--accent); }
button.sidebar-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
