/*
Theme Name: Orbital Child Custom
Template: orbital
Version: 1.0
*/

/* ===== BASIC ===== */
body {
  word-wrap: break-word;
  line-height: 1.7;
}

body.single,
body.post-template-default,
body.blog,
body.archive,
body.page {
  background: #f8fafc;
  color: #111827;
}

.site-branding img,
.custom-logo {
  max-width: 100%;
  height: auto;
}

/* ===== STICKY HEADER ===== */
.site-header,
#masthead,
.header,
.main-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

/* ===== MENU ===== */
.main-navigation ul,
.main-menu ul,
#primary-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-navigation ul li a,
.main-menu ul li a,
#primary-menu li a {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

/* ===== HEADER SEARCH ===== */
.alphapedia-menu-search {
  margin-left: 25px;
  list-style: none;
}

.alphapedia-menu-search .search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.alphapedia-menu-search input[type="search"] {
  width: 160px;
  height: 34px;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 13px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}

.alphapedia-menu-search input[type="search"]:focus {
  border-color: #1e73be;
  box-shadow: 0 0 0 3px rgba(30,115,190,0.10);
}

.alphapedia-menu-search input[type="submit"] {
  height: 34px;
  padding: 0 12px;
  background: #1e73be;
  border: none;
  color: #fff;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.alphapedia-menu-search input[type="submit"]:hover {
  background: #155a96;
}

/* ===== CONTENT LAYOUT ===== */
.site-content,
#content {
  padding-top: 28px;
}

.single .content-area,
.blog .content-area,
.archive .content-area,
.page .content-area {
  width: 100%;
}

.single .site-main,
.single main,
.single article,
.page article,
.blog article,
.archive article {
  box-sizing: border-box;
}

/* Main post/article card */
.single article.post,
.single .post,
.single .type-post,
.page article.page {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.04);
}

/* ===== ARTICLE TYPOGRAPHY ===== */
.single .entry-title,
.page .entry-title,
.single h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.single .entry-content,
.page .entry-content {
  font-size: 18px;
  line-height: 1.9;
  color: #334155;
}

.single .entry-content p,
.page .entry-content p {
  margin-bottom: 22px;
}

.single .entry-content h2,
.page .entry-content h2 {
  font-size: 31px;
  line-height: 1.3;
  margin-top: 42px;
  margin-bottom: 18px;
  font-weight: 800;
  color: #0f172a;
}

.single .entry-content h3,
.page .entry-content h3 {
  font-size: 24px;
  line-height: 1.35;
  margin-top: 30px;
  margin-bottom: 14px;
  font-weight: 700;
  color: #111827;
}

.single .entry-content ul,
.single .entry-content ol,
.page .entry-content ul,
.page .entry-content ol {
  margin: 0 0 24px 24px;
}

.single .entry-content li,
.page .entry-content li {
  margin-bottom: 10px;
}

.single .entry-content a,
.page .entry-content a {
  color: #166534;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.single .entry-content strong,
.page .entry-content strong {
  color: #111827;
}

.single .entry-content blockquote,
.page .entry-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid #22c55e;
  background: #f0fdf4;
  border-radius: 10px;
  color: #14532d;
}

/* ===== FEATURED IMAGE ===== */
.single .post-thumbnail,
.single .featured-image,
.page .post-thumbnail {
  margin: 0 0 26px;
}

.single .post-thumbnail img,
.single img.wp-post-image,
.page .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* ===== ARTICLE META ===== */
.single .entry-meta,
.single .post-meta,
.page .entry-meta {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 18px;
}

/* ===== SIDEBAR ===== */
.widget {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.04);
}

.widget-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #0f172a;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget ul li {
  margin-bottom: 12px;
}

.widget a {
  color: #166534;
  text-decoration: none;
}

.widget a:hover {
  text-decoration: underline;
}

/* ===== RELATED / GRID POSTS ===== */
.related-posts article,
.related article,
.home article,
.archive article,
.orbital-post {
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-posts article:hover,
.related article:hover,
.home article:hover,
.archive article:hover,
.orbital-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15,23,42,0.08);
}

/* ===== COMMENTS ===== */
.comments-area,
#comments {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px;
  margin-top: 28px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.04);
}

.comments-title,
.comment-reply-title {
  font-size: 26px;
  margin-bottom: 18px;
  color: #0f172a;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  box-sizing: border-box;
  font-size: 15px;
  background: #fff;
}

.comment-form textarea {
  min-height: 180px;
}

.comment-form input[type="submit"],
.form-submit input[type="submit"] {
  background: #166534;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 15px;
}

.comment-form input[type="submit"]:hover,
.form-submit input[type="submit"]:hover {
  background: #14532d;
}

/* ===== BREADCRUMB / SMALL NAV ===== */
.breadcrumb,
.breadcrumbs,
nav.breadcrumbs {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 18px;
}

/* ===== TABLES ===== */
.single .entry-content table,
.page .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
}

.single .entry-content th,
.single .entry-content td,
.page .entry-content th,
.page .entry-content td {
  border: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
}

/* ===== ADSENSE-FRIENDLY SPACING ===== */
.single .entry-content > * + h2 {
  margin-top: 40px;
}

.single .entry-content > p + p {
  margin-top: 0;
}

/* ===== MOBILE ===== */
@media (max-width: 991px) {
  .single article.post,
  .single .post,
  .single .type-post,
  .page article.page {
    padding: 24px;
  }

  .single .entry-title,
  .page .entry-title,
  .single h1 {
    font-size: 34px;
  }

  .single .entry-content,
  .page .entry-content {
    font-size: 17px;
    line-height: 1.85;
  }
}

@media (max-width: 768px) {
  .main-navigation ul,
  .main-menu ul,
  #primary-menu {
    gap: 12px;
  }

  .alphapedia-menu-search {
    margin-left: 12px;
  }

  .alphapedia-menu-search input[type="search"] {
    width: 115px;
  }

  .alphapedia-menu-search input[type="submit"] {
    padding: 0 10px;
    font-size: 12px;
  }

  .single article.post,
  .single .post,
  .single .type-post,
  .page article.page,
  .comments-area,
  #comments,
  .widget {
    padding: 18px;
    border-radius: 14px;
  }

  .single .entry-title,
  .page .entry-title,
  .single h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .single .entry-content,
  .page .entry-content {
    font-size: 16px;
    line-height: 1.8;
  }

  .single .entry-content h2,
  .page .entry-content h2 {
    font-size: 24px;
  }

  .single .entry-content h3,
  .page .entry-content h3 {
    font-size: 20px;
  }
}