/* News (#125): the /news listing (templates/home.html) and the story page (templates/single-post.html).
   Built from the v3 News & Events language: the orange NEWS kicker, display-font headlines,
   dated cards. CEEC's news images are square social tiles with text in them, so they are
   always shown whole, never cropped to 16:9. Loaded by inc/news.php on news views only. */

/* ---------- shared: kicker, cards ---------- */
.news-kicker { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; font-family:var(--font-mono); font-size:12px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--orange-deep); }
.news-kicker > * { margin:0; }
.news-kicker .wp-block-post-date::before { content:"\00b7"; margin-right:8px; }
.phero .news-kicker { color:var(--orange-soft); }

.news-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:22px 0 0; padding:0; list-style:none; }
@media (max-width:960px){ .news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px){ .news-grid { grid-template-columns:1fr; } }
.news-grid > li { margin:0; position:relative; display:flex; flex-direction:column; border:1px solid var(--panel-border); border-radius:var(--radius-2xl); background:#fff; overflow:hidden; transition:border-color .2s, box-shadow .2s, transform .2s; }
.news-grid > li:hover { border-color:rgba(233,97,21,.5); box-shadow:var(--shadow-md); transform:translateY(-3px); }
.news-grid .wp-block-post-featured-image { margin:0; aspect-ratio:1/1; background:var(--muted); border-bottom:1px solid var(--panel-border); }
.news-grid .wp-block-post-featured-image a, .news-grid .wp-block-post-featured-image img { display:block; width:100%; height:100%; object-fit:cover; }
.news-grid .nbody { flex:1; display:flex; flex-direction:column; gap:8px; padding:18px 20px 20px; }
.news-grid .nbody > * { margin:0; }
.news-grid .wp-block-post-title { font-family:var(--font-display); font-size:17px; font-weight:700; line-height:1.3; color:var(--ink); }
.news-grid .wp-block-post-title a { color:inherit; text-decoration:none; }
/* the whole card is the link: the title's link is stretched over it */
.news-grid .wp-block-post-title a::after { content:""; position:absolute; inset:0; }
.news-grid .wp-block-post-excerpt__excerpt { margin:0; font-size:14px; line-height:1.6; color:var(--text-soft); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.news-grid .news-meta { margin-top:auto !important; padding-top:6px; display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; font-size:12.5px; color:var(--text-soft); }
.news-grid .news-meta > * { margin:0; }
.news-grid .news-meta .wp-block-post-terms a { position:relative; z-index:1; color:var(--orange-deep); font-weight:500; text-decoration:none; }
.news-grid .news-meta .wp-block-post-terms + .wp-block-post-date::before { content:"\00b7"; margin-right:10px; }

/* ---------- listing: /news ---------- */
/* Two columns throughout, on one system: the lead story's image sits exactly over the sidebar
   of the list below it. */
.news-lead, .news-room { --news-side:clamp(300px,27vw,380px); --news-gap:clamp(32px,5vw,72px); }

/* masthead: the page title and what it holds, over a rule */
.news-masthead { display:flex; align-items:flex-end; justify-content:space-between; gap:24px 48px; flex-wrap:wrap; margin-top:18px !important; padding-bottom:24px; border-bottom:1px solid rgba(255,255,255,.14); }
.news-masthead > * { margin:0 !important; }
.news-masthead h1 { font-size:clamp(40px,5vw,60px); line-height:1; letter-spacing:-.02em; }
.phero .news-masthead p { max-width:40ch; font-size:16px; line-height:1.6; color:rgba(255,255,255,.72); text-align:right; }

/* the lead story, in the hero */
.news-lead { padding-bottom:clamp(40px,5vw,64px) !important; }
.news-lead-q, .news-lead-q .wp-block-post-template { margin:0; padding:0; list-style:none; }
.news-lead-q { margin-top:clamp(28px,3.5vw,44px) !important; }
.news-lead-q li { margin:0; }
.news-lead__grid { display:grid; grid-template-columns:minmax(0,1fr) var(--news-side); gap:var(--news-gap); align-items:center; }
.news-lead__grid > *, .news-lead__text > * { margin-top:0 !important; margin-bottom:0 !important; }
.news-lead__text { display:flex; flex-direction:column; gap:16px; }
.news-lead .wp-block-post-title { max-width:22ch; font-family:var(--font-display); font-size:clamp(30px,3.6vw,46px); font-weight:800; line-height:1.1; letter-spacing:-.015em; color:#fff; }
.news-lead .wp-block-post-title a { color:inherit; text-decoration:none; background-image:linear-gradient(var(--orange-soft),var(--orange-soft)); background-size:0 2px; background-position:0 100%; background-repeat:no-repeat; transition:background-size .3s; }
.news-lead .wp-block-post-title a:hover { background-size:100% 2px; }
.phero.news-lead .wp-block-post-excerpt__excerpt { margin:0; max-width:60ch; font-size:17px; line-height:1.7; color:rgba(255,255,255,.8); }
/* the action, then the story's tags on their own line under it, both on the text's left edge */
.news-lead__foot { display:flex; flex-direction:column; align-items:flex-start; gap:22px; margin-top:8px !important; }
.news-lead .news-lead__foot > *, .news-lead .news-lead__foot > .news-tags { margin:0 !important; }
.news-lead__more { display:inline-flex; align-items:center; gap:8px; padding:13px 24px; border-radius:var(--radius-md); background:var(--gradient-orange); color:#fff !important; font-size:14.5px; font-weight:500; text-decoration:none; transition:opacity .2s; }
.news-lead__more::after { content:"\2192"; transition:transform .2s; }
.news-lead__more:hover { opacity:.92; }
.news-lead__more:hover::after { transform:translateX(3px); }
.news-lead__media { margin:0; aspect-ratio:1/1; overflow:hidden; border-radius:var(--radius-2xl); border:1px solid rgba(255,255,255,.14); box-shadow:0 30px 60px -24px rgba(0,0,0,.6); }
.news-lead__media a, .news-lead__media img { display:block; width:100%; height:100%; object-fit:cover; }

/* the rest: a newsroom list, with the filters and sign-up in a sticky sidebar */
.news-room__grid { display:grid; grid-template-columns:minmax(0,1fr) var(--news-side); gap:var(--news-gap); align-items:start; }
.news-room__grid > *, .news-room__main > *, .news-room__side > * { margin-top:0; margin-bottom:0; }
.news-room__head > * { margin:0; }
.news-room__head h2 { margin-top:12px !important; font-weight:800; font-size:clamp(26px,3.4vw,38px); line-height:1.1; }
.news-active { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; margin-top:18px !important; padding:12px 16px; border:1px solid var(--panel-border); border-left:3px solid var(--orange); border-radius:var(--radius-md); background:#fff; font-size:14px; color:var(--text); }
.news-active > * { margin:0 !important; }
.news-active a { font-weight:500; color:var(--orange-deep); }
.news-list { list-style:none; margin:20px 0 0; padding:0; }
.news-list > li { position:relative; display:grid; grid-template-columns:200px minmax(0,1fr); gap:28px; align-items:center; margin:0; padding:26px 0; border-top:1px solid var(--panel-border); }
.news-list > li:last-child { border-bottom:1px solid var(--panel-border); }
.news-list > li > * { margin:0 !important; }
.nstory__img { width:200px; aspect-ratio:1/1; overflow:hidden; border-radius:var(--radius-xl); border:1px solid var(--panel-border); background:var(--muted); }
.nstory__img a, .nstory__img img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.news-list > li:hover .nstory__img img { transform:scale(1.03); }
.nstory__body { display:flex; flex-direction:column; gap:10px; min-width:0; }
.nstory__body > * { margin:0 !important; }
.nstory__body .news-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; font-size:13px; color:var(--text-soft); }
.nstory__body .news-meta > * { margin:0; }
.nstory__body .news-meta .wp-block-post-terms a { position:relative; z-index:1; color:var(--orange-deep); font-weight:500; text-decoration:none; }
.nstory__body .news-meta .wp-block-post-terms + .wp-block-post-date::before { content:"\00b7"; margin-right:10px; }
.nstory__body .wp-block-post-title { font-family:var(--font-display); font-size:22px; font-weight:700; line-height:1.28; color:var(--ink); }
.nstory__body .wp-block-post-title a { color:inherit; text-decoration:none; transition:color .2s; }
/* the whole row is the story's link */
.nstory__body .wp-block-post-title a::after { content:""; position:absolute; inset:0; }
.news-list > li:hover .wp-block-post-title a { color:var(--primary); }
.nstory__body .wp-block-post-excerpt__excerpt { margin:0; font-size:15.5px; line-height:1.65; color:var(--text-soft); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.news-empty { margin:20px 0 0; padding:28px; border:1px dashed var(--panel-border); border-radius:var(--radius-xl); text-align:center; font-size:15px; color:var(--text-soft); }
.news-room__side { position:sticky; top:96px; }
.news-room__side > * + * { margin-top:16px !important; }
.news-browse > * { margin:0 !important; }
.news-browse__group + .news-browse__group { margin-top:22px !important; padding-top:20px; border-top:1px solid var(--panel-border); }
.news-browse__list { display:flex; flex-direction:column; gap:2px; margin-top:10px; }
.news-filter { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 12px; margin:0 -12px; border-radius:var(--radius-md); font-size:14.5px; color:var(--text); text-decoration:none; transition:background-color .2s, color .2s; }
.news-filter em { flex-shrink:0; min-width:24px; padding:2px 8px; border-radius:999px; background:var(--muted); font-style:normal; font-size:12px; text-align:center; color:var(--text-soft); }
.news-filter:hover { background:var(--muted); color:var(--primary); }
.news-filter.is-on { background:var(--primary); color:#fff; }
.news-filter.is-on em { background:rgba(255,255,255,.2); color:#fff; }
.news-pagination { margin-top:36px !important; display:flex; justify-content:center; gap:6px; font-size:14px; }
.news-pagination a, .news-pagination .page-numbers { display:inline-grid; place-items:center; min-width:40px; height:40px; padding:0 12px; border:1px solid var(--panel-border); border-radius:var(--radius-md); color:var(--text); text-decoration:none; background:#fff; }
.news-pagination .current { background:var(--primary); border-color:var(--primary); color:#fff; }

/* ---------- story: /news/{slug} ---------- */
/* hero and body share one column system, so the hero image sits exactly over the sidebar */
.news-hero, .news-layout { --news-side:clamp(280px,26vw,360px); --news-gap:clamp(32px,5vw,72px); }
.news-hero__grid { display:grid; grid-template-columns:minmax(0,1fr) var(--news-side); gap:var(--news-gap); align-items:center; }
.news-hero__grid > *, .news-hero__text > * { margin-top:0; margin-bottom:0; }
.news-hero .news-kicker { margin-top:18px !important; }
.news-hero .wp-block-post-title { margin-top:12px !important; max-width:24ch; font-size:clamp(30px,4vw,50px); line-height:1.08; letter-spacing:-.02em; overflow-wrap:anywhere; }
.phero .news-tags { margin-top:22px !important; display:flex; flex-wrap:wrap; gap:8px; }
.phero .news-tags > * { margin:0; display:contents; }
.phero .news-tags .wp-block-post-terms__separator { display:none; }
.phero .news-tags a { display:inline-block; border:1px solid rgba(255,255,255,.3); border-radius:999px; padding:6px 14px; font-size:13px; font-weight:500; color:#fff; text-decoration:none; transition:background-color .2s, border-color .2s; }
.phero .news-tags a:hover { background:rgba(255,255,255,.12); border-color:#fff; }
.news-hero__media { margin:0; width:100%; }
.news-hero__media img { display:block; width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius-2xl); border:1px solid rgba(255,255,255,.14); box-shadow:0 30px 60px -24px rgba(0,0,0,.6); }
@media (max-width:860px){ .news-hero__grid { grid-template-columns:1fr; } .news-hero__media { width:min(100%,420px); } }

.news-layout { display:grid; grid-template-columns:minmax(0,1fr) var(--news-side); gap:var(--news-gap); align-items:start; }
.news-layout > *, .news-side > * { margin-top:0; margin-bottom:0; }
/* the sidebar stays in view while the story scrolls */
.news-side { position:sticky; top:96px; }
@media (max-width:960px){
  .news-layout { grid-template-columns:1fr; }
  .news-side { position:static; display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; max-width:none; }
  .news-side > * + * { margin-top:0 !important; }
}
/* the story: a reading column */
.news-body { max-width:780px; }
.news-body > * { margin-top:0; margin-bottom:0; }
.news-body > * + * { margin-top:22px; }
.news-body p, .news-body li { font-size:18px; line-height:1.8; color:var(--text); }
.news-body > p:first-child { font-size:21px; line-height:1.6; color:var(--ink); }
.news-body h2 { font-family:var(--font-display); font-size:22px; font-weight:700; line-height:1.3; color:var(--ink); margin-top:40px !important; padding-top:24px; border-top:1px solid var(--panel-border); }
.news-body h3 { font-family:var(--font-display); font-size:19px; font-weight:700; color:var(--ink); margin-top:32px !important; }
.news-body h2 + *, .news-body h3 + * { margin-top:12px !important; }
.news-body a { color:var(--orange-deep); text-underline-offset:2px; }
.news-body ul, .news-body ol { padding-left:24px; }
.news-body blockquote { margin-left:0; border-left:3px solid var(--orange); padding:4px 0 4px 20px; font-size:19px; font-style:italic; color:var(--ink); }
.news-body img { border-radius:var(--radius-lg); height:auto; }
/* sidebar */
.news-side > * + * { margin-top:20px !important; }
.news-card { border:1px solid var(--panel-border); border-radius:var(--radius-2xl); background:#fff; padding:24px 26px; }
.news-card h4 { margin:0 0 6px; font-family:var(--font-sans); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--ink); }
.news-card .news-note { margin:0 0 4px; font-size:13px; color:var(--text-soft); }
.news-related .wp-block-post-template { list-style:none; margin:8px 0 0; padding:0; }
.news-related .wp-block-post-template li { margin:0; border-top:1px solid var(--panel-border); }
.news-related .wp-block-post-template li:first-child { border-top:none; }
.news-related .wp-block-post-title { margin:0; font-family:var(--font-sans); font-size:14px; font-weight:500; line-height:1.4; }
.news-related .wp-block-post-title a { display:flex; gap:12px; align-items:flex-start; padding:12px 0; color:var(--ink); text-decoration:none; }
.news-related .wp-block-post-title a::before { content:""; flex-shrink:0; margin-top:7px; width:7px; height:7px; border-radius:2px; background:var(--orange); }
.news-related .wp-block-post-title a:hover { color:var(--primary); }
.news-signup { background:linear-gradient(180deg,#fff,var(--cream)); }
.news-signup p { margin:6px 0 14px; font-size:13.5px; line-height:1.55; color:var(--text-soft); }
.news-signup form { display:flex; flex-direction:column; gap:10px; }
.news-signup input { border:1px solid var(--panel-border); border-radius:var(--radius-md); padding:11px 14px; font-size:14px; font-family:var(--font-sans); background:#fff; }
.news-signup button { border:0; border-radius:var(--radius-md); padding:12px 18px; font-size:14px; font-weight:500; font-family:var(--font-sans); color:#fff; background:var(--gradient-orange); cursor:pointer; }
/* more news band */
.news-more { background:var(--cream); border-top:1px solid var(--panel-border); }

/* a story without a featured image: the CEEC mark on the brand teal (inc/news.php) */
.ceec-noimg { margin:0; overflow:hidden; }
.ceec-noimg a { display:block; height:100%; text-decoration:none; }
.ceec-noimg__art { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; width:100%; height:100%; min-height:100%; aspect-ratio:1/1; padding:14%; background:radial-gradient(60% 80% at 85% 10%, rgba(233,97,21,.28), transparent 60%), var(--gradient-teal, linear-gradient(150deg,#0a5063,#17282c)); }
.ceec-noimg__art img { display:block; width:72%; max-width:260px; height:auto; opacity:.92; }
.ceec-noimg__tag { font-family:var(--font-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--orange-soft); text-align:center; }
.news-hero__media.ceec-noimg .ceec-noimg__art { border-radius:var(--radius-2xl); border:1px solid rgba(255,255,255,.14); box-shadow:0 30px 60px -24px rgba(0,0,0,.6); }
.nstory__img.ceec-noimg .ceec-noimg__tag { display:none; }
/* the image slots' own img rules (square crop, frame, shadow) are for photos, not the mark */
.ceec-noimg .ceec-noimg__art img { width:72%; max-width:260px; height:auto; aspect-ratio:auto; object-fit:contain; border:0; border-radius:0; box-shadow:none; transform:none; }
.news-hero__media.ceec-noimg { width:100%; }
