/*
Theme Name:   Indite Child
Theme URI:    http://islamclick.local
Description:  Indite child theme — restored original three-column layout matching archive.org
Author:       IslamClick
Author URI:   http://islamclick.local
Template:     indite
Version:      1.0.0
Text Domain:  indite-child
*/

/* ===== Site title — logo image display ===== */
.site-title a {
  display: block;
}
.site-title a img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== Social links — green accent matching archive.org (.s2 strip) ===== */
.social-links .social-tooltip {
  color: #69bc90 !important;
}

/* ===== Entry meta — hide elements not present in archive.org ===== */
.entry-meta .entry-author {
  display: none;
}

/* ===== Post card — ensure consistent max-width ===== */
.post-card,
.post-list .post-row {
  margin: 0 auto 30px;
}

/* ===== Footer — hide theme credit line ===== */
#credit {
  display: none;
}

/* ===== Footer — fix z-index overlay blocking content clicks ===== */
#footer-bottom {
  z-index: auto;
}

/* ===== Mobile — fix footer overlapping main content ===== */
@media only screen and (max-width: 960px) {
  .main-inner {
    position: relative;
    z-index: 1;
  }
  #footer {
    clear: both;
  }
}

/* ===== Layout — defensive flex rules ===== */
/* If a post's content has unbalanced div tags, the browser closes .main   */
/* early and the footer becomes a direct flex child of #wrapper-inner.     */
/* These rules ensure the three-column layout still works when flex-wrap   */
/* is enabled, and force the escaped footer to a full-width row below.     */
#wrapper-inner {
  flex-wrap: wrap;
}
.main {
  flex: 1 1 0%;
  min-width: 0;
}
#wrapper-inner > #footer {
  order: 99;
  flex: 0 0 100%;
}
