/* Tailwind dışında kalan küçük ortak stiller (CDN'de @apply olmadığı için düz CSS) */
/* WCAG 1.4.1: metin içi bağlantılar yalnızca renkle ayrılmasın → alt çizgi.
   Düğme/çip/menü gibi öğeler Tailwind "no-underline" ile kapatır; başlıklardaki bağlantılar başlık olarak zaten ayrışır. */
a { color: #0F6B5C; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* :where ile özgüllük 0: düğme ve renkli kutulardaki text-white gibi sınıfları ezmesin */
:where(a:hover) { color: #0A4A40; text-decoration-thickness: 2px; }
:is(h1, h2, h3, h4) a { text-decoration: none; }
:is(h1, h2, h3, h4) a:hover { text-decoration: underline; }
/* WCAG 2.4.7 / 2.4.11: her zaman görünür, iki tonlu odak halkası (koyu ve açık zeminde seçilir) */
*:focus-visible { outline: 3px solid #0F6B5C; outline-offset: 2px; box-shadow: 0 0 0 5px #FBFBF8; }
/* Yer tutucu metin: varsayılan gri (2.5:1) yerine 6:1 */
::placeholder { color: #5A6168; opacity: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.vurgu {
    background: linear-gradient(transparent 58%, #F2C14E 58%, #F2C14E 92%, transparent 92%);
}

/* Görünüm: normal özgüllük (Tailwind'in input sıfırlamasını ezmeli) */
.alan {
    border: 1px solid #767B73;
    border-radius: 6px;
    padding: 0 12px;
    background: #FBFBF8;
    color: #1B1F23;
    font: inherit;
}
textarea.alan { padding-top: 10px; padding-bottom: 10px; }
/* Boyut: :where() ile özgüllük 0, böylece w-32, min-h-[40px] gibi Tailwind sınıfları bunu ezebilir */
:where(.alan) { min-height: 46px; width: 100%; }
:where(select.alan) { width: auto; }

.dugme {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 22px; border-radius: 6px;
    background: #0F6B5C; color: #fff; font-weight: 700; border: 0; cursor: pointer; text-decoration: none;
}
.dugme:hover { background: #0A4A40; color: #fff; }
.dugme-ikincil {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 16px; border-radius: 6px;
    border: 1px solid #767B73; background: #fff; color: #1B1F23; font-weight: 600; cursor: pointer; text-decoration: none;
}

.sekme { display: inline-block; padding: 12px 16px; color: #1B1F23; text-decoration: none; font-weight: 700; border-radius: 6px 6px 0 0; }
.sekme[aria-current="page"] { background: #1B1F23; color: #fff; }

.hata-metni { color: #9B1C1C; font-size: 14px; font-weight: 600; }

/* Makale gövdesi */
.makale h2 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 28px; line-height: 1.2; margin: 32px 0 12px; }
.makale h3 { font-weight: 700; font-size: 22px; margin: 24px 0 8px; }
.makale p { margin: 0 0 18px; }
.makale ul { list-style: disc; padding-left: 24px; margin: 0 0 18px; }
.makale ol { list-style: decimal; padding-left: 24px; margin: 0 0 18px; }
.makale pre { margin: 0 0 18px; padding: 18px; background: #1B1F23; color: #E8EAE3; border-radius: 8px; overflow-x: auto; font-family: "JetBrains Mono", monospace; font-size: 15px; line-height: 1.6; }
.makale :not(pre) > code { background: #EDEEE9; padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.makale table { border-collapse: collapse; margin: 0 0 18px; display: block; overflow-x: auto; }
.makale th, .makale td { border: 1px solid #DADCD5; padding: 8px 12px; }
.makale blockquote { border-left: 4px solid #F2C14E; padding-left: 16px; color: #3D444B; margin: 0 0 18px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- Yan menüler (il bölümleri + yönetim) ---- */
.il-yan-ic ul{display:flex;gap:.5rem;overflow-x:auto;padding:.25rem 0}
.il-yan, .yon-yan{margin-top:1.25rem}
.il-yan-link{display:flex;align-items:center;gap:.6rem;min-height:44px;padding:.5rem .85rem;border:1px solid #DADCD5;border-radius:10px;background:#fff;color:#1B1F23;font-weight:600;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s}
.il-yan-link:hover{border-color:#0F6B5C;background:#F2F7F5}
.il-yan-link[aria-current="page"]{background:#0F6B5C;border-color:#0F6B5C;color:#fff}
.rozet{margin-left:auto;min-width:1.6rem;padding:0 .45rem;border-radius:999px;background:#F2C14E;color:#1B1F23;font-size:13px;font-weight:800;text-align:center}
@media (min-width:1280px){
  main#icerik{position:relative}
  main#icerik:has(.il-yan), main#icerik:has(.yon-yan){padding-left:260px}
  .il-yan, .yon-yan{position:absolute;left:16px;top:0;bottom:0;width:232px;margin:0;padding-top:1.5rem}
  .il-yan-ic, .yon-yan-ic{position:sticky;top:1rem;background:#fff;border:1px solid #DADCD5;border-radius:14px;padding:.75rem .5rem;max-height:calc(100vh - 2rem);overflow-y:auto}
  .il-yan-ic ul, .yon-yan-ic ul{flex-direction:column;gap:.15rem;overflow:visible;padding:0}
  .il-yan-ic .il-yan-link, .yon-yan-ic .il-yan-link{border-color:transparent;background:transparent}
  .il-yan-ic .il-yan-link:hover, .yon-yan-ic .il-yan-link:hover{background:#F2F2EC}
  .il-yan-ic .il-yan-link[aria-current="page"], .yon-yan-ic .il-yan-link[aria-current="page"]{background:#0F6B5C;color:#fff}
}
.yon-yan-ic ul{display:flex;gap:.5rem;overflow-x:auto;padding:.25rem 0}
@media (max-width:1279px){.yon-yan-ic{display:flex;gap:.5rem;overflow-x:auto}.yon-yan-ic ul{flex-wrap:nowrap}}

/* ---- Kartlar (eczane, noter, kurum) ---- */
.kart{display:flex;flex-direction:column;gap:.55rem;height:100%;background:#fff;border:1px solid #DADCD5;border-radius:14px;padding:18px;box-shadow:0 1px 2px rgba(27,31,35,.04);transition:box-shadow .15s,border-color .15s}
.kart:hover{border-color:#767B73;box-shadow:0 6px 18px rgba(27,31,35,.08)}
.kart-simge{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;font-size:20px;font-weight:800}
.kart-etiket{align-self:flex-start;padding:.2rem .6rem;border-radius:999px;background:#FFF6DD;color:#6B4600;font-size:14px;font-weight:600}
.kart-dugme{display:inline-flex;align-items:center;gap:.35rem;min-height:44px;padding:0 .9rem;border-radius:10px;font-weight:700;text-decoration:none}
@media (prefers-reduced-motion:reduce){.kart,.il-yan-link{transition:none}}

/* ---- Araçlar ---- */
.arac-dil{display:inline-flex;border:1px solid #767B73;border-radius:999px;overflow:hidden;font-size:14px;font-weight:700}
.arac-dil a{padding:.35rem .9rem;text-decoration:none;color:#1B1F23}
.arac-dil a[aria-current="true"]{background:#1B1F23;color:#fff}
.arac-panel{background:#fff;border:1px solid #DADCD5;border-radius:14px;padding:18px}
.arac-izgara{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));align-items:start}
.arac-alan{display:flex;flex-direction:column;gap:6px;font-weight:700}
.arac-alan small{font-weight:400;color:#5A6168}
.arac input[type=range]{width:100%;accent-color:#0F6B5C;height:32px}
.arac textarea{width:100%;min-height:200px;font-family:"JetBrains Mono",ui-monospace,monospace;font-size:15px;line-height:1.5;padding:12px;border:1px solid #767B73;border-radius:10px;background:#fff;resize:vertical}
.arac textarea.birakiliyor{outline:3px dashed #0F6B5C;outline-offset:2px}
.arac-arac-cubugu{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.arac-sonuc{font-variant-numeric:tabular-nums}
.arac-buyuk{font-family:"Bricolage Grotesque",system-ui;font-weight:800;font-size:clamp(30px,6vw,44px);line-height:1.1}
.arac-ozet{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))}
.arac-ozet > div{background:#F2F2EC;border-radius:10px;padding:12px}
.arac-ozet dt{font-size:13px;font-weight:700;color:#3D444B}
.arac-ozet dd{margin-top:2px;font-size:20px;font-weight:800;font-variant-numeric:tabular-nums}
.arac-tablo{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.arac-tablo th,.arac-tablo td{padding:8px 10px;border-top:1px solid #E4E6E0;text-align:right;white-space:nowrap}
.arac-tablo th:first-child,.arac-tablo td:first-child{text-align:left}
.arac-tablo thead th{background:#F2F2EC;border-top:0;font-weight:700}
.arac-tablo tfoot td{border-top:2px solid #1B1F23;font-weight:800}
.arac-sekme{display:flex;flex-wrap:wrap;gap:6px}
.arac-sekme button{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid #767B73;background:#fff;font-weight:700}
.arac-sekme button[aria-selected="true"]{background:#0F6B5C;border-color:#0F6B5C;color:#fff}
.arac-renk{width:100%;aspect-ratio:1/1;border-radius:10px;border:1px solid rgba(0,0,0,.12)}
.arac-dosya{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:10px;border:1px dashed #767B73;cursor:pointer;font-weight:700;background:#fff}
.arac-dosya:focus-within{outline:3px solid #F2C14E}
.arac-not{font-size:14px;color:#3D444B}

/* ---- Mobil taşma güvenliği ---- */
html, body { max-width: 100%; overflow-x: clip; }
main { overflow-wrap: anywhere; }
main table, main pre, main code { overflow-wrap: normal; }
img, video, iframe { max-width: 100%; }

/* ---- Yatay kaydırma ipucu ---- */
.kaydir { position: relative; }
.kaydir-ic { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.kaydir-ic::-webkit-scrollbar { display: none; }
.kaydir::before, .kaydir::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.kaydir::before { left: 0; background: linear-gradient(to right, var(--kaydir-zemin, #FBFBF8) 25%, transparent); }
.kaydir::after { right: 0; background: linear-gradient(to left, var(--kaydir-zemin, #FBFBF8) 25%, transparent); }
.kaydir.kaydir-solda::before, .kaydir.kaydir-sagda::after { opacity: 1; }
.kaydir-ok { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 999px; border: 1px solid #767B73; background: #fff; color: #1B1F23; font-size: 20px; line-height: 26px; font-weight: 800; display: none; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.kaydir-sol { left: 2px; } .kaydir-sag { right: 2px; }
.kaydir.kaydir-solda .kaydir-sol, .kaydir.kaydir-sagda .kaydir-sag { display: block; }
.kaydir.kaydir-sagda .kaydir-sag { animation: kaydir-nabiz 1.6s ease-in-out 2; }
@keyframes kaydir-nabiz { 50% { transform: translate(4px, -50%); } }
@media (prefers-reduced-motion: reduce) { .kaydir.kaydir-sagda .kaydir-sag { animation: none; } .kaydir-ic { scroll-behavior: auto; } }
.border.kaydir-ic, .kaydir-ic.bg-white { --kaydir-zemin: #fff; }
.kaydir:has(> .bg-white) { --kaydir-zemin: #fff; }
@media (min-width: 1280px) { .il-yan .kaydir-ok, .il-yan .kaydir::before, .il-yan .kaydir::after { display: none !important; } }

/* ---- Çerez bandı ---- */
.cerez-bandi { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 560px; margin-left: auto; background: #fff; color: #1B1F23; border: 2px solid #1B1F23; border-radius: 14px; padding: 16px; box-shadow: 5px 5px 0 #1B1F23; }
.cerez-bandi[hidden] { display: none; }


/* ---- Seçim çipleri (ilçe, tür, yıl…) ---- */
.cip-grup { display: flex; flex-wrap: wrap; gap: 8px; }
.cip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #767B73; background: #fff; color: #1B1F23; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, border-color .15s; }
.cip:hover { border-color: #0F6B5C; background: #F2F7F5; color: #1B1F23; }
.cip[aria-current="page"], .dugme-ikincil[aria-current="page"], a.rounded-full[aria-current="page"] { background: #1B1F23; border-color: #1B1F23; color: #fff; }
@media (max-width: 640px) { .cip-grup { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .cip { flex: none; } }

/* ---- Etkin namaz vakti kutusu: tüm yazılar beyaz (WCAG kontrastı) ---- */
.vakit-aktif { background: #0F6B5C !important; border-color: #0F6B5C !important; }
.vakit-aktif, .vakit-aktif * { color: #fff !important; }

/* Yeşil/koyu zeminli düğme ve bağlantılarda yazı her zaman beyaz kalsın */
a.bg-petrol, a.bg-petrol *, a.bg-murekkep, a.bg-murekkep *, button.bg-petrol, .dugme, .dugme * { color: #fff; }

/* Kıble */
.kb-ana{display:grid;gap:20px;align-items:center}
@media(min-width:768px){.kb-ana{grid-template-columns:1fr 280px}}
.kb-pusula-kap{margin:0 auto;width:100%;max-width:280px}
.kb-pusula{width:100%;height:auto;display:block}
#kb-kadran{transform-origin:100px 100px;transform-box:view-box;transition:transform .2s linear}
.kb-cerceve{fill:#fff;stroke:#1F2A2E;stroke-width:2}
.kb-cizgi{stroke:#8A9195;stroke-width:1.2}.kb-cizgi.uzun{stroke:#1F2A2E;stroke-width:2}
.kb-harf{font:700 15px system-ui,sans-serif;fill:#1F2A2E;text-anchor:middle}
.kb-kuzey{fill:#9B1C1C}
.kb-ok-cizgi{stroke:#0F6B5C;stroke-width:5;stroke-linecap:round}
.kb-ok-uc{fill:#0F6B5C}.kb-kabe{fill:#111}.kb-merkez{fill:#1F2A2E}

/* Kıyafet kombini */
.kr-duzen{display:grid;gap:16px}
@media(min-width:900px){.kr-duzen{grid-template-columns:340px 1fr}}
.kr-secim{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid #DADCD5;border-radius:999px;background:#fff;cursor:pointer;font-weight:600}
.kr-secim:has(input:checked){border-color:#0F6B5C;background:#E5F1EE;box-shadow:inset 0 0 0 1px #0F6B5C}
.kr-secim input{accent-color:#0F6B5C}
.kr-renk{width:38px;height:38px;border-radius:999px;border:2px solid #fff;box-shadow:0 0 0 1px #9AA09A;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;position:relative}
.kr-renk[aria-pressed=true]{box-shadow:0 0 0 3px #0F6B5C}
.kr-ozel{background:conic-gradient(red,orange,yellow,green,blue,purple,red)}
.kr-ozel input{position:absolute;inset:0;opacity:0;cursor:pointer}
.kr-sahne{display:grid;gap:16px;align-items:start}
@media(min-width:560px){.kr-sahne{grid-template-columns:minmax(160px,240px) 1fr}}
.kr-model{background:linear-gradient(#F3F1EA,#E9E6DC);border-radius:12px;padding:8px}
.kr-svg{width:100%;height:auto;display:block}
.kr-nokta{width:22px;height:22px;border-radius:6px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);flex:none}
.kr-kart{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;background:#fff;border:1px solid #DADCD5;border-radius:12px;cursor:pointer;text-align:center}
.kr-kart:hover{border-color:#1F2A2E}.kr-kart[aria-pressed=true]{border-color:#0F6B5C;box-shadow:inset 0 0 0 2px #0F6B5C}
.kr-mini{display:block;width:110px;background:#F3F1EA;border-radius:8px}
.kr-serit{display:flex;width:100%;height:10px;border-radius:5px;overflow:hidden}.kr-serit i{flex:1}
.kr-secim{white-space:nowrap;padding:0 12px}
