/*!
 * NovaPhoenix — feed layer: post card, action row, reaction picker, post menu.
 * Values read from the design's <article> markup (post card) and its action row.
 */

/* feed list: 18px rhythm between cards (design: main gap 18px) */
.np-content .js_posts_stream > ul,
.np-content .js_posts_stream_staging > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.np-content .js_posts_stream > ul > li { list-style: none; }

/* post card */
.np-content .post {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border: 0; border-radius: var(--radius-lg); color: var(--color-text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-surface) 92%, var(--color-accent-900)), var(--color-surface));
  box-shadow: var(--shadow-sm); animation: np-card-in .3s ease-out;
}
/* fade only: a transform here would turn the card into the containing block for the fixed reaction picker */
@keyframes np-card-in { from { opacity: 0; } to { opacity: 1; } }
.np-content .post.bg-white { background: linear-gradient(180deg, color-mix(in srgb, var(--color-surface) 92%, var(--color-accent-900)), var(--color-surface)) !important; }
.np-content .post.pending, .np-content .post.is_hidden { box-shadow: inset 0 0 0 1px var(--color-neutral-700); }
.np-content .post.boosted { box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--color-accent-800); }
.np-content .post > .post-body { display: flex; flex-direction: column; gap: 14px; }
.np-content .post .post_empty_space { display: none; }

/* header */
.np-content .post-header { align-items: center; gap: 12px; }
.np-content .post-avatar { width: 42px; height: 42px; }
.np-content .post-avatar-picture, .np-content .post-avatar-anonymous {
  width: 42px; height: 42px; border-radius: 50%; background-color: var(--color-neutral-800); background-size: cover; background-position: center;
  box-shadow: 0 0 0 1px var(--color-neutral-700); border: 0;
}
.np-content .post-avatar .online-dot { right: 0; bottom: 0; width: 9px; height: 9px; background: var(--color-cool) !important; border: 0; box-shadow: 0 0 0 2px var(--color-surface); }
.np-content .post-meta { line-height: 1.3; }
.np-content .post-author { font-size: 14.5px; font-weight: 500; color: var(--color-text); text-decoration: none; }
.np-content .post-meta .text-muted, .np-content .post-meta .post-time, .np-content .post-title, .np-content .post-meta a.post-time { font-size: 12.5px; color: var(--color-neutral-500) !important; }
.np-content .post-meta .verified-badge { color: var(--color-cool); }
.np-content .post-meta .verified-badge svg { width: 15px; height: 15px; }
.np-content .post-meta .pro-badge { color: var(--color-accent); }
.np-content .post-header .np-more { color: var(--color-neutral-400); }
.np-content .post-header .np-more i { font-size: 20px; }

/* text + media */
.np-content .post-text { font-size: 16px; line-height: 1.55; color: var(--color-neutral-100); text-wrap: pretty; white-space: pre-wrap; }
.np-content .post-text a { color: var(--color-accent); }
.np-content .post-replace, .np-content .post-body > div { min-width: 0; }
.np-content .post .pg_wrapper, .np-content .post .post-media, .np-content .post .photo, .np-content .post-snippet {
  border-radius: var(--radius-md); overflow: hidden; box-shadow: inset 0 0 0 1px var(--color-neutral-800);
}

