/*
 * AFGE National News
 *
 * Deliberately small. No font-family, no font-size on body text, no hard
 * background colours — everything inherits from the Elementor kit so the block
 * looks native on a white section and on the navy sections alike. Colours that
 * do need a value are CSS custom properties, overridable from the widget's
 * Style tab or from the kit.
 */

.afge-nn {
	--afge-nn-accent: #c8a349;          /* source label / hover / more-link */
	--afge-nn-tag-ink: #0f2240;         /* text inside the solid label */
	--afge-nn-rule: rgba(128, 128, 128, 0.3);
	--afge-nn-gap: 1.75rem;
	--afge-nn-cols: 3;
}

.afge-nn__heading {
	margin: 0 0 1.25rem;
}

.afge-nn__items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.afge-nn__item {
	margin: 0;
	padding: 0;
	min-width: 0;
}

/* ---------------------------------------------------------------- list */

.afge-nn--list .afge-nn__item {
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--afge-nn-rule);
}

.afge-nn--list .afge-nn__item:first-child {
	padding-top: 0;
}

.afge-nn--list .afge-nn__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

/* ---------------------------------------------------------------- grid */

.afge-nn--grid .afge-nn__items {
	display: grid;
	gap: var(--afge-nn-gap);
	grid-template-columns: repeat(var(--afge-nn-cols), minmax(0, 1fr));
}

.afge-nn--grid .afge-nn__item {
	padding-top: 0.9rem;
	border-top: 3px solid var(--afge-nn-accent);
}

/*
 * Collapsing at these widths sets grid-template-columns directly rather than
 * the custom property, because the property is set inline on the element and
 * an inline declaration would otherwise beat any rule here.
 */
@media (max-width: 1024px) {
	.afge-nn--grid .afge-nn__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.afge-nn--grid .afge-nn__items {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------- meta */

.afge-nn__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0 0 0.45rem;
	line-height: 1.2;
}

.afge-nn__tag {
	display: inline-block;
	padding: 0.25em 0.6em;
	border-radius: 2px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
	background: var(--afge-nn-accent);
	color: var(--afge-nn-tag-ink);
}

/* Two feeds, one brand colour: press solid, news outlined. */
.afge-nn__tag--news {
	background: transparent;
	color: inherit;
	box-shadow: inset 0 0 0 1px var(--afge-nn-accent);
}

.afge-nn__date {
	font-size: 0.8125rem;
	opacity: 0.7;
}

/* --------------------------------------------------------------- title */

.afge-nn__title {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.35;
}

.afge-nn--grid .afge-nn__title {
	font-size: 1.125rem;
}

.afge-nn__link {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--afge-nn-accent), var(--afge-nn-accent));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 2px;
	transition: background-size 0.25s ease, color 0.25s ease;
}

.afge-nn__link:hover,
.afge-nn__link:focus {
	color: inherit;
	background-size: 100% 2px;
}

.afge-nn__link:focus-visible {
	outline: 2px solid var(--afge-nn-accent);
	outline-offset: 3px;
}

/* ------------------------------------------------------------- excerpt */

.afge-nn__excerpt {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	opacity: 0.78;
}

/* ---------------------------------------------------------------- more */

.afge-nn__more {
	margin: 1.5rem 0 0;
}

.afge-nn__more a {
	color: var(--afge-nn-accent);
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.afge-nn__more a:hover,
.afge-nn__more a:focus {
	text-decoration: underline;
}

/* ------------------------------------------------------------- sidebar */

.afge-nn--sidebar .afge-nn__title {
	font-size: 0.9375rem;
}

.afge-nn--sidebar .afge-nn__item {
	padding: 0.85rem 0;
}

/* ------------------------------------------------------- admin notice */

.afge-nn__notice {
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--afge-nn-accent, #c8a349);
	background: rgba(128, 128, 128, 0.08);
	font-size: 0.875rem;
}
