/* Health Hero Network - Newsroom cards and the single article template. Loads only on the Newsroom page and articles. */

/* ---------- Newsroom page ---------- */
.hhn-news-hero { position: relative; }
.hhn-news-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24px;
	height: 200px;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6425 -30 13700 844' fill='none' stroke='%23F95920' stroke-width='50' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M-6425 495 H175 C230 495 255 560 272 592 C282 612 296 610 303 575 L358 45 L362 685 C385 560 420 335 495 335 C545 335 565 430 580 560 C586 610 600 612 620 575 C645 520 665 495 700 495 H7275'/%3E%3C/svg%3E") no-repeat calc(44% - 206px) 0 / 3428px 211px;
}
.hhn-news-hero > .kt-row-column-wrap { position: relative; z-index: 1; }
.entry-content .hhn-news-hero .hhn-kicker { margin: 0 0 18px; }
.entry-content .hhn-news-hero .hhn-intro { margin: 22px 0 0; max-width: 600px; font-size: 20px; }
@media (max-width: 1024px) { .entry-content .hhn-news-hero .hhn-intro { font-size: 18px; } }
.hhn-news-hero .wp-block-kadence-column > .kt-inside-inner-col { max-width: 1000px; }

/* Section headings (Latest, Media, More from the Newsroom) */
.entry-content .hhn-news-h2 { margin: 0 0 22px; }

/* ---------- Cards ---------- */
.hhn-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hhn-news-grid--sm { align-items: start; }
@media (max-width: 767px) { .hhn-news-grid { grid-template-columns: 1fr; } }

.hhn-news-card {
	display: flex;
	flex-direction: column;
	background: var(--hhn-ink-2);
	border-radius: 10px;
	overflow: hidden;
	color: var(--hhn-ivory);
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease;
}
.hhn-news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); color: var(--hhn-ivory); }
.hhn-news-card:hover .hhn-news-card__title { color: var(--hhn-orange); }
.hhn-news-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #14171C; }
.hhn-news-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hhn-news-card__media--brand {
	box-shadow: inset 0 0 0 1px rgba(245, 241, 234, .12);
	background: radial-gradient(520px 320px at 80% 10%, rgba(184, 74, 31, .55), rgba(184, 74, 31, 0) 65%), radial-gradient(480px 360px at 5% 100%, rgba(91, 74, 107, .6), rgba(91, 74, 107, 0) 65%), var(--hhn-ink-2);
}
.hhn-news-card__media--brand .hhn-news-card__logo { inset: auto; left: 50%; top: 44%; width: auto; height: 46%; transform: translate(-50%, -50%); object-fit: contain; }
.hhn-news-card__caption { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--hhn-ivory); }
.hhn-news-card__media--video {
	border-radius: 0;
	background: radial-gradient(520px 320px at 85% 10%, rgba(184, 74, 31, .5), rgba(184, 74, 31, 0) 65%), radial-gradient(520px 360px at 5% 100%, rgba(44, 74, 110, .55), rgba(44, 74, 110, 0) 65%), #14171C;
}
.hhn-news-card__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 84px;
	height: 84px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--hhn-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 2l8 5-8 5z' fill='%230F1318'/%3E%3C/svg%3E") no-repeat 56% 50% / 28px 28px;
	transition: transform .2s ease;
}
.hhn-news-card:hover .hhn-news-card__play { transform: translate(-50%, -50%) scale(1.06); }
.hhn-news-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1 1 0%; }
.hhn-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hhn-tag { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; color: var(--hhn-ivory); }
.hhn-tag--orange { background: var(--hhn-orange); color: var(--hhn-ink); }
.hhn-tag--ivory { background: var(--hhn-ivory); color: var(--hhn-ink); }
.hhn-tag--green { background: #3F5B4B; }
.hhn-tag--blue { background: #2C4A6E; }
.hhn-tag--rust { background: #B84A1F; }
.hhn-tag--purple { background: #5B4A6B; }
.hhn-news-date { font-size: 13px; color: var(--hhn-text-muted); }
.hhn-news-card .hhn-news-card__title { margin: 14px 0 0; font-weight: 900; font-size: 26px; line-height: 1.08; letter-spacing: -.025em; color: inherit; transition: color .2s ease; }
.hhn-news-card--sm .hhn-news-card__title { font-size: 22px; }
.hhn-news-card .hhn-news-card__text { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--hhn-text-soft); flex: 1 1 0%; }
.hhn-news-card__more { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--hhn-orange); }

/* ---------- Press kit box ---------- */
.hhn-presskit { background: var(--hhn-ink-2); border-radius: 12px; }
.hhn-presskit > .kt-inside-inner-col { padding: 48px !important; }
@media (max-width: 1024px) { .hhn-presskit > .kt-inside-inner-col { padding: 28px 24px !important; } }
.entry-content .hhn-presskit .hhn-kicker { margin: 0; letter-spacing: .16em; }
.hhn-kit-item { border-top: 3px solid var(--accent, var(--hhn-orange)); }
.hhn-kit-item > .kt-inside-inner-col { padding: 18px 0 0 !important; }
.entry-content .hhn-kit-item .hhn-kit-item__title { margin: 0; font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--hhn-ivory); }
.entry-content .hhn-kit-item p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--hhn-text-muted); }
.entry-content .hhn-kit-item .hhn-kit-item__link { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--hhn-orange); }
.hhn-kit-item__link a { color: inherit; text-decoration: none; }

