/* Wiseones Section & Wiki Styles - loaded separately to avoid CSS parse cutoff */

/* ===== SECTION LANDING PAGES ===== */

.section-hero {
  background: linear-gradient(135deg, #0f4c75, #3282b8);
  padding: 1.4rem 2rem 1.2rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.section-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}
.section-hero .section-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Breadcrumb */
.breadcrumb {
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  color: #6B7C8D;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
}
.breadcrumb a {
  color: #5BC0EB;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .separator {
  margin: 0 0.4rem;
  color: #E5E7EB;
}

/* Content area layout for section landings */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.content-area.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.content-area.with-sidebar .main-content {
  min-width: 0;
  padding: 1.5rem 0 2rem;
}

/* Card Grid */
.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.section-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.section-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.section-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1B2838;
  margin-bottom: 0.4rem;
}
.section-card p {
  font-size: 0.88rem;
  color: #6B7C8D;
  line-height: 1.5;
  margin: 0;
}
.section-card .card-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5BC0EB;
}

/* Sub-section headers in landing pages */
.subsection-header {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1B2838;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #5BC0EB;
}
.subsection-header a {
  color: inherit;
  text-decoration: none;
}
.subsection-header a:hover {
  color: #5BC0EB;
}

/* Cross-links at bottom of pages */
.cross-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #E5E7EB;
}
.cross-links h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6B7C8D;
  margin-bottom: 1rem;
}
.cross-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.cross-link-card {
  background: #EEF8FD;
  border: 1px solid #E1F4FC;
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  display: block;
}
.cross-link-card:hover {
  background: #E1F4FC;
}
.cross-link-card h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1B2838;
  margin-bottom: 0.25rem;
}
.cross-link-card p {
  font-size: 0.8rem;
  color: #6B7C8D;
  margin: 0;
  line-height: 1.4;
}

/* Section sidebar navigation */
.section-nav-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.section-nav-widget ul li {
  margin-bottom: 0.3rem;
}
.section-nav-widget ul li a {
  font-size: 0.85rem;
  color: #2A3F55;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  display: block;
  transition: background 0.2s, color 0.2s;
}
.section-nav-widget ul li a:hover,
.section-nav-widget ul li.current_page_item a {
  background: #EEF8FD;
  color: #5BC0EB;
}
.section-nav-widget ul ul {
  padding-left: 1rem;
}
.section-nav-widget .nav-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7C8D;
  margin: 0.75rem 0 0.3rem 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section-hero {
    padding: 1.2rem 1rem;
  }
  .section-hero h1 {
    font-size: 1.3rem;
  }
  .section-cards {
    grid-template-columns: 1fr;
  }
  .cross-links-grid {
    grid-template-columns: 1fr;
  }
  .content-area.with-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .site-content {
    padding: 0 1rem;
  }
}


/* ===== CONTENT PAGE IMPROVEMENTS ===== */

.breadcrumb-wrap {
  max-width: 720px;
}
.breadcrumb-wrap .breadcrumb {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Sidebar section nav - better styling for content pages */
.sidebar .widget .section-nav-widget {
  margin: 0;
}
.sidebar .widget .section-nav-widget .widget-title {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #5BC0EB;
}

/* Content page entry content - remove large gaps from imported Substack content */
.entry-content .wp-block-image {
  margin: 1.5rem 0;
}
.entry-content figure.wp-block-image {
  max-width: 100%;
}
.entry-content figure.wp-block-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

/* Fix any empty figure/image blocks that create gaps */
.entry-content figure:empty,
.entry-content .wp-block-image:empty {
  display: none;
}

/* Related articles in sidebar */
.related-articles-widget {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-articles-widget li {
  margin-bottom: 0.5rem;
}
.related-articles-widget li a {
  font-size: 0.85rem;
  color: #2A3F55;
  text-decoration: none;
  padding: 0.3rem 0;
  display: block;
  transition: color 0.2s;
}
.related-articles-widget li a:hover {
  color: #5BC0EB;
}