/* action row */
.np-content .post-actions {
  margin: 0; display: flex; align-items: center; gap: 2px; padding-top: 12px; justify-content: flex-start;
  background: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent) no-repeat top / 100% 1px;
}
.np-post-foot { display: flex; flex-direction: column; gap: 8px; }
.np-act-group { display: inline-flex; align-items: center; border-radius: var(--radius-md); color: var(--color-neutral-400); font-size: 13px; }
.np-act-group:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); color: var(--color-accent); }
.np-act {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding-block: 6px; padding-inline: 10px 0;
  color: var(--color-neutral-400); font-size: 13px; line-height: 1.2; cursor: pointer; text-decoration: none; user-select: none;
}
.np-act i { font-size: 18px; display: block; }
.np-act-group:hover .np-act, .np-act-group:hover .np-count { color: var(--color-accent); }
.np-act.is-on { color: var(--color-accent); }
.np-count { display: inline-flex; align-items: center; min-height: 36px; padding-block: 6px; padding-inline: 7px 10px; color: var(--color-neutral-400); font-size: 13px; font-variant-numeric: tabular-nums; }
.np-act-group .np-act:only-child, .np-act-group .np-count:only-child { padding-inline-start: 10px; }
.np-act-group .np-act.is-on + .np-count { color: var(--color-accent); }
.reactions-wrapper .reaction-btn-icon { display: flex; align-items: center; }
.reactions-wrapper .reaction-btn-icon .inline-emoji { width: 20px; height: 20px; }
.reactions-wrapper .reaction-btn-icon i.fa-smile, .reactions-wrapper .reaction-btn-icon i.fa-thumbs-up {
  /* core.js re-inserts a Font Awesome smile after an un-react; show the design's fire instead */
  font-family: "Phosphor" !important; font-style: normal; font-weight: 400; font-size: 18px !important; width: auto; height: auto; line-height: 1; background: none !important;
}
.reactions-wrapper .reaction-btn-icon i.fa-smile::before, .reactions-wrapper .reaction-btn-icon i.fa-thumbs-up::before { content: "\e242" !important; font-family: "Phosphor" !important; }
.np-save { margin-inline-start: auto; width: 36px; padding: 0; border-radius: var(--radius-md); }
.np-save:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); color: var(--color-accent); }
.np-save .ph-fill { display: none; }
.np-save.js_unsave-post { color: var(--color-accent); }
.np-save.js_unsave-post .ph:not(.ph-fill) { display: none; }
.np-save.js_unsave-post .ph-fill { display: block; }
.np-post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--color-neutral-500); }

/* reaction picker (design: pill, 6px padding, 24px radius, hover lift) */
.reactions-container {
  width: auto !important; max-width: 92vw; padding: 6px; border-radius: 24px; background: var(--color-surface) !important; box-shadow: var(--shadow-md);
  white-space: nowrap; animation: np-pick-in .18s ease-out; z-index: 1050 !important;
}
/* anchored above its react button (post.js gives viewport coords for position:fixed, which break under any transformed/filtered ancestor) */
.reactions-wrapper > .reactions-container {
  position: absolute !important; top: auto !important; bottom: calc(100% + 6px) !important; left: auto !important; right: auto !important; inset-inline-start: -6px !important;
}
.reactions-wrapper > .reactions-container::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* hover bridge to the button */
@keyframes np-pick-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.reactions_item {
  float: none !important; display: inline-grid; place-items: center; width: 38px; height: 38px; margin: 0 1px; border-radius: 50%; animation: none !important;
  transition: transform .15s; cursor: pointer;
}
.reactions_item:hover { transform: translateY(-3px) scale(1.15); }
.reactions_item .emoji { transform: none; width: 28px; height: 28px; }
.reactions_item .emoji img { width: 100%; height: 100%; }

/* post menu */
.np-content .action-dropdown-menu, .np-content .post .dropdown-menu {
  min-width: 210px; padding: 6px; border: 0; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-md); animation: np-in .16s ease-out;
  --bs-dropdown-bg: var(--color-surface); --bs-dropdown-link-color: var(--color-text);
}
.np-content .post .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-md); font-size: 14px; color: var(--color-text); }
.np-content .post .dropdown-item svg { width: 17px; height: 17px; color: var(--color-neutral-400); }
.np-content .post .dropdown-item:hover { background: color-mix(in srgb, var(--color-text) 6%, transparent); color: var(--color-text); }
.np-content .post .dropdown-divider { border-color: var(--color-divider); opacity: 1; margin: 4px 0; }

