/* ==========================================================================
   ODTÜ-GÜNAM — Prototip 4 (prototip 1'in kurumsallaştırılmış hali)
   Fark: sunpath hero yerine üstte "Haberler ve Duyurular" slider'ı;
   biraz daha kurumsal tipografi (daha okunaklı gövde fontu, daha ağırlıklı
   başlıklar). Dil düğmesi yalnızca arayüz ögesi, gerçek İngilizce içerik
   bu prototipte kurulmaz. Satır içi stil / script kullanılmaz.
   ========================================================================== */

:root {
  --paper: #F7F5F0;
  --paper-2: #EFEBE3;
  --paper-3: #E4DDD0;
  --ink: #16130F;
  --ink-2: #4A443C;
  --ink-3: #6E665B;
  --rule: #D8D0C2;

  --sun: #F3951F;
  --sun-soft: #FBE6CB;
  --sun-ink: #A5500A;
  --flare: #CE2127;

  --night: #191613;
  --night-2: #231F1B;
  --night-ink: #EDE8DF;
  --night-mute: #A39A8C;
  --night-rule: #3A342D;
  /* Prototip 2'deki siyah -> turuncu geçişli zemin (bkz. prototype2/assets/css/main.css).
     Turuncu yalnızca bir köşede belirginleşir, metnin oturduğu alan koyu kalır. */
  --grad-night: linear-gradient(120deg, var(--night) 0%, var(--night) 55%, #4A2A0F 82%, var(--sun) 128%);

  /* Kurumsal okunaklılık: gövdede yumuşak, geniş taşınan bir grotesk;
     başlıklarda ölçülü ağırlıkta bir serif (tamamen düz sanstan kaçınıyoruz,
     kurumun "akademik yayınevi" havasını koruyoruz). */
  --f-serif: "Source Serif 4", "Sitka Heading", "Sitka Text", Cambria, Georgia, serif;
  --f-sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;

  --w: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.68 var(--f-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 700; line-height: 1.14; letter-spacing: -0.012em; margin: 0; }
p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun-ink); outline-offset: 3px; }

.container { max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip-link:focus { left: 16px; }
.mono { font-family: var(--f-mono); font-feature-settings: "zero" 0; }
.logo { display: block; }
.logo svg { width: 100%; height: auto; }

/* ---------- Yardımcı üst şerit ---------- */
.util-bar { background: var(--ink); color: var(--night-mute); font-size: 13px; }
.util-inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 24px; }
.util-tagline { letter-spacing: .01em; }
.util-links { display: flex; align-items: center; gap: 22px; }
.util-links a { color: #D9D1C3; text-decoration: none; }
.util-links a:hover { color: #fff; }
.lang-switch { display: flex; border-left: 1px solid var(--night-rule); padding-left: 18px; gap: 2px; }
.lang-switch a { font-family: var(--f-mono); font-size: 12px; padding: 2px 6px; letter-spacing: .06em; }
.lang-switch a[aria-current="true"] { color: var(--sun); }

/* ---------- Başlık / ana menü ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); position: relative; }
.brand { display: block; flex: none; color: var(--ink); }
.brand .logo { width: 196px; aspect-ratio: 5977 / 1546; }

.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; align-items: stretch; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  height: var(--header-h); padding: 0 14px;
  font-size: 15.5px; font-weight: 600; text-decoration: none;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-link:hover::after, .nav-link.is-active::after, .has-mega.open > .nav-link::after { transform: scaleX(1); }
.chev { width: 9px; height: 9px; transition: transform .2s; }
.has-mega.open .chev { transform: rotate(180deg); }

.mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 2px solid var(--ink);
  box-shadow: 0 24px 40px -24px rgba(22, 19, 15, .25);
}
.has-mega.open > .mega { display: block; }
.mega-inner { display: grid; grid-template-columns: 1.1fr 2fr 1.2fr; gap: 48px; padding: 36px var(--gut) 40px; max-width: var(--w); margin: 0 auto; }
.mega-intro h2 { font-size: 25px; margin-bottom: 10px; }
.mega-intro p { color: var(--ink-2); font-size: 15px; }
.mega-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.mega-units { columns: 2; column-gap: 32px; }
.mega-units a { display: flex; gap: 12px; padding: 7px 0; text-decoration: none; font-size: 15px; break-inside: avoid; }
.mega-units a span { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); padding-top: 3px; }
.mega-units a:hover { color: var(--sun-ink); }
.mega-links a { display: block; padding: 9px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.mega-links a strong { display: block; font-weight: 700; font-size: 15px; }
.mega-links a small { color: var(--ink-3); font-size: 13px; }
.mega-links a:hover strong { color: var(--sun-ink); }

.header-tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--sun-ink); }
.nav-toggle { display: none; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-lang { display: none; }

/* ---------- Ortak parçalar ---------- */
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--sun); vertical-align: middle; margin-right: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; font-size: 15px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn svg { width: 14px; height: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); }
.link-arrow svg { width: 14px; height: 14px; transition: transform .2s; }
.link-arrow:hover { color: var(--sun-ink); }
.link-arrow:hover svg { transform: translateX(3px); }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(27px, 3.2vw, 38px); margin-top: 10px; }
.section-head .link-arrow { flex: none; margin-bottom: 6px; }