/* ---------- Single article ---------- */
.hhn-article-head {
	position: relative;
	overflow: hidden;
	padding: 72px var(--hhn-gutter) 0;
	background:
		radial-gradient(700px 420px at 88% 12%, rgba(184, 74, 31, .42), rgba(184, 74, 31, 0) 62%),
		radial-gradient(620px 460px at 4% 92%, rgba(91, 74, 107, .5), rgba(91, 74, 107, 0) 62%),
		radial-gradient(520px 360px at 55% 100%, rgba(44, 74, 110, .45), rgba(44, 74, 110, 0) 62%);
}
@media (max-width: 1024px) { .hhn-article-head { padding-top: 56px; } }
@media (max-width: 767px) { .hhn-article-head { padding-top: 40px; } }
.hhn-article-head__inner { max-width: 920px; margin: 0 auto; }
.hhn-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--hhn-text-muted); text-decoration: none; }
.hhn-back:hover { color: var(--hhn-orange); }
.hhn-news-meta--article { margin-top: 28px; gap: 12px; }
.hhn-news-meta--article .hhn-news-date { font-size: 14px; }
.hhn-article-title { margin: 18px 0 0; font-weight: 900; font-size: 64px; line-height: 1.02; letter-spacing: -.035em; color: var(--hhn-ivory); }
.hhn-article-dek { margin: 22px 0 0; font-size: 22px; line-height: 1.5; color: var(--hhn-text-soft); }
@media (max-width: 1024px) { .hhn-article-title { font-size: 48px; } .hhn-article-dek { font-size: 19px; } }
@media (max-width: 767px) { .hhn-article-title { font-size: 34px; } }
.hhn-author { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.hhn-author__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; display: block; flex: none; }
.hhn-author__name { font-weight: 700; font-size: 16px; color: var(--hhn-ivory); }
.hhn-author__role { font-size: 14px; color: var(--hhn-text-muted); }
.hhn-article-hero { max-width: 1100px; margin: 48px auto 0; border-radius: 10px 10px 0 0; overflow: hidden; aspect-ratio: 16 / 8; background: var(--hhn-ink-2); }
.hhn-article-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hhn-article-body-wrap { padding: 56px var(--hhn-gutter) 24px; }
@media (max-width: 1024px) { .hhn-article-body-wrap { padding-top: 40px; } }
.hhn-article-body, .hhn-article-byline { max-width: 720px; margin: 0 auto; }
.hhn-article-body { font-size: 19px; line-height: 1.75; color: var(--hhn-text-soft); }
@media (max-width: 1024px) { .hhn-article-body { font-size: 18px; } }
.entry-content.hhn-article-body > * { margin: 20px 0 0; }
.entry-content.hhn-article-body > :first-child { margin-top: 0; }
.entry-content.hhn-article-body h2 { margin-top: 56px; font-weight: 900; font-size: 40px; line-height: 1.08; letter-spacing: -.03em; color: var(--hhn-ivory); }
@media (max-width: 1024px) { .entry-content.hhn-article-body h2 { font-size: 30px; } }
.entry-content.hhn-article-body h3 { margin-top: 32px; font-weight: 700; font-size: 24px; line-height: 1.25; letter-spacing: -.02em; color: var(--hhn-orange); }
.hhn-article-body h3 a { color: inherit; text-decoration: none; }
.hhn-article-body h3 a:hover { text-decoration: underline; }
.entry-content.hhn-article-body blockquote,
.entry-content.hhn-article-body .wp-block-quote { margin: 36px 0; padding: 4px 0 4px 26px; border: 0; border-left: 4px solid var(--hhn-orange); background: none; font-style: normal; }
.hhn-article-body blockquote p { margin: 0; font-weight: 900; font-size: 34px; line-height: 1.15; letter-spacing: -.025em; color: var(--hhn-ivory); }
@media (max-width: 1024px) { .hhn-article-body blockquote p { font-size: 26px; } }
.entry-content.hhn-article-body .hhn-article-tagline { font-weight: 900; font-size: 22px; line-height: 1.4; letter-spacing: -.02em; color: var(--hhn-orange); }

