/**
 * News (listing, category archive, single article).
 *
 * Matches the News Listing and News Article wireframes: a warm surface hero,
 * a category filter pill row, a uniform card grid with colour-coded tags, and
 * an article with a surface hero (tag, title, standfirst, byline) over a
 * centred reading column. Design-system tokens throughout.
 */

.hos-news h1, .hos-news h2, .hos-news h3 { color: var(--ds-color-heading); }

/* ---- Category tag (shared by cards and the article hero) ---- */
.hos-news-tag {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	background: var(--ds-color-border);
	color: var(--ds-color-heading);
	font-family: var(--ds-font-heading);
	font-weight: var(--ds-weight-semibold);
	font-size: var(--ds-text-label);
	padding: 4px 12px;
	border-radius: var(--ds-radius-pill);
}
.hos-news-tag--client-stories { background: var(--ds-color-green-tint); }
.hos-news-tag--staff-blogs { background: var(--ds-color-blue-tint); }
.hos-news-tag--interviews, .hos-news-tag--guest-blogs { background: var(--ds-color-blue-tint-deep); }
.hos-news-tag--housing-insight, .hos-news-tag--publications { background: var(--ds-color-border); }
.hos-news-tag--funding, .hos-news-tag--events { background: var(--ds-color-orange-tint); }
.hos-news-tag--announcements, .hos-news-tag--recruitment { background: var(--ds-color-red-tint); }

/* ---- Listing hero ---- */
.hos-news-hero { background: var(--ds-color-surface); padding: clamp(40px, 6vw, 72px) 0; }
.hos-news-hero__inner {
	max-width: var(--ds-width-container);
	margin: 0 auto;
	padding: 0 var(--ds-space-gutter);
	display: flex;
	flex-direction: column;
	gap: var(--ds-space-lg);
}
.hos-news-hero h1 {
	margin: 0;
	font-family: var(--ds-font-heading);
	font-weight: var(--ds-weight-bold);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.12;
	letter-spacing: var(--ds-letter-display);
}
.hos-news-hero__lead { margin: 0; font-size: var(--ds-text-intro); line-height: var(--ds-line-lead); max-width: 60ch; color: var(--ds-color-body); }

/* ---- Filters ---- */
.hos-news-filters { background: var(--ds-color-white); border-bottom: 1px solid var(--ds-color-border); }
.hos-news-filters__inner {
	max-width: var(--ds-width-container);
	margin: 0 auto;
	padding: var(--ds-space-xl) var(--ds-space-gutter);
}
.hos-news-pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* Mobile category select (hidden on desktop) */
.hos-news-select-form { display: none; flex-direction: column; gap: var(--ds-space-xs); margin: 0; }
.hos-news-select-label { font-family: var(--ds-font-heading); font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-label); color: var(--ds-color-heading); text-transform: uppercase; letter-spacing: .06em; }
.hos-news-select {
	width: 100%;
	min-height: 52px;
	padding: 12px 44px 12px 18px;
	border: 2px solid var(--ds-color-border-hover);
	border-radius: var(--ds-radius-md);
	background: var(--ds-color-white);
	color: var(--ds-color-heading);
	font-family: var(--ds-font-heading);
	font-weight: var(--ds-weight-semibold);
	font-size: var(--ds-text-xs);
	line-height: 1.2;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23284947' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
}
.hos-news-select:focus-visible { outline: 3px solid var(--ds-color-blue-dark); outline-offset: 2px; }

@media (max-width: 640px) {
	.hos-news-pills { display: none; }
	.hos-news-select-form { display: flex; }
}