/* feed head: greeting + segmented tabs (design: h2 26px / 22px, seg control right) */
.np-feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.np-feed-head h2 { margin: 0; font-size: 26px; }
.np-seg .seg-opt { background: none; border: 0; font: inherit; font-size: 13px; color: var(--color-neutral-400); text-decoration: none; }
.np-seg .seg-opt.is-active { color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.np-seg .seg-opt:not(.is-active):hover { color: var(--color-neutral-400); }

/* generic boxed block used all over Myngul (announcements, widgets): design card */
body.night-mode .np-content .x_announcement, body.night-mode .np-content .content, body.night-mode .np-content .x_content_row .publisher,
.np-content .x_announcement, .np-content .content, .np-content .x_content_row .publisher {
  border: 0; border-radius: var(--radius-lg); background: var(--color-surface) !important; box-shadow: var(--shadow-sm); color: var(--color-text);
}
.np-content .x_announcement { margin-bottom: 18px; }
/* the story strip is bare tiles in the design (no card around it) */
body.night-mode .np-content .x_announcement:has(#stories), .np-content .x_announcement:has(#stories) { background: none !important; box-shadow: none; padding: 0; }
/* the floating "view new posts" pill stays hidden until core.js shows it (design .btn would otherwise force display:inline-flex) */
.btn.posts-staging-btn { display: none; }

/* stories (design: 92×140 tiles, 14px radius, ring, name bottom-left) */
.np-content .stories-wrapper { padding: 0; }
.np-content #stories { display: flex; gap: 10px; overflow-x: auto; padding: 2px; }
.np-content #stories .story, .np-content #stories .add-story {
  position: relative; flex: none; width: 92px; height: 140px; border-radius: var(--radius-lg); background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-neutral-700); display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; gap: 6px; overflow: hidden; margin: 0;
}
.np-content #stories .story.seen { opacity: .55; box-shadow: inset 0 0 0 1px var(--color-neutral-800); }
.np-content #stories .story > a, .np-content #stories .story .item-link { display: contents; }
.np-content #stories .story .item-preview { position: absolute; inset: 0; border-radius: 0; background: none; }
.np-content #stories .story .item-preview img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.np-content #stories .story .info { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0; background: none; }
.np-content #stories .story .info .name, .np-content #stories .add-story p { font-size: 11.5px; line-height: 1.2; color: var(--color-neutral-200); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; font-weight: 400; }
.np-content #stories .story .info .time { display: none; }
.np-content #stories .add-story > a { position: absolute; inset: 0; display: grid; place-items: center; }
.np-content #stories .add-story > a > img { display: none; }
.np-content #stories .add-story > a > span {
  position: static; width: 38px; height: 38px; border-radius: 50%; border: 1.5px dashed var(--color-accent-700); background: none !important; color: var(--color-accent);
  display: grid !important; place-items: center; transform: none;
}
.np-content #stories .add-story > a > span svg { width: 18px; height: 18px; }
.np-content #stories .add-story p { position: relative; z-index: 1; text-align: left !important; }

