.klinik-konular {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  scroll-margin-top: 9rem;
}
.klinik-konular > a {
  --ink: #165589;
  --tint: #e8f3ff;
  display: flex;
  align-items: center;
  min-height: 50px;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-inline-start-width: 4px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.klinik-konular > a:nth-child(2) { --ink: #11665c; --tint: #e5f6ef; }
.klinik-konular > a:nth-child(3) { --ink: #63428c; --tint: #f1ebfa; }
.klinik-konular > a:nth-child(4) { --ink: #874119; --tint: #fff0e4; }
.klinik-konular > a[aria-current="page"] { background: var(--ink); color: white; }
.klinik-konular > a:hover { text-decoration: underline; }
.klinik-konular > a:focus-visible { outline: 3px solid #172f4a; outline-offset: 2px; }
@media (max-width: 760px) {
  .klinik-konular { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
  .klinik-konular > a { padding: 8px 10px; font-size: 14px; }
}

@layer klinik-tema {
  @media screen {
    html[data-klinik-tema="koyu"] .site-box #klinik-konular > a {
      --ink:#9dd1ff !important;
      --tint:#1b3349 !important;
      background:var(--tint) !important;
      color:#edf5fa !important;
      -webkit-text-fill-color:#edf5fa !important;
      border-color:var(--ink) !important;
    }
    html[data-klinik-tema="koyu"] .site-box #klinik-konular > a:nth-child(2) {
      --ink:#88d7c5 !important;--tint:#193b37 !important;
    }
    html[data-klinik-tema="koyu"] .site-box #klinik-konular > a:nth-child(3) {
      --ink:#c6acf0 !important;--tint:#332b45 !important;
    }
    html[data-klinik-tema="koyu"] .site-box #klinik-konular > a:nth-child(4) {
      --ink:#efbd91 !important;--tint:#403024 !important;
    }
    html[data-klinik-tema="koyu"] .site-box #klinik-konular > a[aria-current="page"] {
      background:#245f82 !important;
      background:color-mix(in srgb,var(--ink) 25%,#142432) !important;
      color:#fff !important;
      -webkit-text-fill-color:#fff !important;
      box-shadow:inset 0 -3px var(--ink) !important;
    }
    html[data-klinik-tema="koyu"] .site-box #klinik-konular > a:hover {
      background:#304f65 !important;
      text-decoration:underline;
      text-underline-offset:3px;
    }
    html[data-klinik-tema="koyu"] .site-box #klinik-konular > a:focus-visible {
      outline:3px solid #a5ddff !important;
      outline-offset:3px !important;
    }
  }
}
