:root {
  --deep: #0E3B4F;
  --deep-2: #164B62;
  --surface: #E6EFF1;
  --paper: #F6F9FA;
  --signal: #F2C230;
  --ink: #12262E;
  --muted: #4F6A73;
  --line: #C3D3D8;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { overflow-x: hidden; }
img { max-width: 100%; }
body {
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

/* Üst kısım: solda başlık + menü, sağda büyük logolar */
.top {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.5rem;
}
.masthead {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: center;
  text-align: center;
  padding: 0.8rem 0 0.55rem;
}
.brand {
  color: var(--deep);
  text-decoration: none;
  font-size: clamp(2.6rem, 4.8vw, 4.1rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.tagline {
  margin: 0.4rem auto 0;
  max-width: 32rem;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--muted);
  text-wrap: balance;
}
.nav {
  grid-column: 1 / 3;
  grid-row: 2;
  justify-self: start;
  align-self: start;
  background: var(--deep);
  border-radius: 0 10px 10px 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  padding: 0.55rem 0.9rem 0.55rem 1.5rem;
  margin-bottom: 1.1rem;
}
.nav a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.06rem;
  font-weight: 600;
  padding: 0.65rem 0.95rem;
  border-radius: 6px;
  white-space: nowrap;
}
.nav a:hover { background: var(--deep-2); }
.nav a[aria-current="page"] { background: var(--signal); color: var(--ink); }
.partners {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 0.6rem 2.5rem 0.6rem 0;
}
.partners img { display: block; width: auto; }
.logo-odtu { height: 150px; }
.logo-isbank { height: 165px; }

/* Ana sayfa: harita + panel */
.home {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  min-height: 560px;
}
#map { min-height: 560px; height: 100%; background: #C8DCE3; }
.panel {
  background: var(--paper);
  padding: 0 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.panel h1 {
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--deep);
  margin: 0;
}
.status { font-size: 1.15rem; line-height: 1.55; margin: 0; }
.status mark {
  background: var(--signal);
  color: var(--ink);
  padding: 0 0.3em;
  border-radius: 3px;
  font-weight: 600;
}
.last { font-size: 0.95rem; color: var(--muted); margin: 0; }
.mission { font-size: 1rem; line-height: 1.55; margin: 0; color: #2E4650; }
.last:empty { display: none; }
.dot-key { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--signal); border: 2px solid var(--deep); margin-right: 0.4em; vertical-align: -1px; }

/* İç sayfalar */
.page { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; color: var(--deep); margin: 0 0 1.5rem; }
.page h2 { font-size: 1.3rem; color: var(--deep); margin: 2.2rem 0 0.6rem; font-weight: 600; }
.page p { font-size: 1.06rem; margin: 0 0 1rem; max-width: 65ch; }
.missions { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.missions li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.missions .when { color: var(--muted); font-size: 0.95rem; }
.missions strong { color: var(--deep); }

/* Alt bilgi */
.foot {
  background: var(--deep);
  color: #C9DADF;
  padding: 1.1rem 1.5rem;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.sponsor { color: #FFFFFF; }

@media (max-width: 820px) {
  .top { grid-template-columns: 1fr auto; column-gap: 0.75rem; }
  .masthead { grid-column: 1; grid-row: 1; align-self: center; justify-self: start; text-align: left; padding: 0.8rem 1rem; }
  .brand { font-size: 2.1rem; }
  .tagline { white-space: normal; font-size: 0.78rem; line-height: 1.35; }
  .partners { grid-column: 2; grid-row: 1; }
  .nav { grid-column: 1 / 3; grid-row: 2; justify-self: stretch; }
  .partners { gap: 1rem; padding: 0.6rem 1rem 0.6rem 0; }
  .logo-odtu { height: 72px; }
  .logo-isbank { height: 78px; }
  .nav { border-radius: 0; margin: 0; padding: 0.5rem 0.75rem; gap: 0.35rem; flex-wrap: wrap; }
  .nav a { flex: 1 1 auto; text-align: center; padding: 0.65rem 0.6rem; font-size: 1rem; white-space: normal; }
  .home { grid-template-columns: 1fr; }
  #map { min-height: 58vh; }
  .panel { padding: 0 1.25rem 2rem; }
  .panel-photo { width: calc(100% + 2.5rem); margin: 0 -1.25rem 0.4rem; }
  .missions li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* Fotoğraflar */
.panel-photo {
  width: 100%;
  aspect-ratio: 9 / 2;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  width: calc(100% + 4.5rem);
  max-width: none;
  margin: 0 -2.25rem 0.4rem;
}
.hero { margin: 0 0 2rem; }
.hero img { width: 100%; height: auto; display: block; border-radius: 6px; }
.hero figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }


/* Yapım aşamasında kutusu */
.soon {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3rem 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.soon-title { font-size: 1.5rem; font-weight: 600; color: var(--deep); margin: 0 0 0.75rem !important; }
.soon p { max-width: 46ch; margin-left: auto; margin-right: auto; }

/* Dizüstü bilgisayar gibi alçak ekranlarda her şey kaydırmadan sığsın */
@media (max-height: 940px) and (min-width: 821px) {
  .logo-odtu { height: 118px; }
  .logo-isbank { height: 128px; }
  .brand { font-size: clamp(2.4rem, 4vw, 3.5rem); }
  .masthead { padding-top: 0.5rem; padding-bottom: 0.45rem; }
  .tagline { font-size: 0.85rem; margin-top: 0.25rem; }
  .nav { margin-bottom: 0.7rem; }
  .nav a { padding: 0.5rem 0.9rem; }
  .panel-photo { aspect-ratio: 6.5 / 1; }
  .panel { gap: 0.55rem; padding-bottom: 1rem; }
  .panel h1 { font-size: 1.6rem; margin-top: 0.4rem; }
  .status { font-size: 1.05rem; }
  .mission { font-size: 0.94rem; line-height: 1.47; }
}


/* Geniş iç sayfa (Deniz Kaşifi nedir) */
.page-wide { max-width: none; padding: 2rem 2.5rem 3rem; }
.page-wide h1 { margin-bottom: 1.25rem; }
.photos { display: flex; gap: 1rem; margin-bottom: 2rem; }
.photos figure { margin: 0; flex-basis: 0; min-width: 0; }
.photos img { width: 100%; height: auto; display: block; border-radius: 6px; }
.photos figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.5rem; }
.sections { columns: 3 19rem; column-gap: 3rem; }
.sections section { break-inside: avoid; margin-bottom: 1.5rem; }
.sections h2 { margin-top: 0; }
.page-wide p { max-width: none; }
@media (max-width: 820px) {
  .page-wide { padding: 1.5rem 1.25rem 2.5rem; }
  .photos { flex-direction: column; }
}

/* ===== Telefon düzeni (son söz bu blokta) ===== */
@media (max-width: 820px) {
  .top { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; column-gap: 0.5rem; }
  .masthead { display: contents; }
  .brand { grid-column: 1; grid-row: 1; align-self: center; justify-self: start; padding: 0.8rem 0 0.3rem 1rem; font-size: 1.9rem; }
  .tagline { grid-column: 1 / 3; grid-row: 2; margin: 0; padding: 0.15rem 1rem 0.7rem; font-size: 0.8rem; line-height: 1.4; white-space: normal; text-align: left; }
  .partners { grid-column: 2; grid-row: 1; align-self: center; padding: 0.6rem 1rem 0.2rem 0; gap: 0.75rem; }
  .logo-odtu { height: 60px; }
  .logo-isbank { height: 64px; }
  .nav { grid-column: 1 / 3; grid-row: 3; justify-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; padding: 0.5rem; margin: 0; border-radius: 0; }
  .nav a { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.6rem 0.4rem; font-size: 0.95rem; white-space: normal; line-height: 1.25; }

  /* Ana sayfa: önce durum bilgisi, sonra harita, sonra fotoğraf ve metin */
  .home { display: flex; flex-direction: column; gap: 0.75rem; background: var(--paper); min-height: 0; padding-bottom: 1.75rem; }
  .panel { display: contents; }
  .panel > * { margin-left: 1.25rem; margin-right: 1.25rem; }
  .panel h1 { order: 1; margin: 1.1rem 1.25rem 0; font-size: 1.55rem; }
  .status { order: 2; font-size: 1.05rem; }
  .last { order: 3; }
  #map { order: 4; height: 50vh; min-height: 300px; }
  .panel-photo { order: 5; width: auto; max-width: none; height: 120px; aspect-ratio: auto; margin-top: 0.5rem; margin-bottom: 0; border-radius: 6px; }
  .mission { order: 6; font-size: 0.98rem; }

  /* Deniz Kaşifi nedir: fotoğraflar yana kaydırılır */
  .page-wide { padding: 1.25rem 1rem 2rem; }
  .page-wide h1 { font-size: 1.8rem; }
  .photos { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 1rem; gap: 0.75rem; margin: 0 -1rem 1.5rem; padding: 0 1rem 0.25rem; }
  .photos figure { flex: 0 0 82% !important; width: auto !important; scroll-snap-align: start; }
  .photos img { height: 220px; width: 100%; object-fit: cover; }
  .page { padding-left: 1rem; padding-right: 1rem; }
}
