/* MOSCAP Core asset — FluentSnippets "SINGLE NEWS PAGE (CSS)" (113-single-news-page-css.php, run_at=wp_head)
   снипетээс 2026-11-22-нд нүүлгэсэн; includes/assets.php ачаална. Энэ толгойноос
   бусад код өөрчлөгдөөгүй.
*/

/* ============================================================
   MOSCAP — Single news page (modern hero layout, 2026-08-27)
   FluentSnippets > SINGLE NEWS PAGE (CSS) > Frontend head
   Reuses /news/'s own established tokens (.mnews-hero eyebrow/title
   treatment, .mng-card dark-card material, .mng-page-btn pill button)
   instead of inventing a separate visual language, so a single post
   reads as the same site as its own listing page.
   ============================================================ */

/* =============================================
   0. Hide GeneratePress's OWN native featured-image
      block (theme-generated, separate from .entry-header
      and from .msn-hero below — without this the image
      shows twice: once as the theme's raw full-width img,
      once as our hero's background-image).
============================================= */
.single-post .featured-image { display: none !important; }

/* =============================================
   1. HERO — same layout as /news/'s .mnews-hero
      (full-bleed escape trick, centered flex, 80vh,
      eyebrow/title/text-column structure) — only the
      background differs: flat brand-blue here instead
      of /news/'s image+gradient, per 2026-08-27 request.
============================================= */
.msn-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #006EB4;
    padding: 80px 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}
.msn-hero__inner {
    max-width: 1200px;
    width: 100%;
}
.msn-hero__text {
    width: 100%;
    min-width: 280px;
}
.msn-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}
.msn-hero__title {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    margin: 0 0 20px !important;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   2. WRAPPER + LAYOUT
============================================= */
.msn-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
    font-family: 'Inter', sans-serif;
}
.msn-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
    padding-top: 48px;
}

/* =============================================
   3. ARTICLE CONTENT — white card floating on the
      page's dark background (same "card stands out
      against dark bg" material as .mng-card on /news/,
      just applied to the article instead of a grid tile).
      2026-08-27: white bg + dark grey text replaces the
      white-on-dark-bg version, which was unreadable once
      the hero stopped being a dark image background.
============================================= */
.msn-main {
    background: #fff;
    border-radius: 14px;
    padding: 36px 20px;
}
.msn-content {
    font-size: 16px;
    color: #374151;
    line-height: 1.9;
    max-width: 720px;
}
.msn-content h2, .msn-content h3, .msn-content h4 {
    font-family: 'Inter', sans-serif;
    color: #0a1a2f;
    font-weight: 700;
    margin: 36px 0 16px;
}
.msn-content p { margin: 0 0 20px; }
.msn-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 8px 0 24px;
    display: block;
}
.msn-content a { color: #006EB4; }
.msn-content a:hover { text-decoration: underline; }
.msn-content ul, .msn-content ol { margin: 0 0 20px; padding-left: 22px; }
.msn-content li { margin-bottom: 8px; }
.msn-content blockquote {
    margin: 24px 0;
    padding: 4px 20px;
    border-left: 3px solid #006EB4;
    color: #6b7280;
    font-style: italic;
}

/* =============================================
   3b. FEATURED IMAGE — normal block above the article
      text (2026-08-27), not the hero background anymore
============================================= */
.msn-featured-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}
.msn-featured-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Title — repeated below the featured image (2026-08-27), since it's on
   .msn-main's white background it's dark/black colored, so it doesn't
   clash with the hero's white title */
.msn-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #0a1a2f;
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
}
.msn-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 28px;
}
.msn-meta__dot { color: #d1d5db; }

/* Back button — same pill style as /news/'s .mng-page-btn */
.msn-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.msn-back-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #006EB4;
    border: 1.5px solid #006EB4;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.msn-back-btn:hover { background: #006EB4; color: #fff !important; text-decoration: none; }

/* =============================================
   4. SIDEBAR — same dark-card material as .mng-card
      (background/border/hover), sized for a stacked list
============================================= */
.msn-sidebar {
    position: sticky;
    top: 24px;
}
.msn-sidebar__title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 16px;
    font-family: 'Inter', sans-serif;
}
.msn-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.msn-sidebar__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: #112240;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.2s;
}
.msn-sidebar__item:hover {
    background: #163060;
    transform: translateX(2px);
    text-decoration: none !important;
}
.msn-sidebar__img,
.msn-sidebar__img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #1e3a5f;
}
.msn-sidebar__info { flex: 1; min-width: 0; }
.msn-sidebar__date {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #006EB4;
    display: block;
    margin-bottom: 4px;
}
.msn-sidebar__text {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   5. RESPONSIVE
============================================= */
@media (max-width: 900px) {
    .msn-layout { grid-template-columns: 1fr; padding-top: 32px; }
    .msn-sidebar { position: static; }
}
@media (max-width: 768px) {
    .msn-hero { padding: 140px 24px 60px; min-height: auto; }
    .msn-hero__title { font-size: 26px !important; }
    .msn-hero__text { width: 100%; }
    .msn-main { padding: 24px; }
}
@media (max-width: 480px) {
    .msn-hero__title { font-size: 22px !important; }
    .msn-wrap { padding: 0 16px 40px; }
    .msn-main { padding: 20px; }
}
