/* News archive + articles. Blocksy keeps the grid, paging and single-post template; this sets shapes, type and motion. */
.sy-news-archive, .sy-news-single { --nw-ease: cubic-bezier(.2, .7, .2, 1); --nw-pad: 26px; }

/* Head + topic chips */
.sy-news-archive .hero-section { display: none !important; }
.sy-news-head .sy-page-head { border-bottom: 0; padding-bottom: clamp(28px, 4vw, 44px) !important; }
.sy-news-chips { position: sticky; top: var(--sy-subnav-top, 96px); z-index: 20; padding: 0 clamp(16px, 6vw, 85px); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--sy-line, #d9e0e6); }
.sy-news-chips .sy-sec__inner { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.sy-news-chips a { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 18px 0; font-size: 14.5px; color: var(--sy-muted, #59677a); text-decoration: none; white-space: nowrap; transition: color .2s; }
.sy-news-chips a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sy-navy, #283951); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--nw-ease); }
.sy-news-chips a:hover, .sy-news-chips a[aria-current] { color: var(--sy-ink, #263653); }
.sy-news-chips a:hover::after, .sy-news-chips a[aria-current]::after { transform: scaleX(1); }
.sy-news-chips a span { font-size: 11px; color: var(--sy-muted, #59677a); }

/* Cards */
.sy-news-archive .entries { --grid-columns-gap: 28px; }
.sy-news-archive .entry-card, .sy-news-single .ct-related-posts article { --card-inner-spacing: var(--nw-pad); position: relative; display: flex; flex-direction: column; background: #fff !important; border: 1px solid var(--sy-line, #d9e0e6) !important; border-radius: var(--sy-radius, 2px) !important; box-shadow: none !important; overflow: hidden; transition: transform .4s var(--nw-ease), box-shadow .4s, border-color .4s; }
.sy-news-archive .entry-card:hover, .sy-news-single .ct-related-posts article:hover { transform: translateY(-4px); border-color: transparent !important; box-shadow: 0 22px 46px -24px rgba(38, 54, 83, .35) !important; }
.sy-news-archive .entry-card .ct-media-container, .sy-news-single .ct-related-posts .ct-media-container { border-radius: 0 !important; aspect-ratio: 16 / 10; overflow: hidden; background: #eceef0; }
.sy-news-archive .entry-card .ct-media-container img, .sy-news-single .ct-related-posts .ct-media-container img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; transition: transform .8s var(--nw-ease); }
.sy-news-archive .entry-card:hover .ct-media-container img, .sy-news-single .ct-related-posts article:hover img { transform: scale(1.05); }

/* No featured image: a brand panel (stripes echo the logo) keeps the grid even */
.sy-news-archive .entry-card:not(.has-post-thumbnail)::before { content: ""; display: block; aspect-ratio: 16 / 10; margin: calc(var(--nw-pad) * -1) calc(var(--nw-pad) * -1) var(--nw-pad); background: repeating-linear-gradient(118deg, transparent 0 15px, rgba(255, 255, 255, .08) 15px 16px), linear-gradient(140deg, #31466a 0%, var(--sy-navy, #283951) 55%, #1b2a3e 100%); background-size: 100% 100%, 100% 100%; transition: background-position .9s var(--nw-ease); }
.sy-news-archive .entry-card:not(.has-post-thumbnail):nth-child(3n+2)::before { background: repeating-linear-gradient(118deg, transparent 0 15px, rgba(40, 57, 81, .07) 15px 16px), linear-gradient(140deg, #f3f7f8, var(--sy-mist, #eef4f5) 60%, #e1eaec); }
.sy-news-archive .entry-card:not(.has-post-thumbnail):nth-child(3n)::before { background: repeating-linear-gradient(118deg, transparent 0 15px, rgba(255, 255, 255, .07) 15px 16px), linear-gradient(140deg, #4d5d74, #3a4a62 60%, #2d3b50); }
.sy-news-archive .entry-card:not(.has-post-thumbnail):hover::before { background-position: 40px 0, 0 0; }

/* Card text */
.sy-news-archive .entry-card .entry-meta, .sy-news-single .ct-related-posts .entry-meta { margin: 0 0 10px !important; font-size: 11.5px !important; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.sy-news-archive .entry-card .meta-categories > span { display: none; }
.sy-news-archive .entry-card .entry-meta a { color: var(--sy-muted, #59677a) !important; }
.sy-news-archive .entry-card .entry-meta:has(.ct-term-1) { visibility: hidden; }
.sy-news-archive .entry-card .entry-title { margin: 0 0 10px !important; font-size: 20px !important; font-weight: 500 !important; line-height: 1.3 !important; letter-spacing: -.01em; }
.sy-news-archive .entry-card .entry-title a { color: var(--sy-ink, #263653); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--nw-ease); }
.sy-news-archive .entry-card:hover .entry-title a { background-size: 100% 1px; }
.sy-news-archive .entry-card .entry-excerpt { font-size: 15px; line-height: 1.65; color: var(--sy-muted, #59677a); }
.sy-news-archive .entry-card .entry-excerpt p { margin: 0; }
.sy-card-foot { display: flex; justify-content: space-between; align-items: center; margin: auto 0 0 !important; padding-top: 18px; font-size: 13px; color: var(--sy-muted, #59677a); }
.sy-news-archive .entry-card .entry-excerpt + .sy-card-foot, .sy-news-archive .entry-card .entry-title + .sy-card-foot { margin-top: auto !important; }
.sy-news-archive .entry-card > .sy-card-foot { border-top: 1px solid var(--sy-line, #d9e0e6); margin-top: 22px !important; }
.sy-card-foot span { display: inline-flex; align-items: center; gap: 8px; color: var(--sy-ink, #263653); font-weight: 500; }
.sy-card-foot .sy-arrow { transition: transform .35s var(--nw-ease); }
.sy-news-archive .entry-card:hover .sy-card-foot .sy-arrow { transform: translateX(4px); }
/* Whole card clickable via the title link */
.sy-news-archive .entry-card .entry-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sy-news-archive .entry-card .entry-meta a { position: relative; z-index: 2; }

/* Lead story on the first page */
@media (min-width: 900px) {
	.sy-news-archive.blog:not(.paged) .entries > .entry-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: 1fr repeat(4, auto) 1fr; column-gap: clamp(32px, 4vw, 56px) !important; row-gap: 0 !important; padding: 0 clamp(28px, 4vw, 56px) 0 0 !important; }
	.sy-news-archive.blog:not(.paged) .entries > .entry-card:first-child > .ct-media-container, .sy-news-archive.blog:not(.paged) .entries > .entry-card:first-child::before { grid-column: 1; grid-row: 1 / -1; width: 100% !important; margin: 0 !important; height: 100%; min-height: 380px; aspect-ratio: auto; }
	.sy-news-archive.blog:not(.paged) .entries > .entry-card:first-child > :not(.ct-media-container) { grid-column: 2; }
	.sy-news-archive.blog:not(.paged) .entries > .entry-card:first-child > .entry-meta { grid-row: 2; }
	.sy-news-archive.blog:not(.paged) .entries > .entry-card:first-child > .entry-title { grid-row: 3; font-size: clamp(26px, 2.6vw, 36px) !important; font-weight: 400 !important; letter-spacing: -.02em; line-height: 1.15 !important; margin-bottom: 16px !important; }
	.sy-news-archive.blog:not(.paged) .entries > .entry-card:first-child > .entry-excerpt { grid-row: 4; font-size: 16.5px; }
	.sy-news-archive.blog:not(.paged) .entries > .entry-card:first-child > .sy-card-foot { grid-row: 5; margin-top: 26px !important; }
}

/* Pagination */
.sy-news-archive .ct-pagination a, .sy-news-archive .ct-pagination span { border-radius: var(--sy-radius, 2px) !important; }

/* ---------- Single article ---------- */
.sy-news-single .hero-section[data-type="type-1"] { margin-bottom: clamp(28px, 4vw, 48px) !important; padding-top: clamp(40px, 6vw, 80px); }
.sy-news-single .hero-section .entry-header { display: flex; flex-direction: column-reverse; gap: 22px; }
.sy-news-single h1.page-title { margin: 0; font-size: clamp(36px, 4.6vw, 60px) !important; font-weight: 400 !important; letter-spacing: -.03em; line-height: 1.08 !important; color: var(--sy-ink, #263653); }
.sy-news-single .hero-section .entry-meta { font-size: 11.5px !important; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sy-muted, #59677a); }
.sy-news-single .hero-section .entry-meta a { color: var(--sy-muted, #59677a) !important; }
.sy-news-single .hero-section .meta-author, .sy-news-single .hero-section .meta-categories:has(.ct-term-1) { display: none !important; }
.sy-news-single .hero-section .meta-date:has(+ .meta-categories .ct-term-1)::after, .sy-news-single .hero-section .meta-date:last-child::after { content: none !important; }
.sy-news-single .entry-content { font-size: 17.5px; line-height: 1.8; color: var(--sy-ink, #263653); }
.sy-news-single .entry-content > p, .sy-news-single .entry-content > ul, .sy-news-single .entry-content > ol { color: #3a4a62; }
.sy-news-single .entry-content h2 { margin-top: 1.9em; font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.sy-news-single .entry-content h3 { margin-top: 1.6em; font-size: 21px; font-weight: 500; line-height: 1.3; }
.sy-news-single .entry-content a:not(.wp-element-button) { color: var(--sy-navy, #283951); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sy-news-single .entry-content img { border-radius: var(--sy-radius, 2px); }
.sy-news-single .entry-content figure { margin-block: 2em; }
.sy-news-single .entry-content figcaption { font-size: 13px; color: var(--sy-muted, #59677a); }
.sy-news-single .entry-content blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--sy-navy, #283951); font-size: 21px; line-height: 1.55; }
.sy-news-single .entry-content hr, .sy-news-single .entry-content .wp-block-separator { width: 64px; margin: 2.4em 0; border: 0; border-top: 1px solid var(--sy-line, #d9e0e6); }
.sy-news-single .entry-content ul li::marker { color: var(--sy-muted, #59677a); }

/* Share + post navigation */
.sy-news-single .ct-share-box { margin-top: clamp(40px, 5vw, 64px) !important; padding-top: 28px; border-top: 1px solid var(--sy-line, #d9e0e6); }
.sy-news-single .ct-share-box .ct-module-title { font-size: 11.5px !important; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sy-muted, #59677a); }
.sy-news-single .ct-share-box [data-network] { border-radius: var(--sy-radius, 2px) !important; border-color: var(--sy-line, #d9e0e6) !important; transition: background .25s, color .25s; }
.sy-news-single .ct-share-box [data-network]:hover { background: var(--sy-navy, #283951) !important; color: #fff !important; }
.sy-news-single .ct-share-box [data-network]:hover svg { fill: #fff !important; }
.sy-news-single .post-navigation { border-top: 1px solid var(--sy-line, #d9e0e6); padding-top: 28px; }
.sy-news-single .post-navigation .item-label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.sy-news-single .post-navigation .item-title { font-weight: 500; }
.sy-news-single .post-navigation .ct-media-container { border-radius: var(--sy-radius, 2px) !important; }

/* Related articles */
.sy-news-single .ct-related-posts-container { background: var(--sy-mist-2, #f7fafb); }
.sy-news-single .ct-related-posts .ct-module-title { font-size: clamp(26px, 2.6vw, 34px) !important; font-weight: 400 !important; letter-spacing: -.02em; }
.sy-news-single .ct-related-posts article { padding: 0 0 22px !important; }
.sy-news-single .ct-related-posts article > :not(.ct-media-container) { padding-inline: 22px; }
.sy-news-single .ct-related-posts .related-entry-title { margin-top: 16px !important; font-size: 17px !important; font-weight: 500 !important; line-height: 1.35; }

/* Article call to action */
.sy-article-cta-wrap .sy-article-cta h2 { margin-top: 10px; }
.sy-article-cta-wrap .wp-block-columns { align-items: center !important; gap: clamp(24px, 5vw, 80px); }

@media (prefers-reduced-motion: reduce) {
	.sy-news-archive *, .sy-news-archive *::before, .sy-news-archive *::after, .sy-news-single .ct-related-posts *, .sy-news-single .ct-share-box * { transition: none !important; animation: none !important; }
}
.sy-article-cta .wp-block-buttons { margin-top: 24px; gap: 14px 26px; align-items: center; }

/* Article body in one readable column under the title (it ran the full page width: the User Registration plugin
   sets max-width: none on every content block), wide blocks a little wider. */
.sy-news-single article > .entry-content > :not(.alignfull):not(.alignwide) { max-width: var(--theme-block-max-width, 750px) !important; margin-left: auto !important; margin-right: auto !important; }
.sy-news-single article > .entry-content > .alignwide { max-width: min(1100px, 100%) !important; margin-left: auto !important; margin-right: auto !important; }
/* Header order: date and category, title, then the summary; title in the site's heading weight. */
.sy-news-single .hero-section .entry-header { flex-direction: column; }
.sy-news-single .hero-section .entry-header .entry-meta { order: -1; }
.sy-news-single .hero-section .entry-header .page-description { order: 2; margin: 0; font-size: 18px; line-height: 1.6; color: var(--sy-muted, #59677a); }
.sy-news-single h1.page-title { font-weight: 600 !important; letter-spacing: -.025em; }
.sy-news-single .entry-content h2 { font-weight: 600; }
