/* Connexions news cards (news.html) — see assets/news.js. */
.cxn-status { color: var(--muted); font-size: 16px; }
.cxn-status a { color: var(--ink); text-decoration: underline; }

.cxn-card { background: var(--soft); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.cxn-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #E6E8EE; }
.cxn-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.cxn-media:hover img { transform: scale(1.03); }
.cxn-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 999px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cxn-badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(11,11,15,.78); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); }
.cxn-badge--event { background: var(--accent); }

.cxn-body { padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cxn-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cxn-pill { padding: 5px 10px; border-radius: 999px; background: var(--accent); color: #fff; letter-spacing: .1em; }
.cxn-title { margin: 0; font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 28px; line-height: 1; text-transform: uppercase; }
.cxn-text { font-size: 16px; line-height: 1.6; color: var(--body); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; }
.cxn-card.is-open .cxn-text { -webkit-line-clamp: unset; display: block; }
.cxn-text a { color: var(--accent); font-weight: 600; }
.cxn-when { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--accent); }
.cxn-tone-red .cxn-when, .cxn-tone-ink .cxn-when { color: #fff; }
.cxn-empty { padding: 48px 0; font-size: 18px; }
.cxn-text a:hover { text-decoration: underline; }
.cxn-more { align-self: flex-start; background: none; border: 0; padding: 0; font: 700 14px var(--text); color: var(--ink); text-decoration: underline; cursor: pointer; }
.cxn-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(11,11,15,.08); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; font-size: 14px; }
.cxn-stats { display: inline-flex; gap: 14px; color: var(--muted); font-weight: 600; }
.cxn-stats span { display: inline-flex; align-items: center; gap: 5px; }
.cxn-stats svg:first-child { color: var(--accent); }
.cxn-fb { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Text-only posts: big type on a solid brand colour instead of an image. */
.cxn-card--text .cxn-text { font-size: 22px; line-height: 1.4; font-weight: 600; -webkit-line-clamp: 8; }
.cxn-tone-red { background: var(--accent); }
.cxn-tone-ink { background: var(--ink); }
.cxn-tone-red, .cxn-tone-ink { color: #fff; }
.cxn-tone-red .cxn-text, .cxn-tone-ink .cxn-text, .cxn-tone-red .cxn-more, .cxn-tone-ink .cxn-more,
.cxn-tone-red .cxn-fb, .cxn-tone-ink .cxn-fb, .cxn-tone-red .cxn-text a, .cxn-tone-ink .cxn-text a { color: #fff; }
.cxn-tone-red .cxn-meta, .cxn-tone-ink .cxn-meta, .cxn-tone-red .cxn-stats, .cxn-tone-ink .cxn-stats { color: rgba(255,255,255,.72); }
.cxn-tone-red .cxn-stats svg:first-child { color: #fff; }
.cxn-tone-red .cxn-foot, .cxn-tone-ink .cxn-foot { border-top-color: rgba(255,255,255,.18); }
.cxn-tone-red .cxn-pill { background: #fff; color: var(--accent); }
.cxn-tone-blush { background: var(--blush, #FDEEEF); }

/* Featured (latest) post: image + text side by side. */
.cxn-featured { margin-bottom: 72px; }
.cxn-card--featured { display: grid; grid-template-columns: 1.25fr 1fr; border-radius: 36px; }
.cxn-card--featured .cxn-media { aspect-ratio: auto; min-height: 440px; }
.cxn-card--featured .cxn-body { padding: 48px; justify-content: center; gap: 16px; }
.cxn-card--featured .cxn-text { font-size: 19px; -webkit-line-clamp: 8; }
.cxn-card--featured.cxn-card--text { grid-template-columns: 1fr; }
.cxn-card--featured.cxn-card--text .cxn-text { font-size: clamp(24px, 3vw, 36px); }

.cxn-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.cxn-h2 { margin: 0; font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: clamp(44px, 6vw, 80px); line-height: .9; text-transform: uppercase; }
.cxn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cxn-chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--soft); color: var(--ink); font: 700 15px/1 var(--text); cursor: pointer; }
.cxn-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

.cxn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.cxn-loadmore { display: flex; margin: 40px auto 0; }


@media (max-width: 860px) {
  .cxn-card--featured { grid-template-columns: 1fr; border-radius: 28px; }
  .cxn-card--featured .cxn-media { min-height: 0; aspect-ratio: 4 / 3; }
  .cxn-card--featured .cxn-body { padding: 28px 24px 24px; }
  .cxn-featured { margin-bottom: 56px; }
}
@media (max-width: 400px) {
  .cxn-grid { grid-template-columns: 1fr; }
}
