/* Subheader band ([iwt_subheader], inc/subheader.php): the dark navy block under the site header with a
   breadcrumb, the page title, one intro line, and optional chips or links on the right.
   Used on the gun parts pages; reuse it on any page that needs a compact title block (no photo). */

.iwt-subhead {
	padding: 22px 0 20px;
	background: var(--iwt-navy-deep);
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
}
/* Astra caps every direct child of .entry-content at 1600px and centers it; the band runs edge to edge
   instead, and .iwt-subhead__in keeps its contents at that same width. */
.entry-content[data-ast-blocks-layout] > .iwt-subhead {
	max-width: none;
	margin-inline: 0;
}
.iwt-subhead__in {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 var(--iwt-gutter);
}

.iwt-subhead__crumbs {
	margin-bottom: 8px;
	color: var(--iwt-sky);
	font-size: 13px;
}
.iwt-subhead__crumbs span {
	margin: 0 6px;
	opacity: 0.6;
}
.iwt-subhead .iwt-subhead__crumbs a,
.iwt-subhead .iwt-subhead__crumbs a:hover {
	color: var(--iwt-sky);
}
.iwt-subhead .iwt-subhead__crumbs a:hover {
	color: #fff;
}

.iwt-subhead__row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: flex-end;
	justify-content: space-between;
}
.entry-content .iwt-subhead .iwt-subhead__title,
body .iwt-subhead .iwt-subhead__row .iwt-subhead__title {
	margin: 0;
	color: #fff;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 600;
	line-height: 1.15;
}
.entry-content .iwt-subhead .iwt-subhead__intro,
body .iwt-subhead .iwt-subhead__row .iwt-subhead__intro {
	max-width: 60ch;
	margin: 6px 0 0;
	color: var(--iwt-mist);
	font-size: 15px;
}

/* Chips on the right: links (or plain spans) with the class iwt-subhead__chip. is-current is the white
   one for the page you are on; is-off is a dimmed one that goes nowhere yet. */
.iwt-subhead__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.iwt-subhead .iwt-subhead__chip {
	padding: 7px 16px;
	border: 1px solid var(--iwt-navy-line);
	border-radius: 4px;
	color: var(--iwt-mist);
	font-weight: 500;
	line-height: 1.4;
}
.iwt-subhead a.iwt-subhead__chip:hover,
.iwt-subhead a.iwt-subhead__chip:focus-visible {
	border-color: var(--iwt-sky);
	color: #fff;
}
.iwt-subhead .iwt-subhead__chip.is-current {
	background: #fff;
	border-color: #fff;
	color: var(--iwt-navy);
}
.iwt-subhead .iwt-subhead__chip.is-off {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Icon on the right (an <img class="iwt-subhead__icon"> inside the shortcode): sits at the bottom of the
   row next to the intro; hidden on phones, where it would only wrap under the text. */
.iwt-subhead .iwt-subhead__icon {
	display: block;
	width: auto;
	height: 104px;
	border-radius: 8px;
}
@media (max-width: 640px) {
	.iwt-subhead .iwt-subhead__icon {
		display: none;
	}
}

/* Astra underlines every link in a page's content (.ast-single-post .entry-content a). */
.iwt-subhead a,
.iwt-subhead a:hover,
.ast-single-post .entry-content .iwt-subhead a,
.ast-single-post .entry-content .iwt-subhead a:hover {
	text-decoration: none;
}
