/* === OnePress-style list-article cards === */
.list-article {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}
.list-article:last-of-type { border-bottom: 0; }
.list-article-thumb {
  flex: 0 0 200px;
}
.list-article-thumb a {
  display: block;
}
.list-article-thumb img {
  display: block;
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 2px;
}
.list-article-content {
  flex: 1 1 auto;
  min-width: 0;
}
.list-article-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: #888;
}
.list-article-meta a {
  color: #1e21fc;
  text-decoration: none;
}
.list-article-meta a:hover { text-decoration: underline; }
.list-article .entry-header {
  margin-bottom: 0.4rem;
}
.list-article .entry-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}
.list-article .entry-title a {
  color: #1f3b4d;
  text-decoration: none;
}
.list-article .entry-title a:hover { color: #1e21fc; }
.list-article .entry-excerpt {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}
.list-article .entry-excerpt p:first-child { margin-top: 0; }
.list-article .entry-excerpt p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .list-article { flex-direction: column; }
  .list-article-thumb { flex: 0 0 auto; }
  .list-article-thumb img { width: 100%; height: auto; }
}

/* === Header: OnePress-style — full-width white bar, branding floats left
   (logo image + title + description stacked vertically), nav floats right.
   Below 1140px the nav collapses to a hamburger toggled by #nav-toggle. === */

/* Full-width header sits OUTSIDE container--outer (overridden in baseof.html)
   and stays pinned at the top of the viewport on scroll, matching the
   original site's `is-sticky header-fixed` behavior. */
#header-section {
  background: #fff;
  border-bottom: 1px solid #eee;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
#masthead.site-header {
  background: transparent;
  padding: 0;
}
#masthead .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 20px;
  position: relative;
}
#masthead .container::after {
  content: "";
  display: table;
  clear: both;
}

/* Branding: logo image on its own line, title below, description below title */
.site-branding {
  float: left;
  max-width: 60%;
}
.site-brand-inner.has-logo-img {
  /* line-height matches OnePress's 60px logo */
}
.site-logo-div {
  display: block;
  line-height: 0;
  margin: 0 0 4px 0;
}
.site-logo-div .custom-logo {
  display: block;
  height: 60px;
  width: auto;
}
.site-title,
p.site-title {
  display: block;
  margin: 0;
  line-height: 1;
}
.site-text-logo {
  font-family: "Raleway", "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
}
.site-text-logo:hover { color: #1e21fc; text-decoration: none; }
.site-description,
p.site-description {
  display: block;
  margin: 4px 0 0 0;
  font-size: 12px;
  line-height: 14px;
  color: #555;
  font-weight: 400;
}

/* Right side: nav + toggle */
.header-right-wrapper {
  float: right;
  position: relative;
  padding-top: 30px; /* vertically centers nav against the ~80px branding */
}

/* Desktop menu */
#site-navigation .onepress-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
#site-navigation .onepress-menu > li {
  float: left;
  margin: 0;
  padding: 0;
}
#site-navigation .onepress-menu .menu-item a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1f3b4d;
  text-decoration: none;
}
#site-navigation .onepress-menu .menu-item a:hover,
#site-navigation .onepress-menu .menu-item.current-menu-item > a {
  color: #1e21fc;
}
#site-navigation .onepress-menu::after {
  content: "";
  display: table;
  clear: both;
}

/* Hide Mainroad's default lower black nav bar if leftover */
header.header { background: transparent; padding: 0; }

/* Hamburger toggle — hidden on desktop */
#nav-toggle {
  display: none;
  cursor: pointer;
  text-decoration: none;
  color: #1f3b4d;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.5rem 0;
}

/* === Mobile nav — collapse below 1140px (matches OnePress breakpoint) === */
@media screen and (max-width: 1140px) {
  #masthead .container {
    padding: 0.75rem 20px;
  }
  .site-branding { max-width: calc(100% - 100px); }
  .header-right-wrapper {
    padding-top: 18px;
    position: static; /* so dropdown positions to .container, not this */
  }
  #nav-toggle {
    display: inline-block;
  }
  #nav-toggle span {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
    margin-left: 8px;
    vertical-align: middle;
  }
  #nav-toggle span::before,
  #nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
  }
  #nav-toggle span::before { top: -7px; }
  #nav-toggle span::after  { top:  7px; }

  #site-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: none;
    z-index: 800;
  }
  #site-navigation.nav-is-visible { display: block; }
  #site-navigation .onepress-menu > li { float: none; width: 100%; }
  #site-navigation .onepress-menu .menu-item a {
    padding: 0.85rem 20px;
    border-top: 1px solid #f0f0f0;
  }
  #site-navigation .onepress-menu > li:first-child > a { border-top: 0; }
}

/* === Comments thread === */
#comments {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}
#comments .comments-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
#comments .comment-list,
#comments .comment-list .children {
  list-style: none;
  padding-left: 0;
}
#comments .comment-list .children {
  margin-left: 1.5rem;
  border-left: 2px solid #eee;
  padding-left: 1rem;
}
#comments .comment {
  margin: 1rem 0;
}
#comments .comment-body {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 0.75rem 1rem;
}
#comments .comment.bypostauthor > .comment-body {
  background: #f0f4ff;
  border-color: #d4dcff;
}
#comments .comment-meta {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}
#comments .comment-meta cite {
  font-style: normal;
  margin-right: 0.5rem;
}
#comments .comment-meta cite .fn {
  color: #222;
}
#comments .comment-meta .says {
  display: inline-block;
  background: #1e21fc;
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 0.25rem;
  vertical-align: middle;
}
#comments .comment-meta .comment-time {
  color: #888;
  text-decoration: none;
}
#comments .comment-meta .comment-time:hover {
  color: #1e21fc;
}
#comments .comment-content p:first-child {
  margin-top: 0;
}
#comments .comment-content p:last-child {
  margin-bottom: 0;
}

/* === Recent Comments widget === */
.widget-recent_comments .recent_comment {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.35;
}
.widget-recent_comments .recent_comment__author {
  font-weight: 600;
  color: #222;
}
.widget-recent_comments .recent_comment__zu {
  color: #888;
}
.widget-recent_comments .recent_comment__link {
  color: #1e21fc;
  text-decoration: none;
}
.widget-recent_comments .recent_comment__link:hover {
  text-decoration: underline;
}

/* === Mobile: ease the deep-thread indentation === */
@media (max-width: 600px) {
  #comments .comment-list .children {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
  }
}