/* publisher (design: avatar 40px, bare textarea 15.5px, ghost tool icons, outlined Post button) */
.np-content .publisher { padding: 16px 18px; margin-bottom: 18px; overflow: visible; }
.np-content .publisher .side_item_list { padding: 0 !important; }
.np-content .publisher-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent-800); object-fit: cover; }
.np-content .publisher textarea { font: inherit; font-size: 15.5px; line-height: 1.5; color: var(--color-text); min-height: 46px; padding-top: 8px !important; }
.np-content .publisher textarea::placeholder { color: var(--color-neutral-500); }
.np-content .publisher .publisher-footer { margin-top: 10px; padding: 0 !important; gap: 8px; border: 0; }
.np-content .publisher .publisher-tools-tab:not(.dropdown-item) { color: var(--color-accent); width: 36px; height: 36px; padding: 0 !important; display: inline-grid; place-items: center; border-radius: var(--radius-md); }
.np-content .publisher .publisher-tools-tab:not(.dropdown-item):hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.np-content .publisher .publisher-tools-tab svg { width: 19px; height: 19px; }
/* publisher "More" menu: same popover as the design's menus (.np-menu) */
.np-content .publisher .publisher-tools-tabs .dropdown-menu {
  min-width: 220px; padding: 6px; border: 0; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-md); animation: np-in .18s ease-out; z-index: 1060;
}
.np-content .publisher .publisher-tools-tabs .dropdown-menu .dropdown-item {
  display: flex !important; align-items: center; gap: 10px; width: 100%; height: auto; padding: 9px 12px !important; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 400; line-height: 1.3; white-space: nowrap; color: var(--color-text); background: none; text-decoration: none;
}
.np-content .publisher .publisher-tools-tabs .dropdown-menu .dropdown-item svg { flex: none; width: 18px; height: 18px; color: var(--color-neutral-400); }
.np-content .publisher .publisher-tools-tabs .dropdown-menu .dropdown-item:hover,
.np-content .publisher .publisher-tools-tabs .dropdown-menu .dropdown-item:focus { background: color-mix(in srgb, var(--color-text) 6%, transparent); color: var(--color-text); }
.np-content .publisher .publisher-tools-tabs .dropdown-menu .dropdown-item:hover svg { color: var(--color-accent); }
.np-content .publisher .js_publisher-btn {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14px; line-height: 1.2; padding: 6px 18px; border: 1px solid var(--color-accent);
  border-radius: var(--radius-md); background: transparent; color: var(--color-accent); gap: 6px;
}
.np-content .publisher .js_publisher-btn:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); color: var(--color-accent); }
.np-content .publisher .js_publisher-btn:disabled, .np-content .publisher .js_publisher-btn.disabled { opacity: .45; }
.np-content .publisher .js_publisher-btn[data-np-coins]::after { content: attr(data-np-coins); font-size: 11px; color: var(--color-accent-300); margin-inline-start: 6px; }
.np-content .publisher .btn-group > .btn { color: var(--color-neutral-400); font-size: 12px; background: none; }

/* narrow */
@media (max-width: 1059.98px) {
  .np-content .post { padding: 16px; }
  .np-content .post-text { font-size: 15px; }
  .np-feed-head h2 { font-size: 22px; }
  .np-content #stories .story, .np-content #stories .add-story { width: 78px; height: 118px; }
}

