/* ZENMYKO Premium v5.0 — verified layout corrections, loaded last. */
/* ---------------------------------------------------------
   A. Forum threads: allocate a readable last-post column.
   Earlier 66% heading width left almost no room for last post.
---------------------------------------------------------- */
body.zen-forumdisplay-page .zen-thread-table{
  width:100%!important;table-layout:auto!important;border-collapse:separate!important;
}
body.zen-forumdisplay-page .zen-thread-table .zen-thread-lastpost-heading,
body.zen-forumdisplay-page .zen-thread-table .zen-thread-lastpost{
  width:22%!important;min-width:178px!important;max-width:none!important;
  text-align:left!important;white-space:normal!important;
  overflow-wrap:break-word!important;word-break:normal!important;
  padding-left:14px!important;padding-right:10px!important;
}
body.zen-forumdisplay-page .zen-thread-table .zen-thread-lastpost .smalltext{
  display:block!important;line-height:1.7!important;white-space:normal!important;
}
body.zen-forumdisplay-page .zen-thread-table .zen-thread-count-heading,
body.zen-forumdisplay-page .zen-thread-table .zen-thread-count{
  width:9%!important;min-width:55px!important;text-align:center!important;
}
body.zen-forumdisplay-page .zen-thread-table .zen-thread-views-heading,
body.zen-forumdisplay-page .zen-thread-table .zen-thread-views{
  width:12%!important;min-width:94px!important;text-align:center!important;
}
body.zen-forumdisplay-page .zen-thread-table .zen-thread-title-heading{
  width:auto!important;min-width:0!important;
}
body.zen-forumdisplay-page .zen-thread-table .zen-thread-name{
  min-width:0!important;overflow-wrap:anywhere!important;
}
/* Two icon columns and the optional moderation checkbox. */
body.zen-forumdisplay-page .zen-thread-table .zen-thread-row > td:nth-child(1),
body.zen-forumdisplay-page .zen-thread-table .zen-thread-row > td:nth-child(2){
  width:34px!important;padding-left:7px!important;padding-right:7px!important;
}
body.zen-forumdisplay-page .zen-thread-table .zen-thread-row > td:last-child:not(.zen-thread-lastpost){
  width:32px!important;
}

/* ---------------------------------------------------------
   B. Topic posts: explicit two-column grid replaces float layout.
   The float previously pushed post_content below the avatar.
---------------------------------------------------------- */
body.zen-showthread-page #posts .post.classic{
  display:grid!important;
  grid-template-columns:190px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:stretch!important;
  width:100%!important;min-width:0!important;
  float:none!important;clear:both!important;
}
body.zen-showthread-page #posts .post.classic > .post_author{
  grid-column:1!important;grid-row:1!important;
  float:none!important;clear:none!important;
  margin:0!important;width:190px!important;min-width:0!important;max-width:none!important;
  height:100%!important;box-sizing:border-box!important;
}
body.zen-showthread-page #posts .post.classic > .post_content{
  grid-column:2!important;grid-row:1!important;
  float:none!important;clear:none!important;
  position:relative!important;display:block!important;
  margin:0!important;width:auto!important;min-width:0!important;max-width:none!important;
  height:auto!important;min-height:0!important;box-sizing:border-box!important;
  padding:12px 20px 18px!important;
  align-self:start!important;
}
body.zen-showthread-page #posts .post.classic > .post_controls{
  grid-column:1 / -1!important;grid-row:2!important;
  float:none!important;clear:both!important;min-width:0!important;box-sizing:border-box!important;
}
body.zen-showthread-page #posts .post.classic .post_head{
  margin-top:0!important;padding-top:0!important;margin-bottom:12px!important;
}
body.zen-showthread-page #posts .post.classic .post_body{
  display:block!important;margin-top:0!important;padding-top:0!important;
  width:100%!important;max-width:100%!important;clear:none!important;
}
body.zen-showthread-page #posts .post.classic .post_body img{
  max-width:100%!important;height:auto!important;
}
/* No empty row from old clearfix / fixed float height. */
body.zen-showthread-page #posts .post.classic::before,
body.zen-showthread-page #posts .post.classic::after{
  grid-column:1 / -1!important;height:0!important;min-height:0!important;
}

/* ---------------------------------------------------------
   C. Page edge: full viewport header and banner, with only
   mobile horizontal overflow guarded; no clipping of #wrapper.
---------------------------------------------------------- */
html,body{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow-x:clip!important}
html body #container{
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;padding:0!important;overflow:visible!important;
  box-sizing:border-box!important;
}
html body #header,html body #header #logo,html body #header .zen-topline,
html body #header .zen-hero{
  display:block;width:100%!important;max-width:none!important;min-width:0!important;
  margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;
}
html body #header .zen-hero{overflow:hidden!important}
html body #content{
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;overflow:visible!important;box-sizing:border-box!important;
}
html body #content > .wrapper{
  max-width:var(--zen-page-max,1320px);overflow:visible!important;
  box-sizing:border-box!important;
}
html body::before{width:100%!important;max-width:none!important;left:0!important;right:0!important}
/* Preserve responsive body safety, not arbitrary inner clipping. */
@media(max-width:860px){
  html body #header .zen-hero{max-width:100%!important;overflow:hidden!important}
  html body .zen-shortcuts-block,html body .zen-home-grid,
  html body .zen-forumdisplay-layout{min-width:0!important;box-sizing:border-box!important}
  html body .zen-shortcuts-grid > *,html body .zen-home-grid > *{min-width:0!important}
}
@media(max-width:780px){
  body.zen-showthread-page #posts .post.classic{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important}
  body.zen-showthread-page #posts .post.classic > .post_author{
    grid-column:1!important;grid-row:1!important;width:100%!important;height:auto!important;
    border-right:0!important;border-bottom:1px solid #60433b!important;
  }
  body.zen-showthread-page #posts .post.classic > .post_content{
    grid-column:1!important;grid-row:2!important;width:100%!important;
    margin:0!important;padding:14px!important;
  }
  body.zen-showthread-page #posts .post.classic > .post_controls{grid-column:1!important;grid-row:3!important}
  body.zen-forumdisplay-page .zen-thread-table{min-width:780px!important}
  body.zen-forumdisplay-page .zen-threadlist{overflow-x:auto!important}
}

/* ===========================================================
   ZENMYKO v5.0.1 — Sag kenarda kalan bosluk icin tam ekran duzeltmesi
   Yalnizca dis cerceveyi etkiler; ic panellerin olculeri degismez.
   =========================================================== */
:root{scrollbar-gutter:auto!important}
html,html body{
  margin:0!important;padding:0!important;
  min-width:0!important;max-width:100%!important;
  overflow-x:clip!important;
}
/* Yuzdelik genislik scrollbar/gutter'a gore daralabildigi icin
   dis tasiyiciyi dogrudan viewport'a sabitle. */
html body #container{
  width:100vw!important;
  max-width:100vw!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  left:0!important;
  right:auto!important;
  box-sizing:border-box!important;
}
html body #container > #header,
html body #container > #content,
html body #container > #footer{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
html body #container #header .zen-topline,
html body #container #header #logo,
html body #container #header .zen-hero{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
/* Koyu sabit arka plan da sliderin bittigi ayni saga ulasir. */
html body::before{
  width:100vw!important;
  max-width:100vw!important;
  left:0!important;
  right:auto!important;
}
/* Telefonlarda yatay kayma yaratmadan kenari doldur. */
@media(max-width:860px){
  html body #container{width:100vw!important;max-width:100vw!important}
  html body #header .zen-hero{overflow:hidden!important}
}