.hos-news-pill {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 6px 11px;
	border-radius: var(--ds-radius-pill);
	border: 1px solid var(--ds-color-border-hover);
	background: var(--ds-color-white);
	color: var(--ds-color-heading);
	font-family: var(--ds-font-heading);
	font-weight: var(--ds-weight-semibold);
	font-size: calc(var(--ds-text-xs) - 1px);
	line-height: 1;
}
.hos-news a.hos-news-pill { text-decoration: none; color: var(--ds-color-heading); }
.hos-news a.hos-news-pill:hover { border-color: var(--ds-color-blue-dark); background: var(--ds-color-surface); color: var(--ds-color-heading); }
.hos-news a.hos-news-pill.is-active { background: var(--ds-color-blue-dark); border-color: var(--ds-color-blue-dark); color: var(--ds-color-white); }

/* ---- Listing grid ---- */
.hos-news-listing { background: var(--ds-color-white); padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); }
.hos-news-count { max-width: var(--ds-width-container); margin: 0 auto clamp(24px, 3vw, 36px); padding: 0 var(--ds-space-gutter); color: var(--ds-color-body); font-size: var(--ds-text-xs); }
.hos-news-grid {
	max-width: var(--ds-width-container);
	margin: 0 auto;
	padding: 0 var(--ds-space-gutter);
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
	gap: var(--ds-space-lg);
}
.hos-news-card {
	display: flex;
	flex-direction: column;
	background: var(--ds-color-white);
	border: 1px solid var(--ds-color-border);
	border-radius: var(--ds-radius-lg);
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.hos-news a.hos-news-card { text-decoration: none; color: inherit; }
.hos-news a.hos-news-card:hover { border-color: var(--ds-color-red-dark); box-shadow: var(--ds-shadow-hover); }
.hos-news-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--ds-color-surface); }
.hos-news-card__ph { width: 100%; aspect-ratio: 16 / 10; background: var(--ds-color-surface); display: block; }
.hos-news-card__body { display: flex; flex-direction: column; gap: var(--ds-space-sm); padding: 20px 22px 22px; flex: 1 1 auto; }
.hos-news-card__date { font-size: var(--ds-text-label); color: var(--ds-color-muted); }
.hos-news-card__title { margin: 0; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-semibold); font-size: 1.375rem; line-height: 1.25; color: var(--ds-color-heading); }
.hos-news-card__summary { margin: 0; font-size: var(--ds-text-xs); line-height: 1.6; color: var(--ds-color-body); }
.hos-news-card .hos-news-tag { margin-top: auto; }

/* ---- Pager ---- */
.hos-news-pager { max-width: var(--ds-width-container); margin: clamp(32px, 4vw, 48px) auto 0; padding: 0 var(--ds-space-gutter); display: flex; justify-content: center; }
.hos-news a.hos-news-pager__link, .hos-news-pager a {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 14px 30px;
	border-radius: var(--ds-radius-pill);
	border: 2px solid var(--ds-color-muted);
	background: var(--ds-color-white);
	color: var(--ds-color-heading);
	font-family: var(--ds-font-heading);
	font-weight: var(--ds-weight-semibold);
	text-decoration: none;
}
.hos-news-pager a:hover { border-color: var(--ds-color-blue-dark); background: var(--ds-color-surface); }

/* ---- Article ---- */
.hos-article-hero { background: var(--ds-color-surface); padding: clamp(40px, 6vw, 72px) 0; }
.hos-article-hero__inner { max-width: 760px; margin: 0 auto; padding: 0 var(--ds-space-gutter); display: flex; flex-direction: column; gap: var(--ds-space-md); }
.hos-article-hero h1 { margin: 0; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(1.875rem, 3.4vw, 2.625rem); line-height: 1.15; letter-spacing: var(--ds-letter-h1); }
.hos-article-hero__standfirst { margin: 0; font-size: var(--ds-text-intro); line-height: var(--ds-line-snug); color: var(--ds-color-body); }
.hos-article-hero__meta { margin: 0; font-size: var(--ds-text-xs); color: var(--ds-color-muted); }

