/*!
 * site.css — Erkan Erdoğdu kişisel akademik sitesi
 *
 * Tasarım yaklaşımı: "simple & clean"
 *   - Tek vurgu rengi (kurumsal lacivert); geri kalan her şey nötr griler.
 *   - İki yazı ailesi: isim, bölüm başlıkları ve göstergelerde klasik bir
 *     serif (Windows: Palatino Linotype, macOS/iOS: Iowan Old Style /
 *     Palatino); diğer tüm metinlerde işletim sisteminin kendi fontu.
 *     Hiçbir web fontu indirilmez (ek yük yok).
 *   - Bölümler ince çizgilerle ayrılır; gölge, gradyan, rozet yok.
 *   - Profil fotoğrafı dışında görsel yok: yalnızca metin, çizgi ve
 *     yardımcı ikonlar.
 *   - Her bölüm aynı düzeni kullanır: solda başlık, sağda içerik.
 *
 * Renkler, yazı tipleri ve ölçüler yalnızca aşağıdaki değişkenlerden
 * yönetilir (açık + koyu tema). Yeni bir sayfa/bölüm eklerken aynı
 * sınıflar (.section, .section-grid, .item-list, .btn ...) kullanılır.
 */

/* ---------- 1) Tasarım değişkenleri ---------- */
:root{
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "TeX Gyre Pagella", "Book Antiqua", Georgia, serif;

  --bg: #ffffff;
  --bg-subtle: #f6f7f9;
  --surface: #ffffff;
  --text: #16191f;
  --text-2: #454c58;
  --text-3: #69717e;
  --line: #e5e7eb;
  --line-strong: #cdd2da;

  --accent: #1b3a6b;
  --accent-hover: #102a52;
  --accent-contrast: #ffffff;
  --accent-soft: #eef2f8;
  --accent-line: #b7c5dc;

  --mark: #fbeeb0;
  --ok-bg: #eef7f1;
  --ok-line: #bcdcc7;
  --ok-text: #1b6336;
  --err-bg: #fcf0ef;
  --err-line: #efc5c1;
  --err-text: #9d291f;

  --radius: 6px;
  --radius-lg: 8px;
  --header-h: 68px;
  --container: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --head-col: 240px;
  --col-gap: 64px;

  color-scheme: light;
}

:root[data-theme="dark"]{
  --bg: #0e1116;
  --bg-subtle: #151920;
  --surface: #12161d;
  --text: #e7e9ee;
  --text-2: #b4bac5;
  --text-3: #8d95a2;
  --line: #242a33;
  --line-strong: #363d48;

  --accent: #a9c1ea;
  --accent-hover: #cbdaf5;
  --accent-contrast: #0e1116;
  --accent-soft: #19212e;
  --accent-line: #3b4b67;

  --mark: #5a4a14;
  --ok-bg: #0f231a;
  --ok-line: #24503a;
  --ok-text: #8bd5a7;
  --err-bg: #291413;
  --err-line: #5a2b27;
  --err-text: #f1a59d;

  color-scheme: dark;
}

/* ---------- 2) Temel ---------- */
*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4{ margin: 0; line-height: 1.25; font-weight: 600; color: var(--text); }
p{ margin: 0 0 1em; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
dl, dd{ margin: 0; }
button, input, select, textarea{ font: inherit; color: inherit; }
button{ cursor: pointer; }

a{ color: var(--accent); text-decoration: none; }
a:hover{ color: var(--accent-hover); }

/* Paragraf içindeki (biyografi, özgeçmiş ayrıntıları) bağlantılar ince bir
   alt çizgiyle belirtilir; renk tek başına bilgi taşımasın diye. */
.prose a{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-line);
}
.prose a:hover{ text-decoration-color: currentColor; }

[hidden]{ display: none !important; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection{ background: var(--accent-soft); color: var(--text); }

/* Tüm ikonlar varsayılan olarak yazı boyutunda. (Boyutsuz bir <svg>
   tarayıcıda 300x150 px'e düşüp düzeni bozar; bu kural bunu engeller.) */
.i{
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.125em;
}

.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link{
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: .6rem 1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-contrast);
  transition: top .15s ease;
}
.skip-link:focus{ top: 1rem; color: var(--accent-contrast); }

