/*
Theme Name: Newsup Child
Theme URI: https://example.com/newsup-child
Description: Child theme for Newsup used by Noesis Digest.
Author: Noesis Digest
Template: newsup
Version: 1.0.0
Text Domain: newsup-child
*/

/* Put custom CSS overrides here. */

/* Sidebar: Noesis Trending Topics */
.noesis-trending-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.noesis-trending-topics li {
  margin: 0;
  padding: 0;
}

.noesis-trending-topics a {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(30, 64, 175, 0.25);
  background: #f8fbff;
  color: #0f172a;
  transition: all 0.2s ease;
}

.noesis-trending-topics a:hover,
.noesis-trending-topics a:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.noesis-trending-empty {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* Source toggle styling (pipeline output) */
.noesis-source-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.noesis-source-btn {
  appearance: none;
  border: 1px solid #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.noesis-source-btn:hover,
.noesis-source-btn:focus {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}

.noesis-source-wrap .noesis-source-text {
  font-size: 12px;
  line-height: 1.4;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  max-width: min(100%, 780px);
  word-break: break-all;
}

/* Footer disclaimer */
footer .mg-footer-copyright .noesis-footer-disclaimer {
  display: inline-block;
  margin-left: 8px;
  opacity: 0.88;
  font-size: 12px;
}

@media (max-width: 767px) {
  footer .mg-footer-copyright .noesis-footer-disclaimer {
    display: block;
    margin: 4px 0 0;
    font-size: 11px;
  }
}

footer .mg-footer-copyright .noesis-footer-policy-links {
  display: inline;
  margin-left: 8px;
}

footer .mg-footer-copyright .noesis-footer-policy-links a {
  color: #dbeafe !important;
  text-decoration: none;
  white-space: nowrap;
}

footer .mg-footer-copyright .noesis-footer-policy-links a:hover,
footer .mg-footer-copyright .noesis-footer-policy-links a:focus {
  color: #93c5fd !important;
  text-decoration: underline;
}

footer .mg-footer-copyright .noesis-footer-legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer .mg-footer-copyright .noesis-footer-legal-menu li {
  margin: 0;
  padding: 0;
}

footer .mg-footer-copyright .noesis-footer-legal-menu a {
  color: #dbeafe !important;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}

footer .mg-footer-copyright .noesis-footer-legal-menu a:hover,
footer .mg-footer-copyright .noesis-footer-legal-menu a:focus {
  color: #93c5fd !important;
  text-decoration: underline;
}

.noesis-contact-form-wrap {
  max-width: 860px;
  margin: 10px auto 0;
}

.noesis-contact-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.noesis-contact-form p {
  margin: 0;
  grid-column: span 6;
}

.noesis-contact-form .noesis-field--full {
  grid-column: 1 / -1;
}

.noesis-contact-form label {
  display: block;
  margin: 0 0 5px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
}

.noesis-contact-form input,
.noesis-contact-form select,
.noesis-contact-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.35;
  background: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.noesis-contact-form input:focus,
.noesis-contact-form select:focus,
.noesis-contact-form textarea:focus {
  outline: none;
  border-color: #60a5fa;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.noesis-contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.noesis-contact-form p.noesis-hp {
  grid-column: 1 / -1;
}

.noesis-contact-form button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.22);
}

.noesis-contact-form button:hover,
.noesis-contact-form button:focus {
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
}

.noesis-hp {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
}

.noesis-contact-alert {
  border-radius: 10px;
  padding: 9px 11px;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
}

.noesis-contact-alert--ok {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #14532d;
}

.noesis-contact-alert--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

/* AdSense map styling (minimal, non-intrusive) */
.noesis-ad-container-top {
  margin-top: 8px;
}

.noesis-ad-wrap {
  margin: 14px auto;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  max-width: 100%;
}

.single-post .noesis-ad-wrap {
  margin: 16px 0;
}

.noesis-infeed-ad-item {
  margin: 6px 0 10px;
  border: 0;
}

.noesis-grid-ad-col {
  margin: 2px 0 14px;
}

/* Ultra-minimal premium header (compact + airy) */
.mg-headwidget .mg-head-detail {
  display: none;
}

.mg-nav-widget-area-back {
  background-image: none !important;
  background: #ffffff !important;
}

.mg-nav-widget-area-back .overlay,
.mg-nav-widget-area-back .overlay .inner {
  background: transparent !important;
}

.mg-nav-widget-area {
  padding: 8px 0 6px;
}

.site-branding-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
}