.hos-article-body { background: var(--ds-color-white); padding: clamp(40px, 6vw, 80px) 0; }
.hos-article-body__inner { max-width: 760px; margin: 0 auto; padding: 0 var(--ds-space-gutter); }
.hos-article-body p { margin: 0 0 22px; font-size: var(--ds-text-base); line-height: 1.8; color: var(--ds-color-body); }
.hos-article-body h2 { margin: 40px 0 14px; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: var(--ds-text-h3); line-height: 1.2; color: var(--ds-color-heading); }
.hos-article-body h3 { margin: 32px 0 12px; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-semibold); font-size: 1.375rem; line-height: 1.25; color: var(--ds-color-heading); }
.hos-article-body ul, .hos-article-body ol { margin: 0 0 22px; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; font-size: var(--ds-text-base); color: var(--ds-color-body); }
.hos-article-body img { max-width: 100%; height: auto; border-radius: var(--ds-radius-lg); display: block; margin: 28px 0; }
.hos-article-body a { color: var(--ds-color-red-dark); }
.hos-article-body blockquote { margin: 28px 0; padding: 20px 26px; border-left: 4px solid var(--ds-color-blue-dark); background: var(--ds-color-surface); border-radius: 0 var(--ds-radius-md) var(--ds-radius-md) 0; }
.hos-article-body blockquote p { margin: 0 0 8px; color: var(--ds-color-heading); font-size: var(--ds-text-lead); line-height: 1.5; }
.hos-article-body blockquote p:last-child { margin-bottom: 0; }
.hos-article-body blockquote cite { display: block; font-style: normal; font-weight: var(--ds-weight-semibold); color: var(--ds-color-muted); font-size: var(--ds-text-xs); }
/* ---- Article lead image ---- */
.hos-article-media { max-width: 760px; margin: 0 auto clamp(28px, 5vw, 44px); padding: 0 var(--ds-space-gutter); }
.hos-article-media__img { width: 100%; height: auto; max-height: min(70vh, 560px); object-fit: cover; display: block; border-radius: var(--ds-radius-lg); box-shadow: 0 18px 40px -24px rgba(47, 48, 49, .45); }
.hos-article.has-lead .hos-article-hero { padding-bottom: clamp(112px, 13vw, 168px); }
.hos-article.has-lead .hos-article-body { padding-top: 0; display: flow-root; }
.hos-article.has-lead .hos-article-media { position: relative; z-index: 1; margin-top: calc(-1 * clamp(56px, 7vw, 96px)); }

/* ---- Article prev/next navigation ---- */
.hos-article-nav { max-width: 760px; margin: clamp(16px, 3vw, 28px) auto 0; padding: clamp(28px, 4vw, 44px) var(--ds-space-gutter) 0; border-top: 1px solid var(--ds-color-border); display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-md); }
.hos-news a.hos-article-nav__link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-lg); background: var(--ds-color-white); color: var(--ds-color-heading); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.hos-news a.hos-article-nav__link:hover { border-color: var(--ds-color-red-dark); box-shadow: var(--ds-shadow-hover); }
.hos-article-nav__link--next { text-align: right; align-items: flex-end; }
.hos-article-nav__dir { font-family: var(--ds-font-heading); font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-label); text-transform: uppercase; letter-spacing: .06em; color: var(--ds-color-muted); }
.hos-article-nav__title { font-family: var(--ds-font-heading); font-weight: var(--ds-weight-semibold); font-size: 1.0625rem; line-height: 1.3; color: var(--ds-color-heading); }
@media (max-width: 560px) { .hos-article-nav { grid-template-columns: 1fr; } .hos-article-nav__link--next { text-align: left; align-items: flex-start; } }

/* 16 Sept: match the News Listing wireframe pills (dark text, comfortable size) */
.hos-news-pills { gap: 10px; }
.hos-news-pill { min-height: 44px; padding: 10px 20px; font-size: 1.0625rem; line-height: 1; }

/* Client story film shown in place of the lead photo (23 Sept 2026). */
.hos-article-media--film iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--ds-radius-lg); background: #000; }