/* ── R.A.V.E.N Nexus — Live Briefing (design: aside "Live Briefing" card; logical props so RTL swaps sides) ── */
.nexus-brief {
  display: flex; flex-direction: column; margin-bottom: 14px; overflow: hidden; border-radius: var(--radius-lg); color: var(--color-text);
  background: radial-gradient(300px 120px at 0% 0%, rgba(210,160,114,.12), transparent 70%), var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-accent-800), 0 10px 30px rgba(0,0,0,.35);
}
.nexus-brief[hidden] { display: none; }
.nexus-brief-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; }
.nexus-brief-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 8px var(--color-accent); animation: np-live 2.4s ease-in-out infinite; }
.nexus-brief-kicker { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent-300); }
.nexus-brief-title { font-size: 14px; font-weight: 500; }
.nexus-brief-tabs {
  display: flex; gap: 2px; padding: 0 10px; overflow-x: auto; scrollbar-width: none;
  background: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent) no-repeat bottom/100% 1px;
}
.nexus-brief-tabs::-webkit-scrollbar { display: none; }
.nexus-brief-tab {
  flex: none; background: none; border: 0; cursor: pointer; padding: 9px 7px; font: 500 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-neutral-400); box-shadow: none;
}
.nexus-brief-tab:hover { color: var(--color-text); }
.nexus-brief-tab[aria-selected="true"] { color: var(--color-accent); box-shadow: inset 0 -1.5px 0 var(--color-accent); }
.nexus-brief-tab:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; border-radius: 4px; }
.nexus-brief-view {
  height: 250px; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 22px), transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 22px), transparent);
}
.nexus-brief-track { will-change: transform; }
.nexus-brief-row {
  position: relative; display: flex; flex-direction: column; gap: 5px; padding: 13px 16px; padding-inline-start: 18px; text-decoration: none; color: inherit;
  background: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent) no-repeat bottom/100% 1px;
}
a.nexus-brief-row:hover .nexus-brief-headline { color: var(--color-accent-200); }
a.nexus-brief-row:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; border-radius: var(--radius-md); }
/* severity from the service only: critical = red, high = amber (design's accent bar) */
.nexus-brief-row[data-severity="critical"]::before, .nexus-brief-row[data-severity="high"]::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 1px;
  background: var(--color-accent); box-shadow: 0 0 10px rgba(210,160,114,.5);
}
.nexus-brief-row[data-severity="critical"]::before { background: #e5646e; box-shadow: 0 0 10px rgba(229,100,110,.55); }
.nexus-brief-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nexus-brief-cat { flex: none; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; border-radius: 10px; color: var(--color-accent-300); box-shadow: inset 0 0 0 1px var(--color-accent-800); }
.nexus-brief-when { margin-inline-start: auto; font-size: 11px; color: var(--color-neutral-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nexus-brief-headline { font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--color-neutral-100); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nexus-brief-sum { font-size: 12px; line-height: 1.45; color: var(--color-neutral-400); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nexus-brief-foot { display: flex; justify-content: space-between; padding: 8px 16px 11px; font-size: 11px; color: var(--color-neutral-500); }
@media (prefers-reduced-motion: reduce) {
  .nexus-brief-dot { animation: none; }
  .nexus-brief-view { overflow-y: auto; }
  .nexus-brief-hint { visibility: hidden; }
}

/* Catch up button + unread badge (design: secondary btn, accent-800 edge) */
.nexus-brief .nexus-brief-catchup.btn {
  margin-inline-start: auto; padding: 3px 8px; font-size: 12px; gap: 6px; line-height: 1.4; min-height: 0;
  border-color: var(--color-accent-800); color: var(--color-accent-200);
}
.nexus-brief .nexus-brief-catchup.btn:hover { color: var(--color-accent-100); border-color: var(--color-accent-700); }
.nexus-brief-count {
  min-width: 18px; height: 16px; padding: 0 5px; border-radius: 8px; background: var(--color-accent-900);
  box-shadow: inset 0 0 0 1px var(--color-accent-700); font-size: 10px; display: grid; place-items: center;
}
.nexus-brief-count[hidden] { display: none; }

/* compact phone card (design: under the chips, 118px ticker, collapsible) */
.nexus-brief--compact {
  margin: 0 0 12px; box-shadow: inset 0 0 0 1px var(--color-accent-800);
  background: radial-gradient(240px 90px at 0% 0%, rgba(210,160,114,.12), transparent 70%), var(--color-surface);
}
.nexus-brief--compact .nexus-brief-head { padding: 10px 12px 8px 14px; padding-inline: 14px 12px; }
.nexus-brief--compact .nexus-brief-kicker { font-size: 10px; }
.nexus-brief--compact .nexus-brief-title { font-size: 13px; }
.nexus-brief .nexus-brief-min.btn { width: 30px; height: 30px; padding: 0; color: var(--color-neutral-400); }
.nexus-brief-min i { font-size: 15px; }
.nexus-brief--compact .nexus-brief-view { height: 118px; }
.nexus-brief--compact.is-min .nexus-brief-view { display: none; }
.nexus-brief--compact .nexus-brief-row { gap: 3px; padding: 9px 14px; }
.nexus-brief--compact .nexus-brief-row::before { inset-inline-start: 4px; }
.nexus-brief--compact .nexus-brief-headline { font-size: 13px; }
@media (min-width: 1060px) { .nexus-brief--compact { display: none !important; } }
@media (max-width: 1059.98px) { .nexus-brief:not(.nexus-brief--compact) { display: none !important; } }

/* Catch up dialog (design: dlg — blurred scrim, 460px panel; phone = bottom sheet) */
.nexus-catchup {
  position: fixed; inset: 0; z-index: 1080; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--color-neutral-900) 60%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.nexus-catchup-panel {
  width: min(460px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 14px; color: var(--color-text);
  background: var(--color-surface); box-shadow: var(--shadow-lg); animation: np-in .22s ease-out;
}
.nexus-catchup-kicker { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent-300); }
.nexus-catchup-title { font-size: 20px; font-weight: 500; }
.nexus-catchup-body { font-size: 14px; color: var(--color-neutral-300); text-wrap: pretty; }
.nexus-catchup-list { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; margin: 0 -8px; }
.nexus-catchup-list .nexus-brief-row { gap: 4px; padding: 12px 10px; padding-inline-start: 16px; }
.nexus-catchup-list .nexus-brief-row::before { inset-inline-start: 4px; top: 12px; bottom: 12px; box-shadow: none; }
.nexus-catchup-list .nexus-brief-headline { font-size: 14px; color: var(--color-text); -webkit-line-clamp: unset; display: block; }
.nexus-catchup-list .nexus-brief-sum { font-size: 13px; line-height: 1.45; -webkit-line-clamp: unset; display: block; }
.nexus-catchup-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
@media (max-width: 1059.98px) {
  .nexus-catchup { place-items: end center; padding: 0; }
  .nexus-catchup-panel { width: 100%; border-radius: 22px 22px 0 0; }
}
.nexus-brief-head > * { white-space: nowrap; }
.nexus-brief-head .nexus-brief-kicker { min-width: 0; overflow: hidden; text-overflow: ellipsis; letter-spacing: .14em; }
.nexus-brief-head .nexus-brief-catchup, .nexus-brief-head .nexus-brief-min { flex: none; }

/* post photos: fill the card width; tall shots are cropped to a calm height (full image opens in the lightbox) */
.np-content .post .pg_wrapper { width: 100%; border-radius: var(--radius-md); }
.np-content .post .pg_1x, .np-content .post .pg_1x > a { display: block; width: 100%; }
.np-content .post .pg_1x img {
  display: block; width: 100% !important; max-width: none; height: auto; max-height: min(560px, 70vh) !important; object-fit: cover; object-position: center 30%;
  border-radius: 0; background: var(--color-bg);
}
.np-content .post .pg_wrapper a { background-color: var(--color-bg); }
.np-content .post .pg_img_gap, .np-content .post .pg_3x { aspect-ratio: 16 / 10; }
.np-content .post .post-media-image img, .np-content .post .post-media-image .image { width: 100%; max-height: min(420px, 60vh); object-fit: cover; }

/* ── reels (design: 9:16 card, 400px wide on desktop, height ≤ 100vh − 150px, rounded; actions/arrows sit outside on the right) ── */
@media (min-width: 1060px) {
  .np-content .reels-wrapper {
    width: auto !important; height: min(calc(100vh - 150px), 720px) !important; max-width: 400px; aspect-ratio: 9 / 16;
    margin: 12px auto 0; border-radius: var(--radius-lg); background: var(--color-surface) !important; box-shadow: var(--shadow-md); overflow: visible;
  }
  .np-content .reels-wrapper .reel-video-container, .np-content .reels-wrapper .plyr, .np-content .reels-wrapper .reels-loader { border-radius: var(--radius-lg); overflow: hidden; }
  .np-content .reels-wrapper .plyr__video-wrapper { height: 100% !important; padding-bottom: 0 !important; }
  .np-content .reels-wrapper video { object-fit: cover; }
}
/* buffering spinner (np-reels.js toggles .np-buffering) */
.reel-container.np-buffering .reel-video-container::after {
  content: ""; position: absolute; z-index: 3; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18); border-top-color: var(--color-accent); animation: np-spin .8s linear infinite; pointer-events: none;
}
@keyframes np-spin { to { transform: rotate(360deg); } }
