/* =========================================================
   design.css — hku-bolum'un kendi kimliği.
   ---------------------------------------------------------
   BİRİNCİL RENK: --lacivert-900. hku-faculty bütün birincil renk
   kullanımını --bordo-* token'larından okur (buton, bağlantı, etiket,
   footer, odak halkası…); aşağıdaki :root bloğu o token'ları lacivert
   ölçeğiyle YENİDEN TANIMLAR — böylece parent'a dokunmadan bölüm sitesinin
   tamamı lacivert olur, fakülte sitesi bordo kalır. (Token ADLARI bordo
   olarak kalır; değerleri lacivert.) Logo görseli ve altın vurgu aynen
   korunur. Üçüncü bir vurgu rengi (camgöbeği) ince ayraç çizgilerinde
   kullanılır.

   @package HKU_Bolum
   ========================================================= */

:root{
  --lacivert-900:#0f1f33;   /* BİRİNCİL */
  --lacivert-800:#16304f;
  --lacivert-700:#1d4066;   /* hover / ikincil vurgu */
  --lacivert-600:#2a5686;
  --lacivert-100:#e4ebf3;
  --lacivert-50:#f3f6fa;
  --camgobegi-600:#2f97a6;
  --camgobegi-400:#5cc2d1;

  /* Parent'ın --bordo-* token'ları → lacivert (birincil = --lacivert-900) */
  --bordo-900:#070e1a;
  --bordo-800:#0b1829;
  --bordo-700:var(--lacivert-900);   /* primary */
  --bordo-600:var(--lacivert-700);   /* hover */
  --bordo-100:var(--lacivert-100);
  --bordo-50:var(--lacivert-50);
  --ring:0 0 0 3px rgba(15,31,51,.22);
}