mark{
  background: var(--mark);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* ---------- 3) Düzen ---------- */
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Menüden bir bölüme gidildiğinde başlık, sabit üst menünün hemen
   altında ve biraz boşlukla görünür. */
main > section{ scroll-margin-top: calc(var(--header-h) - 40px); }

.section{
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}

.section-grid{
  display: grid;
  grid-template-columns: var(--head-col) minmax(0, 1fr);
  gap: var(--col-gap);
  align-items: start;
}

.section-head{
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.section-title{
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.5rem + .75vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -.005em;
}

.section-desc{
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-3);
}

.section-body{ min-width: 0; }

/* Bölüm içindeki alt bloklar (ör. "Eğitim", "Akademik göstergeler") */
.block + .block{ margin-top: 56px; }

.block-title{
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Ortak liste deseni: her öğenin üstünde ince bir çizgi. Tüm bölümlerde
   (güncel gelişmeler, özgeçmiş, ödüller, yayınlar, iletişim) aynı. */
.item-list > *{
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.item-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}
.item-grid > *{
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

/* ---------- 4) Düğmeler ve bağlantılar ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .i{ width: 17px; height: 17px; }
.btn:disabled{ opacity: .6; cursor: default; }

.btn-primary{ background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover{ background: var(--accent-hover); color: var(--accent-contrast); }

.btn-secondary{ background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover{ background: var(--bg-subtle); color: var(--text); border-color: var(--text-3); }

.btn-sm{ height: 34px; padding: 0 12px; gap: 6px; font-size: 14px; }
.btn-sm .i{ width: 15px; height: 15px; }

.btn-text{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}
.btn-text:hover{ color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.btn-text .i{ width: 16px; height: 16px; }

.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
}
.link-arrow .i{ width: 15px; height: 15px; transition: transform .15s ease; }
.link-arrow:hover .i{ transform: translateX(2px); }

.link-ext{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-ext .i{ width: 13px; height: 13px; }

/* ---------- 5) Form öğeleri ---------- */
input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea{
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus,
select:focus,
textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
input::placeholder, textarea::placeholder{ color: var(--text-3); opacity: 1; }

.select-wrap{ position: relative; min-width: 0; }
.select-wrap select{
  -webkit-appearance: none;
  appearance: none;
  height: 42px;
  padding: 0 36px 0 12px;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.select-wrap .i{
  position: absolute;
  right: 12px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

/* ---------- 6) Üst menü ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand{
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover{ color: var(--text); }

.main-nav{ margin-left: auto; height: 100%; flex: none; }
.main-nav ul{ display: flex; height: 100%; gap: 20px; }
.main-nav a{
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding-top: 2px;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a .i{ width: 16px; height: 16px; color: var(--text-3); }
.main-nav a:hover{ color: var(--text); }
.main-nav a[aria-current="true"]{ color: var(--text); border-bottom-color: var(--accent); }
.main-nav a[aria-current="true"] .i{ color: var(--accent); }

.header-tools{ display: flex; align-items: center; gap: 8px; }

.lang-switch{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.lang-switch .i{ width: 15px; height: 15px; color: var(--text-3); }
.lang-switch:hover{ color: var(--text); border-color: var(--text-3); }

.icon-btn{
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-2);
}
.icon-btn:hover{ color: var(--text); border-color: var(--text-3); }
.icon-btn .i{ width: 17px; height: 17px; }

/* Tema anahtarı: yarısı dolu, yarısı boş tek daire (◐). Koyu temada
   180° döner; dolu ve boş yarılar yer değiştirir. */
#themeToggle .icon-theme{ transition: transform .3s ease; }
:root[data-theme="dark"] #themeToggle .icon-theme{ transform: rotate(180deg); }

.menu-toggle{ display: none; }
.menu-toggle .icon-close{ display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu{ display: none; }
.menu-toggle[aria-expanded="true"] .icon-close{ display: inline-block; }

/* ---------- 7) Karşılama alanı ---------- */
.hero{ padding: 80px 0 104px; }

.hero-inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 80px;
  align-items: center;
}

.hero-kicker{
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
}

.hero-name{
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.9rem + 1.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}

.hero-role{
  margin: 0;
  color: var(--text-2);
  font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem);
  line-height: 1.45;
}
/* Uzmanlık satırının altında, daha küçük puntoyla güncel görev
   ("Grup Başkanı, EPDK") */
.hero-position{
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  line-height: 1.5;
}

.hero-rule{
  width: 48px;
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: var(--line-strong);
}

.hero-lead{
  margin: 0;
  max-width: 56ch;
  color: var(--text-2);
  font-size: 17.5px;
  line-height: 1.7;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-profiles{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 14.5px;
}
.hero-profiles a{ color: var(--text-2); }
.hero-profiles a:hover{ color: var(--accent); }
.hero-profiles .i{ color: var(--text-3); }
.hero-profiles a:hover .i{ color: inherit; }

.hero-photo{
  margin: 0;
  aspect-ratio: 620 / 730;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}
.hero-photo img{ width: 100%; height: 100%; object-fit: cover; }

/* ---------- 8) Güncel gelişmeler ---------- */
.news-item{
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 32px;
}
.news-date{
  padding-top: 2px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.news-title{
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}
.news-title a{ color: var(--text); }
.news-title a:hover{ color: var(--accent); }
.news-body{
  max-width: 68ch;
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
}
.news-body b, .news-body strong{ color: var(--text); font-weight: 600; }
.news-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  font-size: 14.5px;
}
.news-more{ padding-top: 22px; border-top: 1px solid var(--line); }
#newsShowMore .i{ transition: transform .15s ease; }
#newsShowMore[aria-expanded="true"] .i{ transform: rotate(180deg); }

/* ---------- 9) Hakkımda ---------- */
.about-bio{
  max-width: 68ch;
  margin: 0;
  font-size: 17.5px;
  line-height: 1.75;
}
.about-bio b, .about-bio strong{ font-weight: 600; }
.about-more{ margin: 18px 0 0; }

.metrics{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  column-gap: 20px;
}
.metric{
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}
.metric-value{
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}
.metric-suffix{
  color: var(--text-3);
  font-family: var(--font-sans);
  font-size: 14px;
}
.metric-label{
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
}
.metric-source{
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.45;
}
/* Kaynak adı, göstergenin güncel değerinin görülebileceği sayfaya bağlanır
   (Scopus profili, RePEc sıralaması, sitedeki yayın listesi). */
.metric-source a{
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--accent-line);
}
.metric-source a:hover{ color: var(--accent); text-decoration-color: currentColor; }
.metric-source .link-ext{ display: inline; }
.metric-source .link-ext .i{ width: 11px; height: 11px; margin-left: 2px; vertical-align: -1px; }

.profile-table{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}
.profile-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.profile-row dt{ color: var(--text-2); }
.profile-row dd{ min-width: 0; text-align: right; overflow-wrap: anywhere; }
.profile-row dd a{ font-variant-numeric: tabular-nums; }

/* ---------- 10) Uzmanlık alanları ---------- */
.expertise-icon{
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
  color: var(--accent);
}
.expertise-item h3{
  margin: 0 0 8px;
  font-size: 17.5px;
  line-height: 1.4;
}
.expertise-item p{
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- 11) Özgeçmiş ---------- */
.cv-top{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 48px;
}
.cv-updated{ margin: 0; color: var(--text-3); font-size: 14.5px; }
.cv-downloads{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.cv-downloads .link-ext{ font-size: 14.5px; }

.cv-row{
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 32px;
}
.cv-years{
  padding-top: 2px;
  color: var(--text-3);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.cv-title{ margin: 0; font-size: 17px; line-height: 1.45; }
.cv-org{ margin: 2px 0 0; color: var(--text-2); font-size: 15.5px; }
.cv-detail{ margin: 6px 0 0; color: var(--text-3); font-size: 14.5px; line-height: 1.6; }

/* Uzmanlık faaliyetleri, sunumlar ve raporlar: alt başlıklar */
.cv-subhead{
  margin: 30px 0 0;
  padding: 0 0 10px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.cv-activities .block-title + .cv-subhead{ margin-top: 4px; }
.cv-activities .cv-title{ font-size: 16.5px; }
/* Duyurudan bu kayda gelindiğinde başlık sabit menünün altında kalmasın
   ve hedef kayıt belirgin olsun. */
#cv-activities, .cv-row[id]{ scroll-margin-top: calc(var(--header-h) + 16px); }
.cv-row:target .cv-title{ color: var(--accent); }

.award-item h4{ margin: 0 0 6px; font-size: 16.5px; line-height: 1.4; }
.award-item p{ margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.award-item .award-value{ margin-top: 8px; color: var(--text-3); font-size: 14px; }

.skills-item dt{ margin-bottom: 6px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.skills-item dd{ color: var(--text); font-size: 16px; }
.skills-item .lvl{ color: var(--text-3); }

/* Satır içi liste: "Stata · EViews · SPSS" (ekran okuyucular için gerçek liste) */
.inline-list{ display: flex; flex-wrap: wrap; }
.inline-list li + li::before{
  content: "·";
  margin: 0 .55em;
  color: var(--text-3);
}

/* ---------- 12) Yayınlar ---------- */
.pub-tools{ display: grid; gap: 10px; }

.search-field{ position: relative; }
.search-field input{ height: 48px; padding: 0 14px 0 44px; }
.search-field .i{
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
/* Tarayıcının kendi "x" temizleme düğmesi yerine kendi düğmemizi kullanıyoruz */
.search-field input::-webkit-search-cancel-button{ -webkit-appearance: none; appearance: none; }

.filter-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
}
.filter-row > *{ min-width: 0; }
.filter-row .btn{ height: 42px; }

.pub-status{
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 14px;
}

.pub-category{ margin-top: 40px; }
.pub-category > .block-title{ margin-bottom: 0; padding-bottom: 12px; }

/* scroll-margin: #pub-... bağlantısıyla gelindiğinde yayın başlığı sabit
   üst menünün altında kalmasın. */
.pub{ border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.pub > summary{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
}
.pub > summary::-webkit-details-marker{ display: none; }
.pub > summary::marker{ content: ""; }

.pub-title{
  color: var(--text);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
}
.pub > summary:hover .pub-title{ color: var(--accent); }
.pub-cite{
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.pub-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag{
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}
.tag-featured{
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.pub-toggle{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.pub-toggle .i{ width: 15px; height: 15px; transition: transform .15s ease; }
.pub[open] .pub-toggle{ color: var(--accent); }
.pub[open] .pub-toggle .i{ transform: rotate(180deg); }
.pub > summary:hover .pub-toggle{ color: var(--accent); }

.pub-body{ padding: 0 0 26px; }
.pub-abstract-text{
  max-width: 72ch;
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
}

.qa-list{ display: grid; gap: 12px; max-width: 72ch; margin: 0 0 18px; }
.qa dt{ margin-bottom: 2px; color: var(--text); font-size: 13.5px; font-weight: 600; }
.qa dd{ color: var(--text-2); font-size: 15px; line-height: 1.6; }

.pub-actions{ display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 13) İletişim ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.contact-item{
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
}
.contact-item > .i{ width: 19px; height: 19px; margin-top: 3px; color: var(--text-3); }
.contact-label{
  margin: 0 0 2px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contact-value{ margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }

.map-wrap{ margin-top: 8px; }
.map-note{ margin: 0 0 10px; color: var(--text-3); font-size: 14px; }
.map-frame{
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.map-frame iframe{ display: block; width: 100%; height: 260px; border: 0; }
.map-ext-row{ margin: 10px 0 0; font-size: 14px; }
.map-ext{ margin-left: 14px; font-size: 14px; }

.contact-form{ max-width: 600px; }
.field{ margin: 0 0 18px; }
.field label{
  display: block;
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.field .req{ color: var(--err-text); }
.field .opt{ color: var(--text-3); font-weight: 400; }
.field input{ height: 46px; padding: 0 14px; }
.field textarea{
  min-height: 150px;
  padding: 12px 14px;
  line-height: 1.55;
  resize: vertical;
}

.form-msg{
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
}
.form-msg.ok{ background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-text); }
.form-msg.err{ background: var(--err-bg); border-color: var(--err-line); color: var(--err-text); }

.form-note{
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- 14) Alt bilgi ve "yukarı dön" ---------- */
.site-footer{
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 14px;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-inner p{ margin: 0; }
.footer-nav{ display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a{ color: var(--text-2); }
.footer-nav a:hover{ color: var(--accent); }

.back-to-top{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.back-to-top.show{
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .18s ease, transform .18s ease;
}
.back-to-top:hover{ color: var(--text); border-color: var(--text-3); }
.back-to-top .i{ width: 18px; height: 18px; }

/* ---------- 15) Duyarlı düzen ---------- */

/* Menü: 7 bölüm adı + ikonları tek satıra sığmadığında mobil menüye geç.
   (Türkçe menü en az ~1170 px ister; farklı işletim sistemi fontları için
   pay bırakılarak 1200 px seçildi.)
   (Bu değer assets/js/site.js içindeki NAV_BREAKPOINT ile aynı olmalı.) */
@media (max-width: 1200px){
  .menu-toggle{ display: inline-grid; }
  .header-inner{ gap: 12px; }
  .header-tools{ margin-left: auto; }

  .main-nav{
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 8px var(--gutter) 32px;
    overflow-y: auto;
    background: var(--bg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .main-nav.open{
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .main-nav ul{ flex-direction: column; height: auto; gap: 0; max-width: 640px; }
  .main-nav a{
    height: auto;
    gap: 12px;
    padding: 16px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .main-nav a .i{ width: 19px; height: 19px; }
  .main-nav a[aria-current="true"]{ color: var(--accent); border-bottom-color: var(--line); }

  html.menu-open{ overflow: hidden; }
}

@media (max-width: 1024px){
  :root{ --section-y: 80px; --head-col: 200px; --col-gap: 44px; }
  .hero-inner{ grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
}

@media (max-width: 880px){
  .section-grid{ grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .section-head{ position: static; }

  .hero{ padding: 48px 0 72px; }
  .hero-inner{ grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-photo{ order: -1; width: 240px; }

  .contact-grid{ grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 640px){
  :root{ --section-y: 64px; --gutter: 20px; }

  .hero{ padding: 36px 0 64px; }
  .hero-photo{ width: 210px; }
  .hero-name{ font-size: 2.25rem; }
  .hero-lead{ font-size: 16.5px; }
  .hero-actions .btn{ flex: 1 1 auto; }

  .news-item, .cv-row{ grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .item-grid, .profile-table{ grid-template-columns: minmax(0, 1fr); }

  .filter-row{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filter-row .btn{ grid-column: 1 / -1; justify-self: start; }

  .pub > summary{ grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pub-toggle{ justify-self: start; }

  .about-bio{ font-size: 16.5px; }
  .metric-value{ font-size: 30px; }
}

@media (max-width: 420px){
  :root{ --gutter: 16px; }
  .brand{ font-size: 19px; }
  .header-tools{ gap: 6px; }
  .lang-switch{ padding: 0 9px; }
  /* En dar ekranlarda dil düğmesinde yalnızca küre ikonu kalır; metin
     ekran okuyucular için erişilebilir kalır. */
  .lang-switch span{
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .filter-row{ grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 16) Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 17) Yazdırma ---------- */
@media print{
  .site-header, .back-to-top, .skip-link, .pub-tools, .pub-status, .pub-actions,
  .pub-toggle, .hero-actions, .news-more, .map-wrap, .contact-form, .site-footer{
    display: none !important;
  }
  body{ font-size: 11pt; }
  .section{ padding: 18pt 0; border-top: 1px solid #999; }
  .section-head{ position: static; }
  .hero{ padding: 0 0 18pt; }
  a{ color: inherit; }
}

/* ---------- 18) 2026-09 içerik okunabilirliği ince ayarları ---------- */
/* Türkçe görünümde akademik çalışmaların özgün İngilizce başlığı,
   Türkçe başlığın hemen altında ikincil bir satır olarak gösterilir. */
.pub-title-original,
.cv-title-original{
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}
.pub > summary:hover .pub-title-original{ color: var(--text-3); }
.cv-activity-link{
  margin: 7px 0 0;
  font-size: 14px;
}
.cv-activity-link .i{ width: 12px; height: 12px; margin-left: 3px; }

/* Diller, puan bilgisi uzun olduğunda yarım bir ikinci satıra taşmak yerine
   her dil için kendi düzenli satırını kullanır. */
.language-list{
  display: grid;
  gap: 5px;
}
.language-list li{
  min-width: 0;
  line-height: 1.5;
}