.tag { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tag + .tag::before { content: "·"; margin: 0 8px; color: var(--ink-3); }
.tag-sun { color: var(--sun-ink); }
.chip { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border: 1px solid currentColor; }

.ph {
  position: relative; background-color: var(--paper-3);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(22, 19, 15, .06) 11px 12px);
  aspect-ratio: 16 / 10;
}
.ph::after {
  content: attr(data-label); position: absolute; left: 12px; bottom: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- HERO: Haberler ve Duyurular slider ---------- */
.news-hero { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.news-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px); align-items: start;
  padding-top: clamp(16px, 2.2vh, 28px); padding-bottom: clamp(16px, 2.2vh, 28px);
}

/* Ana (büyük) haber: görsel üstte, metin altta, kontroller en altta. Birden çok haber aynı hücrede üst üste
   durur (grid), yalnızca .is-active olan görünür; böylece alan yüksekliği en uzun haberi barındırır. */
.news-main { display: flex; flex-direction: column; min-width: 0; }
.news-visual-stack, .news-copy-stack { display: grid; }
.news-visual-slide {
  grid-area: 1 / 1; display: block; color: inherit; text-decoration: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s ease, visibility 0s .45s;
}
.news-visual-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .45s ease, visibility 0s; }
.news-visual-slide:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
/* Görsel KIRPILMAZ: kutuya contain ile sığar; yanlarda/üst-altta kalan boşluk aynı görselin bulanık hâliyle dolar. */
/* Haber alanı ile altındaki rakamlar şeridi ilk ekranda birlikte görünsün diye görsel yüksekliği ekran yüksekliğine göre sınırlanır
   (üst çubuk + menü + metin + rakamlar şeridi ~470px); görsel yine kırpılmaz, contain ile kutuya sığar. */
.news-media { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: clamp(200px, calc(100vh - 520px), 480px); overflow: hidden; background: var(--paper-3); margin-bottom: 14px; }
@supports (height: 100svh) { .news-media { max-height: clamp(200px, calc(100svh - 520px), 480px); } }
/* Kısa ekranlarda (dizüstü) haber özeti gizlenir; başlık ve görsel kalır, rakamlar şeridi yine ilk ekrana sığar. */
@media (min-width: 1025px) and (max-height: 820px) {
  .news-copy-stack .news-slide-copy .lead { display: none; }
  .news-side .news-side-item { padding: 6px 4px; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .news-side .news-side-body strong { font-size: 14px; }
  .news-media { max-height: clamp(180px, calc(100vh - 457px), 480px); }
}
@supports (height: 100svh) { @media (min-width: 1025px) and (max-height: 820px) { .news-media { max-height: clamp(180px, calc(100svh - 457px), 480px); } } }
.news-media-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) saturate(1.15); transform: scale(1.2); opacity: .55; }
.news-media-img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.news-media .ph { position: absolute; inset: 0; aspect-ratio: auto; }