/* parent'ta sabit (token'sız) bordo değerleri */
.hku-share__icons a:hover,.hku-share__icons button:hover{box-shadow:0 10px 20px -6px rgba(15,31,51,.32)}
.ph--bordo{background:repeating-linear-gradient(135deg,rgba(15,31,51,.10) 0 11px,rgba(15,31,51,.05) 11px 22px),var(--bordo-800)}
.ph--bordo::after{background:rgba(7,14,26,.55);color:#e4ebf3}
/* Görselsiz kart yedeği (.ph-logo): beyaz amblem ::before ile çizilir, <img> (bordo SVG)
   gizli olmalı — parent'ın `.ph-logo img{display:none}` kuralı başka bir kuralca eziliyor ve
   bordo zeminde bordo logo görünmediği için fark edilmiyordu; lacivert zeminde görünür oldu. */
.card__media .ph-logo img,.list-item__media .ph-logo img,.hero__media .ph-logo img,.member__photo .ph-logo img{display:none}

/* İnce camgöbeği ayraç — header'ın altında (civil.hku.edu.tr'deki gibi) */
.site-header{border-bottom-color:var(--camgobegi-600);box-shadow:0 2px 0 var(--camgobegi-600)}

/* ============== SAYFA BAŞLIĞI (iç sayfalar) — lacivert ============== */
.page-hero{background:linear-gradient(165deg,var(--lacivert-800) 0%,var(--lacivert-900) 100%)}
.page-hero .kicker{color:var(--camgobegi-400)}
.page-hero .kicker::before{background:var(--camgobegi-400)}
.breadcrumb{color:#9fb3c8}

.hku-person {
  background-color: white;
  padding: 20px;
}

.ders table > tbody > tr:first-child {
  background-color: var(--lacivert-900);
  color: white;
}

.ders-side table > tbody > tr > td:first-child{
  background-color: var(--lacivert-900);
  color: white;
  border: 0;
}

/* ============== ETKİNLİK DETAY TABLOSU (.hk-custom-event-table) ==============
   Göç edilen stm_event gövdelerindeki düz HTML tablo (Türü / Konu / Konuşmacı /
   Düzenleyen / Organizasyon / Dil / Açıklama). İşaretleme DB'de sabit, yalnızca
   görünüm: etiket|değer iki sütun (tablo → grid), değeri boş satırlar gizli,
   uzun metinli satır (Açıklama; hücrede <p>/<div> var) alt alta tam genişlik,
   mobilde tüm satırlar alt alta. Parent `.hku-rich table/td` kurallarını
   özgüllükle ezer. İlk görünen satırın üst çizgisi tbody'nin -1px kaydırmasıyla
   kırpılır — gizli satır olsa da çift çizgi çıkmaz. */
.hk-custom-event-table,
.hk-custom-event-table > tbody {
  display: block;
}
.hku-rich .hk-custom-event-table {
  width: 100%;
  margin: 0 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font-size: .95rem;
}
.hk-custom-event-table > tbody {
  margin-top: -1px;
}
.hk-custom-event-table > tbody > tr {
  display: grid;
  grid-template-columns: minmax(130px, 200px) 1fr;
}
.hk-custom-event-table > tbody > tr:has(> td:empty) {
  display: none;
}
.hku-rich .hk-custom-event-table > tbody > tr > th,
.hku-rich .hk-custom-event-table > tbody > tr > td {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.hku-rich .hk-custom-event-table > tbody > tr > th {
  background: var(--lacivert-50);
  color: var(--lacivert-900);
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.8;
  text-transform: uppercase;
}
.hku-rich .hk-custom-event-table > tbody > tr > td {
  background: transparent;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.65;
}
/* Uzun metin satırı: etiket üstte ince şerit, metin altında tam genişlik. */
.hk-custom-event-table > tbody > tr:has(> td > p, > td > div) {
  grid-template-columns: 1fr;
}
.hku-rich .hk-custom-event-table > tbody > tr:has(> td > p, > td > div) > th {
  border-right: 0;
  padding-block: 10px;
}
.hk-custom-event-table td .wpb_text_column,
.hk-custom-event-table td .wpb_wrapper {
  margin: 0;
}
.hk-custom-event-table td .cws_spacing {
  display: none;
}
.hk-custom-event-table td p {
  margin: 0 0 .9em;
  text-align: left !important; /* göç edilen içerikte satır içi "justify" var */
}
.hk-custom-event-table td p:last-child,
.hk-custom-event-table td .wpb_wrapper > p:last-of-type {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .hk-custom-event-table > tbody > tr {
    grid-template-columns: 1fr;
  }
  .hku-rich .hk-custom-event-table > tbody > tr > th {
    border-right: 0;
    padding-block: 8px;
  }
  .hku-rich .hk-custom-event-table > tbody > tr > td {
    border-top: 0;
    padding-block: 12px;
  }
}

.ders table > tbody > tr:first-child > td, .ders table > tbody > tr:first-child > th {
  color: white;
  border: 0;
}

/* ============== BÖLÜM ANA SAYFA HERO ============== */
.dept-hero{position:relative;background:linear-gradient(115deg,var(--lacivert-900) 0%,var(--lacivert-700) 100%);overflow:hidden;color:#fff}
.dept-hero__bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.22;mix-blend-mode:luminosity}
.dept-hero__inner{position:relative;z-index:1;padding-block:clamp(56px,8vw,104px);max-width:720px}
.dept-hero__kicker{display:inline-block;font-family:var(--font-mono);font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--camgobegi-400);border-left:3px solid var(--camgobegi-600);padding-left:12px;margin-bottom:18px}
.dept-hero__title{font-size:clamp(2.2rem,4.6vw,3.6rem);font-weight:700;line-height:1.08;margin:0 0 20px;color:#fff}
.dept-hero__lead{font-size:1.08rem;line-height:1.6;color:rgba(255,255,255,.88);margin:0 0 30px;max-width:60ch}
.dept-hero__cta{display:flex;gap:13px;flex-wrap:wrap}
.dept-hero .btn--primary{background:var(--camgobegi-600);border-color:var(--camgobegi-600)}
.dept-hero .btn--primary:hover{background:var(--camgobegi-400);border-color:var(--camgobegi-400)}
.dept-hero .btn--ghost{border-color:rgba(255,255,255,.55);color:#fff}
.dept-hero .btn--ghost:hover{background:rgba(255,255,255,.12)}
@media(max-width:640px){.dept-hero__title{font-size:1.85rem}}

/* ============== HIZLI BİLGİLER şeridi ============== */
.dept-quickfacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1px;background:var(--lacivert-100);border:1px solid var(--lacivert-100);border-radius:var(--radius-lg);overflow:hidden;margin-top:-40px;position:relative;z-index:2;box-shadow:var(--shadow-lg)}
.dept-quickfact{background:var(--surface);padding:22px 20px;text-align:center}
.dept-quickfact__value{font-family:var(--font-display);font-size:1.9rem;font-weight:800;color:var(--lacivert-900);line-height:1}
.dept-quickfact__label{margin-top:6px;font-size:.8rem;color:var(--muted);letter-spacing:.01em}
@media(max-width:760px){.dept-quickfacts{margin-top:0}}

/* ============== ETKİNLİKLER (hku-events, hku_activity) — kart ============== */
.dept-eventgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px;margin-top:8px}
.dept-eventcard{display:flex;gap:16px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:18px;box-shadow:var(--shadow-sm);transition:.2s}
.dept-eventcard:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--border-strong)}
.dept-eventcard__date{flex:0 0 auto;width:56px;height:56px;border-radius:10px;background:var(--lacivert-900);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.dept-eventcard__day{font-family:var(--font-display);font-size:1.25rem;font-weight:800}
.dept-eventcard__month{margin-top:2px;font-size:.68rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--camgobegi-400)}
.dept-eventcard__body{flex:1;min-width:0}
.dept-eventcard__title{margin:0 0 8px;font-size:1rem;font-weight:700;line-height:1.3;color:var(--ink)}
.dept-eventcard__row{display:flex;align-items:center;gap:7px;margin-top:6px;font-size:.85rem;color:var(--ink-soft)}
.dept-eventcard__row svg{width:14px;height:14px;flex:0 0 auto;color:var(--lacivert-600)}
.dept-eventcard__excerpt{margin:8px 0 0;font-size:.86rem;line-height:1.5;color:var(--muted)}

