/* akaturk.com — academician profile v4 (2026-11-20): three areas.
   Loaded after akaturk-academician-v3.css on /akademisyenler/kisi/{id}.
   Left rail  = section index + researcher identifiers (sticky).
   Centre     = the dossier sections, unchanged.
   Right rail = what YÖK Akademik itself reports (WoS / Scopus totals, yearly series, SDGs).
   The right rail exists only when YÖK data is stored for the person (.aka-p3--side).
   Below 1200px the three wrappers dissolve (display: contents) and the blocks are ordered by CSS,
   so phones and tablets keep the one-column reading order with the sticky section bar. */

/* ── Layout ── */
.aka-p3 {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  column-gap: 26px;
  align-items: start;
}
.aka-p3--side { grid-template-columns: 228px minmax(0, 1fr) 316px; }
.aka-p3__main { min-width: 0; }
.aka-p3__left {
  position: sticky;
  top: calc(var(--aka-nav-h, 52px) + 14px);
  display: grid;
  gap: 14px;
  max-height: calc(100vh - var(--aka-nav-h, 52px) - 28px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.aka-p3__right { display: grid; gap: 14px; min-width: 0; }

@media (min-width: 1200px) {
  /* the section index reads top to bottom in the rail */
  .aka-p3__left .aka-toc {
    position: static;
    display: block;
    margin: 0;
    padding: 0.7rem 0.5rem 0.55rem;
    border-radius: 14px;
    background: #fff;
    backdrop-filter: none;
    box-shadow: var(--p-shadow);
  }
  .aka-p3__left .aka-toc__lab { display: block; padding: 0 0.6rem 0.5rem; }
  .aka-p3__left .aka-toc__list { flex-direction: column; gap: 2px; overflow: visible; }
  .aka-p3__left .aka-toc__list a {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem 0.5rem 0.95rem;
    font-size: 0.88rem;
    white-space: normal;
  }
  .aka-p3__left .aka-toc__list a.is-active { background: var(--p-red-tint); }
  .aka-p3__left .aka-toc__list a.is-active::after {
    left: 0.3rem;
    right: auto;
    top: 0.55rem;
    bottom: 0.55rem;
    width: 3px;
    height: auto;
  }
  /* no sticky bar above the sections any more: anchors can land closer to the header */
  .aka-p3 .aka-sec,
  .aka-p3 #aka-works, .aka-p3 #pubs, .aka-p3 #aka-impact-h, .aka-p3 #aka-franks-h, .aka-p3 #aka-cx-h, .aka-p3 #aka-top2-h,
  .aka-p3 #aka-ids, .aka-p3 #aka-ids-form, .aka-p3 #aka-doi, .aka-p3 #aka-badge,
  .aka-p3 .aka-wk__block[id] { scroll-margin-top: calc(var(--aka-nav-h, 52px) + 1.1rem); }
}

/* ── Cards shared by both rails ── */
.aka-idc,
.aka-yk {
  margin: 0;
  padding: 0.95rem 1rem 0.9rem;
  border: 1px solid var(--p-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--p-shadow);
}
.aka-idc__h,
.aka-yk__h {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--p-ink);
}
.aka-yk__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.6rem;
  margin: 0 0 0.75rem;
}
.aka-yk__note,
.aka-idc__src {
  margin: 0.7rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--p-faint);
}
.aka-idc__src .aka-src,
.aka-car__src .aka-src { margin-right: 0.45rem; }

/* ── Researcher identifiers ── */
.aka-idc__list { display: grid; gap: 0.6rem; margin: 0.7rem 0 0; padding: 0; list-style: none; }
.aka-idc__item { display: grid; gap: 0.05rem; min-width: 0; }
.aka-idc__k {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-faint);
}
.aka-idc__v {
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--p-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.aka-idc__v:hover { color: var(--p-red); text-decoration: underline; }
.aka-idc__v:focus-visible { outline: 2px solid var(--p-red); outline-offset: 2px; border-radius: 3px; }

/* ── WoS / Scopus totals as YÖK reports them ── */
.aka-yk__src + .aka-yk__src { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px dashed var(--p-line); }
.aka-yk__src-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: var(--p-ink);
}
.aka-yk__src-h time { font-size: 0.72rem; color: var(--p-faint); font-variant-numeric: tabular-nums; }
.aka-yk__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; margin: 0; }
.aka-yk__nums > div {
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: var(--p-soft);
}
.aka-yk__nums dt {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-faint);
}
.aka-yk__nums dd {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--p-ink);
}