.news-slide-copy {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s .35s;
}
.news-slide-copy.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease, visibility 0s; }
.news-slide-copy[hidden] { display: none; }
.news-slide-copy .tag-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.news-slide-copy .news-title { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.16; margin: 0 0 8px; letter-spacing: -0.018em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.news-slide-copy .news-title a { color: inherit; text-decoration: none; }
.news-slide-copy .news-title a:hover, .news-slide-copy .news-title a:focus-visible { color: var(--sun-ink); }
.news-slide-copy .lead { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 42em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.news-slide-copy .slide-actions { margin-top: 10px; }

.hs-inline-controls { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.hs-counter { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
.hs-arrows { display: flex; gap: 2px; }
.hs-arrows button, .hs-play {
  width: 34px; height: 34px; border: 1px solid var(--rule); background: none; color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
}
.hs-arrows button:hover, .hs-play:hover { border-color: var(--ink); color: var(--sun-ink); }
.hs-arrows svg, .hs-play svg { width: 13px; height: 13px; }
.hs-play .i-pause { display: none; }
.hs-play[aria-pressed="true"] .i-play { display: none; }
.hs-play[aria-pressed="true"] .i-pause { display: block; }
/* Kontroller (sayaç, oklar, duraklat) görselin sağ altına biner; böylece haber alanı alçak kalır. */
.news-visual { position: relative; }
.news-controls {
  position: absolute; right: 12px; bottom: 26px; z-index: 2; margin: 0; padding: 5px 8px; gap: 10px;
  background: rgba(247, 245, 240, .94); border: 1px solid var(--rule);
}

/* Diğer haberler: yandaki liste, aynı zamanda slayt seçici */
.news-side { display: flex; flex-direction: column; min-width: 0; }
.news-side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.news-side-list li { border-bottom: 1px solid var(--rule); }
.news-side-item {
  display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; align-items: center;
  width: 100%; padding: clamp(8px, 1.5vh, 13px) 4px; border: 0; background: none; text-align: left; cursor: pointer;
  position: relative;
}
.news-side-item::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; width: 3px; background: var(--sun); transform: scaleY(0); transition: transform .18s; }
.news-side-item:hover { background: rgba(22, 19, 15, .03); }
.news-side-item.is-active::before { transform: scaleY(1); }
.news-side-item.is-active .news-side-body strong { color: var(--sun-ink); }
.news-side-item .ph { aspect-ratio: 4 / 3; }
.news-side-item .ph::after { display: none; }
.news-side-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.news-side-body strong { font-family: var(--f-serif); font-weight: 700; font-size: 15px; line-height: 1.32; }
.news-side-body .meta-line { font-size: 11.5px; }

.meta-line { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .03em; }
.meta-line .cat { color: var(--sun-ink); text-transform: uppercase; letter-spacing: .08em; margin-right: 10px; }
.hs-play .i-pause { display: none; }
.hs-play[aria-pressed="true"] .i-play { display: none; }
.hs-play[aria-pressed="true"] .i-pause { display: block; }

/* ---------- Tanıtım metni (prototip 1'deki hero metni + güneş yolu görseli) ---------- */
.statement { border-bottom: 1px solid var(--rule); background: var(--paper); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.statement h2 {
  font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; margin: 20px 0 22px; letter-spacing: -0.022em;
}
.statement h2 em { font-style: italic; font-weight: 500; color: var(--sun-ink); }
.statement-lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.statement .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }

/* Güneş yolu diyagramı (prototip 1'den taşındı) */
.sunpath { position: relative; }
.sunpath svg { width: 100%; max-width: 460px; margin-left: auto; overflow: visible; }
.sunpath .sp-horizon { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.25; }
.sunpath .sp-ring { fill: none; stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 4; }
.sunpath .sp-spoke { stroke: var(--rule); stroke-width: 1; }
.sunpath .sp-card { font-family: var(--f-mono); font-size: 13px; fill: var(--ink); font-weight: 600; }
.sunpath .sp-small { font-family: var(--f-mono); font-size: 10.5px; fill: var(--ink-3); }
.sunpath .sp-ref { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.sunpath .sp-ref.eq { stroke-dasharray: 5 4; }
.sunpath .sp-today { fill: none; stroke: var(--sun); stroke-width: 3; stroke-linecap: round; }
.sunpath .sp-hour { fill: var(--paper); stroke: var(--sun-ink); stroke-width: 1.5; }
.sunpath .sp-hour-label { font-family: var(--f-mono); font-size: 10.5px; fill: var(--sun-ink); font-weight: 600; }
.sunpath .sp-now-ring { fill: none; stroke: var(--flare); stroke-width: 1.5; }
.sunpath .sp-now { fill: var(--sun); stroke: var(--ink); stroke-width: 1; }
.sunpath figcaption { margin-top: 16px; border-top: 1px solid var(--ink); padding-top: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); display: grid; gap: 4px; max-width: 460px; margin-left: auto; }
.sunpath figcaption strong { color: var(--ink); font-weight: 600; }
.hero-image { margin: 0; }
.hero-image img { width: 100%; max-width: 460px; margin-left: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-3); }
.sp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; color: var(--ink-3); }
.sp-legend i { display: inline-block; width: 18px; height: 0; border-top: 1px solid var(--ink-3); vertical-align: middle; margin-right: 6px; }
.sp-legend i.today { border-top: 3px solid var(--sun); }
.sp-legend i.eq { border-top-style: dashed; }

/* ---------- Rakamlar ---------- */
.figures { border-bottom: 1px solid var(--rule); }
.figures ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.figures li { border-left: 1px solid var(--rule); }
.figures li:first-child { border-left: 0; }
.figures li:first-child > a { padding-left: 0; }
.figures a {
  display: block; position: relative; padding: clamp(16px, 2.6vh, 28px) 40px clamp(16px, 2.8vh, 30px) 24px;
  text-decoration: none; color: inherit; transition: background .15s;
}
.figures a:hover, .figures a:focus-visible { background: var(--paper-2); }
.figures .num { font-family: var(--f-mono); font-size: clamp(34px, 3.6vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.figures .num sup { font-size: .5em; color: var(--sun-ink); vertical-align: top; margin-left: 2px; }
.figures .lbl { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.figures .go-arrow {
  position: absolute; right: 18px; top: 50%; width: 16px; height: 16px; color: var(--sun-ink);
  transform: translateY(-50%) translateX(-6px); opacity: 0; transition: opacity .15s ease, transform .15s ease;
}
.figures a:hover .go-arrow, .figures a:focus-visible .go-arrow { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Araştırma birimleri: kart ızgarası (prototip 2'deki mantık) ----------
   1px'lik boşluk + rule renginde zemin, hücreler arasında ince çizgi görünümü verir. */
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 28px; }
.unit-card { background: var(--paper); padding: 30px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; position: relative; }
.unit-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .18s; }
.unit-card:hover::before { transform: scaleX(1); }
.unit-card .unit-num { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); }
.unit-card:hover .unit-num { color: var(--sun-ink); }
.unit-card h3 { font-size: 21px; }
.unit-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.unit-stats { display: flex; gap: 16px; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.unit-stats b { color: var(--ink); font-weight: 700; }
.unit-coord { display: flex; align-items: center; gap: 12px; font-size: 13.5px; line-height: 1.35; padding-top: 14px; border-top: 1px solid var(--rule); }
.unit-coord small { display: block; color: var(--ink-3); font-size: 12px; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-3); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--rule); }
.avatar-img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); }