/* ============== ETKİNLİK TEKİL SAYFASI (single-hku_activity.php) ============== */
.dept-event-cover{margin-bottom:28px;border:1px solid var(--border);border-radius:14px;overflow:hidden;box-shadow:var(--shadow-sm)}
.dept-event-cover img{display:block;width:100%;height:auto}
.dept-event-meta{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:18px}
.dept-event-meta li{display:flex;gap:14px;align-items:flex-start}
.dept-event-meta__label{display:block;font-size:.72rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.dept-event-meta__value{display:block;margin-top:2px;font-weight:600;line-height:1.4;color:var(--ink)}
.dept-event-meta__access{padding-top:16px;border-top:1px dashed var(--border-strong)}
.dept-speakers{margin-top:40px;padding-top:30px;border-top:1px solid var(--border)}
.dept-speakers__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-top:18px}
.dept-speaker{display:flex;gap:14px;align-items:center;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:16px}
.dept-speaker__avatar{flex:0 0 auto;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:var(--lacivert-100);color:var(--lacivert-900)}
.dept-speaker.is-main .dept-speaker__avatar{background:var(--lacivert-900);color:#fff}
.dept-speaker__name{display:block;font-weight:700;color:var(--ink)}
.dept-speaker__role{display:block;margin-top:2px;font-size:.85rem;color:var(--ink-soft)}
.dept-speaker__org{display:block;margin-top:1px;font-size:.72rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.dept-event-back{margin-top:36px;display:inline-flex}
.dept-event-back svg{transform:rotate(180deg)}
.dept-event-back:hover svg{transform:rotate(180deg) translateX(3px)}

/* ============== ETKİNLİK TAKVİMİ ([hku_takvim]) ============== */
.dept-cal{border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;background:var(--surface)}
.dept-cal__head{padding:18px 22px;background:var(--lacivert-800)}
.dept-cal__title{margin:0;font-size:1.15rem;font-weight:700;color:#fff}
.dept-cal__sub{margin:2px 0 0;font-size:.8rem;color:var(--camgobegi-400)}
.dept-cal__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.dept-cal__dow{padding:10px 4px;text-align:center;font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);background:var(--lacivert-50);border-bottom:1px solid var(--border)}
.dept-cal__cell{min-height:84px;padding:6px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:4px;min-width:0}
.dept-cal__cell:nth-child(7n){border-right:0}
.dept-cal__cell.is-empty{background:var(--surface-2)}
.dept-cal__day{font-size:.78rem;font-weight:600;color:var(--ink-soft)}
.dept-cal__cell.is-today .dept-cal__day{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--lacivert-900);color:#fff}
.dept-cal__event{display:block;padding:2px 6px;border-radius:5px;background:var(--lacivert-100);color:var(--lacivert-900);font-size:.68rem;font-weight:600;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dept-cal__event:hover{background:var(--lacivert-900);color:#fff}
/* Sayfa içeriğine gömüldüğünde (.entry-content a:not(…) zinciri çok yüksek özgüllük — bkz. hku-faculty/CLAUDE.md) */
.entry-content .dept-cal a,.entry-content .dept-eventgrid a{text-decoration:none !important}
@media(max-width:640px){.dept-cal__cell{min-height:56px;padding:4px}.dept-cal__event{font-size:.6rem;padding:1px 4px}}

/* ============== LABORATUVARLAR ============== */
.dept-labgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin-top:8px}
.dept-lab{background:var(--surface);border:1px solid var(--border);border-top:3px solid var(--camgobegi-600);border-radius:12px;padding:22px}
.dept-lab__title{margin:0 0 8px;font-size:1.02rem;font-weight:700;color:var(--lacivert-800)}
.dept-lab__desc{margin:0;font-size:.9rem;line-height:1.5;color:var(--muted)}

/* ============== BÖLÜM BAŞKANI MESAJI (ana sayfa teaser) ============== */
.dept-head{display:grid;grid-template-columns:minmax(0,220px) 1fr;gap:34px;align-items:center}
.dept-head__photo{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg)}
.dept-head__msg{font-size:1.05rem;line-height:1.7;color:var(--ink-soft);font-style:italic}
.dept-head__name{margin-top:16px;font-weight:700;color:var(--lacivert-800)}
.dept-head__title{font-weight:500;color:var(--muted)}
@media(max-width:700px){.dept-head{grid-template-columns:1fr;text-align:center}.dept-head__photo{max-width:220px;margin-inline:auto}}

/* Bölüm ana menüsündeki aktif öğe camgöbeği alt çizgi (bordo yerine) — ayırt edici ama küçük dokunuş */
.mainnav a.is-active::after{background:var(--bordo-900)}
