/* Derlenmiş CSS'e ek düzeltmeler. Dosya kalıcı önbelleklenir: değişirse adı da değişmeli (ek-5.css). */

/* Asıl içerik yüklenene kadar alt bölüm ekranın dışında kalır, sonradan kaymaz */
#main:has(> #server-content) {
  min-height: 100vh;
}

/* Okunabilirlik: en az 4,5 kontrast */
.site-video .video-privacy-note {
  color: #c6dbe4;
}
.brand-refresh .about-directory-title,
.brand-refresh .about-page .about-academic :is(.about-section-intro p, .about-directory-title, .about-link-index) {
  color: #3d6f7b;
}
.brand-refresh .quick-band-editorial .quick-links .quick-copy small {
  color: #456a7d;
}
.brand-refresh .gallery .gallery-item .gallery-caption small {
  color: #46707f;
}
.brand-refresh .footer .footer-contact-panel {
  background: linear-gradient(125deg, #2b6a83, #2b627d);
}
.brand-refresh .footer .footer-contact-panel address a {
  color: #fff;
}
.brand-refresh .footer-bottom :is(a, button):not(.footer-to-top) {
  color: #3f6678;
}
.brand-refresh .footer-bottom :is(a, button):not(.footer-to-top):hover {
  color: #14566e;
}
.detail-directory-list a .detail-directory-index,
.brand-refresh .about-detail-nav-group a .detail-directory-index {
  color: #547482;
}
.detail-directory-list a[aria-current='page'] .detail-directory-index {
  color: #2a738b;
}
.brand-refresh .contact-banner-meta a {
  color: #3a6675;
}
.brand-refresh nav[class*='-breadcrumb'] a {
  color: #48656f;
}
.brand-refresh nav[class*='-breadcrumb'] a:hover {
  color: #1d566d;
}
.brand-refresh .about-detail-pagination a small {
  color: #4f6880;
}
.brand-refresh .academic-category-tabs .academic-tab-count {
  color: #35708a;
}
.brand-refresh .language-menu small {
  color: #566579;
}

/* Üzerine gelince: geri bildirimi olmayan öğeler */
@media (hover: hover) {
  .brand:hover,
  .footer a:has(> img):hover,
  .privacy-header > a:hover {
    opacity: 0.8;
  }
  .brand-refresh :is(.disease-back, .contact-email, .contact-map-fallback a):hover {
    color: #174f66;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .brand-refresh nav[class*='-breadcrumb'] a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .brand-refresh :is(.cookie-policy-link, .contact-privacy-notice a):hover {
    color: #123f52;
    text-decoration-thickness: 2px;
  }
  .brand-refresh :is(.disease-reading-back, .contact-directions-jump):hover {
    color: #1d5f74;
    background: #d5eff5;
    border-color: #91c6d7;
  }
  .brand-refresh .gallery .gallery-dot:hover::after {
    background: #5f9fb8;
  }
  .brand-refresh .gallery .gallery-dot[aria-pressed='true']:hover::after {
    background: #1f5871;
  }
  .brand-refresh .lightbox-controls button:hover {
    background: #2c5a7f;
  }
  .brand-refresh .language-menu > button[aria-checked='true']:hover {
    color: #235f78;
    background: #cfeaf2;
  }
  .disease-preview-paper:hover {
    filter: brightness(0.96);
  }
  .brand-refresh .clinical-pdf-pagination select:hover {
    border-color: #cfe4eb;
  }
  .brand-refresh :is(.treatment-filter, .search-field, .detail-directory-search):hover,
  .brand-refresh :is(.contact-numbered-field :is(input, textarea), .detail-directory-select select):hover {
    border-color: #7fb4c8;
  }
  .brand-refresh select:hover {
    cursor: pointer;
  }
}

/* Başlık listesi: zemin hiç tam opak olmaz ve satır kaymaz; yoksa Chrome yazıyı iki ayrı kalınlıkta çizer */
.brand-refresh .site .detail-directory-list a {
  transition: color 0.18s, background-color 0.18s, border-color 0.18s;
  transform: none !important;
}
.brand-refresh .site .detail-directory-list a:hover {
  color: #246d84;
  background: #e4f4f9f2;
  border-color: #b5dbe8;
}
.brand-refresh .site .detail-directory-list a:hover .detail-directory-index {
  color: #246d84;
}
.brand-refresh .site .detail-directory-list a[aria-current='page'] {
  color: #245f77;
  background: linear-gradient(110deg, #e0f4fbf2, #eef9fcf2);
  border-color: #aad8e6;
}

/* Basılınca: bütün bağlantı ve düğmelerde aynı geri bildirim */
:is(a[href], button, summary, [role='button']):not(:disabled):active {
  filter: brightness(0.94);
}
.brand-refresh .site .detail-directory-list a:active {
  background: #cfe9f2f2;
  filter: none;
}
.about-page a:active {
  opacity: 1;
}
.brand-refresh .footer .footer-contact-panel address a:active {
  background-color: #0b3a4f59;
  filter: none;
}
:is(a[href], button, summary, select, [role='button']) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: #2f708c26;
}

/* Klavye odağı: çerçevesi kırpılan görseller */
:is(.about-portrait-frame, .about-detail-portrait) img:focus-visible {
  outline-offset: -5px;
}

/* Arama kutularında odak yalnız dış çerçevede görünür, iç içe iki çerçeve oluşmaz */
.brand-refresh :is(.site, dialog) :is(.treatment-filter, .search-field) input:focus-visible {
  outline: none;
  box-shadow: none;
}
.brand-refresh :is(.treatment-filter, .search-field, .detail-directory-search):focus-within {
  border-color: #1385a8;
  outline: none;
  box-shadow: 0 0 0 1px #1385a8, 0 0 0 4px #55b8d533;
}

/* Yalnız giriş yapmış yöneticinin gördüğü panele dönüş bağlantısı */
.panele-don {
  flex: none;
}
.panele-don a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 14px;
  border-radius: 99px;
  background: #0e2d3b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.panele-don a:hover {
  background: #1b5269;
  color: #fff;
}
.panele-don a:active {
  background: #081d27;
}
@media (max-width: 640px) {
  .panele-don a {
    justify-content: center;
    width: 36px;
    min-height: 36px;
    padding: 0;
  }
  .panele-don span {
    display: none;
  }
}
