/* MachineFinder Industry News — uses the site's card, button and colour styles
   from MachineFinder Core (mf.css). Phone first; tablet 600px; desktop 960px. */

/* Industry labels, each with its industry colour band */
.mfn-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .4rem; }
.mfn-tag { display: inline-block; border-left: 6px solid var(--mf-cat, #003048); background: #eef3f6; color: var(--mf-navy, #003048); padding: .1rem .5rem; border-radius: 3px; font-size: .78rem; font-weight: 700; line-height: 1.5; text-decoration: none; }
a.mfn-tag:hover { background: #e2eaef; }

/* Cards */
.mfn-card[hidden] { display: none !important; }
.mfn-card .mf-card__img { aspect-ratio: 16 / 10; }
.mfn-card__text { color: var(--mf-text, #1d2327); font-size: .92rem; margin: 0; }

/* News page filters */
.mfn-list { margin: 0 0 2rem; }
.mfn-filters { background: #fff; border: 1px solid var(--mf-line, #d9dee3); border-radius: var(--mf-radius, 8px); padding: .6rem .9rem .5rem; margin: 0 0 1rem; }
.mfn-filter { margin: 0 0 .4rem; min-width: 0; }
.mfn-filter__label { display: block; font-size: .85rem; font-weight: 700; color: var(--mf-muted, #5b6670); margin: .2rem 0 .3rem; }
.mfn-filter .mf-catbtn { font: inherit; font-weight: 700; cursor: pointer; }
.mfn-filter .mf-catbtn.is-active .mf-catbtn__dot { box-shadow: 0 0 0 2px #fff; }
.mfn-regions { display: flex; flex-wrap: wrap; gap: .4rem; }
.mfn-regions .mf-subbtn { font: inherit; font-size: .92rem; font-weight: 600; border: 0; cursor: pointer; min-height: 40px; }
.mfn-count { color: var(--mf-muted, #5b6670); font-size: .92rem; margin: 0 0 .6rem; }
.mfn-count:empty { display: none; }
.mfn-empty { margin-top: 1rem; }
.mfn-more-wrap { text-align: center; margin: 1.5rem 0 0; }
.mfn-more { min-width: 220px; }

/* Industry page strip */
.mfn-strip { border-left: 10px solid var(--mf-cat, #003048); padding: .2rem 0 .2rem 1rem; margin: 2.2rem 0 1.5rem; }
.mfn-strip h2 { color: var(--mf-navy, #003048); font-size: 1.3rem; margin: 0 0 .9rem; }
.mfn-strip__all { margin: .9rem 0 0; font-weight: 700; }

/* Home page card */
.mfn-home__box { background: #fff; border: 1px solid var(--mf-line, #d9dee3); border-radius: var(--mf-radius, 8px); padding: .4rem .9rem .9rem; }
.mfn-home__list { display: grid; grid-template-columns: 1fr; }
.mfn-home__item { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid #edf0f2; text-decoration: none !important; color: var(--mf-text, #1d2327); }
.mfn-home__item:hover .mfn-home__title { text-decoration: underline; }
.mfn-home__img { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 6px; overflow: hidden; background: #eef1f3; }
.mfn-home__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfn-home__text { display: flex; flex-direction: column; min-width: 0; }
.mfn-home__text .mfn-tags { margin-bottom: .25rem; }
.mfn-home__title { font-weight: 700; color: var(--mf-navy, #003048); line-height: 1.3; }
.mfn-home__date { color: var(--mf-muted, #5b6670); font-size: .85rem; margin-top: .2rem; }
.mfn-home__all { margin: .8rem 0 0; font-weight: 700; }

/* Story page */
.mfn-article .mf-crumbs { margin-bottom: .4rem; }
.mfn-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; color: var(--mf-muted, #5b6670); font-size: .92rem; margin: 0 0 1.2rem; }
.mfn-article__meta .mfn-tags { margin: 0; }
.mfn-article .wp-block-post-content img { max-width: 100%; height: auto; border-radius: 6px; }
.mfn-article .wp-block-post-content figure { margin: 1.4rem 0; }
.mfn-article .wp-block-post-content figcaption { font-size: .85rem; color: var(--mf-muted, #5b6670); margin-top: .35rem; }
.mfn-related { border-top: 1px solid var(--mf-line, #d9dee3); margin: 2rem 0 0; padding: 1.2rem 0 0; }
.mfn-related h2 { color: var(--mf-navy, #003048); font-size: 1.2rem; border-left: 8px solid var(--mf-cat, #003048); padding-left: .6rem; margin: 0 0 .9rem; }
.mfn-related__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.mfn-related .mf-card__title { font-size: 1rem; }

/* Tablet */
@media (min-width: 600px) {
	.mfn-home__list { grid-template-columns: 1fr 1fr; column-gap: 1.4rem; }
	.mfn-related__grid { grid-template-columns: repeat(3, 1fr); }
	.mfn-related .mfn-card__text { display: none; }
}

/* Desktop */
@media (min-width: 960px) {
	.mfn-filter { display: flex; align-items: center; gap: .8rem; }
	.mfn-filter__label { flex: 0 0 70px; margin: 0; }
	.mfn-filter .mf-catbar { flex-wrap: wrap; overflow: visible; padding-bottom: .4rem; }
	.mfn-strip .mf-grid { grid-template-columns: repeat(3, 1fr); }
	.mfn-home__img { flex-basis: 88px; width: 88px; height: 88px; }
}
