/* Ajans rehberi (/ajans-rehberi, /agency-guide): resimli, adım adım anlatım.
   Sayfaları _ceviri_yedek/arac/rehber_sayfa.py üretir; resimler _ceviri_yedek/arac/rehber_cek.py ile panel önizlemesinden çekilir.
   Renkler style.css'teki değişkenlerden gelir (açık / koyu tema). */
html, body { background: var(--bg); color: var(--text); }
body { margin: 0; font-family: var(--font); min-height: 100vh; }
body::before { display: none; }
.rh { max-width: 900px; margin: 0 auto; padding: 0 18px 64px; }

.rh-top { display: flex; align-items: center; gap: 8px; padding: 16px 0 6px; flex-wrap: wrap; }
.rh-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 17px; }
.rh-logo i { width: 28px; height: 28px; border-radius: 9px; background: var(--grad); display: inline-block; }
.rh-top .sp { flex: 1; }
.rh-nav { display: flex; align-items: center; flex-wrap: wrap; }
.rh-nav a { color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 13.5px; padding: 8px 11px; border-radius: 99px; }
.rh-nav a:hover { background: var(--surface-2); color: var(--text); }
.rh-nav a.on { color: var(--accent); }
.rh-theme { width: 40px; height: 40px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rh-theme svg { width: 18px; height: 18px; }

.rh-hero { padding: 36px 0 6px; }
.rh-kicker { color: var(--accent); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rh-hero h1 { margin: 10px 0 14px; font-size: clamp(30px, 5.2vw, 46px); letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.rh-hero p { color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 700px; margin: 0; text-wrap: pretty; }
.rh-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.rh-box { margin: 30px 0 0; padding: 20px 22px; border-radius: 20px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.rh-box h2 { font-size: 17px; margin: 0 0 8px; letter-spacing: -.01em; }
.rh-box ul { margin: 0; }

.rh-toc { margin: 22px 0 0; padding: 18px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); }
.rh-toc h2 { font-size: 13px; margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rh .rh-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 34px; display: block; }
.rh-toc li { margin: 0 0 7px; break-inside: avoid; font-size: 14.5px; }
.rh-toc a { color: var(--text); text-decoration: none; font-weight: 600; }
.rh-toc a:hover { color: var(--accent); text-decoration: underline; }

.rh-step { margin-top: 60px; scroll-margin-top: 16px; }
.rh-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.rh-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--grad); color: #fff; font-weight: 800; font-size: 19px; box-shadow: var(--glow); }
.rh h2 { text-wrap: balance; }
.rh-step h2, .rh-sec h2 { font-size: clamp(22px, 3.4vw, 28px); letter-spacing: -.025em; margin: 0; line-height: 1.15; }
.rh-sec { margin-top: 60px; scroll-margin-top: 16px; }
.rh-sec h2 { margin-bottom: 12px; }
.rh p, .rh li { color: var(--text-2); font-size: 15.5px; line-height: 1.65; }
.rh p { margin: 10px 0 0; }
.rh ul, .rh ol { padding-left: 22px; margin: 10px 0 0; display: grid; gap: 6px; }
.rh b, .rh strong { color: var(--text); font-weight: 700; }
.rh-sub { margin-top: 16px !important; font-weight: 700; color: var(--text) !important; }
.rh-note { margin: 16px 0 0 !important; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; font-size: 14.5px !important; box-shadow: var(--shadow-1); }

.rh-fig { margin: 22px 0 0; }
.rh-fig a { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); background: #f6f7fb; cursor: zoom-in; }
.rh-fig img { display: block; width: 100%; height: auto; }
.rh-fig.dar { max-width: 620px; }
.rh-fig figcaption { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.rh-faq details { border: 1px solid var(--line-soft); background: var(--surface); border-radius: 14px; padding: 0 18px; margin-top: 10px; box-shadow: var(--shadow-1); }
.rh-faq summary { cursor: pointer; font-weight: 700; padding: 14px 26px 14px 0; list-style: none; position: relative; color: var(--text); font-size: 15.5px; }
.rh-faq summary::-webkit-details-marker { display: none; }
.rh-faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; color: var(--accent); font-weight: 800; font-size: 18px; }
.rh-faq details[open] summary::after { content: "\2212"; }
.rh-faq details p { margin: 0 0 15px; }

.rh-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.rh-links a { display: block; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; box-shadow: var(--shadow-1); }
.rh-links a:hover { border-color: var(--accent-line); }
.rh-links b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.rh-links span { color: var(--text-2); font-size: 13.5px; line-height: 1.5; font-weight: 500; }

.rh-cta { margin-top: 60px; padding: 32px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-soft); text-align: center; box-shadow: var(--shadow-2); }
.rh-cta h2 { font-size: clamp(22px, 3.4vw, 28px); letter-spacing: -.025em; margin: 0; }
.rh-cta p { margin: 8px auto 0; max-width: 520px; }
.rh-cta .rh-acts { justify-content: center; }
.rh-foot { margin-top: 28px !important; color: var(--muted) !important; font-size: 12.5px !important; text-align: center; }
.rh-foot a { color: var(--accent); text-decoration: none; }

@media (max-width: 640px) {
  .rh { padding: 0 16px 48px; }
  .rh-nav a.gizle { display: none; }
  .rh-hero { padding-top: 22px; }
  .rh-hero p { font-size: 15.5px; }
  .rh .rh-toc ol { columns: 1; }
  .rh-step, .rh-sec, .rh-cta { margin-top: 44px; }
  .rh-n { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
  .rh-links { grid-template-columns: minmax(0, 1fr); }
  .rh-fig a { border-radius: 12px; }
  .rh-acts .btn { flex: 1 1 100%; justify-content: center; }
}

/* Soru-yanıt rehber sayfaları (/rehber/…, /guide/…): _ceviri_yedek/arac/soru_sayfa.py üretir. */
.rh-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 14px; font-size: 13px; color: var(--muted); }
.rh-crumb a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.rh-crumb a:hover { color: var(--accent); }
.rh-crumb b { color: var(--text); font-weight: 700; }
.rh-kisa .rh-hero { padding-top: 20px; }
.rh-kisa .rh-hero h1 { font-size: clamp(27px, 4.4vw, 40px); }
.rh-kisa .rh-sec { margin-top: 44px; }
.rh-kisa .rh-step { margin-top: 26px; }
.rh-kisa .rh-adim + .rh-step { margin-top: 6px; }
.rh-step-head h3 { font-size: clamp(18px, 2.6vw, 21px); letter-spacing: -.02em; margin: 0; line-height: 1.2; color: var(--text); }
.rh-kisa .rh-n { width: 36px; height: 36px; border-radius: 12px; font-size: 16px; }
.rh-kisa .rh-step > p, .rh-kisa .rh-step > ul, .rh-kisa .rh-step > ol { margin-left: 50px; }
.rh-adim h2 { margin-bottom: 0; }
.rh-tbl { margin-top: 14px; border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); }
.rh-tbl table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rh-tbl th, .rh-tbl td { padding: 11px 14px; text-align: left; vertical-align: top; font-size: 14.5px; line-height: 1.5; overflow-wrap: break-word; border-top: 1px solid var(--line-soft); color: var(--text-2); }
.rh-tbl th { border-top: 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.rh-tbl th:first-child, .rh-tbl td:first-child { width: 26%; }
.rh-tbl td:first-child { color: var(--text); font-weight: 600; }
.rh-foot time { font-weight: 600; }
@media (max-width: 640px) {
  .rh-kisa .rh-sec { margin-top: 34px; }
  .rh-kisa .rh-step { margin-top: 22px; }
  .rh-kisa .rh-step > p, .rh-kisa .rh-step > ul, .rh-kisa .rh-step > ol { margin-left: 0; }
  .rh-tbl th, .rh-tbl td { padding: 9px 8px; font-size: 13px; }
  .rh-tbl th { font-size: 11px; letter-spacing: .03em; }
  .rh-tbl th:first-child, .rh-tbl td:first-child { width: 31%; }
}
