/*
  NGFIT snippet (migrated from WPCode)
  id: 120
  title: NGFIT — News Article Polish (header rule + image alignment + typography)
  code_type: css
  location: site_wide_header
  auto_insert: 1
  insert_number: 1
  priority: 10
  tags: []
  note: 
  modified: 2026-05-28 03:10:41
*/
/* NGFIT — News Article Polish
   Applies to both:
     • Member-side feed cards: .nuh-post (with .nuh-post-title, .nuh-post-subtitle, .nuh-post-body, .nuh-post-meta)
     • Staff composer preview pane: .nsa-preview-pane > .nsa-preview-card .nsa-pv-inner
       (uses .nsa-pv-title, .nsa-pv-sub, .nsa-pv-body, .nsa-post-meta)

   Goals:
     1. Thin black rule separating article header from body.
     2. Inline image alignment (alignleft / alignright / aligncenter / alignnone) with wrap + spacing.
     3. Professional, readable typography. */

/* ========================================================================
   ARTICLE CARD CONTAINER
   ======================================================================== */
.nuh-post,
.nsa-preview-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 0;
  overflow: hidden;
  margin-bottom: 28px;
}
.nuh-post-cover,
.nsa-preview-card .nuh-post-cover,
.nsa-preview-card .nsa-pv-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #111;
}
.nuh-post-inner,
.nsa-pv-inner {
  padding: 28px 34px;
}

/* ========================================================================
   HEADER (meta + title + subtitle)
   ======================================================================== */
.nuh-post-meta,
.nsa-post-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
  margin: 0 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
}
.nuh-post-author { font-weight: 700; color: #111; }
.nuh-post-date::before { content: ' · '; color: #aaa; }

.nuh-post-title,
.nsa-pv-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  color: #0e1a2b;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.nuh-post-subtitle,
.nsa-pv-sub {
  font-size: 17px;
  line-height: 1.45;
  color: #555;
  font-style: italic;
  margin: 0 0 22px;
  font-weight: 400;
}

/* THIN BLACK RULE between header and body */
.nuh-post-title + .nuh-post-body,
.nuh-post-subtitle + .nuh-post-body,
.nuh-post-meta + .nuh-post-body,
.nsa-pv-title + .nsa-pv-body,
.nsa-pv-sub + .nsa-pv-body {
  border-top: 1px solid #111;
  padding-top: 22px;
  margin-top: 4px;
}

/* ========================================================================
   BODY TYPOGRAPHY
   ======================================================================== */
.nuh-post-body,
.nsa-pv-body {
  font-size: 17px;
  line-height: 1.65;
  color: #222;
  font-family: Georgia, 'Times New Roman', serif;
}
.nuh-post-body p,
.nsa-pv-body p { margin: 0 0 1.1em; }
.nuh-post-body p:last-child,
.nsa-pv-body p:last-child { margin-bottom: 0; }
.nuh-post-body h2,
.nsa-pv-body h2 {
  clear: both;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0e1a2b;
  margin: 1.6em 0 0.5em;
  line-height: 1.3;
}
.nuh-post-body h3,
.nsa-pv-body h3 {
  clear: both;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0e1a2b;
  margin: 1.4em 0 0.4em;
}
.nuh-post-body blockquote,
.nsa-pv-body blockquote {
  clear: both;
  border-left: 3px solid #0e1a2b;
  padding: 4px 0 4px 18px;
  margin: 1.4em 0;
  color: #444;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
}
.nuh-post-body ul, .nuh-post-body ol,
.nsa-pv-body ul, .nsa-pv-body ol { margin: 0 0 1.1em 1.4em; padding: 0; }
.nuh-post-body li,
.nsa-pv-body li { margin: 0 0 0.4em; }
.nuh-post-body a,
.nsa-pv-body a {
  color: #0a5cad;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.nuh-post-body hr,
.nsa-pv-body hr {
  clear: both;
  border: none;
  border-top: 1px solid #ccc;
  margin: 2em 0;
}

/* ========================================================================
   INLINE IMAGE POSITIONING
   ======================================================================== */
.nuh-post-body img,
.nsa-pv-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.nuh-post-body img.alignleft,
.nsa-pv-body img.alignleft {
  float: left;
  margin: 6px 22px 14px 0;
  max-width: 40%;
}
.nuh-post-body img.alignright,
.nsa-pv-body img.alignright {
  float: right;
  margin: 6px 0 14px 22px;
  max-width: 40%;
}
.nuh-post-body img.aligncenter,
.nsa-pv-body img.aligncenter {
  display: block;
  margin: 18px auto;
  max-width: 70%;
}
.nuh-post-body img.alignnone,
.nsa-pv-body img.alignnone {
  display: block;
  margin: 18px 0;
  max-width: 100%;
}
/* WP caption wrappers */
.nuh-post-body .wp-caption,
.nsa-pv-body .wp-caption { max-width: 100%; margin-bottom: 14px; }
.nuh-post-body .wp-caption.alignleft,
.nsa-pv-body .wp-caption.alignleft { float: left; margin: 6px 22px 14px 0; max-width: 40%; }
.nuh-post-body .wp-caption.alignright,
.nsa-pv-body .wp-caption.alignright { float: right; margin: 6px 0 14px 22px; max-width: 40%; }
.nuh-post-body .wp-caption.aligncenter,
.nsa-pv-body .wp-caption.aligncenter { margin: 18px auto; max-width: 70%; }
.nuh-post-body .wp-caption img,
.nsa-pv-body .wp-caption img { width: 100%; max-width: 100%; }
.nuh-post-body .wp-caption-text,
.nsa-pv-body .wp-caption-text {
  font-size: 13px;
  color: #666;
  font-style: italic;
  margin: 6px 0 0;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
/* Clear floats so footer / tags don't wrap under floated images */
.nuh-post-body::after,
.nsa-pv-body::after { content: ''; display: table; clear: both; }

/* ========================================================================
   TAGS + FOOTER POLISH
   ======================================================================== */
.nuh-post-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.nuh-tag,
.nsa-pv-body .nuh-tag,
.nsa-preview-card .nuh-tag {
  display: inline-block;
  background: #f3f4f6;
  color: #444;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.nuh-toggle-comments {
  background: none;
  border: 1px solid #ddd;
  color: #555;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  margin-left: auto;
}
.nuh-toggle-comments:hover { background: #f6f7f9; }

/* ========================================================================
   MOBILE — images stack rather than float
   ======================================================================== */
@media (max-width: 600px) {
  .nuh-post-inner,
  .nsa-pv-inner { padding: 20px 18px; }
  .nuh-post-title,
  .nsa-pv-title { font-size: 24px; }
  .nuh-post-subtitle,
  .nsa-pv-sub { font-size: 15px; }
  .nuh-post-body,
  .nsa-pv-body { font-size: 16px; }
  .nuh-post-body img.alignleft,
  .nuh-post-body img.alignright,
  .nsa-pv-body img.alignleft,
  .nsa-pv-body img.alignright {
    float: none;
    margin: 18px auto;
    display: block;
    max-width: 100%;
  }
  .nuh-post-body .wp-caption.alignleft,
  .nuh-post-body .wp-caption.alignright,
  .nsa-pv-body .wp-caption.alignleft,
  .nsa-pv-body .wp-caption.alignright {
    float: none;
    margin: 18px auto;
    max-width: 100%;
  }
}