/* ---------- Ana sayfa: birim kaydırıcısı ----------
   unit-grid ile aynı görünüm (1px hairline). Birimler 4 sütun x 2 satırlık "sayfalara" bölünür
   (bkz. core.views.paginate_units); sayfalar yatayda kaydırılır, birim sayısı artınca yeni sayfalar
   kendiliğinden oluşur. Son sayfada boş kalan alanı "Tüm birimleri görüntüle" kartı kaplar. */
.unit-carousel {
  display: flex;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.unit-carousel::-webkit-scrollbar { display: none; }
.unit-page {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  scroll-snap-align: start;
}
.unit-page.one-row { grid-template-rows: 1fr; }
.unit-page + .unit-page { margin-left: 1px; }
.unit-empty { padding: 30px; background: var(--paper); flex: 1; }
.unit-carousel .unit-card { padding: 26px 24px; }
.unit-carousel .unit-card h3 { font-size: 19px; }
.unit-carousel .unit-stats { flex-wrap: wrap; gap: 4px 14px; }
.unit-more-card.more-cols-1 { grid-column: span 1; }
.unit-more-card.more-cols-2 { grid-column: span 2; }
.unit-more-card.more-cols-3 { grid-column: span 3; }
.unit-more-card.more-cols-4 { grid-column: span 4; }
.unit-more-card { background: var(--paper-2); padding: 30px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; text-decoration: none; color: var(--ink-2); }
.unit-more-card svg { width: 20px; height: 20px; transition: transform .18s; }
.unit-more-card:hover { color: var(--sun-ink); }
.unit-more-card:hover svg { transform: translateX(4px); }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button { width: 36px; height: 36px; padding: 0; border: 1px solid var(--rule); background: var(--paper); display: grid; place-items: center; color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s; }
.carousel-nav button svg { width: 16px; height: 16px; }
.carousel-nav button:hover:not(:disabled) { border-color: var(--sun-ink); color: var(--sun-ink); }
.carousel-nav button:disabled { opacity: .35; cursor: default; }

/* ---------- Altyapıya erişim (koyu bant) ---------- */
.access { background: var(--night); color: var(--night-ink); }
.access-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); }
.access .eyebrow { color: var(--night-mute); }
.access h2 { font-size: clamp(29px, 3.4vw, 42px); margin: 16px 0 20px; }
.access-lead { color: var(--night-mute); font-size: 17px; max-width: 32em; margin-bottom: 30px; }
.access .btn { border-color: var(--night-ink); color: var(--night-ink); }
.access .btn:hover { background: var(--night-ink); color: var(--night); }
.access .btn-sun { border-color: var(--sun); color: var(--ink); }
.access .btn-sun:hover { background: var(--night-ink); border-color: var(--night-ink); }
/* .service-list li'nin icerigi bazen dogrudan (span.code + div), bazen bir <a> ile sarilmis
   olarak (anasayfadaki one cikan hizmetler) gelir; <a> display:contents ile "gorunmez"
   yapilarak her iki durumda da ayni 2 sutunlu grid (kod + icerik) korunur. */