/* ── Yearly series: two small bar rows on one year axis ── */
.aka-ybar { display: grid; gap: 0.2rem; }
.aka-ybar__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
  font-size: 0.7rem;
  color: var(--p-faint);
}
.aka-ybar__cap span { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.aka-ybar__cap b { font-weight: 600; font-variant-numeric: tabular-nums; }
.aka-ybar__plot {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: end;
  gap: 3px;
  height: 52px;
  margin-bottom: 0.45rem;
  border-bottom: 1px solid var(--p-line);
}
.aka-ybar__col { display: flex; align-items: flex-end; height: 100%; }
.aka-ybar__col i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: #2b3550; }
.aka-ybar__plot--cit .aka-ybar__col i { background: var(--p-red); }
.aka-ybar__axis {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 3px;
  margin-top: -0.3rem;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--p-faint);
}
.aka-yk__table { margin-top: 0.6rem; font-size: 0.78rem; }
.aka-yk__table summary { cursor: pointer; color: var(--p-muted); font-weight: 600; }
.aka-yk__table summary:hover { color: var(--p-ink); }
.aka-yk__table table { width: 100%; margin-top: 0.45rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.aka-yk__table th,
.aka-yk__table td { padding: 0.22rem 0.3rem; border-bottom: 1px solid var(--p-line); text-align: right; }
.aka-yk__table th:first-child { text-align: left; }
.aka-yk__table thead th { font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--p-faint); }
.aka-yk__table tbody th { font-weight: 600; color: var(--p-ink); }

/* ── Sustainable Development Goals: the United Nations' own icons, unaltered ── */
.aka-sdg { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.aka-sdg__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; }
.aka-sdg__icon { display: block; width: 52px; height: 52px; border-radius: 6px; }
.aka-sdg__name { display: grid; gap: 0.08rem; font-size: 0.86rem; font-weight: 600; line-height: 1.3; color: var(--p-ink); }
.aka-sdg__no {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--p-faint);
}
.aka-sdg__c { display: grid; justify-items: end; gap: 0; font-variant-numeric: tabular-nums; }
.aka-sdg__c b { font-size: 1.05rem; font-weight: 800; line-height: 1.1; color: var(--p-ink); }
.aka-sdg__c small { font-size: 0.62rem; color: var(--p-faint); }
.aka-yk__note--un { margin-top: 0.35rem; font-size: 0.68rem; }
.aka-yk__note--un a { color: inherit; }

/* the same icons under the name, as a quick strip; each one jumps to the card */
.aka-aca__sdgline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin-top: 0.85rem; }
.aka-aca__topicline-lab .aka-aca__sdgline-src { color: var(--p-red); }
.aka-aca__sdgline-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.aka-aca__sdgline-list a { display: block; border-radius: 6px; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.aka-aca__sdgline-list a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20, 26, 43, 0.16); }
.aka-aca__sdgline-list a:focus-visible { outline: 2px solid var(--p-red); outline-offset: 2px; }
.aka-aca__sdgline-list img { display: block; width: 42px; height: 42px; border-radius: 6px; }
#aka-yk-s-h { scroll-margin-top: calc(var(--aka-nav-h, 52px) + 4.2rem); }