.site-branding-text .site-title {
  margin: 0 !important;
  line-height: 1.15;
}

.site-branding-text .site-title a {
  color: #0f172a !important;
  font-weight: 800;
  letter-spacing: 0;
  font-size: clamp(24px, 3.4vw, 34px);
}

.site-branding-text .site-description {
  margin: 2px 0 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.site-branding-text .site-description::before {
  content: "AI-FIRST";
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.35;
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.mg-menu-full {
  border-top: 1px solid #e2e8f0;
}

.mg-menu-full .navbar-wp {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  min-height: 48px;
}

.mg-menu-full .navbar-wp .nav > li > a {
  color: #1e293b !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.mg-menu-full .navbar-wp .nav > li > a:hover,
.mg-menu-full .navbar-wp .nav > li > a:focus,
.mg-menu-full .navbar-wp .nav > .active > a {
  color: #ffffff !important;
}

.mg-menu-full .navbar-wp .nav > li:hover > a,
.mg-menu-full .navbar-wp .nav > li > a:hover,
.mg-menu-full .navbar-wp .nav > li > a:focus,
.mg-menu-full .navbar-wp .nav > li.current-menu-item > a,
.mg-menu-full .navbar-wp .nav > li.active > a {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}

.mg-menu-full .navbar-wp .nav > li.noesis-menu-home-item {
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.mg-menu-full .navbar-wp .nav > li.noesis-menu-home-item > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 40px;
  padding: 0 !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border-radius: 6px;
  transform: skewX(-21deg);
}

.mg-menu-full .navbar-wp .nav > li.noesis-menu-home-item > a > span {
  transform: skewX(21deg);
  font-size: 13px;
}

.mg-menu-full .navbar-wp .nav > li.noesis-menu-home-item > a:hover,
.mg-menu-full .navbar-wp .nav > li.noesis-menu-home-item > a:focus {
  background: #1e40af !important;
  color: #ffffff !important;
}

/* Remove duplicate theme home square button; keep only premium menu home item */
.mobilehomebtn {
  display: none !important;
}

.navbar-wp .navbar-nav > li.home,
.navbar-wp .navbar-nav > li > a.homebtn {
  display: none !important;
}

.desk-header .btn-bell,
.m-header .btn-bell {
  display: none !important;
}

.desk-header .btn-bell,
.m-header .btn-bell {
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
}

.mg-search-box .msearch {
  color: #334155 !important;
}

/* Hide single-post author bio box (avatar + "By") for Noesis editorial layout */
.single-post .mg-info-author-block,
.single-post .mg-blog-post-box .mg-header .mg-info-author-block,
.single-post .mg-blog-author {
  display: none !important;
}

@media (max-width: 767px) {
  footer .mg-footer-copyright .noesis-footer-policy-links {
    display: block;
    margin: 6px 0 0;
    line-height: 1.7;
  }

  footer .mg-footer-copyright .noesis-footer-legal-menu {
    margin-top: 6px;
    justify-content: flex-start;
    gap: 6px 10px;
  }

  .site-branding-text {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .site-branding-text .site-description {
    font-size: 10px !important;
    gap: 6px;
  }

  .noesis-contact-form {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 12px;
  }

  .noesis-contact-form p {
    grid-column: 1 / -1;
  }
}