.service-list li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--night-rule); }
.service-list li:last-child { border-bottom: 1px solid var(--night-rule); }
.service-list li > a { display: contents; color: inherit; text-decoration: none; }
.service-list li:hover strong { color: var(--sun); }
.service-list .code { font-family: var(--f-mono); font-size: 12px; color: var(--sun); padding-top: 4px; letter-spacing: .04em; }
.service-list strong { display: block; font-weight: 700; margin-bottom: 2px; }
.service-list span {
  color: var(--night-mute); font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}

/* ---------- Etkinlikler ---------- */
.filter-tabs { display: flex; gap: 0; border: 1px solid var(--ink); flex: none; }
.filter-tabs button { border: 0; background: none; padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; border-left: 1px solid var(--ink); }
.filter-tabs button:first-child { border-left: 0; }
.filter-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.head-tools { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }

.event-list li { border-bottom: 1px solid var(--rule); }
.event-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 22px 0; }
.event-date { font-family: var(--f-mono); line-height: 1.1; }
.event-date .d { display: block; font-size: 34px; font-weight: 500; letter-spacing: -0.03em; }
.event-date .m { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.event-body h3 { font-size: 20px; margin: 6px 0 6px; }
.event-body h3 a { text-decoration: none; }
.event-body h3 a:hover { color: var(--sun-ink); }
.event-place { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.event-place svg { width: 14px; height: 14px; flex: none; }
.role-org { color: var(--sun-ink); }
.event-row[hidden] { display: none; }

/* ---------- Yayınlar & Projeler ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.pub-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.pub-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pub-top .chip { color: var(--sun-ink); }
.pub-authors { font-size: 14px; color: var(--ink-2); }
.pub-title { font-family: var(--f-serif); font-size: 18.5px; font-weight: 700; line-height: 1.32; margin: 4px 0; display: block; text-decoration: none; }
.pub-title:hover { color: var(--sun-ink); }
.pub-venue { font-size: 14px; color: var(--ink-2); }
.pub-venue em { font-style: italic; }
.pub-doi { font-family: var(--f-mono); font-size: 12px; color: var(--sun-ink); margin-left: 6px; }

.proj-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.proj-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.proj-funder { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-2); }
.status { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.status.done { color: var(--ink-3); }
.status.done::before { background: var(--ink-3); }
.proj-title { font-family: var(--f-serif); font-size: 18.5px; font-weight: 700; line-height: 1.32; margin: 8px 0 14px; display: block; text-decoration: none; }
.proj-title:hover { color: var(--sun-ink); }
.timeline { position: relative; height: 4px; background: var(--paper-3); }
.timeline span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); width: 0; }
.timeline-labels { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.timeline-labels b { color: var(--ink); font-weight: 500; }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--grad-night); color: var(--night-mute); font-size: 15px; border-top: 3px solid var(--sun); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 44px; }

.footer-brand .logo { width: 176px; aspect-ratio: 6073 / 3471; color: var(--night-ink); margin-bottom: 20px; }
.footer-tagline { max-width: 30em; line-height: 1.6; color: var(--night-mute); margin-bottom: 24px; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; margin-bottom: 4px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--sun); }
.footer-contact span, .footer-contact a { line-height: 1.55; }
.footer-contact a { color: var(--night-ink); text-decoration: none; }
.footer-contact a:hover { color: var(--sun); }

.footer-col h2 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--night-ink); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--night-rule); }
.footer-col a { display: block; padding: 6px 0; text-decoration: none; }
.footer-col a:hover { color: var(--sun); }

.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--night-rule); color: var(--night-ink); }
.socials a:hover { border-color: var(--sun); color: var(--sun); }
.socials svg { width: 16px; height: 16px; }

.footer-bottom { border-top: 1px solid var(--night-rule); background: rgba(0, 0, 0, .18); font-size: 13px; }
.footer-bottom-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 18px 0; }
.footer-bottom-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-inner a { text-decoration: none; }
.footer-bottom-inner a:hover { color: var(--night-ink); }
.back-to-top { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--night-ink); font-weight: 600; }
.back-to-top svg { width: 13px; height: 13px; }
.back-to-top:hover { color: var(--sun); }

/* ==========================================================================
   Duyarlı yerleşim
   ========================================================================== */
@media (hover: hover) and (min-width: 1025px) {
  .has-mega:hover > .mega { display: block; }
  .has-mega:hover > .nav-link::after { transform: scaleX(1); }
}

@media (max-width: 1024px) {
  .util-tagline { display: none; }
  .util-inner { justify-content: flex-end; }
  .nav-toggle { display: grid; }
  .header-tools { margin-left: auto; }
  .primary-nav {
    display: none; position: fixed; left: 0; right: 0; top: var(--nav-top, 112px); bottom: 0;
    background: var(--paper); overflow-y: auto; border-top: 1px solid var(--rule); padding: 8px var(--gut) 40px;
  }
  .nav-open .primary-nav { display: block; }
  .nav-open { overflow: hidden; }
  .primary-nav > ul { flex-direction: column; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--rule); }
  .nav-link { height: auto; padding: 18px 0; width: 100%; justify-content: space-between; font-size: 18px; }
  .nav-link::after { display: none; }
  .mega { position: static; box-shadow: none; border: 0; background: none; }
  .mega-inner { grid-template-columns: 1fr; gap: 20px; padding: 0 0 20px; }
  .mega-intro { display: none; }
  .mega-units { columns: 1; }
  .primary-nav > ul > li.nav-lang { display: flex; gap: 10px; border-bottom: 0; padding-top: 24px; }
  .nav-lang a { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-decoration: none; padding: 8px 14px; border: 1px solid var(--rule); }
  .nav-lang a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

  .news-hero-grid { grid-template-columns: 1fr; }
  .news-side { border-top: 1px solid var(--rule); padding-top: 28px; }
  .statement-grid { grid-template-columns: 1fr; }
  .sunpath svg, .sunpath figcaption { margin-left: 0; }
  .hero-image img { margin-left: 0; }
  .figures ul { grid-template-columns: repeat(2, 1fr); }
  .figures li:nth-child(3) { border-left: 0; }
  .figures li:nth-child(3) > a { padding-left: 0; }
  .figures li { border-top: 1px solid var(--rule); }
  .figures li:nth-child(-n+2) { border-top: 0; }
  .unit-grid { grid-template-columns: repeat(2, 1fr); }
  .unit-page { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .unit-more-card[class*="more-cols-"] { grid-column: 1 / -1; }
  .access-grid, .split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .util-links > a { display: none; }
  .lang-switch { border-left: 0; padding-left: 0; }
  .brand .logo { width: 158px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .head-tools { justify-content: flex-start; }
  .event-row { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .event-row .event-cta { grid-column: 2; }
  .event-date .d { font-size: 26px; }
  .service-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-top { grid-template-columns: 1fr; }
  .news-side-item { grid-template-columns: 64px minmax(0, 1fr); }
  .unit-grid { grid-template-columns: 1fr; }
  .unit-carousel { display: block; overflow: visible; }
  .unit-page { grid-template-columns: 1fr; }
  .unit-page + .unit-page { margin-left: 0; margin-top: 1px; }
  .head-tools .carousel-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
