/* LIVEnews for ColorMag — layout of the LIVEnews blocks inside ColorMag.
   Only .lnp* elements are styled here; ColorMag's own markup is untouched
   (the optional LIVEnews look for ColorMag is in skin.css). */

.lnp-icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; flex: none; }

/* Front-page block (inside ColorMag's .cm-container) */
.lnp-home { display: flex; flex-direction: column; gap: var(--lnp-gap, 24px); margin: 0 0 var(--lnp-gap, 24px); color: #0f172a; }
.lnp-home__full { display: flex; flex-direction: column; gap: 14px; }
.lnp-home__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--lnp-gap, 24px); align-items: start; }
.lnp-home__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; scroll-margin-top: 90px; }
@media (min-width: 1024px) {
	.lnp-home__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.lnp-home__col { grid-column: span var(--lnp-span, 4) / span var(--lnp-span, 4); }
}

/* Mobile jump buttons */
.lnp-home__mnav { display: flex; gap: 8px; padding: 6px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.lnp-home__mnav a { flex: 1; text-align: center; padding: 8px 6px; border-radius: 12px; font-size: 12px; font-weight: 700; line-height: 1.3; background: #f1f5f9; color: #1e293b; text-decoration: none; }
.lnp-home__mnav a.is-main { background: rgb(var(--brand-red-rgb)); color: #fff; }
@media (min-width: 1024px) { .lnp-home__mnav { display: none; } }

/* Widget wrapper used by the LIVEnews Home areas */
.lnp-w { margin: 0; }
.lnp-w > .lnp { display: block; }
.lnp-w__title { margin: 0 0 10px; font-size: 15px; font-weight: 800; line-height: 1.3; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.lnp-w__title::before { content: ""; width: 6px; height: 18px; border-radius: 2px; background: rgb(var(--brand-red-rgb)); }
.lnp-w .widget, .lnp-w > ul { margin: 0; }

/* Any LIVEnews block placed in a ColorMag widget area */
.widget .lnp, .lnp-w .lnp { font-family: inherit; }
.lnp-stack { display: flex; flex-direction: column; gap: 14px; }

/* News column: fixed height on desktop, list scrolls inside */
.lnp .lnp-col { min-height: 0; }
@media (min-width: 1024px) {
	.lnp .lnp-col--fixed { height: var(--lnp-col-h, 1100px); }
}
.lnp .lnp-col ol { list-style: none; margin: 0; }
.lnp .lnp-col h2, .lnp .lnp-col h3 { margin: 0; padding: 0; border: 0; background: none; text-transform: none; letter-spacing: normal; }
.lnp .lnp-col h2 { color: #fff; }
.lnp .lnp-col a, .lnp .lnp-ticker a, .lnp article a { color: inherit; text-decoration: none; box-shadow: none; }
.lnp .lnp-col__more:hover { background: rgb(var(--brand-red-rgb) / .06); }

/* News cards grid */
.lnp .lnp-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .lnp .lnp-grid { grid-template-columns: repeat(min(2, var(--lnp-cols, 4)), minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lnp .lnp-grid { grid-template-columns: repeat(var(--lnp-cols, 4), minmax(0, 1fr)); } }
.lnp .lnp-grid h3 { margin: 0; padding: 0; }

/* Ticker inside a widget */
.lnp .lnp-ticker { box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.lnp .lnp-ticker button { background: transparent; border-top: 0; border-bottom: 0; border-right: 0; cursor: pointer; }

/* Live stage & videos: neutralise ColorMag's generic button/heading styles */
.lnp button { box-shadow: none; text-shadow: none; line-height: inherit; }
.lnp h2, .lnp h3, .lnp h4 { margin-top: 0; margin-bottom: 0; }
.lnp p { margin: 0; }
.lnp iframe, .lnp video { margin: 0; }

/* 3D globe (widget and logo modes) */
.lnp .lnp-globe, .lnp-globe-logo .lnp-globe { position: relative; display: inline-block; width: var(--lnp-globe, 96px); height: var(--lnp-globe, 96px); vertical-align: middle; transition: transform .3s; }
.lnp .lnp-globe:hover { transform: scale(1.05); }
.lnp .lnp-globe__tex { position: absolute; left: 5.6%; top: 4%; width: 88.9%; height: 88.9%; border-radius: 50%; background-size: cover; background-position: center; }
.lnp .lnp-globe__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.lnp .lnp-globe__frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; max-width: none; object-fit: contain; pointer-events: none; }
.lnp-globe-logo { display: inline-block; line-height: 0; --lnp-globe: 80px; }
@media (min-width: 768px) { .lnp-globe-logo { --lnp-globe: 96px; } }
.lnp-logo-pair { display: inline-flex; align-items: center; gap: 12px; }
.lnp-logo-pair .custom-logo-link { display: inline-block; }

/* Dark mode (ColorMag dark skin) */
.dark .lnp-home { color: #e2e8f0; }
.dark .lnp-w__title { color: #f1f5f9; }
.dark .lnp-home__mnav { background: #0f172a; border-color: #1e293b; }
.dark .lnp-home__mnav a:not(.is-main) { background: #1e293b; color: #e2e8f0; }

/* LIVEnews font for the whole site (separate switch: "LIVEnews font") */
body.lnp-font,
body.lnp-font h1, body.lnp-font h2, body.lnp-font h3, body.lnp-font h4, body.lnp-font h5, body.lnp-font h6,
body.lnp-font .cm-primary-nav a, body.lnp-font .cm-entry-title, body.lnp-font input, body.lnp-font button { font-family: "Noto Sans Armenian", "Noto Sans", Inter, system-ui, sans-serif; }

/* Ticker: keep each copy of the line at its full width (no overlap). */
.lnp .ticker-wrapper .animate-ticker>div{flex:0 0 auto!important;width:max-content!important}.lnp .ticker-wrapper .animate-ticker a,.lnp .ticker-wrapper .animate-ticker a>*{white-space:nowrap!important;flex-shrink:0!important}

/* Column lists: picture / video / link next to stories #2… */
.lnp .lnp-thumb { position: relative; flex-shrink: 0; width: 88px; height: 58px; border-radius: 10px; overflow: hidden; background: #0f172a; margin-top: 2px; }
.lnp .lnp-thumb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lnp .group:hover .lnp-thumb__img { transform: scale(1.06); }
.lnp .lnp-thumb__play, .lnp .lnp-thumb__link { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 999px; background: rgb(var(--brand-red-rgb, 220 38 38) / .92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.35); pointer-events: none; z-index: 2; }
.lnp .lnp-thumb__link { background: rgba(15, 23, 42, .85); }
.lnp .lnp-thumb__play svg { width: 13px; height: 13px; fill: currentColor; margin-left: 2px; }
.lnp .lnp-thumb__play--lg { width: 46px; height: 46px; }
.lnp .lnp-thumb__play--lg svg { width: 20px; height: 20px; }
.lnp .lnp-ext { font-size: .8em; opacity: .6; }
@media (max-width: 380px) { .lnp .lnp-thumb { width: 72px; height: 48px; } }

/* Column stories #2… as cards */
.lnp .lnp-col__list > li + li { border-top: 1px solid rgb(226 232 240 / .9); padding-top: 12px; }
.dark .lnp .lnp-col__list > li + li, .lnp.dark .lnp-col__list > li + li { border-top-color: rgb(30 41 59 / .8); }

/* Share button under stories */
.lnp .lnp-share { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 0; border-radius: 6px; background: #f1f5f9; color: #475569; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.6; cursor: pointer; transition: background .2s, color .2s; }
.lnp .lnp-share:hover { background: #e2e8f0; color: #0f172a; }
.lnp .lnp-share .lnp-icon { width: 11px; height: 11px; }
.dark .lnp .lnp-share, .lnp.dark .lnp-share { background: #1e293b; color: #cbd5e1; }
.dark .lnp .lnp-share:hover, .lnp.dark .lnp-share:hover { background: #334155; color: #fff; }
.lnp-share-menu { position: absolute; z-index: 100001; min-width: 190px; padding: 6px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); font-family: "Noto Sans Armenian", system-ui, sans-serif; }
.lnp-share-menu a, .lnp-share-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #0f172a; font-size: 13px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.lnp-share-menu a:hover, .lnp-share-menu button:hover { background: #f1f5f9; }
.lnp-share-menu i { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
body.dark-skin .lnp-share-menu, .dark .lnp-share-menu { background: #0f172a; border-color: #1e293b; }
body.dark-skin .lnp-share-menu a, body.dark-skin .lnp-share-menu button { color: #e2e8f0; }
body.dark-skin .lnp-share-menu a:hover, body.dark-skin .lnp-share-menu button:hover { background: #1e293b; }
.lnp-share-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100002; background: #0f172a; color: #fff; padding: 8px 14px; border-radius: 10px; font: 600 13px/1.3 "Noto Sans Armenian", system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* Front page shows only the LIVEnews block: no ColorMag post list, sections or widgets under it */
body.lnp-home-only #cm-content #lnp-home ~ *,
body.lnp-home-only .advertisement_above_footer,
body.lnp-home-only .cm-front-page-top-section,
body.lnp-home-only #cm-primary,
body.lnp-home-only #cm-secondary,
body.lnp-home-only #cm-tertiary { display: none !important; }
/* Older ColorMag Pro markup (#main .inner-wrap) */
body.lnp-home-only .top-full-width-sidebar,
body.lnp-home-only #main #lnp-home ~ * { display: none !important; }
body.lnp-home-only #cm-content { padding-bottom: 8px; }

/* Category, search, article and page templates in the LIVEnews style */
.lnp.lnp-page h1, .lnp.lnp-page h2 { margin: 0; border: 0; letter-spacing: normal; text-transform: none; }
.lnp.lnp-page header .bg-gradient-to-r h1, .lnp.lnp-page aside h2 { color: #fff; }
.lnp.lnp-page article h1 { color: #0f172a; }
.dark .lnp.lnp-page article h1, body.dark-skin .lnp.lnp-page article h1 { color: #fff; }
.lnp.lnp-page a { text-decoration: none; box-shadow: none; }
.lnp.lnp-page .lnp-prose a { text-decoration: underline; }
.lnp.lnp-page .lnp-pager a, .lnp.lnp-page .lnp-pager span { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; font-size: 13px; font-weight: 700; color: #0f172a; }
.lnp.lnp-page .lnp-pager .current { background: rgb(var(--brand-red-rgb, 220 38 38)); border-color: transparent; color: #fff; }
.lnp.lnp-page .lnp-pager a:hover { border-color: rgb(var(--brand-red-rgb, 220 38 38)); color: rgb(var(--brand-red-rgb, 220 38 38)); }

/* Dark / light mode button */
.lnp-dark-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; margin-left: 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; color: #0f172a; cursor: pointer; transition: background .2s, color .2s, border-color .2s; flex-shrink: 0; }
.lnp-dark-btn:hover { background: #e2e8f0; }
.lnp-dark-btn svg { width: 18px; height: 18px; fill: currentColor; }
.lnp-dark-btn .lnp-dark-btn__sun { display: none; }
body.dark-skin .lnp-dark-btn { background: #1e293b; border-color: #334155; color: #fbbf24; }
body.dark-skin .lnp-dark-btn .lnp-dark-btn__sun { display: block; }
body.dark-skin .lnp-dark-btn .lnp-dark-btn__moon { display: none; }
.lnp-dark-btn--float { position: fixed; left: 16px; bottom: 16px; z-index: 9999; box-shadow: 0 6px 20px rgba(15, 23, 42, .2); }
/* LIVEnews pages and cards in dark mode */
body.dark-skin { background-color: #0b1120; }
body.dark-skin .lnp-col__list > li + li { border-top-color: rgb(30 41 59 / .8); }
body.dark-skin .lnp .lnp-share { background: #1e293b; color: #cbd5e1; }
body.dark-skin .lnp.lnp-page .lnp-pager a, body.dark-skin .lnp.lnp-page .lnp-pager span { background: #0f172a; border-color: #1e293b; color: #e2e8f0; }

/* Footer calendar: news by day */
#cm-footer .lnp-cal-title { margin: 18px 0 10px; font-size: 15px; font-weight: 800; color: inherit; }
#cm-footer .wp-block-calendar, #cm-footer #wp-calendar { max-width: 320px; }
#cm-footer .wp-block-calendar table { width: 100%; border-collapse: separate; border-spacing: 3px; background: transparent; border: 0; margin: 0; }
#cm-footer .wp-block-calendar caption { text-align: left; font-weight: 800; padding: 0 0 6px; color: inherit; background: none; }
#cm-footer .wp-block-calendar th { background: transparent; border: 0; padding: 4px 0; font-size: 11px; font-weight: 700; opacity: .7; text-align: center; color: inherit; }
#cm-footer .wp-block-calendar td { border: 0; padding: 0; text-align: center; font-size: 12px; height: 30px; background: transparent; color: inherit; opacity: .55; }
#cm-footer .wp-block-calendar td a { display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 8px; background: rgb(220 38 38 / .9); color: #fff !important; font-weight: 800; text-decoration: none; }
#cm-footer .wp-block-calendar td:has(a) { opacity: 1; }
#cm-footer .wp-block-calendar td a:hover { background: #fff; color: #dc2626 !important; }
#cm-footer .wp-block-calendar #today, #cm-footer .wp-block-calendar td#today { outline: 2px solid rgb(220 38 38 / .9); border-radius: 8px; opacity: 1; }
#cm-footer .wp-block-calendar .wp-calendar-nav { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 700; }
#cm-footer .wp-block-calendar .wp-calendar-nav a { color: inherit; text-decoration: none; }
#cm-footer .wp-block-calendar .wp-calendar-nav a:hover { color: #dc2626; }

#cm-footer .wp-block-calendar thead th, #cm-footer .wp-block-calendar th { background: transparent !important; color: inherit !important; }
#cm-footer .wp-block-calendar caption { color: inherit !important; }
/* Footer links to YouTube terms: plain links, not red buttons. */
#cm-footer a[target][href*="youtube"], #cm-footer a[href*="youtube.com/t/terms"] { background: none !important; color: inherit !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; display: inline !important; font-weight: 400 !important; text-decoration: underline; }

/* Globe + site name + date, like live.geopolitika.am */
.lnp-logo-row { display: inline-flex; align-items: center; gap: 14px; }
.lnp-logo-brand { display: inline-flex; flex-direction: column; line-height: 1.1; }
.lnp-logo-name { font-size: 34px; font-weight: 800; letter-spacing: -.01em; color: #0f172a; text-decoration: none; }
.lnp-logo-name:hover { color: rgb(var(--brand-red-rgb, 225 29 72)); }
.lnp-logo-date { margin-top: 6px; font-size: 14px; font-weight: 600; color: #64748b; }
@media (max-width: 767px) { .lnp-logo-row { gap: 10px; } .lnp-logo-name { font-size: 22px; } .lnp-logo-date { font-size: 12px; margin-top: 3px; } }
body.dark .lnp-logo-name, .dark .lnp-logo-name { color: #f8fafc; }
body.dark .lnp-logo-date, .dark .lnp-logo-date { color: #94a3b8; }