/* ── Career and education ── */
.aka-car {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius, 18px);
  background: #fff;
  box-shadow: var(--p-shadow);
}
.aka-car__src { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.4rem; margin: 0 0 0.2rem; font-size: 0.76rem; color: var(--p-faint); }
.aka-car__grp { border: 1px solid var(--p-line); border-radius: 12px; background: var(--p-soft); }
.aka-car__grp[open] { background: #fff; }
.aka-car__sum {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--p-ink);
}
.aka-car__sum::-webkit-details-marker { display: none; }
.aka-car__sum::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-left: auto;
  border-right: 2px solid var(--p-faint);
  border-bottom: 2px solid var(--p-faint);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.aka-car__grp[open] > .aka-car__sum::after { transform: rotate(-135deg); }
.aka-car__sum:focus-visible { outline: 2px solid var(--p-red); outline-offset: 2px; border-radius: 10px; }
.aka-car__grp-n {
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  background: var(--p-red-soft);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--p-red);
}
.aka-car__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0 0.9rem 0.5rem; }
.aka-car__chips span {
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--p-muted);
}
.aka-car__chips b { color: var(--p-ink); }
.aka-car__list { display: grid; margin: 0; padding: 0 0.9rem 0.5rem; list-style: none; }
.aka-car__row {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--p-line);
}
.aka-car__when { padding-top: 0.08rem; font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--p-muted); }
.aka-car__row.is-current .aka-car__when { color: var(--p-red); }
.aka-car__what { display: grid; gap: 0.12rem; min-width: 0; }
.aka-car__what b { font-size: 0.92rem; font-weight: 700; line-height: 1.35; color: var(--p-ink); overflow-wrap: anywhere; }
.aka-car__org { font-size: 0.86rem; color: var(--p-ink); }
.aka-car__unit,
.aka-car__note { font-size: 0.8rem; line-height: 1.4; color: var(--p-muted); }
.aka-car__note { color: var(--p-faint); }
.aka-car__rest { padding: 0 0 0.3rem; }
.aka-car__rest > summary {
  margin: 0 0.9rem 0.4rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--p-red);
}
.aka-car__rest[open] > summary { margin-bottom: 0; }

/* ── The centre column is narrower than the old full-width shell: let the wide rows wrap ── */
@media (min-width: 1200px) {
  .aka-p3 .aka-top2__grid { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
  .aka-p3--side .aka-cite__grid { grid-template-columns: 1fr; }
  .aka-p3--side .aka-cite__stats,
  .aka-p3--side .aka-cite__grid--solo .aka-cite__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* the source tag inside the new cards is a small pill */
.aka-yk .aka-src,
.aka-idc .aka-src,
.aka-car .aka-src {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border: 1px solid #f3c9cd;
  border-radius: 999px;
  background: var(--p-red-tint);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--p-red);
}

/* ── One column below 1200px ── */
@media (max-width: 1199.98px) {
  .aka-p3,
  .aka-p3--side { display: flex; flex-direction: column; }
  .aka-p3__left,
  .aka-p3__main,
  .aka-p3__right { display: contents; }
  .aka-p3__main > * { order: 30; }
  .aka-p3 .aka-toc { order: 0; }
  .aka-p3 #etki { order: 10; }
  .aka-p3 .aka-yk--metrics { order: 11; }
  .aka-p3 .aka-yk--yearly { order: 12; }
  .aka-p3 #siralama { order: 20; }
  .aka-p3 #yayinlar { order: 30; }
  .aka-p3 #isbirligi { order: 40; }
  .aka-p3 #kariyer { order: 50; }
  .aka-p3 .aka-yk--sdg { order: 51; }
  .aka-p3 .aka-idc { order: 60; }
  .aka-p3 #beyan { order: 70; }
  .aka-p3 .aka-yk,
  .aka-p3 .aka-idc { margin: 0 0 1.4rem; }
  .aka-idc__list { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
}
@media (max-width: 560px) {
  .aka-car { padding: 0.8rem 0.75rem; }
  .aka-car__row { grid-template-columns: 1fr; gap: 0.15rem; }
  .aka-car__list { padding: 0 0.7rem 0.4rem; }
  .aka-car__sum { padding: 0.65rem 0.7rem; }
}
@media print {
  .aka-p3,
  .aka-p3--side { display: block; }
  .aka-p3__left { position: static; max-height: none; }
}
