/* Evde Masaj ana site header: AMP ile uyumlu koyu zemin / acik logo.
   Sadece ust menuye uygulanir; profil ve makale govdelerine dokunmaz. */
.site-header {
  background: #0b0e12;
  color: #f8f7f2;
  border-bottom: 1px solid #27323a;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.site-header .header-inner { min-height: 92px; }
.site-header .brand { color: #fff; }
.site-header .brand img {
  width: 270px;
  max-width: 270px;
  max-height: none;
  height: auto;
  display: block;
}
.site-header .nav a,
.site-header .account-links a:not(.primary) {
  color: #f5f3ed;
}
.site-header .nav a:hover,
.site-header .account-links a:not(.primary):hover {
  background: #1e2830;
  color: #fff;
}
.site-header .nav a:focus-visible,
.site-header .account-links a:focus-visible,
.site-header .menu-toggle:focus-visible {
  outline: 2px solid #e9d29c;
  outline-offset: 2px;
}
.site-header .menu-toggle {
  background: #202934;
  color: #fff;
  border: 1px solid #44535e;
}
/* Menu dar masaustu ve tabletlerde de duzgun kapanir. */
@media (max-width: 1120px) {
  .site-header .nav {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 16px;
    right: 16px;
    z-index: 60;
    margin-left: 0;
    padding: 12px;
    background: #121820;
    border: 1px solid #3a454f;
    border-radius: 0 0 15px 15px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-header .nav.open { display: flex; }
  .site-header .menu-toggle { display: block; margin-left: auto; }
  .site-header .header-inner { gap: 12px; }
}
/* Mobilde logoya AMP'deki gibi tam genislik ayrilir. */
@media (max-width: 640px) {
  .site-header .header-inner {
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 5px;
    column-gap: 12px;
  }
  .site-header .brand {
    flex: 0 0 100%;
    min-width: 0;
    justify-content: center;
  }
  .site-header .brand img {
    width: min(300px, 100%);
    max-width: 300px;
    max-height: none;
    height: auto;
  }
  .site-header .menu-toggle {
    order: 2;
    margin-left: 0;
    padding: 7px 15px;
  }
  .site-header .account-links {
    order: 3;
    margin-left: 0;
  }
  .site-header .nav { top: calc(100% - 1px); }
}

/* Responsive layout fix — avoid a mobile-width overflow without shrinking the logo. */
html, body {
  max-width: 100%;
  overflow-x: hidden;  /* fallback for older engines */
  overflow-x: clip;    /* does not create a scroll container; sticky header works */
}
.site-header, .em-home-hero, .home-listings, .home-posts {
  max-width: 100%;
}
.site-header .header-inner,
.site-header .brand,
.em-home-layout,
.em-home-layout > *,
.em-home-hero .container,
.home-listings .container,
.home-posts .container {
  min-width: 0;
}
.site-header .brand {max-width: 100%;}
.site-header .brand img {max-width: 100%;}
.em-home-layout {grid-template-columns:minmax(0,1.17fr) minmax(0,.83fr);}
.em-home-layout img, .em-home-layout svg,
.em-home-layout iframe, .home-listings img, .home-posts img {max-width:100%;}
.em-home-hero h1, .home-listings h3, .home-posts h3 {overflow-wrap:break-word;}
.em-search {min-width:0;max-width:100%;}
@media (max-width:950px){
  .em-home-layout {grid-template-columns:minmax(0,1fr);}
}
@media (max-width:640px){
  .site-header .header-inner {max-width:100%;}
  .site-header .brand {width:100%;flex:0 1 100%;}
  .site-header .brand img {width:min(300px,100%);max-width:100%;margin:0 auto;}
  .site-header .account-links {min-width:0;}
  .em-search, .em-search input, .em-search button {min-width:0;max-width:100%;}
  .em-home-hero h1 {max-width:100%;}
}