/* Stat boxes (3 across) and device boxes (2 across) inside the article */
.entry-content.hhn-article-body .hhn-astats, .entry-content.hhn-article-body .hhn-devlist { margin: 28px 0; }
.hhn-astats > .wp-block-group__inner-container, .hhn-astats.is-layout-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hhn-devlist > .wp-block-group__inner-container, .hhn-devlist.is-layout-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767px) {
	.hhn-astats > .wp-block-group__inner-container, .hhn-astats.is-layout-flow,
	.hhn-devlist > .wp-block-group__inner-container, .hhn-devlist.is-layout-flow { grid-template-columns: 1fr; }
}
.hhn-astats .hhn-astat, .hhn-devlist .hhn-dev { margin: 0 !important; background: var(--hhn-ink-2); border-radius: 10px; }
.hhn-astat { padding: 24px 22px; border-top: 3px solid var(--accent, var(--hhn-orange)); }
.hhn-dev { padding: 22px 24px; border-left: 5px solid var(--accent, var(--hhn-orange)); }
.hhn-astat p, .hhn-dev p { margin: 0 !important; }
.hhn-article-body .hhn-astat__num { font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: -.03em; color: var(--hhn-ivory); }
@media (max-width: 1024px) { .hhn-article-body .hhn-astat__num { font-size: 36px; } }
.entry-content .hhn-astat .hhn-astat__label { margin-top: 10px !important; font-size: 14px; line-height: 1.4; color: var(--hhn-text-muted); }
.hhn-article-body .hhn-dev__title { font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--hhn-ivory); }
.entry-content .hhn-dev .hhn-dev__text { margin-top: 6px !important; font-size: 15px; line-height: 1.55; color: var(--hhn-text-muted); }

/* Author line at the end of the article */
.hhn-article-byline { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--hhn-rule); }
.hhn-article-byline .hhn-author { margin: 0; gap: 16px; }
.hhn-article-byline .hhn-author__photo { width: 64px; height: 64px; }
.hhn-article-byline .hhn-author__name { font-size: 18px; }

/* Closing band and "More from the Newsroom" (synced pattern) */
.hhn-article-footer { margin-top: 72px; }
@media (max-width: 1024px) { .hhn-article-footer { margin-top: 56px; } }
@media (max-width: 767px) { .hhn-article-footer { margin-top: 48px; } }

/* Heartbeat line draw animation, as in the design: draws left to right, holds, repeats every 4.5s.
   Only when the visitor has not asked for reduced motion; otherwise the static line above shows. */
@media (prefers-reduced-motion: no-preference) {
	.hhn-news-hero::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6425 -30 13700 844' fill='none' stroke='%23F95920' stroke-width='50' stroke-linecap='round' stroke-linejoin='round'%3E%3Cstyle%3Epath{stroke-dasharray:1;stroke-dashoffset:1;animation:d 4.5s ease-in-out infinite}@keyframes d{0%25{stroke-dashoffset:1}55%25,100%25{stroke-dashoffset:0}}%3C/style%3E%3Cpath pathLength='1' d='M-2571 495 H175 C230 495 255 560 272 592 C282 612 296 610 303 575 L358 45 L362 685 C385 560 420 335 495 335 C545 335 565 430 580 560 C586 610 600 612 620 575 C645 520 665 495 700 495 H4130'/%3E%3C/svg%3E"); }
}

/* ---- Design match (1.0.12) ---- */
.entry-content .hhn-news-latest h2, .entry-content .hhn-news-media h2 { line-height: normal !important; }
.hhn-news-card__caption, .hhn-news-date, .hhn-news-card__more { line-height: normal !important; }
.entry-content .hhn-kit-item__title, .entry-content .hhn-kit-item__link { line-height: normal !important; }
.hhn-news-kit .kt-row-column-wrap.kt-has-3-columns { row-gap: 28px !important; }
/* Article */
.hhn-back { display: flex !important; width: fit-content; line-height: normal !important; }
.hhn-article-head .hhn-author__name, .hhn-article-head .hhn-author__role { line-height: normal !important; }
.hhn-article-body .hhn-author__name, .hhn-article-body .hhn-author__role, .hhn-article-byline .hhn-author__name, .hhn-article-byline .hhn-author__role { line-height: 1.75; }
.entry-content .hhn-article-body h3, .hhn-article-body h3 { line-height: 1.75 !important; }
.hhn-back.hhn-back { margin: 2px 0; }
.entry-content .hhn-dev__title.hhn-dev__title { line-height: 1.75 !important; }
.entry-content .hhn-news-more h2 { line-height: normal !important; }
.entry-content .hhn-article-tagline.hhn-article-tagline { line-height: 1.75 !important; }
@media (max-width: 1024px) {
	.hhn-article-hero.hhn-article-hero { margin-top: 36px !important; }
	.hhn-article-body.hhn-article-body h2 { margin-top: 44px !important; }
}
@media (max-width: 1024px) { .hhn-article-footer.hhn-article-footer { margin-top: 48px !important; } }

/* Nov 18: Media links read as uppercase labels (e.g. "Forbes article") */
.hhn-news-grid--sm .hhn-news-card__more { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }

/* Nov 18: Latest and Media side by side on the Newsroom page (one card each) */
.hhn-news-pair .hhn-news-grid { grid-template-columns: 1fr !important; }
.hhn-news-pair > .kt-row-column-wrap { align-items: start !important; }
.hhn-news-grid--sm .hhn-news-card__more { margin-top: 20px; }
